Browse Source

1ipad端

master
huangjiajun 7 months ago
parent
commit
8c5a8b8e35
2 changed files with 2 additions and 1 deletions
  1. +1
    -1
      app/db/db_order_list.go
  2. +1
    -0
      app/ipad/svc/svc_order.go

+ 1
- 1
app/db/db_order_list.go View File

@@ -168,7 +168,7 @@ func GetOrderListByIpad(eg *xorm.Engine, param map[string]string) (*[]model.Orde
} }
size := utils.StrToInt(param["limit"]) size := utils.StrToInt(param["limit"])
start := (utils.StrToInt(param["page"]) - 1) * size start := (utils.StrToInt(param["page"]) - 1) * size
count, err := sess.Limit(size, start).OrderBy("id asc").FindAndCount(&order)
count, err := sess.Limit(size, start).OrderBy("time desc,id desc").FindAndCount(&order)
if err != nil { if err != nil {
return nil, count return nil, count
} }


+ 1
- 0
app/ipad/svc/svc_order.go View File

@@ -40,6 +40,7 @@ func Order(c *gin.Context) {
"btn_str": btnArr[v.State], "btn_str": btnArr[v.State],
"state": utils.IntToStr(v.State), "state": utils.IntToStr(v.State),
"enterprise_name": enterpriseName, "enterprise_name": enterpriseName,
"time": v.CreateAt.Format("2006-01-02 15:04:05"),
} }


list = append(list, tmp) list = append(list, tmp)


Loading…
Cancel
Save