<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="pwc.taxtech.atms.analysis.dao.AnalysisSalesMapper"> <resultMap id="BaseResultMap" type="pwc.taxtech.atms.analysis.entity.AnalysisSales"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> <id column="id" jdbcType="BIGINT" property="id" /> <result column="seq_no" jdbcType="VARCHAR" property="seqNo" /> <result column="segment_1" jdbcType="DECIMAL" property="segment1" /> <result column="segment_2" jdbcType="DECIMAL" property="segment2" /> <result column="segment_3" jdbcType="DECIMAL" property="segment3" /> <result column="segment_4" jdbcType="DECIMAL" property="segment4" /> <result column="segment_5" jdbcType="DECIMAL" property="segment5" /> <result column="segment_6" jdbcType="DECIMAL" property="segment6" /> <result column="segment_7" jdbcType="DECIMAL" property="segment7" /> <result column="segment_8" jdbcType="DECIMAL" property="segment8" /> <result column="segment_9" jdbcType="DECIMAL" property="segment9" /> <result column="segment_10" jdbcType="DECIMAL" property="segment10" /> <result column="segment_11" jdbcType="DECIMAL" property="segment11" /> <result column="segment_12" jdbcType="DECIMAL" property="segment12" /> <result column="segment_13" jdbcType="DECIMAL" property="segment13" /> <result column="segment_14" jdbcType="DECIMAL" property="segment14" /> <result column="segment_15" jdbcType="DECIMAL" property="segment15" /> <result column="segment_16" jdbcType="DECIMAL" property="segment16" /> <result column="segment_17" jdbcType="DECIMAL" property="segment17" /> <result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> <result column="organization_id" jdbcType="VARCHAR" property="organizationId" /> <result column="company_name" jdbcType="VARCHAR" property="companyName" /> <result column="period" jdbcType="INTEGER" property="period" /> </resultMap> <sql id="Example_Where_Clause"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> <where> <foreach collection="oredCriteria" item="criteria" separator="or"> <if test="criteria.valid"> <trim prefix="(" prefixOverrides="and" suffix=")"> <foreach collection="criteria.criteria" item="criterion"> <choose> <when test="criterion.noValue"> and ${criterion.condition} </when> <when test="criterion.singleValue"> and ${criterion.condition} #{criterion.value} </when> <when test="criterion.betweenValue"> and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} </when> <when test="criterion.listValue"> and ${criterion.condition} <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> #{listItem} </foreach> </when> </choose> </foreach> </trim> </if> </foreach> </where> </sql> <sql id="Update_By_Example_Where_Clause"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> <where> <foreach collection="example.oredCriteria" item="criteria" separator="or"> <if test="criteria.valid"> <trim prefix="(" prefixOverrides="and" suffix=")"> <foreach collection="criteria.criteria" item="criterion"> <choose> <when test="criterion.noValue"> and ${criterion.condition} </when> <when test="criterion.singleValue"> and ${criterion.condition} #{criterion.value} </when> <when test="criterion.betweenValue"> and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} </when> <when test="criterion.listValue"> and ${criterion.condition} <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> #{listItem} </foreach> </when> </choose> </foreach> </trim> </if> </foreach> </where> </sql> <sql id="Base_Column_List"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> id, seq_no, segment_1, segment_2, segment_3, segment_4, segment_5, segment_6, segment_7, segment_8, segment_9, segment_10, segment_11, segment_12, segment_13, segment_14, segment_15, segment_16, segment_17, create_time, update_time, organization_id, company_name, period </sql> <select id="selectByExample" parameterType="pwc.taxtech.atms.analysis.entity.AnalysisSalesExample" resultMap="BaseResultMap"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> select <if test="distinct"> distinct </if> <include refid="Base_Column_List" /> from analysis_sales <if test="_parameter != null"> <include refid="Example_Where_Clause" /> </if> <if test="orderByClause != null"> order by ${orderByClause} </if> </select> <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> select <include refid="Base_Column_List" /> from analysis_sales where id = #{id,jdbcType=BIGINT} </select> <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> delete from analysis_sales where id = #{id,jdbcType=BIGINT} </delete> <delete id="deleteByExample" parameterType="pwc.taxtech.atms.analysis.entity.AnalysisSalesExample"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> delete from analysis_sales <if test="_parameter != null"> <include refid="Example_Where_Clause" /> </if> </delete> <insert id="insert" parameterType="pwc.taxtech.atms.analysis.entity.AnalysisSales"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> insert into analysis_sales (id, seq_no, segment_1, segment_2, segment_3, segment_4, segment_5, segment_6, segment_7, segment_8, segment_9, segment_10, segment_11, segment_12, segment_13, segment_14, segment_15, segment_16, segment_17, create_time, update_time, organization_id, company_name, period ) values (#{id,jdbcType=BIGINT}, #{seqNo,jdbcType=VARCHAR}, #{segment1,jdbcType=DECIMAL}, #{segment2,jdbcType=DECIMAL}, #{segment3,jdbcType=DECIMAL}, #{segment4,jdbcType=DECIMAL}, #{segment5,jdbcType=DECIMAL}, #{segment6,jdbcType=DECIMAL}, #{segment7,jdbcType=DECIMAL}, #{segment8,jdbcType=DECIMAL}, #{segment9,jdbcType=DECIMAL}, #{segment10,jdbcType=DECIMAL}, #{segment11,jdbcType=DECIMAL}, #{segment12,jdbcType=DECIMAL}, #{segment13,jdbcType=DECIMAL}, #{segment14,jdbcType=DECIMAL}, #{segment15,jdbcType=DECIMAL}, #{segment16,jdbcType=DECIMAL}, #{segment17,jdbcType=DECIMAL}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{organizationId,jdbcType=VARCHAR}, #{companyName,jdbcType=VARCHAR}, #{period,jdbcType=INTEGER} ) </insert> <insert id="insertSelective" parameterType="pwc.taxtech.atms.analysis.entity.AnalysisSales"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> insert into analysis_sales <trim prefix="(" suffix=")" suffixOverrides=","> <if test="id != null"> id, </if> <if test="seqNo != null"> seq_no, </if> <if test="segment1 != null"> segment_1, </if> <if test="segment2 != null"> segment_2, </if> <if test="segment3 != null"> segment_3, </if> <if test="segment4 != null"> segment_4, </if> <if test="segment5 != null"> segment_5, </if> <if test="segment6 != null"> segment_6, </if> <if test="segment7 != null"> segment_7, </if> <if test="segment8 != null"> segment_8, </if> <if test="segment9 != null"> segment_9, </if> <if test="segment10 != null"> segment_10, </if> <if test="segment11 != null"> segment_11, </if> <if test="segment12 != null"> segment_12, </if> <if test="segment13 != null"> segment_13, </if> <if test="segment14 != null"> segment_14, </if> <if test="segment15 != null"> segment_15, </if> <if test="segment16 != null"> segment_16, </if> <if test="segment17 != null"> segment_17, </if> <if test="createTime != null"> create_time, </if> <if test="updateTime != null"> update_time, </if> <if test="organizationId != null"> organization_id, </if> <if test="companyName != null"> company_name, </if> <if test="period != null"> period, </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="id != null"> #{id,jdbcType=BIGINT}, </if> <if test="seqNo != null"> #{seqNo,jdbcType=VARCHAR}, </if> <if test="segment1 != null"> #{segment1,jdbcType=DECIMAL}, </if> <if test="segment2 != null"> #{segment2,jdbcType=DECIMAL}, </if> <if test="segment3 != null"> #{segment3,jdbcType=DECIMAL}, </if> <if test="segment4 != null"> #{segment4,jdbcType=DECIMAL}, </if> <if test="segment5 != null"> #{segment5,jdbcType=DECIMAL}, </if> <if test="segment6 != null"> #{segment6,jdbcType=DECIMAL}, </if> <if test="segment7 != null"> #{segment7,jdbcType=DECIMAL}, </if> <if test="segment8 != null"> #{segment8,jdbcType=DECIMAL}, </if> <if test="segment9 != null"> #{segment9,jdbcType=DECIMAL}, </if> <if test="segment10 != null"> #{segment10,jdbcType=DECIMAL}, </if> <if test="segment11 != null"> #{segment11,jdbcType=DECIMAL}, </if> <if test="segment12 != null"> #{segment12,jdbcType=DECIMAL}, </if> <if test="segment13 != null"> #{segment13,jdbcType=DECIMAL}, </if> <if test="segment14 != null"> #{segment14,jdbcType=DECIMAL}, </if> <if test="segment15 != null"> #{segment15,jdbcType=DECIMAL}, </if> <if test="segment16 != null"> #{segment16,jdbcType=DECIMAL}, </if> <if test="segment17 != null"> #{segment17,jdbcType=DECIMAL}, </if> <if test="createTime != null"> #{createTime,jdbcType=TIMESTAMP}, </if> <if test="updateTime != null"> #{updateTime,jdbcType=TIMESTAMP}, </if> <if test="organizationId != null"> #{organizationId,jdbcType=VARCHAR}, </if> <if test="companyName != null"> #{companyName,jdbcType=VARCHAR}, </if> <if test="period != null"> #{period,jdbcType=INTEGER}, </if> </trim> </insert> <select id="countByExample" parameterType="pwc.taxtech.atms.analysis.entity.AnalysisSalesExample" resultType="java.lang.Long"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> select count(*) from analysis_sales <if test="_parameter != null"> <include refid="Example_Where_Clause" /> </if> </select> <update id="updateByExampleSelective" parameterType="map"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> update analysis_sales <set> <if test="record.id != null"> id = #{record.id,jdbcType=BIGINT}, </if> <if test="record.seqNo != null"> seq_no = #{record.seqNo,jdbcType=VARCHAR}, </if> <if test="record.segment1 != null"> segment_1 = #{record.segment1,jdbcType=DECIMAL}, </if> <if test="record.segment2 != null"> segment_2 = #{record.segment2,jdbcType=DECIMAL}, </if> <if test="record.segment3 != null"> segment_3 = #{record.segment3,jdbcType=DECIMAL}, </if> <if test="record.segment4 != null"> segment_4 = #{record.segment4,jdbcType=DECIMAL}, </if> <if test="record.segment5 != null"> segment_5 = #{record.segment5,jdbcType=DECIMAL}, </if> <if test="record.segment6 != null"> segment_6 = #{record.segment6,jdbcType=DECIMAL}, </if> <if test="record.segment7 != null"> segment_7 = #{record.segment7,jdbcType=DECIMAL}, </if> <if test="record.segment8 != null"> segment_8 = #{record.segment8,jdbcType=DECIMAL}, </if> <if test="record.segment9 != null"> segment_9 = #{record.segment9,jdbcType=DECIMAL}, </if> <if test="record.segment10 != null"> segment_10 = #{record.segment10,jdbcType=DECIMAL}, </if> <if test="record.segment11 != null"> segment_11 = #{record.segment11,jdbcType=DECIMAL}, </if> <if test="record.segment12 != null"> segment_12 = #{record.segment12,jdbcType=DECIMAL}, </if> <if test="record.segment13 != null"> segment_13 = #{record.segment13,jdbcType=DECIMAL}, </if> <if test="record.segment14 != null"> segment_14 = #{record.segment14,jdbcType=DECIMAL}, </if> <if test="record.segment15 != null"> segment_15 = #{record.segment15,jdbcType=DECIMAL}, </if> <if test="record.segment16 != null"> segment_16 = #{record.segment16,jdbcType=DECIMAL}, </if> <if test="record.segment17 != null"> segment_17 = #{record.segment17,jdbcType=DECIMAL}, </if> <if test="record.createTime != null"> create_time = #{record.createTime,jdbcType=TIMESTAMP}, </if> <if test="record.updateTime != null"> update_time = #{record.updateTime,jdbcType=TIMESTAMP}, </if> <if test="record.organizationId != null"> organization_id = #{record.organizationId,jdbcType=VARCHAR}, </if> <if test="record.companyName != null"> company_name = #{record.companyName,jdbcType=VARCHAR}, </if> <if test="record.period != null"> period = #{record.period,jdbcType=INTEGER}, </if> </set> <if test="_parameter != null"> <include refid="Update_By_Example_Where_Clause" /> </if> </update> <update id="updateByExample" parameterType="map"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> update analysis_sales set id = #{record.id,jdbcType=BIGINT}, seq_no = #{record.seqNo,jdbcType=VARCHAR}, segment_1 = #{record.segment1,jdbcType=DECIMAL}, segment_2 = #{record.segment2,jdbcType=DECIMAL}, segment_3 = #{record.segment3,jdbcType=DECIMAL}, segment_4 = #{record.segment4,jdbcType=DECIMAL}, segment_5 = #{record.segment5,jdbcType=DECIMAL}, segment_6 = #{record.segment6,jdbcType=DECIMAL}, segment_7 = #{record.segment7,jdbcType=DECIMAL}, segment_8 = #{record.segment8,jdbcType=DECIMAL}, segment_9 = #{record.segment9,jdbcType=DECIMAL}, segment_10 = #{record.segment10,jdbcType=DECIMAL}, segment_11 = #{record.segment11,jdbcType=DECIMAL}, segment_12 = #{record.segment12,jdbcType=DECIMAL}, segment_13 = #{record.segment13,jdbcType=DECIMAL}, segment_14 = #{record.segment14,jdbcType=DECIMAL}, segment_15 = #{record.segment15,jdbcType=DECIMAL}, segment_16 = #{record.segment16,jdbcType=DECIMAL}, segment_17 = #{record.segment17,jdbcType=DECIMAL}, create_time = #{record.createTime,jdbcType=TIMESTAMP}, update_time = #{record.updateTime,jdbcType=TIMESTAMP}, organization_id = #{record.organizationId,jdbcType=VARCHAR}, company_name = #{record.companyName,jdbcType=VARCHAR}, period = #{record.period,jdbcType=INTEGER} <if test="_parameter != null"> <include refid="Update_By_Example_Where_Clause" /> </if> </update> <update id="updateByPrimaryKeySelective" parameterType="pwc.taxtech.atms.analysis.entity.AnalysisSales"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> update analysis_sales <set> <if test="seqNo != null"> seq_no = #{seqNo,jdbcType=VARCHAR}, </if> <if test="segment1 != null"> segment_1 = #{segment1,jdbcType=DECIMAL}, </if> <if test="segment2 != null"> segment_2 = #{segment2,jdbcType=DECIMAL}, </if> <if test="segment3 != null"> segment_3 = #{segment3,jdbcType=DECIMAL}, </if> <if test="segment4 != null"> segment_4 = #{segment4,jdbcType=DECIMAL}, </if> <if test="segment5 != null"> segment_5 = #{segment5,jdbcType=DECIMAL}, </if> <if test="segment6 != null"> segment_6 = #{segment6,jdbcType=DECIMAL}, </if> <if test="segment7 != null"> segment_7 = #{segment7,jdbcType=DECIMAL}, </if> <if test="segment8 != null"> segment_8 = #{segment8,jdbcType=DECIMAL}, </if> <if test="segment9 != null"> segment_9 = #{segment9,jdbcType=DECIMAL}, </if> <if test="segment10 != null"> segment_10 = #{segment10,jdbcType=DECIMAL}, </if> <if test="segment11 != null"> segment_11 = #{segment11,jdbcType=DECIMAL}, </if> <if test="segment12 != null"> segment_12 = #{segment12,jdbcType=DECIMAL}, </if> <if test="segment13 != null"> segment_13 = #{segment13,jdbcType=DECIMAL}, </if> <if test="segment14 != null"> segment_14 = #{segment14,jdbcType=DECIMAL}, </if> <if test="segment15 != null"> segment_15 = #{segment15,jdbcType=DECIMAL}, </if> <if test="segment16 != null"> segment_16 = #{segment16,jdbcType=DECIMAL}, </if> <if test="segment17 != null"> segment_17 = #{segment17,jdbcType=DECIMAL}, </if> <if test="createTime != null"> create_time = #{createTime,jdbcType=TIMESTAMP}, </if> <if test="updateTime != null"> update_time = #{updateTime,jdbcType=TIMESTAMP}, </if> <if test="organizationId != null"> organization_id = #{organizationId,jdbcType=VARCHAR}, </if> <if test="companyName != null"> company_name = #{companyName,jdbcType=VARCHAR}, </if> <if test="period != null"> period = #{period,jdbcType=INTEGER}, </if> </set> where id = #{id,jdbcType=BIGINT} </update> <update id="updateByPrimaryKey" parameterType="pwc.taxtech.atms.analysis.entity.AnalysisSales"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> update analysis_sales set seq_no = #{seqNo,jdbcType=VARCHAR}, segment_1 = #{segment1,jdbcType=DECIMAL}, segment_2 = #{segment2,jdbcType=DECIMAL}, segment_3 = #{segment3,jdbcType=DECIMAL}, segment_4 = #{segment4,jdbcType=DECIMAL}, segment_5 = #{segment5,jdbcType=DECIMAL}, segment_6 = #{segment6,jdbcType=DECIMAL}, segment_7 = #{segment7,jdbcType=DECIMAL}, segment_8 = #{segment8,jdbcType=DECIMAL}, segment_9 = #{segment9,jdbcType=DECIMAL}, segment_10 = #{segment10,jdbcType=DECIMAL}, segment_11 = #{segment11,jdbcType=DECIMAL}, segment_12 = #{segment12,jdbcType=DECIMAL}, segment_13 = #{segment13,jdbcType=DECIMAL}, segment_14 = #{segment14,jdbcType=DECIMAL}, segment_15 = #{segment15,jdbcType=DECIMAL}, segment_16 = #{segment16,jdbcType=DECIMAL}, segment_17 = #{segment17,jdbcType=DECIMAL}, create_time = #{createTime,jdbcType=TIMESTAMP}, update_time = #{updateTime,jdbcType=TIMESTAMP}, organization_id = #{organizationId,jdbcType=VARCHAR}, company_name = #{companyName,jdbcType=VARCHAR}, period = #{period,jdbcType=INTEGER} where id = #{id,jdbcType=BIGINT} </update> <select id="selectByExampleWithRowbounds" parameterType="pwc.taxtech.atms.analysis.entity.AnalysisSalesExample" resultMap="BaseResultMap"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> select <if test="distinct"> distinct </if> <include refid="Base_Column_List" /> from analysis_sales <if test="_parameter != null"> <include refid="Example_Where_Clause" /> </if> <if test="orderByClause != null"> order by ${orderByClause} </if> </select> </mapper>