完成用户第一阶段的需求

This commit is contained in:
2025-08-01 08:33:03 +08:00
parent 9b6f200292
commit 7514482e33
4 changed files with 7 additions and 7 deletions

View File

@ -106,7 +106,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
from cj_student
where sfqr = 1
and cast(bynf as unsigned)
between YEAR(CURRENT_DATE) - #{year} + 1 and YEAR(CURRENT_DATE)
between YEAR(CURRENT_DATE) - #{year} and YEAR(CURRENT_DATE)
group by bynf order by bynf desc
</select>
@ -120,7 +120,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
FROM cj_student
where sfqr = 1 and sydsh is not null
and cast(bynf as unsigned)
between YEAR(CURRENT_DATE) - #{year} + 1 and YEAR(CURRENT_DATE)
between YEAR(CURRENT_DATE) - #{year} and YEAR(CURRENT_DATE)
GROUP BY
CASE
WHEN sydsh = '山东' THEN sydshi