Commit a1707901 by jianshuqin

修复提交借还单异常问题

parent 861e82e1
......@@ -298,11 +298,12 @@ public class CostDomain implements Serializable {
AccountingSubjectMapper accountingSubjectMapper = SpringContextUtil.getBean(AccountingSubjectMapper.class);
AccountingSubject accountingSubject = accountingSubjectMapper.selectById(costTypeDomain.getAccountingSubjectId());
this.setAccountingSubjectName(accountingSubject.getName());
this.setAccountingSubjectNo(accountingSubject.getSubjectNo());
this.setAccountingSubjectId(accountingSubject.getId());
this.setNsAccountingSubjectId(accountingSubject.getNsAccountingSubjectId());
if (accountingSubject != null) {
this.setAccountingSubjectName(accountingSubject.getName());
this.setAccountingSubjectNo(accountingSubject.getSubjectNo());
this.setAccountingSubjectId(accountingSubject.getId());
this.setNsAccountingSubjectId(accountingSubject.getNsAccountingSubjectId());
}
this.setIsManageCost(costTypeDomain.getIsManageCost());
}
......
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