大屏接口编写

duhanyu
dongdingding 1 year ago
parent 1bd151b3d8
commit 87a10b33a4

@ -28,12 +28,18 @@ public class ScreenSupervisionResponse {
@ApiModelProperty("政府网站")
private Integer count2;
/**
*
*
*/
@ApiModelProperty("监管单位、网站监测")
@ApiModelProperty("监管单位")
private Integer count3;
/**
*
*/
@ApiModelProperty("网站监测")
private Integer count5;
/**
*IDC
*/

@ -6,25 +6,26 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<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;
FROM (SELECT COUNT(*) AS count FROM tc_dbxt WHERE isStatus=1 and area_id=1) count,
(SELECT COUNT(*) AS count1 FROM tc_dbdw WHERE isStatus = 1 and area_id=1) count1,
(SELECT COUNT(*) AS count2 FROM tc_zfwz WHERE isStatus = 1 and area_id=1) count2,
(SELECT COUNT(*) AS count3 FROM tc_jgdw WHERE isStatus = 1 and area_id=1 and type =1) count3,
(SELECT COUNT(*) AS count5 FROM tc_jgdw WHERE isStatus = 1 and area_id=1 and type =2) count5,
(SELECT COUNT(*) AS count4 FROM tc_idcdw WHERE isStatus = 1 and area_id=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;
FROM (SELECT COUNT(*) AS count FROM tc_sjly where type =1 and area_id=1) count,
(SELECT COUNT(*) AS count1 FROM tc_sjly where type=2 and area_id=1) count1,
(SELECT COUNT(*) AS count2 FROM tc_xtjc where area_id=1) 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;
FROM (SELECT COUNT(*) AS count FROM tc_yqbg where type =1 and isStatus=1 and area_id=1) count,
(SELECT COUNT(*) AS count1 FROM tc_yqbg where type=2 and isStatus=1 and area_id=1) count1,
(SELECT COUNT(*) AS count2 FROM tc_yqbg where type=3 and isStatus=1 and area_id=1) count2,
(SELECT COUNT(*) AS count3 FROM tc_yqbg where type=4 and isStatus=1 and area_id=1) count3,
(SELECT COUNT(*) AS count4 FROM tc_yqbg where type=5 and isStatus=1 and area_id=1) count4;
</select>
<select id="getScreenArticles" resultType="com.ruoyi.tcZz.domain.reponse.ScreenArticlesResponse">
SELECT *

Loading…
Cancel
Save