智慧保安后台管理-外网
Administrator
2021-08-10 c8ebf3038d2a7f69d9eb40f5a276dc3fa826fa9b
src/main/java/org/springblade/modules/apply/mapper/ApplyMapper.xml
@@ -227,4 +227,51 @@
        and sa.exam_id is null
    </select>
    <!--查询考试人数-->
    <select id="getApplyDeatailNum" resultType="java.lang.Integer">
        SELECT
        count(*)
        FROM
        sys_apply sa
        left join
        blade_user bu
        on
        sa.user_id = bu.id
        WHERE
        1=1
        and is_exam = 1
        and sa.apply_status = 2
        and bu.is_apply = 1
        and sa.exam_id is not null
    </select>
    <!--查询已报名的的人信息集合-->
    <select id="getApplyDetailList" resultType="org.springblade.modules.apply.vo.ApplyVO">
        SELECT
            sa.candidate_no candidateNo,sa.apply_time applyTime,
            ke.exam_name examName,
            bu.real_name realName,bu.cardid idCardNo,bu.sex,
            bd.dept_name deptName,"保安证" applyCard
        FROM
        sys_apply sa
        left join
        blade_user bu
        on
        sa.user_id = bu.id
        left join
        ksxt_exam ke
        on
        ke.id = sa.exam_id
        left join
        blade_dept bd
        on
        bd.id = bu.dept_id
        WHERE
        1=1
        and is_exam = 1
        and sa.apply_status = 2
        and bu.is_apply = 1
        and sa.exam_id is not null
    </select>
</mapper>