大屏接口修改

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

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

@ -57,9 +57,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
from tc_idc_unit
</select>
<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'
group by location_name
group by area_id
</select>
<select id="getTbDept" resultType="com.ruoyi.screen.domain.response.ZongzhiTbDeptResponse">
SELECT COUNT(*) AS count, dep_name

Loading…
Cancel
Save