BalanceStdMapper.xml 22.6 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.BalanceStdMapper">
4 5 6 7 8
  <resultMap id="BaseResultMap" type="pwc.taxtech.atms.vat.entity.BalanceStd">
    <!--
      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
    <id column="BALANCE_ID" jdbcType="VARCHAR" property="balanceId" />
    <result column="PERIOD_ID" jdbcType="DECIMAL" property="periodId" />
    <result column="ACCT_CODE" jdbcType="VARCHAR" property="acctCode" />
    <result column="BEG_DEBIT_BAL" jdbcType="DECIMAL" property="begDebitBal" />
    <result column="BEG_CREDIT_BAL" jdbcType="DECIMAL" property="begCreditBal" />
    <result column="BEG_BAL" jdbcType="DECIMAL" property="begBal" />
    <result column="END_BAL" jdbcType="DECIMAL" property="endBal" />
    <result column="END_DEBIT_BAL" jdbcType="DECIMAL" property="endDebitBal" />
    <result column="END_CREDIT_BAL" jdbcType="DECIMAL" property="endCreditBal" />
    <result column="DEBIT_BAL" jdbcType="DECIMAL" property="debitBal" />
    <result column="CREDIT_BAL" jdbcType="DECIMAL" property="creditBal" />
    <result column="YEAR_DEBIT_BAL" jdbcType="DECIMAL" property="yearDebitBal" />
    <result column="YEAR_CREDIT_BAL" jdbcType="DECIMAL" property="yearCreditBal" />
    <result column="CARRYOVER_DEBIT" jdbcType="DECIMAL" property="carryoverDebit" />
    <result column="CARRYOVER_CREDIT" jdbcType="DECIMAL" property="carryoverCredit" />
    <result column="YEAR_CARRYOVER_DEBIT" jdbcType="DECIMAL" property="yearCarryoverDebit" />
    <result column="YEAR_CARRYOVER_CREDIT" jdbcType="DECIMAL" property="yearCarryoverCredit" />
    <result column="DEBIT_NET" jdbcType="DECIMAL" property="debitNet" />
    <result column="CREDIT_NET" jdbcType="DECIMAL" property="creditNet" />
    <result column="YEAR_DEBIT_NET" jdbcType="DECIMAL" property="yearDebitNet" />
    <result column="YEAR_CREDIT_NET" jdbcType="DECIMAL" property="yearCreditNet" />
    <result column="CREATE_TIME" jdbcType="TIMESTAMP" property="createTime" />
    <result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" />
    <result column="SUB_PROP" jdbcType="DECIMAL" property="subProp" />
33 34 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
  </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>
61
            </foreach>
62
          </trim>
63
        </if>
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 92 93 94 95
      </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>
96
        </if>
97 98 99 100 101 102 103 104
      </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
105 106 107 108
    BALANCE_ID, PERIOD_ID, ACCT_CODE, BEG_DEBIT_BAL, BEG_CREDIT_BAL, BEG_BAL, END_BAL, 
    END_DEBIT_BAL, END_CREDIT_BAL, DEBIT_BAL, CREDIT_BAL, YEAR_DEBIT_BAL, YEAR_CREDIT_BAL, 
    CARRYOVER_DEBIT, CARRYOVER_CREDIT, YEAR_CARRYOVER_DEBIT, YEAR_CARRYOVER_CREDIT, DEBIT_NET, 
    CREDIT_NET, YEAR_DEBIT_NET, YEAR_CREDIT_NET, CREATE_TIME, UPDATE_TIME, SUB_PROP
109 110 111 112 113 114 115 116 117 118 119
  </sql>
  <select id="selectByExample" parameterType="pwc.taxtech.atms.vat.entity.BalanceStdExample" 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
120
    from BALANCE_STD
121 122 123 124 125 126 127 128 129 130 131 132 133 134
    <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
135 136
    from BALANCE_STD
    where BALANCE_ID = #{balanceId,jdbcType=VARCHAR}
137 138 139 140 141 142
  </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
143 144
    delete from BALANCE_STD
    where BALANCE_ID = #{balanceId,jdbcType=VARCHAR}
145 146 147 148 149 150
  </delete>
  <delete id="deleteByExample" parameterType="pwc.taxtech.atms.vat.entity.BalanceStdExample">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
151
    delete from BALANCE_STD
