EntriesCheckResultMapper.xml 26.8 KB
Newer Older
1 2 3
<?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.EntriesCheckResultMapper">
4 5 6 7 8
  <resultMap id="BaseResultMap" type="pwc.taxtech.atms.vat.entity.EntriesCheckResult">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
    <id column="ID" jdbcType="VARCHAR" property="id" />
    <result column="MODEL_ID" jdbcType="VARCHAR" property="modelId" />
    <result column="CODE" jdbcType="VARCHAR" property="code" />
    <result column="NAME" jdbcType="VARCHAR" property="name" />
    <result column="DESCRIPTION" jdbcType="VARCHAR" property="description" />
    <result column="VOUCHER_NUM" jdbcType="DECIMAL" property="voucherNum" />
    <result column="ENTRIES_NUM" jdbcType="DECIMAL" property="entriesNum" />
    <result column="DEBIT_RELEVANT_AMT" jdbcType="DECIMAL" property="debitRelevantAmt" />
    <result column="CREDIT_RELEVANT_AMT" jdbcType="DECIMAL" property="creditRelevantAmt" />
    <result column="DEBIT_TOTAL_AMT" jdbcType="DECIMAL" property="debitTotalAmt" />
    <result column="CREDIT_TOTAL_AMT" jdbcType="DECIMAL" property="creditTotalAmt" />
    <result column="BIG_VOUCHER_NUM" jdbcType="DECIMAL" property="bigVoucherNum" />
    <result column="BIG_ENTRIES_NUM" jdbcType="DECIMAL" property="bigEntriesNum" />
    <result column="BIG_DEBIT_RELEVANT_AMT" jdbcType="DECIMAL" property="bigDebitRelevantAmt" />
    <result column="BIG_CREDIT_RELEVANT_AMT" jdbcType="DECIMAL" property="bigCreditRelevantAmt" />
    <result column="BIG_DEBIT_TOTAL_AMT" jdbcType="DECIMAL" property="bigDebitTotalAmt" />
    <result column="BIG_CREDIT_TOTAL_AMT" jdbcType="DECIMAL" property="bigCreditTotalAmt" />
    <result column="ENTRY_DOUBTS" jdbcType="DECIMAL" property="entryDoubts" />
    <result column="BIG_ENTRY_DOUBTS" jdbcType="DECIMAL" property="bigEntryDoubts" />
    <result column="VOUCHER_DOUBTS" jdbcType="DECIMAL" property="voucherDoubts" />
    <result column="BIG_VOUCHER_DOUBTS" jdbcType="DECIMAL" property="bigVoucherDoubts" />
    <result column="IS_FILTERED" jdbcType="DECIMAL" property="isFiltered" />
    <result column="SERVICE_TYPE_ID" jdbcType="VARCHAR" property="serviceTypeId" />
    <result column="CATEGORY_ID" jdbcType="VARCHAR" property="categoryId" />
    <result column="TYPE" jdbcType="DECIMAL" property="type" />
    <result column="IS_FILTER" jdbcType="DECIMAL" property="isFilter" />
    <result column="IS_SHOW" jdbcType="DECIMAL" property="isShow" />
    <result column="PERIOD" jdbcType="DECIMAL" property="period" />
    <result column="CREATE_TIME" jdbcType="TIMESTAMP" property="createTime" />
    <result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" />
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
  </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>
67
            </foreach>
68
          </trim>
69
        </if>
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101
      </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>
102
        </if>
103 104 105 106 107 108 109 110
      </foreach>
    </where>
  </sql>
  <sql id="Base_Column_List">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
111 112 113 114 115
    ID, MODEL_ID, CODE, "NAME", DESCRIPTION, VOUCHER_NUM, ENTRIES_NUM, DEBIT_RELEVANT_AMT, 
    CREDIT_RELEVANT_AMT, DEBIT_TOTAL_AMT, CREDIT_TOTAL_AMT, BIG_VOUCHER_NUM, BIG_ENTRIES_NUM, 
    BIG_DEBIT_RELEVANT_AMT, BIG_CREDIT_RELEVANT_AMT, BIG_DEBIT_TOTAL_AMT, BIG_CREDIT_TOTAL_AMT, 
    ENTRY_DOUBTS, BIG_ENTRY_DOUBTS, VOUCHER_DOUBTS, BIG_VOUCHER_DOUBTS, IS_FILTERED, 
    SERVICE_TYPE_ID, CATEGORY_ID, "TYPE", IS_FILTER, IS_SHOW, PERIOD, CREATE_TIME, UPDATE_TIME
