Browse Source

01-22 收款补充手续费 ,原始支付信息存入

lijianlin/feature-20260113-现金管理0109^2
lijianlin 1 month ago
parent
commit
b0d02e4ea9
  1. 2
      src/main/java/com/example/demo/domain/entity/CashRecord.java
  2. 4
      src/main/resources/cashMapper/CashCollectionMapper.xml

2
src/main/java/com/example/demo/domain/entity/CashRecord.java

@ -44,6 +44,8 @@ public class CashRecord implements Serializable {
// 金额信息 // 金额信息
private String paymentCurrency; // 付款币种 private String paymentCurrency; // 付款币种
private BigDecimal paymentAmount; // 付款金额 private BigDecimal paymentAmount; // 付款金额
private String paymentCurrencyOrig; // 原始付款币种
private BigDecimal paymentAmountOrig; // 原始付款金额
private String receivedCurrency; // 到账币种 private String receivedCurrency; // 到账币种
private BigDecimal receivedAmount; // 到账金额 private BigDecimal receivedAmount; // 到账金额
private BigDecimal handlingCharge; // 手续费 private BigDecimal handlingCharge; // 手续费

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

@ -72,6 +72,10 @@
<if test="cashRecordCollection.paymentAmount != 0"> <if test="cashRecordCollection.paymentAmount != 0">
payment_amount = #{cashRecordCollection.paymentAmount}, payment_amount = #{cashRecordCollection.paymentAmount},
</if> </if>
payment_currency_orig = #{cashRecordCollection.paymentCurrencyOrig},
<if test="cashRecordCollection.paymentAmountOrig != 0">
payment_amount_orig = #{cashRecordCollection.paymentAmountOrig},
</if>
<!-- 只有 这些字段全部非空才更新状态 --> <!-- 只有 这些字段全部非空才更新状态 -->
status = CASE status = CASE
WHEN WHEN

Loading…
Cancel
Save