소스 검색

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

Roc 9 달 전
부모
커밋
5ac04ddf2d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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
 	}