EnterpriseAccountMapper.xml 18.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.dao.EnterpriseAccountMapper">
4
  <resultMap id="BaseResultMap" type="pwc.taxtech.atms.entity.EnterpriseAccount">
5 6 7 8
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
gary's avatar
gary committed
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
    <id column="id" jdbcType="VARCHAR" property="id" />
    <result column="code" jdbcType="VARCHAR" property="code" />
    <result column="name" jdbcType="VARCHAR" property="name" />
    <result column="parent_code" jdbcType="VARCHAR" property="parentCode" />
    <result column="full_name" jdbcType="VARCHAR" property="fullName" />
    <result column="acct_prop" jdbcType="INTEGER" property="acctProp" />
    <result column="sub_prop" jdbcType="INTEGER" property="subProp" />
    <result column="acct_level" jdbcType="INTEGER" property="acctLevel" />
    <result column="direction" jdbcType="INTEGER" property="direction" />
    <result column="is_leaf" jdbcType="BIT" property="isLeaf" />
    <result column="rule_type" jdbcType="INTEGER" property="ruleType" />
    <result column="is_active" jdbcType="BIT" property="isActive" />
    <result column="english_name" jdbcType="VARCHAR" property="englishName" />
    <result column="std_code" jdbcType="VARCHAR" property="stdCode" />
    <result column="enterprise_account_set_id" jdbcType="VARCHAR" property="enterpriseAccountSetId" />
    <result column="creator_id" jdbcType="VARCHAR" property="creatorId" />
    <result column="updator_id" jdbcType="VARCHAR" property="updatorId" />
    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
    <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
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 53 54 55
  </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>
56
            </foreach>
57
          </trim>
58
        </if>
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
      </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>
91
        </if>
92 93 94 95 96 97 98 99
      </foreach>
    </where>
  </sql>
  <sql id="Base_Column_List">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
gary's avatar
gary committed
100 101 102
    id, code, name, parent_code, full_name, acct_prop, sub_prop, acct_level, direction, 
    is_leaf, rule_type, is_active, english_name, std_code, enterprise_account_set_id, 
    creator_id, updator_id, create_time, update_time
103
  </sql>
104
  <select id="selectByExample" parameterType="pwc.taxtech.atms.entity.EnterpriseAccountExample" resultMap="BaseResultMap">
105 106 107 108 109 110 111 112 113
    <!--
      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" />
gary's avatar
gary committed
114
    from enterprise_account
115 116 117 118 119 120 121 122 123 124 125 126 127 128
    <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" />
gary's avatar
gary committed
129 130
    from enterprise_account
    where id = #{id,jdbcType=VARCHAR}
131 132 133 134 135 136
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
gary's avatar
gary committed
137 138
    delete from enterprise_account
    where id = #{id,jdbcType=VARCHAR}
139
  </delete>
140
  <delete id="deleteByExample" parameterType="pwc.taxtech.atms.entity.EnterpriseAccountExample">
141 142 143 144
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
gary's avatar
gary committed
145
    delete from enterprise_account
146 147 148 149
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
150
  <insert id="insert" parameterType="pwc.taxtech.atms.entity.EnterpriseAccount">
151 152 153 154
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
gary's avatar
gary committed
155 156 157 158 159 160 161
    insert into enterprise_account (id, code, name, 
      parent_code, full_name, acct_prop, 
      sub_prop, acct_level, direction, 
      is_leaf, rule_type, is_active, 
      english_name, std_code, enterprise_account_set_id, 
      creator_id, updator_id, create_time, 
      update_time)
