InputInvoiceMapper.xml 27.3 KB
Newer Older
sherlock's avatar
sherlock committed
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.invoice.InputInvoiceMapper">
sherlock's avatar
sherlock committed
4
  <resultMap id="BaseResultMap" type="pwc.taxtech.atms.vat.entity.InputInvoice">
sherlock's avatar
sherlock committed
5 6 7 8
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
sherlock's avatar
sherlock committed
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
    <id column="ID" jdbcType="VARCHAR" property="ID" />
    <result column="FPDM" jdbcType="VARCHAR" property="FPDM" />
    <result column="FPHM" jdbcType="VARCHAR" property="FPHM" />
    <result column="KPRQ" jdbcType="VARCHAR" property="KPRQ" />
    <result column="GFSH" jdbcType="VARCHAR" property="GFSH" />
    <result column="GFMC" jdbcType="VARCHAR" property="GFMC" />
    <result column="GFDZDH" jdbcType="VARCHAR" property="GFDZDH" />
    <result column="GFYHZH" jdbcType="VARCHAR" property="GFYHZH" />
    <result column="XFSH" jdbcType="VARCHAR" property="XFSH" />
    <result column="XFMC" jdbcType="VARCHAR" property="XFMC" />
    <result column="XFDZDH" jdbcType="VARCHAR" property="XFDZDH" />
    <result column="XFYHZH" jdbcType="VARCHAR" property="XFYHZH" />
    <result column="JYM" jdbcType="VARCHAR" property="JYM" />
    <result column="FPLX" jdbcType="VARCHAR" property="FPLX" />
    <result column="FPLC" jdbcType="VARCHAR" property="FPLC" />
    <result column="JQBH" jdbcType="VARCHAR" property="JQBH" />
    <result column="HJJE" jdbcType="VARCHAR" property="HJJE" />
    <result column="HJSE" jdbcType="VARCHAR" property="HJSE" />
    <result column="JSHJ" jdbcType="VARCHAR" property="JSHJ" />
    <result column="MWQ" jdbcType="VARCHAR" property="MWQ" />
    <result column="KPR" jdbcType="VARCHAR" property="KPR" />
    <result column="SKR" jdbcType="VARCHAR" property="SKR" />
    <result column="FHR" jdbcType="VARCHAR" property="FHR" />
    <result column="BZ" jdbcType="VARCHAR" property="BZ" />
    <result column="PZH" jdbcType="VARCHAR" property="PZH" />
    <result column="DZDH" jdbcType="VARCHAR" property="DZDH" />
    <result column="XTLY" jdbcType="VARCHAR" property="XTLY" />
    <result column="FPZT" jdbcType="VARCHAR" property="FPZT" />
    <result column="CYZT" jdbcType="VARCHAR" property="CYZT" />
    <result column="RZZT" jdbcType="VARCHAR" property="RZZT" />
    <result column="RZSQ" jdbcType="VARCHAR" property="RZSQ" />
    <result column="RZSJ" jdbcType="VARCHAR" property="RZSJ" />
    <result column="RZJG" jdbcType="VARCHAR" property="RZJG" />
    <result column="RZJGMS" jdbcType="VARCHAR" property="RZJGMS" />
    <result column="CJSJ" jdbcType="VARCHAR" property="CJSJ" />
    <result column="LCBH" jdbcType="VARCHAR" property="LCBH" />
    <result column="FPYX" jdbcType="VARCHAR" property="FPYX" />
    <result column="BLYY" jdbcType="VARCHAR" property="BLYY" />
    <result column="LRRQ" jdbcType="VARCHAR" property="LRRQ" />
    <result column="COMPANYID" jdbcType="VARCHAR" property="COMPANYID" />
sherlock's avatar
sherlock committed
49 50 51 52 53 54 55 56 57 58 59 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 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120
  </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>
            </foreach>
          </trim>
        </if>
      </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>
        </if>
      </foreach>
    </where>
  </sql>
  <sql id="Base_Column_List">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
sherlock's avatar
sherlock committed
121 122 123
    ID, FPDM, FPHM, KPRQ, GFSH, GFMC, GFDZDH, GFYHZH, XFSH, XFMC, XFDZDH, XFYHZH, JYM, 
    FPLX, FPLC, JQBH, HJJE, HJSE, JSHJ, MWQ, KPR, SKR, FHR, BZ, PZH, DZDH, XTLY, FPZT, 
    CYZT, RZZT, RZSQ, RZSJ, RZJG, RZJGMS, CJSJ, LCBH, FPYX, BLYY, LRRQ, COMPANYID
sherlock's avatar
sherlock committed
124
  </sql>
sherlock's avatar
sherlock committed
125
  <select id="selectByExample" parameterType="pwc.taxtech.atms.vat.entity.InputInvoiceExample" resultMap="BaseResultMap">
