Browse Source

更新

master
huangjiajun 6 months ago
parent
commit
706002f629
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      app/db/db_order_list.go

+ 2
- 2
app/db/db_order_list.go View File

@@ -100,7 +100,7 @@ func GetOrderList(eg *xorm.Engine, param map[string]string) (*[]model.Order, int


func GetOrderListExport(eg *xorm.Engine, param map[string]string) (*[]model.Order, int64) { func GetOrderListExport(eg *xorm.Engine, param map[string]string) (*[]model.Order, int64) {
var order []model.Order var order []model.Order
sess := eg.Where("1=1")
sess := eg.Where("state!=5")
if param["phone"] != "" { if param["phone"] != "" {
sess.And("buy_phone like ?", "%"+param["phone"]+"%") sess.And("buy_phone like ?", "%"+param["phone"]+"%")
} }
@@ -143,7 +143,7 @@ func GetOrderListExport(eg *xorm.Engine, param map[string]string) (*[]model.Orde


func GetOrderListOutput(eg *xorm.Engine, param map[string]string) *[]model.Order { func GetOrderListOutput(eg *xorm.Engine, param map[string]string) *[]model.Order {
var order []model.Order var order []model.Order
sess := eg.Where("1=1")
sess := eg.Where("state!=5")
if param["phone"] != "" { if param["phone"] != "" {
sess.And("buy_phone like ?", "%"+param["phone"]+"%") sess.And("buy_phone like ?", "%"+param["phone"]+"%")
} }


Loading…
Cancel
Save