jiangqs
2023-06-11 962e7325d72222a4ffd4d74a1fc5612f95326e98
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
<?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.ruoyi.system.mapper.config.SysTagMapper">
 
    <resultMap type="SysTag" id="SysTagResult">
        <result property="tagId"    column="tag_id"    />
        <result property="delFlag"    column="del_flag"    />
        <result property="tagType"    column="tag_type"    />
        <result property="tagName"    column="tag_name"    />
        <result property="createTime"    column="create_time"    />
        <result property="synFlag"    column="syn_flag"    />
    </resultMap>
 
 
    <select id="pageTag" resultType="com.ruoyi.system.domain.vo.MgtTagPageVo">
        SELECT
        tag_id tagId,
        tag_name tagName,
        create_time createTime
        FROM t_sys_tag
        WHERE del_flag = 0 AND tag_type = #{param.tagType}
        <if test="param.tagName!=null and param.tagName !=''">
            AND tag_name LIKE  CONCAT('%',#{param.tagName},'%')
        </if>
        ORDER BY create_time DESC
    </select>
 
</mapper>