From 5cc4c82811ee604c84e9e5eb4a6a7d03c754a362 Mon Sep 17 00:00:00 2001 From: lijianlin Date: Fri, 3 Apr 2026 11:47:04 +0800 Subject: [PATCH] =?UTF-8?q?04-03=20=E6=96=B0=E5=A2=9E=E6=B5=81=E6=B0=B4?= =?UTF-8?q?=E2=80=94=E2=80=94=E5=85=B6=E4=BB=96=E6=94=B6=E5=85=A5=E8=A1=A5?= =?UTF-8?q?=E5=85=85=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../example/demo/serviceImpl/cash/CashCollectionServiceImpl.java | 2 ++ src/main/resources/cashMapper/CashCollectionMapper.xml | 7 ++++--- 2 files changed, 6 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 7b12254..7a6f667 100644 --- a/src/main/java/com/example/demo/serviceImpl/cash/CashCollectionServiceImpl.java +++ b/src/main/java/com/example/demo/serviceImpl/cash/CashCollectionServiceImpl.java @@ -696,6 +696,8 @@ public class CashCollectionServiceImpl implements CashCollectionService { throw new IllegalArgumentException("币种不能为空"); if (addFundsDTO.getPaymentAmount() == null) throw new IllegalArgumentException("付款金额不能为空"); + if (addFundsDTO.getGoodNum() == null) + addFundsDTO.setGoodNum(0); //生成订单号后半部分 String orderNumber = UUID.randomUUID().toString().replaceAll("-", ""); //构建订单信息 diff --git a/src/main/resources/cashMapper/CashCollectionMapper.xml b/src/main/resources/cashMapper/CashCollectionMapper.xml index 778f71e..198160c 100644 --- a/src/main/resources/cashMapper/CashCollectionMapper.xml +++ b/src/main/resources/cashMapper/CashCollectionMapper.xml @@ -425,14 +425,15 @@ insert into cash_record_collection (jwcode,name,market,activity,order_code,goods_name,good_num,pay_type,payment_currency, - payment_amount,status,order_type,received_maket,received_amount,received_currency, - performance_market,remark,handing_charge,pay_time) + payment_amount,status,order_type,received_market,received_amount,received_currency, + performance_market,remark,handling_charge,pay_time,submitter_id,submitter_market) values(#{addFundsDTO.jwcode},#{addFundsDTO.name},#{addFundsDTO.market}, #{addFundsDTO.activity},#{addFundsDTO.orderCode},#{addFundsDTO.goodsName}, #{addFundsDTO.goodNum},#{addFundsDTO.payType},#{addFundsDTO.paymentCurrency}, #{addFundsDTO.paymentAmount},#{addFundsDTO.status},#{addFundsDTO.orderType}, #{addFundsDTO.receivedMarket},#{addFundsDTO.receivedAmount},#{addFundsDTO.receivedCurrency}, - #{addFundsDTO.performanceMarket},#{addFundsDTO.remark,#{addFundsDTO.handlingCharge},#{addFundsDTO.payTime}) + #{addFundsDTO.performanceMarket},#{addFundsDTO.remark},#{addFundsDTO.handlingCharge},#{addFundsDTO.payTime}, + #{addFundsDTO.submitterId},#{addFundsDTO.submitterMarket})