智慧保安后台管理-外网项目备份
zhongrj
2023-09-17 8853292babb2ad94de4a3207966f1e83b767cd2d
src/main/java/org/springblade/modules/exam/mapper/ScoreAuditRecordsMapper.xml
@@ -11,7 +11,7 @@
            bu.sex,bu.cardid idCardNo,
            ifnull(DATE_FORMAT(NOW(), '%Y') - SUBSTRING( bu.cardid,7,4),0) age,
            bu1.real_name applyRealName,
            ke.exam_name examName,
            ke.exam_name examName,date_format(ke.start_time,'%Y-%m-%d') examTime,
            bt1.dept_name applyUnitName
        FROM
            sys_score_audit_records ssar
@@ -51,6 +51,7 @@
            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>
@@ -69,6 +70,9 @@
        <if test="scoreAuditRecords.examName!=null and  scoreAuditRecords.examName!=''">
            and ke.exam_name like concat('%', #{scoreAuditRecords.examName},'%')
        </if>
        <if test="scoreAuditRecords.examTime!=null and  scoreAuditRecords.examTime!=''">
            and date_format(ke.start_time,'%Y-%m-%d') = #{scoreAuditRecords.examTime}
        </if>
        <if test="scoreAuditRecords.trainUnitId!=null and  scoreAuditRecords.trainUnitId!=''">
            and bt1.id = #{scoreAuditRecords.trainUnitId}
        </if>