OutputVATInvoiceMapper.xml 17.4 KB
Newer Older
1 2
<?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">
3 4
<mapper namespace="pwc.taxtech.atms.vat.dao.OutputVatInvoiceMapper">
  <resultMap id="BaseResultMap" type="pwc.taxtech.atms.vat.entity.OutputVatInvoice">
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
    <id column="INVOICE_ID" jdbcType="VARCHAR" property="invoiceId" />
    <result column="INVOICE_TYPE" jdbcType="DECIMAL" property="invoiceType" />
    <result column="CLASS_CODE" jdbcType="VARCHAR" property="classCode" />
    <result column="INVOICE_NUMBER" jdbcType="VARCHAR" property="invoiceNumber" />
    <result column="BUYER_NAME" jdbcType="VARCHAR" property="buyerName" />
    <result column="BUYER_TAX_NUMBER" jdbcType="VARCHAR" property="buyerTaxNumber" />
    <result column="BANK_ACCOUNT" jdbcType="VARCHAR" property="bankAccount" />
    <result column="PHONE_NUM" jdbcType="VARCHAR" property="phoneNum" />
    <result column="INVOICE_DATE" jdbcType="TIMESTAMP" property="invoiceDate" />
    <result column="SEQ_NO" jdbcType="DECIMAL" property="seqNo" />
    <result column="PERIOD_ID" jdbcType="DECIMAL" property="periodId" />
    <result column="STATUS" jdbcType="DECIMAL" property="status" />
    <result column="CREATOR_ID" jdbcType="VARCHAR" property="creatorId" />
    <result column="CREATE_TIME" jdbcType="TIMESTAMP" property="createTime" />
    <result column="PART_ACCNTED_PERIOD" jdbcType="DECIMAL" property="partAccntedPeriod" />
    <result column="ACCNTED_PERIOD" jdbcType="DECIMAL" property="accntedPeriod" />
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
  </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>
53
            </foreach>
54
          </trim>
55
        </if>
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
      </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>
88
        </if>
89 90 91 92 93 94 95 96
      </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
97 98 99
    INVOICE_ID, INVOICE_TYPE, CLASS_CODE, INVOICE_NUMBER, BUYER_NAME, BUYER_TAX_NUMBER, 
    BANK_ACCOUNT, PHONE_NUM, INVOICE_DATE, SEQ_NO, PERIOD_ID, "STATUS", CREATOR_ID, CREATE_TIME, 
    PART_ACCNTED_PERIOD, ACCNTED_PERIOD
100
  </sql>
101
  <select id="selectByExample" parameterType="pwc.taxtech.atms.vat.entity.OutputVatInvoiceExample" resultMap="BaseResultMap">
102 103 104 105 106 107 108 109 110
    <!--
      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
111
    from OUTPUT_VAT_INVOICE
112 113 114 115 116 117 118 119 120 121 122 123 124 125
    <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
126 127
    from OUTPUT_VAT_INVOICE
    where INVOICE_ID = #{invoiceId,jdbcType=VARCHAR}
128 129 130 131 132 133
  </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
134 135
    delete from OUTPUT_VAT_INVOICE
    where INVOICE_ID = #{invoiceId,jdbcType=VARCHAR}
136
  </delete>
137
  <delete id="deleteByExample" parameterType="pwc.taxtech.atms.vat.entity.OutputVatInvoiceExample">
138 139 140 141
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
142
    delete from OUTPUT_VAT_INVOICE
143 144 145 146
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
147
  <insert id="insert" parameterType="pwc.taxtech.atms.vat.entity.OutputVatInvoice">
