Commit 6d86b1d9 authored by licc's avatar licc

钱包接口优化3

parent 1ecf633b
......@@ -114,7 +114,7 @@
FROM
<include refid="table"/>
WHERE date_format(create_time,'%Y-%m') &lt;= date_format(now(),'%Y-%m')
and date_format(create_time,'%Y-%m') >= date_format(now() - interval 7 month,'%Y-%m')
and date_format(create_time,'%Y-%m') >= date_format(now() - interval 5 month,'%Y-%m')
and (status=1 or status=0)
and user_id=#{userId}
group by user_id ,create_time;
......
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