Administrator
2021-07-18 707cf223a3880b937eee7a5b114f526c4865c4ab
src/main/java/org/springblade/modules/apply/mapper/ApplyMapper.xml
@@ -5,7 +5,10 @@
    <!--考试报名分页信息-->
    <select id="selectApplyPage" resultType="org.springblade.modules.apply.vo.ApplyVO">
        SELECT
            sa.*,ke.total_score paperScore,ke.exam_type examType,ke.start_time startTime
            sa.id,sa.user_id userId,sa.candidate_no candidateNo,apply_time,exam_id examId,
            ke.total_score paperScore,ke.exam_type examType,ke.start_time examTime,ke.exam_name examName,
            bu.real_name name,
            bd.dept_name deptName
        FROM
            sys_apply sa
        left join
@@ -16,6 +19,10 @@
            blade_user bu
        on
            sa.user_id = bu.id
        left join
            blade_dept bd
        on
            bd.id = bu.dept_id
        WHERE
            1=1
        <if test="apply.name!=null and  apply.name!=''">
@@ -44,4 +51,13 @@
            and id = #{apply.id}
        </if>
    </select>
    <!--获取准考证前缀相同的数量-->
    <select id="getCandidateNoCount" resultType="java.lang.Integer">
        select count(*) from sys_apply
        where 1=1
        <if test="result!=null and result!=''">
            and candidate_no like concat('%', #{result},'%')
        </if>
    </select>
</mapper>