Browse Source

新增26号模型:执法办案场所进出时间过短

main
sjh 1 year ago
parent
commit
f38b6d4384
  1. 16
      src/main/java/com/biutag/supervision/service/ModelClueService.java

16
src/main/java/com/biutag/supervision/service/ModelClueService.java

@ -459,6 +459,16 @@ public class ModelClueService extends ServiceImpl<ModelClueMapper, ModelClue> {
+ ",身份证号码:" + data.get("sfzhm") + ",联系电话:" + data.get("lxdh")
+ "," + data.get("ryztmc") + "),预警内容为:" + data.get("result")
+ ",请予以重点关注。");
} else if (modelId == 26) { // 26号模型:执法办案场所进出时间过短
if (data.get("lksj") != null && !data.get("lksj").equals("")) {
modelClue.setThingDesc("发现执法场所人员“" + data.get("xm")
+ "”(身份证号" + data.get("zjhm")
+ "),于" + getDateMinuteString(data.get("jrsj"))
+ "进入" + modelClue.getInvolveDepartName()
+ "执法办案区,于" + getDateMinuteString(data.get("lksj"))
+ "离开,停留时长" + calculateMinutesBetween(data.get("djsj"), data.get("lksj"))
+ ",存在间隔时间过短的异常。");
}
}
}
@ -792,8 +802,8 @@ public class ModelClueService extends ServiceImpl<ModelClueMapper, ModelClue> {
}
for (Map<String, Object> map : sqlList) {
ModelClue newModelClue = new ModelClue();
newModelClue.setUniqueKey((String) map.get("xzdpcsdm") + map.get("xzdzzr"));
newModelClue.setNegativeIdEx((String) map.get("xzdpcsdm") + map.get("xzdzzr"));
newModelClue.setUniqueKey((String) map.get("xzdpcsdm") + map.get("xzdzrr"));
newModelClue.setNegativeIdEx((String) map.get("xzdpcsdm") + map.get("xzdzrr"));
newModelClue.setInvolveDepartName((String) map.get("xzdpcs"));
SupExternalDepart supExternalDepart = supExternalDepartMapper.selectOne(new LambdaQueryWrapper<SupExternalDepart>().eq(SupExternalDepart::getInternalId, map.get("xzdpcsdm")).last("LIMIT 1"));
if (supExternalDepart != null) {
@ -804,7 +814,7 @@ public class ModelClueService extends ServiceImpl<ModelClueMapper, ModelClue> {
newModelClue.setData(JSONObject.toJSONString(map));
newModelClue.setDistributionState("0");
newModelClue.setThingDesc(
"灵敏感知系统发现" + newModelClue.getInvolveDepartName() + "民警" + map.get("xzdzzr")
"灵敏感知系统发现" + newModelClue.getInvolveDepartName() + "民警" + map.get("xzdzrr")
+ "的管控人数为" + map.get("num") + "人。");
modelClues.add(newModelClue);
}

Loading…
Cancel
Save