huangjiajun 1 周之前
父節點
當前提交
87935a4ef0
共有 2 個檔案被更改,包括 2 行新增2 行删除
  1. +1
    -1
      app/operator/svc/svc_project.go
  2. +1
    -1
      app/operator/svc/svc_task.go

+ 1
- 1
app/operator/svc/svc_project.go 查看文件

@@ -89,7 +89,7 @@ func ProjectList(c *gin.Context) {
if args.Cid != "" {
sess.And("cid=?", args.Cid)
}
total, _ := sess.Limit(utils.StrToInt(args.P), (utils.StrToInt(args.P)-1)*utils.StrToInt(args.Size)).OrderBy("is_must desc,id desc").FindAndCount(&hotTaskList)
total, _ := sess.Limit(utils.StrToInt(args.Size), (utils.StrToInt(args.P)-1)*utils.StrToInt(args.Size)).OrderBy("is_must desc,id desc").FindAndCount(&hotTaskList)
cate := make([]models.CampTaskProjectCate, 0)
svc.MasterDb(c).Where("1=1").Find(&cate)
for _, v := range hotTaskList {


+ 1
- 1
app/operator/svc/svc_task.go 查看文件

@@ -71,7 +71,7 @@ func TaskList(c *gin.Context) {
if args.SettleType != "" {
sess.And("settle_type=?", args.SettleType)
}
total, _ := sess.Limit(utils.StrToInt(args.P), (utils.StrToInt(args.P)-1)*utils.StrToInt(args.Size)).OrderBy("success_num desc,id desc").FindAndCount(&hotTaskList)
total, _ := sess.Limit(utils.StrToInt(args.Size), (utils.StrToInt(args.P)-1)*utils.StrToInt(args.Size)).OrderBy("success_num desc,id desc").FindAndCount(&hotTaskList)
for _, v := range hotTaskList {
label := make([]string, 0)
DetailInfo := make([]string, 0)


Loading…
取消
儲存