瀏覽代碼

bookcount

胡轶钦 6 年之前
父節點
當前提交
23fb392b7d
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      models/booktype/booktype.go

+ 2
- 2
models/booktype/booktype.go 查看文件

@@ -30,8 +30,8 @@ type BookTypeList struct {
30 30
 	BookCount        int
31 31
 }
32 32
 
33
-func (m *BooktypeDAO) GetBookTypeList(caseid string, page, pageSize int) ([]model.TaBookType, error) {
34
-	var booktype []model.TaBookType
33
+func (m *BooktypeDAO) GetBookTypeList(caseid string, page, pageSize int) ([]BookTypeList, error) {
34
+	var booktype []BookTypeList
35 35
 	// sql := `select a.*,
36 36
 	// (SELECT COUNT(1)FROM ta_book b where a.book_type_id = b.book_type_id AND b.status = '` + strconv.Itoa(models.STATUS_NORMAL) + `') as book_count
37 37
 	// where