From f38b6d4384a15295d888e5f744895a35e440248a Mon Sep 17 00:00:00 2001 From: sjh Date: Tue, 12 Nov 2024 19:46:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E26=E5=8F=B7=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=EF=BC=9A=E6=89=A7=E6=B3=95=E5=8A=9E=E6=A1=88=E5=9C=BA=E6=89=80?= =?UTF-8?q?=E8=BF=9B=E5=87=BA=E6=97=B6=E9=97=B4=E8=BF=87=E7=9F=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../supervision/service/ModelClueService.java | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/biutag/supervision/service/ModelClueService.java b/src/main/java/com/biutag/supervision/service/ModelClueService.java index f7927c2..6f2c1f1 100644 --- a/src/main/java/com/biutag/supervision/service/ModelClueService.java +++ b/src/main/java/com/biutag/supervision/service/ModelClueService.java @@ -459,6 +459,16 @@ public class ModelClueService extends ServiceImpl { + ",身份证号码:" + 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 { } for (Map 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().eq(SupExternalDepart::getInternalId, map.get("xzdpcsdm")).last("LIMIT 1")); if (supExternalDepart != null) { @@ -804,7 +814,7 @@ public class ModelClueService extends ServiceImpl { 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); }