queryWrapper.orderByDesc(InspectionFileCheckRecord::getCreateTime); | queryWrapper.orderByDesc(InspectionFileCheckRecord::getCreateTime); | ||||
List<InspectionFileCheckRecord> list = inspectionFileCheckRecordsService.list(queryWrapper); | List<InspectionFileCheckRecord> list = inspectionFileCheckRecordsService.list(queryWrapper); | ||||
if (!CollectionUtils.isEmpty(list)){ | if (!CollectionUtils.isEmpty(list)){ | ||||
for (InspectionFileCheckRecord inspectionFileCheckRecord : list) { | |||||
if (StringUtils.isNotEmpty(inspectionFileCheckRecord.getHandlerImage())){ | |||||
String handlerImages = ""; | |||||
handlerImages += CommonConfig.imageURL + inspectionFileCheckRecord.getHandlerImage() + ","; | |||||
handlerImages = handlerImages.substring(0, handlerImages.length() - 1); | |||||
if (StringUtils.isNotEmpty(handlerImages)) { | |||||
inspectionFileCheckRecord.setHandlerImage(handlerImages); | |||||
} | |||||
} | |||||
} | |||||
checkRecordMap = list.stream().collect(Collectors.groupingBy(InspectionFileCheckRecord::getInspectionFileId)); | checkRecordMap = list.stream().collect(Collectors.groupingBy(InspectionFileCheckRecord::getInspectionFileId)); | ||||
} | } | ||||
} | } |
queryWrapper.orderByDesc(InspectionFileCheckRecord::getCreateTime); | queryWrapper.orderByDesc(InspectionFileCheckRecord::getCreateTime); | ||||
List<InspectionFileCheckRecord> list = inspectionFileCheckRecordsService.list(queryWrapper); | List<InspectionFileCheckRecord> list = inspectionFileCheckRecordsService.list(queryWrapper); | ||||
if (CollectionUtils.isNotEmpty(list)){ | if (CollectionUtils.isNotEmpty(list)){ | ||||
for (InspectionFileCheckRecord inspectionFileCheckRecord : list) { | |||||
if (StringUtils.isNotEmpty(inspectionFileCheckRecord.getHandlerImage())){ | |||||
String handlerImages = ""; | |||||
handlerImages += CommonConfig.imageURL + inspectionFileCheckRecord.getHandlerImage() + ","; | |||||
handlerImages = handlerImages.substring(0, handlerImages.length() - 1); | |||||
if (StringUtils.isNotEmpty(handlerImages)) { | |||||
inspectionFileCheckRecord.setHandlerImage(handlerImages); | |||||
} | |||||
} | |||||
} | |||||
vo.setList(list); | vo.setList(list); | ||||
} | } | ||||
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)); | ||||
if (CollectionUtils.isNotEmpty(inspectionFileCheckRecords)){ | |||||
for (InspectionFileCheckRecord inspectionFileCheckRecord : inspectionFileCheckRecords) { | |||||
if (StringUtils.isNotEmpty(inspectionFileCheckRecord.getHandlerImage())){ | |||||
String handlerImages = ""; | |||||
handlerImages += CommonConfig.imageURL + inspectionFileCheckRecord.getHandlerImage() + ","; | |||||
handlerImages = handlerImages.substring(0, handlerImages.length() - 1); | |||||
if (StringUtils.isNotEmpty(handlerImages)) { | |||||
inspectionFileCheckRecord.setHandlerImage(handlerImages); | |||||
} | |||||
} | |||||
} | |||||
} | |||||
List<WorkOrderHandleVo> list = inspectionFilePageData.getRecords().stream().map(t -> { | List<WorkOrderHandleVo> list = inspectionFilePageData.getRecords().stream().map(t -> { | ||||
WorkOrderHandleVo vo = new WorkOrderHandleVo(); | WorkOrderHandleVo vo = new WorkOrderHandleVo(); | ||||
BeanUtils.copyProperties(t, vo); | BeanUtils.copyProperties(t, vo); |