sherlock's avatar
sherlock committed
126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150
    <!--
      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" />
    from INPUT_INVOICE
    <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" />
    from INPUT_INVOICE
sherlock's avatar
sherlock committed
151
    where ID = #{ID,jdbcType=VARCHAR}
sherlock's avatar
sherlock committed
152 153 154 155 156 157 158
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from INPUT_INVOICE
sherlock's avatar
sherlock committed
159
    where ID = #{ID,jdbcType=VARCHAR}
sherlock's avatar
sherlock committed
160
  </delete>
sherlock's avatar
sherlock committed
161
  <delete id="deleteByExample" parameterType="pwc.taxtech.atms.vat.entity.InputInvoiceExample">
sherlock's avatar
sherlock committed
162 163 164 165 166 167 168 169 170
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from INPUT_INVOICE
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
sherlock's avatar
sherlock committed
171
  <insert id="insert" parameterType="pwc.taxtech.atms.vat.entity.InputInvoice">
sherlock's avatar
sherlock committed
172 173 174 175
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
sherlock's avatar
sherlock committed
176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199
    insert into INPUT_INVOICE (ID, FPDM, FPHM, 
      KPRQ, GFSH, GFMC, GFDZDH, 
      GFYHZH, XFSH, XFMC, 
      XFDZDH, XFYHZH, JYM, 
      FPLX, FPLC, JQBH, HJJE, 
      HJSE, JSHJ, MWQ, KPR, 
      SKR, FHR, BZ, PZH, 
      DZDH, XTLY, FPZT, CYZT, 
      RZZT, RZSQ, RZSJ, RZJG, 
      RZJGMS, CJSJ, LCBH, 
      FPYX, BLYY, LRRQ, COMPANYID
      )
    values (#{ID,jdbcType=VARCHAR}, #{FPDM,jdbcType=VARCHAR}, #{FPHM,jdbcType=VARCHAR}, 
      #{KPRQ,jdbcType=VARCHAR}, #{GFSH,jdbcType=VARCHAR}, #{GFMC,jdbcType=VARCHAR}, #{GFDZDH,jdbcType=VARCHAR}, 
      #{GFYHZH,jdbcType=VARCHAR}, #{XFSH,jdbcType=VARCHAR}, #{XFMC,jdbcType=VARCHAR}, 
      #{XFDZDH,jdbcType=VARCHAR}, #{XFYHZH,jdbcType=VARCHAR}, #{JYM,jdbcType=VARCHAR}, 
      #{FPLX,jdbcType=VARCHAR}, #{FPLC,jdbcType=VARCHAR}, #{JQBH,jdbcType=VARCHAR}, #{HJJE,jdbcType=VARCHAR}, 
      #{HJSE,jdbcType=VARCHAR}, #{JSHJ,jdbcType=VARCHAR}, #{MWQ,jdbcType=VARCHAR}, #{KPR,jdbcType=VARCHAR}, 
      #{SKR,jdbcType=VARCHAR}, #{FHR,jdbcType=VARCHAR}, #{BZ,jdbcType=VARCHAR}, #{PZH,jdbcType=VARCHAR}, 
      #{DZDH,jdbcType=VARCHAR}, #{XTLY,jdbcType=VARCHAR}, #{FPZT,jdbcType=VARCHAR}, #{CYZT,jdbcType=VARCHAR}, 
      #{RZZT,jdbcType=VARCHAR}, #{RZSQ,jdbcType=VARCHAR}, #{RZSJ,jdbcType=VARCHAR}, #{RZJG,jdbcType=VARCHAR}, 
      #{RZJGMS,jdbcType=VARCHAR}, #{CJSJ,jdbcType=VARCHAR}, #{LCBH,jdbcType=VARCHAR}, 
      #{FPYX,jdbcType=VARCHAR}, #{BLYY,jdbcType=VARCHAR}, #{LRRQ,jdbcType=VARCHAR}, #{COMPANYID,jdbcType=VARCHAR}
      )
sherlock's avatar
sherlock committed
200
  </insert>
sherlock's avatar
sherlock committed
201
  <insert id="insertSelective" parameterType="pwc.taxtech.atms.vat.entity.InputInvoice">
sherlock's avatar
sherlock committed
202 203 204 205 206 207
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into INPUT_INVOICE
    <trim prefix="(" suffix=")" suffixOverrides=",">
sherlock's avatar
sherlock committed
208
      <if test="ID != null">
sherlock's avatar
sherlock committed
209 210
        ID,
      </if>
sherlock's avatar
sherlock committed
211 212
      <if test="FPDM != null">
        FPDM,
sherlock's avatar
sherlock committed
213
      </if>
sherlock's avatar
sherlock committed
214 215
      <if test="FPHM != null">
        FPHM,
sherlock's avatar
sherlock committed
216
      </if>
sherlock's avatar
sherlock committed
217 218
      <if test="KPRQ != null">
        KPRQ,
