diff --git a/pom.xml b/pom.xml
index 63c17e0..2631f6a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -166,6 +166,11 @@
DmJdbcDriver18
8.1.3.140
+
+ net.logstash.logback
+ logstash-logback-encoder
+ 4.9
+
@@ -183,7 +188,17 @@
true
+
+
+
+ org.apache.maven.plugins
+ maven-surefire-plugin
+ 3.2.5
+
+ true
+
+
org.springframework.boot
spring-boot-maven-plugin
@@ -230,4 +245,4 @@
-
\ No newline at end of file
+
diff --git a/src/main/java/com/biutag/supervision/constants/enums/ProblemSourcesEnum.java b/src/main/java/com/biutag/supervision/constants/enums/ProblemSourcesEnum.java
index 4c9a0bc..029e10c 100644
--- a/src/main/java/com/biutag/supervision/constants/enums/ProblemSourcesEnum.java
+++ b/src/main/java/com/biutag/supervision/constants/enums/ProblemSourcesEnum.java
@@ -23,6 +23,10 @@ public enum ProblemSourcesEnum {
XF_QT("其他", "25"),
SJJD("审计监督", "26"),
+ ZFTZSJ("政府投资审计", "27"),
+ ZFSACFSS("执法涉案财务审计", "28"),
+ JJZRSJ("经济责任审计", "29"),
+ ZXSJ("专项审计", "30"),
JWDC("警务评议", "2"),
JYDC("警意调查", "3"),
diff --git a/src/main/java/com/biutag/supervision/controller/datav/DataGobalController.java b/src/main/java/com/biutag/supervision/controller/datav/DataGobalController.java
index 4000a52..00c71df 100644
--- a/src/main/java/com/biutag/supervision/controller/datav/DataGobalController.java
+++ b/src/main/java/com/biutag/supervision/controller/datav/DataGobalController.java
@@ -5,6 +5,7 @@ import com.alibaba.fastjson.JSONObject;
import com.biutag.supervision.pojo.Result;
import com.biutag.supervision.pojo.vo.*;
import com.biutag.supervision.service.DataGobalService;
+import com.biutag.supervision.service.DataSupervisionNotifyServiceImpl;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.activation.DataHandler;
@@ -35,6 +36,7 @@ public class DataGobalController {
private final DataGobalService dataGobalService;
+
/**
* 获取数据大屏概览
* @param beginTime
@@ -55,45 +57,18 @@ public class DataGobalController {
// 业务类型占比
List ywzblist = dataGobalService.getBusinessRate(beginTime, endTime);
+ // 突出问题排名
+ List tcwtlist = dataGobalService.getStrongProblemRank(beginTime, endTime);
+
// 问题类型占比
List wtlxlist = dataGobalService.getProblemRate(beginTime, endTime);
- // 突出问题排名
- List tcwtlist = dataGobalService.getStrongProblemRank(beginTime, endTime);
+ // 地图数据
+ List gobalTempMapVoList = dataGobalService.getMapIconInfo(beginTime, endTime);
+ if ( gobalTempMapVoList==null || gobalTempMapVoList.size() == 0) {
+ gobalTempMapVoList = new ArrayList<>();
+ }
- // 地图显示结果
- List gobalMapVoList = new ArrayList<>();
- fxsjlist.forEach(item -> {
- // 添加总数
- GobalMapIconVo gobalMapVo = new GobalMapIconVo();
- gobalMapVo.setName(item.getLabel());
- gobalMapVo.setTotalPro(Integer.parseInt(item.getValue()));
- gobalMapVoList.add(gobalMapVo);
- });
- // 市县分局的督察问题
- List superviseProList = dataGobalService.getSuperviseProTotal(beginTime, endTime);
- List caseVerifyProList = dataGobalService.getCaseVerifyProTotal(beginTime, endTime);
- List mailProList = dataGobalService.getMailProTotal(beginTime, endTime);
- List policeProList = dataGobalService.getPoliceProTotal(beginTime, endTime);
- List reviewProList = dataGobalService.getReviewProTotal(beginTime, endTime);
- List gobalTempMapVoList = new ArrayList<>();
- if (!gobalMapVoList.isEmpty()) {
- updateProList(superviseProList, gobalMapVoList, GobalMapIconVo::setSupervisePro);
- updateProList(caseVerifyProList, gobalMapVoList, GobalMapIconVo::setCaseVerifyPro);
- updateProList(mailProList, gobalMapVoList, GobalMapIconVo::setMailPro);
- updateProList(policeProList, gobalMapVoList, GobalMapIconVo::setPolicePro);
- updateProList(reviewProList, gobalMapVoList, GobalMapIconVo::setReviewPro);
- }else {
-// gobalTempMapVoList.add(new GobalMapIconVo("芙蓉分局", 1,11,11,11,11,11));
-// gobalTempMapVoList.add(new GobalMapIconVo("天心分局", 2,22,22,22,22,22));
-// gobalTempMapVoList.add(new GobalMapIconVo("岳麓分局", 3,33,33,33,33,33));
-// gobalTempMapVoList.add(new GobalMapIconVo("开福分局", 4,44,44,44,44,44));
-// gobalTempMapVoList.add(new GobalMapIconVo("雨花分局", 5,55,55,55,55,55));
-// gobalTempMapVoList.add(new GobalMapIconVo("长沙县局", 6,66,66,66,66,66));
-// gobalTempMapVoList.add(new GobalMapIconVo("望城分局", 7,77,77,77,77,77));
-// gobalTempMapVoList.add(new GobalMapIconVo("宁乡市局", 8,88,88,88,88,88));
-// gobalTempMapVoList.add(new GobalMapIconVo("浏阳市局", 9,99,99,99,99,99));
- }
JSONObject data = new JSONObject().fluentPut("overview", overview)
.fluentPut("fxsjlist", fxsjlist)
@@ -101,8 +76,8 @@ public class DataGobalController {
.fluentPut("ywzblist", ywzblist)
.fluentPut("wtlxlist", wtlxlist)
.fluentPut("tcwtlist", tcwtlist)
- .fluentPut("gobalMapVoList", gobalMapVoList)
.fluentPut("gobalTempMapVoList", gobalTempMapVoList);
+
return Result.success(data);
}
@@ -165,4 +140,7 @@ public class DataGobalController {
return Result.success(jsonObject);
}
+
+
+
}
diff --git a/src/main/java/com/biutag/supervision/controller/datav/SupervisionNotifyController.java b/src/main/java/com/biutag/supervision/controller/datav/SupervisionNotifyController.java
index 7bb8b05..1a9ae16 100644
--- a/src/main/java/com/biutag/supervision/controller/datav/SupervisionNotifyController.java
+++ b/src/main/java/com/biutag/supervision/controller/datav/SupervisionNotifyController.java
@@ -3,6 +3,7 @@ package com.biutag.supervision.controller.datav;
import com.alibaba.fastjson.JSONObject;
import com.biutag.supervision.pojo.Result;
import com.biutag.supervision.pojo.dto.CaseVerifDepart;
+import com.biutag.supervision.pojo.vo.EchartsVo;
import com.biutag.supervision.pojo.vo.RankVo;
import com.biutag.supervision.service.DataSupervisionNotifyServiceImpl;
import io.swagger.v3.oas.annotations.Operation;
@@ -33,7 +34,7 @@ public class SupervisionNotifyController {
private final DataSupervisionNotifyServiceImpl dataSupervisionNotifyService;
/**
- * 获取所有现场督察钟中央总数数量
+ * 获取现场督察大屏数据
*
* @return
*/
@@ -43,14 +44,18 @@ public class SupervisionNotifyController {
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date endTime) {
JSONObject overview = dataSupervisionNotifyService.getAllSupervisionNotifyCount(beginTime, endTime);
JSONObject data = new JSONObject().fluentPut("overview", overview);
+
+ //问题类型占比
+ List wtlxList = dataSupervisionNotifyService.getProblemTypeRatio(beginTime, endTime);
+
+ //
return Result.success(data);
}
/**
* 获取日常督察排行
- *
- * @param groupType 分组类型 1: 分县市局 2: 局属单位
+ * @param groupType 分组类型 1: 分县市局 2: 局属单位
* @return
*/
@Operation(summary = "获取日常督察数量概览和整改率排名")
@@ -67,5 +72,8 @@ public class SupervisionNotifyController {
}
+
+
+
}
diff --git a/src/main/java/com/biutag/supervision/controller/work/AlarmNotificationController.java b/src/main/java/com/biutag/supervision/controller/work/AlarmNotificationController.java
new file mode 100644
index 0000000..71a2f3b
--- /dev/null
+++ b/src/main/java/com/biutag/supervision/controller/work/AlarmNotificationController.java
@@ -0,0 +1,58 @@
+package com.biutag.supervision.controller.work;
+
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.biutag.supervision.pojo.Result;
+import com.biutag.supervision.pojo.entity.AlarmNotification;
+import com.biutag.supervision.pojo.param.AlarmParam;
+import com.biutag.supervision.service.AlarmNotificationService;
+import lombok.AllArgsConstructor;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * @author kami on 2024-11-16 11:30:34
+ * @version 0.0.1
+ * @since 1.8
+ */
+@Slf4j
+@RestController
+@RequestMapping("/alarm/notification")
+@AllArgsConstructor
+public class AlarmNotificationController {
+
+ private final AlarmNotificationService notificationService;
+
+ /**
+ * 预警通知分页查询
+ * @param param 请求参数
+ * @return 预警通知分页数据
+ */
+ @PostMapping("/pages")
+ public Result> pages(@RequestBody AlarmParam param) {
+ return Result.success(notificationService.pages(param));
+ }
+
+ /**
+ * 回复内容
+ * @param data 数据
+ * @return 响应
+ */
+ @PostMapping("/reply")
+ public Result alarmNotificationReply(@RequestBody AlarmNotification data) {
+ AlarmNotification notification = new AlarmNotification();
+ if(data.getId() == null) {
+ return Result.failed(5000, "未找到对用数据");
+ }
+ notification.setId(data.getId());
+ notification.setReplyResultContent(data.getReplyResultContent());
+ notification.setReplyState(1);
+ boolean res = notificationService.updateById(notification);
+ if(!res) {
+ return Result.failed(5000, "修改失败");
+ }
+ return Result.success();
+ }
+}
diff --git a/src/main/java/com/biutag/supervision/mapper/AlarmNotificationMapper.java b/src/main/java/com/biutag/supervision/mapper/AlarmNotificationMapper.java
new file mode 100644
index 0000000..dc10a6e
--- /dev/null
+++ b/src/main/java/com/biutag/supervision/mapper/AlarmNotificationMapper.java
@@ -0,0 +1,14 @@
+package com.biutag.supervision.mapper;
+
+import com.baomidou.dynamic.datasource.annotation.DS;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.biutag.supervision.pojo.entity.AlarmNotification;
+
+/**
+ * @author kami on 2024-11-16 11:05:28
+ * @version 0.0.1
+ * @since 1.8
+ */
+@DS("master")
+public interface AlarmNotificationMapper extends BaseMapper {
+}
diff --git a/src/main/java/com/biutag/supervision/mapper/BusinessDepartMapper.java b/src/main/java/com/biutag/supervision/mapper/BusinessDepartMapper.java
index d0ac758..400f8b4 100644
--- a/src/main/java/com/biutag/supervision/mapper/BusinessDepartMapper.java
+++ b/src/main/java/com/biutag/supervision/mapper/BusinessDepartMapper.java
@@ -6,9 +6,32 @@ import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.biutag.supervision.pojo.entity.BusinessDepart;
import com.biutag.supervision.pojo.model.BusinessPoliceModel;
+import com.biutag.supervision.pojo.vo.ProblemSourceVo;
import org.apache.ibatis.annotations.Param;
+import org.apache.ibatis.annotations.Select;
+
+import java.util.List;
public interface BusinessDepartMapper extends BaseMapper {
Page queryPage(@Param("page") Page page, @Param(Constants.WRAPPER) QueryWrapper queryWrapper);
-}
\ No newline at end of file
+ @Select(" ")
+ List problemStatistics(@Param("list") List list, @Param("time") String time);
+
+ @Select(" ")
+ Integer problemSum(@Param("list") List list, @Param("time") String time);
+}
diff --git a/src/main/java/com/biutag/supervision/mapper/NegativeBlameMapper.java b/src/main/java/com/biutag/supervision/mapper/NegativeBlameMapper.java
index 35e39a2..f654551 100644
--- a/src/main/java/com/biutag/supervision/mapper/NegativeBlameMapper.java
+++ b/src/main/java/com/biutag/supervision/mapper/NegativeBlameMapper.java
@@ -2,6 +2,7 @@ package com.biutag.supervision.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.biutag.supervision.pojo.entity.NegativeBlame;
+import com.biutag.supervision.pojo.vo.BlamePerson;
import org.apache.ibatis.annotations.Select;
import java.time.LocalDateTime;
@@ -26,4 +27,18 @@ public interface NegativeBlameMapper extends BaseMapper {
List selectVerifyTrue();
-}
\ No newline at end of file
+ @Select(" SELECT blameIdCode, blameName, count(1) as number FROM `negative_blame` " +
+ " where blameIdCode is not null and LENGTH(blameIdCode) > 0 and ivPersonTypeCode = 1 " +
+ " GROUP BY blameIdCode order by number desc limit 10")
+ List statisticsBlame();
+
+ @Select(" SELECT blameIdCode, blameName, count(1) as number FROM `negative_blame` " +
+ " where blameIdCode is not null and LENGTH(blameIdCode) > 0 and ivPersonTypeCode != 1 " +
+ " GROUP BY blameIdCode order by number desc limit 10")
+ List statisticsBlame2();
+
+ @Select(" SELECT leadIdCode as blameIdCode, leadName as blameName, count(1) as number FROM `negative_blame` " +
+ " where leadIdCode is not null and LENGTH(leadIdCode) > 0 " +
+ " GROUP BY leadIdCode order by number desc limit 10")
+ List statisticsBlame3();
+}
diff --git a/src/main/java/com/biutag/supervision/mapper/NegativeMapper.java b/src/main/java/com/biutag/supervision/mapper/NegativeMapper.java
index c1e822a..99cfc73 100644
--- a/src/main/java/com/biutag/supervision/mapper/NegativeMapper.java
+++ b/src/main/java/com/biutag/supervision/mapper/NegativeMapper.java
@@ -45,6 +45,63 @@ public interface NegativeMapper extends BaseMapper {
"GROUP BY monthTime " +
"order BY monthTime asc")
List selectRecentTrendByMonth(String year);
+
+
+ @Select("SELECT count(*) FROM negative ng INNER JOIN " +
+ " (" +
+ " SELECT sd.id, sd.pid, sd.name, sd1.short_name FROM sup_depart sd " +
+ " INNER join sup_depart sd1 on sd.pid=sd1.id " +
+ " and sd1.LEVEL=2 AND sd1.statistics_group_id=3" +
+ " ) " +
+ "as temp on ng.involveDepartId=temp.id " +
+ "AND ng.checkStatus<>3 AND problemSourcesCode in (13, 15, 16) " +
+ "AND temp.pid=#{departId} AND discoveryTime BETWEEN #{beginTime} AND #{endTime}")
+ Integer seleGobalMapIconInfoDc(Date beginTime, Date endTime, Integer departId);
+
+ @Select("SELECT count(*) FROM negative ng INNER JOIN " +
+ " (" +
+ " SELECT sd.id, sd.pid, sd.name, sd1.short_name FROM sup_depart sd " +
+ " INNER join sup_depart sd1 on sd.pid=sd1.id " +
+ " and sd1.LEVEL=2 AND sd1.statistics_group_id=3" +
+ " ) " +
+ "as temp on ng.involveDepartId=temp.id " +
+ "AND ng.checkStatus<>3 AND problemSourcesCode=11 " +
+ "AND temp.pid=#{departId} AND discoveryTime BETWEEN #{beginTime} AND #{endTime}")
+ Integer seleGobalMapIconInfoAjhc(Date beginTime, Date endTime, Integer departId);
+
+ @Select("SELECT count(*) FROM negative ng INNER JOIN " +
+ " (" +
+ " SELECT sd.id, sd.pid, sd.name, sd1.short_name FROM sup_depart sd " +
+ " INNER join sup_depart sd1 on sd.pid=sd1.id " +
+ " and sd1.LEVEL=2 AND sd1.statistics_group_id =3 " +
+ " ) " +
+ "as temp on ng.involveDepartId=temp.id " +
+ "AND ng.checkStatus<>3 AND problemSourcesCode in (21, 22, 23, 24, 25) " +
+ "AND temp.pid=#{departId} AND discoveryTime BETWEEN #{beginTime} AND #{endTime}")
+ Integer seleGobalMapIconInfoXf(Date beginTime, Date endTime, Integer departId);
+
+ @Select("SELECT count(*) FROM negative ng INNER JOIN " +
+ " (" +
+ " SELECT sd.id, sd.pid, sd.name, sd1.short_name FROM sup_depart sd " +
+ " INNER join sup_depart sd1 on sd.pid=sd1.id " +
+ " and sd1.LEVEL=2 AND sd1.statistics_group_id =3 " +
+ " ) " +
+ "as temp on ng.involveDepartId=temp.id " +
+ "AND ng.checkStatus<>3 AND problemSourcesCode=2 " +
+ "AND temp.pid=#{departId} AND discoveryTime BETWEEN #{beginTime} AND #{endTime}")
+ Integer seleGobalMapIconInfoJwpy(Date beginTime, Date endTime, Integer departId);
+
+ @Select("SELECT count(*) FROM negative ng INNER JOIN " +
+ " (" +
+ " SELECT sd.id, sd.pid, sd.name, sd1.short_name FROM sup_depart sd " +
+ " INNER join sup_depart sd1 on sd.pid=sd1.id " +
+ " and sd1.LEVEL=2 AND sd1.statistics_group_id =3 " +
+ " ) " +
+ "as temp on ng.involveDepartId=temp.id " +
+ "AND ng.checkStatus<>3 AND problemSourcesCode=26 " +
+ "AND temp.pid=#{departId} AND discoveryTime BETWEEN #{beginTime} AND #{endTime}")
+ Integer seleGobalMapIconInfoSjdc(Date beginTime, Date endTime, Integer departId);
+
// endregion
@@ -92,18 +149,12 @@ public interface NegativeMapper extends BaseMapper {
Long selectRelationOrgCount(Date beginTime, Date endTime, String checkStatus);
- @Select("SELECT COUNT(*) FROM negative n " +
- "INNER JOIN ( " +
- " SELECT DISTINCT sd.id " +
- " FROM sup_depart sd " +
- " INNER JOIN sup_depart sd1 ON sd.pid = sd1.id " +
- " WHERE sd1.statistics_group_id = #{groupType}" +
- ") AS filtered_sd ON n.involveDepartId = filtered_sd.id " +
- "WHERE n.checkStatus = 1 " +
- "AND n.problemSourcesCode = 15;")
- Long getCountByGroupType(Integer groupType, Date beginTime, Date endTime);
+
+ /**
+ * 获取现场督察按二级机构分组和整改状态划分的的问题数
+ */
@Select("SELECT COUNT(*) FROM negative n " +
"INNER JOIN ( " +
" SELECT DISTINCT sd.id " +
@@ -112,12 +163,38 @@ public interface NegativeMapper extends BaseMapper {
" WHERE sd1.statistics_group_id = #{groupType}" +
") AS filtered_sd ON n.involveDepartId = filtered_sd.id " +
"WHERE n.checkStatus = 1 " +
- "AND n.problemSourcesCode = 15 " +
+ "AND n.problemSourcesCode = 13 " +
"AND n.isRectifyCode=#{isRectify} " +
"AND n.discoveryTime BETWEEN #{beginTime} AND #{endTime}")
Long getChangCountByGroupType(Integer groupType, Date beginTime, Date endTime, Integer isRectify);
+
+
+ @Select("SELECT count(*) FROM negative ng INNER JOIN " +
+ "(SELECT sd.id, sd.pid, sd.`name`, sd1.short_name FROM sup_depart sd INNER JOIN sup_depart sd1 " +
+ "ON sd.pid = sd1.id AND sd1.`level`=2 AND sd1.statistics_group_id=3) as temp " +
+ "ON ng.involveDepartId=temp.id " +
+ "AND pid=#{departId} " +
+ "AND problemSourcesCode= 13 " +
+ "AND checkStatus <> 3 " +
+ "AND isRectifyCode =1 " +
+ "AND discoveryTime BETWEEN #{beginTime} AND #{endTime}")
+ Long getChangedCountByGroupType(Date beginTime, Date endTime, String departId);
+
+
+
+ @Select("SELECT count(*) FROM negative ng INNER JOIN " +
+ "(SELECT sd.id, sd.pid, sd.`name`, sd1.short_name FROM sup_depart sd INNER JOIN sup_depart sd1 " +
+ "ON sd.pid = sd1.id AND sd1.`level`=2 AND sd1.statistics_group_id=3) as temp\n" +
+ "ON ng.involveDepartId=temp.id " +
+ "AND pid=#{departId} " +
+ "AND problemSourcesCode= 13 " +
+ "AND isRectifyCode =1 " +
+ "AND discoveryTime BETWEEN #{beginTime} AND #{endTime}")
+ Long getCountByGroupType(Date beginTime, Date endTime, String departId);
+
+
// endregion
}
diff --git a/src/main/java/com/biutag/supervision/mapper/NegativeProblemRelationMapper.java b/src/main/java/com/biutag/supervision/mapper/NegativeProblemRelationMapper.java
index 480ec8b..44cd53b 100644
--- a/src/main/java/com/biutag/supervision/mapper/NegativeProblemRelationMapper.java
+++ b/src/main/java/com/biutag/supervision/mapper/NegativeProblemRelationMapper.java
@@ -13,77 +13,41 @@ import java.util.List;
public interface NegativeProblemRelationMapper extends BaseMapper {
- @Select("SELECT npr.oneLevelContent as name, count(*) value " +
- "FROM negative_problem_relation npr " +
- "WHERE npr.oneLevelContent is not NULL " +
- "GROUP BY `name` ")
+ /**
+ * 首页大屏问题类型占比
+ * @param beginTime
+ * @param endTime
+ * @return
+ */
+ @Select("SELECT npr.oneLevelContent as name, count(*) `value` FROM negative_problem_relation npr INNER JOIN " +
+ " ( " +
+ " SELECT id FROM negative ng " +
+ " WHERE checkStatus <>3 " +
+ " AND discoveryTime BETWEEN #{beginTime} AND #{endTime} " +
+ " ) as temp " +
+ "on npr.negativeId=temp.id " +
+ "AND npr.oneLevelContent is not NULL " +
+ "GROUP BY npr.oneLevelContent " +
+ "ORDER BY `value` desc")
List selectProblemRate(Date beginTime, Date endTime);
- @Select("SELECT threeLevelContent as label, count(*) as `value` " +
- "FROM negative_problem_relation " +
- "WHERE negativeId " +
- "in ( SELECT id FROM negative WHERE discoveryTime BETWEEN #{beginTime} AND #{endTime}) " +
- "GROUP BY threeLevelContent " +
- "ORDER BY VALUE DESC ")
+ /**
+ * 首页大屏突出问题排名
+ * @param beginTime
+ * @param endTime
+ * @return
+ */
+ @Select("SELECT npr.threeLevelContent as label, count(*) `value` FROM negative_problem_relation npr INNER JOIN " +
+ " ( " +
+ " SELECT id FROM negative ng " +
+ " WHERE checkStatus <>3 " +
+ " AND discoveryTime BETWEEN #{beginTime} AND #{endTime} " +
+ " ) as temp " +
+ "on npr.negativeId=temp.id " +
+ "AND npr.threeLevelContent is not NULL " +
+ "GROUP BY npr.threeLevelContent " +
+ "ORDER BY `value` desc")
List selectStrongProblemRank(Date beginTime, Date endTime);
- @Select("SELECT sd1.short_name, count(*) value " +
- "FROM negative ng " +
- "INNER JOIN sup_depart sd " +
- "on ng.involveDepartId=sd.id AND sd.`level`=3 " +
- "AND checkStatus=1 AND problemSourcesCode in(13, 14, 15, 16) " +
- "AND ng.discoveryTime BETWEEN #{beginTime} and #{endTime}" +
- "INNER JOIN sup_depart sd1 " +
- "on sd.pid=sd1.id and sd1.statistics_group_id=3\n" +
- "GROUP BY sd1.id " +
- "ORDER BY `value` DESC;")
- List selectSuperviseProTotal(Date beginTime, Date endTime);
- @Select("SELECT sd1.short_name, count(*) value " +
- "FROM negative ng " +
- "INNER JOIN sup_depart sd " +
- "on ng.involveDepartId=sd.id AND sd.`level`=3 " +
- "AND checkStatus=1 AND problemSourcesCode in(17, 18, 19, 20) " +
- "AND ng.discoveryTime BETWEEN #{beginTime} and #{endTime}" +
- "INNER JOIN sup_depart sd1 " +
- "on sd.pid=sd1.id and sd1.statistics_group_id=3\n" +
- "GROUP BY sd1.id " +
- "ORDER BY `value` DESC;")
- List selectCaseVerifyProTotal(Date beginTime, Date endTime);
-
- @Select("SELECT sd1.short_name, count(*) value " +
- "FROM negative ng " +
- "INNER JOIN sup_depart sd " +
- "on ng.involveDepartId=sd.id AND sd.`level`=3 " +
- "AND checkStatus=1 AND problemSourcesCode in(21, 22, 23, 24, 25) " +
- "AND ng.discoveryTime BETWEEN #{beginTime} and #{endTime}" +
- "INNER JOIN sup_depart sd1 " +
- "on sd.pid=sd1.id and sd1.statistics_group_id=3\n" +
- "GROUP BY sd1.id " +
- "ORDER BY `value` DESC;")
- List selectMailProTotal(Date beginTime, Date endTime);
-
- @Select("SELECT sd1.short_name, count(*) value " +
- "FROM negative ng " +
- "INNER JOIN sup_depart sd " +
- "on ng.involveDepartId=sd.id AND sd.`level`=3 " +
- "AND checkStatus=1 AND problemSourcesCode in(2) " +
- "AND ng.discoveryTime BETWEEN #{beginTime} and #{endTime}" +
- "INNER JOIN sup_depart sd1 " +
- "on sd.pid=sd1.id and sd1.statistics_group_id=3\n" +
- "GROUP BY sd1.id " +
- "ORDER BY `value` DESC;")
- List selectPoliceProTotal(Date beginTime, Date endTime);
-
- @Select("SELECT sd1.short_name, count(*) value " +
- "FROM negative ng " +
- "INNER JOIN sup_depart sd " +
- "on ng.involveDepartId=sd.id AND sd.`level`=3 " +
- "AND checkStatus=1 AND problemSourcesCode in(26) " +
- "AND ng.discoveryTime BETWEEN #{beginTime} and #{endTime}" +
- "INNER JOIN sup_depart sd1 " +
- "on sd.pid=sd1.id and sd1.statistics_group_id=3\n" +
- "GROUP BY sd1.id " +
- "ORDER BY `value` DESC;")
- List selectReviewProTotal(Date beginTime, Date endTime);
}
\ No newline at end of file
diff --git a/src/main/java/com/biutag/supervision/mapper/SupDepartMapper.java b/src/main/java/com/biutag/supervision/mapper/SupDepartMapper.java
index 3ba57be..258aa1c 100644
--- a/src/main/java/com/biutag/supervision/mapper/SupDepartMapper.java
+++ b/src/main/java/com/biutag/supervision/mapper/SupDepartMapper.java
@@ -32,6 +32,11 @@ public interface SupDepartMapper extends BaseMapper {
List