152 153 154 155 156 157 158 159 160
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="pwc.taxtech.atms.vat.entity.BalanceStd">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
161 162 163 164 165 166 167 168 169 170
    insert into BALANCE_STD (BALANCE_ID, PERIOD_ID, ACCT_CODE, 
      BEG_DEBIT_BAL, BEG_CREDIT_BAL, BEG_BAL, 
      END_BAL, END_DEBIT_BAL, END_CREDIT_BAL, 
      DEBIT_BAL, CREDIT_BAL, YEAR_DEBIT_BAL, 
      YEAR_CREDIT_BAL, CARRYOVER_DEBIT, CARRYOVER_CREDIT, 
      YEAR_CARRYOVER_DEBIT, YEAR_CARRYOVER_CREDIT, 
      DEBIT_NET, CREDIT_NET, YEAR_DEBIT_NET, 
      YEAR_CREDIT_NET, CREATE_TIME, UPDATE_TIME, 
      SUB_PROP)
    values (#{balanceId,jdbcType=VARCHAR}, #{periodId,jdbcType=DECIMAL}, #{acctCode,jdbcType=VARCHAR}, 
171 172 173 174 175 176 177
      #{begDebitBal,jdbcType=DECIMAL}, #{begCreditBal,jdbcType=DECIMAL}, #{begBal,jdbcType=DECIMAL}, 
      #{endBal,jdbcType=DECIMAL}, #{endDebitBal,jdbcType=DECIMAL}, #{endCreditBal,jdbcType=DECIMAL}, 
      #{debitBal,jdbcType=DECIMAL}, #{creditBal,jdbcType=DECIMAL}, #{yearDebitBal,jdbcType=DECIMAL}, 
      #{yearCreditBal,jdbcType=DECIMAL}, #{carryoverDebit,jdbcType=DECIMAL}, #{carryoverCredit,jdbcType=DECIMAL}, 
      #{yearCarryoverDebit,jdbcType=DECIMAL}, #{yearCarryoverCredit,jdbcType=DECIMAL}, 
      #{debitNet,jdbcType=DECIMAL}, #{creditNet,jdbcType=DECIMAL}, #{yearDebitNet,jdbcType=DECIMAL}, 
      #{yearCreditNet,jdbcType=DECIMAL}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, 
neo's avatar
neo committed
178
      #{subProp,jdbcType=DECIMAL})
179 180 181 182 183 184
  </insert>
  <insert id="insertSelective" parameterType="pwc.taxtech.atms.vat.entity.BalanceStd">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
185
    insert into BALANCE_STD
186 187
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="balanceId != null">
neo's avatar
neo committed
188
        BALANCE_ID,
189 190
      </if>
      <if test="periodId != null">
neo's avatar
neo committed
191
        PERIOD_ID,
192 193
      </if>
      <if test="acctCode != null">
neo's avatar
neo committed
194
        ACCT_CODE,
195 196
      </if>
      <if test="begDebitBal != null">
neo's avatar
neo committed
197
        BEG_DEBIT_BAL,
198 199
      </if>
      <if test="begCreditBal != null">
neo's avatar
neo committed
200
        BEG_CREDIT_BAL,
201 202
      </if>
      <if test="begBal != null">
neo's avatar
neo committed
203
        BEG_BAL,
204 205
      </if>
      <if test="endBal != null">
neo's avatar
neo committed
206
        END_BAL,
207 208
      </if>
      <if test="endDebitBal != null">
neo's avatar
neo committed
209
        END_DEBIT_BAL,
210 211
      </if>
      <if test="endCreditBal != null">
neo's avatar
neo committed
212
        END_CREDIT_BAL,
213 214
      </if>
      <if test="debitBal != null">
neo's avatar
neo committed
215
        DEBIT_BAL,
216 217
      </if>
      <if test="creditBal != null">
neo's avatar
neo committed
218
        CREDIT_BAL,
219 220
      </if>
      <if test="yearDebitBal != null">
neo's avatar
neo committed
221
        YEAR_DEBIT_BAL,
222 223
      </if>
      <if test="yearCreditBal != null">
neo's avatar
neo committed
224
        YEAR_CREDIT_BAL,
225 226
      </if>
      <if test="carryoverDebit != null">
neo's avatar
neo committed
227
        CARRYOVER_DEBIT,
228 229
      </if>
      <if test="carryoverCredit != null">
neo's avatar
neo committed
230
        CARRYOVER_CREDIT,
231 232
      </if>
      <if test="yearCarryoverDebit != null">
neo's avatar
neo committed
233
        YEAR_CARRYOVER_DEBIT,
234 235
      </if>
      <if test="yearCarryoverCredit != null">
neo's avatar
neo committed
236
        YEAR_CARRYOVER_CREDIT,
237 238
      </if>
      <if test="debitNet != null">
neo's avatar
neo committed
239
        DEBIT_NET,
240 241
      </if>
      <if test="creditNet != null">
neo's avatar
neo committed
242
        CREDIT_NET,
243 244
      </if>
      <if test="yearDebitNet != null">
neo's avatar
neo committed
245
        YEAR_DEBIT_NET,
246 247
      </if>
      <if test="yearCreditNet != null">
neo's avatar
neo committed
248
        YEAR_CREDIT_NET,
249 250
      </if>
      <if test="createTime != null">
neo's avatar
neo committed
251
        CREATE_TIME,
252 253
      </if>
      <if test="updateTime != null">
neo's avatar
neo committed
254
        UPDATE_TIME,
255 256
      </if>
      <if test="subProp != null">
neo's avatar
neo committed
257
        SUB_PROP,
258 259 260 261 262 263 264
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="balanceId != null">
        #{balanceId,jdbcType=VARCHAR},
      </if>
      <if test="periodId != null">
neo's avatar
neo committed
265
        #{periodId,jdbcType=DECIMAL},
266 267 268 269 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 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330
      </if>
      <if test="acctCode != null">
        #{acctCode,jdbcType=VARCHAR},
      </if>
      <if test="begDebitBal != null">
        #{begDebitBal,jdbcType=DECIMAL},
      </if>
      <if test="begCreditBal != null">
        #{begCreditBal,jdbcType=DECIMAL},
      </if>
      <if test="begBal != null">
        #{begBal,jdbcType=DECIMAL},
      </if>
      <if test="endBal != null">
        #{endBal,jdbcType=DECIMAL},
      </if>
      <if test="endDebitBal != null">
        #{endDebitBal,jdbcType=DECIMAL},
      </if>
      <if test="endCreditBal != null">
        #{endCreditBal,jdbcType=DECIMAL},
      </if>
      <if test="debitBal != null">
        #{debitBal,jdbcType=DECIMAL},
      </if>
      <if test="creditBal != null">
        #{creditBal,jdbcType=DECIMAL},
      </if>
      <if test="yearDebitBal != null">
        #{yearDebitBal,jdbcType=DECIMAL},
      </if>
      <if test="yearCreditBal != null">
        #{yearCreditBal,jdbcType=DECIMAL},
      </if>
      <if test="carryoverDebit != null">
        #{carryoverDebit,jdbcType=DECIMAL},
      </if>
      <if test="carryoverCredit != null">
        #{carryoverCredit,jdbcType=DECIMAL},
      </if>
      <if test="yearCarryoverDebit != null">
        #{yearCarryoverDebit,jdbcType=DECIMAL},
      </if>
      <if test="yearCarryoverCredit != null">
        #{yearCarryoverCredit,jdbcType=DECIMAL},
      </if>
      <if test="debitNet != null">
        #{debitNet,jdbcType=DECIMAL},
      </if>
      <if test="creditNet != null">
        #{creditNet,jdbcType=DECIMAL},
      </if>
      <if test="yearDebitNet != null">
        #{yearDebitNet,jdbcType=DECIMAL},
      </if>
      <if test="yearCreditNet != null">
        #{yearCreditNet,jdbcType=DECIMAL},
      </if>
      <if test="createTime != null">
        #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateTime != null">
        #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="subProp != null">
neo's avatar
neo committed
331
        #{subProp,jdbcType=DECIMAL},
332 333 334 335 336 337 338 339
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="pwc.taxtech.atms.vat.entity.BalanceStdExample" resultType="java.lang.Long">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
340
    select count(*) from BALANCE_STD
341 342 343 344 345 346 347 348 349
    <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
350
    update BALANCE_STD
351 352
    <set>
      <if test="record.balanceId != null">
neo's avatar
neo committed
353
        BALANCE_ID = #{record.balanceId,jdbcType=VARCHAR},
354 355
      </if>
      <if test="record.periodId != null">
neo's avatar
neo committed
356
        PERIOD_ID = #{record.periodId,jdbcType=DECIMAL},
357 358
      </if>
      <if test="record.acctCode != null">
neo's avatar
neo committed
359
        ACCT_CODE = #{record.acctCode,jdbcType=VARCHAR},
360 361
      </if>
      <if test="record.begDebitBal != null">
neo's avatar
neo committed
362
        BEG_DEBIT_BAL = #{record.begDebitBal,jdbcType=DECIMAL},
363 364
      </if>
      <if test="record.begCreditBal != null">
neo's avatar
neo committed
365
        BEG_CREDIT_BAL = #{record.begCreditBal,jdbcType=DECIMAL},
366 367
      </if>
      <if test="record.begBal != null">
neo's avatar
neo committed
368
        BEG_BAL = #{record.begBal,jdbcType=DECIMAL},
369 370
      </if>
      <if test="record.endBal != null">
neo's avatar
neo committed
371
        END_BAL = #{record.endBal,jdbcType=DECIMAL},
372 373
      </if>
      <if test="record.endDebitBal != null">
neo's avatar
neo committed
374
        END_DEBIT_BAL = #{record.endDebitBal,jdbcType=DECIMAL},
375 376
      </if>
      <if test="record.endCreditBal != null">
neo's avatar
neo committed
377
        END_CREDIT_BAL = #{record.endCreditBal,jdbcType=DECIMAL},
378 379
      </if>
      <if test="record.debitBal != null">
neo's avatar
neo committed
380
        DEBIT_BAL = #{record.debitBal,jdbcType=DECIMAL},
381 382
      </if>
      <if test="record.creditBal != null">
neo's avatar
neo committed
383
        CREDIT_BAL = #{record.creditBal,jdbcType=DECIMAL},
384 385
      </if>
      <if test="record.yearDebitBal != null">
neo's avatar
neo committed
386
        YEAR_DEBIT_BAL = #{record.yearDebitBal,jdbcType=DECIMAL},
387 388
      </if>
      <if test="record.yearCreditBal != null">
neo's avatar
neo committed
389
        YEAR_CREDIT_BAL = #{record.yearCreditBal,jdbcType=DECIMAL},
390 391
      </if>
      <if test="record.carryoverDebit != null">
neo's avatar
neo committed
392
        CARRYOVER_DEBIT = #{record.carryoverDebit,jdbcType=DECIMAL},
393 394
      </if>
      <if test="record.carryoverCredit != null">
neo's avatar
neo committed
395
        CARRYOVER_CREDIT = #{record.carryoverCredit,jdbcType=DECIMAL},
396 397
      </if>
      <if test="record.yearCarryoverDebit != null">
neo's avatar
neo committed
398
        YEAR_CARRYOVER_DEBIT = #{record.yearCarryoverDebit,jdbcType=DECIMAL},
399 400
      </if>
      <if test="record.yearCarryoverCredit != null">
neo's avatar
neo committed
401
        YEAR_CARRYOVER_CREDIT = #{record.yearCarryoverCredit,jdbcType=DECIMAL},
402 403
      </if>
      <if test="record.debitNet != null">
neo's avatar
neo committed
404
        DEBIT_NET = #{record.debitNet,jdbcType=DECIMAL},
405 406
      </if>
      <if test="record.creditNet != null">
neo's avatar
neo committed
407
        CREDIT_NET = #{record.creditNet,jdbcType=DECIMAL},
408 409
      </if>
      <if test="record.yearDebitNet != null">
neo's avatar
neo committed
410
        YEAR_DEBIT_NET = #{record.yearDebitNet,jdbcType=DECIMAL},
411 412
      </if>
      <if test="record.yearCreditNet != null">
neo's avatar
neo committed
413
        YEAR_CREDIT_NET = #{record.yearCreditNet,jdbcType=DECIMAL},
414 415
      </if>
      <if test="record.createTime != null">
neo's avatar
neo committed
416
        CREATE_TIME = #{record.createTime,jdbcType=TIMESTAMP},
417 418
      </if>
      <if test="record.updateTime != null">
neo's avatar
neo committed
419
        UPDATE_TIME = #{record.updateTime,jdbcType=TIMESTAMP},
420 421
      </if>
      <if test="record.subProp != null">
neo's avatar
neo committed
422
        SUB_PROP = #{record.subProp,jdbcType=DECIMAL},
423 424 425 426 427 428 429 430 431 432 433
      </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
434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458
    update BALANCE_STD
    set BALANCE_ID = #{record.balanceId,jdbcType=VARCHAR},
      PERIOD_ID = #{record.periodId,jdbcType=DECIMAL},
      ACCT_CODE = #{record.acctCode,jdbcType=VARCHAR},
      BEG_DEBIT_BAL = #{record.begDebitBal,jdbcType=DECIMAL},
      BEG_CREDIT_BAL = #{record.begCreditBal,jdbcType=DECIMAL},
      BEG_BAL = #{record.begBal,jdbcType=DECIMAL},
      END_BAL = #{record.endBal,jdbcType=DECIMAL},
      END_DEBIT_BAL = #{record.endDebitBal,jdbcType=DECIMAL},
      END_CREDIT_BAL = #{record.endCreditBal,jdbcType=DECIMAL},
      DEBIT_BAL = #{record.debitBal,jdbcType=DECIMAL},
      CREDIT_BAL = #{record.creditBal,jdbcType=DECIMAL},
      YEAR_DEBIT_BAL = #{record.yearDebitBal,jdbcType=DECIMAL},
      YEAR_CREDIT_BAL = #{record.yearCreditBal,jdbcType=DECIMAL},
      CARRYOVER_DEBIT = #{record.carryoverDebit,jdbcType=DECIMAL},
      CARRYOVER_CREDIT = #{record.carryoverCredit,jdbcType=DECIMAL},
      YEAR_CARRYOVER_DEBIT = #{record.yearCarryoverDebit,jdbcType=DECIMAL},
      YEAR_CARRYOVER_CREDIT = #{record.yearCarryoverCredit,jdbcType=DECIMAL},
      DEBIT_NET = #{record.debitNet,jdbcType=DECIMAL},
      CREDIT_NET = #{record.creditNet,jdbcType=DECIMAL},
      YEAR_DEBIT_NET = #{record.yearDebitNet,jdbcType=DECIMAL},
      YEAR_CREDIT_NET = #{record.yearCreditNet,jdbcType=DECIMAL},
      CREATE_TIME = #{record.createTime,jdbcType=TIMESTAMP},
      UPDATE_TIME = #{record.updateTime,jdbcType=TIMESTAMP},
      SUB_PROP = #{record.subProp,jdbcType=DECIMAL}
459 460 461 462 463 464 465 466 467
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="pwc.taxtech.atms.vat.entity.BalanceStd">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
468
    update BALANCE_STD
469 470
    <set>
      <if test="periodId != null">
neo's avatar
neo committed
471
        PERIOD_ID = #{periodId,jdbcType=DECIMAL},
472 473
      </if>
      <if test="acctCode != null">
neo's avatar
neo committed
474
        ACCT_CODE = #{acctCode,jdbcType=VARCHAR},
475 476
      </if>
      <if test="begDebitBal != null">
neo's avatar
neo committed
477
        BEG_DEBIT_BAL = #{begDebitBal,jdbcType=DECIMAL},
478 479
      </if>
      <if test="begCreditBal != null">
neo's avatar
neo committed
480
        BEG_CREDIT_BAL = #{begCreditBal,jdbcType=DECIMAL},
481 482
      </if>
      <if test="begBal != null">
neo's avatar
neo committed
483
        BEG_BAL = #{begBal,jdbcType=DECIMAL},
484 485
      </if>
      <if test="endBal != null">
neo's avatar
neo committed
486
        END_BAL = #{endBal,jdbcType=DECIMAL},
487 488
      </if>
      <if test="endDebitBal != null">
neo's avatar
neo committed
489
        END_DEBIT_BAL = #{endDebitBal,jdbcType=DECIMAL},
490 491
      </if>
      <if test="endCreditBal != null">
neo's avatar
neo committed
492
        END_CREDIT_BAL = #{endCreditBal,jdbcType=DECIMAL},
493 494
      </if>
      <if test="debitBal != null">
neo's avatar
neo committed
495
        DEBIT_BAL = #{debitBal,jdbcType=DECIMAL},
496 497
      </if>
      <if test="creditBal != null">
neo's avatar
neo committed
498
        CREDIT_BAL = #{creditBal,jdbcType=DECIMAL},
499 500
      </if>
      <if test="yearDebitBal != null">
neo's avatar
neo committed
501
        YEAR_DEBIT_BAL = #{yearDebitBal,jdbcType=DECIMAL},
502 503
      </if>
      <if test="yearCreditBal != null">
neo's avatar
neo committed
504
        YEAR_CREDIT_BAL = #{yearCreditBal,jdbcType=DECIMAL},
505 506
      </if>
      <if test="carryoverDebit != null">
neo's avatar
neo committed
507
        CARRYOVER_DEBIT = #{carryoverDebit,jdbcType=DECIMAL},
508 509
      </if>
      <if test="carryoverCredit != null">
neo's avatar
neo committed
510
        CARRYOVER_CREDIT = #{carryoverCredit,jdbcType=DECIMAL},
511 512
      </if>
      <if test="yearCarryoverDebit != null">
neo's avatar
neo committed
513
        YEAR_CARRYOVER_DEBIT = #{yearCarryoverDebit,jdbcType=DECIMAL},
514 515
      </if>
      <if test="yearCarryoverCredit != null">
neo's avatar
neo committed
516
        YEAR_CARRYOVER_CREDIT = #{yearCarryoverCredit,jdbcType=DECIMAL},
517 518
      </if>
      <if test="debitNet != null">
neo's avatar
neo committed
519
        DEBIT_NET = #{debitNet,jdbcType=DECIMAL},
520 521
      </if>
      <if test="creditNet != null">
neo's avatar
neo committed
522
        CREDIT_NET = #{creditNet,jdbcType=DECIMAL},
523 524
      </if>
      <if test="yearDebitNet != null">
neo's avatar
neo committed
525
        YEAR_DEBIT_NET = #{yearDebitNet,jdbcType=DECIMAL},
526 527
      </if>
      <if test="yearCreditNet != null">
neo's avatar
neo committed
528
        YEAR_CREDIT_NET = #{yearCreditNet,jdbcType=DECIMAL},
529 530
      </if>
      <if test="createTime != null">
neo's avatar
neo committed
531
        CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
532 533
      </if>
      <if test="updateTime != null">
neo's avatar
neo committed
534
        UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
535 536
      </if>
      <if test="subProp != null">
neo's avatar
neo committed
537
        SUB_PROP = #{subProp,jdbcType=DECIMAL},
538 539
      </if>
    </set>
neo's avatar
neo committed
540
    where BALANCE_ID = #{balanceId,jdbcType=VARCHAR}
541 542 543 544 545 546
  </update>
  <update id="updateByPrimaryKey" parameterType="pwc.taxtech.atms.vat.entity.BalanceStd">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571
    update BALANCE_STD
    set PERIOD_ID = #{periodId,jdbcType=DECIMAL},
      ACCT_CODE = #{acctCode,jdbcType=VARCHAR},
      BEG_DEBIT_BAL = #{begDebitBal,jdbcType=DECIMAL},
      BEG_CREDIT_BAL = #{begCreditBal,jdbcType=DECIMAL},
      BEG_BAL = #{begBal,jdbcType=DECIMAL},
      END_BAL = #{endBal,jdbcType=DECIMAL},
      END_DEBIT_BAL = #{endDebitBal,jdbcType=DECIMAL},
      END_CREDIT_BAL = #{endCreditBal,jdbcType=DECIMAL},
      DEBIT_BAL = #{debitBal,jdbcType=DECIMAL},
      CREDIT_BAL = #{creditBal,jdbcType=DECIMAL},
      YEAR_DEBIT_BAL = #{yearDebitBal,jdbcType=DECIMAL},
      YEAR_CREDIT_BAL = #{yearCreditBal,jdbcType=DECIMAL},
      CARRYOVER_DEBIT = #{carryoverDebit,jdbcType=DECIMAL},
      CARRYOVER_CREDIT = #{carryoverCredit,jdbcType=DECIMAL},
      YEAR_CARRYOVER_DEBIT = #{yearCarryoverDebit,jdbcType=DECIMAL},
      YEAR_CARRYOVER_CREDIT = #{yearCarryoverCredit,jdbcType=DECIMAL},
      DEBIT_NET = #{debitNet,jdbcType=DECIMAL},
      CREDIT_NET = #{creditNet,jdbcType=DECIMAL},
      YEAR_DEBIT_NET = #{yearDebitNet,jdbcType=DECIMAL},
      YEAR_CREDIT_NET = #{yearCreditNet,jdbcType=DECIMAL},
      CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
      UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
      SUB_PROP = #{subProp,jdbcType=DECIMAL}
    where BALANCE_ID = #{balanceId,jdbcType=VARCHAR}
572 573 574 575 576 577 578 579 580 581 582
  </update>
  <select id="selectByExampleWithRowbounds" parameterType="pwc.taxtech.atms.vat.entity.BalanceStdExample" 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
583
    from BALANCE_STD
584 585 586 587 588 589 590
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
591
</mapper>