From 4a66284acec065740d8e8c25b2ab7f5ef6fec8f6 Mon Sep 17 00:00:00 2001 From: tianyongbao Date: Mon, 15 Jul 2024 23:23:43 +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=8Cbug=E4=BF=AE=E5=A4=8D=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../invest/service/impl/AccountsDealRecordServiceImpl.java | 4 ++++ 1 file changed, 4 insertions(+) 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 f950162..b6a56fd 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 @@ -59,12 +59,16 @@ public class AccountsDealRecordServiceImpl implements IAccountsDealRecordService //修改子类别 for (AccountsDealRecordVo accountDeal : list) { 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); + } } }