mitao
2025-02-21 31573d6180d15ef65ed0df9c2732495f40b12663
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?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() != &quot;&quot;'>
            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() != &quot;&quot;'>
            and t.tag_name like concat('%',#{comMngUserTagDTO.tagName},'%')
        </if>
        ORDER BY t.sys_flag DESC
    </select>
 
 
</mapper>