Bladeren bron

修改工单列表接口

tags/v1.0.0^2
wanjing 1 jaar geleden
bovenliggende
commit
64089fe04a
1 gewijzigde bestanden met toevoegingen van 2 en 8 verwijderingen
  1. +2
    -8
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/inspectionfile/query/QueryInspectionFilePageListByWorkOrderIdService.java

+ 2
- 8
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/inspectionfile/query/QueryInspectionFilePageListByWorkOrderIdService.java Bestand weergeven

@@ -19,10 +19,7 @@ import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.*;
import java.util.function.Function;
import java.util.stream.Collectors;

@@ -62,9 +59,6 @@ public class QueryInspectionFilePageListByWorkOrderIdService {

public JsonResult getPageList(QueryInspectionFileWorkOrderPageListRequest request) {
log.info("进入根据工单ID查询工单问题列表表业务, workOrderId:{}", request.getWorkOrderId());

String userId = CurrentUserUtil.getUserId();

JsonResult result = this.check(request.getWorkOrderId());
if (0 != result.getCode()) {
log.info("根据工单ID查询工单问题列表业务:校验失败:{}", result.getMsg());
@@ -223,7 +217,7 @@ public class QueryInspectionFilePageListByWorkOrderIdService {
if (CollectionUtil.isEmpty(inspectionFileHandleList)) {
return null;
}
Map<String, InspectionFileHandle> inspectionFileHandleMap = inspectionFileHandleList.stream().collect(Collectors.toMap(InspectionFileHandle::getInspectionFileId, Function.identity()));
Map<String, InspectionFileHandle> inspectionFileHandleMap = inspectionFileHandleList.stream().collect(HashMap::new, (m, v) -> m.put(v.getInspectionFileId(), v), HashMap::putAll);
return inspectionFileHandleMap;
}


Laden…
Annuleren
Opslaan