Browse Source

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

release_toaliyun_real
Stormeye Wu 7 years ago
parent
commit
ba232e8e98
1 changed files with 3 additions and 0 deletions
  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 View File

@@ -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);
}


Loading…
Cancel
Save