116 117 118 119 120 121 122 123 124 125 126
  </sql>
  <select id="selectByExample" parameterType="pwc.taxtech.atms.vat.entity.EntriesCheckResultExample" 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" />
neo's avatar
neo committed
127
    from ENTRIES_CHECK_RESULT
128 129 130 131 132 133 134 135 136 137 138 139 140 141
    <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" />
neo's avatar
neo committed
142 143
    from ENTRIES_CHECK_RESULT
    where ID = #{id,jdbcType=VARCHAR}
144 145 146 147 148 149
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
150 151
    delete from ENTRIES_CHECK_RESULT
    where ID = #{id,jdbcType=VARCHAR}
152 153 154 155 156 157
  </delete>
  <delete id="deleteByExample" parameterType="pwc.taxtech.atms.vat.entity.EntriesCheckResultExample">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
158
    delete from ENTRIES_CHECK_RESULT
159 160 161 162 163 164 165 166 167
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="pwc.taxtech.atms.vat.entity.EntriesCheckResult">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
168 169 170 171 172 173 174 175 176 177
    insert into ENTRIES_CHECK_RESULT (ID, MODEL_ID, CODE, 
      "NAME", DESCRIPTION, VOUCHER_NUM, 
      ENTRIES_NUM, DEBIT_RELEVANT_AMT, CREDIT_RELEVANT_AMT, 
      DEBIT_TOTAL_AMT, CREDIT_TOTAL_AMT, BIG_VOUCHER_NUM, 
      BIG_ENTRIES_NUM, BIG_DEBIT_RELEVANT_AMT, BIG_CREDIT_RELEVANT_AMT, 
      BIG_DEBIT_TOTAL_AMT, BIG_CREDIT_TOTAL_AMT, ENTRY_DOUBTS, 
      BIG_ENTRY_DOUBTS, VOUCHER_DOUBTS, BIG_VOUCHER_DOUBTS, 
      IS_FILTERED, SERVICE_TYPE_ID, CATEGORY_ID, 
      "TYPE", IS_FILTER, IS_SHOW, 
      PERIOD, CREATE_TIME, UPDATE_TIME
178
      )
neo's avatar
neo committed
179 180 181 182 183 184 185 186 187 188
    values (#{id,jdbcType=VARCHAR}, #{modelId,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR}, 
      #{name,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, #{voucherNum,jdbcType=DECIMAL}, 
      #{entriesNum,jdbcType=DECIMAL}, #{debitRelevantAmt,jdbcType=DECIMAL}, #{creditRelevantAmt,jdbcType=DECIMAL}, 
      #{debitTotalAmt,jdbcType=DECIMAL}, #{creditTotalAmt,jdbcType=DECIMAL}, #{bigVoucherNum,jdbcType=DECIMAL}, 
      #{bigEntriesNum,jdbcType=DECIMAL}, #{bigDebitRelevantAmt,jdbcType=DECIMAL}, #{bigCreditRelevantAmt,jdbcType=DECIMAL}, 
      #{bigDebitTotalAmt,jdbcType=DECIMAL}, #{bigCreditTotalAmt,jdbcType=DECIMAL}, #{entryDoubts,jdbcType=DECIMAL}, 
      #{bigEntryDoubts,jdbcType=DECIMAL}, #{voucherDoubts,jdbcType=DECIMAL}, #{bigVoucherDoubts,jdbcType=DECIMAL}, 
      #{isFiltered,jdbcType=DECIMAL}, #{serviceTypeId,jdbcType=VARCHAR}, #{categoryId,jdbcType=VARCHAR}, 
      #{type,jdbcType=DECIMAL}, #{isFilter,jdbcType=DECIMAL}, #{isShow,jdbcType=DECIMAL}, 
      #{period,jdbcType=DECIMAL}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
189 190 191 192 193 194 195
      )
  </insert>
  <insert id="insertSelective" parameterType="pwc.taxtech.atms.vat.entity.EntriesCheckResult">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
196
    insert into ENTRIES_CHECK_RESULT
197
    <trim prefix="(" suffix=")" suffixOverrides=",">
neo's avatar
neo committed
198
      <if test="id != null">
