Przeglądaj źródła

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

release_toaliyun_real
Burce 6 lat temu
rodzic
commit
6332c766b7
2 zmienionych plików z 3 dodań i 3 usunięć
  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 Wyświetl plik

@@ -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 Wyświetl plik

@@ -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


Ładowanie…
Anuluj
Zapisz