智慧保安后台管理-外网项目备份
钟日健
2026-06-01 62eb499b0c969f246d3245d1429a97da4de1ce28
src/main/java/org/springblade/modules/exam/mapper/ScoreAuditRecordsMapper.xml
@@ -12,7 +12,8 @@
            ifnull(DATE_FORMAT(NOW(), '%Y') - SUBSTRING( bu.cardid,7,4),0) age,
            bu1.real_name applyRealName,
            ke.exam_name examName,date_format(ke.start_time,'%Y-%m-%d') examTime,
            bt1.dept_name applyUnitName
            bt1.dept_name applyUnitName,
            bu2.real_name as auditUserName
        FROM
            sys_score_audit_records ssar
        left join
@@ -47,10 +48,15 @@
            sys_jurisdiction sj
        on
            sj.id = si.jurisdiction
        left join
            blade_user bu2
        on
            ssar.audit_user = bu2.id
        WHERE
            1=1
        and bu.status = 1
        and bu.is_deleted = 0
        and es.is_deleted = 0
        <if test="scoreAuditRecords.jurisdiction!=null and scoreAuditRecords.jurisdiction!='' and scoreAuditRecords.jurisdiction!='1372091709474910209'">
            and (sj.id=#{scoreAuditRecords.jurisdiction} or sj.parent_id=#{scoreAuditRecords.jurisdiction})
        </if>