199 200
        ID,
      </if>
neo's avatar
neo committed
201 202
      <if test="modelId != null">
        MODEL_ID,
203 204
      </if>
      <if test="code != null">
neo's avatar
neo committed
205
        CODE,
206 207
      </if>
      <if test="name != null">
neo's avatar
neo committed
208
        "NAME",
209 210
      </if>
      <if test="description != null">
neo's avatar
neo committed
211
        DESCRIPTION,
212 213
      </if>
      <if test="voucherNum != null">
neo's avatar
neo committed
214
        VOUCHER_NUM,
215 216
      </if>
      <if test="entriesNum != null">
neo's avatar
neo committed
217
        ENTRIES_NUM,
218 219
      </if>
      <if test="debitRelevantAmt != null">
neo's avatar
neo committed
220
        DEBIT_RELEVANT_AMT,
221 222
      </if>
      <if test="creditRelevantAmt != null">
neo's avatar
neo committed
223
        CREDIT_RELEVANT_AMT,
224 225
      </if>
      <if test="debitTotalAmt != null">
neo's avatar
neo committed
226
        DEBIT_TOTAL_AMT,
227 228
      </if>
      <if test="creditTotalAmt != null">
neo's avatar
neo committed
229
        CREDIT_TOTAL_AMT,
230 231
      </if>
      <if test="bigVoucherNum != null">
neo's avatar
neo committed
232
        BIG_VOUCHER_NUM,
233 234
      </if>
      <if test="bigEntriesNum != null">
neo's avatar
neo committed
235
        BIG_ENTRIES_NUM,
236 237
      </if>
      <if test="bigDebitRelevantAmt != null">
neo's avatar
neo committed
238
        BIG_DEBIT_RELEVANT_AMT,
239 240
      </if>
      <if test="bigCreditRelevantAmt != null">
neo's avatar
neo committed
241
        BIG_CREDIT_RELEVANT_AMT,
242 243
      </if>
      <if test="bigDebitTotalAmt != null">
neo's avatar
neo committed
244
        BIG_DEBIT_TOTAL_AMT,
245 246
      </if>
      <if test="bigCreditTotalAmt != null">
neo's avatar
neo committed
247
        BIG_CREDIT_TOTAL_AMT,
248 249
      </if>
      <if test="entryDoubts != null">
neo's avatar
neo committed
250
        ENTRY_DOUBTS,
251 252
      </if>
      <if test="bigEntryDoubts != null">
neo's avatar
neo committed
253
        BIG_ENTRY_DOUBTS,
254 255
      </if>
      <if test="voucherDoubts != null">
neo's avatar
neo committed
256
        VOUCHER_DOUBTS,
257 258
      </if>
      <if test="bigVoucherDoubts != null">
neo's avatar
neo committed
259
        BIG_VOUCHER_DOUBTS,
260 261
      </if>
      <if test="isFiltered != null">
neo's avatar
neo committed
262
        IS_FILTERED,
263
      </if>
neo's avatar
neo committed
264 265
      <if test="serviceTypeId != null">
        SERVICE_TYPE_ID,
266
      </if>
neo's avatar
neo committed
267 268
      <if test="categoryId != null">
        CATEGORY_ID,
269 270
      </if>
      <if test="type != null">
neo's avatar
neo committed
271
        "TYPE",
272 273
      </if>
      <if test="isFilter != null">
neo's avatar
neo committed
274
        IS_FILTER,
275 276
      </if>
      <if test="isShow != null">
neo's avatar
neo committed
277
        IS_SHOW,
278 279
      </if>
      <if test="period != null">
neo's avatar
neo committed
280
        PERIOD,
281 282
      </if>
      <if test="createTime != null">
neo's avatar
neo committed
283
        CREATE_TIME,
284 285
      </if>
      <if test="updateTime != null">
neo's avatar
neo committed
286
        UPDATE_TIME,
287 288 289
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
neo's avatar
neo committed
290 291
      <if test="id != null">
        #{id,jdbcType=VARCHAR},
292
      </if>
neo's avatar
neo committed
293 294
      <if test="modelId != null">
        #{modelId,jdbcType=VARCHAR},
295 296 297 298 299 300 301 302 303 304 305
      </if>
      <if test="code != null">
        #{code,jdbcType=VARCHAR},
      </if>
      <if test="name != null">
        #{name,jdbcType=VARCHAR},
      </if>
      <if test="description != null">
        #{description,jdbcType=VARCHAR},
      </if>
      <if test="voucherNum != null">
