大屏接口修改

dongdingding
董丁丁 2 years ago
parent 14226cfda6
commit d21415ff7c

@ -19,10 +19,10 @@ public class ZongzhiTbAreaResponse {
private double pt; private double pt;
/** /**
* * ID
*/ */
@ApiModelProperty(value = "属地") @ApiModelProperty(value = "属地ID")
private String locationName; private String areaId;
/** /**

@ -57,9 +57,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
from tc_idc_unit from tc_idc_unit
</select> </select>
<select id="getTbArea" resultType="com.ruoyi.screen.domain.response.ZongzhiTbAreaResponse"> <select id="getTbArea" resultType="com.ruoyi.screen.domain.response.ZongzhiTbAreaResponse">
SELECT ROUND(COUNT(*) * 100.0 / SUM(COUNT(*)) OVER (), 1) AS pt, count(*) as count,location_name as locationName SELECT ROUND(COUNT(*) * 100.0 / SUM(COUNT(*)) OVER (), 1) AS pt, count(*) as count,area_id as areaId
from tc_tb where tb_type='1' from tc_tb where tb_type='1'
group by location_name group by area_id
</select> </select>
<select id="getTbDept" resultType="com.ruoyi.screen.domain.response.ZongzhiTbDeptResponse"> <select id="getTbDept" resultType="com.ruoyi.screen.domain.response.ZongzhiTbDeptResponse">
SELECT COUNT(*) AS count, dep_name SELECT COUNT(*) AS count, dep_name

Loading…
Cancel
Save