From 3b94650a2b797adb335b9cf9e93721749d26dc33 Mon Sep 17 00:00:00 2001 From: huangqizhen <15552608129@163.com> Date: Fri, 17 Oct 2025 13:51:58 +0800 Subject: [PATCH] =?UTF-8?q?10.17=E6=96=B0=E5=A2=9E=E9=80=80=E6=AC=BE?= =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../demo/controller/cash/CashRefundController.java | 10 +++++----- src/main/resources/cashMapper/CashRefundMapper.xml | 15 ++++----------- 2 files changed, 9 insertions(+), 16 deletions(-) diff --git a/src/main/java/com/example/demo/controller/cash/CashRefundController.java b/src/main/java/com/example/demo/controller/cash/CashRefundController.java index 0d00026..e845825 100644 --- a/src/main/java/com/example/demo/controller/cash/CashRefundController.java +++ b/src/main/java/com/example/demo/controller/cash/CashRefundController.java @@ -92,7 +92,7 @@ public class CashRefundController { try { return Result.success(refundService.add(cashRecordDone)); } catch (Exception e) { - return Result.error("请检查数据的格式"); + return Result.error(e.getMessage()); } } @@ -111,10 +111,10 @@ public class CashRefundController { public Result review(@RequestBody CashRecordDone cashRecordDone) { return Result.success(refundService.review(cashRecordDone)); } -// @PostMapping("/finalReview") -// public Result finalReview(@RequestBody CashRecordDone cashRecordDone) { -// return Result.success(refundService.review(cashRecordDone)); -// } + @PostMapping("/finalReview") + public Result finalReview(@RequestBody CashRecordDone cashRecordDone) { + return Result.success(refundService.review(cashRecordDone)); + } @PostMapping("/executor") public Result executor(@RequestBody CashRecordDone cashRecordDone) { return Result.success(refundService.executor(cashRecordDone)); diff --git a/src/main/resources/cashMapper/CashRefundMapper.xml b/src/main/resources/cashMapper/CashRefundMapper.xml index e4386fd..949c877 100644 --- a/src/main/resources/cashMapper/CashRefundMapper.xml +++ b/src/main/resources/cashMapper/CashRefundMapper.xml @@ -31,9 +31,7 @@ refund_channels, refund_time, refund_remark, - refund_voucher, - create_time, - update_time + refund_voucher ) VALUES ( #{orderType}, #{jwcode}, @@ -43,7 +41,7 @@ #{orderCode}, #{bankCode}, #{goodsName}, - #{goodsNum}, + #{goodNum}, #{paymentCurrency}, #{paymentAmount}, #{receivedCurrency}, @@ -53,23 +51,18 @@ #{payType}, #{payTime}, #{receivedTime}, + #{status}, #{submitterId}, #{voucher}, #{remark}, - #{status}, #{refundReason}, #{refundModel}, #{executor}, #{refundChannels}, - #{refundCurrency}, - #{refundAmount}, #{refundTime}, #{refundRemark}, - #{refundVoucher}, - #{createTime}, - #{updateTime}, + #{refundVoucher} ); - update cash_record