neo's avatar
neo committed
306
        #{voucherNum,jdbcType=DECIMAL},
307 308
      </if>
      <if test="entriesNum != null">
neo's avatar
neo committed
309
        #{entriesNum,jdbcType=DECIMAL},
310 311 312 313 314 315 316 317 318 319 320 321 322 323
      </if>
      <if test="debitRelevantAmt != null">
        #{debitRelevantAmt,jdbcType=DECIMAL},
      </if>
      <if test="creditRelevantAmt != null">
        #{creditRelevantAmt,jdbcType=DECIMAL},
      </if>
      <if test="debitTotalAmt != null">
        #{debitTotalAmt,jdbcType=DECIMAL},
      </if>
      <if test="creditTotalAmt != null">
        #{creditTotalAmt,jdbcType=DECIMAL},
      </if>
      <if test="bigVoucherNum != null">
neo's avatar
neo committed
324
        #{bigVoucherNum,jdbcType=DECIMAL},
325 326
      </if>
      <if test="bigEntriesNum != null">
neo's avatar
neo committed
327
        #{bigEntriesNum,jdbcType=DECIMAL},
328 329 330 331 332
      </if>
      <if test="bigDebitRelevantAmt != null">
        #{bigDebitRelevantAmt,jdbcType=DECIMAL},
      </if>
      <if test="bigCreditRelevantAmt != null">
333
        #{bigCreditRelevantAmt,jdbcType=DECIMAL},
334 335 336 337 338 339 340 341
      </if>
      <if test="bigDebitTotalAmt != null">
        #{bigDebitTotalAmt,jdbcType=DECIMAL},
      </if>
      <if test="bigCreditTotalAmt != null">
        #{bigCreditTotalAmt,jdbcType=DECIMAL},
      </if>
      <if test="entryDoubts != null">
neo's avatar
neo committed
342
        #{entryDoubts,jdbcType=DECIMAL},
343 344
      </if>
      <if test="bigEntryDoubts != null">
neo's avatar
neo committed
345
        #{bigEntryDoubts,jdbcType=DECIMAL},
346 347
      </if>
      <if test="voucherDoubts != null">
neo's avatar
neo committed
348
        #{voucherDoubts,jdbcType=DECIMAL},
349 350
      </if>
      <if test="bigVoucherDoubts != null">
neo's avatar
neo committed
351
        #{bigVoucherDoubts,jdbcType=DECIMAL},
352 353
      </if>
      <if test="isFiltered != null">
neo's avatar
neo committed
354
        #{isFiltered,jdbcType=DECIMAL},
355
      </if>
neo's avatar
neo committed
356 357
      <if test="serviceTypeId != null">
        #{serviceTypeId,jdbcType=VARCHAR},
358
      </if>
neo's avatar
neo committed
359 360
      <if test="categoryId != null">
        #{categoryId,jdbcType=VARCHAR},
361 362
      </if>
      <if test="type != null">
neo's avatar
neo committed
363
        #{type,jdbcType=DECIMAL},
364 365
      </if>
      <if test="isFilter != null">
neo's avatar
neo committed
366
        #{isFilter,jdbcType=DECIMAL},
367 368
      </if>
      <if test="isShow != null">
neo's avatar
neo committed
369
        #{isShow,jdbcType=DECIMAL},
370 371
      </if>
      <if test="period != null">
neo's avatar
neo committed
372
        #{period,jdbcType=DECIMAL},
373 374 375 376 377 378 379 380 381 382 383 384 385 386
      </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.EntriesCheckResultExample" resultType="java.lang.Long">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
387
    select count(*) from ENTRIES_CHECK_RESULT
388 389 390 391 392 393 394 395 396
    <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.
    -->
neo's avatar
neo committed
397
    update ENTRIES_CHECK_RESULT
398
    <set>
neo's avatar
neo committed
399 400
      <if test="record.id != null">
        ID = #{record.id,jdbcType=VARCHAR},
401
      </if>
neo's avatar
neo committed
402 403
      <if test="record.modelId != null">
        MODEL_ID = #{record.modelId,jdbcType=VARCHAR},
404 405
      </if>
      <if test="record.code != null">
