|
|
|
|
|
|
|
|
throw new ServiceException(ServiceExceptionEnum.PARAMETER_IS_NULL); |
|
|
throw new ServiceException(ServiceExceptionEnum.PARAMETER_IS_NULL); |
|
|
} |
|
|
} |
|
|
//登录用户信息 |
|
|
//登录用户信息 |
|
|
// User user = CurrentUserUtil.getUserInfo(); |
|
|
|
|
|
User user = new User(); |
|
|
|
|
|
user.setId("0d695f6ff9441e0ba21cdd86d5cafcbd") |
|
|
|
|
|
.setDataPermission(1) |
|
|
|
|
|
.setTenantId("f9c3de911d228b6e51eafb510aeaea7d") |
|
|
|
|
|
.setDeptId("e2efb06b239beed004ef9672fed72934"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
User user = CurrentUserUtil.getUserInfo(); |
|
|
if (ObjectUtil.isNull(user)) { |
|
|
if (ObjectUtil.isNull(user)) { |
|
|
return JsonResult.error(WorkOrderEnum.USER_IS_NOT_EXIST.getCode(), WorkOrderEnum.USER_IS_NOT_EXIST.getMsg()); |
|
|
return JsonResult.error(WorkOrderEnum.USER_IS_NOT_EXIST.getCode(), WorkOrderEnum.USER_IS_NOT_EXIST.getMsg()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//获取工单对应的审核结果和历史审核记录 |
|
|
//获取工单对应的审核结果和历史审核记录 |
|
|
List<InspectionFileHandle> inspectionFileHandles = |
|
|
List<InspectionFileHandle> inspectionFileHandles = |
|
|
inspectionFileHandleMapper.selectList(new LambdaQueryWrapper<InspectionFileHandle>().in(InspectionFileHandle::getInspectionFileId, inspectionFiledIds)); |
|
|
inspectionFileHandleMapper.selectList(new LambdaQueryWrapper<InspectionFileHandle>().in(InspectionFileHandle::getInspectionFileId, inspectionFiledIds)); |
|
|
//子表信息处理 |
|
|
|
|
|
Map<String, InspectionFileHandle> detailMap = new HashMap<>(); |
|
|
|
|
|
if (CollectionUtils.isNotEmpty(inspectionFileHandles)){ |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
List<InspectionFileCheckRecord> inspectionFileCheckRecords = |
|
|
List<InspectionFileCheckRecord> inspectionFileCheckRecords = |
|
|
inspectionFileCheckRecordMapper.selectList(new LambdaQueryWrapper<InspectionFileCheckRecord>().in(InspectionFileCheckRecord::getInspectionFileId, inspectionFiledIds) |
|
|
inspectionFileCheckRecordMapper.selectList(new LambdaQueryWrapper<InspectionFileCheckRecord>().in(InspectionFileCheckRecord::getInspectionFileId, inspectionFiledIds) |
|
|
.orderByDesc(InspectionFileCheckRecord::getCreateTime)); |
|
|
.orderByDesc(InspectionFileCheckRecord::getCreateTime)); |
|
|
//历史审核记录 |
|
|
|
|
|
Map<String, List<InspectionFileCheckRecord>> checkRecordMap = new HashMap<>(); |
|
|
|
|
|
if (CollectionUtils.isNotEmpty(inspectionFileCheckRecords)){ |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
List<WorkOrderHandleVo> list = inspectionFilePageData.getRecords().stream().map(t -> { |
|
|
List<WorkOrderHandleVo> list = inspectionFilePageData.getRecords().stream().map(t -> { |
|
|
WorkOrderHandleVo vo = new WorkOrderHandleVo(); |
|
|
WorkOrderHandleVo vo = new WorkOrderHandleVo(); |