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 d91c2226..ce23f9bf 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 @@ -2,7 +2,10 @@ package com.ruoyi.tcZz.controller; import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.domain.AjaxResult; -import com.ruoyi.tcZz.domain.TcAqg; +import com.ruoyi.tcZz.domain.reponse.ScreenArticlesResponse; +import com.ruoyi.tcZz.domain.reponse.ScreenOpinionReportResponse; +import com.ruoyi.tcZz.domain.reponse.ScreenSourceResponse; +import com.ruoyi.tcZz.domain.reponse.ScreenSupervisionResponse; import com.ruoyi.tcZz.service.ScreenService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; @@ -11,8 +14,6 @@ import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; -import java.util.List; - /** * 大屏接口 */ @@ -30,10 +31,44 @@ public class ScreenController extends BaseController { * 大屏监管对象 */ - @ApiOperation(value = "大屏监管对象", response = TcAqg.class) + @ApiOperation(value = "大屏监管对象", response = ScreenSupervisionResponse.class) @GetMapping("/screensupervision") - public AjaxResult screenSupervision(TcAqg tcAqg) { -// List list = screenService.selectTcAqgList(tcAqg); - return null; + public AjaxResult screenSupervision() { + return AjaxResult.success(screenService.getScreenSupervision()); + } + + + /** + * 大屏数据来源 + */ + + @ApiOperation(value = "大屏数据来源", response = ScreenSourceResponse.class) + @GetMapping("/screensource") + public AjaxResult screenSource() { + return AjaxResult.success(screenService.getScreenSource()); + } + + + /** + * 大屏舆情报告 + */ + + @ApiOperation(value = "舆情报告", response = ScreenOpinionReportResponse.class) + @GetMapping("/screenopinionreport") + public AjaxResult screenOpinionReport() { + return AjaxResult.success(screenService.getScreenOpinionReport()); + } + + + + + /** + * 网评文章 + */ + + @ApiOperation(value = "网评文章", response = ScreenArticlesResponse.class) + @GetMapping("/screenarticles") + public AjaxResult screenArticles() { + return AjaxResult.success(screenService.getScreenOpinionReport()); } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/domain/reponse/ScreenArticlesResponse.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/domain/reponse/ScreenArticlesResponse.java new file mode 100644 index 00000000..abb3e2de --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/domain/reponse/ScreenArticlesResponse.java @@ -0,0 +1,7 @@ +package com.ruoyi.tcZz.domain.reponse; + +/** + * 网评文章 + */ +public class ScreenArticlesResponse { +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/domain/reponse/ScreenOpinionReportResponse.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/domain/reponse/ScreenOpinionReportResponse.java new file mode 100644 index 00000000..54376f78 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/domain/reponse/ScreenOpinionReportResponse.java @@ -0,0 +1,41 @@ +package com.ruoyi.tcZz.domain.reponse; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + * 大屏舆情报告响应类 + */ +@Data +@ApiModel("大屏舆情报告响应类") +public class ScreenOpinionReportResponse { + /** + * 提示单 + */ + @ApiModelProperty("提示单") + private Integer count; + + /** + * 转办单 + */ + @ApiModelProperty("转办单") + private Integer count1; + /** + * 专报 + */ + @ApiModelProperty("专报 ") + private Integer count2; + /** + * 月报 + */ + @ApiModelProperty("月报") + private Integer count3; + + + /** + * IDC单位 + */ + @ApiModelProperty("深度报告") + private Integer count4; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/domain/reponse/ScreenSourceResponse.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/domain/reponse/ScreenSourceResponse.java new file mode 100644 index 00000000..af532cc1 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/domain/reponse/ScreenSourceResponse.java @@ -0,0 +1,30 @@ +package com.ruoyi.tcZz.domain.reponse; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + * 大屏数据来源 + */ +@Data +@ApiModel("大屏数据来源") +public class ScreenSourceResponse { + + /** + *硬探针 + */ + @ApiModelProperty("硬探针") + private Integer count; + + /** + *软探针 + */ + @ApiModelProperty("软探针") + private Integer count1; + /** + *系统监测 + */ + @ApiModelProperty("系统监测") + private Integer count2; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/domain/reponse/ScreenSupervisionResponse.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/domain/reponse/ScreenSupervisionResponse.java new file mode 100644 index 00000000..a48efa91 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/domain/reponse/ScreenSupervisionResponse.java @@ -0,0 +1,42 @@ +package com.ruoyi.tcZz.domain.reponse; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import io.swagger.models.auth.In; +import lombok.Data; + +/** + * 大屏监管对象请求类 + */ +@Data +@ApiModel("大屏监管对象请求类") +public class ScreenSupervisionResponse { + /** + *等保系统 + */ + @ApiModelProperty("等保系统") + private Integer count; + + /** + *等保单位 + */ + @ApiModelProperty("等保单位") + private Integer count1; + /** + *政府网站 + */ + @ApiModelProperty("政府网站") + private Integer count2; + /** + *监管单位、网站监测 + */ + @ApiModelProperty("监管单位、网站监测") + private Integer count3; + + + /** + *IDC单位 + */ + @ApiModelProperty("IDC单位") + private Integer count4; +} 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 new file mode 100644 index 00000000..63f86659 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/mapper/ScreenMapper.java @@ -0,0 +1,33 @@ +package com.ruoyi.tcZz.mapper; + +import com.ruoyi.tcZz.domain.reponse.ScreenOpinionReportResponse; +import com.ruoyi.tcZz.domain.reponse.ScreenSourceResponse; +import com.ruoyi.tcZz.domain.reponse.ScreenSupervisionResponse; + +/** + * 大屏接口数据层 + */ +public interface ScreenMapper { + + + /** + * 大屏监管对象 + */ + + ScreenSupervisionResponse getScreenSupervision(); + + + /** + * 大屏数据来源 + */ + + ScreenSourceResponse getScreenSource(); + + /** + * 大屏舆情报告 + * + * @return + */ + + ScreenOpinionReportResponse getScreenOpinionReport(); +} 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 a2b1de5c..991c6c02 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 @@ -1,5 +1,9 @@ package com.ruoyi.tcZz.service; +import com.ruoyi.tcZz.domain.reponse.ScreenOpinionReportResponse; +import com.ruoyi.tcZz.domain.reponse.ScreenSourceResponse; +import com.ruoyi.tcZz.domain.reponse.ScreenSupervisionResponse; + /** * 大屏接口服务层 */ @@ -7,6 +11,27 @@ public interface ScreenService { /** + * 大屏监管对象 + * + * @return + */ + + ScreenSupervisionResponse getScreenSupervision(); + + + /** + * 大屏数据来源 * + * @return */ + + ScreenSourceResponse getScreenSource(); + + /** + * 大屏舆情报告 + * + * @return + */ + + ScreenOpinionReportResponse getScreenOpinionReport(); } 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 76c8aebf..5f6d590d 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 @@ -1,6 +1,11 @@ package com.ruoyi.tcZz.service.impl; +import com.ruoyi.tcZz.domain.reponse.ScreenOpinionReportResponse; +import com.ruoyi.tcZz.domain.reponse.ScreenSourceResponse; +import com.ruoyi.tcZz.domain.reponse.ScreenSupervisionResponse; +import com.ruoyi.tcZz.mapper.ScreenMapper; import com.ruoyi.tcZz.service.ScreenService; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; /** @@ -8,4 +13,25 @@ import org.springframework.stereotype.Service; */ @Service public class ScreenServiceImpl implements ScreenService { + /** + * 数据层 + */ + @Autowired + private ScreenMapper screenMapper; + + @Override + public ScreenSupervisionResponse getScreenSupervision() { + return screenMapper.getScreenSupervision(); + + } + + @Override + public ScreenSourceResponse getScreenSource() { + return screenMapper.getScreenSource(); + } + + @Override + public ScreenOpinionReportResponse getScreenOpinionReport() { + return screenMapper.getScreenOpinionReport(); + } } diff --git a/ruoyi-admin/src/main/resources/mapper/tcZz/netManage/ScreenMapper.xml b/ruoyi-admin/src/main/resources/mapper/tcZz/netManage/ScreenMapper.xml new file mode 100644 index 00000000..8e63c0b8 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/tcZz/netManage/ScreenMapper.xml @@ -0,0 +1,29 @@ + + + + + + + + \ No newline at end of file