Przeglądaj źródła

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

tags/v1.3.4
陈璐 4 miesięcy temu
rodzic
commit
fb824a0a6e
3 zmienionych plików z 32 dodań i 1 usunięć
  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 Wyświetl plik

@@ -159,6 +159,16 @@ public class QueryInspectionFilePageListByWorkOrderIdService {
queryWrapper.orderByDesc(InspectionFileCheckRecord::getCreateTime);
List<InspectionFileCheckRecord> list = inspectionFileCheckRecordsService.list(queryWrapper);
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));
}
}

+ 10
- 0
tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/service/impl/InspectionFileServiceImpl.java Wyświetl plik

@@ -301,6 +301,16 @@ public class InspectionFileServiceImpl implements IInspectionFileService {
queryWrapper.orderByDesc(InspectionFileCheckRecord::getCreateTime);
List<InspectionFileCheckRecord> list = inspectionFileCheckRecordsService.list(queryWrapper);
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);
}


+ 12
- 1
tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/service/impl/WorkOrderServiceImpl.java Wyświetl plik

@@ -439,7 +439,18 @@ public class WorkOrderServiceImpl extends BaseServiceImpl<WorkOrderMapper, WorkO
List<InspectionFileCheckRecord> inspectionFileCheckRecords =
inspectionFileCheckRecordMapper.selectList(new LambdaQueryWrapper<InspectionFileCheckRecord>().in(InspectionFileCheckRecord::getInspectionFileId, inspectionFiledIds)
.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 -> {
WorkOrderHandleVo vo = new WorkOrderHandleVo();
BeanUtils.copyProperties(t, vo);

Ładowanie…
Anuluj
Zapisz