无关风月
4 小时以前 401510af482a05aa777db983791f8e7594edaec2
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.ruoyi.management.mapper.TFeedbackMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.ruoyi.management.domain.TFeedback">
        <id column="id" property="id" />
        <result column="userId" property="userId" />
        <result column="img" property="img" />
        <result column="content" property="content" />
        <result column="state" property="state" />
    </resultMap>
 
    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        id, userId, img, content, state
    </sql>
    <select id="listAll" resultType="com.ruoyi.management.vo.FeedbackVO">
        select t1.*,t1.createTime as insertTime
        from t_feedback t1
        where 1=1
 
        <if test="null != req.state">
            and t1.state = #{req.state}
        </if>
        <if test="null != req.startTime">
            and t1.createTime between #{req.startTime} and #{req.endTime}
        </if>
        order by t1.state,t1.createTime desc
    </select>
 
 
</mapper>