智慧保安后台管理-外网项目备份
guoshilong
2024-01-04 b431c00a3e736e27599cd34793c65369fdb7b8cd
src/main/java/org/springblade/modules/simulateexam/mapper/SimulateExamRecordMapper.xml
@@ -10,12 +10,12 @@
            bd.dept_name AS deptName
        FROM
            simulate_exam_record ser
        LEFT JOIN blade_user bu ON bu.phone = ser.phone
        LEFT JOIN blade_user bu ON bu.cardid = ser.id_card_no
        LEFT JOIN blade_dept bd ON bd.id = bu.dept_id
        WHERE
            bu.is_deleted = 0
            AND ser.phone IS NOT NULL
            AND ser.phone != ""
            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>