Explorar el Código

fix bug

release_toaliyun_real
xiaohanzi hace 4 años
padre
commit
762cceae6b
Se han modificado 1 ficheros con 7 adiciones y 7 borrados
  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 Ver fichero

@@ -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()+"]您有未支付的订单.");


Cargando…
Cancelar
Guardar