Browse Source

1ipad端

master
huangjiajun 7 months ago
parent
commit
8f0383c21c
2 changed files with 5 additions and 2 deletions
  1. +4
    -2
      app/db/db_order_goods_list.go
  2. +1
    -0
      app/ipad/hdl/hdl_order_goods.go

+ 4
- 2
app/db/db_order_goods_list.go View File

@@ -8,8 +8,10 @@ import (


func GetOrderGoodsListByIpad(eg *xorm.Engine, param map[string]string) (*[]model.OrderGoods, int64) { func GetOrderGoodsListByIpad(eg *xorm.Engine, param map[string]string) (*[]model.OrderGoods, int64) {
var order []model.OrderGoods var order []model.OrderGoods
sess := eg.Where("state<4")

sess := eg.Where("state!=5 ")
if param["sorting"] == "1" {
sess.And("state!=4")
}
if param["oid"] != "" { if param["oid"] != "" {
sess.And("oid = ?", param["oid"]) sess.And("oid = ?", param["oid"])
} }


+ 1
- 0
app/ipad/hdl/hdl_order_goods.go View File

@@ -87,6 +87,7 @@ func SortingOrderGoods(c *gin.Context) {
return return
} }
eg := db.Db eg := db.Db
args["sorting"] = "1"
data, _ := db.GetOrderGoodsListByIpad(eg, args) data, _ := db.GetOrderGoodsListByIpad(eg, args)
list := make([]map[string]string, 0) list := make([]map[string]string, 0)
if data != nil { if data != nil {


Loading…
Cancel
Save