2026-07-01 17:32: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="org.qinan.safetyeval.infrastructure.mapper.QualFilingReviewMapper">
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 通用查询映射结果 -->
|
|
|
|
|
|
<resultMap id="BaseResultMap" type="org.qinan.safetyeval.infrastructure.dataobject.QualFilingReviewDO">
|
|
|
|
|
|
<id column="id" property="id"/>
|
|
|
|
|
|
<result column="filing_id" property="filingId"/>
|
|
|
|
|
|
<result column="review_result" property="reviewResult"/>
|
|
|
|
|
|
<result column="review_result_remark" property="reviewResultRemark"/>
|
|
|
|
|
|
<result column="filing_expert_id" property="filingExpertId"/>
|
|
|
|
|
|
<result column="filing_expert_name" property="filingExpertName"/>
|
|
|
|
|
|
<result column="review_opinion" property="reviewOpinion"/>
|
|
|
|
|
|
<result column="delete_enum" property="deleteEnum"/>
|
|
|
|
|
|
<result column="remarks" property="remarks"/>
|
|
|
|
|
|
<result column="create_name" property="createName"/>
|
|
|
|
|
|
<result column="update_name" property="updateName"/>
|
|
|
|
|
|
<result column="tenant_id" property="tenantId"/>
|
|
|
|
|
|
<result column="version" property="version"/>
|
|
|
|
|
|
<result column="create_time" property="createTime"/>
|
|
|
|
|
|
<result column="update_time" property="updateTime"/>
|
|
|
|
|
|
<result column="create_id" property="createId"/>
|
|
|
|
|
|
<result column="update_id" property="updateId"/>
|
|
|
|
|
|
<result column="env" property="env"/>
|
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 通用查询结果列 -->
|
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
|
|
`id`, `filing_id`, `review_result`, `review_result_remark`, `filing_expert_id`, `filing_expert_name`, `review_opinion`, `delete_enum`, `remarks`, `create_name`, `update_name`, `tenant_id`, `version`, `create_time`, `update_time`, `create_id`, `update_id`, `env`
|
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
2026-08-17 11:54:42 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 资质审核记录分页查询,LEFT JOIN 专家表获取专家名称 -->
|
|
|
|
|
|
<select id="page" resultType="org.qinan.safetyeval.client.co.QualFilingReviewCO">
|
|
|
|
|
|
SELECT
|
|
|
|
|
|
qfr.id,
|
|
|
|
|
|
qfr.filing_id,
|
|
|
|
|
|
qfr.review_result,
|
|
|
|
|
|
qfr.review_result_remark,
|
|
|
|
|
|
qfr.filing_expert_id,
|
|
|
|
|
|
qfr.review_opinion,
|
|
|
|
|
|
qfe.user_name filingExpertName
|
|
|
|
|
|
FROM qual_filing_review qfr
|
|
|
|
|
|
LEFT JOIN qual_filing_expert qfe ON qfr.filing_expert_id = qfe.id
|
|
|
|
|
|
<where>
|
|
|
|
|
|
qfr.delete_enum = 'false'
|
|
|
|
|
|
<if test="query.filingId != null">
|
|
|
|
|
|
AND qfr.filing_id = #{query.filingId}
|
|
|
|
|
|
</if>
|
|
|
|
|
|
<if test="query.reviewResult != null and query.reviewResult != ''">
|
|
|
|
|
|
AND qfr.review_result = #{query.reviewResult}
|
|
|
|
|
|
</if>
|
|
|
|
|
|
<if test="query.filingExpertId != null">
|
|
|
|
|
|
AND qfr.filing_expert_id = #{query.filingExpertId}
|
|
|
|
|
|
</if>
|
|
|
|
|
|
</where>
|
|
|
|
|
|
ORDER BY qfr.id DESC
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
2026-07-01 17:32:01 +08:00
|
|
|
|
</mapper>
|