Sfoglia il codice sorgente

//card

release_toaliyun_real
xhxu 3 anni fa
parent
commit
aef2f0ec38
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. +3
    -0
      mallinkService/src/main/java/com/iformall/service/impl/WxRefundOrderServiceImpl.java

+ 3
- 0
mallinkService/src/main/java/com/iformall/service/impl/WxRefundOrderServiceImpl.java Vedi File

@@ -1227,6 +1227,9 @@ public class WxRefundOrderServiceImpl implements WxRefundOrderService {
logger.error("付款订单未找到, e:");
throw new MallinkException(ErrorCode.ORDER_IS_NOT_FIND);
}
if(!DateUtils.isSameMonth(new Date(),cardSend.getCreateDate())){
throw new MallinkException(ErrorCode.ORDER_PAY_REFUND_FAIL.getCode(), "只能退本月订单");
}
WxCardInfo cardInfo = wxCardInfoMapper.selectById(cardSend.getCardId());
if (cardInfo == null) {
logger.error("card not found: " + cardSend.getCardId());


Caricamento…
Annulla
Salva