Commit 8e8147df authored by 罗林杰's avatar 罗林杰

修改查询

parent 3d214e9a
......@@ -77,5 +77,10 @@ public class MemTraffic extends CyIdNotDataEntity<MemTraffic> {
@TableField(exist = false)
private BigInteger totalMemTraffic;
/**
* 用户编号
*/
@TableField(exist = false)
private BigInteger memCode;
}
......@@ -31,8 +31,12 @@
mem_traffic mt
LEFT JOIN
sys_user su ON mt.user_id = su.business_id
left join mem_info mi on mt.user_id = mi.user_id
WHERE
1=1
<if test="entity.memCode !=null and entity.memCode != '' ">
AND mi.mem_code = #{entity.memCode}
</if>
<if test="entity.nickName !=null and entity.nickName != '' ">
AND su.nick_name LIKE CONCAT('%', #{entity.nickName}, '%')
</if>
......
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