winter 1 год назад
Родитель
Сommit
fa7e1f474d
2 измененных файлов: 8 добавлений и 8 удалений
  1. +3
    -3
      mallinkService/src/main/resources/mapper/WxMerchantMapper.xml
  2. +5
    -5
      mallinkService/src/main/resources/mapper/WxMerchantShopMapper.xml

+ 3
- 3
mallinkService/src/main/resources/mapper/WxMerchantMapper.xml Просмотреть файл

@@ -194,14 +194,14 @@
#{typeItem}
</foreach>
</if>
<if test=" null != ids ">
<if test=" null != ids and ids.size > 0">
and m.id in
<foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
#{idItem}
</foreach>
</if>
<if test=" null != notInids ">
and m.id not in
<if test=" null != notInids and notInids.size > 0">
and m.id NOT IN
<foreach collection="notInids" index="index" item="notInIdItem" open="(" separator="," close=")">
#{notInIdItem}
</foreach>


+ 5
- 5
mallinkService/src/main/resources/mapper/WxMerchantShopMapper.xml Просмотреть файл

@@ -55,21 +55,21 @@
<if test=" null != isDel ">
and `is_del` = #{isDel}
</if>
<if test=" null != ids ">
<if test=" null != ids and ids.size > 0 ">
and id in
<foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
#{idItem}
</foreach>
</if>
<if test=" null != shopIdList ">
<if test=" null != shopIdList and shopIdList.size > 0 ">
and shop_id in
<foreach collection="shopIdList" index="index" item="shopIdItem" open="(" separator="," close=")">
#{shopIdItem}
</foreach>
</if>
<if test=" null != merchantIds ">
<if test=" null != merchantIds and merchantIds.size > 0 ">
and merchant_id in
<foreach collection="merchantIds" index="index" item="merchantIdItem" open="(" separator="," close=")">
#{merchantIdItem}
@@ -136,7 +136,7 @@
<if test=" null != parentTenantId and '' != parentTenantId">
and w.`parent_tenant_id` = #{parentTenantId}
</if>
<if test=" null != shopIds ">
<if test=" null != shopIds and shopIds.size > 0 ">
and w.shop_id in
<foreach collection="shopIds" index="index" item="shopIdItem" open="(" separator="," close=")">
#{shopIdItem}
@@ -163,7 +163,7 @@
<if test=" null != parentTenantId and '' != parentTenantId">
and w.`parent_tenant_id` = #{parentTenantId}
</if>
<if test=" null != shopIds ">
<if test=" null != shopIds and shopIds.size > 0 ">
and w.shop_id in
<foreach collection="shopIds" index="index" item="shopIdItem" open="(" separator="," close=")">
#{shopIdItem}


Загрузка…
Отмена
Сохранить