Commit 4ce1eda2 authored by 罗林杰's avatar 罗林杰

修改查询

parent 46f8ddb7
package org.rcisoft.business.memFeedBack.entity; package org.rcisoft.business.memFeedBack.entity;
import cn.afterturn.easypoi.excel.annotation.Excel; import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*; import lombok.*;
...@@ -46,5 +47,17 @@ public class MemFeedback extends CyIdIncreEntity<MemFeedback> { ...@@ -46,5 +47,17 @@ public class MemFeedback extends CyIdIncreEntity<MemFeedback> {
*/ */
@Excel(name = "处理状态", orderNum = "2", width = 20) @Excel(name = "处理状态", orderNum = "2", width = 20)
private String status; private String status;
/*
* 用户昵称
*/
@TableField(exist = false)
private String memNickname;
/*
* 会员号
*/
@TableField(exist = false)
private String memCode;
} }
...@@ -36,15 +36,20 @@ ...@@ -36,15 +36,20 @@
</select> </select>
<select id="queryMemFeedbacksPaged" resultMap="BaseResultMap"> <select id="queryMemFeedbacksPaged" resultMap="BaseResultMap">
select * from mem_feedback select *, mi.mem_nick_name as memNickname, mi.mem_code as memCode
from mem_feedback mf
left join mem_info mi on mi.user_id = mf.create_by
where 1=1 where 1=1
and del_flag = '0' and mf.del_flag = '0'
<if test="entity.flag !=null and entity.flag != '' "> <if test="entity.flag !=null and entity.flag != '' ">
and flag = #{entity.flag} and mf.flag = #{entity.flag}
</if> </if>
<if test="entity.feedbackType !=null and entity.feedbackType != '' "> <if test="entity.feedbackType !=null and entity.feedbackType != '' ">
and feedback_type like concat('%',#{entity.feedbackType},'%') and feedback_type like concat('%',#{entity.feedbackType},'%')
</if> </if>
<if test="entity.memCode !=null and entity.memCode != '' ">
and mi.mem_code like concat('%',#{entity.memCode},'%')
</if>
<if test="entity.title !=null and entity.title != '' "> <if test="entity.title !=null and entity.title != '' ">
and title like concat('%',#{entity.title},'%') and title like concat('%',#{entity.title},'%')
</if> </if>
...@@ -54,6 +59,6 @@ ...@@ -54,6 +59,6 @@
<if test="entity.status !=null and entity.status != '' "> <if test="entity.status !=null and entity.status != '' ">
and status = #{entity.status} and status = #{entity.status}
</if> </if>
ORDER BY business_id DESC ORDER BY mf.business_id DESC
</select> </select>
</mapper> </mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment