<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.unis.policy.info.modular.auditRequest.mapper.AuditRequestMapper">
    <select id="queryReconds" resultType="java.util.Map">
        SELECT
        c.name  as "auditUserName",
        DATE_FORMAT(a.audit_time,'%Y-%m-%d %T') as "auditTime",
        DATE_FORMAT(b.launch_time,'%Y-%m-%d %T') as "launchTime",
        a.audit_status as "auditStatus",
        a.audit_advice as "auditAdvice"
    FROM
        biz_audit_record a
    INNER JOIN biz_al_policy_file_report b ON a.request_id = b.id
    LEFT JOIN sys_user c on a.audit_user_id = c.ID
     where a.request_id = #{reporttId}
    ORDER BY a.create_time
    </select>
</mapper>