Parcourir la source

更改fohow user grouth 接口

abiao il y a 5 ans
Parent
commit
a7d8d42909
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      go/gopath/src/fohow-statement-api/models/d5c_wx_user.go

+ 2 - 2
go/gopath/src/fohow-statement-api/models/d5c_wx_user.go

@@ -287,8 +287,8 @@ func GetAllXcxUserCountByMonth(start, end time.Time, useCache bool) (monthFansLi
 
 		SELECT
 			count(*) AS c,
-			DATE_ADD(created_at, INTERVAL 8 HOUR),'%s') AS ym,,
-			DATE_ADD(created_at, INTERVAL 8 HOUR),'%s') AS m
+			date_format(DATE_ADD(created_at, INTERVAL 8 HOUR),'%s') AS ym,,
+			date_format(DATE_ADD(created_at, INTERVAL 8 HOUR),'%s') AS m
 		FROM
 			wx_users
 		WHERE