sherlock's avatar
sherlock committed
219
      </if>
sherlock's avatar
sherlock committed
220 221
      <if test="GFSH != null">
        GFSH,
sherlock's avatar
sherlock committed
222
      </if>
sherlock's avatar
sherlock committed
223 224
      <if test="GFMC != null">
        GFMC,
sherlock's avatar
sherlock committed
225
      </if>
sherlock's avatar
sherlock committed
226 227
      <if test="GFDZDH != null">
        GFDZDH,
sherlock's avatar
sherlock committed
228
      </if>
sherlock's avatar
sherlock committed
229 230
      <if test="GFYHZH != null">
        GFYHZH,
sherlock's avatar
sherlock committed
231
      </if>
sherlock's avatar
sherlock committed
232 233
      <if test="XFSH != null">
        XFSH,
sherlock's avatar
sherlock committed
234
      </if>
sherlock's avatar
sherlock committed
235 236
      <if test="XFMC != null">
        XFMC,
sherlock's avatar
sherlock committed
237
      </if>
sherlock's avatar
sherlock committed
238 239
      <if test="XFDZDH != null">
        XFDZDH,
sherlock's avatar
sherlock committed
240
      </if>
sherlock's avatar
sherlock committed
241 242
      <if test="XFYHZH != null">
        XFYHZH,
sherlock's avatar
sherlock committed
243
      </if>
sherlock's avatar
sherlock committed
244 245
      <if test="JYM != null">
        JYM,
sherlock's avatar
sherlock committed
246
      </if>
sherlock's avatar
sherlock committed
247 248
      <if test="FPLX != null">
        FPLX,
sherlock's avatar
sherlock committed
249
      </if>
sherlock's avatar
sherlock committed
250 251
      <if test="FPLC != null">
        FPLC,
sherlock's avatar
sherlock committed
252
      </if>
sherlock's avatar
sherlock committed
253 254 255 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 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
      <if test="JQBH != null">
        JQBH,
      </if>
      <if test="HJJE != null">
        HJJE,
      </if>
      <if test="HJSE != null">
        HJSE,
      </if>
      <if test="JSHJ != null">
        JSHJ,
      </if>
      <if test="MWQ != null">
        MWQ,
      </if>
      <if test="KPR != null">
        KPR,
      </if>
      <if test="SKR != null">
        SKR,
      </if>
      <if test="FHR != null">
        FHR,
      </if>
      <if test="BZ != null">
        BZ,
      </if>
      <if test="PZH != null">
        PZH,
      </if>
      <if test="DZDH != null">
        DZDH,
      </if>
      <if test="XTLY != null">
        XTLY,
      </if>
      <if test="FPZT != null">
        FPZT,
      </if>
      <if test="CYZT != null">
        CYZT,
      </if>
      <if test="RZZT != null">
        RZZT,
      </if>
      <if test="RZSQ != null">
        RZSQ,
      </if>
      <if test="RZSJ != null">
        RZSJ,
      </if>
      <if test="RZJG != null">
        RZJG,
      </if>
      <if test="RZJGMS != null">
        RZJGMS,
      </if>
      <if test="CJSJ != null">
        CJSJ,
      </if>
      <if test="LCBH != null">
        LCBH,
      </if>
      <if test="FPYX != null">
        FPYX,
      </if>
      <if test="BLYY != null">
        BLYY,
      </if>
      <if test="LRRQ != null">
        LRRQ,
      </if>
      <if test="COMPANYID != null">
        COMPANYID,
sherlock's avatar
sherlock committed
327 328 329
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
sherlock's avatar
sherlock committed
330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403
      <if test="ID != null">
        #{ID,jdbcType=VARCHAR},
      </if>
      <if test="FPDM != null">
        #{FPDM,jdbcType=VARCHAR},
      </if>
      <if test="FPHM != null">
        #{FPHM,jdbcType=VARCHAR},
      </if>
      <if test="KPRQ != null">
        #{KPRQ,jdbcType=VARCHAR},
      </if>
      <if test="GFSH != null">
        #{GFSH,jdbcType=VARCHAR},
      </if>
      <if test="GFMC != null">
        #{GFMC,jdbcType=VARCHAR},
      </if>
      <if test="GFDZDH != null">
        #{GFDZDH,jdbcType=VARCHAR},
      </if>
      <if test="GFYHZH != null">
        #{GFYHZH,jdbcType=VARCHAR},
      </if>
      <if test="XFSH != null">
        #{XFSH,jdbcType=VARCHAR},
      </if>
      <if test="XFMC != null">
        #{XFMC,jdbcType=VARCHAR},
      </if>
      <if test="XFDZDH != null">
        #{XFDZDH,jdbcType=VARCHAR},
      </if>
      <if test="XFYHZH != null">
        #{XFYHZH,jdbcType=VARCHAR},
      </if>
      <if test="JYM != null">
        #{JYM,jdbcType=VARCHAR},
      </if>
      <if test="FPLX != null">
        #{FPLX,jdbcType=VARCHAR},
      </if>
      <if test="FPLC != null">
        #{FPLC,jdbcType=VARCHAR},
      </if>
      <if test="JQBH != null">
        #{JQBH,jdbcType=VARCHAR},
      </if>
      <if test="HJJE != null">
        #{HJJE,jdbcType=VARCHAR},
      </if>
      <if test="HJSE != null">
        #{HJSE,jdbcType=VARCHAR},
      </if>
      <if test="JSHJ != null">
        #{JSHJ,jdbcType=VARCHAR},
      </if>
      <if test="MWQ != null">
        #{MWQ,jdbcType=VARCHAR},
      </if>
      <if test="KPR != null">
        #{KPR,jdbcType=VARCHAR},
      </if>
      <if test="SKR != null">
        #{SKR,jdbcType=VARCHAR},
      </if>
      <if test="FHR != null">
        #{FHR,jdbcType=VARCHAR},
      </if>
      <if test="BZ != null">
        #{BZ,jdbcType=VARCHAR},
      </if>
      <if test="PZH != null">
        #{PZH,jdbcType=VARCHAR},
