aiccs-api/src/main/resources/mybatis/mapper/aiccs/expelled/ExpelledAuditInfoMapper.xml

51 lines
1.9 KiB
XML
Raw Normal View History

2026-01-07 16:26:11 +08:00
<?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.chinaweal.aiccs.aiccs.expelled.mapper.ExpelledAuditInfoMapper">
<select id="listHavedoAuditInfo" resultType="com.chinaweal.aiccs.aiccs.expelled.vo.AuditInfoVo">
SELECT
2026-01-12 10:04:47 +08:00
i.ID auditId,
2026-01-07 16:26:11 +08:00
i.AUDIT_NO auditNo,
2026-01-12 10:04:47 +08:00
r.ID resultId,
2026-01-07 16:26:11 +08:00
r.IS_OBJECTION isObjection,
r.OPINION opinion,
r.IS_REMOVE isRemove,
r.AUDIT_OPINION auditOpinion,
2026-01-12 10:04:47 +08:00
i.REMOVE_DATE removeDate,
i.REMOVE_ORG_NO removeOrgNo,
i.REMOVE_ORG_NAME removeOrgName,
2026-01-07 16:26:11 +08:00
e.ID entId,
e.BIZ_ID bizId,
e.EXPELLED_ID expelledId,
e.NOTICE_NO noticeNo,
b.ENT_NAME entName,
b.USCC uscc,
b.LEREP_NAME lerepName,
b.ADDRESS address,
e.SEND_STATUS sendStatus,
e.SEND_TIME sendTime
FROM
EXPELLED_AUDIT_INFO i
LEFT JOIN EXPELLED_RESULT_INFO r ON i.ID = r.AUDIT_ID
LEFT JOIN EXPELLED_ENT_INFO e ON r.ENT_ID = e.ID
LEFT JOIN ENT_BASE_EXPELLED_INFO b ON e.EXPELLED_ID = b.ID
<where>
<if test="map.bizType != null and map.bizType != ''">
AND i.BIZ_TYPE = #{map.bizType}
</if>
<if test="map.auditNo != null and map.auditNo != ''">
AND i.AUDIT_NO = #{map.auditNo}
</if>
<if test="map.entName != null and map.entName != ''">
AND b.ENT_NAME LIKE '%' || #{map.entName} || '%'
</if>
<if test="map.uscc != null and map.uscc != ''">
AND b.USCC = #{map.uscc}
</if>
2026-01-12 10:04:47 +08:00
<if test="map.state != null and map.state != ''">
AND r.STATE = #{map.state}
</if>
2026-01-07 16:26:11 +08:00
</where>
</select>
</mapper>