From e636a738a2e3c7a7bbe9d93846e67a9f60c37b02 Mon Sep 17 00:00:00 2001 From: dongdingding <207595406@qq.com> Date: Mon, 23 Oct 2023 09:51:46 +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 | 13 ++++++++++ .../reponse/ScreenDepartmentResponse.java | 26 +++++++++++++++++++ .../com/ruoyi/tcZz/mapper/ScreenMapper.java | 10 +++++++ .../com/ruoyi/tcZz/service/ScreenService.java | 8 ++++++ .../tcZz/service/impl/ScreenServiceImpl.java | 5 ++++ .../mapper/tcZz/netManage/ScreenMapper.xml | 3 +++ 6 files changed, 65 insertions(+) create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/tcZz/domain/reponse/ScreenDepartmentResponse.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 0303b99a..9bb6dbe5 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 @@ -122,4 +122,17 @@ public class ScreenController extends BaseController { public AjaxResult screenReportMap() { return AjaxResult.success(screenService.getScreenReportMap()); } + + + + + /** + * 部门转办 + */ + + @ApiOperation(value = "部门转办", response = ScreenDepartmentResponse.class) + @GetMapping("/screendepartment") + public AjaxResult screenDepartment() { + return AjaxResult.success(screenService.getScreenDepartment()); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/domain/reponse/ScreenDepartmentResponse.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/domain/reponse/ScreenDepartmentResponse.java new file mode 100644 index 00000000..e57c5632 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/domain/reponse/ScreenDepartmentResponse.java @@ -0,0 +1,26 @@ +package com.ruoyi.tcZz.domain.reponse; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + * 部门转办 + */ +@Data +@ApiModel("部门转办") +public class ScreenDepartmentResponse { + + /** + * 数量 + */ + @ApiModelProperty("数量") + private Integer count; + + + /** + * 部门 + */ + @ApiModelProperty("部门") + private String depName; +} 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 3084caee..6373ff81 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 @@ -82,4 +82,14 @@ public interface ScreenMapper { * @return */ ScreenReportMapResponse getScreenReportMap(); + + + + + /** + * 部门转办 + * + * @return + */ + ScreenDepartmentResponse getScreenDepartment(); } 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 f4c1ad63..ddf82478 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 @@ -80,4 +80,12 @@ public interface ScreenService { * @return */ ScreenReportMapResponse getScreenReportMap(); + + + /** + * 部门转办 + * + * @return + */ + ScreenDepartmentResponse getScreenDepartment(); } 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 3490159f..410281da 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 @@ -64,4 +64,9 @@ public class ScreenServiceImpl implements ScreenService { public ScreenReportMapResponse getScreenReportMap() { return screenMapper.getScreenReportMap(); } + + @Override + public ScreenDepartmentResponse getScreenDepartment() { + return screenMapper.getScreenDepartment(); + } } 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 06e796cd..8623a5b5 100644 --- a/ruoyi-admin/src/main/resources/mapper/tcZz/netManage/ScreenMapper.xml +++ b/ruoyi-admin/src/main/resources/mapper/tcZz/netManage/ScreenMapper.xml @@ -60,4 +60,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" FROM tc_jbmap; + \ No newline at end of file