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