Administrator
2021-07-18 60a09b74e2091c49da33c000c9e4b61e2cdd237b
src/main/java/org/springblade/modules/apply/mapper/ApplyMapper.xml
@@ -5,7 +5,9 @@
    <!--考试报名分页信息-->
    <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
        FROM
            sys_apply sa
        left join
@@ -44,4 +46,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>