|
|
@@ -1045,9 +1045,11 @@ public class ExpenseAccountServiceImpl extends BaseMybatisDao<ExpenseAccountMapp
|
|
|
|
|
|
in.setAid(TokenManager.getAdminId());
|
|
|
OutExpenseAccount useEa = expenseAccountMapper.selectByaidAndPrid(in);
|
|
|
- ExpenseRelationship er = expenseRelationshipMapper.selectSonId(useEa.getId());
|
|
|
- if (er!=null){
|
|
|
- throw new BusinessException("公出已经发起报销");
|
|
|
+ if (useEa!=null){
|
|
|
+ ExpenseRelationship er = expenseRelationshipMapper.selectSonId(useEa.getId());
|
|
|
+ if (er!=null){
|
|
|
+ throw new BusinessException("公出已经发起报销");
|
|
|
+ }
|
|
|
}
|
|
|
return useEa;
|
|
|
}
|