fix:账户交易记录,bug修复。

This commit is contained in:
tianyongbao
2024-07-15 23:23:43 +08:00
parent 9f03a851dd
commit 4a66284ace

View File

@@ -59,12 +59,16 @@ public class AccountsDealRecordServiceImpl implements IAccountsDealRecordService
//修改子类别 //修改子类别
for (AccountsDealRecordVo accountDeal : list) { for (AccountsDealRecordVo accountDeal : list) {
if(accountDeal.getDealCategory().equals("1")){ if(accountDeal.getDealCategory().equals("1")){
if(accountDeal.getChildCategory()!=null){
String childCategoryName = DictUtils.getDictLabel("daily_expenses", accountDeal.getChildCategory()); String childCategoryName = DictUtils.getDictLabel("daily_expenses", accountDeal.getChildCategory());
accountDeal.setChildCategoryName(childCategoryName); accountDeal.setChildCategoryName(childCategoryName);
}
} }
else { else {
if(accountDeal.getChildCategory()!=null){
String childCategoryName = DictUtils.getDictLabel("deal_category", accountDeal.getChildCategory()); String childCategoryName = DictUtils.getDictLabel("deal_category", accountDeal.getChildCategory());
accountDeal.setChildCategoryName(childCategoryName); accountDeal.setChildCategoryName(childCategoryName);
}
} }
} }