From 870f912af001dceb9166145710ed720a0d36ff70 Mon Sep 17 00:00:00 2001 From: cyf009 <591388323@qq.com> Date: Mon, 28 Oct 2024 16:04:02 +0800 Subject: [PATCH] 111111 --- .../application/command/IncomeCommandServiceImpl.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ServiceSite/src/main/java/com/seasky/ledgerincome/application/command/IncomeCommandServiceImpl.java b/ServiceSite/src/main/java/com/seasky/ledgerincome/application/command/IncomeCommandServiceImpl.java index 8f962789..0564c52f 100644 --- a/ServiceSite/src/main/java/com/seasky/ledgerincome/application/command/IncomeCommandServiceImpl.java +++ b/ServiceSite/src/main/java/com/seasky/ledgerincome/application/command/IncomeCommandServiceImpl.java @@ -261,7 +261,17 @@ public class IncomeCommandServiceImpl extends BaseCommandAbstractService<Income } } + if(!StringUtils.isEmpty(cmd.getIncomeTypeId())) { + if (!StringUtils.isEmpty(incomeAggregate.getReceiptBillVo().getSupplementName())) { + if (!incomeAggregate.getReceiptBillVo().getSupplementName().contains(code)) { + String name = StringUtils.isEmpty(incomeAggregate.getReceiptBillVo().getSupplementName()) ? code : incomeAggregate.getReceiptBillVo().getSupplementName() + ',' + code; + incomeAggregate.changeSupplement(name); + } + } else + incomeAggregate.changeSupplement(code); + } incomeAggregate.changeIncomeType(cmd.getIncomeTypeId(),cmd.getIncomeTypeName()); + } if(StringUtils.isEmpty(incomeAggregate.getReceiptBillVo().getAllocationName()) || !incomeAggregate.getReceiptBillVo().getAllocationName().contains(code)) { -- GitLab