瀏覽代碼

更新

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

@@ -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 查看文件

@@ -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 查看文件

@@ -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…
取消
儲存