智慧保安后台管理-外网-验收版本
Administrator
2021-12-04 f7115db7eb622bcd2dd4ec62ce6f2b380a46bc08
src/main/java/org/springblade/modules/exam/mapper/ExamPaperMapper.xml
@@ -235,10 +235,17 @@
    <!--查询当前考试的报名人员数量-->
    <select id="getApplyNumber" resultType="java.lang.Integer">
        select count(*) from sys_apply
        where
        exam_id = #{examPaper.id}
        and apply_status = 2
        select sum(a) from(
            select count(*) a from sys_apply
            where
            exam_id = #{examPaper.id}
            union all
            (
            select count(*) a from sys_training_registration
            where
            train_exam_id = #{examPaper.id}
            )
        ) c
    </select>
    <!--查询当前考试的报名人员数量,模拟考试-->