Browse Source

Merge remote-tracking branch 'origin/eta/1.8.3' into debug

Roc 8 months ago
parent
commit
5ac04ddf2d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      models/report_chapter.go

+ 1 - 1
models/report_chapter.go

@@ -596,7 +596,7 @@ func GetAllReportChapter() (items []*ReportChapter, err error) {
 // @return err error
 func GetCountReportChapterByCondition(condition string, pars []interface{}) (count int, err error) {
 	o := orm.NewOrmUsingDB("rddp")
-	sql := ` SELECT * FROM report_chapter WHERE 1=1 `
+	sql := ` SELECT COUNT(1) AS count FROM report_chapter WHERE 1=1 `
 	if condition != "" {
 		sql += condition
 	}