Ver a proveniência

[库存][修改]:库存检查

release_toaliyun_real
Stormeye Wu há 7 anos
ascendente
cometimento
ba232e8e98
1 ficheiros alterados com 3 adições e 0 eliminações
  1. +3
    -0
      mallinkAdmin/src/main/java/com/iformall/controller/market/WxCouponController.java

+ 3
- 0
mallinkAdmin/src/main/java/com/iformall/controller/market/WxCouponController.java Ver ficheiro

@@ -75,6 +75,9 @@ public class WxCouponController extends BaseController {
if(wxCoupon.getRemainInventory() == null || wxCoupon.getInventory() == null) {
return new ResultData(ErrorCode.COUPON_STOCK_ERR);
}
if(wxCoupon.getRemainInventory() > wxCoupon.getInventory()) {
return new ResultData(ErrorCode.COUPON_STOCK_ERR);
}
if(wxCoupon.getValidType() == null) {
return new ResultData(ErrorCode.COUPON_VALID_DATE_ERR);
}


Carregando…
Cancelar
Guardar