Просмотр исходного кода

商户注券->列表过滤掉剩余库存为0 数据

release_toaliyun_real
Burce 6 лет назад
Родитель
Сommit
6332c766b7
2 измененных файлов: 3 добавлений и 3 удалений
  1. +1
    -1
      mallinkBApi/src/main/java/com/iformall/controller/WxCouponSendController.java
  2. +2
    -2
      mallinkService/src/main/resources/mapper/WxCouponSendMapper.xml

+ 1
- 1
mallinkBApi/src/main/java/com/iformall/controller/WxCouponSendController.java Просмотреть файл

@@ -54,7 +54,7 @@ public class WxCouponSendController extends BaseController {
wxCouponSend.setTenantId(getTenantId());
wxCouponSend.setMerchantId(getUser().getMerchantId());
if (Objects.nonNull(wxCouponSend.getExpired()) && Objects.equals(wxCouponSend.getExpired(), 0)) {
wxCouponSend.setMerchantLnventory(0);
wxCouponSend.setMerchantRemain(0);
}
wxCouponSend.setStatus(wxCouponSend.getStatus());
//库存大于0


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

@@ -86,8 +86,8 @@
<if test=" null != merchantId and ''!=merchantId ">
and cs.conditions->'$.id' = concat(#{merchantId},'')
</if>
<if test=" null != merchantLnventory ">
and cs.conditions -> '$.merchantLnventory'> #{merchantLnventory}
<if test=" null != merchantRemain">
and cs.conditions -> '$.merchantRemain'> #{merchantRemain}
</if>
<if test=" null != ids ">
and cs.id in


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