luo
2023-12-09 cb5ddf074d60b72e35ee4bafaec95530f53d1839
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?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.stylefeng.guns.modular.system.dao.FeedBackMapper">
 
 
    <select id="list" resultType="com.stylefeng.guns.modular.system.dto.FeedBackVo">
 
        SELECT  tf.insert_time as insertTime, au.nickname,au.phone,tf.content
        from t_feedback tf
                 LEFT JOIN t_app_user au ON tf.app_user_id =au.id
        <where>
            <if test="null != name and '' != name">
                and au.nickname like CONCAT('%', #{name}, '%')
            </if>
            <if test="null != phone and '' != phone">
                and au.phone like CONCAT('%', #{phone}, '%')
            </if>
 
 
        </where>
 
 
    </select>
</mapper>