Explorar el Código

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

release_toaliyun_real
Burce hace 6 años
padre
commit
6332c766b7
Se han modificado 2 ficheros con 3 adiciones y 3 borrados
  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 Ver fichero

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

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


Cargando…
Cancelar
Guardar