Browse Source

10-23 收款:补充手续费时,手续费可为0

milestone-20251016-现金管理
lijianlin 1 month ago
parent
commit
94eea9059d
  1. 1
      src/main/java/com/example/demo/serviceImpl/cash/CashCollectionServiceImpl.java
  2. 4
      src/main/resources/cashMapper/CashCollectionMapper.xml

1
src/main/java/com/example/demo/serviceImpl/cash/CashCollectionServiceImpl.java

@ -226,6 +226,7 @@ public class CashCollectionServiceImpl implements CashCollectionService {
@Override
public String complete(CashRecord cashRecord) {
int rows = cashCollectionMapper.complete(cashRecord);
return rows > 0 ? "编辑成功" : "编辑失败";

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

@ -59,13 +59,13 @@
<update id="complete">
UPDATE cash_record
<set>
<if test="cashRecord.handlingCharge != null and cashRecord.handlingCharge!=''">
<if test="cashRecord.handlingCharge != null ">
handling_charge = #{cashRecord.handlingCharge},
</if>
<if test="cashRecord.receivedCurrency != null and cashRecord.receivedCurrency != ''">
received_currency = #{cashRecord.receivedCurrency},
</if>
<if test="cashRecord.receivedAmount != null">
<if test="cashRecord.receivedAmount != null and cashRecord.receivedAmount != ''">
received_amount = #{cashRecord.receivedAmount},
</if>
<if test="cashRecord.receivedTime != null">

Loading…
Cancel
Save