소스 검색

fix bug

release_toaliyun_real
xiaohanzi 4 년 전
부모
커밋
762cceae6b
1개의 변경된 파일7개의 추가작업 그리고 7개의 파일을 삭제
  1. +7
    -7
      mallinkService/src/main/java/com/iformall/service/impl/WxOrderServiceImpl.java

+ 7
- 7
mallinkService/src/main/java/com/iformall/service/impl/WxOrderServiceImpl.java 파일 보기

@@ -606,13 +606,13 @@ public class WxOrderServiceImpl implements WxOrderService {
int unPaidcount = 0;
// 有价券
if (coupon.getSalePrice() > 0) {
if (!allowUnPayOrder) {
// 检查是否未支付订单
try {
unPaidcount = getUserOrderCount(user, coupon);
} catch (Exception e) {
throw new MallinkException(ErrorCode.DB_FAIL.getCode(),"["+coupon.getTitle()+"]查询未支付订单失败.");
}
// 检查是否未支付订单
try {
unPaidcount = getUserOrderCount(user, coupon);
} catch (Exception e) {
throw new MallinkException(ErrorCode.DB_FAIL.getCode(),"["+coupon.getTitle()+"]查询未支付订单失败.");
}
if (!allowUnPayOrder) {
if (unPaidcount > 0) {
logger.error("此券有未支付的订单, couponId: " + couponIdStr + ", count: " + unPaidcount);
throw new MallinkException(ErrorCode.ORDER_UNPAID.getCode(),"["+coupon.getTitle()+"]您有未支付的订单.");


불러오는 중...
취소
저장