|
@@ -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
|