Explorar el Código

1ipad端

master
huangjiajun hace 7 meses
padre
commit
8c5a8b8e35
Se han modificado 2 ficheros con 2 adiciones y 1 borrados
  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 Ver fichero

@@ -168,7 +168,7 @@ func GetOrderListByIpad(eg *xorm.Engine, param map[string]string) (*[]model.Orde
}
size := utils.StrToInt(param["limit"])
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 {
return nil, count
}


+ 1
- 0
app/ipad/svc/svc_order.go Ver fichero

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

list = append(list, tmp)


Cargando…
Cancelar
Guardar