Просмотр исходного кода

fix order

release_toaliyun_real
xiaohanzi 4 лет назад
Родитель
Сommit
f074057c77
1 измененных файлов: 3 добавлений и 3 удалений
  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 Просмотреть файл

@@ -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+"您的有效拼团数量达到限购次数。");
}
}



Загрузка…
Отмена
Сохранить