|
@@ -15,6 +15,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="updateTime" column="update_time"/>
|
|
<result property="updateTime" column="update_time"/>
|
|
|
<result property="remark" column="remark"/>
|
|
<result property="remark" column="remark"/>
|
|
|
<result property="keyValue" column="key_value"/>
|
|
<result property="keyValue" column="key_value"/>
|
|
|
|
|
+ <result property="certificateId" column="certificate_id"/>
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<resultMap type="com.zhongzheng.modules.base.vo.CertificateTpVo" id="CertificateTpVoResult">
|
|
<resultMap type="com.zhongzheng.modules.base.vo.CertificateTpVo" id="CertificateTpVoResult">
|
|
@@ -27,15 +28,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="remark" column="remark"/>
|
|
<result property="remark" column="remark"/>
|
|
|
<result property="key" column="key"/>
|
|
<result property="key" column="key"/>
|
|
|
<result property="certificateName" column="certificate_name"/>
|
|
<result property="certificateName" column="certificate_name"/>
|
|
|
|
|
+ <result property="certificateTypeName" column="certificate_type_name"/>
|
|
|
|
|
+ <result property="certificateId" column="certificate_id"/>
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<select id="selectList" parameterType="com.zhongzheng.modules.base.bo.CertificateTpQueryBo" resultMap="CertificateTpVoResult">
|
|
<select id="selectList" parameterType="com.zhongzheng.modules.base.bo.CertificateTpQueryBo" resultMap="CertificateTpVoResult">
|
|
|
SELECT
|
|
SELECT
|
|
|
ct.*,
|
|
ct.*,
|
|
|
- c.certificate_name
|
|
|
|
|
|
|
+ c.certificate_name as certificate_type_name,
|
|
|
|
|
+ cc.certificate_name
|
|
|
FROM
|
|
FROM
|
|
|
certificate_tp ct
|
|
certificate_tp ct
|
|
|
LEFT JOIN certificate c ON ct.type_id = c.id
|
|
LEFT JOIN certificate c ON ct.type_id = c.id
|
|
|
|
|
+ LEFT JOIN certificate_common cc ON cc.id = ct.certificate_id
|
|
|
where 1=1
|
|
where 1=1
|
|
|
<if test="status != null and status.size()!=0 ">
|
|
<if test="status != null and status.size()!=0 ">
|
|
|
AND ct.status in
|
|
AND ct.status in
|