<?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.JournalEntryMapper"> <resultMap id="BaseResultMap" type="pwc.taxtech.atms.vat.entity.JournalEntry"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> <id column="id" jdbcType="BIGINT" property="id" /> <result column="organization_id" jdbcType="VARCHAR" property="organizationId" /> <result column="project_id" jdbcType="VARCHAR" property="projectId" /> <result column="date" jdbcType="TIMESTAMP" property="date" /> <result column="source" jdbcType="VARCHAR" property="source" /> <result column="ledger_id" jdbcType="VARCHAR" property="ledgerId" /> <result column="ledger_name" jdbcType="VARCHAR" property="ledgerName" /> <result column="currency_code" jdbcType="VARCHAR" property="currencyCode" /> <result column="status" jdbcType="VARCHAR" property="status" /> <result column="header_id" jdbcType="VARCHAR" property="headerId" /> <result column="line_num" jdbcType="VARCHAR" property="lineNum" /> <result column="approval_status" jdbcType="VARCHAR" property="approvalStatus" /> <result column="posted_status" jdbcType="VARCHAR" property="postedStatus" /> <result column="tms_period" jdbcType="INTEGER" property="tmsPeriod" /> <result column="period" jdbcType="INTEGER" property="period" /> <result column="accounting_date" jdbcType="TIMESTAMP" property="accountingDate" /> <result column="journal_source" jdbcType="VARCHAR" property="journalSource" /> <result column="category" jdbcType="VARCHAR" property="category" /> <result column="name" jdbcType="VARCHAR" property="name" /> <result column="voucher_num" jdbcType="VARCHAR" property="voucherNum" /> <result column="description" jdbcType="VARCHAR" property="description" /> <result column="segment1" jdbcType="VARCHAR" property="segment1" /> <result column="segment2" jdbcType="VARCHAR" property="segment2" /> <result column="segment3" jdbcType="VARCHAR" property="segment3" /> <result column="segment4" jdbcType="VARCHAR" property="segment4" /> <result column="segment5" jdbcType="VARCHAR" property="segment5" /> <result column="segment6" jdbcType="VARCHAR" property="segment6" /> <result column="segment7" jdbcType="VARCHAR" property="segment7" /> <result column="segment8" jdbcType="VARCHAR" property="segment8" /> <result column="segment9" jdbcType="VARCHAR" property="segment9" /> <result column="segment10" jdbcType="VARCHAR" property="segment10" /> <result column="segment1_name" jdbcType="VARCHAR" property="segment1Name" /> <result column="segment2_name" jdbcType="VARCHAR" property="segment2Name" /> <result column="segment3_name" jdbcType="VARCHAR" property="segment3Name" /> <result column="segment4_name" jdbcType="VARCHAR" property="segment4Name" /> <result column="segment5_name" jdbcType="VARCHAR" property="segment5Name" /> <result column="segment6_name" jdbcType="VARCHAR" property="segment6Name" /> <result column="segment7_name" jdbcType="VARCHAR" property="segment7Name" /> <result column="segment8_name" jdbcType="VARCHAR" property="segment8Name" /> <result column="segment9_name" jdbcType="VARCHAR" property="segment9Name" /> <result column="segment10_name" jdbcType="VARCHAR" property="segment10Name" /> <result column="journal_currency_code" jdbcType="VARCHAR" property="journalCurrencyCode" /> <result column="sob_currency_code" jdbcType="VARCHAR" property="sobCurrencyCode" /> <result column="accounted_dr" jdbcType="DECIMAL" property="accountedDr" /> <result column="accounted_cr" jdbcType="DECIMAL" property="accountedCr" /> <result column="entered_dr" jdbcType="DECIMAL" property="enteredDr" /> <result column="entered_cr" jdbcType="DECIMAL" property="enteredCr" /> <result column="cf_item" jdbcType="VARCHAR" property="cfItem" /> <result column="attribute1" jdbcType="VARCHAR" property="attribute1" /> <result column="attribute2" jdbcType="TIMESTAMP" property="attribute2" /> <result column="attribute3" jdbcType="VARCHAR" property="attribute3" /> <result column="attribute4" jdbcType="VARCHAR" property="attribute4" /> <result column="attribute5" jdbcType="VARCHAR" property="attribute5" /> <result column="attribute6" jdbcType="VARCHAR" property="attribute6" /> <result column="attribute7" jdbcType="VARCHAR" property="attribute7" /> <result column="attribute8" jdbcType="VARCHAR" property="attribute8" /> <result column="attribute9" jdbcType="VARCHAR" property="attribute9" /> <result column="attribute10" jdbcType="VARCHAR" property="attribute10" /> <result column="attribute11" jdbcType="VARCHAR" property="attribute11" /> <result column="attribute12" jdbcType="VARCHAR" property="attribute12" /> <result column="attribute13" jdbcType="VARCHAR" property="attribute13" /> <result column="attribute14" jdbcType="VARCHAR" property="attribute14" /> <result column="attribute15" jdbcType="VARCHAR" property="attribute15" /> <result column="attribute16" jdbcType="VARCHAR" property="attribute16" /> <result column="created_by" jdbcType="VARCHAR" property="createdBy" /> <result column="created_date" jdbcType="TIMESTAMP" property="createdDate" /> <result column="late_updated_by" jdbcType="VARCHAR" property="lateUpdatedBy" /> <result column="late_updated_date" jdbcType="TIMESTAMP" property="lateUpdatedDate" /> <result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> </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, organization_id, project_id, `date`, `source`, ledger_id, ledger_name, currency_code, `status`, header_id, line_num, approval_status, posted_status, tms_period, period, accounting_date, journal_source, category, `name`, voucher_num, description, segment1, segment2, segment3, segment4, segment5, segment6, segment7, segment8, segment9, segment10, segment1_name, segment2_name, segment3_name, segment4_name, segment5_name, segment6_name, segment7_name, segment8_name, segment9_name, segment10_name, journal_currency_code, sob_currency_code, accounted_dr, accounted_cr, entered_dr, entered_cr, cf_item, attribute1, attribute2, attribute3, attribute4, attribute5, attribute6, attribute7, attribute8, attribute9, attribute10, attribute11, attribute12, attribute13, attribute14, attribute15, attribute16, created_by, created_date, late_updated_by, late_updated_date, create_time, update_time </sql> <select id="selectByExample" parameterType="pwc.taxtech.atms.vat.entity.JournalEntryExample" 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 journal_entry <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 journal_entry 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 journal_entry where id = #{id,jdbcType=BIGINT} </delete> <delete id="deleteByExample" parameterType="pwc.taxtech.atms.vat.entity.JournalEntryExample"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> delete from journal_entry <if test="_parameter != null"> <include refid="Example_Where_Clause" /> </if> </delete> <insert id="insert" parameterType="pwc.taxtech.atms.vat.entity.JournalEntry"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> insert into journal_entry (id, organization_id, project_id, `date`, `source`, ledger_id, ledger_name, currency_code, `status`, header_id, line_num, approval_status, posted_status, tms_period, period, accounting_date, journal_source, category, `name`, voucher_num, description, segment1, segment2, segment3, segment4, segment5, segment6, segment7, segment8, segment9, segment10, segment1_name, segment2_name, segment3_name, segment4_name, segment5_name, segment6_name, segment7_name, segment8_name, segment9_name, segment10_name, journal_currency_code, sob_currency_code, accounted_dr, accounted_cr, entered_dr, entered_cr, cf_item, attribute1, attribute2, attribute3, attribute4, attribute5, attribute6, attribute7, attribute8, attribute9, attribute10, attribute11, attribute12, attribute13, attribute14, attribute15, attribute16, created_by, created_date, late_updated_by, late_updated_date, create_time, update_time) values (#{id,jdbcType=BIGINT}, #{organizationId,jdbcType=VARCHAR}, #{projectId,jdbcType=VARCHAR}, #{date,jdbcType=TIMESTAMP}, #{source,jdbcType=VARCHAR}, #{ledgerId,jdbcType=VARCHAR}, #{ledgerName,jdbcType=VARCHAR}, #{currencyCode,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{headerId,jdbcType=VARCHAR}, #{lineNum,jdbcType=VARCHAR}, #{approvalStatus,jdbcType=VARCHAR}, #{postedStatus,jdbcType=VARCHAR}, #{tmsPeriod,jdbcType=INTEGER}, #{period,jdbcType=INTEGER}, #{accountingDate,jdbcType=TIMESTAMP}, #{journalSource,jdbcType=VARCHAR}, #{category,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{voucherNum,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, #{segment1,jdbcType=VARCHAR}, #{segment2,jdbcType=VARCHAR}, #{segment3,jdbcType=VARCHAR}, #{segment4,jdbcType=VARCHAR}, #{segment5,jdbcType=VARCHAR}, #{segment6,jdbcType=VARCHAR}, #{segment7,jdbcType=VARCHAR}, #{segment8,jdbcType=VARCHAR}, #{segment9,jdbcType=VARCHAR}, #{segment10,jdbcType=VARCHAR}, #{segment1Name,jdbcType=VARCHAR}, #{segment2Name,jdbcType=VARCHAR}, #{segment3Name,jdbcType=VARCHAR}, #{segment4Name,jdbcType=VARCHAR}, #{segment5Name,jdbcType=VARCHAR}, #{segment6Name,jdbcType=VARCHAR}, #{segment7Name,jdbcType=VARCHAR}, #{segment8Name,jdbcType=VARCHAR}, #{segment9Name,jdbcType=VARCHAR}, #{segment10Name,jdbcType=VARCHAR}, #{journalCurrencyCode,jdbcType=VARCHAR}, #{sobCurrencyCode,jdbcType=VARCHAR}, #{accountedDr,jdbcType=DECIMAL}, #{accountedCr,jdbcType=DECIMAL}, #{enteredDr,jdbcType=DECIMAL}, #{enteredCr,jdbcType=DECIMAL}, #{cfItem,jdbcType=VARCHAR}, #{attribute1,jdbcType=VARCHAR}, #{attribute2,jdbcType=TIMESTAMP}, #{attribute3,jdbcType=VARCHAR}, #{attribute4,jdbcType=VARCHAR}, #{attribute5,jdbcType=VARCHAR}, #{attribute6,jdbcType=VARCHAR}, #{attribute7,jdbcType=VARCHAR}, #{attribute8,jdbcType=VARCHAR}, #{attribute9,jdbcType=VARCHAR}, #{attribute10,jdbcType=VARCHAR}, #{attribute11,jdbcType=VARCHAR}, #{attribute12,jdbcType=VARCHAR}, #{attribute13,jdbcType=VARCHAR}, #{attribute14,jdbcType=VARCHAR}, #{attribute15,jdbcType=VARCHAR}, #{attribute16,jdbcType=VARCHAR}, #{createdBy,jdbcType=VARCHAR}, #{createdDate,jdbcType=TIMESTAMP}, #{lateUpdatedBy,jdbcType=VARCHAR}, #{lateUpdatedDate,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}) </insert> <insert id="insertSelective" parameterType="pwc.taxtech.atms.vat.entity.JournalEntry"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> insert into journal_entry <trim prefix="(" suffix=")" suffixOverrides=","> <if test="id != null"> id, </if> <if test="organizationId != null"> organization_id, </if> <if test="projectId != null"> project_id, </if> <if test="date != null"> `date`, </if> <if test="source != null"> `source`, </if> <if test="ledgerId != null"> ledger_id, </if> <if test="ledgerName != null"> ledger_name, </if> <if test="currencyCode != null"> currency_code, </if> <if test="status != null"> `status`, </if> <if test="headerId != null"> header_id, </if> <if test="lineNum != null"> line_num, </if> <if test="approvalStatus != null"> approval_status, </if> <if test="postedStatus != null"> posted_status, </if> <if test="tmsPeriod != null"> tms_period, </if> <if test="period != null"> period, </if> <if test="accountingDate != null"> accounting_date, </if> <if test="journalSource != null"> journal_source, </if> <if test="category != null"> category, </if> <if test="name != null"> `name`, </if> <if test="voucherNum != null"> voucher_num, </if> <if test="description != null"> description, </if> <if test="segment1 != null"> segment1, </if> <if test="segment2 != null"> segment2, </if> <if test="segment3 != null"> segment3, </if> <if test="segment4 != null"> segment4, </if> <if test="segment5 != null"> segment5, </if> <if test="segment6 != null"> segment6, </if> <if test="segment7 != null"> segment7, </if> <if test="segment8 != null"> segment8, </if> <if test="segment9 != null"> segment9, </if> <if test="segment10 != null"> segment10, </if> <if test="segment1Name != null"> segment1_name, </if> <if test="segment2Name != null"> segment2_name, </if> <if test="segment3Name != null"> segment3_name, </if> <if test="segment4Name != null"> segment4_name, </if> <if test="segment5Name != null"> segment5_name, </if> <if test="segment6Name != null"> segment6_name, </if> <if test="segment7Name != null"> segment7_name, </if> <if test="segment8Name != null"> segment8_name, </if> <if test="segment9Name != null"> segment9_name, </if> <if test="segment10Name != null"> segment10_name, </if> <if test="journalCurrencyCode != null"> journal_currency_code, </if> <if test="sobCurrencyCode != null"> sob_currency_code, </if> <if test="accountedDr != null"> accounted_dr, </if> <if test="accountedCr != null"> accounted_cr, </if> <if test="enteredDr != null"> entered_dr, </if> <if test="enteredCr != null"> entered_cr, </if> <if test="cfItem != null"> cf_item, </if> <if test="attribute1 != null"> attribute1, </if> <if test="attribute2 != null"> attribute2, </if> <if test="attribute3 != null"> attribute3, </if> <if test="attribute4 != null"> attribute4, </if> <if test="attribute5 != null"> attribute5, </if> <if test="attribute6 != null"> attribute6, </if> <if test="attribute7 != null"> attribute7, </if> <if test="attribute8 != null"> attribute8, </if> <if test="attribute9 != null"> attribute9, </if> <if test="attribute10 != null"> attribute10, </if> <if test="attribute11 != null"> attribute11, </if> <if test="attribute12 != null"> attribute12, </if> <if test="attribute13 != null"> attribute13, </if> <if test="attribute14 != null"> attribute14, </if> <if test="attribute15 != null"> attribute15, </if> <if test="attribute16 != null"> attribute16, </if> <if test="createdBy != null"> created_by, </if> <if test="createdDate != null"> created_date, </if> <if test="lateUpdatedBy != null"> late_updated_by, </if> <if test="lateUpdatedDate != null"> late_updated_date, </if> <if test="createTime != null"> create_time, </if> <if test="updateTime != null"> update_time, </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="id != null"> #{id,jdbcType=BIGINT}, </if> <if test="organizationId != null"> #{organizationId,jdbcType=VARCHAR}, </if> <if test="projectId != null"> #{projectId,jdbcType=VARCHAR}, </if> <if test="date != null"> #{date,jdbcType=TIMESTAMP}, </if> <if test="source != null"> #{source,jdbcType=VARCHAR}, </if> <if test="ledgerId != null"> #{ledgerId,jdbcType=VARCHAR}, </if> <if test="ledgerName != null"> #{ledgerName,jdbcType=VARCHAR}, </if> <if test="currencyCode != null"> #{currencyCode,jdbcType=VARCHAR}, </if> <if test="status != null"> #{status,jdbcType=VARCHAR}, </if> <if test="headerId != null"> #{headerId,jdbcType=VARCHAR}, </if> <if test="lineNum != null"> #{lineNum,jdbcType=VARCHAR}, </if> <if test="approvalStatus != null"> #{approvalStatus,jdbcType=VARCHAR}, </if> <if test="postedStatus != null"> #{postedStatus,jdbcType=VARCHAR}, </if> <if test="tmsPeriod != null"> #{tmsPeriod,jdbcType=INTEGER}, </if> <if test="period != null"> #{period,jdbcType=INTEGER}, </if> <if test="accountingDate != null"> #{accountingDate,jdbcType=TIMESTAMP}, </if> <if test="journalSource != null"> #{journalSource,jdbcType=VARCHAR}, </if> <if test="category != null"> #{category,jdbcType=VARCHAR}, </if> <if test="name != null"> #{name,jdbcType=VARCHAR}, </if> <if test="voucherNum != null"> #{voucherNum,jdbcType=VARCHAR}, </if> <if test="description != null"> #{description,jdbcType=VARCHAR}, </if> <if test="segment1 != null"> #{segment1,jdbcType=VARCHAR}, </if> <if test="segment2 != null"> #{segment2,jdbcType=VARCHAR}, </if> <if test="segment3 != null"> #{segment3,jdbcType=VARCHAR}, </if> <if test="segment4 != null"> #{segment4,jdbcType=VARCHAR}, </if> <if test="segment5 != null"> #{segment5,jdbcType=VARCHAR}, </if> <if test="segment6 != null"> #{segment6,jdbcType=VARCHAR}, </if> <if test="segment7 != null"> #{segment7,jdbcType=VARCHAR}, </if> <if test="segment8 != null"> #{segment8,jdbcType=VARCHAR}, </if> <if test="segment9 != null"> #{segment9,jdbcType=VARCHAR}, </if> <if test="segment10 != null"> #{segment10,jdbcType=VARCHAR}, </if> <if test="segment1Name != null"> #{segment1Name,jdbcType=VARCHAR}, </if> <if test="segment2Name != null"> #{segment2Name,jdbcType=VARCHAR}, </if> <if test="segment3Name != null"> #{segment3Name,jdbcType=VARCHAR}, </if> <if test="segment4Name != null"> #{segment4Name,jdbcType=VARCHAR}, </if> <if test="segment5Name != null"> #{segment5Name,jdbcType=VARCHAR}, </if> <if test="segment6Name != null"> #{segment6Name,jdbcType=VARCHAR}, </if> <if test="segment7Name != null"> #{segment7Name,jdbcType=VARCHAR}, </if> <if test="segment8Name != null"> #{segment8Name,jdbcType=VARCHAR}, </if> <if test="segment9Name != null"> #{segment9Name,jdbcType=VARCHAR}, </if> <if test="segment10Name != null"> #{segment10Name,jdbcType=VARCHAR}, </if> <if test="journalCurrencyCode != null"> #{journalCurrencyCode,jdbcType=VARCHAR}, </if> <if test="sobCurrencyCode != null"> #{sobCurrencyCode,jdbcType=VARCHAR}, </if> <if test="accountedDr != null"> #{accountedDr,jdbcType=DECIMAL}, </if> <if test="accountedCr != null"> #{accountedCr,jdbcType=DECIMAL}, </if> <if test="enteredDr != null"> #{enteredDr,jdbcType=DECIMAL}, </if> <if test="enteredCr != null"> #{enteredCr,jdbcType=DECIMAL}, </if> <if test="cfItem != null"> #{cfItem,jdbcType=VARCHAR}, </if> <if test="attribute1 != null"> #{attribute1,jdbcType=VARCHAR}, </if> <if test="attribute2 != null"> #{attribute2,jdbcType=TIMESTAMP}, </if> <if test="attribute3 != null"> #{attribute3,jdbcType=VARCHAR}, </if> <if test="attribute4 != null"> #{attribute4,jdbcType=VARCHAR}, </if> <if test="attribute5 != null"> #{attribute5,jdbcType=VARCHAR}, </if> <if test="attribute6 != null"> #{attribute6,jdbcType=VARCHAR}, </if> <if test="attribute7 != null"> #{attribute7,jdbcType=VARCHAR}, </if> <if test="attribute8 != null"> #{attribute8,jdbcType=VARCHAR}, </if> <if test="attribute9 != null"> #{attribute9,jdbcType=VARCHAR}, </if> <if test="attribute10 != null"> #{attribute10,jdbcType=VARCHAR}, </if> <if test="attribute11 != null"> #{attribute11,jdbcType=VARCHAR}, </if> <if test="attribute12 != null"> #{attribute12,jdbcType=VARCHAR}, </if> <if test="attribute13 != null"> #{attribute13,jdbcType=VARCHAR}, </if> <if test="attribute14 != null"> #{attribute14,jdbcType=VARCHAR}, </if> <if test="attribute15 != null"> #{attribute15,jdbcType=VARCHAR}, </if> <if test="attribute16 != null"> #{attribute16,jdbcType=VARCHAR}, </if> <if test="createdBy != null"> #{createdBy,jdbcType=VARCHAR}, </if> <if test="createdDate != null"> #{createdDate,jdbcType=TIMESTAMP}, </if> <if test="lateUpdatedBy != null"> #{lateUpdatedBy,jdbcType=VARCHAR}, </if> <if test="lateUpdatedDate != null"> #{lateUpdatedDate,jdbcType=TIMESTAMP}, </if> <if test="createTime != null"> #{createTime,jdbcType=TIMESTAMP}, </if> <if test="updateTime != null"> #{updateTime,jdbcType=TIMESTAMP}, </if> </trim> </insert> <select id="countByExample" parameterType="pwc.taxtech.atms.vat.entity.JournalEntryExample" resultType="java.lang.Long"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> select count(*) from journal_entry <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 journal_entry <set> <if test="record.id != null"> id = #{record.id,jdbcType=BIGINT}, </if> <if test="record.organizationId != null"> organization_id = #{record.organizationId,jdbcType=VARCHAR}, </if> <if test="record.projectId != null"> project_id = #{record.projectId,jdbcType=VARCHAR}, </if> <if test="record.date != null"> `date` = #{record.date,jdbcType=TIMESTAMP}, </if> <if test="record.source != null"> `source` = #{record.source,jdbcType=VARCHAR}, </if> <if test="record.ledgerId != null"> ledger_id = #{record.ledgerId,jdbcType=VARCHAR}, </if> <if test="record.ledgerName != null"> ledger_name = #{record.ledgerName,jdbcType=VARCHAR}, </if> <if test="record.currencyCode != null"> currency_code = #{record.currencyCode,jdbcType=VARCHAR}, </if> <if test="record.status != null"> `status` = #{record.status,jdbcType=VARCHAR}, </if> <if test="record.headerId != null"> header_id = #{record.headerId,jdbcType=VARCHAR}, </if> <if test="record.lineNum != null"> line_num = #{record.lineNum,jdbcType=VARCHAR}, </if> <if test="record.approvalStatus != null"> approval_status = #{record.approvalStatus,jdbcType=VARCHAR}, </if> <if test="record.postedStatus != null"> posted_status = #{record.postedStatus,jdbcType=VARCHAR}, </if> <if test="record.tmsPeriod != null"> tms_period = #{record.tmsPeriod,jdbcType=INTEGER}, </if> <if test="record.period != null"> period = #{record.period,jdbcType=INTEGER}, </if> <if test="record.accountingDate != null"> accounting_date = #{record.accountingDate,jdbcType=TIMESTAMP}, </if> <if test="record.journalSource != null"> journal_source = #{record.journalSource,jdbcType=VARCHAR}, </if> <if test="record.category != null"> category = #{record.category,jdbcType=VARCHAR}, </if> <if test="record.name != null"> `name` = #{record.name,jdbcType=VARCHAR}, </if> <if test="record.voucherNum != null"> voucher_num = #{record.voucherNum,jdbcType=VARCHAR}, </if> <if test="record.description != null"> description = #{record.description,jdbcType=VARCHAR}, </if> <if test="record.segment1 != null"> segment1 = #{record.segment1,jdbcType=VARCHAR}, </if> <if test="record.segment2 != null"> segment2 = #{record.segment2,jdbcType=VARCHAR}, </if> <if test="record.segment3 != null"> segment3 = #{record.segment3,jdbcType=VARCHAR}, </if> <if test="record.segment4 != null"> segment4 = #{record.segment4,jdbcType=VARCHAR}, </if> <if test="record.segment5 != null"> segment5 = #{record.segment5,jdbcType=VARCHAR}, </if> <if test="record.segment6 != null"> segment6 = #{record.segment6,jdbcType=VARCHAR}, </if> <if test="record.segment7 != null"> segment7 = #{record.segment7,jdbcType=VARCHAR}, </if> <if test="record.segment8 != null"> segment8 = #{record.segment8,jdbcType=VARCHAR}, </if> <if test="record.segment9 != null"> segment9 = #{record.segment9,jdbcType=VARCHAR}, </if> <if test="record.segment10 != null"> segment10 = #{record.segment10,jdbcType=VARCHAR}, </if> <if test="record.segment1Name != null"> segment1_name = #{record.segment1Name,jdbcType=VARCHAR}, </if> <if test="record.segment2Name != null"> segment2_name = #{record.segment2Name,jdbcType=VARCHAR}, </if> <if test="record.segment3Name != null"> segment3_name = #{record.segment3Name,jdbcType=VARCHAR}, </if> <if test="record.segment4Name != null"> segment4_name = #{record.segment4Name,jdbcType=VARCHAR}, </if> <if test="record.segment5Name != null"> segment5_name = #{record.segment5Name,jdbcType=VARCHAR}, </if> <if test="record.segment6Name != null"> segment6_name = #{record.segment6Name,jdbcType=VARCHAR}, </if> <if test="record.segment7Name != null"> segment7_name = #{record.segment7Name,jdbcType=VARCHAR}, </if> <if test="record.segment8Name != null"> segment8_name = #{record.segment8Name,jdbcType=VARCHAR}, </if> <if test="record.segment9Name != null"> segment9_name = #{record.segment9Name,jdbcType=VARCHAR}, </if> <if test="record.segment10Name != null"> segment10_name = #{record.segment10Name,jdbcType=VARCHAR}, </if> <if test="record.journalCurrencyCode != null"> journal_currency_code = #{record.journalCurrencyCode,jdbcType=VARCHAR}, </if> <if test="record.sobCurrencyCode != null"> sob_currency_code = #{record.sobCurrencyCode,jdbcType=VARCHAR}, </if> <if test="record.accountedDr != null"> accounted_dr = #{record.accountedDr,jdbcType=DECIMAL}, </if> <if test="record.accountedCr != null"> accounted_cr = #{record.accountedCr,jdbcType=DECIMAL}, </if> <if test="record.enteredDr != null"> entered_dr = #{record.enteredDr,jdbcType=DECIMAL}, </if> <if test="record.enteredCr != null"> entered_cr = #{record.enteredCr,jdbcType=DECIMAL}, </if> <if test="record.cfItem != null"> cf_item = #{record.cfItem,jdbcType=VARCHAR}, </if> <if test="record.attribute1 != null"> attribute1 = #{record.attribute1,jdbcType=VARCHAR}, </if> <if test="record.attribute2 != null"> attribute2 = #{record.attribute2,jdbcType=TIMESTAMP}, </if> <if test="record.attribute3 != null"> attribute3 = #{record.attribute3,jdbcType=VARCHAR}, </if> <if test="record.attribute4 != null"> attribute4 = #{record.attribute4,jdbcType=VARCHAR}, </if> <if test="record.attribute5 != null"> attribute5 = #{record.attribute5,jdbcType=VARCHAR}, </if> <if test="record.attribute6 != null"> attribute6 = #{record.attribute6,jdbcType=VARCHAR}, </if> <if test="record.attribute7 != null"> attribute7 = #{record.attribute7,jdbcType=VARCHAR}, </if> <if test="record.attribute8 != null"> attribute8 = #{record.attribute8,jdbcType=VARCHAR}, </if> <if test="record.attribute9 != null"> attribute9 = #{record.attribute9,jdbcType=VARCHAR}, </if> <if test="record.attribute10 != null"> attribute10 = #{record.attribute10,jdbcType=VARCHAR}, </if> <if test="record.attribute11 != null"> attribute11 = #{record.attribute11,jdbcType=VARCHAR}, </if> <if test="record.attribute12 != null"> attribute12 = #{record.attribute12,jdbcType=VARCHAR}, </if> <if test="record.attribute13 != null"> attribute13 = #{record.attribute13,jdbcType=VARCHAR}, </if> <if test="record.attribute14 != null"> attribute14 = #{record.attribute14,jdbcType=VARCHAR}, </if> <if test="record.attribute15 != null"> attribute15 = #{record.attribute15,jdbcType=VARCHAR}, </if> <if test="record.attribute16 != null"> attribute16 = #{record.attribute16,jdbcType=VARCHAR}, </if> <if test="record.createdBy != null"> created_by = #{record.createdBy,jdbcType=VARCHAR}, </if> <if test="record.createdDate != null"> created_date = #{record.createdDate,jdbcType=TIMESTAMP}, </if> <if test="record.lateUpdatedBy != null"> late_updated_by = #{record.lateUpdatedBy,jdbcType=VARCHAR}, </if> <if test="record.lateUpdatedDate != null"> late_updated_date = #{record.lateUpdatedDate,jdbcType=TIMESTAMP}, </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> </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 journal_entry set id = #{record.id,jdbcType=BIGINT}, organization_id = #{record.organizationId,jdbcType=VARCHAR}, project_id = #{record.projectId,jdbcType=VARCHAR}, `date` = #{record.date,jdbcType=TIMESTAMP}, `source` = #{record.source,jdbcType=VARCHAR}, ledger_id = #{record.ledgerId,jdbcType=VARCHAR}, ledger_name = #{record.ledgerName,jdbcType=VARCHAR}, currency_code = #{record.currencyCode,jdbcType=VARCHAR}, `status` = #{record.status,jdbcType=VARCHAR}, header_id = #{record.headerId,jdbcType=VARCHAR}, line_num = #{record.lineNum,jdbcType=VARCHAR}, approval_status = #{record.approvalStatus,jdbcType=VARCHAR}, posted_status = #{record.postedStatus,jdbcType=VARCHAR}, tms_period = #{record.tmsPeriod,jdbcType=INTEGER}, period = #{record.period,jdbcType=INTEGER}, accounting_date = #{record.accountingDate,jdbcType=TIMESTAMP}, journal_source = #{record.journalSource,jdbcType=VARCHAR}, category = #{record.category,jdbcType=VARCHAR}, `name` = #{record.name,jdbcType=VARCHAR}, voucher_num = #{record.voucherNum,jdbcType=VARCHAR}, description = #{record.description,jdbcType=VARCHAR}, segment1 = #{record.segment1,jdbcType=VARCHAR}, segment2 = #{record.segment2,jdbcType=VARCHAR}, segment3 = #{record.segment3,jdbcType=VARCHAR}, segment4 = #{record.segment4,jdbcType=VARCHAR}, segment5 = #{record.segment5,jdbcType=VARCHAR}, segment6 = #{record.segment6,jdbcType=VARCHAR}, segment7 = #{record.segment7,jdbcType=VARCHAR}, segment8 = #{record.segment8,jdbcType=VARCHAR}, segment9 = #{record.segment9,jdbcType=VARCHAR}, segment10 = #{record.segment10,jdbcType=VARCHAR}, segment1_name = #{record.segment1Name,jdbcType=VARCHAR}, segment2_name = #{record.segment2Name,jdbcType=VARCHAR}, segment3_name = #{record.segment3Name,jdbcType=VARCHAR}, segment4_name = #{record.segment4Name,jdbcType=VARCHAR}, segment5_name = #{record.segment5Name,jdbcType=VARCHAR}, segment6_name = #{record.segment6Name,jdbcType=VARCHAR}, segment7_name = #{record.segment7Name,jdbcType=VARCHAR}, segment8_name = #{record.segment8Name,jdbcType=VARCHAR}, segment9_name = #{record.segment9Name,jdbcType=VARCHAR}, segment10_name = #{record.segment10Name,jdbcType=VARCHAR}, journal_currency_code = #{record.journalCurrencyCode,jdbcType=VARCHAR}, sob_currency_code = #{record.sobCurrencyCode,jdbcType=VARCHAR}, accounted_dr = #{record.accountedDr,jdbcType=DECIMAL}, accounted_cr = #{record.accountedCr,jdbcType=DECIMAL}, entered_dr = #{record.enteredDr,jdbcType=DECIMAL}, entered_cr = #{record.enteredCr,jdbcType=DECIMAL}, cf_item = #{record.cfItem,jdbcType=VARCHAR}, attribute1 = #{record.attribute1,jdbcType=VARCHAR}, attribute2 = #{record.attribute2,jdbcType=TIMESTAMP}, attribute3 = #{record.attribute3,jdbcType=VARCHAR}, attribute4 = #{record.attribute4,jdbcType=VARCHAR}, attribute5 = #{record.attribute5,jdbcType=VARCHAR}, attribute6 = #{record.attribute6,jdbcType=VARCHAR}, attribute7 = #{record.attribute7,jdbcType=VARCHAR}, attribute8 = #{record.attribute8,jdbcType=VARCHAR}, attribute9 = #{record.attribute9,jdbcType=VARCHAR}, attribute10 = #{record.attribute10,jdbcType=VARCHAR}, attribute11 = #{record.attribute11,jdbcType=VARCHAR}, attribute12 = #{record.attribute12,jdbcType=VARCHAR}, attribute13 = #{record.attribute13,jdbcType=VARCHAR}, attribute14 = #{record.attribute14,jdbcType=VARCHAR}, attribute15 = #{record.attribute15,jdbcType=VARCHAR}, attribute16 = #{record.attribute16,jdbcType=VARCHAR}, created_by = #{record.createdBy,jdbcType=VARCHAR}, created_date = #{record.createdDate,jdbcType=TIMESTAMP}, late_updated_by = #{record.lateUpdatedBy,jdbcType=VARCHAR}, late_updated_date = #{record.lateUpdatedDate,jdbcType=TIMESTAMP}, create_time = #{record.createTime,jdbcType=TIMESTAMP}, update_time = #{record.updateTime,jdbcType=TIMESTAMP} <if test="_parameter != null"> <include refid="Update_By_Example_Where_Clause" /> </if> </update> <update id="updateByPrimaryKeySelective" parameterType="pwc.taxtech.atms.vat.entity.JournalEntry"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> update journal_entry <set> <if test="organizationId != null"> organization_id = #{organizationId,jdbcType=VARCHAR}, </if> <if test="projectId != null"> project_id = #{projectId,jdbcType=VARCHAR}, </if> <if test="date != null"> `date` = #{date,jdbcType=TIMESTAMP}, </if> <if test="source != null"> `source` = #{source,jdbcType=VARCHAR}, </if> <if test="ledgerId != null"> ledger_id = #{ledgerId,jdbcType=VARCHAR}, </if> <if test="ledgerName != null"> ledger_name = #{ledgerName,jdbcType=VARCHAR}, </if> <if test="currencyCode != null"> currency_code = #{currencyCode,jdbcType=VARCHAR}, </if> <if test="status != null"> `status` = #{status,jdbcType=VARCHAR}, </if> <if test="headerId != null"> header_id = #{headerId,jdbcType=VARCHAR}, </if> <if test="lineNum != null"> line_num = #{lineNum,jdbcType=VARCHAR}, </if> <if test="approvalStatus != null"> approval_status = #{approvalStatus,jdbcType=VARCHAR}, </if> <if test="postedStatus != null"> posted_status = #{postedStatus,jdbcType=VARCHAR}, </if> <if test="tmsPeriod != null"> tms_period = #{tmsPeriod,jdbcType=INTEGER}, </if> <if test="period != null"> period = #{period,jdbcType=INTEGER}, </if> <if test="accountingDate != null"> accounting_date = #{accountingDate,jdbcType=TIMESTAMP}, </if> <if test="journalSource != null"> journal_source = #{journalSource,jdbcType=VARCHAR}, </if> <if test="category != null"> category = #{category,jdbcType=VARCHAR}, </if> <if test="name != null"> `name` = #{name,jdbcType=VARCHAR}, </if> <if test="voucherNum != null"> voucher_num = #{voucherNum,jdbcType=VARCHAR}, </if> <if test="description != null"> description = #{description,jdbcType=VARCHAR}, </if> <if test="segment1 != null"> segment1 = #{segment1,jdbcType=VARCHAR}, </if> <if test="segment2 != null"> segment2 = #{segment2,jdbcType=VARCHAR}, </if> <if test="segment3 != null"> segment3 = #{segment3,jdbcType=VARCHAR}, </if> <if test="segment4 != null"> segment4 = #{segment4,jdbcType=VARCHAR}, </if> <if test="segment5 != null"> segment5 = #{segment5,jdbcType=VARCHAR}, </if> <if test="segment6 != null"> segment6 = #{segment6,jdbcType=VARCHAR}, </if> <if test="segment7 != null"> segment7 = #{segment7,jdbcType=VARCHAR}, </if> <if test="segment8 != null"> segment8 = #{segment8,jdbcType=VARCHAR}, </if> <if test="segment9 != null"> segment9 = #{segment9,jdbcType=VARCHAR}, </if> <if test="segment10 != null"> segment10 = #{segment10,jdbcType=VARCHAR}, </if> <if test="segment1Name != null"> segment1_name = #{segment1Name,jdbcType=VARCHAR}, </if> <if test="segment2Name != null"> segment2_name = #{segment2Name,jdbcType=VARCHAR}, </if> <if test="segment3Name != null"> segment3_name = #{segment3Name,jdbcType=VARCHAR}, </if> <if test="segment4Name != null"> segment4_name = #{segment4Name,jdbcType=VARCHAR}, </if> <if test="segment5Name != null"> segment5_name = #{segment5Name,jdbcType=VARCHAR}, </if> <if test="segment6Name != null"> segment6_name = #{segment6Name,jdbcType=VARCHAR}, </if> <if test="segment7Name != null"> segment7_name = #{segment7Name,jdbcType=VARCHAR}, </if> <if test="segment8Name != null"> segment8_name = #{segment8Name,jdbcType=VARCHAR}, </if> <if test="segment9Name != null"> segment9_name = #{segment9Name,jdbcType=VARCHAR}, </if> <if test="segment10Name != null"> segment10_name = #{segment10Name,jdbcType=VARCHAR}, </if> <if test="journalCurrencyCode != null"> journal_currency_code = #{journalCurrencyCode,jdbcType=VARCHAR}, </if> <if test="sobCurrencyCode != null"> sob_currency_code = #{sobCurrencyCode,jdbcType=VARCHAR}, </if> <if test="accountedDr != null"> accounted_dr = #{accountedDr,jdbcType=DECIMAL}, </if> <if test="accountedCr != null"> accounted_cr = #{accountedCr,jdbcType=DECIMAL}, </if> <if test="enteredDr != null"> entered_dr = #{enteredDr,jdbcType=DECIMAL}, </if> <if test="enteredCr != null"> entered_cr = #{enteredCr,jdbcType=DECIMAL}, </if> <if test="cfItem != null"> cf_item = #{cfItem,jdbcType=VARCHAR}, </if> <if test="attribute1 != null"> attribute1 = #{attribute1,jdbcType=VARCHAR}, </if> <if test="attribute2 != null"> attribute2 = #{attribute2,jdbcType=TIMESTAMP}, </if> <if test="attribute3 != null"> attribute3 = #{attribute3,jdbcType=VARCHAR}, </if> <if test="attribute4 != null"> attribute4 = #{attribute4,jdbcType=VARCHAR}, </if> <if test="attribute5 != null"> attribute5 = #{attribute5,jdbcType=VARCHAR}, </if> <if test="attribute6 != null"> attribute6 = #{attribute6,jdbcType=VARCHAR}, </if> <if test="attribute7 != null"> attribute7 = #{attribute7,jdbcType=VARCHAR}, </if> <if test="attribute8 != null"> attribute8 = #{attribute8,jdbcType=VARCHAR}, </if> <if test="attribute9 != null"> attribute9 = #{attribute9,jdbcType=VARCHAR}, </if> <if test="attribute10 != null"> attribute10 = #{attribute10,jdbcType=VARCHAR}, </if> <if test="attribute11 != null"> attribute11 = #{attribute11,jdbcType=VARCHAR}, </if> <if test="attribute12 != null"> attribute12 = #{attribute12,jdbcType=VARCHAR}, </if> <if test="attribute13 != null"> attribute13 = #{attribute13,jdbcType=VARCHAR}, </if> <if test="attribute14 != null"> attribute14 = #{attribute14,jdbcType=VARCHAR}, </if> <if test="attribute15 != null"> attribute15 = #{attribute15,jdbcType=VARCHAR}, </if> <if test="attribute16 != null"> attribute16 = #{attribute16,jdbcType=VARCHAR}, </if> <if test="createdBy != null"> created_by = #{createdBy,jdbcType=VARCHAR}, </if> <if test="createdDate != null"> created_date = #{createdDate,jdbcType=TIMESTAMP}, </if> <if test="lateUpdatedBy != null"> late_updated_by = #{lateUpdatedBy,jdbcType=VARCHAR}, </if> <if test="lateUpdatedDate != null"> late_updated_date = #{lateUpdatedDate,jdbcType=TIMESTAMP}, </if> <if test="createTime != null"> create_time = #{createTime,jdbcType=TIMESTAMP}, </if> <if test="updateTime != null"> update_time = #{updateTime,jdbcType=TIMESTAMP}, </if> </set> where id = #{id,jdbcType=BIGINT} </update> <update id="updateByPrimaryKey" parameterType="pwc.taxtech.atms.vat.entity.JournalEntry"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> update journal_entry set organization_id = #{organizationId,jdbcType=VARCHAR}, project_id = #{projectId,jdbcType=VARCHAR}, `date` = #{date,jdbcType=TIMESTAMP}, `source` = #{source,jdbcType=VARCHAR}, ledger_id = #{ledgerId,jdbcType=VARCHAR}, ledger_name = #{ledgerName,jdbcType=VARCHAR}, currency_code = #{currencyCode,jdbcType=VARCHAR}, `status` = #{status,jdbcType=VARCHAR}, header_id = #{headerId,jdbcType=VARCHAR}, line_num = #{lineNum,jdbcType=VARCHAR}, approval_status = #{approvalStatus,jdbcType=VARCHAR}, posted_status = #{postedStatus,jdbcType=VARCHAR}, tms_period = #{tmsPeriod,jdbcType=INTEGER}, period = #{period,jdbcType=INTEGER}, accounting_date = #{accountingDate,jdbcType=TIMESTAMP}, journal_source = #{journalSource,jdbcType=VARCHAR}, category = #{category,jdbcType=VARCHAR}, `name` = #{name,jdbcType=VARCHAR}, voucher_num = #{voucherNum,jdbcType=VARCHAR}, description = #{description,jdbcType=VARCHAR}, segment1 = #{segment1,jdbcType=VARCHAR}, segment2 = #{segment2,jdbcType=VARCHAR}, segment3 = #{segment3,jdbcType=VARCHAR}, segment4 = #{segment4,jdbcType=VARCHAR}, segment5 = #{segment5,jdbcType=VARCHAR}, segment6 = #{segment6,jdbcType=VARCHAR}, segment7 = #{segment7,jdbcType=VARCHAR}, segment8 = #{segment8,jdbcType=VARCHAR}, segment9 = #{segment9,jdbcType=VARCHAR}, segment10 = #{segment10,jdbcType=VARCHAR}, segment1_name = #{segment1Name,jdbcType=VARCHAR}, segment2_name = #{segment2Name,jdbcType=VARCHAR}, segment3_name = #{segment3Name,jdbcType=VARCHAR}, segment4_name = #{segment4Name,jdbcType=VARCHAR}, segment5_name = #{segment5Name,jdbcType=VARCHAR}, segment6_name = #{segment6Name,jdbcType=VARCHAR}, segment7_name = #{segment7Name,jdbcType=VARCHAR}, segment8_name = #{segment8Name,jdbcType=VARCHAR}, segment9_name = #{segment9Name,jdbcType=VARCHAR}, segment10_name = #{segment10Name,jdbcType=VARCHAR}, journal_currency_code = #{journalCurrencyCode,jdbcType=VARCHAR}, sob_currency_code = #{sobCurrencyCode,jdbcType=VARCHAR}, accounted_dr = #{accountedDr,jdbcType=DECIMAL}, accounted_cr = #{accountedCr,jdbcType=DECIMAL}, entered_dr = #{enteredDr,jdbcType=DECIMAL}, entered_cr = #{enteredCr,jdbcType=DECIMAL}, cf_item = #{cfItem,jdbcType=VARCHAR}, attribute1 = #{attribute1,jdbcType=VARCHAR}, attribute2 = #{attribute2,jdbcType=TIMESTAMP}, attribute3 = #{attribute3,jdbcType=VARCHAR}, attribute4 = #{attribute4,jdbcType=VARCHAR}, attribute5 = #{attribute5,jdbcType=VARCHAR}, attribute6 = #{attribute6,jdbcType=VARCHAR}, attribute7 = #{attribute7,jdbcType=VARCHAR}, attribute8 = #{attribute8,jdbcType=VARCHAR}, attribute9 = #{attribute9,jdbcType=VARCHAR}, attribute10 = #{attribute10,jdbcType=VARCHAR}, attribute11 = #{attribute11,jdbcType=VARCHAR}, attribute12 = #{attribute12,jdbcType=VARCHAR}, attribute13 = #{attribute13,jdbcType=VARCHAR}, attribute14 = #{attribute14,jdbcType=VARCHAR}, attribute15 = #{attribute15,jdbcType=VARCHAR}, attribute16 = #{attribute16,jdbcType=VARCHAR}, created_by = #{createdBy,jdbcType=VARCHAR}, created_date = #{createdDate,jdbcType=TIMESTAMP}, late_updated_by = #{lateUpdatedBy,jdbcType=VARCHAR}, late_updated_date = #{lateUpdatedDate,jdbcType=TIMESTAMP}, create_time = #{createTime,jdbcType=TIMESTAMP}, update_time = #{updateTime,jdbcType=TIMESTAMP} where id = #{id,jdbcType=BIGINT} </update> <select id="selectByExampleWithRowbounds" parameterType="pwc.taxtech.atms.vat.entity.JournalEntryExample" 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 journal_entry <if test="_parameter != null"> <include refid="Example_Where_Clause" /> </if> <if test="orderByClause != null"> order by ${orderByClause} </if> </select> <select id="selectNowAdjustData" parameterType="java.util.Map" resultType="pwc.taxtech.atms.vat.entity.JournalEntry"> SELECT max(t.entered_dr - t.entered_cr) as periodJrMinDr, max(t.period), max(t.project_id), t.segment3, t.segment5, t.segment6 FROM journal_entry t where 1 =1 and t.description like '%调表不调账%' <if test="projectId != null and projectId != '' "> and t.project_id = #{projectId} </if> <if test="period!= null and period != '' "> and substring(t.period, -2) = ${period} </if> group by t.segment3, t.segment5, t.segment6 </select> </mapper>