소스 검색

更改fohow user grouth 接口

abiao 5 년 전
부모
커밋
b11634bc39
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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

@@ -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"))