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

128 lines
4.5 KiB
XML
Raw Normal View History

2026-01-05 21:46:01 +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.ExpelledBizInfoMapper">
2026-01-06 19:53:09 +08:00
<select id="listExpelledObjectionInfo" resultType="com.chinaweal.aiccs.aiccs.expelled.vo.BizInfoVo">
SELECT
i.ID id,
i.BIZ_NO bizNo,
i.TRUTH truth,
i.REASON reason,
i.LAW law,
i."RESULT" result,
i.REMOVE_TIME removeTime,
i.STATUS status,
r.NOTICE_NO noticeNo,
e.ID entId,
e.ENT_NAME entName,
e.USCC uscc,
e.LEREP_NAME lerepName,
e.ADDRESS address,
r.SEND_STATUS sendStatus,
r.SEND_TIME sendTime,
r.IS_OBJECTION isObjection,
r.OPINION opinion,
r.IS_REMOVE isRemove,
r.REMOVE_OPINION removeOpinion
FROM
EXPELLED_BIZ_INFO i
LEFT JOIN EXPELLED_RESULT_INFO r ON i.ID = r.BIZ_ID
LEFT JOIN ENT_BASE_EXPELLED_INFO e ON r.ENT_ID = e.ID
<where>
AND i.STATUS IN ('1', '2')
AND r.IS_OBJECTION = '0'
<if test="map.bizNo != null and map.bizNo != ''">
AND i.BIZ_NO = #{map.bizNo}
</if>
<if test="map.entName != null and map.entName != ''">
AND e.ENT_NAME LIKE '%' || #{map.entName} || '%'
</if>
<if test="map.uscc != null and map.uscc != ''">
AND e.USCC = #{map.uscc}
</if>
</where>
</select>
<select id="listExpelledAuditInfo" resultType="com.chinaweal.aiccs.aiccs.expelled.vo.BizInfoVo">
SELECT
i.ID id,
i.BIZ_NO bizNo,
i.TRUTH truth,
i.REASON reason,
i.LAW law,
i."RESULT" result,
i.REMOVE_TIME removeTime,
i.STATUS status,
r.NOTICE_NO noticeNo,
e.ID entId,
e.ENT_NAME entName,
e.USCC uscc,
e.LEREP_NAME lerepName,
e.ADDRESS address,
r.SEND_STATUS sendStatus,
r.SEND_TIME sendTime,
r.IS_OBJECTION isObjection,
r.OPINION opinion,
r.IS_REMOVE isRemove,
r.REMOVE_OPINION removeOpinion
FROM
EXPELLED_BIZ_INFO i
LEFT JOIN EXPELLED_RESULT_INFO r ON i.ID = r.BIZ_ID
LEFT JOIN ENT_BASE_EXPELLED_INFO e ON r.ENT_ID = e.ID
<where>
AND i.STATUS IN ('1', '2', '3')
AND r.IS_OBJECTION = '0'
AND r.IS_REMOVE IS NULL
<if test="map.bizNo != null and map.bizNo != ''">
AND i.BIZ_NO = #{map.bizNo}
</if>
<if test="map.entName != null and map.entName != ''">
AND e.ENT_NAME LIKE '%' || #{map.entName} || '%'
</if>
<if test="map.uscc != null and map.uscc != ''">
AND e.USCC = #{map.uscc}
</if>
</where>
</select>
<select id="listExpelledAnnouncementInfo" resultType="com.chinaweal.aiccs.aiccs.expelled.vo.BizInfoVo">
SELECT
i.ID id,
i.BIZ_NO bizNo,
i.TRUTH truth,
i.REASON reason,
i.LAW law,
i."RESULT" result,
i.REMOVE_TIME removeTime,
i.STATUS status,
r.NOTICE_NO noticeNo,
e.ID entId,
e.ENT_NAME entName,
e.USCC uscc,
e.LEREP_NAME lerepName,
e.ADDRESS address,
r.SEND_STATUS sendStatus,
r.SEND_TIME sendTime,
r.IS_OBJECTION isObjection,
r.OPINION opinion,
r.IS_REMOVE isRemove,
r.REMOVE_OPINION removeOpinion
FROM
EXPELLED_BIZ_INFO i
LEFT JOIN EXPELLED_RESULT_INFO r ON i.ID = r.BIZ_ID
LEFT JOIN ENT_BASE_EXPELLED_INFO e ON r.ENT_ID = e.ID
<where>
AND i.STATUS IN ('4')
<if test="map.bizNo != null and map.bizNo != ''">
AND i.BIZ_NO = #{map.bizNo}
</if>
<if test="map.entName != null and map.entName != ''">
AND e.ENT_NAME LIKE '%' || #{map.entName} || '%'
</if>
<if test="map.uscc != null and map.uscc != ''">
AND e.USCC = #{map.uscc}
</if>
</where>
</select>
2026-01-05 21:46:01 +08:00
</mapper>