fix:修复[编辑按钮报错]Bug
编辑报告-部门为空的时候,编辑按钮报错
This commit is contained in:
@@ -689,11 +689,13 @@ public class IReportServiceImpl extends ServiceImpl<ReportDao, ReportEntity>
|
|||||||
ReportDetailVo reportDetailVo = reportDao.reportDetail(reportId);
|
ReportDetailVo reportDetailVo = reportDao.reportDetail(reportId);
|
||||||
//设置部门名称
|
//设置部门名称
|
||||||
String department = reportDetailVo.getDepartment();
|
String department = reportDetailVo.getDepartment();
|
||||||
String[] idArray = department.split(",");
|
if (StrUtil.isNotBlank(department)) {
|
||||||
List<OrgEO> orgEOList = orgEOService.query().in("ID", idArray).list();
|
String[] idArray = department.split(",");
|
||||||
if (CollectionUtils.isNotEmpty(orgEOList)) {
|
List<OrgEO> orgEOList = orgEOService.query().in("ID", idArray).list();
|
||||||
String departmentName = orgEOList.stream().map(OrgEO::getOrgName).collect(Collectors.joining(","));
|
if (CollectionUtils.isNotEmpty(orgEOList)) {
|
||||||
reportDetailVo.setDepartmentName(departmentName);
|
String departmentName = orgEOList.stream().map(OrgEO::getOrgName).collect(Collectors.joining(","));
|
||||||
|
reportDetailVo.setDepartmentName(departmentName);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//设置标签列表
|
//设置标签列表
|
||||||
|
|||||||
Reference in New Issue
Block a user