CellTemplateConfigMapper.xml 20.5 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.dao.CellTemplateConfigMapper">
4
  <resultMap id="BaseResultMap" type="pwc.taxtech.atms.entity.CellTemplateConfig">
5 6 7 8
    <!--
      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
    <id column="ID" jdbcType="DECIMAL" property="id" />
    <result column="CELL_TEMPLATE_ID" jdbcType="DECIMAL" property="cellTemplateId" />
    <result column="REPORT_TEMPLATE_ID" jdbcType="DECIMAL" property="reportTemplateId" />
    <result column="DATA_SOURCE_TYPE" jdbcType="DECIMAL" property="dataSourceType" />
    <result column="FORMULA" jdbcType="VARCHAR" property="formula" />
    <result column="FORMULA_DESCRIPTION" jdbcType="VARCHAR" property="formulaDescription" />
    <result column="ACCOUNT_CODES" jdbcType="VARCHAR" property="accountCodes" />
    <result column="INVOICE_TYPE" jdbcType="DECIMAL" property="invoiceType" />
    <result column="TAX_RATE" jdbcType="VARCHAR" property="taxRate" />
    <result column="INVOICE_AMOUNT_TYPE" jdbcType="DECIMAL" 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="VALIDATION_DESCRIPTION" jdbcType="VARCHAR" property="validationDescription" />
    <result column="VOUCHER_KEYWORD" jdbcType="VARCHAR" property="voucherKeyword" />
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
  </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>
57
            </foreach>
58
          </trim>
59
        </if>
60 61 62 63 64 65 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
      </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>
92
        </if>
93 94 95 96 97 98 99 100
      </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
101 102 103 104
    ID, CELL_TEMPLATE_ID, REPORT_TEMPLATE_ID, DATA_SOURCE_TYPE, 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, 
    VALIDATION_DESCRIPTION, VOUCHER_KEYWORD
105
  </sql>
106
  <select id="selectByExample" parameterType="pwc.taxtech.atms.entity.CellTemplateConfigExample" resultMap="BaseResultMap">
107 108 109 110 111 112 113 114 115
    <!--
      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
116
    from CELL_TEMPLATE_CONFIG
117 118 119 120 121 122 123 124 125 126 127 128 129 130
    <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" />
neo's avatar
neo committed
131 132
    from CELL_TEMPLATE_CONFIG
    where ID = #{id,jdbcType=DECIMAL}
133 134 135 136 137 138
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
139 140
    delete from CELL_TEMPLATE_CONFIG
    where ID = #{id,jdbcType=DECIMAL}
141
  </delete>
142
  <delete id="deleteByExample" parameterType="pwc.taxtech.atms.entity.CellTemplateConfigExample">
143 144 145 146
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
147
    delete from CELL_TEMPLATE_CONFIG
148 149 150 151
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
152
  <insert id="insert" parameterType="pwc.taxtech.atms.entity.CellTemplateConfig">
