Browse Source

1.下单规则更新

master
huangjiajun 6 months ago
parent
commit
68e35a52ad
2 changed files with 4 additions and 0 deletions
  1. +1
    -0
      app/admin/svc/order/svc_order_list.go
  2. +3
    -0
      app/db/db_order_list.go

+ 1
- 0
app/admin/svc/order/svc_order_list.go View File

@@ -447,6 +447,7 @@ func OrderDetail(c *gin.Context) {
} }


var res = map[string]interface{}{ var res = map[string]interface{}{
"ord_no": order.OrdNo,
"buy_phone": order.BuyPhone, "buy_phone": order.BuyPhone,
"oid": utils.Int64ToStr(order.Oid), "oid": utils.Int64ToStr(order.Oid),
"id": utils.IntToStr(order.Id), "id": utils.IntToStr(order.Id),


+ 3
- 0
app/db/db_order_list.go View File

@@ -51,6 +51,9 @@ func GetOrderList(eg *xorm.Engine, param map[string]string) (*[]model.Order, int
if param["oid"] != "" { if param["oid"] != "" {
sess.And("oid like ?", "%"+param["oid"]+"%") sess.And("oid like ?", "%"+param["oid"]+"%")
} }
if param["ord_no"] != "" {
sess.And("ord_no like ?", "%"+param["ord_no"]+"%")
}
if param["state"] != "" { if param["state"] != "" {
sess.And("state =?", param["state"]) sess.And("state =?", param["state"])
} }


Loading…
Cancel
Save