Browse Source

04-03 新增流水——其他收入补充字段

lijianlin/feature-20260401-现金管理四期
lijianlin 6 days ago
parent
commit
5cc4c82811
  1. 2
      src/main/java/com/example/demo/serviceImpl/cash/CashCollectionServiceImpl.java
  2. 7
      src/main/resources/cashMapper/CashCollectionMapper.xml

2
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("-", "");
//构建订单信息

7
src/main/resources/cashMapper/CashCollectionMapper.xml

@ -425,14 +425,15 @@
<insert id="addExFund" >
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})
</insert>
<!-- 根据精网号和钱包 ID 查询用户钱包明细列表 -->

Loading…
Cancel
Save