|
|
|
@@ -355,7 +355,11 @@ public class WxCardPayController extends BaseController { |
|
|
|
} |
|
|
|
|
|
|
|
if(!getLoginBUser().getMerchantId().equals(cardSend.getMerchantId())){ |
|
|
|
return new ResultData(ErrorCode.ORDER_IS_NOT_FIND.getCode(), "该门店与订单不匹配"); |
|
|
|
return new ResultData(ErrorCode.ORDER_PAY_REFUND_FAIL.getCode(), "该门店与订单不匹配"); |
|
|
|
} |
|
|
|
|
|
|
|
if(!DateUtils.isSameMonth(new Date(),cardSend.getCreateDate())){ |
|
|
|
return new ResultData(ErrorCode.ORDER_PAY_REFUND_FAIL.getCode(), "只能退本月订单"); |
|
|
|
} |
|
|
|
|
|
|
|
if(refund > cardSend.getDeductionAmount()){ |
|
|
|
|