|
|
|
|
@ -328,7 +328,9 @@ public class PointServiceImpl implements PointService {
|
|
|
|
|
Map<String, RiskModelTaskClue> oldMap = domain.getOldMap(task.getModelId(), true); |
|
|
|
|
Map<String, Integer> idCode = new HashMap<>(); |
|
|
|
|
log.info("模型116开始查询"); |
|
|
|
|
List<GBaseWFRXX> list = wFRXXRepository.getBaseMapper().selectAdministrativePunishment(); |
|
|
|
|
LocalDateTime start = LocalDateTime.of(2019, 12, 6, 0, 0, 0); |
|
|
|
|
LocalDateTime end = LocalDate.now().atTime(0, 0, 0); |
|
|
|
|
List<GBaseWFRXX> list = wFRXXRepository.getBaseMapper().selectAdministrativePunishment(start.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")), end.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"))); |
|
|
|
|
log.info("模型116查询结果数:{}", list.size()); |
|
|
|
|
Map<String, List<GBaseWFRXX>> gAXZCFJDSMap = list.stream().collect(Collectors.groupingBy(GBaseWFRXX::getZjhm)); |
|
|
|
|
Map<String, RiskPersonal> personalMap = domain.getPersons().stream().collect(Collectors.toMap(RiskPersonal::getIdCode, Function.identity(), (old, newVal) -> newVal)); |
|
|
|
|
@ -346,7 +348,9 @@ public class PointServiceImpl implements PointService {
|
|
|
|
|
// 去重
|
|
|
|
|
wfrwfxxList = wfrwfxxList.stream().filter(StreamUtil.distinctByKey(GBaseWFRXX::getAjbh)).toList(); |
|
|
|
|
|
|
|
|
|
String context = wfrwfxxList.stream().map(GBaseWFRXX::getAjbh).collect(Collectors.joining(",")); |
|
|
|
|
String context = wfrwfxxList.stream() |
|
|
|
|
.map(wfrwfxx -> "案件编号为:" + wfrwfxx.getAjbh() + ",案件名称为:" + wfrwfxx.getAjmc()) |
|
|
|
|
.collect(Collectors.joining(";")); |
|
|
|
|
score = Math.min(wfrwfxxList.size(), 5); |
|
|
|
|
ClueData data = ClueData.builder() |
|
|
|
|
.name(personal.getName()) |
|
|
|
|
@ -356,7 +360,7 @@ public class PointServiceImpl implements PointService {
|
|
|
|
|
.score(score) |
|
|
|
|
.eventTime(LocalDateTime.now()) |
|
|
|
|
.personId(personal.getId()) |
|
|
|
|
.sourceData("发现该人员涉及" + wfrwfxxList.size() + "个行政处罚,案件编号为:“" + context + "”") |
|
|
|
|
.sourceData("发现该人员涉及" + wfrwfxxList.size() + "个行政处罚," + context) |
|
|
|
|
.build(); |
|
|
|
|
toInsert.add(DataUtil.createClueData(task, data)); |
|
|
|
|
} |
|
|
|
|
@ -373,7 +377,9 @@ public class PointServiceImpl implements PointService {
|
|
|
|
|
Map<String, RiskModelTaskClue> oldMap = domain.getOldMap(task.getModelId(), true); |
|
|
|
|
Map<String, Integer> idCode = new HashMap<>(); |
|
|
|
|
log.info("模型115开始查询"); |
|
|
|
|
List<GBaseWFRXX> list = wFRXXRepository.getBaseMapper().selectCriminalPunishment(); |
|
|
|
|
LocalDateTime start = LocalDateTime.of(2019, 12, 6, 0, 0, 0); |
|
|
|
|
LocalDateTime end = LocalDate.now().atTime(0, 0, 0); |
|
|
|
|
List<GBaseWFRXX> list = wFRXXRepository.getBaseMapper().selectCriminalPunishment(start.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")), end.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"))); |
|
|
|
|
log.info("模型115查询结果数:{}", list.size()); |
|
|
|
|
Map<String, List<GBaseWFRXX>> wfrxxMap = list.stream().collect(Collectors.groupingBy(GBaseWFRXX::getZjhm)); |
|
|
|
|
Map<String, RiskPersonal> personalMap = domain.getPersons().stream().collect(Collectors.toMap(RiskPersonal::getIdCode, Function.identity(), (old, newVal) -> newVal)); |
|
|
|
|
@ -391,7 +397,9 @@ public class PointServiceImpl implements PointService {
|
|
|
|
|
// 去重
|
|
|
|
|
wfrxxList = wfrxxList.stream().filter(StreamUtil.distinctByKey(GBaseWFRXX::getAjbh)).toList(); |
|
|
|
|
|
|
|
|
|
String context = wfrxxList.stream().map(GBaseWFRXX::getAjbh).collect(Collectors.joining(",")); |
|
|
|
|
String context = wfrxxList.stream() |
|
|
|
|
.map(wfrwfxx -> "案件编号为:" + wfrwfxx.getAjbh() + ",案件名称为:" + wfrwfxx.getAjmc()) |
|
|
|
|
.collect(Collectors.joining(";")); |
|
|
|
|
score = Math.min(wfrxxList.size(), 5); |
|
|
|
|
ClueData data = ClueData.builder() |
|
|
|
|
.name(personal.getName()) |
|
|
|
|
@ -401,7 +409,7 @@ public class PointServiceImpl implements PointService {
|
|
|
|
|
.score(score) |
|
|
|
|
.eventTime(LocalDateTime.now()) |
|
|
|
|
.personId(personal.getId()) |
|
|
|
|
.sourceData("发现该人员涉及" + wfrxxList.size() + "个刑事案件,案件编号为:“" + context + "”") |
|
|
|
|
.sourceData("发现该人员涉及" + wfrxxList.size() + "个刑事案件," + context) |
|
|
|
|
.build(); |
|
|
|
|
toInsert.add(DataUtil.createClueData(task, data)); |
|
|
|
|
} |
|
|
|
|
|