无关风月
2024-06-28 a79996fedf6be3af3292495d394e0f0250b71d4c
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
34
35
36
37
38
39
<?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.management.mapper.TUseGuideMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.ruoyi.management.domain.TUseGuide">
        <id column="id" property="id" />
        <result column="title" property="title" />
        <result column="sort" property="sort" />
        <result column="answer" property="answer" />
        <result column="insertTime" property="insertTime" />
    </resultMap>
 
    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        id, title, sort, isDelete, answer
    </sql>
    <select id="listAll" resultType="com.ruoyi.management.domain.TUseGuide">
        select * from
        t_use_guide where 1=1
        <if test="null != req.title and '' != req.title">
            and title like CONCAT('%', #{req.title}, '%')
        </if>
        AND disabled = ${@com.ruoyi.common.core.enums.DisabledEnum@NO.getCode()}
        order by insertTime desc
        limit #{req.pageNumber}, #{req.pageSize}
    </select>
    <select id="listAllCount" resultType="com.ruoyi.management.domain.TUseGuide">
    select * from
        t_use_guide where 1=1
        <if test="null != req.title and '' != req.title">
            and title like CONCAT('%', #{req.title}, '%')
        </if>
        AND disabled = ${@com.ruoyi.common.core.enums.DisabledEnum@NO.getCode()}
        order by insertTtime desc
 
    </select>
 
</mapper>