148 149 150 151
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
152 153 154 155 156 157 158
    insert into OUTPUT_VAT_INVOICE (INVOICE_ID, INVOICE_TYPE, CLASS_CODE, 
      INVOICE_NUMBER, BUYER_NAME, BUYER_TAX_NUMBER, 
      BANK_ACCOUNT, PHONE_NUM, INVOICE_DATE, 
      SEQ_NO, PERIOD_ID, "STATUS", 
      CREATOR_ID, CREATE_TIME, PART_ACCNTED_PERIOD, 
      ACCNTED_PERIOD)
    values (#{invoiceId,jdbcType=VARCHAR}, #{invoiceType,jdbcType=DECIMAL}, #{classCode,jdbcType=VARCHAR}, 
159 160
      #{invoiceNumber,jdbcType=VARCHAR}, #{buyerName,jdbcType=VARCHAR}, #{buyerTaxNumber,jdbcType=VARCHAR}, 
      #{bankAccount,jdbcType=VARCHAR}, #{phoneNum,jdbcType=VARCHAR}, #{invoiceDate,jdbcType=TIMESTAMP}, 
neo's avatar
neo committed
161 162 163
      #{seqNo,jdbcType=DECIMAL}, #{periodId,jdbcType=DECIMAL}, #{status,jdbcType=DECIMAL}, 
      #{creatorId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{partAccntedPeriod,jdbcType=DECIMAL}, 
      #{accntedPeriod,jdbcType=DECIMAL})
164
  </insert>
165
  <insert id="insertSelective" parameterType="pwc.taxtech.atms.vat.entity.OutputVatInvoice">
166 167 168 169
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
170
    insert into OUTPUT_VAT_INVOICE
171
    <trim prefix="(" suffix=")" suffixOverrides=",">
neo's avatar
neo committed
172 173
      <if test="invoiceId != null">
        INVOICE_ID,
174 175
      </if>
      <if test="invoiceType != null">
neo's avatar
neo committed
176
        INVOICE_TYPE,
177 178
      </if>
      <if test="classCode != null">
neo's avatar
neo committed
179
        CLASS_CODE,
180 181
      </if>
      <if test="invoiceNumber != null">
neo's avatar
neo committed
182
        INVOICE_NUMBER,
183 184
      </if>
      <if test="buyerName != null">
neo's avatar
neo committed
185
        BUYER_NAME,
186 187
      </if>
      <if test="buyerTaxNumber != null">
neo's avatar
neo committed
188
        BUYER_TAX_NUMBER,
189 190
      </if>
      <if test="bankAccount != null">
neo's avatar
neo committed
191
        BANK_ACCOUNT,
192 193
      </if>
      <if test="phoneNum != null">
neo's avatar
neo committed
194
        PHONE_NUM,
195 196
      </if>
      <if test="invoiceDate != null">
neo's avatar
neo committed
197
        INVOICE_DATE,
198 199
      </if>
      <if test="seqNo != null">
neo's avatar
neo committed
200
        SEQ_NO,
201
      </if>
neo's avatar
neo committed
202 203
      <if test="periodId != null">
        PERIOD_ID,
204 205
      </if>
      <if test="status != null">
neo's avatar
neo committed
206
        "STATUS",
207
      </if>
neo's avatar
neo committed
208 209
      <if test="creatorId != null">
        CREATOR_ID,
210 211
      </if>
      <if test="createTime != null">
neo's avatar
neo committed
212
        CREATE_TIME,
213 214
      </if>
      <if test="partAccntedPeriod != null">
neo's avatar
neo committed
215
        PART_ACCNTED_PERIOD,
216 217
      </if>
      <if test="accntedPeriod != null">
neo's avatar
neo committed
218
        ACCNTED_PERIOD,
219 220 221
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
neo's avatar
neo committed
222 223
      <if test="invoiceId != null">
        #{invoiceId,jdbcType=VARCHAR},
224 225
      </if>
      <if test="invoiceType != null">
neo's avatar
neo committed
226
        #{invoiceType,jdbcType=DECIMAL},
227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249
      </if>
      <if test="classCode != null">
        #{classCode,jdbcType=VARCHAR},
      </if>
      <if test="invoiceNumber != null">
        #{invoiceNumber,jdbcType=VARCHAR},
      </if>
      <if test="buyerName != null">
        #{buyerName,jdbcType=VARCHAR},
      </if>
      <if test="buyerTaxNumber != null">
        #{buyerTaxNumber,jdbcType=VARCHAR},
      </if>
      <if test="bankAccount != null">
        #{bankAccount,jdbcType=VARCHAR},
      </if>
      <if test="phoneNum != null">
        #{phoneNum,jdbcType=VARCHAR},
      </if>
      <if test="invoiceDate != null">
        #{invoiceDate,jdbcType=TIMESTAMP},
      </if>
      <if test="seqNo != null">
neo's avatar
neo committed
250
        #{seqNo,jdbcType=DECIMAL},
251
      </if>
neo's avatar
neo committed
252 253
      <if test="periodId != null">
        #{periodId,jdbcType=DECIMAL},
254 255
      </if>
      <if test="status != null">
neo's avatar
neo committed
256
        #{status,jdbcType=DECIMAL},
257
      </if>
neo's avatar
neo committed
258 259
      <if test="creatorId != null">
        #{creatorId,jdbcType=VARCHAR},
260 261 262 263 264
      </if>
      <if test="createTime != null">
        #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="partAccntedPeriod != null">
neo's avatar
neo committed
265
        #{partAccntedPeriod,jdbcType=DECIMAL},
266 267
      </if>
      <if test="accntedPeriod != null">
neo's avatar
neo committed
268
        #{accntedPeriod,jdbcType=DECIMAL},
269 270 271
      </if>
    </trim>
  </insert>
272
  <select id="countByExample" parameterType="pwc.taxtech.atms.vat.entity.OutputVatInvoiceExample" resultType="java.lang.Long">
273 274 275 276
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
277
    select count(*) from OUTPUT_VAT_INVOICE
278 279 280 281 282 283 284 285 286
    <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
287
    update OUTPUT_VAT_INVOICE
288
    <set>
neo's avatar
neo committed
289 290
      <if test="record.invoiceId != null">
        INVOICE_ID = #{record.invoiceId,jdbcType=VARCHAR},
291 292
      </if>
      <if test="record.invoiceType != null">
neo's avatar
neo committed
293
        INVOICE_TYPE = #{record.invoiceType,jdbcType=DECIMAL},
294 295
      </if>
      <if test="record.classCode != null">
neo's avatar
neo committed
296
        CLASS_CODE = #{record.classCode,jdbcType=VARCHAR},
297 298
      </if>
      <if test="record.invoiceNumber != null">
neo's avatar
neo committed
299
        INVOICE_NUMBER = #{record.invoiceNumber,jdbcType=VARCHAR},
300 301
      </if>
      <if test="record.buyerName != null">
neo's avatar
neo committed
302
        BUYER_NAME = #{record.buyerName,jdbcType=VARCHAR},
303 304
      </if>
      <if test="record.buyerTaxNumber != null">
neo's avatar
neo committed
305
        BUYER_TAX_NUMBER = #{record.buyerTaxNumber,jdbcType=VARCHAR},
306 307
      </if>
      <if test="record.bankAccount != null">
neo's avatar
neo committed
308
        BANK_ACCOUNT = #{record.bankAccount,jdbcType=VARCHAR},
309 310
      </if>
      <if test="record.phoneNum != null">
neo's avatar
neo committed
311
        PHONE_NUM = #{record.phoneNum,jdbcType=VARCHAR},
312 313
      </if>
      <if test="record.invoiceDate != null">
neo's avatar
neo committed
314
        INVOICE_DATE = #{record.invoiceDate,jdbcType=TIMESTAMP},
315 316
      </if>
      <if test="record.seqNo != null">
neo's avatar
neo committed
317
        SEQ_NO = #{record.seqNo,jdbcType=DECIMAL},
318
      </if>
neo's avatar
neo committed
319 320
      <if test="record.periodId != null">
        PERIOD_ID = #{record.periodId,jdbcType=DECIMAL},
321 322
      </if>
      <if test="record.status != null">
neo's avatar
neo committed
323
        "STATUS" = #{record.status,jdbcType=DECIMAL},
324
      </if>
neo's avatar
neo committed
325 326
      <if test="record.creatorId != null">
        CREATOR_ID = #{record.creatorId,jdbcType=VARCHAR},
327 328
      </if>
      <if test="record.createTime != null">
neo's avatar
neo committed
329
        CREATE_TIME = #{record.createTime,jdbcType=TIMESTAMP},
330 331
      </if>
      <if test="record.partAccntedPeriod != null">
neo's avatar
neo committed
332
        PART_ACCNTED_PERIOD = #{record.partAccntedPeriod,jdbcType=DECIMAL},
333 334
      </if>
      <if test="record.accntedPeriod != null">
neo's avatar
neo committed
335
        ACCNTED_PERIOD = #{record.accntedPeriod,jdbcType=DECIMAL},
336 337 338 339 340 341 342 343 344 345 346
      </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
347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363
    update OUTPUT_VAT_INVOICE
    set INVOICE_ID = #{record.invoiceId,jdbcType=VARCHAR},
      INVOICE_TYPE = #{record.invoiceType,jdbcType=DECIMAL},
      CLASS_CODE = #{record.classCode,jdbcType=VARCHAR},
      INVOICE_NUMBER = #{record.invoiceNumber,jdbcType=VARCHAR},
      BUYER_NAME = #{record.buyerName,jdbcType=VARCHAR},
      BUYER_TAX_NUMBER = #{record.buyerTaxNumber,jdbcType=VARCHAR},
      BANK_ACCOUNT = #{record.bankAccount,jdbcType=VARCHAR},
      PHONE_NUM = #{record.phoneNum,jdbcType=VARCHAR},
      INVOICE_DATE = #{record.invoiceDate,jdbcType=TIMESTAMP},
      SEQ_NO = #{record.seqNo,jdbcType=DECIMAL},
      PERIOD_ID = #{record.periodId,jdbcType=DECIMAL},
      "STATUS" = #{record.status,jdbcType=DECIMAL},
      CREATOR_ID = #{record.creatorId,jdbcType=VARCHAR},
      CREATE_TIME = #{record.createTime,jdbcType=TIMESTAMP},
      PART_ACCNTED_PERIOD = #{record.partAccntedPeriod,jdbcType=DECIMAL},
      ACCNTED_PERIOD = #{record.accntedPeriod,jdbcType=DECIMAL}
364 365 366 367
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
368
  <update id="updateByPrimaryKeySelective" parameterType="pwc.taxtech.atms.vat.entity.OutputVatInvoice">
369 370 371 372
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
373
    update OUTPUT_VAT_INVOICE
374 375
    <set>
      <if test="invoiceType != null">
neo's avatar
neo committed
376
        INVOICE_TYPE = #{invoiceType,jdbcType=DECIMAL},
377 378
      </if>
      <if test="classCode != null">
neo's avatar
neo committed
379
        CLASS_CODE = #{classCode,jdbcType=VARCHAR},
380 381
      </if>
      <if test="invoiceNumber != null">
neo's avatar
neo committed
382
        INVOICE_NUMBER = #{invoiceNumber,jdbcType=VARCHAR},
383 384
      </if>
      <if test="buyerName != null">
neo's avatar
neo committed
385
        BUYER_NAME = #{buyerName,jdbcType=VARCHAR},
386 387
      </if>
      <if test="buyerTaxNumber != null">
neo's avatar
neo committed
388
        BUYER_TAX_NUMBER = #{buyerTaxNumber,jdbcType=VARCHAR},
389 390
      </if>
      <if test="bankAccount != null">
neo's avatar
neo committed
391
        BANK_ACCOUNT = #{bankAccount,jdbcType=VARCHAR},
392 393
      </if>
      <if test="phoneNum != null">
neo's avatar
neo committed
394
        PHONE_NUM = #{phoneNum,jdbcType=VARCHAR},
395 396
      </if>
      <if test="invoiceDate != null">
neo's avatar
neo committed
397
        INVOICE_DATE = #{invoiceDate,jdbcType=TIMESTAMP},
398 399
      </if>
      <if test="seqNo != null">
neo's avatar
neo committed
400
        SEQ_NO = #{seqNo,jdbcType=DECIMAL},
401
      </if>
neo's avatar
neo committed
402 403
      <if test="periodId != null">
        PERIOD_ID = #{periodId,jdbcType=DECIMAL},
404 405
      </if>
      <if test="status != null">
neo's avatar
neo committed
406
        "STATUS" = #{status,jdbcType=DECIMAL},
407
      </if>
neo's avatar
neo committed
408 409
      <if test="creatorId != null">
        CREATOR_ID = #{creatorId,jdbcType=VARCHAR},
410 411
      </if>
      <if test="createTime != null">
neo's avatar
neo committed
412
        CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
413 414
      </if>
      <if test="partAccntedPeriod != null">
neo's avatar
neo committed
415
        PART_ACCNTED_PERIOD = #{partAccntedPeriod,jdbcType=DECIMAL},
416 417
      </if>
      <if test="accntedPeriod != null">
neo's avatar
neo committed
418
        ACCNTED_PERIOD = #{accntedPeriod,jdbcType=DECIMAL},
419 420
      </if>
    </set>
neo's avatar
neo committed
421
    where INVOICE_ID = #{invoiceId,jdbcType=VARCHAR}
422
  </update>
423
  <update id="updateByPrimaryKey" parameterType="pwc.taxtech.atms.vat.entity.OutputVatInvoice">
424 425 426 427
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444
    update OUTPUT_VAT_INVOICE
    set INVOICE_TYPE = #{invoiceType,jdbcType=DECIMAL},
      CLASS_CODE = #{classCode,jdbcType=VARCHAR},
      INVOICE_NUMBER = #{invoiceNumber,jdbcType=VARCHAR},
      BUYER_NAME = #{buyerName,jdbcType=VARCHAR},
      BUYER_TAX_NUMBER = #{buyerTaxNumber,jdbcType=VARCHAR},
      BANK_ACCOUNT = #{bankAccount,jdbcType=VARCHAR},
      PHONE_NUM = #{phoneNum,jdbcType=VARCHAR},
      INVOICE_DATE = #{invoiceDate,jdbcType=TIMESTAMP},
      SEQ_NO = #{seqNo,jdbcType=DECIMAL},
      PERIOD_ID = #{periodId,jdbcType=DECIMAL},
      "STATUS" = #{status,jdbcType=DECIMAL},
      CREATOR_ID = #{creatorId,jdbcType=VARCHAR},
      CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
      PART_ACCNTED_PERIOD = #{partAccntedPeriod,jdbcType=DECIMAL},
      ACCNTED_PERIOD = #{accntedPeriod,jdbcType=DECIMAL}
    where INVOICE_ID = #{invoiceId,jdbcType=VARCHAR}
445
  </update>
446
  <select id="selectByExampleWithRowbounds" parameterType="pwc.taxtech.atms.vat.entity.OutputVatInvoiceExample" resultMap="BaseResultMap">
447 448 449 450 451 452 453 454 455
    <!--
      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
456
    from OUTPUT_VAT_INVOICE
457 458 459 460 461 462 463
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
464
</mapper>