huangjiajun 1 hafta önce
ebeveyn
işleme
87935a4ef0
2 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  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 Dosyayı Görüntüle

@@ -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 Dosyayı Görüntüle

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


Yükleniyor…
İptal
Kaydet