sherlock's avatar
sherlock committed
404
      </if>
sherlock's avatar
sherlock committed
405 406
      <if test="DZDH != null">
        #{DZDH,jdbcType=VARCHAR},
sherlock's avatar
sherlock committed
407
      </if>
sherlock's avatar
sherlock committed
408 409
      <if test="XTLY != null">
        #{XTLY,jdbcType=VARCHAR},
sherlock's avatar
sherlock committed
410
      </if>
sherlock's avatar
sherlock committed
411 412
      <if test="FPZT != null">
        #{FPZT,jdbcType=VARCHAR},
sherlock's avatar
sherlock committed
413
      </if>
sherlock's avatar
sherlock committed
414 415
      <if test="CYZT != null">
        #{CYZT,jdbcType=VARCHAR},
sherlock's avatar
sherlock committed
416
      </if>
sherlock's avatar
sherlock committed
417 418
      <if test="RZZT != null">
        #{RZZT,jdbcType=VARCHAR},
sherlock's avatar
sherlock committed
419
      </if>
sherlock's avatar
sherlock committed
420 421
      <if test="RZSQ != null">
        #{RZSQ,jdbcType=VARCHAR},
sherlock's avatar
sherlock committed
422
      </if>
sherlock's avatar
sherlock committed
423 424
      <if test="RZSJ != null">
        #{RZSJ,jdbcType=VARCHAR},
sherlock's avatar
sherlock committed
425
      </if>
sherlock's avatar
sherlock committed
426 427
      <if test="RZJG != null">
        #{RZJG,jdbcType=VARCHAR},
sherlock's avatar
sherlock committed
428
      </if>
sherlock's avatar
sherlock committed
429 430
      <if test="RZJGMS != null">
        #{RZJGMS,jdbcType=VARCHAR},
sherlock's avatar
sherlock committed
431
      </if>
sherlock's avatar
sherlock committed
432 433
      <if test="CJSJ != null">
        #{CJSJ,jdbcType=VARCHAR},
sherlock's avatar
sherlock committed
434
      </if>
sherlock's avatar
sherlock committed
435 436
      <if test="LCBH != null">
        #{LCBH,jdbcType=VARCHAR},
sherlock's avatar
sherlock committed
437
      </if>
sherlock's avatar
sherlock committed
438 439
      <if test="FPYX != null">
        #{FPYX,jdbcType=VARCHAR},
sherlock's avatar
sherlock committed
440
      </if>
sherlock's avatar
sherlock committed
441 442
      <if test="BLYY != null">
        #{BLYY,jdbcType=VARCHAR},
sherlock's avatar
sherlock committed
443
      </if>
sherlock's avatar
sherlock committed
444 445
      <if test="LRRQ != null">
        #{LRRQ,jdbcType=VARCHAR},
sherlock's avatar
sherlock committed
446
      </if>
sherlock's avatar
sherlock committed
447 448
      <if test="COMPANYID != null">
        #{COMPANYID,jdbcType=VARCHAR},
sherlock's avatar
sherlock committed
449 450 451
      </if>
    </trim>
  </insert>
sherlock's avatar
sherlock committed
452
  <select id="countByExample" parameterType="pwc.taxtech.atms.vat.entity.InputInvoiceExample" resultType="java.lang.Long">
sherlock's avatar
sherlock committed
453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select count(*) from INPUT_INVOICE
    <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.
    -->
    update INPUT_INVOICE
    <set>
sherlock's avatar
sherlock committed
469 470
      <if test="record.ID != null">
        ID = #{record.ID,jdbcType=VARCHAR},
