限制了给辅导员发送心理预警的次数

This commit is contained in:
2025-08-21 11:34:30 +08:00
parent 6454c05b96
commit 985cc16eca
3 changed files with 32 additions and 0 deletions

View File

@@ -43,4 +43,12 @@
WHERE student_id = #{stuNo}
ORDER BY created_time DESC
</select>
<!-- 查询今天该学生是否已经填写过心理评测 陈冠元 -->
<select id="countTodayByStudentId" resultType="int">
SELECT COUNT(*)
FROM student_mental_rating
WHERE student_id = #{studentId}
AND DATE(created_time) = #{today}
</select>
</mapper>