Browse Source

工单问题 PC端+工单小程序接口调整

tags/v1.3.4
陈璐 4 months ago
parent
commit
fb824a0a6e
3 changed files with 32 additions and 1 deletions
  1. +10
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/inspectionfile/query/QueryInspectionFilePageListByWorkOrderIdService.java
  2. +10
    -0
      tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/service/impl/InspectionFileServiceImpl.java
  3. +12
    -1
      tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/service/impl/WorkOrderServiceImpl.java

+ 10
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/inspectionfile/query/QueryInspectionFilePageListByWorkOrderIdService.java View File

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));
} }
} }

+ 10
- 0
tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/service/impl/InspectionFileServiceImpl.java View File

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);
} }



+ 12
- 1
tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/service/impl/WorkOrderServiceImpl.java View File

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);

Loading…
Cancel
Save