智慧保安后台管理-外网-验收版本
Administrator
2021-09-13 0d99d26f39e055ee17fdbf2c5cbd1daf695c4310
src/main/java/org/springblade/modules/exam/mapper/ExamScoreMapper.xml
@@ -189,7 +189,7 @@
        exam_score exam
        LEFT JOIN blade_user user ON exam.user_id = user.id
        WHERE 1 = 1 AND theory_grade is not null
        <if test="jurisdiction!=null and jurisdiction=='' and jurisdiction!='1123598813738675201'">
        <if test="jurisdiction!=null and jurisdiction!='' and jurisdiction!='1123598813738675201'">
            AND user.jurisdiction = #{jurisdiction}
        </if>
        <if test="deptid!=null and deptid!=''">
@@ -207,7 +207,7 @@
        exam_score exam
        LEFT JOIN blade_user user ON exam.user_id = user.id
        WHERE 1 = 1 AND learn_grade is not null
        <if test="jurisdiction!=null and jurisdiction=='' and jurisdiction!='1123598813738675201'">
        <if test="jurisdiction!=null and jurisdiction!='' and jurisdiction!='1123598813738675201'">
            AND user.jurisdiction = #{jurisdiction}
        </if>
        <if test="deptid!=null and deptid!=''">
@@ -217,6 +217,24 @@
        exam.learn_grade
    </select>
    <select id="scorePage"  resultType="org.springblade.modules.exam.vo.ExamScoreVO">
        SELECT
            exam.*,
            user.jurisdiction,
            user.dept_id
        FROM
            exam_score exam
        LEFT JOIN blade_user user ON exam.user_id = user.id
        WHERE
        1 = 1
        <if test="jurisdiction!=null and jurisdiction!='' and jurisdiction!='1123598813738675201'">
            AND user.jurisdiction = #{jurisdiction}
        </if>
        <if test="deptid!=null and deptid!=''">
                AND user.dept_id = #{deptid}
        </if>
    </select>
    <!--根据用户身份证号查询考试成绩-->
    <select id="getExamScoreInfoByIdCardNo" resultType="org.springblade.modules.exam.entity.ExamScore">
        select