From c9db02cc26d40375a582645d32df527a02d74301 Mon Sep 17 00:00:00 2001 From: tianyongbao Date: Tue, 16 Jul 2024 00:02:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=B4=A6=E6=88=B7=E4=BA=A4=E6=98=93?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=EF=BC=8C=E7=BC=96=E8=BE=91=E6=97=B6bug?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/AccountsDealRecordServiceImpl.java | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/ruoyi-modules/intc-invest/src/main/java/com/ruoyi/invest/service/impl/AccountsDealRecordServiceImpl.java b/ruoyi-modules/intc-invest/src/main/java/com/ruoyi/invest/service/impl/AccountsDealRecordServiceImpl.java index b6a56fd..5b3b771 100644 --- a/ruoyi-modules/intc-invest/src/main/java/com/ruoyi/invest/service/impl/AccountsDealRecordServiceImpl.java +++ b/ruoyi-modules/intc-invest/src/main/java/com/ruoyi/invest/service/impl/AccountsDealRecordServiceImpl.java @@ -43,7 +43,21 @@ public class AccountsDealRecordServiceImpl implements IAccountsDealRecordService @Override public AccountsDealRecordVo selectAccountsDealRecordById(Long id) { - return accountsDealRecordMapper.selectAccountsDealRecordById(id); + AccountsDealRecordVo accountDeal= accountsDealRecordMapper.selectAccountsDealRecordById(id); + if(accountDeal.getDealCategory().equals("1")){ + if(accountDeal.getChildCategory()!=null){ + String childCategoryName = DictUtils.getDictLabel("daily_expenses", accountDeal.getChildCategory()); + accountDeal.setChildCategoryName(childCategoryName); + } + } + else { + if(accountDeal.getChildCategory()!=null){ + String childCategoryName = DictUtils.getDictLabel("deal_category", accountDeal.getChildCategory()); + accountDeal.setChildCategoryName(childCategoryName); + } + } + + return accountDeal; } /**