src/main/resources/mapper/ExamTemplatesMapper.xml
@@ -70,6 +70,9 @@
            <if test="userId != null">
                and u.user_id = #{userId}
            </if>
            <if test="deptId != null">
                and e.dept_id = #{deptId}
            </if>
            <if test="now !=null">
                and #{now} between e.start_time and e.end_time
            </if>
@@ -93,4 +96,4 @@
        where id = #{id}
    </delete>
</mapper>
</mapper>