Browse Source

更新

master
huangjiajun 4 months ago
parent
commit
e7ce6fc40f
3 changed files with 9 additions and 1 deletions
  1. +3
    -0
      app/db/db_guide_order.go
  2. +3
    -1
      app/db/db_hw_order.go
  3. +3
    -0
      app/db/db_life_order.go

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

@@ -93,6 +93,9 @@ func GetGuideOrderListTotal(args map[string]string) ([]model.GuideOrder, int64)
if args["zuid"] != "" {
sess = sess.And("station_uid=?", args["zuid"])
}
if args["oid"] != "" {
sess = sess.And("pvd_oid like ?", "%"+args["oid"]+"%")
}
if args["status"] != "" {
sess = sess.And("status=?", args["status"])
}


+ 3
- 1
app/db/db_hw_order.go View File

@@ -96,7 +96,9 @@ func GetHwOrderListTotal(args map[string]string) ([]model.HwOrder, int64) {
if args["status"] != "" {
sess = sess.And("status=?", args["status"])
}

if args["oid"] != "" {
sess = sess.And("pvd_oid like ?", "%"+args["oid"]+"%")
}
sort := "create_time desc,id desc"
if args["sort"] != "" {
sort = args["sort"]


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

@@ -99,6 +99,9 @@ func GetLifeOrderListTotal(args map[string]string) ([]model.LifeOrder, int64) {
if args["uid"] != "" {
sess = sess.And("uid=?", args["uid"])
}
if args["oid"] != "" {
sess = sess.And("pvd_oid like ?", "%"+args["oid"]+"%")
}
if args["zuid"] != "" {
sess = sess.And("station_uid=?", args["zuid"])
}


Loading…
Cancel
Save