sherlock's avatar
sherlock committed
471
      </if>
sherlock's avatar
sherlock committed
472 473
      <if test="record.FPDM != null">
        FPDM = #{record.FPDM,jdbcType=VARCHAR},
sherlock's avatar
sherlock committed
474
      </if>
sherlock's avatar
sherlock committed
475 476
      <if test="record.FPHM != null">
        FPHM = #{record.FPHM,jdbcType=VARCHAR},
sherlock's avatar
sherlock committed
477
      </if>
sherlock's avatar
sherlock committed
478 479
      <if test="record.KPRQ != null">
        KPRQ = #{record.KPRQ,jdbcType=VARCHAR},
sherlock's avatar
sherlock committed
480
      </if>
sherlock's avatar
sherlock committed
481 482
      <if test="record.GFSH != null">
        GFSH = #{record.GFSH,jdbcType=VARCHAR},
sherlock's avatar
sherlock committed
483
      </if>
sherlock's avatar
sherlock committed
484 485
      <if test="record.GFMC != null">
        GFMC = #{record.GFMC,jdbcType=VARCHAR},
sherlock's avatar
sherlock committed
486
      </if>
sherlock's avatar
sherlock committed
487 488
      <if test="record.GFDZDH != null">
        GFDZDH = #{record.GFDZDH,jdbcType=VARCHAR},
sherlock's avatar
sherlock committed
489
      </if>
sherlock's avatar
sherlock committed
490 491
      <if test="record.GFYHZH != null">
        GFYHZH = #{record.GFYHZH,jdbcType=VARCHAR},
sherlock's avatar
sherlock committed
492
      </if>
sherlock's avatar
sherlock committed
493 494
      <if test="record.XFSH != null">
        XFSH = #{record.XFSH,jdbcType=VARCHAR},
sherlock's avatar
sherlock committed
495
      </if>
sherlock's avatar
sherlock committed
496 497
      <if test="record.XFMC != null">
        XFMC = #{record.XFMC,jdbcType=VARCHAR},
sherlock's avatar
sherlock committed
498
      </if>
sherlock's avatar
sherlock committed
499 500
      <if test="record.XFDZDH != null">
        XFDZDH = #{record.XFDZDH,jdbcType=VARCHAR},
sherlock's avatar
sherlock committed
501
      </if>
sherlock's avatar
sherlock committed
502 503
      <if test="record.XFYHZH != null">
        XFYHZH = #{record.XFYHZH,jdbcType=VARCHAR},
sherlock's avatar
sherlock committed
504
      </if>
sherlock's avatar
sherlock committed
505 506
      <if test="record.JYM != null">
        JYM = #{record.JYM,jdbcType=VARCHAR},
sherlock's avatar
sherlock committed
507
      </if>
sherlock's avatar
sherlock committed
508 509
      <if test="record.FPLX != null">
        FPLX = #{record.FPLX,jdbcType=VARCHAR},
sherlock's avatar
sherlock committed
510
      </if>
sherlock's avatar
sherlock committed
511 512
      <if test="record.FPLC != null">
        FPLC = #{record.FPLC,jdbcType=VARCHAR},
sherlock's avatar
sherlock committed
513
      </if>
sherlock's avatar
sherlock committed
514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 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 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587
      <if test="record.JQBH != null">
        JQBH = #{record.JQBH,jdbcType=VARCHAR},
      </if>
      <if test="record.HJJE != null">
        HJJE = #{record.HJJE,jdbcType=VARCHAR},
      </if>
      <if test="record.HJSE != null">
        HJSE = #{record.HJSE,jdbcType=VARCHAR},
      </if>
      <if test="record.JSHJ != null">
        JSHJ = #{record.JSHJ,jdbcType=VARCHAR},
      </if>
      <if test="record.MWQ != null">
        MWQ = #{record.MWQ,jdbcType=VARCHAR},
      </if>
      <if test="record.KPR != null">
        KPR = #{record.KPR,jdbcType=VARCHAR},
      </if>
      <if test="record.SKR != null">
        SKR = #{record.SKR,jdbcType=VARCHAR},
      </if>
      <if test="record.FHR != null">
        FHR = #{record.FHR,jdbcType=VARCHAR},
      </if>
      <if test="record.BZ != null">
        BZ = #{record.BZ,jdbcType=VARCHAR},
      </if>
      <if test="record.PZH != null">
        PZH = #{record.PZH,jdbcType=VARCHAR},
      </if>
      <if test="record.DZDH != null">
        DZDH = #{record.DZDH,jdbcType=VARCHAR},
      </if>
      <if test="record.XTLY != null">
        XTLY = #{record.XTLY,jdbcType=VARCHAR},
      </if>
      <if test="record.FPZT != null">
        FPZT = #{record.FPZT,jdbcType=VARCHAR},
      </if>
      <if test="record.CYZT != null">
        CYZT = #{record.CYZT,jdbcType=VARCHAR},
      </if>
      <if test="record.RZZT != null">
        RZZT = #{record.RZZT,jdbcType=VARCHAR},
      </if>
      <if test="record.RZSQ != null">
        RZSQ = #{record.RZSQ,jdbcType=VARCHAR},
      </if>
      <if test="record.RZSJ != null">
        RZSJ = #{record.RZSJ,jdbcType=VARCHAR},
      </if>
      <if test="record.RZJG != null">
        RZJG = #{record.RZJG,jdbcType=VARCHAR},
      </if>
      <if test="record.RZJGMS != null">
        RZJGMS = #{record.RZJGMS,jdbcType=VARCHAR},
      </if>
      <if test="record.CJSJ != null">
        CJSJ = #{record.CJSJ,jdbcType=VARCHAR},
      </if>
      <if test="record.LCBH != null">
        LCBH = #{record.LCBH,jdbcType=VARCHAR},
      </if>
      <if test="record.FPYX != null">
        FPYX = #{record.FPYX,jdbcType=VARCHAR},
      </if>
      <if test="record.BLYY != null">
        BLYY = #{record.BLYY,jdbcType=VARCHAR},
      </if>
      <if test="record.LRRQ != null">
        LRRQ = #{record.LRRQ,jdbcType=VARCHAR},
      </if>
      <if test="record.COMPANYID != null">
        COMPANYID = #{record.COMPANYID,jdbcType=VARCHAR},
