<?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>
|