From 5f38679126529dd30ea97ecdd7806df7954c0b09 Mon Sep 17 00:00:00 2001 From: dongdingding <207595406@qq.com> Date: Mon, 23 Oct 2023 09:15:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A7=E5=B1=8F=E6=8E=A5=E5=8F=A3=E7=BC=96?= =?UTF-8?q?=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tcZz/controller/ScreenController.java | 11 ++++++++ .../reponse/ScreenReportMapResponse.java | 27 +++++++++++++++++++ .../com/ruoyi/tcZz/mapper/ScreenMapper.java | 18 ++++++++++--- .../com/ruoyi/tcZz/service/ScreenService.java | 8 ++++++ .../tcZz/service/impl/ScreenServiceImpl.java | 5 ++++ .../mapper/tcZz/netManage/ScreenMapper.xml | 6 +++++ 6 files changed, 72 insertions(+), 3 deletions(-) create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/tcZz/domain/reponse/ScreenReportMapResponse.java diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/ScreenController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/ScreenController.java index fa0d4729..0303b99a 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/ScreenController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/ScreenController.java @@ -111,4 +111,15 @@ public class ScreenController extends BaseController { public AjaxResult screeDept() { return AjaxResult.success(screenService.getScreenDept()); } + + + /** + * 举报地图 + */ + + @ApiOperation(value = "举报地图", response = ScreenReportMapResponse.class) + @GetMapping("/screenreportmap") + public AjaxResult screenReportMap() { + return AjaxResult.success(screenService.getScreenReportMap()); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/domain/reponse/ScreenReportMapResponse.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/domain/reponse/ScreenReportMapResponse.java new file mode 100644 index 00000000..c9164426 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/domain/reponse/ScreenReportMapResponse.java @@ -0,0 +1,27 @@ +package com.ruoyi.tcZz.domain.reponse; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + * 举报地图 + */ +@Data +@ApiModel("举报地图") +public class ScreenReportMapResponse { + + + /** + * 举报总数 + */ + @ApiModelProperty("举报总数") + private Integer count; + + + /** + * 处置率 + */ + @ApiModelProperty("处置率") + private double rate; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/mapper/ScreenMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/mapper/ScreenMapper.java index 0a06f67a..3084caee 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/mapper/ScreenMapper.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/mapper/ScreenMapper.java @@ -12,6 +12,8 @@ public interface ScreenMapper { /** * 大屏监管对象 + * + * @return */ ScreenSupervisionResponse getScreenSupervision(); @@ -19,6 +21,8 @@ public interface ScreenMapper { /** * 大屏数据来源 + * + * @return */ ScreenSourceResponse getScreenSource(); @@ -31,7 +35,6 @@ public interface ScreenMapper { ScreenOpinionReportResponse getScreenOpinionReport(); - /** * 网评文章 * @@ -40,7 +43,6 @@ public interface ScreenMapper { ScreenArticlesResponse getScreenArticles(); - /** * 清郎专项行动数据统计 * @@ -51,6 +53,7 @@ public interface ScreenMapper { /** * 清郎专项行动违规 + * * @return */ List getScreenQinglangWeigui(); @@ -58,16 +61,25 @@ public interface ScreenMapper { /** * 属地通报 + * + * @return */ List getScreenTerritorial(); - /** * 部门通报 * * @return */ List getScreenDept(); + + + /** + * 举报地图 + * + * @return + */ + ScreenReportMapResponse getScreenReportMap(); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/ScreenService.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/ScreenService.java index a319a76d..f4c1ad63 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/ScreenService.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/ScreenService.java @@ -72,4 +72,12 @@ public interface ScreenService { * @return */ List getScreenDept(); + + + /** + * 举报地图 + * + * @return + */ + ScreenReportMapResponse getScreenReportMap(); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/impl/ScreenServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/impl/ScreenServiceImpl.java index 26f5d148..3490159f 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/impl/ScreenServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/impl/ScreenServiceImpl.java @@ -59,4 +59,9 @@ public class ScreenServiceImpl implements ScreenService { public List getScreenDept() { return screenMapper.getScreenDept(); } + + @Override + public ScreenReportMapResponse getScreenReportMap() { + return screenMapper.getScreenReportMap(); + } } diff --git a/ruoyi-admin/src/main/resources/mapper/tcZz/netManage/ScreenMapper.xml b/ruoyi-admin/src/main/resources/mapper/tcZz/netManage/ScreenMapper.xml index ac1eba47..253d2426 100644 --- a/ruoyi-admin/src/main/resources/mapper/tcZz/netManage/ScreenMapper.xml +++ b/ruoyi-admin/src/main/resources/mapper/tcZz/netManage/ScreenMapper.xml @@ -54,4 +54,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + \ No newline at end of file