parent
aad22aca51
commit
07efa93047
@ -0,0 +1,7 @@
|
|||||||
|
package com.ruoyi.tcZz.domain.reponse;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 网评文章
|
||||||
|
*/
|
||||||
|
public class ScreenArticlesResponse {
|
||||||
|
}
|
@ -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;
|
||||||
|
}
|
@ -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;
|
||||||
|
}
|
@ -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;
|
||||||
|
}
|
@ -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();
|
||||||
|
}
|
@ -0,0 +1,29 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.ruoyi.tcZz.mapper.ScreenMapper">
|
||||||
|
|
||||||
|
<select id="getScreenSupervision" resultType="com.ruoyi.tcZz.domain.reponse.ScreenSupervisionResponse">
|
||||||
|
SELECT *
|
||||||
|
FROM (SELECT COUNT(*) AS count FROM tc_dbxt WHERE isStatus=1) count,
|
||||||
|
(SELECT COUNT(*) AS count1 FROM tc_dbdw WHERE isStatus = 1) count1,
|
||||||
|
(SELECT COUNT(*) AS count2 FROM tc_zfwz WHERE isStatus = 1) count2,
|
||||||
|
(SELECT COUNT(*) AS count3 FROM tc_jgdw WHERE isStatus = 1) count3,
|
||||||
|
(SELECT COUNT(*) AS count4 FROM tc_idcdw WHERE isStatus = 1) count4;
|
||||||
|
</select>
|
||||||
|
<select id="getScreenSource" resultType="com.ruoyi.tcZz.domain.reponse.ScreenSourceResponse">
|
||||||
|
SELECT *
|
||||||
|
FROM (SELECT COUNT(*) AS count FROM tc_sjly where type =1) count,
|
||||||
|
(SELECT COUNT(*) AS count1 FROM tc_sjly where type=2) count1,
|
||||||
|
(SELECT COUNT(*) AS count2 FROM tc_xtjc ) count2;
|
||||||
|
</select>
|
||||||
|
<select id="getScreenOpinionReport" resultType="com.ruoyi.tcZz.domain.reponse.ScreenOpinionReportResponse">
|
||||||
|
SELECT *
|
||||||
|
FROM (SELECT COUNT(*) AS count FROM tc_yqbg where type =1 and isStatus=1) count,
|
||||||
|
(SELECT COUNT(*) AS count1 FROM tc_yqbg where type=2 and isStatus=1) count1,
|
||||||
|
(SELECT COUNT(*) AS count2 FROM tc_yqbg where type=3 and isStatus=1 ) count2,
|
||||||
|
(SELECT COUNT(*) AS count3 FROM tc_yqbg where type=4 and isStatus=1 ) count3,
|
||||||
|
(SELECT COUNT(*) AS count4 FROM tc_yqbg where type=5 and isStatus=1 ) count4;
|
||||||
|
</select>
|
||||||
|
</mapper>
|
Loading…
Reference in new issue