Commit 65ad34a1b7cc7e8168f1e25a1974555e4c668f40
Merge branch 'main' of git3.nong12.com:cashierdesk/dili-cashier
Showing
2 changed files
with
5 additions
and
3 deletions
cashier-mall/src/main/java/com/diligrp/cashier/mall/service/biz/impl/MallBizRefundServiceImpl.java
| @@ -110,7 +110,7 @@ public class MallBizRefundServiceImpl implements MallBizRefundService { | @@ -110,7 +110,7 @@ public class MallBizRefundServiceImpl implements MallBizRefundService { | ||
| 110 | * 退款成功需要人工处理回调 | 110 | * 退款成功需要人工处理回调 |
| 111 | */ | 111 | */ |
| 112 | private void refundManualEvent(RefundResultBO refundResultBO) { | 112 | private void refundManualEvent(RefundResultBO refundResultBO) { |
| 113 | - if (Objects.nonNull(refundResultBO) && ObjectUtils.notEqual(refundResultBO.getState(), PaymentState.SUCCESS.getCode())) { | 113 | + if (Objects.nonNull(refundResultBO) && Objects.equals(refundResultBO.getState(), PaymentState.SUCCESS.getCode())) { |
| 114 | payNotifyServiceImpl.onEvent(refundResultBO); | 114 | payNotifyServiceImpl.onEvent(refundResultBO); |
| 115 | } | 115 | } |
| 116 | } | 116 | } |
cashier-mall/src/main/java/com/diligrp/cashier/mall/service/biz/impl/PayNotifyServiceImpl.java
| @@ -18,6 +18,8 @@ import org.slf4j.Logger; | @@ -18,6 +18,8 @@ import org.slf4j.Logger; | ||
| 18 | import org.slf4j.LoggerFactory; | 18 | import org.slf4j.LoggerFactory; |
| 19 | import org.springframework.stereotype.Component; | 19 | import org.springframework.stereotype.Component; |
| 20 | 20 | ||
| 21 | +import java.util.Objects; | ||
| 22 | + | ||
| 21 | /** | 23 | /** |
| 22 | * @ClassName PayNotifyServiceImpl.java | 24 | * @ClassName PayNotifyServiceImpl.java |
| 23 | * @author dengwei | 25 | * @author dengwei |
| @@ -64,8 +66,8 @@ public class PayNotifyServiceImpl implements PayNotifyService { | @@ -64,8 +66,8 @@ public class PayNotifyServiceImpl implements PayNotifyService { | ||
| 64 | @ParamLogPrint(desc = "RefundResultBO") | 66 | @ParamLogPrint(desc = "RefundResultBO") |
| 65 | public void onEvent(RefundResultBO event) { | 67 | public void onEvent(RefundResultBO event) { |
| 66 | MallBizRefund mallBizRefund = mallBizRefundDao.getByRefundTradeId(event.getRefundId()); | 68 | MallBizRefund mallBizRefund = mallBizRefundDao.getByRefundTradeId(event.getRefundId()); |
| 67 | - if (ObjectUtils.notEqual(mallBizRefund.getRefundState(), PaymentState.PENDING.getCode())) { | ||
| 68 | - LOG.info("refundOnEvent refundState not pending, refundId: {}", mallBizRefund.getId()); | 69 | + if (Objects.equals(mallBizRefund.getRefundState(), PaymentState.PENDING.getCode())) { |
| 70 | + LOG.info("refundOnEvent refundState is pending, refund_trade_id: {}", mallBizRefund.getRefundTradeId()); | ||
| 69 | return; | 71 | return; |
| 70 | } | 72 | } |
| 71 | 73 |