zjxpcyc 6 years ago
parent
commit
f1e7b1bfc1
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      controllers/book/book.go

+ 5
- 1
controllers/book/book.go View File

@@ -51,9 +51,13 @@ func (c *BookController) GetBookList() {
51 51
 		cases := c.Context.Get("cases").([]model.SysUserCase)
52 52
 		caseIDs = c.GetCaseIDs(cases)
53 53
 	}
54
-	bookType := c.GetString("bookType")
54
+	bookType := c.GetString("booktype")
55 55
 	barcode := c.GetString("barcode")
56 56
 	page, _ := c.GetInt("page")
57
+	if page < 1 {
58
+		page = 1
59
+	}
60
+
57 61
 	pagesize, _ := c.GetInt("pagesize")
58 62
 	name := c.GetString("name")
59 63
 	showzero := c.GetString("showzero")