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