153 154 155 156
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
157 158 159 160 161 162 163 164 165 166 167
    insert into CELL_TEMPLATE_CONFIG (ID, CELL_TEMPLATE_ID, REPORT_TEMPLATE_ID, 
      DATA_SOURCE_TYPE, 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, 
      VALIDATION_DESCRIPTION, VOUCHER_KEYWORD)
    values (#{id,jdbcType=DECIMAL}, #{cellTemplateId,jdbcType=DECIMAL}, #{reportTemplateId,jdbcType=DECIMAL}, 
      #{dataSourceType,jdbcType=DECIMAL}, #{formula,jdbcType=VARCHAR}, #{formulaDescription,jdbcType=VARCHAR}, 
      #{accountCodes,jdbcType=VARCHAR}, #{invoiceType,jdbcType=DECIMAL}, #{taxRate,jdbcType=VARCHAR}, 
      #{invoiceAmountType,jdbcType=DECIMAL}, #{modelIds,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, 
168 169 170 171
      #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, 
      #{invoiceCategory,jdbcType=VARCHAR}, #{formulaDataSource,jdbcType=VARCHAR}, #{validation,jdbcType=VARCHAR}, 
      #{validationDescription,jdbcType=VARCHAR}, #{voucherKeyword,jdbcType=VARCHAR})
  </insert>
172
  <insert id="insertSelective" parameterType="pwc.taxtech.atms.entity.CellTemplateConfig">
173 174 175 176
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
177
    insert into CELL_TEMPLATE_CONFIG
178 179
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
neo's avatar
neo committed
180
        ID,
181 182
      </if>
      <if test="cellTemplateId != null">
neo's avatar
neo committed
183
        CELL_TEMPLATE_ID,
184 185
      </if>
      <if test="reportTemplateId != null">
neo's avatar
neo committed
186
        REPORT_TEMPLATE_ID,
187 188
      </if>
      <if test="dataSourceType != null">
neo's avatar
neo committed
189
        DATA_SOURCE_TYPE,
190 191
      </if>
      <if test="formula != null">
neo's avatar
neo committed
192
        FORMULA,
193 194
      </if>
      <if test="formulaDescription != null">
neo's avatar
neo committed
195
        FORMULA_DESCRIPTION,
196 197
      </if>
      <if test="accountCodes != null">
neo's avatar
neo committed
198
        ACCOUNT_CODES,
199 200
      </if>
      <if test="invoiceType != null">
neo's avatar
neo committed
201
        INVOICE_TYPE,
202 203
      </if>
      <if test="taxRate != null">
neo's avatar
neo committed
204
        TAX_RATE,
205 206
      </if>
      <if test="invoiceAmountType != null">
neo's avatar
neo committed
207
        INVOICE_AMOUNT_TYPE,
208 209
      </if>
      <if test="modelIds != null">
neo's avatar
neo committed
210
        MODEL_IDS,
211 212
      </if>
      <if test="createBy != null">
neo's avatar
neo committed
213
        CREATE_BY,
214 215
      </if>
      <if test="createTime != null">
neo's avatar
neo committed
216
        CREATE_TIME,
217 218
      </if>
      <if test="updateBy != null">
neo's avatar
neo committed
219
        UPDATE_BY,
220 221
      </if>
      <if test="updateTime != null">
neo's avatar
neo committed
222
        UPDATE_TIME,
223 224
      </if>
      <if test="invoiceCategory != null">
neo's avatar
neo committed
225
        INVOICE_CATEGORY,
226 227
      </if>
      <if test="formulaDataSource != null">
neo's avatar
neo committed
228
        FORMULA_DATA_SOURCE,
229 230
      </if>
      <if test="validation != null">
neo's avatar
neo committed
231
        VALIDATION,
232 233
      </if>
      <if test="validationDescription != null">
neo's avatar
neo committed
234
        VALIDATION_DESCRIPTION,
235 236
      </if>
      <if test="voucherKeyword != null">
neo's avatar
neo committed
237
        VOUCHER_KEYWORD,
238 239 240 241
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
neo's avatar
neo committed
242
        #{id,jdbcType=DECIMAL},
243 244
      </if>
      <if test="cellTemplateId != null">
neo's avatar
neo committed
245
        #{cellTemplateId,jdbcType=DECIMAL},
246 247
      </if>
      <if test="reportTemplateId != null">
neo's avatar
neo committed
248
        #{reportTemplateId,jdbcType=DECIMAL},
249 250
      </if>
      <if test="dataSourceType != null">
neo's avatar
neo committed
251
        #{dataSourceType,jdbcType=DECIMAL},
252 253 254 255 256 257 258 259 260 261 262
      </if>
      <if test="formula != null">
        #{formula,jdbcType=VARCHAR},
      </if>
      <if test="formulaDescription != null">
        #{formulaDescription,jdbcType=VARCHAR},
      </if>
      <if test="accountCodes != null">
        #{accountCodes,jdbcType=VARCHAR},
      </if>
      <if test="invoiceType != null">
neo's avatar
neo committed
263
        #{invoiceType,jdbcType=DECIMAL},
264 265 266 267 268
      </if>
      <if test="taxRate != null">
        #{taxRate,jdbcType=VARCHAR},
      </if>
      <if test="invoiceAmountType != null">
neo's avatar
neo committed
269
        #{invoiceAmountType,jdbcType=DECIMAL},
270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302
      </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="validationDescription != null">
        #{validationDescription,jdbcType=VARCHAR},
      </if>
      <if test="voucherKeyword != null">
        #{voucherKeyword,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
303
  <select id="countByExample" parameterType="pwc.taxtech.atms.entity.CellTemplateConfigExample" resultType="java.lang.Long">
304 305 306 307
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
308
    select count(*) from CELL_TEMPLATE_CONFIG
309 310 311 312 313 314 315 316 317
    <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
318
    update CELL_TEMPLATE_CONFIG
319 320
    <set>
      <if test="record.id != null">
neo's avatar
neo committed
321
        ID = #{record.id,jdbcType=DECIMAL},
322 323
      </if>
      <if test="record.cellTemplateId != null">
neo's avatar
neo committed
324
        CELL_TEMPLATE_ID = #{record.cellTemplateId,jdbcType=DECIMAL},
325 326
      </if>
      <if test="record.reportTemplateId != null">
neo's avatar
neo committed
327
        REPORT_TEMPLATE_ID = #{record.reportTemplateId,jdbcType=DECIMAL},
328 329
      </if>
      <if test="record.dataSourceType != null">
neo's avatar
neo committed
330
        DATA_SOURCE_TYPE = #{record.dataSourceType,jdbcType=DECIMAL},
331 332
      </if>
      <if test="record.formula != null">
neo's avatar
neo committed
333
        FORMULA = #{record.formula,jdbcType=VARCHAR},
334 335
      </if>
      <if test="record.formulaDescription != null">
neo's avatar
neo committed
336
        FORMULA_DESCRIPTION = #{record.formulaDescription,jdbcType=VARCHAR},
337 338
      </if>
      <if test="record.accountCodes != null">
neo's avatar
neo committed
339
        ACCOUNT_CODES = #{record.accountCodes,jdbcType=VARCHAR},
340 341
      </if>
      <if test="record.invoiceType != null">
neo's avatar
neo committed
342
        INVOICE_TYPE = #{record.invoiceType,jdbcType=DECIMAL},
343 344
      </if>
      <if test="record.taxRate != null">
neo's avatar
neo committed
345
        TAX_RATE = #{record.taxRate,jdbcType=VARCHAR},
346 347
      </if>
      <if test="record.invoiceAmountType != null">
neo's avatar
neo committed
348
        INVOICE_AMOUNT_TYPE = #{record.invoiceAmountType,jdbcType=DECIMAL},
349 350
      </if>
      <if test="record.modelIds != null">
neo's avatar
neo committed
351
        MODEL_IDS = #{record.modelIds,jdbcType=VARCHAR},
352 353
      </if>
      <if test="record.createBy != null">
neo's avatar
neo committed
354
        CREATE_BY = #{record.createBy,jdbcType=VARCHAR},
355 356
      </if>
      <if test="record.createTime != null">
neo's avatar
neo committed
357
        CREATE_TIME = #{record.createTime,jdbcType=TIMESTAMP},
358 359
      </if>
      <if test="record.updateBy != null">
neo's avatar
neo committed
360
        UPDATE_BY = #{record.updateBy,jdbcType=VARCHAR},
361 362
      </if>
      <if test="record.updateTime != null">
neo's avatar
neo committed
363
        UPDATE_TIME = #{record.updateTime,jdbcType=TIMESTAMP},
364 365
      </if>
      <if test="record.invoiceCategory != null">
neo's avatar
neo committed
366
        INVOICE_CATEGORY = #{record.invoiceCategory,jdbcType=VARCHAR},
367 368
      </if>
      <if test="record.formulaDataSource != null">
neo's avatar
neo committed
369
        FORMULA_DATA_SOURCE = #{record.formulaDataSource,jdbcType=VARCHAR},
370 371
      </if>
      <if test="record.validation != null">
neo's avatar
neo committed
372
        VALIDATION = #{record.validation,jdbcType=VARCHAR},
373 374
      </if>
      <if test="record.validationDescription != null">
neo's avatar
neo committed
375
        VALIDATION_DESCRIPTION = #{record.validationDescription,jdbcType=VARCHAR},
376 377
      </if>
      <if test="record.voucherKeyword != null">
neo's avatar
neo committed
378
        VOUCHER_KEYWORD = #{record.voucherKeyword,jdbcType=VARCHAR},
379 380 381 382 383 384 385 386 387 388 389
      </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
390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410
    update CELL_TEMPLATE_CONFIG
    set ID = #{record.id,jdbcType=DECIMAL},
      CELL_TEMPLATE_ID = #{record.cellTemplateId,jdbcType=DECIMAL},
      REPORT_TEMPLATE_ID = #{record.reportTemplateId,jdbcType=DECIMAL},
      DATA_SOURCE_TYPE = #{record.dataSourceType,jdbcType=DECIMAL},
      FORMULA = #{record.formula,jdbcType=VARCHAR},
      FORMULA_DESCRIPTION = #{record.formulaDescription,jdbcType=VARCHAR},
      ACCOUNT_CODES = #{record.accountCodes,jdbcType=VARCHAR},
      INVOICE_TYPE = #{record.invoiceType,jdbcType=DECIMAL},
      TAX_RATE = #{record.taxRate,jdbcType=VARCHAR},
      INVOICE_AMOUNT_TYPE = #{record.invoiceAmountType,jdbcType=DECIMAL},
      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},
      VALIDATION_DESCRIPTION = #{record.validationDescription,jdbcType=VARCHAR},
      VOUCHER_KEYWORD = #{record.voucherKeyword,jdbcType=VARCHAR}