162
    values (#{id,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, 
gary's avatar
gary committed
163 164
      #{parentCode,jdbcType=VARCHAR}, #{fullName,jdbcType=VARCHAR}, #{acctProp,jdbcType=INTEGER}, 
      #{subProp,jdbcType=INTEGER}, #{acctLevel,jdbcType=INTEGER}, #{direction,jdbcType=INTEGER}, 
gary's avatar
gary committed
165
      #{isLeaf,jdbcType=BIT}, #{ruleType,jdbcType=INTEGER}, #{isActive,jdbcType=BIT}, 
166 167 168
      #{englishName,jdbcType=VARCHAR}, #{stdCode,jdbcType=VARCHAR}, #{enterpriseAccountSetId,jdbcType=VARCHAR}, 
      #{creatorId,jdbcType=VARCHAR}, #{updatorId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, 
      #{updateTime,jdbcType=TIMESTAMP})
169
  </insert>
170
  <insert id="insertSelective" parameterType="pwc.taxtech.atms.entity.EnterpriseAccount">
171 172 173 174
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
gary's avatar
gary committed
175
    insert into enterprise_account
176
    <trim prefix="(" suffix=")" suffixOverrides=",">
neo's avatar
neo committed
177
      <if test="id != null">
gary's avatar
gary committed
178
        id,
179
      </if>
180
      <if test="code != null">
gary's avatar
gary committed
181
        code,
182 183
      </if>
      <if test="name != null">
gary's avatar
gary committed
184
        name,
185 186
      </if>
      <if test="parentCode != null">
gary's avatar
gary committed
187
        parent_code,
188 189
      </if>
      <if test="fullName != null">
gary's avatar
gary committed
190
        full_name,
191 192
      </if>
      <if test="acctProp != null">
gary's avatar
gary committed
193
        acct_prop,
194 195
      </if>
      <if test="subProp != null">
gary's avatar
gary committed
196
        sub_prop,
197 198
      </if>
      <if test="acctLevel != null">
gary's avatar
gary committed
199
        acct_level,
200 201
      </if>
      <if test="direction != null">
gary's avatar
gary committed
202
        direction,
203 204
      </if>
      <if test="isLeaf != null">
gary's avatar
gary committed
205
        is_leaf,
206
      </if>
207
      <if test="ruleType != null">
gary's avatar
gary committed
208
        rule_type,
209
      </if>
210
      <if test="isActive != null">
gary's avatar
gary committed
211
        is_active,
212 213
      </if>
      <if test="englishName != null">
gary's avatar
gary committed
214
        english_name,
215 216
      </if>
      <if test="stdCode != null">
gary's avatar
gary committed
217
        std_code,
neo's avatar
neo committed
218 219
      </if>
      <if test="enterpriseAccountSetId != null">
gary's avatar
gary committed
220
        enterprise_account_set_id,
221
      </if>
neo's avatar
neo committed
222
      <if test="creatorId != null">
gary's avatar
gary committed
223
        creator_id,
neo's avatar
neo committed
224 225
      </if>
      <if test="updatorId != null">
gary's avatar
gary committed
226
        updator_id,
227 228
      </if>
      <if test="createTime != null">
gary's avatar
gary committed
229
        create_time,
230 231
      </if>
      <if test="updateTime != null">
gary's avatar
gary committed
232
        update_time,
233 234 235
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
neo's avatar
neo committed
236 237
      <if test="id != null">
        #{id,jdbcType=VARCHAR},
238
      </if>
239 240
      <if test="code != null">
        #{code,jdbcType=VARCHAR},
241 242 243 244 245 246 247 248 249 250 251
      </if>
      <if test="name != null">
        #{name,jdbcType=VARCHAR},
      </if>
      <if test="parentCode != null">
        #{parentCode,jdbcType=VARCHAR},
      </if>
      <if test="fullName != null">
        #{fullName,jdbcType=VARCHAR},
      </if>
      <if test="acctProp != null">
gary's avatar
gary committed
252
        #{acctProp,jdbcType=INTEGER},
253 254
      </if>
      <if test="subProp != null">
gary's avatar
gary committed
255
        #{subProp,jdbcType=INTEGER},
256 257
      </if>
      <if test="acctLevel != null">
gary's avatar
gary committed
258
        #{acctLevel,jdbcType=INTEGER},
259 260
      </if>
      <if test="direction != null">
gary's avatar
gary committed
261
        #{direction,jdbcType=INTEGER},
262 263
      </if>
      <if test="isLeaf != null">
gary's avatar
gary committed
264
        #{isLeaf,jdbcType=BIT},
265
      </if>
266
      <if test="ruleType != null">
gary's avatar
gary committed
267
        #{ruleType,jdbcType=INTEGER},
268
      </if>
269
      <if test="isActive != null">
gary's avatar
gary committed
270
        #{isActive,jdbcType=BIT},
271 272 273 274 275 276 277
      </if>
      <if test="englishName != null">
        #{englishName,jdbcType=VARCHAR},
      </if>
      <if test="stdCode != null">
        #{stdCode,jdbcType=VARCHAR},
      </if>
neo's avatar
neo committed
278 279
      <if test="enterpriseAccountSetId != null">
        #{enterpriseAccountSetId,jdbcType=VARCHAR},
280
      </if>
neo's avatar
neo committed
281 282 283 284 285
      <if test="creatorId != null">
        #{creatorId,jdbcType=VARCHAR},
      </if>
      <if test="updatorId != null">
        #{updatorId,jdbcType=VARCHAR},
286 287 288 289 290 291 292 293 294
      </if>
      <if test="createTime != null">
        #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateTime != null">
        #{updateTime,jdbcType=TIMESTAMP},
      </if>
    </trim>
  </insert>
295
  <select id="countByExample" parameterType="pwc.taxtech.atms.entity.EnterpriseAccountExample" resultType="java.lang.Long">
296 297 298 299
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
gary's avatar
gary committed
300
    select count(*) from enterprise_account
301 302 303 304 305 306 307 308 309
    <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.
    -->
gary's avatar
gary committed
310
    update enterprise_account
311
    <set>
neo's avatar
neo committed
312
      <if test="record.id != null">
gary's avatar
gary committed
313
        id = #{record.id,jdbcType=VARCHAR},
314
      </if>
315
      <if test="record.code != null">
gary's avatar
gary committed
316
        code = #{record.code,jdbcType=VARCHAR},
317 318
      </if>
      <if test="record.name != null">
gary's avatar
gary committed
319
        name = #{record.name,jdbcType=VARCHAR},
320 321
      </if>
      <if test="record.parentCode != null">
gary's avatar
gary committed
322
        parent_code = #{record.parentCode,jdbcType=VARCHAR},
323 324
      </if>
      <if test="record.fullName != null">
gary's avatar
gary committed
325
        full_name = #{record.fullName,jdbcType=VARCHAR},
326 327
      </if>
      <if test="record.acctProp != null">
gary's avatar
gary committed
328
        acct_prop = #{record.acctProp,jdbcType=INTEGER},
329 330
      </if>
      <if test="record.subProp != null">
gary's avatar
gary committed
331
        sub_prop = #{record.subProp,jdbcType=INTEGER},
332 333
      </if>
      <if test="record.acctLevel != null">
gary's avatar
gary committed
334
        acct_level = #{record.acctLevel,jdbcType=INTEGER},
335 336
      </if>
      <if test="record.direction != null">
gary's avatar
gary committed
337
        direction = #{record.direction,jdbcType=INTEGER},
338 339
      </if>
      <if test="record.isLeaf != null">
gary's avatar
gary committed
340
        is_leaf = #{record.isLeaf,jdbcType=BIT},
341
      </if>
342
      <if test="record.ruleType != null">
gary's avatar
gary committed
343
        rule_type = #{record.ruleType,jdbcType=INTEGER},
344
      </if>
345
      <if test="record.isActive != null">
gary's avatar
gary committed
346
        is_active = #{record.isActive,jdbcType=BIT},
347 348
      </if>
      <if test="record.englishName != null">
gary's avatar
gary committed
349
        english_name = #{record.englishName,jdbcType=VARCHAR},
350 351
      </if>
      <if test="record.stdCode != null">
gary's avatar
gary committed
352
        std_code = #{record.stdCode,jdbcType=VARCHAR},
neo's avatar
neo committed
353 354
      </if>
      <if test="record.enterpriseAccountSetId != null">
gary's avatar
gary committed
355
        enterprise_account_set_id = #{record.enterpriseAccountSetId,jdbcType=VARCHAR},
356
      </if>
neo's avatar
neo committed
357
      <if test="record.creatorId != null">
gary's avatar
gary committed
358
        creator_id = #{record.creatorId,jdbcType=VARCHAR},
neo's avatar
neo committed
359 360
      </if>
      <if test="record.updatorId != null">
gary's avatar
gary committed
361
        updator_id = #{record.updatorId,jdbcType=VARCHAR},
362 363
      </if>
      <if test="record.createTime != null">
gary's avatar
gary committed
364
        create_time = #{record.createTime,jdbcType=TIMESTAMP},
365 366
      </if>
      <if test="record.updateTime != null">
gary's avatar
gary committed
367
        update_time = #{record.updateTime,jdbcType=TIMESTAMP},
368 369 370 371 372 373 374 375 376 377 378
      </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.
    -->
gary's avatar
gary committed
379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398
    update enterprise_account
    set id = #{record.id,jdbcType=VARCHAR},
      code = #{record.code,jdbcType=VARCHAR},
      name = #{record.name,jdbcType=VARCHAR},
      parent_code = #{record.parentCode,jdbcType=VARCHAR},
      full_name = #{record.fullName,jdbcType=VARCHAR},
      acct_prop = #{record.acctProp,jdbcType=INTEGER},
      sub_prop = #{record.subProp,jdbcType=INTEGER},
      acct_level = #{record.acctLevel,jdbcType=INTEGER},
      direction = #{record.direction,jdbcType=INTEGER},
      is_leaf = #{record.isLeaf,jdbcType=BIT},
      rule_type = #{record.ruleType,jdbcType=INTEGER},
      is_active = #{record.isActive,jdbcType=BIT},
      english_name = #{record.englishName,jdbcType=VARCHAR},
      std_code = #{record.stdCode,jdbcType=VARCHAR},
      enterprise_account_set_id = #{record.enterpriseAccountSetId,jdbcType=VARCHAR},
      creator_id = #{record.creatorId,jdbcType=VARCHAR},
      updator_id = #{record.updatorId,jdbcType=VARCHAR},
      create_time = #{record.createTime,jdbcType=TIMESTAMP},
      update_time = #{record.updateTime,jdbcType=TIMESTAMP}
399 400 401 402
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
403
  <update id="updateByPrimaryKeySelective" parameterType="pwc.taxtech.atms.entity.EnterpriseAccount">
404 405 406 407
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
gary's avatar
gary committed
408
    update enterprise_account
409
    <set>
410
      <if test="code != null">
gary's avatar
gary committed
411
        code = #{code,jdbcType=VARCHAR},
412 413
      </if>
      <if test="name != null">
gary's avatar
gary committed
414
        name = #{name,jdbcType=VARCHAR},
415 416
      </if>
      <if test="parentCode != null">
gary's avatar
gary committed
417
        parent_code = #{parentCode,jdbcType=VARCHAR},
418 419
      </if>
      <if test="fullName != null">
gary's avatar
gary committed
420
        full_name = #{fullName,jdbcType=VARCHAR},
421 422
      </if>
      <if test="acctProp != null">
gary's avatar
gary committed
423
        acct_prop = #{acctProp,jdbcType=INTEGER},
424 425
      </if>
      <if test="subProp != null">
gary's avatar
gary committed
426
        sub_prop = #{subProp,jdbcType=INTEGER},
427 428
      </if>
      <if test="acctLevel != null">
gary's avatar
gary committed
429
        acct_level = #{acctLevel,jdbcType=INTEGER},
430 431
      </if>
      <if test="direction != null">
gary's avatar
gary committed
432
        direction = #{direction,jdbcType=INTEGER},
433 434
      </if>
      <if test="isLeaf != null">
gary's avatar
gary committed
435
        is_leaf = #{isLeaf,jdbcType=BIT},
436
      </if>
437
      <if test="ruleType != null">
gary's avatar
gary committed
438
        rule_type = #{ruleType,jdbcType=INTEGER},
439
      </if>
440
      <if test="isActive != null">
gary's avatar
gary committed
441
        is_active = #{isActive,jdbcType=BIT},
442 443
      </if>
      <if test="englishName != null">
gary's avatar
gary committed
444
        english_name = #{englishName,jdbcType=VARCHAR},
445 446
      </if>
      <if test="stdCode != null">
gary's avatar
gary committed
447
        std_code = #{stdCode,jdbcType=VARCHAR},
neo's avatar
neo committed
448 449
      </if>
      <if test="enterpriseAccountSetId != null">
gary's avatar
gary committed
450
        enterprise_account_set_id = #{enterpriseAccountSetId,jdbcType=VARCHAR},
neo's avatar
neo committed
451 452
      </if>
      <if test="creatorId != null">
gary's avatar
gary committed
453
        creator_id = #{creatorId,jdbcType=VARCHAR},
454
      </if>
neo's avatar
neo committed
455
      <if test="updatorId != null">
gary's avatar
gary committed
456
        updator_id = #{updatorId,jdbcType=VARCHAR},
457 458
      </if>
      <if test="createTime != null">
gary's avatar
gary committed
459
        create_time = #{createTime,jdbcType=TIMESTAMP},
460 461
      </if>
      <if test="updateTime != null">
gary's avatar
gary committed
462
        update_time = #{updateTime,jdbcType=TIMESTAMP},
463 464
      </if>
    </set>
gary's avatar
gary committed
465
    where id = #{id,jdbcType=VARCHAR}
466
  </update>
467
  <update id="updateByPrimaryKey" parameterType="pwc.taxtech.atms.entity.EnterpriseAccount">
468 469 470 471
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
gary's avatar
gary committed
472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491
    update enterprise_account
    set code = #{code,jdbcType=VARCHAR},
      name = #{name,jdbcType=VARCHAR},
      parent_code = #{parentCode,jdbcType=VARCHAR},
      full_name = #{fullName,jdbcType=VARCHAR},
      acct_prop = #{acctProp,jdbcType=INTEGER},
      sub_prop = #{subProp,jdbcType=INTEGER},
      acct_level = #{acctLevel,jdbcType=INTEGER},
      direction = #{direction,jdbcType=INTEGER},
      is_leaf = #{isLeaf,jdbcType=BIT},
      rule_type = #{ruleType,jdbcType=INTEGER},
      is_active = #{isActive,jdbcType=BIT},
      english_name = #{englishName,jdbcType=VARCHAR},
      std_code = #{stdCode,jdbcType=VARCHAR},
      enterprise_account_set_id = #{enterpriseAccountSetId,jdbcType=VARCHAR},
      creator_id = #{creatorId,jdbcType=VARCHAR},
      updator_id = #{updatorId,jdbcType=VARCHAR},
      create_time = #{createTime,jdbcType=TIMESTAMP},
      update_time = #{updateTime,jdbcType=TIMESTAMP}
    where id = #{id,jdbcType=VARCHAR}
492
  </update>
493
  <select id="selectByExampleWithRowbounds" parameterType="pwc.taxtech.atms.entity.EnterpriseAccountExample" resultMap="BaseResultMap">
494 495 496 497 498 499 500 501 502
    <!--
      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" />
gary's avatar
gary committed
503
    from enterprise_account
neo's avatar
neo committed
504 505 506 507 508 509 510
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
511
</mapper>