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 bbea50b1..fa0d4729 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 @@ -86,4 +86,29 @@ public class ScreenController extends BaseController { screenQinglangResponse.setScreenQinglangWeiguiResponse(list1); return AjaxResult.success(screenQinglangResponse); } + + + + /** + * 属地通报 + */ + + @ApiOperation(value = "属地通报", response = ScreenTerritorialResponse.class) + @GetMapping("/screenterritorial") + public AjaxResult screenTerritorial() { + return AjaxResult.success(screenService.getScreenTerritorial()); + } + + + + + /** + * 部门通报 + */ + + @ApiOperation(value = "部门通报", response = ScreenDeptResponse.class) + @GetMapping("/screendept") + public AjaxResult screeDept() { + return AjaxResult.success(screenService.getScreenDept()); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/domain/reponse/ScreenDeptResponse.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/domain/reponse/ScreenDeptResponse.java new file mode 100644 index 00000000..a0eee15c --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/domain/reponse/ScreenDeptResponse.java @@ -0,0 +1,28 @@ +package com.ruoyi.tcZz.domain.reponse; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + * 部门通报 + */ +@Data +@ApiModel("部门通报") +public class ScreenDeptResponse { + + /** + * 统计数据 + */ + @ApiModelProperty("统计数据") + private Integer count; + + + /** + * 部门 + */ + @ApiModelProperty("部门") + private String depName; + + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/domain/reponse/ScreenTerritorialResponse.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/domain/reponse/ScreenTerritorialResponse.java new file mode 100644 index 00000000..cb1d377e --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/domain/reponse/ScreenTerritorialResponse.java @@ -0,0 +1,34 @@ +package com.ruoyi.tcZz.domain.reponse; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + * 属地通报 + */ +@ApiModel("属地通报") +@Data +public class ScreenTerritorialResponse { + + + /** + * 统计数据 + */ + @ApiModelProperty("统计数据") + private Integer count; + + + /** + * 地区 + */ + @ApiModelProperty("地区") + private Integer area; + + + /** + * 百分比 + */ + @ApiModelProperty("百分比") + private double percentage; +} 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 4cbe274f..0a06f67a 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 @@ -54,4 +54,20 @@ public interface ScreenMapper { * @return */ List getScreenQinglangWeigui(); + + + /** + * 属地通报 + */ + + List getScreenTerritorial(); + + + + /** + * 部门通报 + * + * @return + */ + List getScreenDept(); } 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 27a88bf9..a319a76d 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 @@ -52,7 +52,24 @@ public interface ScreenService { /** * 清郎专项行动违规 + * * @return */ List getScreenQinglangWeigui(); + + + /** + * 属地通报 + * + * @return + */ + + List getScreenTerritorial(); + + /** + * 部门通报 + * + * @return + */ + List getScreenDept(); } 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 17145192..26f5d148 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 @@ -49,4 +49,14 @@ public class ScreenServiceImpl implements ScreenService { public List getScreenQinglangWeigui() { return screenMapper.getScreenQinglangWeigui(); } + + @Override + public List getScreenTerritorial() { + return screenMapper.getScreenTerritorial(); + } + + @Override + public List getScreenDept() { + return screenMapper.getScreenDept(); + } } 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 150f9005..ac1eba47 100644 --- a/ruoyi-admin/src/main/resources/mapper/tcZz/netManage/ScreenMapper.xml +++ b/ruoyi-admin/src/main/resources/mapper/tcZz/netManage/ScreenMapper.xml @@ -41,4 +41,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" resultType="com.ruoyi.tcZz.domain.reponse.ScreenQinglangWeiguiResponse"> select count2,date_time as dateTime from tc_qlzxxdsjtj order by date_time desc limit 12 + + \ No newline at end of file