|
|
|
@ -306,17 +306,13 @@ public class PointServiceImpl implements PointService { |
|
|
|
.personId(person.getId()) |
|
|
|
.personId(person.getId()) |
|
|
|
.idCode(person.getIdCode()) |
|
|
|
.idCode(person.getIdCode()) |
|
|
|
.sourceData("通过核查案件信息,发现该人员有近3个月,每出现一次扬言滋事、自杀等行为,接警单编号为:" + extreme.getJjdbh() + Optional.ofNullable(extreme.getBjnr()).map(it -> ",具体情况为:" + it).orElse("") + Optional.ofNullable(extreme.getCjqk()).map(it -> ",处警情况为:" + it).orElse("")) |
|
|
|
.sourceData("通过核查案件信息,发现该人员有近3个月,每出现一次扬言滋事、自杀等行为,接警单编号为:" + extreme.getJjdbh() + Optional.ofNullable(extreme.getBjnr()).map(it -> ",具体情况为:" + it).orElse("") + Optional.ofNullable(extreme.getCjqk()).map(it -> ",处警情况为:" + it).orElse("")) |
|
|
|
.tag("扬言滋事、自杀等行为") |
|
|
|
.tags(List.of("扬言滋事、自杀等行为")) |
|
|
|
|
|
|
|
.score(10) |
|
|
|
.build(); |
|
|
|
.build(); |
|
|
|
if (extreme.getGxdwdm() != null) { |
|
|
|
|
|
|
|
data.setDepartId(extreme.getGxdwdm()); |
|
|
|
|
|
|
|
data.setDepartName(extreme.getGxdwmc()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
data.setEventTime(extreme.getBjsj().toInstant().atZone(ZoneId.systemDefault()).toLocalDateTime()); |
|
|
|
data.setEventTime(extreme.getBjsj().toInstant().atZone(ZoneId.systemDefault()).toLocalDateTime()); |
|
|
|
} catch (Exception ignored) { |
|
|
|
} catch (Exception ignored) {} |
|
|
|
} |
|
|
|
toInsert.add(DataUtil.createClueData(task, data)); |
|
|
|
toInsert.add(createClue2(task.getModelId(), 10, task.getId(), data)); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (!toInsert.isEmpty()) { |
|
|
|
if (!toInsert.isEmpty()) { |
|
|
|
@ -2089,23 +2085,6 @@ public class PointServiceImpl implements PointService { |
|
|
|
return clue; |
|
|
|
return clue; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
RiskModelTaskClue createClue2(Integer modelId, Integer score, Integer taskId, ClueData data) { |
|
|
|
|
|
|
|
RiskModelTaskClue clue = new RiskModelTaskClue(); |
|
|
|
|
|
|
|
clue.setModelId(modelId); |
|
|
|
|
|
|
|
clue.setScore(score); |
|
|
|
|
|
|
|
clue.setName(data.getName()); |
|
|
|
|
|
|
|
clue.setIdCode(data.getIdCode()); |
|
|
|
|
|
|
|
clue.setTaskId(taskId); |
|
|
|
|
|
|
|
clue.setData(data.getSourceData()); |
|
|
|
|
|
|
|
clue.setEventTime(data.getEventTime()); |
|
|
|
|
|
|
|
clue.setCreateTime(LocalDateTime.now()); |
|
|
|
|
|
|
|
clue.setUpdateTime(LocalDateTime.now()); |
|
|
|
|
|
|
|
clue.setCaseIds(BhUtil.ajBh(data.getId())); |
|
|
|
|
|
|
|
data.setPersonId(data.getPersonId()); |
|
|
|
|
|
|
|
clue.setRiskReason(data.getTag()); |
|
|
|
|
|
|
|
return clue; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RiskTask createTask(Integer size, Integer modelId) { |
|
|
|
RiskTask createTask(Integer size, Integer modelId) { |
|
|
|
RiskTask task = new RiskTask(); |
|
|
|
RiskTask task = new RiskTask(); |
|
|
|
task.setModelId(modelId); |
|
|
|
task.setModelId(modelId); |
|
|
|
@ -2115,17 +2094,6 @@ public class PointServiceImpl implements PointService { |
|
|
|
return task; |
|
|
|
return task; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
SupDepart findLevelThreeDepart(SupDepart supDepart, Map<String, SupDepart> departMap) { |
|
|
|
|
|
|
|
if (supDepart == null) { |
|
|
|
|
|
|
|
return null; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (supDepart.getLevel() == 3) { |
|
|
|
|
|
|
|
return supDepart; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
supDepart = departMap.get(supDepart.getPid()); |
|
|
|
|
|
|
|
return findLevelThreeDepart(supDepart, departMap); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private final GBaseTbDZdrylbRepository zdrylbRepository; |
|
|
|
private final GBaseTbDZdrylbRepository zdrylbRepository; |
|
|
|
|
|
|
|
|
|
|
|
private final SupExternalDepartRepository externalDepartRepository; |
|
|
|
private final SupExternalDepartRepository externalDepartRepository; |
|
|
|
|