瀏覽代碼

1ipad端

master
huangjiajun 7 月之前
父節點
當前提交
8f0383c21c
共有 2 個文件被更改,包括 5 次插入2 次删除
  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 查看文件

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

func GetOrderGoodsListByIpad(eg *xorm.Engine, param map[string]string) (*[]model.OrderGoods, int64) {
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"] != "" {
sess.And("oid = ?", param["oid"])
}


+ 1
- 0
app/ipad/hdl/hdl_order_goods.go 查看文件

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


Loading…
取消
儲存