Browse Source

no message

xingzai 1 year ago
parent
commit
1938713e90
1 changed files with 1 additions and 1 deletions
  1. 1 1
      models/page_history_record.go

+ 1 - 1
models/page_history_record.go

@@ -61,7 +61,7 @@ func GetTimeLineRecordCount(userId, industrialManagementId int) (count int, err
 
 func GetTimeLineRecordItem(userId, industrialManagementId int) (item *CygxPageHistoryRecord, err error) {
 	o := orm.NewOrm()
-	sql := `SELECT * FROM cygx_page_history_record WHERE user_id=? AND router = '/api/report/industry/ArticleList?PageSize=10&CurrentIndex=1&CategoryId=99999&IndustrialManagementId=` + strconv.Itoa(industrialManagementId) + `' ORDER BY create_time DESC LIMIT 1,1 `
+	sql := `SELECT * FROM cygx_page_history_record WHERE user_id=? AND router = '/api/report/industry/ArticleList?PageSize=10&CurrentIndex=1&CategoryId=99999&IndustrialManagementId=` + strconv.Itoa(industrialManagementId) + `' ORDER BY create_time DESC LIMIT 0,1 `
 	err = o.Raw(sql, userId).QueryRow(&item)
 	return
 }