Kaynağa Gözat

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

release_toaliyun_real
Stormeye Wu 7 yıl önce
ebeveyn
işleme
ba232e8e98
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  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 Dosyayı Görüntüle

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


Yükleniyor…
İptal
Kaydet