411 412 413 414
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
415
  <update id="updateByPrimaryKeySelective" parameterType="pwc.taxtech.atms.entity.CellTemplateConfig">
416 417 418 419
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
420
    update CELL_TEMPLATE_CONFIG
421 422
    <set>
      <if test="cellTemplateId != null">
neo's avatar
neo committed
423
        CELL_TEMPLATE_ID = #{cellTemplateId,jdbcType=DECIMAL},
424 425
      </if>
      <if test="reportTemplateId != null">
neo's avatar
neo committed
426
        REPORT_TEMPLATE_ID = #{reportTemplateId,jdbcType=DECIMAL},
427 428
      </if>
      <if test="dataSourceType != null">
neo's avatar
neo committed
429
        DATA_SOURCE_TYPE = #{dataSourceType,jdbcType=DECIMAL},
430 431
      </if>
      <if test="formula != null">
neo's avatar
neo committed
432
        FORMULA = #{formula,jdbcType=VARCHAR},
433 434
      </if>
      <if test="formulaDescription != null">
neo's avatar
neo committed
435
        FORMULA_DESCRIPTION = #{formulaDescription,jdbcType=VARCHAR},
436 437
      </if>
      <if test="accountCodes != null">
neo's avatar
neo committed
438
        ACCOUNT_CODES = #{accountCodes,jdbcType=VARCHAR},
