Browse Source

修改103号模型

main
sjh 1 year ago
parent
commit
419f64433f
  1. 15
      src/main/java/com/biutag/supervision/service/ModelClueService.java

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

@ -239,7 +239,7 @@ public class ModelClueService extends ServiceImpl<ModelClueMapper, ModelClue> {
} else if (modelId == 25) { // 25号模型:重点人员管控人数过多
getModelCluesForModel25(sql, modelClues);
return modelClues;
} else if (modelId == 103) { // 103号模型:接处警速度超过30分钟的异常数据
} else if (modelId == 103) { // 103号模型:接处警不及时的异常数据
getModelCluesForModel103(sql, modelClues);
return modelClues;
} else if (modelId == 104) { // 模型104:大量变更接警性质的预警模型
@ -1030,13 +1030,13 @@ public class ModelClueService extends ServiceImpl<ModelClueMapper, ModelClue> {
}
Map<String, Object> newMap = allData.get(0);
ModelClue newModelClue = new ModelClue();
newModelClue.setUniqueKey((String) map.get("jjdbh"));
newModelClue.setNegativeIdEx((String) map.get("jjdbh"));
newModelClue.setInvolveDepartName((String) newMap.get("gxdwmc"));
newModelClue.setUniqueKey((String) map.get("uniqueKey"));
newModelClue.setNegativeIdEx((String) map.get("negative_id_ex"));
newModelClue.setInvolveDepartName((String) map.get("involve_depart_name"));
newModelClue.setInvolveDepartId((String) map.get("involve_depart_id"));
SupExternalDepart supExternalDepart = supExternalDepartMapper.selectOne(new LambdaQueryWrapper<SupExternalDepart>().eq(SupExternalDepart::getExternalId, newMap.get("gxdwdm")).last("LIMIT 1"));
if (supExternalDepart != null) {
if (supExternalDepart.getInternalId() != null) {
newModelClue.setInvolveDepartId(supExternalDepart.getInternalId());
StatisticsDepart statisticsDepart = statisticsDepartMapper.selectOne(new QueryWrapper<StatisticsDepart>().eq("departId", supExternalDepart.getInternalId()).last("LIMIT 1"));
if (statisticsDepart != null && statisticsDepart.getGroupId() != null && statisticsDepart.getGroupId() == 11L) {
continue;
@ -1047,9 +1047,8 @@ public class ModelClueService extends ServiceImpl<ModelClueMapper, ModelClue> {
newModelClue.setDistributionState("0");
setPerson(103, newModelClue, newMap);
newModelClue.setThingDesc(
"发现警情(接警单编号:" + map.get("jjdbh") + "),警情签收时间为" + getDateMinuteString(map.get("start_time"))
+ ",现场到达拍照签到时间为" + getDateMinuteString(map.get("end_time"))
+ ",现场签到时间晚于签收时间30分钟以上,存在接处警不及时的问题。");
"发现警情(接警单编号:" + map.get("uniqueKey")
+ "),存在接处警不及时的问题。");
modelClues.add(newModelClue);
}
}

Loading…
Cancel
Save