首页固定死的统计展示

This commit is contained in:
2025-06-30 15:24:59 +08:00
parent a0b941e3f7
commit a5de881f9d
12 changed files with 264 additions and 8 deletions

View File

@ -98,4 +98,34 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</foreach>
group by answer
</select>
<select id="selectBynf" resultType="com.ruoyi.dw.domain.vo.BynfVo">
select bynf,count(0) as bubf_count from cj_student where sfqr = 1 group by bynf order by bynf desc
</select>
<select id="selectSyd" resultType="com.ruoyi.dw.domain.vo.SydVo">
SELECT
CASE
WHEN sydsh = '山东省' THEN sydshi
ELSE '省外'
END AS city,
COUNT(*) AS student_count
FROM cj_student
where sfqr = 1
GROUP BY
CASE
WHEN sydsh = '山东省' THEN sydshi
ELSE '省外'
END
ORDER BY
CASE
WHEN syd_sheng = '山东省' THEN sydshi
ELSE sydsh
END;
</select>
<select id="selectDwxz" resultType="com.ruoyi.dw.domain.vo.DwxzVo">
select dwxz,count(0) as dwxz_count from cj_student where sfqr = 1 group by dwxz
</select>
</mapper>