|
|
@ -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
|
|
|
|