|
|
@@ -2,7 +2,7 @@
|
|
|
<!DOCTYPE mapper
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
-<mapper namespace="com.zhongzheng.system.mapper.CertificateCommonMapper">
|
|
|
+<mapper namespace="com.zhongzheng.modules.base.mapper.CertificateCommonMapper">
|
|
|
|
|
|
<resultMap type="com.zhongzheng.modules.base.domain.CertificateCommon" id="CertificateCommonResult">
|
|
|
<result property="id" column="id"/>
|
|
|
@@ -15,5 +15,30 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="certificateTypeId" column="certificate_type_id"/>
|
|
|
</resultMap>
|
|
|
|
|
|
+ <resultMap type="com.zhongzheng.modules.base.vo.CertificateCommonVo" id="CertificateCommonVoResult">
|
|
|
+ <result property="id" column="id"/>
|
|
|
+ <result property="certificateName" column="certificate_name"/>
|
|
|
+ <result property="status" column="status"/>
|
|
|
+ <result property="code" column="code"/>
|
|
|
+ <result property="remark" column="remark"/>
|
|
|
+ <result property="certificateTypeId" column="certificate_type_id"/>
|
|
|
+ <result property="certificateTypeName" column="certificate_type_name"/>
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <select id="getList" parameterType="com.zhongzheng.modules.base.bo.CertificateCommonQueryBo" resultMap="CertificateCommonVoResult">
|
|
|
+ SELECT
|
|
|
+ cc.*,
|
|
|
+ c.certificate_name as certificate_type_name
|
|
|
+ FROM
|
|
|
+ certificate_common cc
|
|
|
+ LEFT JOIN certificate c ON cc.certificate_type_id = c.id
|
|
|
+ where 1=1
|
|
|
+ <if test="status != null and status.size()!=0 ">
|
|
|
+ AND cc.status in
|
|
|
+ <foreach collection="status" item="item" index="index" open="(" close=")" separator=",">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
|
|
|
</mapper>
|