Browse Source

[SQL][修改][日常、其他、其他押金添加必要索引]

release_toaliyun_real
gongbiao 7 years ago
parent
commit
436e2aabcf
3 changed files with 3 additions and 6 deletions
  1. +0
    -1
      mallinkService/src/main/resources/mapper/WxBillDailyMapper.xml
  2. +2
    -3
      mallinkService/src/main/resources/mapper/WxBillOtherDepositMapper.xml
  3. +1
    -2
      mallinkService/src/main/resources/mapper/WxBillOtherMapper.xml

+ 0
- 1
mallinkService/src/main/resources/mapper/WxBillDailyMapper.xml View File

@@ -77,7 +77,6 @@
<if test=" null != id ">and br.`id` = #{id}</if>
<if test=" null != merchantId ">and br.`merchant_id` = #{merchantId}</if>
<if test=" null != merchantName and ''!=merchantName ">and m.`name` like concat('%',#{merchantName},'%')</if>
<if test=" null != tenantId ">and br.`tenant_id` = #{tenantId}</if>
<if test=" null != status ">and br.`status` = #{status}</if>
<if test=" null != isDel ">and br.`is_del` = #{isDel}</if>
<if test=" null != type ">and br.`type` = #{type}</if>


+ 2
- 3
mallinkService/src/main/resources/mapper/WxBillOtherDepositMapper.xml View File

@@ -81,13 +81,12 @@
<if test=" null != merchantId ">and br.`merchant_id` = #{merchantId}</if>
<if test=" null != merchantName and ''!=merchantName ">and m.`name` like concat('%',#{merchantName},'%')
</if>
<if test=" null != tenantId ">and br.`tenant_id` = #{tenantId}</if>
<if test=" null != status ">and br.`status` = #{status}</if>
<if test=" null != isDel ">and br.`is_del` = #{isDel}</if>
<if test=" null != name ">and br.`name` = #{name}</if>
<if test=" null != name and ''!=name">and br.`name` = #{name}</if>
<if test=" null != rentShopType ">and br.`rent_shop_type` = #{rentShopType}</if>
<if test=" null != payWay ">and br.`pay_way` = #{payWay}</if>
<if test=" null != comments ">and br.`comments` like concat('%',#{comments},'%')</if>
<if test=" null != comments and ''!=comments">and br.`comments` like concat('%',#{comments},'%')</if>
</where>
<if test=" null != sortColumns"> order by ${sortColumns} </if>


+ 1
- 2
mallinkService/src/main/resources/mapper/WxBillOtherMapper.xml View File

@@ -79,10 +79,9 @@
<if test=" null != id ">and br.`id` = #{id}</if>
<if test=" null != merchantId ">and br.`merchant_id` = #{merchantId}</if>
<if test=" null != merchantName and ''!=merchantName ">and m.`name` like concat('%',#{merchantName},'%')</if>
<if test=" null != tenantId ">and br.`tenant_id` = #{tenantId}</if>
<if test=" null != status ">and br.`status` = #{status}</if>
<if test=" null != isDel ">and br.`is_del` = #{isDel}</if>
<if test=" null != name ">and br.`name` like concat('%',#{name},'%')</if>
<if test=" null != name and ''!=name">and br.`name` like concat('%',#{name},'%')</if>
<if test=" null != rentShopType ">and br.`rent_shop_type` = #{rentShopType}</if>
<if test=" null != payWay ">and br.`pay_way` = #{payWay}</if>



Loading…
Cancel
Save