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; } /**