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

This commit is contained in:
tianyongbao
2024-07-16 00:02:20 +08:00
parent 4a66284ace
commit 69697d1ca1

View File

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