sherlock's avatar
sherlock committed
588 589 590 591 592 593 594 595 596 597 598 599
      </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.
    -->
    update INPUT_INVOICE
sherlock's avatar
sherlock committed
600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639
    set ID = #{record.ID,jdbcType=VARCHAR},
      FPDM = #{record.FPDM,jdbcType=VARCHAR},
      FPHM = #{record.FPHM,jdbcType=VARCHAR},
      KPRQ = #{record.KPRQ,jdbcType=VARCHAR},
      GFSH = #{record.GFSH,jdbcType=VARCHAR},
      GFMC = #{record.GFMC,jdbcType=VARCHAR},
      GFDZDH = #{record.GFDZDH,jdbcType=VARCHAR},
      GFYHZH = #{record.GFYHZH,jdbcType=VARCHAR},
      XFSH = #{record.XFSH,jdbcType=VARCHAR},
      XFMC = #{record.XFMC,jdbcType=VARCHAR},
      XFDZDH = #{record.XFDZDH,jdbcType=VARCHAR},
      XFYHZH = #{record.XFYHZH,jdbcType=VARCHAR},
      JYM = #{record.JYM,jdbcType=VARCHAR},
      FPLX = #{record.FPLX,jdbcType=VARCHAR},
      FPLC = #{record.FPLC,jdbcType=VARCHAR},
      JQBH = #{record.JQBH,jdbcType=VARCHAR},
      HJJE = #{record.HJJE,jdbcType=VARCHAR},
      HJSE = #{record.HJSE,jdbcType=VARCHAR},
      JSHJ = #{record.JSHJ,jdbcType=VARCHAR},
      MWQ = #{record.MWQ,jdbcType=VARCHAR},
      KPR = #{record.KPR,jdbcType=VARCHAR},
      SKR = #{record.SKR,jdbcType=VARCHAR},
      FHR = #{record.FHR,jdbcType=VARCHAR},
      BZ = #{record.BZ,jdbcType=VARCHAR},
      PZH = #{record.PZH,jdbcType=VARCHAR},
      DZDH = #{record.DZDH,jdbcType=VARCHAR},
      XTLY = #{record.XTLY,jdbcType=VARCHAR},
      FPZT = #{record.FPZT,jdbcType=VARCHAR},
      CYZT = #{record.CYZT,jdbcType=VARCHAR},
      RZZT = #{record.RZZT,jdbcType=VARCHAR},
      RZSQ = #{record.RZSQ,jdbcType=VARCHAR},
      RZSJ = #{record.RZSJ,jdbcType=VARCHAR},
      RZJG = #{record.RZJG,jdbcType=VARCHAR},
      RZJGMS = #{record.RZJGMS,jdbcType=VARCHAR},
      CJSJ = #{record.CJSJ,jdbcType=VARCHAR},
      LCBH = #{record.LCBH,jdbcType=VARCHAR},
      FPYX = #{record.FPYX,jdbcType=VARCHAR},
      BLYY = #{record.BLYY,jdbcType=VARCHAR},
      LRRQ = #{record.LRRQ,jdbcType=VARCHAR},
      COMPANYID = #{record.COMPANYID,jdbcType=VARCHAR}
sherlock's avatar
sherlock committed
640 641 642 643
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
sherlock's avatar
sherlock committed
644
  <update id="updateByPrimaryKeySelective" parameterType="pwc.taxtech.atms.vat.entity.InputInvoice">