439 440
      </if>
      <if test="invoiceType != null">
neo's avatar
neo committed
441
        INVOICE_TYPE = #{invoiceType,jdbcType=DECIMAL},
442 443
      </if>
      <if test="taxRate != null">
neo's avatar
neo committed
444
        TAX_RATE = #{taxRate,jdbcType=VARCHAR},
445 446
      </if>
      <if test="invoiceAmountType != null">
neo's avatar
neo committed
447
        INVOICE_AMOUNT_TYPE = #{invoiceAmountType,jdbcType=DECIMAL},
448 449
      </if>
      <if test="modelIds != null">
neo's avatar
neo committed
450
        MODEL_IDS = #{modelIds,jdbcType=VARCHAR},
451 452
      </if>
      <if test="createBy != null">
neo's avatar
neo committed
453
        CREATE_BY = #{createBy,jdbcType=VARCHAR},
454 455
      </if>
      <if test="createTime != null">
neo's avatar
neo committed
456
        CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
457 458
      </if>
      <if test="updateBy != null">
neo's avatar
neo committed
459
        UPDATE_BY = #{updateBy,jdbcType=VARCHAR},
460 461
      </if>
      <if test="updateTime != null">
neo's avatar
neo committed
462
        UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
463 464
      </if>
      <if test="invoiceCategory != null">
neo's avatar
neo committed
465
        INVOICE_CATEGORY = #{invoiceCategory,jdbcType=VARCHAR},
466 467
      </if>
      <if test="formulaDataSource != null">
neo's avatar
neo committed
468
        FORMULA_DATA_SOURCE = #{formulaDataSource,jdbcType=VARCHAR},
469 470
      </if>
      <if test="validation != null">
neo's avatar
neo committed
471
        VALIDATION = #{validation,jdbcType=VARCHAR},
472 473
      </if>
      <if test="validationDescription != null">
neo's avatar
neo committed
474
        VALIDATION_DESCRIPTION = #{validationDescription,jdbcType=VARCHAR},
475 476
      </if>
      <if test="voucherKeyword != null">
neo's avatar
neo committed
477
        VOUCHER_KEYWORD = #{voucherKeyword,jdbcType=VARCHAR},
478 479
      </if>
    </set>
neo's avatar
neo committed
480
    where ID = #{id,jdbcType=DECIMAL}
481
  </update>
482
  <update id="updateByPrimaryKey" parameterType="pwc.taxtech.atms.entity.CellTemplateConfig">
483 484 485 486
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507
    update CELL_TEMPLATE_CONFIG
    set CELL_TEMPLATE_ID = #{cellTemplateId,jdbcType=DECIMAL},
      REPORT_TEMPLATE_ID = #{reportTemplateId,jdbcType=DECIMAL},
      DATA_SOURCE_TYPE = #{dataSourceType,jdbcType=DECIMAL},
      FORMULA = #{formula,jdbcType=VARCHAR},
      FORMULA_DESCRIPTION = #{formulaDescription,jdbcType=VARCHAR},
      ACCOUNT_CODES = #{accountCodes,jdbcType=VARCHAR},
      INVOICE_TYPE = #{invoiceType,jdbcType=DECIMAL},
      TAX_RATE = #{taxRate,jdbcType=VARCHAR},
      INVOICE_AMOUNT_TYPE = #{invoiceAmountType,jdbcType=DECIMAL},
      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},
      VALIDATION_DESCRIPTION = #{validationDescription,jdbcType=VARCHAR},
      VOUCHER_KEYWORD = #{voucherKeyword,jdbcType=VARCHAR}
    where ID = #{id,jdbcType=DECIMAL}
508
  </update>
509
  <select id="selectByExampleWithRowbounds" parameterType="pwc.taxtech.atms.entity.CellTemplateConfigExample" resultMap="BaseResultMap">
510 511 512 513 514 515 516 517 518
    <!--
      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
519
    from CELL_TEMPLATE_CONFIG
520 521 522 523 524 525 526
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
527
</mapper>