Commit c4a4d53d authored by zhangsen's avatar zhangsen

任务23724 :消防巡检列表API优化2

parent af162784
......@@ -30,4 +30,7 @@ public interface IdxFeign {
@PostMapping(value = "/defect/check/list")
FeignClientResult queryDefectByCodes(@RequestBody List<String> codes, @RequestParam (value="checkId") String checkId);
@PostMapping(value = "/defect/check/listNew")
FeignClientResult queryDefectByIdList(@RequestBody List<String> checkIdList);
}
......@@ -190,11 +190,11 @@ public class CheckServiceImpl implements ICheckService {
return new PageImpl<>(content, param, total);
}
content = checkMapper.getPeopleCheckPage(param);
String checkIds = String.join(",", content.stream().map(CheckInfoVo::getId).collect(Collectors.toList()));
List<String> collect = content.stream().map(CheckInfoVo::getId).collect(Collectors.toList());
FeignClientResult responseModel = new FeignClientResult();
List<Map<String, String>> result = new ArrayList();
try {
responseModel = idxFeign.queryDefectByCodes(new ArrayList<>(), checkIds);
responseModel = idxFeign.queryDefectByIdList(collect);
result = (List) responseModel.getResult();
} catch (Exception e) {
e.printStackTrace();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment