智慧保安后台管理-外网
Administrator
2021-12-15 8d43111bd0e598bc0b2014cbfa69a32e74959dff
src/main/java/org/springblade/modules/exam/mapper/ScoreAuditRecordsMapper.xml
@@ -11,7 +11,8 @@
            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,
            bt1.dept_name applyUnitName
        FROM
            sys_score_audit_records ssar
        left join
@@ -71,6 +72,9 @@
        <if test="scoreAuditRecords.trainUnitId!=null and  scoreAuditRecords.trainUnitId!=''">
            and bt1.id = #{scoreAuditRecords.trainUnitId}
        </if>
        <if test="scoreAuditRecords.applyUnitName!=null and  scoreAuditRecords.applyUnitName!=''">
            and bt1.dept_name like concat('%',#{scoreAuditRecords.applyUnitName},'%')
        </if>
        <if test="scoreAuditRecords.status!=null">
            and ssar.status = #{scoreAuditRecords.status}
        </if>