<?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.vat.dao.AccountRemapSumMapper"> <resultMap id="BaseResultMap" type="pwc.taxtech.atms.vat.entity.AccountRemapSum"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> <id column="ACCOUNT_REMAP_SUM_ID" jdbcType="VARCHAR" property="accountRemapSumId" /> <result column="PERIOD" jdbcType="DECIMAL" property="period" /> <result column="ACCT_CODE" jdbcType="VARCHAR" property="acctCode" /> <result column="PARENT" jdbcType="VARCHAR" property="parent" /> <result column="ACCT_LEVEL" jdbcType="DECIMAL" property="acctLevel" /> <result column="REMAP_DEBIT" jdbcType="DECIMAL" property="remapDebit" /> <result column="REMAP_CREDIT" jdbcType="DECIMAL" property="remapCredit" /> <result column="CREATE_TIME" jdbcType="TIMESTAMP" property="createTime" /> <result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" /> <result column="CREATOR_ID" jdbcType="VARCHAR" property="creatorId" /> </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. --> ACCOUNT_REMAP_SUM_ID, PERIOD, ACCT_CODE, PARENT, ACCT_LEVEL, REMAP_DEBIT, REMAP_CREDIT, CREATE_TIME, UPDATE_TIME, CREATOR_ID </sql> <select id="selectByExample" parameterType="pwc.taxtech.atms.vat.entity.AccountRemapSumExample" 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 ACCOUNT_REMAP_SUM <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.String" resultMap="BaseResultMap"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> select <include refid="Base_Column_List" /> from ACCOUNT_REMAP_SUM where ACCOUNT_REMAP_SUM_ID = #{accountRemapSumId,jdbcType=VARCHAR} </select> <delete id="deleteByPrimaryKey" parameterType="java.lang.String"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> delete from ACCOUNT_REMAP_SUM where ACCOUNT_REMAP_SUM_ID = #{accountRemapSumId,jdbcType=VARCHAR} </delete> <delete id="deleteByExample" parameterType="pwc.taxtech.atms.vat.entity.AccountRemapSumExample"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> delete from ACCOUNT_REMAP_SUM <if test="_parameter != null"> <include refid="Example_Where_Clause" /> </if> </delete> <insert id="insert" parameterType="pwc.taxtech.atms.vat.entity.AccountRemapSum"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> insert into ACCOUNT_REMAP_SUM (ACCOUNT_REMAP_SUM_ID, PERIOD, ACCT_CODE, PARENT, ACCT_LEVEL, REMAP_DEBIT, REMAP_CREDIT, CREATE_TIME, UPDATE_TIME, CREATOR_ID) values (#{accountRemapSumId,jdbcType=VARCHAR}, #{period,jdbcType=DECIMAL}, #{acctCode,jdbcType=VARCHAR}, #{parent,jdbcType=VARCHAR}, #{acctLevel,jdbcType=DECIMAL}, #{remapDebit,jdbcType=DECIMAL}, #{remapCredit,jdbcType=DECIMAL}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{creatorId,jdbcType=VARCHAR}) </insert> <insert id="insertSelective" parameterType="pwc.taxtech.atms.vat.entity.AccountRemapSum"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> insert into ACCOUNT_REMAP_SUM <trim prefix="(" suffix=")" suffixOverrides=","> <if test="accountRemapSumId != null"> ACCOUNT_REMAP_SUM_ID, </if> <if test="period != null"> PERIOD, </if> <if test="acctCode != null"> ACCT_CODE, </if> <if test="parent != null"> PARENT, </if> <if test="acctLevel != null"> ACCT_LEVEL, </if> <if test="remapDebit != null"> REMAP_DEBIT, </if> <if test="remapCredit != null"> REMAP_CREDIT, </if> <if test="createTime != null"> CREATE_TIME, </if> <if test="updateTime != null"> UPDATE_TIME, </if> <if test="creatorId != null"> CREATOR_ID, </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="accountRemapSumId != null"> #{accountRemapSumId,jdbcType=VARCHAR}, </if> <if test="period != null"> #{period,jdbcType=DECIMAL}, </if> <if test="acctCode != null"> #{acctCode,jdbcType=VARCHAR}, </if> <if test="parent != null"> #{parent,jdbcType=VARCHAR}, </if> <if test="acctLevel != null"> #{acctLevel,jdbcType=DECIMAL}, </if> <if test="remapDebit != null"> #{remapDebit,jdbcType=DECIMAL}, </if> <if test="remapCredit != null"> #{remapCredit,jdbcType=DECIMAL}, </if> <if test="createTime != null"> #{createTime,jdbcType=TIMESTAMP}, </if> <if test="updateTime != null"> #{updateTime,jdbcType=TIMESTAMP}, </if> <if test="creatorId != null"> #{creatorId,jdbcType=VARCHAR}, </if> </trim> </insert> <select id="countByExample" parameterType="pwc.taxtech.atms.vat.entity.AccountRemapSumExample" resultType="java.lang.Long"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> select count(*) from ACCOUNT_REMAP_SUM <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 ACCOUNT_REMAP_SUM <set> <if test="record.accountRemapSumId != null"> ACCOUNT_REMAP_SUM_ID = #{record.accountRemapSumId,jdbcType=VARCHAR}, </if> <if test="record.period != null"> PERIOD = #{record.period,jdbcType=DECIMAL}, </if> <if test="record.acctCode != null"> ACCT_CODE = #{record.acctCode,jdbcType=VARCHAR}, </if> <if test="record.parent != null"> PARENT = #{record.parent,jdbcType=VARCHAR}, </if> <if test="record.acctLevel != null"> ACCT_LEVEL = #{record.acctLevel,jdbcType=DECIMAL}, </if> <if test="record.remapDebit != null"> REMAP_DEBIT = #{record.remapDebit,jdbcType=DECIMAL}, </if> <if test="record.remapCredit != null"> REMAP_CREDIT = #{record.remapCredit,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.creatorId != null"> CREATOR_ID = #{record.creatorId,jdbcType=VARCHAR}, </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 ACCOUNT_REMAP_SUM set ACCOUNT_REMAP_SUM_ID = #{record.accountRemapSumId,jdbcType=VARCHAR}, PERIOD = #{record.period,jdbcType=DECIMAL}, ACCT_CODE = #{record.acctCode,jdbcType=VARCHAR}, PARENT = #{record.parent,jdbcType=VARCHAR}, ACCT_LEVEL = #{record.acctLevel,jdbcType=DECIMAL}, REMAP_DEBIT = #{record.remapDebit,jdbcType=DECIMAL}, REMAP_CREDIT = #{record.remapCredit,jdbcType=DECIMAL}, CREATE_TIME = #{record.createTime,jdbcType=TIMESTAMP}, UPDATE_TIME = #{record.updateTime,jdbcType=TIMESTAMP}, CREATOR_ID = #{record.creatorId,jdbcType=VARCHAR} <if test="_parameter != null"> <include refid="Update_By_Example_Where_Clause" /> </if> </update> <update id="updateByPrimaryKeySelective" parameterType="pwc.taxtech.atms.vat.entity.AccountRemapSum"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> update ACCOUNT_REMAP_SUM <set> <if test="period != null"> PERIOD = #{period,jdbcType=DECIMAL}, </if> <if test="acctCode != null"> ACCT_CODE = #{acctCode,jdbcType=VARCHAR}, </if> <if test="parent != null"> PARENT = #{parent,jdbcType=VARCHAR}, </if> <if test="acctLevel != null"> ACCT_LEVEL = #{acctLevel,jdbcType=DECIMAL}, </if> <if test="remapDebit != null"> REMAP_DEBIT = #{remapDebit,jdbcType=DECIMAL}, </if> <if test="remapCredit != null"> REMAP_CREDIT = #{remapCredit,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="creatorId != null"> CREATOR_ID = #{creatorId,jdbcType=VARCHAR}, </if> </set> where ACCOUNT_REMAP_SUM_ID = #{accountRemapSumId,jdbcType=VARCHAR} </update> <update id="updateByPrimaryKey" parameterType="pwc.taxtech.atms.vat.entity.AccountRemapSum"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> update ACCOUNT_REMAP_SUM set PERIOD = #{period,jdbcType=DECIMAL}, ACCT_CODE = #{acctCode,jdbcType=VARCHAR}, PARENT = #{parent,jdbcType=VARCHAR}, ACCT_LEVEL = #{acctLevel,jdbcType=DECIMAL}, REMAP_DEBIT = #{remapDebit,jdbcType=DECIMAL}, REMAP_CREDIT = #{remapCredit,jdbcType=DECIMAL}, CREATE_TIME = #{createTime,jdbcType=TIMESTAMP}, UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP}, CREATOR_ID = #{creatorId,jdbcType=VARCHAR} where ACCOUNT_REMAP_SUM_ID = #{accountRemapSumId,jdbcType=VARCHAR} </update> <select id="selectByExampleWithRowbounds" parameterType="pwc.taxtech.atms.vat.entity.AccountRemapSumExample" 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 ACCOUNT_REMAP_SUM <if test="_parameter != null"> <include refid="Example_Where_Clause" /> </if> <if test="orderByClause != null"> order by ${orderByClause} </if> </select> </mapper>