|
|
|
@ -1504,16 +1504,23 @@ public class DatavServiceImpl implements DatavService { |
|
|
|
List<OrganizeProblemRankVo> policeVideoSuperviseProblemRankList = new ArrayList<>(); |
|
|
|
List<OrganizeProblemRankVo> policeVideoSuperviseProblemRankList = new ArrayList<>(); |
|
|
|
List<OrganizeProblemRankVo> teamVideoSuperviseProblemRankList = new ArrayList<>(); |
|
|
|
List<OrganizeProblemRankVo> teamVideoSuperviseProblemRankList = new ArrayList<>(); |
|
|
|
SupDepartQueryParam supDepartGroupParam = new SupDepartQueryParam(); |
|
|
|
SupDepartQueryParam supDepartGroupParam = new SupDepartQueryParam(); |
|
|
|
supDepartGroupParam.setLevel("2"); |
|
|
|
supDepartGroupParam.setLevel("3"); |
|
|
|
|
|
|
|
supDepartGroupParam.setPid(request.getDepartId()); |
|
|
|
List<SupDepart> supDepartList = supDepartResourceService.query(supDepartGroupParam); |
|
|
|
List<SupDepart> supDepartList = supDepartResourceService.query(supDepartGroupParam); |
|
|
|
Map<Boolean, List<SupDepart>> partitionedMap = supDepartList.stream() |
|
|
|
// 派出所
|
|
|
|
.collect(Collectors.partitioningBy(one -> |
|
|
|
List<SupDepart> pcsList = supDepartList.stream() |
|
|
|
request.getDepartId().equals(one.getPid()) && |
|
|
|
.filter(one -> StrUtil.isNotBlank(one.getStatisticsGroupId())) |
|
|
|
DepartGroupEnum.PCS.getId().equals(Integer.valueOf(one.getStatisticsGroupId())) |
|
|
|
.filter(one -> DepartGroupEnum.PCS.getId().equals(Integer.valueOf(one.getStatisticsGroupId()))) |
|
|
|
)); |
|
|
|
.toList(); |
|
|
|
|
|
|
|
|
|
|
|
List<SupDepart> pcsList = partitionedMap.get(true); // 派出所
|
|
|
|
// 大队
|
|
|
|
List<SupDepart> dwList = partitionedMap.get(false); // 大队
|
|
|
|
List<SupDepart> dwList = supDepartList.stream() |
|
|
|
|
|
|
|
.filter(one -> { |
|
|
|
|
|
|
|
String groupId = one.getStatisticsGroupId(); |
|
|
|
|
|
|
|
return !StrUtil.isNotBlank(groupId) |
|
|
|
|
|
|
|
|| !DepartGroupEnum.PCS.getId().equals(Integer.valueOf(groupId)); |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
.toList(); |
|
|
|
|
|
|
|
|
|
|
|
for (SupDepart pcs : pcsList) { |
|
|
|
for (SupDepart pcs : pcsList) { |
|
|
|
List<Negative> fxsjList = negativeMapper.getVideoSuperviseProblemRank(pcs.getId(), request.getBeginTime(), request.getEndTime()); |
|
|
|
List<Negative> fxsjList = negativeMapper.getVideoSuperviseProblemRank(pcs.getId(), request.getBeginTime(), request.getEndTime()); |
|
|
|
|