<?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.panzhihua.service_user.dao.ComMngUserTagDAO">
|
<resultMap id="baseResult" type="com.panzhihua.service_user.model.dos.ComMngUserTagDO">
|
<id property="id" column="id"/>
|
<result property="tagName" column="tag_name"/>
|
<result property="communityId" column="community_id"/>
|
<result property="createAt" column="create_at"/>
|
<result property="sysFlag" column="sys_flag"/>
|
|
</resultMap>
|
<sql id="columns">
|
`id`,`tag_name`,`community_id`,`create_at`,`sys_flag`
|
</sql>
|
|
|
<select id="getSpecialInputUserTagsByVO" resultType="com.panzhihua.service_user.model.dos.ComMngUserTagDO">
|
SELECT t.* FROM com_mng_user_tag t WHERE community_id = #{comMngTagVO.communityId}
|
<if test='comMngTagVO.tagName != null and comMngTagVO.tagName.trim() != ""'>
|
and t.tag_name =#{comMngTagVO.tagName}
|
</if>
|
</select>
|
|
<select id="pageSpecialInputUserTags" resultType="com.panzhihua.common.model.vos.user.ComMngTagVO">
|
SELECT t.* FROM com_mng_user_tag t WHERE community_id IN ( 0, #{comMngUserTagDTO.communityId} )
|
<if test='comMngUserTagDTO.tagName != null and comMngUserTagDTO.tagName.trim() != ""'>
|
and t.tag_name like concat('%',#{comMngUserTagDTO.tagName},'%')
|
</if>
|
ORDER BY t.sys_flag DESC
|
</select>
|
|
|
</mapper>
|