From 01fbcb62fbd9ac4d72d1bed3d87da5a6c73af698 Mon Sep 17 00:00:00 2001
From: chenjiahe <763432473@qq.com>
Date: 星期一, 15 五月 2023 10:07:27 +0800
Subject: [PATCH] 作废退款-测

---
 phi_platform_user/src/main/java/com/hx/phip/service/order/impl/OrderRefundServiceImpl.java |    2 +-
 phi_platform_user/src/main/java/com/hx/phip/tool/refund/OrderRefundCancelTool.java         |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/phi_platform_user/src/main/java/com/hx/phip/service/order/impl/OrderRefundServiceImpl.java b/phi_platform_user/src/main/java/com/hx/phip/service/order/impl/OrderRefundServiceImpl.java
index 1b1cb42..1a43408 100644
--- a/phi_platform_user/src/main/java/com/hx/phip/service/order/impl/OrderRefundServiceImpl.java
+++ b/phi_platform_user/src/main/java/com/hx/phip/service/order/impl/OrderRefundServiceImpl.java
@@ -1422,7 +1422,7 @@
             }
 
             refundRecordItem.setRealRefundNum(refundRecordItem.getRefundNum());
-            refundRecordItem.setRealRefundTotal(refundRecordItem.getRealRefundTotal());
+            refundRecordItem.setRealRefundTotal(refundRecordItem.getRefundMoney());
 
             refundRecordItemService.insert(refundRecordItem);
             //鍑忓幓宸茬粡鍒嗛厤鐨勯��娆鹃噾棰�
diff --git a/phi_platform_user/src/main/java/com/hx/phip/tool/refund/OrderRefundCancelTool.java b/phi_platform_user/src/main/java/com/hx/phip/tool/refund/OrderRefundCancelTool.java
index 6fdfa54..ad90a6a 100644
--- a/phi_platform_user/src/main/java/com/hx/phip/tool/refund/OrderRefundCancelTool.java
+++ b/phi_platform_user/src/main/java/com/hx/phip/tool/refund/OrderRefundCancelTool.java
@@ -83,7 +83,7 @@
             values.put("status",RefundRecordConsumePay.NO);
             values.put("statusOld",RefundRecordConsumePay.YES);
             values.put("id",refundRecordConsumePay.getId());
-            sqlSentence.sqlUpdate("status = #{m.status} WHERE id = #{m.id} AND statusOld = #{m.statusOld}",values);
+            sqlSentence.sqlUpdate("status = #{m.status} WHERE id = #{m.id} AND status = #{m.statusOld}",values);
             if(commonService.updateWhere(RefundRecordConsumePayMapper.class,sqlSentence) != 1){
                 throw new TipsException("閫�娆鹃噾棰濊褰曠姸鎬侀敊璇紒");
             }
@@ -468,7 +468,7 @@
         }
 
         //鎵惧埌鐢ㄦ埛椤圭洰
-        UserProjectItem userProjectItem = PartialRefundUtil.getUserProject(refundRecordItem.getId(),commonService);
+        UserProjectItem userProjectItem = PartialRefundUtil.getUserProject(orderItem.getId(),commonService);
         if (userProjectItem == null) {
             throw new PlatTipsException(PlatformCode.ERROR_TIPS,orderItem.getGoodsName()+"["+orderItem.getGoodsNo()+"]"+"鏈壘鍒扮敤鎴峰瓙椤归」鐩俊鎭�");
         }

--
Gitblit v1.8.0