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); + } } }