|
@@ -950,21 +950,20 @@ public class RequestFundsV2ServiceImpl extends BasicsServiceImpl<RequestFundsV2M
|
|
|
public RequestFundsV2 details(String id) {
|
|
|
|
|
|
RequestFundsV2 requestFundsV2 = getById(id);
|
|
|
-
|
|
|
- // 获取部门
|
|
|
- String deptId = requestFundsV2.getDeptId();
|
|
|
- Map<String, Dept> deptMap = iSysClient.getDeptByIdsToMap(Collections.singletonList(deptId));
|
|
|
- Dept dept = deptMap.get(deptId);
|
|
|
- if (dept != null) {
|
|
|
- requestFundsV2.setDeptName(dept.getDeptName());
|
|
|
- }
|
|
|
-
|
|
|
- // 查询公司信息
|
|
|
- CompanyBasics company = companyBasicsService.getById(requestFundsV2.getCompanyId());
|
|
|
- if (company != null) {
|
|
|
- requestFundsV2.setCompanyName(company.getNameChinese());
|
|
|
+ if(ObjectUtil.isNotEmpty(requestFundsV2)){
|
|
|
+ // 获取部门
|
|
|
+ String deptId = requestFundsV2.getDeptId();
|
|
|
+ Map<String, Dept> deptMap = iSysClient.getDeptByIdsToMap(Collections.singletonList(deptId));
|
|
|
+ Dept dept = deptMap.get(deptId);
|
|
|
+ if (dept != null) {
|
|
|
+ requestFundsV2.setDeptName(dept.getDeptName());
|
|
|
+ }
|
|
|
+ // 查询公司信息
|
|
|
+ CompanyBasics company = companyBasicsService.getById(requestFundsV2.getCompanyId());
|
|
|
+ if (company != null) {
|
|
|
+ requestFundsV2.setCompanyName(company.getNameChinese());
|
|
|
+ }
|
|
|
}
|
|
|
-
|
|
|
return requestFundsV2;
|
|
|
}
|
|
|
|