sherlock's avatar
sherlock committed
645 646 647 648 649 650
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update INPUT_INVOICE
    <set>
sherlock's avatar
sherlock committed
651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724
      <if test="FPDM != null">
        FPDM = #{FPDM,jdbcType=VARCHAR},
      </if>
      <if test="FPHM != null">
        FPHM = #{FPHM,jdbcType=VARCHAR},
      </if>
      <if test="KPRQ != null">
        KPRQ = #{KPRQ,jdbcType=VARCHAR},
      </if>
      <if test="GFSH != null">
        GFSH = #{GFSH,jdbcType=VARCHAR},
      </if>
      <if test="GFMC != null">
        GFMC = #{GFMC,jdbcType=VARCHAR},
      </if>
      <if test="GFDZDH != null">
        GFDZDH = #{GFDZDH,jdbcType=VARCHAR},
      </if>
      <if test="GFYHZH != null">
        GFYHZH = #{GFYHZH,jdbcType=VARCHAR},
      </if>
      <if test="XFSH != null">
        XFSH = #{XFSH,jdbcType=VARCHAR},
      </if>
      <if test="XFMC != null">
        XFMC = #{XFMC,jdbcType=VARCHAR},
      </if>
      <if test="XFDZDH != null">
        XFDZDH = #{XFDZDH,jdbcType=VARCHAR},
      </if>
      <if test="XFYHZH != null">
        XFYHZH = #{XFYHZH,jdbcType=VARCHAR},
      </if>
      <if test="JYM != null">
        JYM = #{JYM,jdbcType=VARCHAR},
      </if>
      <if test="FPLX != null">
        FPLX = #{FPLX,jdbcType=VARCHAR},
      </if>
      <if test="FPLC != null">
        FPLC = #{FPLC,jdbcType=VARCHAR},
      </if>
      <if test="JQBH != null">
        JQBH = #{JQBH,jdbcType=VARCHAR},
      </if>
      <if test="HJJE != null">
        HJJE = #{HJJE,jdbcType=VARCHAR},
      </if>
      <if test="HJSE != null">
        HJSE = #{HJSE,jdbcType=VARCHAR},
      </if>
      <if test="JSHJ != null">
        JSHJ = #{JSHJ,jdbcType=VARCHAR},
      </if>
      <if test="MWQ != null">
        MWQ = #{MWQ,jdbcType=VARCHAR},
      </if>
      <if test="KPR != null">
        KPR = #{KPR,jdbcType=VARCHAR},
      </if>
      <if test="SKR != null">
        SKR = #{SKR,jdbcType=VARCHAR},
      </if>
      <if test="FHR != null">
        FHR = #{FHR,jdbcType=VARCHAR},
      </if>
      <if test="BZ != null">
        BZ = #{BZ,jdbcType=VARCHAR},
      </if>
      <if test="PZH != null">
        PZH = #{PZH,jdbcType=VARCHAR},
      </if>
      <if test="DZDH != null">
        DZDH = #{DZDH,jdbcType=VARCHAR},
sherlock's avatar
sherlock committed
725
      </if>
sherlock's avatar
sherlock committed
726 727
      <if test="XTLY != null">
        XTLY = #{XTLY,jdbcType=VARCHAR},
sherlock's avatar
sherlock committed
728
      </if>
sherlock's avatar
sherlock committed
729 730
      <if test="FPZT != null">
        FPZT = #{FPZT,jdbcType=VARCHAR},
sherlock's avatar
sherlock committed
731
      </if>
sherlock's avatar
sherlock committed
732 733
      <if test="CYZT != null">
        CYZT = #{CYZT,jdbcType=VARCHAR},
sherlock's avatar
sherlock committed
734
      </if>
sherlock's avatar
sherlock committed
735 736
      <if test="RZZT != null">
        RZZT = #{RZZT,jdbcType=VARCHAR},
sherlock's avatar
sherlock committed
737
      </if>
sherlock's avatar
sherlock committed
738 739
      <if test="RZSQ != null">
        RZSQ = #{RZSQ,jdbcType=VARCHAR},
sherlock's avatar
sherlock committed
740
      </if>
sherlock's avatar
sherlock committed
741 742
      <if test="RZSJ != null">
        RZSJ = #{RZSJ,jdbcType=VARCHAR},
sherlock's avatar
sherlock committed
743
      </if>
sherlock's avatar
sherlock committed
744 745
      <if test="RZJG != null">
        RZJG = #{RZJG,jdbcType=VARCHAR},
sherlock's avatar
sherlock committed
746
      </if>
sherlock's avatar
sherlock committed
747 748
      <if test="RZJGMS != null">
        RZJGMS = #{RZJGMS,jdbcType=VARCHAR},
sherlock's avatar
sherlock committed
749
      </if>
sherlock's avatar
sherlock committed
750 751
      <if test="CJSJ != null">
        CJSJ = #{CJSJ,jdbcType=VARCHAR},
