|
@@ -423,7 +423,7 @@ func GetOpenReadReportInfo(uid int, startDate string) (maxOpenReportClassify str
|
|
|
func GetRddpTotalReadDuration(uid int, startDate string) (video_play_seconds float64, total int, err error) {
|
|
|
sql := `SELECT SUM(b.video_play_seconds) AS video_play_seconds ,COUNT(1) AS total FROM report_view_record AS a
|
|
|
INNER JOIN report AS b ON a.report_id=b.id
|
|
|
- WHERE a.user_id=? AND a.create_time=? `
|
|
|
+ WHERE a.user_id=? AND a.create_time>=? `
|
|
|
o := orm.NewOrm()
|
|
|
o.Using("rddp")
|
|
|
err = o.Raw(sql, uid, startDate).QueryRow(&video_play_seconds, &total)
|