From 419f64433fa29842af4b2060872e273dca7bacc9 Mon Sep 17 00:00:00 2001 From: sjh Date: Sun, 17 Nov 2024 11:27:33 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9103=E5=8F=B7=E6=A8=A1?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../supervision/service/ModelClueService.java | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/biutag/supervision/service/ModelClueService.java b/src/main/java/com/biutag/supervision/service/ModelClueService.java index de8d07d..14ff65b 100644 --- a/src/main/java/com/biutag/supervision/service/ModelClueService.java +++ b/src/main/java/com/biutag/supervision/service/ModelClueService.java @@ -239,7 +239,7 @@ public class ModelClueService extends ServiceImpl { } 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 { } Map 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().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().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 { 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); } } From 10b1350f50e1062f2f0e454074698c3b16eacf59 Mon Sep 17 00:00:00 2001 From: sjh Date: Sun, 17 Nov 2024 12:44:14 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9103=E5=8F=B7=E6=A8=A1?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/biutag/supervision/service/ModelClueService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/biutag/supervision/service/ModelClueService.java b/src/main/java/com/biutag/supervision/service/ModelClueService.java index 14ff65b..5d281cf 100644 --- a/src/main/java/com/biutag/supervision/service/ModelClueService.java +++ b/src/main/java/com/biutag/supervision/service/ModelClueService.java @@ -1021,10 +1021,10 @@ public class ModelClueService extends ServiceImpl { return; } for (Map map : sqlList) { - String newSql = "SELECT a.*, b.fkrbh, b.fkrxm FROM dwd_asj_zhtx_jjd a left join dwd_asj_zhtx_fkd b on a.jjdbh = b.jjdbh " + "WHERE a.jjdbh = '" + map.get("jjdbh") + "';"; + String newSql = "SELECT a.*, b.fkrbh, b.fkrxm FROM dwd_asj_zhtx_jjd a left join dwd_asj_zhtx_fkd b on a.jjdbh = b.jjdbh " + "WHERE a.jjdbh = '" + map.get("uniqueKey") + "';"; System.out.println("模型103开始再次查询数据库"); List> allData = modelClueDataMapper.selectByUniqueKeys(newSql); - System.out.println("模型103完成再次查询数据库"); + System.out.println("模型103完成再次查询数据库,结果数量:" + allData.size()); if (allData.isEmpty() || allData.get(0) == null || allData.get(0).get("jjdbh") == null) { continue; } From 56511e2eec0d465eea03a285c25ef8556e7a04cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E7=88=B1=E5=AD=A6=E4=B9=A0=E7=9A=84=E7=9F=B3?= =?UTF-8?q?=E5=90=8C=E5=AD=A6?= <2936013465@qq.com> Date: Sun, 17 Nov 2024 13:07:59 +0800 Subject: [PATCH 3/3] =?UTF-8?q?12389=E6=A1=88=E4=BB=B6=E6=A0=B8=E6=9F=A5?= =?UTF-8?q?=E4=B8=8B=E5=8F=91BUG=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/datav/PoliceComment.java | 23 +++++++++++++++++++ .../service/DataCaseVerifService.java | 7 +++--- .../service/DataPetition12337Service.java | 2 ++ .../supervision/service/NegativeService.java | 2 +- 4 files changed, 29 insertions(+), 5 deletions(-) create mode 100644 src/main/java/com/biutag/supervision/controller/datav/PoliceComment.java diff --git a/src/main/java/com/biutag/supervision/controller/datav/PoliceComment.java b/src/main/java/com/biutag/supervision/controller/datav/PoliceComment.java new file mode 100644 index 0000000..9773104 --- /dev/null +++ b/src/main/java/com/biutag/supervision/controller/datav/PoliceComment.java @@ -0,0 +1,23 @@ +package com.biutag.supervision.controller.datav; + +import io.swagger.v3.oas.annotations.tags.Tag; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +/** + * @Auther: sh + * @Date: 2024/11/17 11:04 + * @Description: + */ + + +@Slf4j +@RestController +@RequiredArgsConstructor +@RequestMapping("DSJ/GetDCQK") +@Tag(name = "现场督察相关") +public class PoliceComment { +} + diff --git a/src/main/java/com/biutag/supervision/service/DataCaseVerifService.java b/src/main/java/com/biutag/supervision/service/DataCaseVerifService.java index f76dc3a..2a3c709 100644 --- a/src/main/java/com/biutag/supervision/service/DataCaseVerifService.java +++ b/src/main/java/com/biutag/supervision/service/DataCaseVerifService.java @@ -5,10 +5,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.biutag.supervision.constants.enums.DataUpdateMethodEnum; -import com.biutag.supervision.constants.enums.DistributionStateEnum; -import com.biutag.supervision.constants.enums.HostLevelEnums; -import com.biutag.supervision.constants.enums.ProblemSourcesEnum; +import com.biutag.supervision.constants.enums.*; import com.biutag.supervision.mapper.DataCaseVerifMapper; import com.biutag.supervision.pojo.dto.DataCaseVerifImportDto; import com.biutag.supervision.pojo.dto.DataCaseVerifDistribute; @@ -72,6 +69,8 @@ public class DataCaseVerifService extends ServiceImpl { .setCreateTime(now); workService.save(work); // 添加一条 negative_work 数据 工作状态 - // 下发 + FirstDistributeData firstDistributeData = new FirstDistributeData(); BeanUtil.copyProperties(negativeDto, firstDistributeData); ActionDto actionDto = new ActionDto()