大屏接口编写

Lvtianfang
dongdingding 1 year ago
parent 809c3f5712
commit c9eab27d4d

@ -91,5 +91,5 @@ public interface ScreenMapper {
* *
* @return * @return
*/ */
ScreenDepartmentResponse getScreenDepartment(); List<ScreenDepartmentResponse> getScreenDepartment();
} }

@ -87,5 +87,5 @@ public interface ScreenService {
* *
* @return * @return
*/ */
ScreenDepartmentResponse getScreenDepartment(); List<ScreenDepartmentResponse> getScreenDepartment();
} }

@ -66,7 +66,7 @@ public class ScreenServiceImpl implements ScreenService {
} }
@Override @Override
public ScreenDepartmentResponse getScreenDepartment() { public List<ScreenDepartmentResponse> getScreenDepartment() {
return screenMapper.getScreenDepartment(); return screenMapper.getScreenDepartment();
} }
} }

@ -6,12 +6,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="getScreenSupervision" resultType="com.ruoyi.tcZz.domain.reponse.ScreenSupervisionResponse"> <select id="getScreenSupervision" resultType="com.ruoyi.tcZz.domain.reponse.ScreenSupervisionResponse">
SELECT * SELECT *
FROM (SELECT COUNT(*) AS count FROM tc_dbxt WHERE isStatus=1 and area_id=1) count, FROM (SELECT COUNT(*) AS count FROM tc_dbxt WHERE isStatus=1) count,
(SELECT COUNT(*) AS count1 FROM tc_dbdw WHERE isStatus = 1 and area_id=1) count1, (SELECT COUNT(*) AS count1 FROM tc_dbdw WHERE isStatus = 1) count1,
(SELECT COUNT(*) AS count2 FROM tc_zfwz WHERE isStatus = 1 and area_id=1) count2, (SELECT COUNT(*) AS count2 FROM tc_zfwz WHERE isStatus = 1 ) count2,
(SELECT COUNT(*) AS count3 FROM tc_jgdw WHERE isStatus = 1 and area_id=1 and type =1) count3, (SELECT COUNT(*) AS count3 FROM tc_jgdw WHERE isStatus = 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 count5 FROM tc_jgdw WHERE isStatus = 1 and type =2) count5,
(SELECT COUNT(*) AS count4 FROM tc_idcdw WHERE isStatus = 1 and area_id=1) count4; (SELECT COUNT(*) AS count4 FROM tc_idcdw WHERE isStatus = 1 ) count4;
</select> </select>
<select id="getScreenSource" resultType="com.ruoyi.tcZz.domain.reponse.ScreenSourceResponse"> <select id="getScreenSource" resultType="com.ruoyi.tcZz.domain.reponse.ScreenSourceResponse">
SELECT * SELECT *
@ -21,17 +21,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select> </select>
<select id="getScreenOpinionReport" resultType="com.ruoyi.tcZz.domain.reponse.ScreenOpinionReportResponse"> <select id="getScreenOpinionReport" resultType="com.ruoyi.tcZz.domain.reponse.ScreenOpinionReportResponse">
SELECT * SELECT *
FROM (SELECT COUNT(*) AS count FROM tc_yqbg where type =1 and isStatus=1 and area_id=1) count, 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 and area_id=1) count1, (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 and area_id=1) count2, (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 and area_id=1) count3, (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 and area_id=1) count4; (SELECT COUNT(*) AS count4 FROM tc_yqbg where type=5 and isStatus=1 ) count4;
</select> </select>
<select id="getScreenArticles" resultType="com.ruoyi.tcZz.domain.reponse.ScreenArticlesResponse"> <select id="getScreenArticles" resultType="com.ruoyi.tcZz.domain.reponse.ScreenArticlesResponse">
SELECT * SELECT *
FROM (SELECT COUNT(*) AS count FROM tc_wpwzlyqk where type =1 and isStatus=1 and area_id =1) count, FROM (SELECT COUNT(*) AS count FROM tc_wpwzlyqk where type =1 and isStatus=1) count,
(SELECT COUNT(*) AS count1 FROM tc_wpwzlyqk where type=2 and isStatus=1 and area_id =1) count1, (SELECT COUNT(*) AS count1 FROM tc_wpwzlyqk where type=2 and isStatus=1 ) count1,
(SELECT COUNT(*) AS count2 FROM tc_wpwzlyqk where type=3 and isStatus=1 and area_id =1) count2; (SELECT COUNT(*) AS count2 FROM tc_wpwzlyqk where type=3 and isStatus=1 ) count2;
</select> </select>
<select id="getScreenQinglang" resultType="com.ruoyi.tcZz.domain.reponse.ScreenQinglangWeifanResponse"> <select id="getScreenQinglang" resultType="com.ruoyi.tcZz.domain.reponse.ScreenQinglangWeifanResponse">

Loading…
Cancel
Save