From 55849ed003c892379c8786a3faa26780be235f9c Mon Sep 17 00:00:00 2001 From: lijianlin Date: Fri, 17 Apr 2026 19:44:44 +0800 Subject: [PATCH] =?UTF-8?q?04-17=20=E8=B5=84=E9=87=91=E6=B5=81=E6=B0=B4?= =?UTF-8?q?=E8=B4=A6=E6=B7=BB=E5=8A=A0=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/example/demo/serviceImpl/cash/CashCollectionServiceImpl.java | 2 +- src/main/resources/cashMapper/CashCollectionMapper.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/example/demo/serviceImpl/cash/CashCollectionServiceImpl.java b/src/main/java/com/example/demo/serviceImpl/cash/CashCollectionServiceImpl.java index c5dd7e0..bbdbe90 100644 --- a/src/main/java/com/example/demo/serviceImpl/cash/CashCollectionServiceImpl.java +++ b/src/main/java/com/example/demo/serviceImpl/cash/CashCollectionServiceImpl.java @@ -713,7 +713,7 @@ public class CashCollectionServiceImpl implements CashCollectionService { addFundsDTO.setMarket("24032"); addFundsDTO.setOrderType(1); addFundsDTO.setReceivedMarket(addFundsDTO.getPerformanceMarket()); - addFundsDTO.setReceivedAmount(addFundsDTO.getPaymentAmount()); + addFundsDTO.setReceivedAmount(addFundsDTO.getPaymentAmount().subtract(addFundsDTO.getHandlingCharge())); addFundsDTO.setReceivedCurrency(addFundsDTO.getPaymentCurrency()); cashCollectionMapper.addExFund(addFundsDTO); diff --git a/src/main/resources/cashMapper/CashCollectionMapper.xml b/src/main/resources/cashMapper/CashCollectionMapper.xml index 3fec95f..cb8006d 100644 --- a/src/main/resources/cashMapper/CashCollectionMapper.xml +++ b/src/main/resources/cashMapper/CashCollectionMapper.xml @@ -485,10 +485,10 @@ insert into cash_record_collection - (order_type,jwcode,name,market,activity,order_code,goods_name,pay_type,payment_currency,handling_charge,remark,payment_amount, + (order_type,jwcode,name,market,activity,order_code,goods_name,pay_type,payment_currency,received_currency,received_amount,handling_charge,remark,payment_amount, received_market,performance_market,submitter_id,submitter_market,pay_time,status) values(#{orderType},#{jwcode},#{name},#{market},#{activity},#{orderCode}, - #{goodsName},#{payType},#{paymentCurrency},#{handlingCharge},#{remark}, + #{goodsName},#{payType},#{paymentCurrency},#{paymentCurrency},(0 - #{handlingCharge}),#{handlingCharge},#{remark}, #{paymentAmount},#{receivedMarket},#{performanceMarket},#{submitterId}, #{submitterMarket},now(),#{status} )