neo's avatar
neo committed
406
        CODE = #{record.code,jdbcType=VARCHAR},
407 408
      </if>
      <if test="record.name != null">
neo's avatar
neo committed
409
        "NAME" = #{record.name,jdbcType=VARCHAR},
410 411
      </if>
      <if test="record.description != null">
neo's avatar
neo committed
412
        DESCRIPTION = #{record.description,jdbcType=VARCHAR},
413 414
      </if>
      <if test="record.voucherNum != null">
neo's avatar
neo committed
415
        VOUCHER_NUM = #{record.voucherNum,jdbcType=DECIMAL},
416 417
      </if>
      <if test="record.entriesNum != null">
neo's avatar
neo committed
418
        ENTRIES_NUM = #{record.entriesNum,jdbcType=DECIMAL},
419 420
      </if>
      <if test="record.debitRelevantAmt != null">
neo's avatar
neo committed
421
        DEBIT_RELEVANT_AMT = #{record.debitRelevantAmt,jdbcType=DECIMAL},
422 423
      </if>
      <if test="record.creditRelevantAmt != null">
neo's avatar
neo committed
424
        CREDIT_RELEVANT_AMT = #{record.creditRelevantAmt,jdbcType=DECIMAL},
425 426
      </if>
      <if test="record.debitTotalAmt != null">
neo's avatar
neo committed
427
        DEBIT_TOTAL_AMT = #{record.debitTotalAmt,jdbcType=DECIMAL},
428 429
      </if>
      <if test="record.creditTotalAmt != null">
neo's avatar
neo committed
430
        CREDIT_TOTAL_AMT = #{record.creditTotalAmt,jdbcType=DECIMAL},
431 432
      </if>
      <if test="record.bigVoucherNum != null">
neo's avatar
neo committed
433
        BIG_VOUCHER_NUM = #{record.bigVoucherNum,jdbcType=DECIMAL},
434 435
      </if>
      <if test="record.bigEntriesNum != null">
neo's avatar
neo committed
436
        BIG_ENTRIES_NUM = #{record.bigEntriesNum,jdbcType=DECIMAL},
437 438
      </if>
      <if test="record.bigDebitRelevantAmt != null">
neo's avatar
neo committed
439
        BIG_DEBIT_RELEVANT_AMT = #{record.bigDebitRelevantAmt,jdbcType=DECIMAL},
440 441
      </if>
      <if test="record.bigCreditRelevantAmt != null">
neo's avatar
neo committed
442
        BIG_CREDIT_RELEVANT_AMT = #{record.bigCreditRelevantAmt,jdbcType=DECIMAL},
443 444
      </if>
      <if test="record.bigDebitTotalAmt != null">
neo's avatar
neo committed
445
        BIG_DEBIT_TOTAL_AMT = #{record.bigDebitTotalAmt,jdbcType=DECIMAL},
446 447
      </if>
      <if test="record.bigCreditTotalAmt != null">
neo's avatar
neo committed
448
        BIG_CREDIT_TOTAL_AMT = #{record.bigCreditTotalAmt,jdbcType=DECIMAL},
449 450
      </if>
      <if test="record.entryDoubts != null">
neo's avatar
neo committed
451
        ENTRY_DOUBTS = #{record.entryDoubts,jdbcType=DECIMAL},
452 453
      </if>
      <if test="record.bigEntryDoubts != null">
neo's avatar
neo committed
454
        BIG_ENTRY_DOUBTS = #{record.bigEntryDoubts,jdbcType=DECIMAL},
455 456
      </if>
      <if test="record.voucherDoubts != null">
neo's avatar
neo committed
457
        VOUCHER_DOUBTS = #{record.voucherDoubts,jdbcType=DECIMAL},
458 459
      </if>
      <if test="record.bigVoucherDoubts != null">
neo's avatar
neo committed
460
        BIG_VOUCHER_DOUBTS = #{record.bigVoucherDoubts,jdbcType=DECIMAL},
461 462
      </if>
      <if test="record.isFiltered != null">
neo's avatar
neo committed
463
        IS_FILTERED = #{record.isFiltered,jdbcType=DECIMAL},
464
      </if>
neo's avatar
neo committed
465 466
      <if test="record.serviceTypeId != null">
        SERVICE_TYPE_ID = #{record.serviceTypeId,jdbcType=VARCHAR},
467
      </if>
