feat(study): 添加学生统计查询中的年份筛选功能

dev
zhaokai 2026-03-09 17:55:40 +08:00
parent 12407cb28a
commit 71e7ec40cc
1 changed files with 4 additions and 0 deletions

View File

@ -171,6 +171,10 @@
#{phone} #{phone}
</foreach> </foreach>
</if> </if>
<if test="params.year != null and params.year != ''">
AND (DATE_FORMAT(c.start_time, '%Y') = #{params.studentId}
OR DATE_FORMAT(c.start_time, '%Y') = #{params.studentId})
</if>
and s.delete_enum = 'FALSE' and s.delete_enum = 'FALSE'
and c.delete_enum = 'FALSE' and c.delete_enum = 'FALSE'
and c.state != 1 and c.state != 1