sherlock's avatar
sherlock committed
752
      </if>
sherlock's avatar
sherlock committed
753 754
      <if test="LCBH != null">
        LCBH = #{LCBH,jdbcType=VARCHAR},
sherlock's avatar
sherlock committed
755
      </if>
sherlock's avatar
sherlock committed
756 757
      <if test="FPYX != null">
        FPYX = #{FPYX,jdbcType=VARCHAR},
sherlock's avatar
sherlock committed
758
      </if>
sherlock's avatar
sherlock committed
759 760
      <if test="BLYY != null">
        BLYY = #{BLYY,jdbcType=VARCHAR},
sherlock's avatar
sherlock committed
761
      </if>
sherlock's avatar
sherlock committed
762 763
      <if test="LRRQ != null">
        LRRQ = #{LRRQ,jdbcType=VARCHAR},
sherlock's avatar
sherlock committed
764
      </if>
sherlock's avatar
sherlock committed
765 766
      <if test="COMPANYID != null">
        COMPANYID = #{COMPANYID,jdbcType=VARCHAR},
sherlock's avatar
sherlock committed
767 768
      </if>
    </set>
sherlock's avatar
sherlock committed
769
    where ID = #{ID,jdbcType=VARCHAR}
sherlock's avatar
sherlock committed
770
  </update>
sherlock's avatar
sherlock committed
771
  <update id="updateByPrimaryKey" parameterType="pwc.taxtech.atms.vat.entity.InputInvoice">
sherlock's avatar
sherlock committed
772 773 774 775 776
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update INPUT_INVOICE
sherlock's avatar
sherlock committed
777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816
    set FPDM = #{FPDM,jdbcType=VARCHAR},
      FPHM = #{FPHM,jdbcType=VARCHAR},
      KPRQ = #{KPRQ,jdbcType=VARCHAR},
      GFSH = #{GFSH,jdbcType=VARCHAR},
      GFMC = #{GFMC,jdbcType=VARCHAR},
      GFDZDH = #{GFDZDH,jdbcType=VARCHAR},
      GFYHZH = #{GFYHZH,jdbcType=VARCHAR},
      XFSH = #{XFSH,jdbcType=VARCHAR},
      XFMC = #{XFMC,jdbcType=VARCHAR},
      XFDZDH = #{XFDZDH,jdbcType=VARCHAR},
      XFYHZH = #{XFYHZH,jdbcType=VARCHAR},
      JYM = #{JYM,jdbcType=VARCHAR},
      FPLX = #{FPLX,jdbcType=VARCHAR},
      FPLC = #{FPLC,jdbcType=VARCHAR},
      JQBH = #{JQBH,jdbcType=VARCHAR},
      HJJE = #{HJJE,jdbcType=VARCHAR},
      HJSE = #{HJSE,jdbcType=VARCHAR},
      JSHJ = #{JSHJ,jdbcType=VARCHAR},
      MWQ = #{MWQ,jdbcType=VARCHAR},
      KPR = #{KPR,jdbcType=VARCHAR},
      SKR = #{SKR,jdbcType=VARCHAR},
      FHR = #{FHR,jdbcType=VARCHAR},
      BZ = #{BZ,jdbcType=VARCHAR},
      PZH = #{PZH,jdbcType=VARCHAR},
      DZDH = #{DZDH,jdbcType=VARCHAR},
      XTLY = #{XTLY,jdbcType=VARCHAR},
      FPZT = #{FPZT,jdbcType=VARCHAR},
      CYZT = #{CYZT,jdbcType=VARCHAR},
      RZZT = #{RZZT,jdbcType=VARCHAR},
      RZSQ = #{RZSQ,jdbcType=VARCHAR},
      RZSJ = #{RZSJ,jdbcType=VARCHAR},
      RZJG = #{RZJG,jdbcType=VARCHAR},
      RZJGMS = #{RZJGMS,jdbcType=VARCHAR},
      CJSJ = #{CJSJ,jdbcType=VARCHAR},
      LCBH = #{LCBH,jdbcType=VARCHAR},
      FPYX = #{FPYX,jdbcType=VARCHAR},
      BLYY = #{BLYY,jdbcType=VARCHAR},
      LRRQ = #{LRRQ,jdbcType=VARCHAR},
      COMPANYID = #{COMPANYID,jdbcType=VARCHAR}
    where ID = #{ID,jdbcType=VARCHAR}
sherlock's avatar
sherlock committed
817
  </update>
sherlock's avatar
sherlock committed
818
  <select id="selectByExampleWithRowbounds" parameterType="pwc.taxtech.atms.vat.entity.InputInvoiceExample" resultMap="BaseResultMap">
sherlock's avatar
sherlock committed
819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836
    <!--
      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" />
    from INPUT_INVOICE
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
</mapper>