Przeglądaj źródła

fix order

release_toaliyun_real
xiaohanzi 4 lat temu
rodzic
commit
f074057c77
1 zmienionych plików z 3 dodań i 3 usunięć
  1. +3
    -3
      mallinkService/src/main/java/com/iformall/service/impl/WxOrderServiceImpl.java

+ 3
- 3
mallinkService/src/main/java/com/iformall/service/impl/WxOrderServiceImpl.java Wyświetl plik

@@ -2492,7 +2492,7 @@ public class WxOrderServiceImpl implements WxOrderService {
logger.info("OrderSave: " + orderSaveDto);
String premsg = "";
if (singleProduct) {
premsg = "券";
premsg = "券";
}else {
premsg = "第["+curindex+"]张券";
}
@@ -2521,8 +2521,8 @@ public class WxOrderServiceImpl implements WxOrderService {
//判断是否是拼团订单,如果是拼团订单,判断现在进行中的,和已完成的数量是否超出券的限制
if (coupon.getType().equals(EnumCouponType.COUPON_GROUP.getCode())) {
int ordercount = this.countUserCouponGroupOrder(wxCUserBasicInfo,coupon.getId(),coupon.getTenantId());
if ((ordercount+productCount)>=coupon.getUseLimitQuantity()) {
throw new MallinkException(ErrorCode.COUPON_IS_TAKE_OFF.getCode(),premsg+"您的有效拼团数量达到券的限购次数。");
if ((ordercount)>=coupon.getUseLimitQuantity()) {
throw new MallinkException(ErrorCode.COUPON_IS_TAKE_OFF.getCode(),premsg+"您的有效拼团数量达到限购次数。");
}
}



Ładowanie…
Anuluj
Zapisz