luo
2023-12-09 cb5ddf074d60b72e35ee4bafaec95530f53d1839
guns-management/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/FeedBackMapper.xml
@@ -3,4 +3,22 @@
<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>