|
|
|
@@ -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()); |
|
|
|
|