@@ -180,6 +180,9 @@ public class QueryInspectionHandleReportService { | |||
* @return | |||
*/ | |||
private Map<String, User> getUserMap(List<InspectionFileHandle> inspectionFileHandleList) { | |||
if (CollectionUtil.isEmpty(inspectionFileHandleList)) { | |||
return null; | |||
} | |||
List<String> userIdList = inspectionFileHandleList.stream().map(o -> o.getHandlerUser()).collect(Collectors.toList()); | |||
if (CollectionUtil.isEmpty(userIdList)) { | |||
return null; |
@@ -17,7 +17,6 @@ import com.tuoheng.admin.mapper.RoadInformationMapper; | |||
import com.tuoheng.admin.mapper.SectionDeptMapper; | |||
import com.tuoheng.admin.mapper.SectionMapper; | |||
import com.tuoheng.admin.query.SectionQuery; | |||
import com.tuoheng.admin.service.section.ISectionService; | |||
import com.tuoheng.admin.service.section.query.QuerySectionListByDeptIdService; | |||
import com.tuoheng.admin.service.section.query.QuerySectionListByRoadIdAndDeptIdService; | |||
import com.tuoheng.admin.service.section.query.QuerySectionListByRoadIdService; |
@@ -92,10 +92,18 @@ public class QuerySectionListByRoadIdAndDeptIdService { | |||
return JsonResult.error(QuerySectionListByRoadIdCodeEnum.DEPT_ID_IS_NULL.getCode(), QuerySectionListByRoadIdCodeEnum.DEPT_ID_IS_NULL.getMsg()); | |||
} | |||
// 判断部门是否存在 | |||
Dept dept = deptMapper.selectOne(new LambdaQueryWrapper<Dept>() | |||
.eq(Dept::getTenantId, tenantId) | |||
.eq(Dept::getId, deptId) | |||
.eq(Dept::getMark, 1)); | |||
Dept dept; | |||
if (SystemConstant.ROOT_DEPT_PID.equals(deptId)) { | |||
dept = deptMapper.selectOne(new LambdaQueryWrapper<Dept>() | |||
.eq(Dept::getTenantId, tenantId) | |||
.eq(Dept::getPid, SystemConstant.ROOT_DEPT_PID) | |||
.eq(Dept::getMark, 1)); | |||
} else { | |||
dept = deptMapper.selectOne(new LambdaQueryWrapper<Dept>() | |||
.eq(Dept::getTenantId, tenantId) | |||
.eq(Dept::getId, deptId) | |||
.eq(Dept::getMark, 1)); | |||
} | |||
if (ObjectUtil.isNull(dept)) { | |||
return JsonResult.error(QuerySectionListByRoadIdCodeEnum.DEPT_IS_NOT_EXIST.getCode(), QuerySectionListByRoadIdCodeEnum.DEPT_IS_NOT_EXIST.getMsg()); | |||
} |