Commit a4c1ab84 by danmo

修改月统计数据

1 parent 33504ff8
...@@ -150,11 +150,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -150,11 +150,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
sum(ifnull(wgs.msg_total, 0)) msg_total, sum(ifnull(wgs.msg_total, 0)) msg_total,
date_format(wgs.stat_time, '%Y-%m') as finish_date date_format(wgs.stat_time, '%Y-%m') as finish_date
from we_group_statistic wgs from we_group_statistic wgs
where /*where
str_to_date(date_format(wgs.stat_time, '%Y-%m'), '%Y-%m') >= str_to_date(date_format(wgs.stat_time, '%Y-%m'), '%Y-%m') >=
str_to_date(date_format(date_sub(current_date, interval #{few} month), '%Y-%m'), '%Y-%m') str_to_date(date_format(date_sub(current_date, interval #{few} month), '%Y-%m'), '%Y-%m')
and str_to_date(date_format(wgs.stat_time, '%Y-%m'), '%Y-%m') <= and str_to_date(date_format(wgs.stat_time, '%Y-%m'), '%Y-%m') <=
str_to_date(date_format(current_date, '%Y-%m'), '%Y-%m') str_to_date(date_format(current_date, '%Y-%m'), '%Y-%m')*/
group by finish_date group by finish_date
order by finish_date order by finish_date
) as tbr on tbl._date = tbr.finish_date ) as tbr on tbl._date = tbr.finish_date
......
...@@ -149,11 +149,11 @@ ...@@ -149,11 +149,11 @@
sum(ifnull(wubd.negative_feedback_cnt, 0)) negative_feedback_cnt, sum(ifnull(wubd.negative_feedback_cnt, 0)) negative_feedback_cnt,
date_format(wubd.stat_time, '%Y-%m') as finish_date date_format(wubd.stat_time, '%Y-%m') as finish_date
from we_user_behavior_data wubd from we_user_behavior_data wubd
where /*where
str_to_date(date_format(wubd.stat_time, '%Y-%m'), '%Y-%m') >= str_to_date(date_format(wubd.stat_time, '%Y-%m'), '%Y-%m') >=
str_to_date(date_format(date_sub(current_date, interval #{few} month), '%Y-%m'), '%Y-%m') str_to_date(date_format(date_sub(current_date, interval #{few} month), '%Y-%m'), '%Y-%m')
and str_to_date(date_format(wubd.stat_time, '%Y-%m'), '%Y-%m') <= and str_to_date(date_format(wubd.stat_time, '%Y-%m'), '%Y-%m') <=
str_to_date(date_format(current_date, '%Y-%m'), '%Y-%m') str_to_date(date_format(current_date, '%Y-%m'), '%Y-%m')*/
group by finish_date group by finish_date
order by finish_date order by finish_date
) as tbr on tbl._date = tbr.finish_date ) as tbr on tbl._date = tbr.finish_date
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!