|
|
|
@ -52,10 +52,7 @@ public class ProblemSourceService { |
|
|
|
CompletableFutureUtil.runSyncObject(() -> build.negativeTotal(negativeMapper.selectCount(new LambdaQueryWrapper<Negative>() |
|
|
|
CompletableFutureUtil.runSyncObject(() -> build.negativeTotal(negativeMapper.selectCount(new LambdaQueryWrapper<Negative>() |
|
|
|
.in(Negative::getCheckStatus, List.of(1, 2)).ge(Negative::getCrtTime, LocalDateTime.of(2024, 1, 1, 0, 0, 0))).intValue())) |
|
|
|
.in(Negative::getCheckStatus, List.of(1, 2)).ge(Negative::getCrtTime, LocalDateTime.of(2024, 1, 1, 0, 0, 0))).intValue())) |
|
|
|
).join(); |
|
|
|
).join(); |
|
|
|
List<NegativeBlame> list = blameMapper.selectList(new LambdaQueryWrapper<NegativeBlame>() |
|
|
|
List<NegativeBlame> list = blameMapper.selectBlameList(); |
|
|
|
.select(NegativeBlame::getBlameIdCode) |
|
|
|
|
|
|
|
.ge(NegativeBlame::getCrtTime, LocalDateTime.of(2024, 1, 1, 0, 0, 0)) |
|
|
|
|
|
|
|
.isNotNull(NegativeBlame::getBlameIdCode)); |
|
|
|
|
|
|
|
Long count = list.stream().map(NegativeBlame::getBlameIdCode).distinct().count(); |
|
|
|
Long count = list.stream().map(NegativeBlame::getBlameIdCode).distinct().count(); |
|
|
|
build.peopleCount(count.intValue()); |
|
|
|
build.peopleCount(count.intValue()); |
|
|
|
ProblemSourceStatisticsVo vo = build.build(); |
|
|
|
ProblemSourceStatisticsVo vo = build.build(); |
|
|
|
@ -229,21 +226,17 @@ public class ProblemSourceService { |
|
|
|
Map<String, Integer> mapPeopleCount = new HashMap<>(); |
|
|
|
Map<String, Integer> mapPeopleCount = new HashMap<>(); |
|
|
|
Map<String, String> mapPerson = new HashMap<>(); |
|
|
|
Map<String, String> mapPerson = new HashMap<>(); |
|
|
|
|
|
|
|
|
|
|
|
List<NegativeBlame> tmp = blameMapper.selectList(new LambdaQueryWrapper<NegativeBlame>() |
|
|
|
List<NegativeBlame> tmp = blameMapper.selectBlameList(); |
|
|
|
.select(NegativeBlame::getBlameIdCode, NegativeBlame::getThreeLevelDapart) |
|
|
|
|
|
|
|
.ge(NegativeBlame::getCrtTime, LocalDateTime.of(2024, 1, 1, 0, 0, 0)) |
|
|
|
|
|
|
|
.isNotNull(NegativeBlame::getBlameIdCode) |
|
|
|
|
|
|
|
.isNotNull(NegativeBlame::getThreeLevelDapart)); |
|
|
|
|
|
|
|
for (NegativeBlame negativeBlame : tmp) { |
|
|
|
for (NegativeBlame negativeBlame : tmp) { |
|
|
|
if (departMap.get(negativeBlame.getThreeLevelDapart()) == null) { |
|
|
|
if (departMap.get(negativeBlame.getBlameDepartId()) == null) { |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
} |
|
|
|
} |
|
|
|
if (mapPerson.get(negativeBlame.getBlameIdCode()) != null) { |
|
|
|
if (mapPerson.get(negativeBlame.getBlameIdCode()) != null) { |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
} |
|
|
|
} |
|
|
|
Integer count = Optional.ofNullable(mapPeopleCount.get(negativeBlame.getThreeLevelDapart())).orElse(0); |
|
|
|
Integer count = Optional.ofNullable(mapPeopleCount.get(negativeBlame.getBlameDepartId())).orElse(0); |
|
|
|
count++; |
|
|
|
count++; |
|
|
|
mapPeopleCount.put(negativeBlame.getThreeLevelDapart(), count); |
|
|
|
mapPeopleCount.put(negativeBlame.getBlameDepartId(), count); |
|
|
|
} |
|
|
|
} |
|
|
|
mapPerson = null; |
|
|
|
mapPerson = null; |
|
|
|
// 统计
|
|
|
|
// 统计
|
|
|
|
@ -290,21 +283,17 @@ public class ProblemSourceService { |
|
|
|
Map<String, Integer> mapPeopleCount = new HashMap<>(); |
|
|
|
Map<String, Integer> mapPeopleCount = new HashMap<>(); |
|
|
|
Map<String, String> mapPerson = new HashMap<>(); |
|
|
|
Map<String, String> mapPerson = new HashMap<>(); |
|
|
|
|
|
|
|
|
|
|
|
List<NegativeBlame> tmp = blameMapper.selectList(new LambdaQueryWrapper<NegativeBlame>() |
|
|
|
List<NegativeBlame> tmp = blameMapper.selectBlameList(); |
|
|
|
.select(NegativeBlame::getBlameIdCode, NegativeBlame::getThreeLevelDapart) |
|
|
|
|
|
|
|
.ge(NegativeBlame::getCrtTime, LocalDateTime.of(2024, 1, 1, 0, 0, 0)) |
|
|
|
|
|
|
|
.isNotNull(NegativeBlame::getBlameIdCode) |
|
|
|
|
|
|
|
.isNotNull(NegativeBlame::getThreeLevelDapart)); |
|
|
|
|
|
|
|
for (NegativeBlame negativeBlame : tmp) { |
|
|
|
for (NegativeBlame negativeBlame : tmp) { |
|
|
|
if (departMap.get(negativeBlame.getThreeLevelDapart()) == null) { |
|
|
|
if (departMap.get(negativeBlame.getBlameDepartId()) == null) { |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
} |
|
|
|
} |
|
|
|
if (mapPerson.get(negativeBlame.getBlameIdCode()) != null) { |
|
|
|
if (mapPerson.get(negativeBlame.getBlameIdCode()) != null) { |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
} |
|
|
|
} |
|
|
|
Integer count = Optional.ofNullable(mapPeopleCount.get(negativeBlame.getThreeLevelDapart())).orElse(0); |
|
|
|
Integer count = Optional.ofNullable(mapPeopleCount.get(negativeBlame.getBlameDepartId())).orElse(0); |
|
|
|
count++; |
|
|
|
count++; |
|
|
|
mapPeopleCount.put(negativeBlame.getThreeLevelDapart(), count); |
|
|
|
mapPeopleCount.put(negativeBlame.getBlameDepartId(), count); |
|
|
|
} |
|
|
|
} |
|
|
|
mapPerson = null; |
|
|
|
mapPerson = null; |
|
|
|
// 统计
|
|
|
|
// 统计
|
|
|
|
@ -360,13 +349,9 @@ public class ProblemSourceService { |
|
|
|
Map<String, Integer> mapPeopleCount = new HashMap<>(); |
|
|
|
Map<String, Integer> mapPeopleCount = new HashMap<>(); |
|
|
|
Map<String, String> mapPerson = new HashMap<>(); |
|
|
|
Map<String, String> mapPerson = new HashMap<>(); |
|
|
|
|
|
|
|
|
|
|
|
List<NegativeBlame> tmp = blameMapper.selectList(new LambdaQueryWrapper<NegativeBlame>() |
|
|
|
List<NegativeBlame> tmp = blameMapper.selectBlameList(); |
|
|
|
.select(NegativeBlame::getBlameIdCode, NegativeBlame::getThreeLevelDapart) |
|
|
|
|
|
|
|
.ge(NegativeBlame::getCrtTime, LocalDateTime.of(2024, 1, 1, 0, 0, 0)) |
|
|
|
|
|
|
|
.isNotNull(NegativeBlame::getBlameIdCode) |
|
|
|
|
|
|
|
.isNotNull(NegativeBlame::getThreeLevelDapart)); |
|
|
|
|
|
|
|
for (NegativeBlame negativeBlame : tmp) { |
|
|
|
for (NegativeBlame negativeBlame : tmp) { |
|
|
|
StatisticsDepart depart = departMap.get(negativeBlame.getThreeLevelDapart()); |
|
|
|
StatisticsDepart depart = departMap.get(negativeBlame.getBlameDepartId()); |
|
|
|
if (depart == null) { |
|
|
|
if (depart == null) { |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
} |
|
|
|
} |
|
|
|
|