|
|
|
@ -421,15 +421,16 @@ public class DatavServiceImpl implements DatavService { |
|
|
|
negativeQueryParam.setProblemSourcesCode(List.of(SPDC.getValue())); |
|
|
|
negativeQueryParam.setProblemSourcesCode(List.of(SPDC.getValue())); |
|
|
|
negativeQueryParam.setCrtTime(List.of(request.getBeginTime(), request.getEndTime())); |
|
|
|
negativeQueryParam.setCrtTime(List.of(request.getBeginTime(), request.getEndTime())); |
|
|
|
List<Negative> negatives = negativeResourceService.query(negativeQueryParam); |
|
|
|
List<Negative> negatives = negativeResourceService.query(negativeQueryParam); |
|
|
|
List<Negative> ssList = negatives.stream().filter(one -> CheckStatusEnum.TRUE_SET.contains(one.getCheckStatusCode()) || CheckStatusEnum.PART_TRUE_SET.contains(one.getCheckStatusCode())).toList(); |
|
|
|
// List<Negative> ssList = negatives.stream().filter(one -> CheckStatusEnum.TRUE_SET.contains(one.getCheckStatusCode()) || CheckStatusEnum.PART_TRUE_SET.contains(one.getCheckStatusCode())).toList();
|
|
|
|
List<Negative> completedList = negatives.stream().filter(item -> ProcessingStatusEnum.completed.name().equals(item.getProcessingStatus())).toList(); |
|
|
|
List<Negative> completedList = negatives.stream().filter(item -> ProcessingStatusEnum.completed.name().equals(item.getProcessingStatus())).toList(); |
|
|
|
|
|
|
|
List<Negative> njssList = completedList.stream().filter(one -> CheckStatusEnum.TRUE_SET.contains(one.getCheckStatusCode()) || CheckStatusEnum.PART_TRUE_SET.contains(one.getCheckStatusCode())).toList(); |
|
|
|
// 使用统一的问责次数统计口径,便于核对大屏与导出逻辑差异
|
|
|
|
// 使用统一的问责次数统计口径,便于核对大屏与导出逻辑差异
|
|
|
|
AccountabilityCountUtil.AccountabilityCountResult accountabilityCountResult = accountabilityCountUtil.buildAccountabilityCountResult(negatives); |
|
|
|
AccountabilityCountUtil.AccountabilityCountResult accountabilityCountResult = accountabilityCountUtil.buildAccountabilityCountResult(negatives); |
|
|
|
|
|
|
|
|
|
|
|
VideoSuperviseCountVo overview = new VideoSuperviseCountVo(); |
|
|
|
VideoSuperviseCountVo overview = new VideoSuperviseCountVo(); |
|
|
|
overview.setTotal(negatives.size()); |
|
|
|
overview.setTotal(negatives.size()); |
|
|
|
overview.setCompletionProblem((long) completedList.size()); |
|
|
|
overview.setCompletionProblem((long) completedList.size()); |
|
|
|
overview.setDiscoverProblem((long) ssList.size()); |
|
|
|
overview.setDiscoverProblem((long) njssList.size()); |
|
|
|
overview.setRelativeOrg(accountabilityCountResult.newUnitCount()); |
|
|
|
overview.setRelativeOrg(accountabilityCountResult.newUnitCount()); |
|
|
|
overview.setRelativePer(accountabilityCountResult.newPersonTotalCount()); |
|
|
|
overview.setRelativePer(accountabilityCountResult.newPersonTotalCount()); |
|
|
|
JSONObject data = new JSONObject().fluentPut("overview", overview); |
|
|
|
JSONObject data = new JSONObject().fluentPut("overview", overview); |
|
|
|
@ -449,14 +450,15 @@ public class DatavServiceImpl implements DatavService { |
|
|
|
for (SupDepart fxsj : fxsjDw) { |
|
|
|
for (SupDepart fxsj : fxsjDw) { |
|
|
|
List<Negative> negatives = negativeMapper.getNegativeListData(fxsj.getId(), request.getBeginTime(), request.getEndTime(), proCode); |
|
|
|
List<Negative> negatives = negativeMapper.getNegativeListData(fxsj.getId(), request.getBeginTime(), request.getEndTime(), proCode); |
|
|
|
|
|
|
|
|
|
|
|
List<Negative> ssList = negatives.stream().filter(one -> CheckStatusEnum.TRUE_SET.contains(one.getCheckStatusCode()) || CheckStatusEnum.PART_TRUE_SET.contains(one.getCheckStatusCode())).toList(); |
|
|
|
// List<Negative> ssList = negatives.stream().filter(one -> CheckStatusEnum.TRUE_SET.contains(one.getCheckStatusCode()) || CheckStatusEnum.PART_TRUE_SET.contains(one.getCheckStatusCode())).toList();
|
|
|
|
List<Negative> completedList = negatives.stream().filter(item -> ProcessingStatusEnum.completed.name().equals(item.getProcessingStatus())).toList(); |
|
|
|
List<Negative> completedList = negatives.stream().filter(item -> ProcessingStatusEnum.completed.name().equals(item.getProcessingStatus())).toList(); |
|
|
|
|
|
|
|
List<Negative> njssList = completedList.stream().filter(one -> CheckStatusEnum.TRUE_SET.contains(one.getCheckStatusCode()) || CheckStatusEnum.PART_TRUE_SET.contains(one.getCheckStatusCode())).toList(); |
|
|
|
// 使用统一的问责次数统计口径,便于核对大屏与导出逻辑差异
|
|
|
|
// 使用统一的问责次数统计口径,便于核对大屏与导出逻辑差异
|
|
|
|
AccountabilityCountUtil.AccountabilityCountResult accountabilityCountResult = accountabilityCountUtil.buildAccountabilityCountResult(negatives); |
|
|
|
AccountabilityCountUtil.AccountabilityCountResult accountabilityCountResult = accountabilityCountUtil.buildAccountabilityCountResult(negatives); |
|
|
|
VideoSuperviseMapIconVo videoSuperviseMapIconVo = new VideoSuperviseMapIconVo(); |
|
|
|
VideoSuperviseMapIconVo videoSuperviseMapIconVo = new VideoSuperviseMapIconVo(); |
|
|
|
videoSuperviseMapIconVo.setName(fxsj.getShortName()); |
|
|
|
videoSuperviseMapIconVo.setName(fxsj.getShortName()); |
|
|
|
videoSuperviseMapIconVo.setDepartId(fxsj.getId()); |
|
|
|
videoSuperviseMapIconVo.setDepartId(fxsj.getId()); |
|
|
|
videoSuperviseMapIconVo.setDiscoverProblem(ssList.size()); |
|
|
|
videoSuperviseMapIconVo.setDiscoverProblem(njssList.size()); |
|
|
|
videoSuperviseMapIconVo.setCompletionProblem(completedList.size()); |
|
|
|
videoSuperviseMapIconVo.setCompletionProblem(completedList.size()); |
|
|
|
videoSuperviseMapIconVo.setRelativeOrg(Math.toIntExact(accountabilityCountResult.newUnitCount())); |
|
|
|
videoSuperviseMapIconVo.setRelativeOrg(Math.toIntExact(accountabilityCountResult.newUnitCount())); |
|
|
|
videoSuperviseMapIconVo.setRelativePer(Math.toIntExact(accountabilityCountResult.newPersonTotalCount())); |
|
|
|
videoSuperviseMapIconVo.setRelativePer(Math.toIntExact(accountabilityCountResult.newPersonTotalCount())); |
|
|
|
|