fix:账户交易记录,编辑时bug修复。
This commit is contained in:
@@ -43,7 +43,21 @@ public class AccountsDealRecordServiceImpl implements IAccountsDealRecordService
|
|||||||
@Override
|
@Override
|
||||||
public AccountsDealRecordVo selectAccountsDealRecordById(Long id)
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user