huangjiajun 1 week ago
parent
commit
125a336220
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      app/custom/svc/svc_task_list.go

+ 4
- 1
app/custom/svc/svc_task_list.go View File

@@ -246,8 +246,11 @@ func TaskDetailNotice(c *gin.Context) {
if args["type"] != "" {
sess.And("type=?", args["type"])
}
size := utils.StrToInt(args["size"])
size := 10
p := utils.StrToInt(args["p"])
if p == 0 {
p = 1
}
sess.Limit(size, (p-1)*size).OrderBy("id desc").Find(&data)
list := make([]map[string]string, 0)
for _, v := range data {


Loading…
Cancel
Save