neo's avatar
neo committed
468 469
      <if test="record.categoryId != null">
        CATEGORY_ID = #{record.categoryId,jdbcType=VARCHAR},
470 471
      </if>
      <if test="record.type != null">
neo's avatar
neo committed
472
        "TYPE" = #{record.type,jdbcType=DECIMAL},
473 474
      </if>
      <if test="record.isFilter != null">
neo's avatar
neo committed
475
        IS_FILTER = #{record.isFilter,jdbcType=DECIMAL},
476 477
      </if>
      <if test="record.isShow != null">
neo's avatar
neo committed
478
        IS_SHOW = #{record.isShow,jdbcType=DECIMAL},
479 480
      </if>
      <if test="record.period != null">
neo's avatar
neo committed
481
        PERIOD = #{record.period,jdbcType=DECIMAL},
482 483
      </if>
      <if test="record.createTime != null">
neo's avatar
neo committed
484
        CREATE_TIME = #{record.createTime,jdbcType=TIMESTAMP},
485 486
      </if>
      <if test="record.updateTime != null">
neo's avatar
neo committed
487
        UPDATE_TIME = #{record.updateTime,jdbcType=TIMESTAMP},
488 489 490 491 492 493 494 495 496 497 498
      </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.
    -->
neo's avatar
neo committed
499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529
    update ENTRIES_CHECK_RESULT
    set ID = #{record.id,jdbcType=VARCHAR},
      MODEL_ID = #{record.modelId,jdbcType=VARCHAR},
      CODE = #{record.code,jdbcType=VARCHAR},
      "NAME" = #{record.name,jdbcType=VARCHAR},
      DESCRIPTION = #{record.description,jdbcType=VARCHAR},
      VOUCHER_NUM = #{record.voucherNum,jdbcType=DECIMAL},
      ENTRIES_NUM = #{record.entriesNum,jdbcType=DECIMAL},
      DEBIT_RELEVANT_AMT = #{record.debitRelevantAmt,jdbcType=DECIMAL},
      CREDIT_RELEVANT_AMT = #{record.creditRelevantAmt,jdbcType=DECIMAL},
      DEBIT_TOTAL_AMT = #{record.debitTotalAmt,jdbcType=DECIMAL},
      CREDIT_TOTAL_AMT = #{record.creditTotalAmt,jdbcType=DECIMAL},
      BIG_VOUCHER_NUM = #{record.bigVoucherNum,jdbcType=DECIMAL},
      BIG_ENTRIES_NUM = #{record.bigEntriesNum,jdbcType=DECIMAL},
      BIG_DEBIT_RELEVANT_AMT = #{record.bigDebitRelevantAmt,jdbcType=DECIMAL},
      BIG_CREDIT_RELEVANT_AMT = #{record.bigCreditRelevantAmt,jdbcType=DECIMAL},
      BIG_DEBIT_TOTAL_AMT = #{record.bigDebitTotalAmt,jdbcType=DECIMAL},
      BIG_CREDIT_TOTAL_AMT = #{record.bigCreditTotalAmt,jdbcType=DECIMAL},
      ENTRY_DOUBTS = #{record.entryDoubts,jdbcType=DECIMAL},
      BIG_ENTRY_DOUBTS = #{record.bigEntryDoubts,jdbcType=DECIMAL},
      VOUCHER_DOUBTS = #{record.voucherDoubts,jdbcType=DECIMAL},
      BIG_VOUCHER_DOUBTS = #{record.bigVoucherDoubts,jdbcType=DECIMAL},
      IS_FILTERED = #{record.isFiltered,jdbcType=DECIMAL},
      SERVICE_TYPE_ID = #{record.serviceTypeId,jdbcType=VARCHAR},
      CATEGORY_ID = #{record.categoryId,jdbcType=VARCHAR},
      "TYPE" = #{record.type,jdbcType=DECIMAL},
      IS_FILTER = #{record.isFilter,jdbcType=DECIMAL},
      IS_SHOW = #{record.isShow,jdbcType=DECIMAL},
      PERIOD = #{record.period,jdbcType=DECIMAL},
      CREATE_TIME = #{record.createTime,jdbcType=TIMESTAMP},
      UPDATE_TIME = #{record.updateTime,jdbcType=TIMESTAMP}
530 531 532 533 534 535 536 537 538
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="pwc.taxtech.atms.vat.entity.EntriesCheckResult">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
539
    update ENTRIES_CHECK_RESULT
