支付状态新增待补缴

This commit is contained in:
2024-01-17 17:09:50 +08:00
parent ede56dbc83
commit c203650a3c
6 changed files with 8 additions and 14 deletions

View File

@@ -84,7 +84,7 @@ public class DelayMerchantProgramLogic extends AbstractProgramLogic {
if (orderInfo == null) {
throw new BusinessException(ReturnCodeEnum.CODE_QUERY_ORDER_INFO_IS_NULL);
}
if (!StringUtils.equals(orderInfo.getPayStatus(), OrderPayStatusEnum.unpaid.getValue())) {
if (StringUtils.equals(orderInfo.getPayStatus(), OrderPayStatusEnum.paid.getValue())) {
// 订单已支付
throw new BusinessException(ReturnCodeEnum.CODE_ORDER_IS_NOT_TO_BE_PAID_ERROR);
}

View File

@@ -197,7 +197,7 @@ public class NotDelayMerchantProgramLogic extends AbstractProgramLogic {
if (orderInfo == null) {
throw new BusinessException(ReturnCodeEnum.CODE_QUERY_ORDER_INFO_IS_NULL);
}
if (!StringUtils.equals(orderInfo.getPayStatus(), OrderPayStatusEnum.unpaid.getValue())) {
if (StringUtils.equals(orderInfo.getPayStatus(), OrderPayStatusEnum.paid.getValue())) {
// 订单已支付
throw new BusinessException(ReturnCodeEnum.CODE_ORDER_IS_NOT_TO_BE_PAID_ERROR);
}