|
|
@@ -292,8 +292,8 @@ func GetAllXcxUserCountByMonth(start, end time.Time, useCache bool) (monthFansLi
|
|
|
FROM
|
|
|
wx_users
|
|
|
WHERE
|
|
|
- DATE_ADD(created_at, INTERVAL 8 HOUR) >= ?
|
|
|
- AND DATE_ADD(created_at, INTERVAL 8 HOUR) < ?
|
|
|
+ DATE_ADD(created_at, INTERVAL 8 HOUR) >= %s
|
|
|
+ AND DATE_ADD(created_at, INTERVAL 8 HOUR) < %s
|
|
|
group by ym;
|
|
|
`
|
|
|
sql = fmt.Sprintf(sql, "%Y%m", "%m", start.Format("2006-01-02"), end.Format("2006-01-02"))
|