540
    <set>
neo's avatar
neo committed
541 542
      <if test="modelId != null">
        MODEL_ID = #{modelId,jdbcType=VARCHAR},
543 544
      </if>
      <if test="code != null">
neo's avatar
neo committed
545
        CODE = #{code,jdbcType=VARCHAR},
546 547
      </if>
      <if test="name != null">
neo's avatar
neo committed
548
        "NAME" = #{name,jdbcType=VARCHAR},
549 550
      </if>
      <if test="description != null">
neo's avatar
neo committed
551
        DESCRIPTION = #{description,jdbcType=VARCHAR},
552 553
      </if>
      <if test="voucherNum != null">
neo's avatar
neo committed
554
        VOUCHER_NUM = #{voucherNum,jdbcType=DECIMAL},
555 556
      </if>
      <if test="entriesNum != null">
neo's avatar
neo committed
557
        ENTRIES_NUM = #{entriesNum,jdbcType=DECIMAL},
558 559
      </if>
      <if test="debitRelevantAmt != null">
neo's avatar
neo committed
560
        DEBIT_RELEVANT_AMT = #{debitRelevantAmt,jdbcType=DECIMAL},
561 562
      </if>
      <if test="creditRelevantAmt != null">
neo's avatar
neo committed
563
        CREDIT_RELEVANT_AMT = #{creditRelevantAmt,jdbcType=DECIMAL},
564 565
      </if>
      <if test="debitTotalAmt != null">
neo's avatar
neo committed
566
        DEBIT_TOTAL_AMT = #{debitTotalAmt,jdbcType=DECIMAL},
567 568
      </if>
      <if test="creditTotalAmt != null">
neo's avatar
neo committed
569
        CREDIT_TOTAL_AMT = #{creditTotalAmt,jdbcType=DECIMAL},
570 571
      </if>
      <if test="bigVoucherNum != null">
neo's avatar
neo committed
572
        BIG_VOUCHER_NUM = #{bigVoucherNum,jdbcType=DECIMAL},
573 574
      </if>
      <if test="bigEntriesNum != null">
neo's avatar
neo committed
575
        BIG_ENTRIES_NUM = #{bigEntriesNum,jdbcType=DECIMAL},
576 577
      </if>
      <if test="bigDebitRelevantAmt != null">
neo's avatar
neo committed
578
        BIG_DEBIT_RELEVANT_AMT = #{bigDebitRelevantAmt,jdbcType=DECIMAL},
579 580
      </if>
      <if test="bigCreditRelevantAmt != null">
neo's avatar
neo committed
581
        BIG_CREDIT_RELEVANT_AMT = #{bigCreditRelevantAmt,jdbcType=DECIMAL},
582 583
      </if>
      <if test="bigDebitTotalAmt != null">
neo's avatar
neo committed
584
        BIG_DEBIT_TOTAL_AMT = #{bigDebitTotalAmt,jdbcType=DECIMAL},
585 586
      </if>
      <if test="bigCreditTotalAmt != null">
neo's avatar
neo committed
587
        BIG_CREDIT_TOTAL_AMT = #{bigCreditTotalAmt,jdbcType=DECIMAL},
588 589
      </if>
      <if test="entryDoubts != null">
neo's avatar
neo committed
590
        ENTRY_DOUBTS = #{entryDoubts,jdbcType=DECIMAL},
591 592
      </if>
      <if test="bigEntryDoubts != null">
neo's avatar
neo committed
593
        BIG_ENTRY_DOUBTS = #{bigEntryDoubts,jdbcType=DECIMAL},
594 595
      </if>
      <if test="voucherDoubts != null">
neo's avatar
neo committed
596
        VOUCHER_DOUBTS = #{voucherDoubts,jdbcType=DECIMAL},
597 598
      </if>
      <if test="bigVoucherDoubts != null">
neo's avatar
neo committed
599
        BIG_VOUCHER_DOUBTS = #{bigVoucherDoubts,jdbcType=DECIMAL},
600 601
      </if>
      <if test="isFiltered != null">
neo's avatar
neo committed
602
        IS_FILTERED = #{isFiltered,jdbcType=DECIMAL},
603
      </if>
neo's avatar
neo committed
604 605
      <if test="serviceTypeId != null">
        SERVICE_TYPE_ID = #{serviceTypeId,jdbcType=VARCHAR},
