Commit ebdcb021 by huluobin

update bug fix

parent 872e9812
...@@ -129,8 +129,11 @@ public abstract class AbstractCostService implements CostService { ...@@ -129,8 +129,11 @@ public abstract class AbstractCostService implements CostService {
.collect(Collectors.toMap(OaUser::getOaUserId, oaUser -> oaUser)); .collect(Collectors.toMap(OaUser::getOaUserId, oaUser -> oaUser));
costDomains.forEach(costDomain -> { costDomains.forEach(costDomain -> {
costDomain.setPrimaryDepartmentId(oaUserMap.get(costDomain.getCreateUserid()).getPrimaryDepartmentId()); OaUser oaUser = oaUserMap.get(costDomain.getCreateUserid());
costDomain.setPrimaryDepartmentName(oaUserMap.get(costDomain.getCreateUserid()).getPrimaryDepartment().getName()); if (oaUser != null) {
costDomain.setPrimaryDepartmentId(oaUserMap.get(costDomain.getCreateUserid()).getPrimaryDepartmentId());
costDomain.setPrimaryDepartmentName(oaUserMap.get(costDomain.getCreateUserid()).getPrimaryDepartment().getName());
}
}); });
} }
......
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