智慧保安后台管理-外网
Administrator
2021-11-23 d4ad4cd6c127aa5944685c4aa098e0015139e1a4
src/main/java/org/springblade/modules/exam/mapper/ExamPaperMapper.xml
@@ -257,10 +257,14 @@
    <!--查询当前考试的报名人员数量,模拟考试-->
    <select id="getTrainNumber" resultType="java.lang.Integer">
        select count(*) from sys_training_registration
        select count(*) from sys_training_registration str
        left join
            blade_user bu
        on
            bu.id = str.user_id
        where
        train_exam_id = #{examPaper.id}
        and cancel = 1
            bu.is_deleted = 0 and bu.status = 1
        and train_exam_id = #{examPaper.id}
    </select>
    <!--根据用户id查询报名信息-->
@@ -324,4 +328,18 @@
        </foreach>
    </insert>
    <!--查询当前考试的报名人员数量,模拟考试-->
    <select id="getExamNumber" resultType="java.lang.Integer">
        select count(*) from sys_training_registration str
        left join
            blade_user bu
        on
            bu.id = str.user_id
        where
            bu.is_deleted = 0 and bu.status = 1
        and train_exam_id = #{examPaper.id}
        and (is_exam = 2 or is_exam = 3)
        and cancel = 1
    </select>
</mapper>