<?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.qianwen.smartman.modules.smis.mapper.CollectTemplateMapper">
|
|
<!-- 通用查询映射结果 -->
|
<resultMap id="BaseResultMap" type="com.qianwen.smartman.modules.smis.entity.CollectTemplate">
|
<result column="id" property="id"/>
|
<result column="tenant_id" property="tenantId"/>
|
|
<result column="type" property="type"/>
|
<result column="dp_config" property="dpConfig"/>
|
</resultMap>
|
|
<select id="selectPage" resultMap="BaseResultMap">
|
select * from collect_template where is_deleted=0
|
|
<if test="template.name!=null and template.name != ''">
|
and (name like CONCAT(#{template.name},'%') OR name like CONCAT(#{template.name},'%'))
|
</if>
|
<if test="template.type!=null and template.type != ''">
|
and type = #{user.type}
|
</if>
|
|
ORDER BY id
|
</select>
|
|
|
</mapper>
|