rdluck 4 ani în urmă
părinte
comite
d2670d603d
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      models/bill.go

+ 1 - 1
models/bill.go

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