PeriodCellTemplateConfigMapper.xml 24.9 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.PeriodCellTemplateConfigMapper">
4 5 6 7 8
  <resultMap id="BaseResultMap" type="pwc.taxtech.atms.vat.entity.PeriodCellTemplateConfig">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
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
    <id column="id" jdbcType="BIGINT" property="id" />
    <result column="period" jdbcType="INTEGER" property="period" />
    <result column="cell_template_id" jdbcType="BIGINT" property="cellTemplateId" />
    <result column="report_template_id" jdbcType="BIGINT" property="reportTemplateId" />
    <result column="data_source_type" jdbcType="INTEGER" property="dataSourceType" />
    <result column="formula" jdbcType="VARCHAR" property="formula" />
    <result column="parsed_formula" jdbcType="VARCHAR" property="parsedFormula" />
    <result column="formula_description" jdbcType="VARCHAR" property="formulaDescription" />
    <result column="account_codes" jdbcType="VARCHAR" property="accountCodes" />
    <result column="invoice_type" jdbcType="INTEGER" property="invoiceType" />
    <result column="tax_rate" jdbcType="VARCHAR" property="taxRate" />
    <result column="invoice_amount_type" jdbcType="INTEGER" property="invoiceAmountType" />
    <result column="model_ids" jdbcType="VARCHAR" property="modelIds" />
    <result column="create_by" jdbcType="VARCHAR" property="createBy" />
    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
    <result column="update_by" jdbcType="VARCHAR" property="updateBy" />
    <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
    <result column="invoice_category" jdbcType="VARCHAR" property="invoiceCategory" />
    <result column="formula_data_source" jdbcType="VARCHAR" property="formulaDataSource" />
    <result column="validation" jdbcType="VARCHAR" property="validation" />
    <result column="parsed_validation" jdbcType="VARCHAR" property="parsedValidation" />
    <result column="validation_description" jdbcType="VARCHAR" property="validationDescription" />
    <result column="voucher_keyword" jdbcType="VARCHAR" property="voucherKeyword" />
    <result column="cell_template_config_id" jdbcType="BIGINT" property="cellTemplateConfigId" />
    <result column="key_value_parsed_formula" jdbcType="VARCHAR" property="keyValueParsedFormula" />
    <result column="project_id" jdbcType="VARCHAR" property="projectId" />
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
  </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>
63
            </foreach>
64
          </trim>
65
        </if>
66 67 68 69 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
      </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>
98
        </if>
99 100 101 102 103 104 105 106
      </foreach>
    </where>
  </sql>
  <sql id="Base_Column_List">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
107 108 109 110 111
    id, period, cell_template_id, report_template_id, data_source_type, formula, parsed_formula, 
    formula_description, account_codes, invoice_type, tax_rate, invoice_amount_type, 
    model_ids, create_by, create_time, update_by, update_time, invoice_category, formula_data_source, 
    validation, parsed_validation, validation_description, voucher_keyword, cell_template_config_id, 
    key_value_parsed_formula, project_id
112 113 114 115 116 117 118 119 120 121 122
  </sql>
  <select id="selectByExample" parameterType="pwc.taxtech.atms.vat.entity.PeriodCellTemplateConfigExample" 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" />
123
    from period_cell_template_config
124 125 126 127 128 129 130 131 132 133 134 135 136 137
    <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" />
138 139
    from period_cell_template_config
    where id = #{id,jdbcType=BIGINT}
140 141 142 143 144 145
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
146 147
    delete from period_cell_template_config
    where id = #{id,jdbcType=BIGINT}
148 149 150 151 152 153
  </delete>
  <delete id="deleteByExample" parameterType="pwc.taxtech.atms.vat.entity.PeriodCellTemplateConfigExample">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
154
    delete from period_cell_template_config
