2 Commity 7e89f145d8 ... d4fd80cb33

Autor SHA1 Wiadomość Data
  hsun d4fd80cb33 Merge branch 'feature/report_chapter_1129' into debug 1 tydzień temu
  hsun 2cd37ea459 fix: 章节报告继承 1 tydzień temu
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      models/report_chapter.go

+ 1 - 1
models/report_chapter.go

@@ -609,7 +609,7 @@ func GetCountReportChapterByCondition(condition string, pars []interface{}) (cou
 // GetNewestPreReportChapterByClassifyIdAndTypeId 获取分类下往期中最新发布的系统章节
 func GetNewestPreReportChapterByClassifyIdAndTypeId(classifyId, typeId int) (item *ReportChapter, err error) {
 	o := orm.NewOrmUsingDB("rddp")
-	sql := `SELECT * FROM report_chapter WHERE classify_id_first = ? AND type_id = ? AND publish_state = 2 ORDER BY stage DESC LIMIT 1`
+	sql := `SELECT * FROM report_chapter WHERE classify_id_first = ? AND type_id = ? AND publish_state = 2 ORDER BY publish_time DESC LIMIT 1`
 	err = o.Raw(sql, classifyId, typeId).QueryRow(&item)
 	return
 }