Commit ccbc5436 by huluobin

# fee

parent a7316bbf
...@@ -169,12 +169,16 @@ public abstract class AbstractCostService implements CostService { ...@@ -169,12 +169,16 @@ public abstract class AbstractCostService implements CostService {
if (StringUtils.isNotEmpty(costDomain.getTypeNo())) { if (StringUtils.isNotEmpty(costDomain.getTypeNo())) {
CostTypeDomain costTypeDomain = costTypeDao.selectByNo(costDomain.getTypeNo()); CostTypeDomain costTypeDomain = costTypeDao.selectByNo(costDomain.getTypeNo());
AccountingSubject accountingSubject = accountingSubjectMapper.selectById(costTypeDomain.getAccountingSubjectId()); if (costTypeDomain != null) {
AccountingSubject accountingSubject = accountingSubjectMapper.selectById(costTypeDomain.getAccountingSubjectId());
costDomain.setTypeNo(costDomain.getTypeNo());
costDomain.setTypeName(costTypeDomain.getTypeName()); if (accountingSubject != null) {
costDomain.setAccountingSubjectNo(accountingSubject.getSubjectNo()); costDomain.setTypeNo(costDomain.getTypeNo());
costDomain.setAccountingSubjectName(accountingSubject.getName()); costDomain.setTypeName(costTypeDomain.getTypeName());
costDomain.setAccountingSubjectNo(accountingSubject.getSubjectNo());
costDomain.setAccountingSubjectName(accountingSubject.getName());
}
}
} }
Integer update = costDao.update(costDomain, new LambdaQueryWrapper<CostDomain>() Integer update = costDao.update(costDomain, new LambdaQueryWrapper<CostDomain>()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment