龚焕茏
2024-07-16 0c8aa3b498092350c846c80de2f7bb4f42025964
feat:随机试卷创建部门本部门查看
2个文件已修改
5 ■■■■■ 已修改文件
src/main/java/com/mindskip/xzs/domain/vo/ExamTemplatesVO.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/ExamTemplatesMapper.xml 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/mindskip/xzs/domain/vo/ExamTemplatesVO.java
@@ -46,6 +46,6 @@
    /**
     * 时间周期
     */
    private List<LocalDateTime> period;
    private List<String> period;
}
src/main/resources/mapper/ExamTemplatesMapper.xml
@@ -62,6 +62,7 @@
        left join t_exam_templates_user u on e.id = u.templates_id
        LEFT JOIN t_exam_templates_subject ts ON e.id = ts.templates_id
        LEFT JOIN t_subject s ON ts.subject_id = s.id
        LEFT JOIN t_user_department tud ON e.create_user = tud.user_id
        <where>
            <if test="status != null">
                and e.status = 0
@@ -73,7 +74,7 @@
                and u.user_id = #{userId}
            </if>
            <if test="deptId != null and deptId.size() > 0">
                and e.dept_id in <foreach collection="deptId" item="item" separator="," open="(" close=")"> #{item} </foreach>
                and tud.department_id in <foreach collection="deptId" item="item" separator="," open="(" close=")"> #{item} </foreach>
            </if>
            <if test="name != null and name != ''">
                and INSTR(e.name, #{name})