155 156 157 158 159 160 161 162 163
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="pwc.taxtech.atms.vat.entity.PeriodCellTemplateConfig">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
164 165 166 167 168 169 170 171 172 173 174 175
    insert into period_cell_template_config (id, period, cell_template_id, 
      report_template_id, data_source_type, formula, 
      parsed_formula, formula_description, account_codes, 
      invoice_type, tax_rate, invoice_amount_type, 
      model_ids, create_by, create_time, 
      update_by, update_time, invoice_category, 
      formula_data_source, validation, parsed_validation, 
      validation_description, voucher_keyword, 
      cell_template_config_id, key_value_parsed_formula, 
      project_id)
    values (#{id,jdbcType=BIGINT}, #{period,jdbcType=INTEGER}, #{cellTemplateId,jdbcType=BIGINT}, 
      #{reportTemplateId,jdbcType=BIGINT}, #{dataSourceType,jdbcType=INTEGER}, #{formula,jdbcType=VARCHAR}, 
176
      #{parsedFormula,jdbcType=VARCHAR}, #{formulaDescription,jdbcType=VARCHAR}, #{accountCodes,jdbcType=VARCHAR}, 
177
      #{invoiceType,jdbcType=INTEGER}, #{taxRate,jdbcType=VARCHAR}, #{invoiceAmountType,jdbcType=INTEGER}, 
178 179 180 181
      #{modelIds,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, 
      #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{invoiceCategory,jdbcType=VARCHAR}, 
      #{formulaDataSource,jdbcType=VARCHAR}, #{validation,jdbcType=VARCHAR}, #{parsedValidation,jdbcType=VARCHAR}, 
      #{validationDescription,jdbcType=VARCHAR}, #{voucherKeyword,jdbcType=VARCHAR}, 
182
      #{cellTemplateConfigId,jdbcType=BIGINT}, #{keyValueParsedFormula,jdbcType=VARCHAR}, 
neo's avatar
neo committed
183
      #{projectId,jdbcType=VARCHAR})
184 185 186 187 188 189
  </insert>
  <insert id="insertSelective" parameterType="pwc.taxtech.atms.vat.entity.PeriodCellTemplateConfig">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
190
    insert into period_cell_template_config
191 192
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
193
        id,
194 195
      </if>
      <if test="period != null">
196
        period,
197 198
      </if>
      <if test="cellTemplateId != null">
199
        cell_template_id,
200 201
      </if>
      <if test="reportTemplateId != null">
202
        report_template_id,
203 204
      </if>
      <if test="dataSourceType != null">
205
        data_source_type,
206 207
      </if>
      <if test="formula != null">
208
        formula,
209 210
      </if>
      <if test="parsedFormula != null">
211
        parsed_formula,
212 213
      </if>
      <if test="formulaDescription != null">
214
        formula_description,
215 216
      </if>
      <if test="accountCodes != null">
217
        account_codes,
218 219
      </if>
      <if test="invoiceType != null">
220
        invoice_type,
221 222
      </if>
      <if test="taxRate != null">
223
        tax_rate,
224 225
      </if>
      <if test="invoiceAmountType != null">
226
        invoice_amount_type,
227 228
      </if>
      <if test="modelIds != null">
229
        model_ids,
230 231
      </if>
      <if test="createBy != null">
232
        create_by,
233 234
      </if>
      <if test="createTime != null">
235
        create_time,
236 237
      </if>
      <if test="updateBy != null">
238
        update_by,
239 240
      </if>
      <if test="updateTime != null">
241
        update_time,
242 243
      </if>
      <if test="invoiceCategory != null">
244
        invoice_category,
245 246
      </if>
      <if test="formulaDataSource != null">
247
        formula_data_source,
248 249
      </if>
      <if test="validation != null">
250
        validation,
251 252
      </if>
      <if test="parsedValidation != null">
253
        parsed_validation,
254 255
      </if>
      <if test="validationDescription != null">
256
        validation_description,
257 258
      </if>
      <if test="voucherKeyword != null">
259
        voucher_keyword,
260 261
      </if>
      <if test="cellTemplateConfigId != null">
262
        cell_template_config_id,
263 264
      </if>
      <if test="keyValueParsedFormula != null">
265
        key_value_parsed_formula,
266
      </if>
neo's avatar
neo committed
267
      <if test="projectId != null">
268
        project_id,
neo's avatar
neo committed
269
      </if>
270 271 272
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
273
        #{id,jdbcType=BIGINT},
274 275
      </if>
      <if test="period != null">
276
        #{period,jdbcType=INTEGER},
277 278
      </if>
      <if test="cellTemplateId != null">
279
        #{cellTemplateId,jdbcType=BIGINT},
280 281
      </if>
      <if test="reportTemplateId != null">
282
        #{reportTemplateId,jdbcType=BIGINT},
283 284
      </if>
      <if test="dataSourceType != null">
285
        #{dataSourceType,jdbcType=INTEGER},
286 287 288 289 290 291 292 293 294 295 296 297 298 299
      </if>
      <if test="formula != null">
        #{formula,jdbcType=VARCHAR},
      </if>
      <if test="parsedFormula != null">
        #{parsedFormula,jdbcType=VARCHAR},
      </if>
      <if test="formulaDescription != null">
        #{formulaDescription,jdbcType=VARCHAR},
      </if>
      <if test="accountCodes != null">
        #{accountCodes,jdbcType=VARCHAR},
      </if>
      <if test="invoiceType != null">
300
        #{invoiceType,jdbcType=INTEGER},
301 302 303 304 305
      </if>
      <if test="taxRate != null">
        #{taxRate,jdbcType=VARCHAR},
      </if>
      <if test="invoiceAmountType != null">
306
        #{invoiceAmountType,jdbcType=INTEGER},
307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341
      </if>
      <if test="modelIds != null">
        #{modelIds,jdbcType=VARCHAR},
      </if>
      <if test="createBy != null">
        #{createBy,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateBy != null">
        #{updateBy,jdbcType=VARCHAR},
      </if>
      <if test="updateTime != null">
        #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="invoiceCategory != null">
        #{invoiceCategory,jdbcType=VARCHAR},
      </if>
      <if test="formulaDataSource != null">
        #{formulaDataSource,jdbcType=VARCHAR},
      </if>
      <if test="validation != null">
        #{validation,jdbcType=VARCHAR},
      </if>
      <if test="parsedValidation != null">
        #{parsedValidation,jdbcType=VARCHAR},
      </if>
      <if test="validationDescription != null">
        #{validationDescription,jdbcType=VARCHAR},
      </if>
      <if test="voucherKeyword != null">
        #{voucherKeyword,jdbcType=VARCHAR},
      </if>
      <if test="cellTemplateConfigId != null">
342
        #{cellTemplateConfigId,jdbcType=BIGINT},
343 344 345 346
      </if>
      <if test="keyValueParsedFormula != null">
        #{keyValueParsedFormula,jdbcType=VARCHAR},
      </if>
neo's avatar
neo committed
347 348 349
      <if test="projectId != null">
        #{projectId,jdbcType=VARCHAR},
      </if>
350 351 352 353 354 355 356
    </trim>
  </insert>
  <select id="countByExample" parameterType="pwc.taxtech.atms.vat.entity.PeriodCellTemplateConfigExample" resultType="java.lang.Long">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
357
    select count(*) from period_cell_template_config
358 359 360 361 362 363 364 365 366
    <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.
    -->
367
    update period_cell_template_config
368 369
    <set>
      <if test="record.id != null">
370
        id = #{record.id,jdbcType=BIGINT},
371 372
      </if>
      <if test="record.period != null">
373
        period = #{record.period,jdbcType=INTEGER},
374 375
      </if>
      <if test="record.cellTemplateId != null">
376
        cell_template_id = #{record.cellTemplateId,jdbcType=BIGINT},
377 378
      </if>
      <if test="record.reportTemplateId != null">
379
        report_template_id = #{record.reportTemplateId,jdbcType=BIGINT},
380 381
      </if>
      <if test="record.dataSourceType != null">
382
        data_source_type = #{record.dataSourceType,jdbcType=INTEGER},
383 384
      </if>
      <if test="record.formula != null">
385
        formula = #{record.formula,jdbcType=VARCHAR},
386 387
      </if>
      <if test="record.parsedFormula != null">
388
        parsed_formula = #{record.parsedFormula,jdbcType=VARCHAR},
389 390
      </if>
      <if test="record.formulaDescription != null">
391
        formula_description = #{record.formulaDescription,jdbcType=VARCHAR},
392 393
      </if>
      <if test="record.accountCodes != null">
394
        account_codes = #{record.accountCodes,jdbcType=VARCHAR},
395 396
      </if>
      <if test="record.invoiceType != null">
397
        invoice_type = #{record.invoiceType,jdbcType=INTEGER},
398 399
      </if>
      <if test="record.taxRate != null">
400
        tax_rate = #{record.taxRate,jdbcType=VARCHAR},
401 402
      </if>
      <if test="record.invoiceAmountType != null">
403
        invoice_amount_type = #{record.invoiceAmountType,jdbcType=INTEGER},
404 405
      </if>
      <if test="record.modelIds != null">
406
        model_ids = #{record.modelIds,jdbcType=VARCHAR},
407 408
      </if>
      <if test="record.createBy != null">
409
        create_by = #{record.createBy,jdbcType=VARCHAR},
410 411
      </if>
      <if test="record.createTime != null">
412
        create_time = #{record.createTime,jdbcType=TIMESTAMP},
413 414
      </if>
      <if test="record.updateBy != null">
415
        update_by = #{record.updateBy,jdbcType=VARCHAR},
416 417
      </if>
      <if test="record.updateTime != null">
418
        update_time = #{record.updateTime,jdbcType=TIMESTAMP},
419 420
      </if>
      <if test="record.invoiceCategory != null">
421
        invoice_category = #{record.invoiceCategory,jdbcType=VARCHAR},
422 423
      </if>
      <if test="record.formulaDataSource != null">
424
        formula_data_source = #{record.formulaDataSource,jdbcType=VARCHAR},
425 426
      </if>
      <if test="record.validation != null">
427
        validation = #{record.validation,jdbcType=VARCHAR},
428 429
      </if>
      <if test="record.parsedValidation != null">
430
        parsed_validation = #{record.parsedValidation,jdbcType=VARCHAR},
431 432
      </if>
      <if test="record.validationDescription != null">
433
        validation_description = #{record.validationDescription,jdbcType=VARCHAR},
434 435
      </if>
      <if test="record.voucherKeyword != null">
436
        voucher_keyword = #{record.voucherKeyword,jdbcType=VARCHAR},
437 438
      </if>
      <if test="record.cellTemplateConfigId != null">
439
        cell_template_config_id = #{record.cellTemplateConfigId,jdbcType=BIGINT},
440 441
      </if>
      <if test="record.keyValueParsedFormula != null">
442
        key_value_parsed_formula = #{record.keyValueParsedFormula,jdbcType=VARCHAR},
443
      </if>
neo's avatar
neo committed
444
      <if test="record.projectId != null">
445
        project_id = #{record.projectId,jdbcType=VARCHAR},
neo's avatar
neo committed
446
      </if>
447 448 449 450 451 452 453 454 455 456
    </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.
    -->
457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483
    update period_cell_template_config
    set id = #{record.id,jdbcType=BIGINT},
      period = #{record.period,jdbcType=INTEGER},
      cell_template_id = #{record.cellTemplateId,jdbcType=BIGINT},
      report_template_id = #{record.reportTemplateId,jdbcType=BIGINT},
      data_source_type = #{record.dataSourceType,jdbcType=INTEGER},
      formula = #{record.formula,jdbcType=VARCHAR},
      parsed_formula = #{record.parsedFormula,jdbcType=VARCHAR},
      formula_description = #{record.formulaDescription,jdbcType=VARCHAR},
      account_codes = #{record.accountCodes,jdbcType=VARCHAR},
      invoice_type = #{record.invoiceType,jdbcType=INTEGER},
      tax_rate = #{record.taxRate,jdbcType=VARCHAR},
      invoice_amount_type = #{record.invoiceAmountType,jdbcType=INTEGER},
      model_ids = #{record.modelIds,jdbcType=VARCHAR},
      create_by = #{record.createBy,jdbcType=VARCHAR},
      create_time = #{record.createTime,jdbcType=TIMESTAMP},
      update_by = #{record.updateBy,jdbcType=VARCHAR},
      update_time = #{record.updateTime,jdbcType=TIMESTAMP},
      invoice_category = #{record.invoiceCategory,jdbcType=VARCHAR},
      formula_data_source = #{record.formulaDataSource,jdbcType=VARCHAR},
      validation = #{record.validation,jdbcType=VARCHAR},
      parsed_validation = #{record.parsedValidation,jdbcType=VARCHAR},
      validation_description = #{record.validationDescription,jdbcType=VARCHAR},
      voucher_keyword = #{record.voucherKeyword,jdbcType=VARCHAR},
      cell_template_config_id = #{record.cellTemplateConfigId,jdbcType=BIGINT},
      key_value_parsed_formula = #{record.keyValueParsedFormula,jdbcType=VARCHAR},
      project_id = #{record.projectId,jdbcType=VARCHAR}
484 485 486 487 488 489 490 491 492
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="pwc.taxtech.atms.vat.entity.PeriodCellTemplateConfig">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
493
    update period_cell_template_config
494 495
    <set>
      <if test="period != null">
496
        period = #{period,jdbcType=INTEGER},
497 498
      </if>
      <if test="cellTemplateId != null">
499
        cell_template_id = #{cellTemplateId,jdbcType=BIGINT},
500 501
      </if>
      <if test="reportTemplateId != null">
502
        report_template_id = #{reportTemplateId,jdbcType=BIGINT},
503 504
      </if>
      <if test="dataSourceType != null">
505
        data_source_type = #{dataSourceType,jdbcType=INTEGER},
506 507
      </if>
      <if test="formula != null">
508
        formula = #{formula,jdbcType=VARCHAR},
509 510
      </if>
      <if test="parsedFormula != null">
511
        parsed_formula = #{parsedFormula,jdbcType=VARCHAR},
512 513
      </if>
      <if test="formulaDescription != null">
514
        formula_description = #{formulaDescription,jdbcType=VARCHAR},
515 516
      </if>
      <if test="accountCodes != null">
517
        account_codes = #{accountCodes,jdbcType=VARCHAR},
518 519
      </if>
      <if test="invoiceType != null">
520
        invoice_type = #{invoiceType,jdbcType=INTEGER},
521 522
      </if>
      <if test="taxRate != null">
523
        tax_rate = #{taxRate,jdbcType=VARCHAR},
524 525
      </if>
      <if test="invoiceAmountType != null">
526
        invoice_amount_type = #{invoiceAmountType,jdbcType=INTEGER},
527 528
      </if>
      <if test="modelIds != null">
529
        model_ids = #{modelIds,jdbcType=VARCHAR},
530 531
      </if>
      <if test="createBy != null">
532
        create_by = #{createBy,jdbcType=VARCHAR},
533 534
      </if>
      <if test="createTime != null">
535
        create_time = #{createTime,jdbcType=TIMESTAMP},
536 537
      </if>
      <if test="updateBy != null">
538
        update_by = #{updateBy,jdbcType=VARCHAR},
539 540
      </if>
      <if test="updateTime != null">
541
        update_time = #{updateTime,jdbcType=TIMESTAMP},
542 543
      </if>
      <if test="invoiceCategory != null">
544
        invoice_category = #{invoiceCategory,jdbcType=VARCHAR},
545 546
      </if>
      <if test="formulaDataSource != null">
547
        formula_data_source = #{formulaDataSource,jdbcType=VARCHAR},
548 549
      </if>
      <if test="validation != null">
550
        validation = #{validation,jdbcType=VARCHAR},
551 552
      </if>
      <if test="parsedValidation != null">
553
        parsed_validation = #{parsedValidation,jdbcType=VARCHAR},
554 555
      </if>
      <if test="validationDescription != null">
556
        validation_description = #{validationDescription,jdbcType=VARCHAR},
557 558
      </if>
      <if test="voucherKeyword != null">
559
        voucher_keyword = #{voucherKeyword,jdbcType=VARCHAR},
560 561
      </if>
      <if test="cellTemplateConfigId != null">
562
        cell_template_config_id = #{cellTemplateConfigId,jdbcType=BIGINT},
563 564
      </if>
      <if test="keyValueParsedFormula != null">
565
        key_value_parsed_formula = #{keyValueParsedFormula,jdbcType=VARCHAR},
566
      </if>
neo's avatar
neo committed
567
      <if test="projectId != null">
568
        project_id = #{projectId,jdbcType=VARCHAR},
neo's avatar
neo committed
569
      </if>
570
    </set>
571
    where id = #{id,jdbcType=BIGINT}
572 573 574 575 576 577
  </update>
  <update id="updateByPrimaryKey" parameterType="pwc.taxtech.atms.vat.entity.PeriodCellTemplateConfig">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604
    update period_cell_template_config
    set period = #{period,jdbcType=INTEGER},
      cell_template_id = #{cellTemplateId,jdbcType=BIGINT},
      report_template_id = #{reportTemplateId,jdbcType=BIGINT},
      data_source_type = #{dataSourceType,jdbcType=INTEGER},
      formula = #{formula,jdbcType=VARCHAR},
      parsed_formula = #{parsedFormula,jdbcType=VARCHAR},
      formula_description = #{formulaDescription,jdbcType=VARCHAR},
      account_codes = #{accountCodes,jdbcType=VARCHAR},
      invoice_type = #{invoiceType,jdbcType=INTEGER},
      tax_rate = #{taxRate,jdbcType=VARCHAR},
      invoice_amount_type = #{invoiceAmountType,jdbcType=INTEGER},
      model_ids = #{modelIds,jdbcType=VARCHAR},
      create_by = #{createBy,jdbcType=VARCHAR},
      create_time = #{createTime,jdbcType=TIMESTAMP},
      update_by = #{updateBy,jdbcType=VARCHAR},
      update_time = #{updateTime,jdbcType=TIMESTAMP},
      invoice_category = #{invoiceCategory,jdbcType=VARCHAR},
      formula_data_source = #{formulaDataSource,jdbcType=VARCHAR},
      validation = #{validation,jdbcType=VARCHAR},
      parsed_validation = #{parsedValidation,jdbcType=VARCHAR},
      validation_description = #{validationDescription,jdbcType=VARCHAR},
      voucher_keyword = #{voucherKeyword,jdbcType=VARCHAR},
      cell_template_config_id = #{cellTemplateConfigId,jdbcType=BIGINT},
      key_value_parsed_formula = #{keyValueParsedFormula,jdbcType=VARCHAR},
      project_id = #{projectId,jdbcType=VARCHAR}
    where id = #{id,jdbcType=BIGINT}
605 606 607 608 609 610 611 612 613 614 615
  </update>
  <select id="selectByExampleWithRowbounds" parameterType="pwc.taxtech.atms.vat.entity.PeriodCellTemplateConfigExample" 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" />
616
    from period_cell_template_config
617 618 619 620 621 622 623
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
624
</mapper>