|
|
@ -516,17 +516,14 @@ public class ResultAnalysisController extends BaseController { |
|
|
|
|
|
|
|
|
@GetMapping({"/list_v2"}) |
|
|
@GetMapping({"/list_v2"}) |
|
|
public TableDataInfo listV2(PatrolTaskStatus patrolTaskStatus) { |
|
|
public TableDataInfo listV2(PatrolTaskStatus patrolTaskStatus) { |
|
|
logger.info(Color.GREEN + "[RES ANALYZE] listV2 param: {}" + Color.END, patrolTaskStatus); |
|
|
|
|
|
|
|
|
logger.info("[RES ANALYZE] listV2 param: {}", patrolTaskStatus); |
|
|
ResultAnalysis resultAnalysis = new ResultAnalysis(); |
|
|
ResultAnalysis resultAnalysis = new ResultAnalysis(); |
|
|
resultAnalysis.setTaskPatrolId(patrolTaskStatus.getTaskPatrolledId()); |
|
|
resultAnalysis.setTaskPatrolId(patrolTaskStatus.getTaskPatrolledId()); |
|
|
resultAnalysis.setResult("0"); |
|
|
|
|
|
|
|
|
resultAnalysis.setResult("0");//初筛结果 |
|
|
|
|
|
startPage(); |
|
|
List<PatrolData> filterList = patrolResultService.selectPatrolDataResultByTaskCodeV2(resultAnalysis); |
|
|
List<PatrolData> filterList = patrolResultService.selectPatrolDataResultByTaskCodeV2(resultAnalysis); |
|
|
List<AlgInfo> algInfos = patrolResultService.selectAlgInfo(new PatrolResult()); |
|
|
List<AlgInfo> algInfos = patrolResultService.selectAlgInfo(new PatrolResult()); |
|
|
startPage(); |
|
|
|
|
|
resultAnalysis.setResult("1"); |
|
|
|
|
|
resultAnalysis.setResultType("1"); |
|
|
|
|
|
List<PatrolData> dataList = patrolResultService.selectPatrolDataResultByTaskCodeV2(resultAnalysis); |
|
|
|
|
|
dataList.forEach((item) -> { |
|
|
|
|
|
|
|
|
filterList.forEach((item) -> { |
|
|
item.setAlgName((algInfos.stream().anyMatch((alg) -> { |
|
|
item.setAlgName((algInfos.stream().anyMatch((alg) -> { |
|
|
return alg.getAlgSubtypeCode().equals(item.getAlgType()); |
|
|
return alg.getAlgSubtypeCode().equals(item.getAlgType()); |
|
|
}) ? algInfos.stream().filter((alg) -> { |
|
|
}) ? algInfos.stream().filter((alg) -> { |
|
|
@ -545,10 +542,10 @@ public class ResultAnalysisController extends BaseController { |
|
|
item.setImg(item.getImgAnalyse()); |
|
|
item.setImg(item.getImgAnalyse()); |
|
|
item.setImgAnalyse(""); |
|
|
item.setImgAnalyse(""); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
}); |
|
|
}); |
|
|
Collections.sort(dataList); |
|
|
|
|
|
return getDataTable(dataList); |
|
|
|
|
|
|
|
|
// logger.info("[RES ANALYZE] filterList: {}", JSONObject.toJSONString(filterList, true)); |
|
|
|
|
|
Collections.sort(filterList); |
|
|
|
|
|
return getDataTable(filterList); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@GetMapping({"summary/points"}) |
|
|
@GetMapping({"summary/points"}) |
|
|
|