智慧保安后台管理-外网项目备份
钟日健
2026-06-01 62eb499b0c969f246d3245d1429a97da4de1ce28
src/main/java/org/springblade/modules/simulateexam/mapper/SimulateExamRecordMapper.xml
@@ -4,10 +4,18 @@
    <!--自定义查询模拟考试记录分页数据-->
    <select id="selectSimulateExamRecordPage" resultType="org.springblade.modules.simulateexam.vo.SimulateExamRecordVO">
        SELECT ser.*,bu.real_name as userName,bd.dept_name as deptName FROM simulate_exam_record ser
        LEFT JOIN blade_user bu ON bu.phone = ser.phone
        SELECT
            DISTINCT ser.*,
            bu.real_name AS userName,
            bd.dept_name AS deptName
        FROM
            simulate_exam_record ser
        LEFT JOIN blade_user bu ON bu.cardid = ser.id_card_no
        LEFT JOIN blade_dept bd ON bd.id = bu.dept_id
        where 1=1
        WHERE
            bu.is_deleted = 0
            AND ser.id_card_no IS NOT NULL
            AND ser.id_card_no != ""
        <if test="simulateExamRecord.phone != null and simulateExamRecord.phone != ''" >
            and ser.phone LIKE CONCAT('%',#{simulateExamRecord.phone},'%')
        </if>