606
      </if>
neo's avatar
neo committed
607 608
      <if test="categoryId != null">
        CATEGORY_ID = #{categoryId,jdbcType=VARCHAR},
609 610
      </if>
      <if test="type != null">
neo's avatar
neo committed
611
        "TYPE" = #{type,jdbcType=DECIMAL},
612 613
      </if>
      <if test="isFilter != null">
neo's avatar
neo committed
614
        IS_FILTER = #{isFilter,jdbcType=DECIMAL},
615 616
      </if>
      <if test="isShow != null">
neo's avatar
neo committed
617
        IS_SHOW = #{isShow,jdbcType=DECIMAL},
618 619
      </if>
      <if test="period != null">
neo's avatar
neo committed
620
        PERIOD = #{period,jdbcType=DECIMAL},
621 622
      </if>
      <if test="createTime != null">
neo's avatar
neo committed
623
        CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
624 625
      </if>
      <if test="updateTime != null">
neo's avatar
neo committed
626
        UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
627 628
      </if>
    </set>
neo's avatar
neo committed
629
    where ID = #{id,jdbcType=VARCHAR}
630 631 632 633 634 635
  </update>
  <update id="updateByPrimaryKey" parameterType="pwc.taxtech.atms.vat.entity.EntriesCheckResult">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666
    update ENTRIES_CHECK_RESULT
    set MODEL_ID = #{modelId,jdbcType=VARCHAR},
      CODE = #{code,jdbcType=VARCHAR},
      "NAME" = #{name,jdbcType=VARCHAR},
      DESCRIPTION = #{description,jdbcType=VARCHAR},
      VOUCHER_NUM = #{voucherNum,jdbcType=DECIMAL},
      ENTRIES_NUM = #{entriesNum,jdbcType=DECIMAL},
      DEBIT_RELEVANT_AMT = #{debitRelevantAmt,jdbcType=DECIMAL},
      CREDIT_RELEVANT_AMT = #{creditRelevantAmt,jdbcType=DECIMAL},
      DEBIT_TOTAL_AMT = #{debitTotalAmt,jdbcType=DECIMAL},
      CREDIT_TOTAL_AMT = #{creditTotalAmt,jdbcType=DECIMAL},
      BIG_VOUCHER_NUM = #{bigVoucherNum,jdbcType=DECIMAL},
      BIG_ENTRIES_NUM = #{bigEntriesNum,jdbcType=DECIMAL},
      BIG_DEBIT_RELEVANT_AMT = #{bigDebitRelevantAmt,jdbcType=DECIMAL},
      BIG_CREDIT_RELEVANT_AMT = #{bigCreditRelevantAmt,jdbcType=DECIMAL},
      BIG_DEBIT_TOTAL_AMT = #{bigDebitTotalAmt,jdbcType=DECIMAL},
      BIG_CREDIT_TOTAL_AMT = #{bigCreditTotalAmt,jdbcType=DECIMAL},
      ENTRY_DOUBTS = #{entryDoubts,jdbcType=DECIMAL},
      BIG_ENTRY_DOUBTS = #{bigEntryDoubts,jdbcType=DECIMAL},
      VOUCHER_DOUBTS = #{voucherDoubts,jdbcType=DECIMAL},
      BIG_VOUCHER_DOUBTS = #{bigVoucherDoubts,jdbcType=DECIMAL},
      IS_FILTERED = #{isFiltered,jdbcType=DECIMAL},
      SERVICE_TYPE_ID = #{serviceTypeId,jdbcType=VARCHAR},
      CATEGORY_ID = #{categoryId,jdbcType=VARCHAR},
      "TYPE" = #{type,jdbcType=DECIMAL},
      IS_FILTER = #{isFilter,jdbcType=DECIMAL},
      IS_SHOW = #{isShow,jdbcType=DECIMAL},
      PERIOD = #{period,jdbcType=DECIMAL},
      CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
      UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP}
    where ID = #{id,jdbcType=VARCHAR}
667 668 669 670 671 672 673 674 675 676 677
  </update>
  <select id="selectByExampleWithRowbounds" parameterType="pwc.taxtech.atms.vat.entity.EntriesCheckResultExample" 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" />
neo's avatar
neo committed
678
    from ENTRIES_CHECK_RESULT
679 680 681 682 683 684 685
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
686
</mapper>