|
@@ -158,7 +158,7 @@ func GetOrderListByIpad(eg *xorm.Engine, param map[string]string) (*[]model.Orde |
|
|
for _, v := range data { |
|
|
for _, v := range data { |
|
|
ids = append(ids, utils.IntToStr(v.Id)) |
|
|
ids = append(ids, utils.IntToStr(v.Id)) |
|
|
} |
|
|
} |
|
|
sess.And("enterprise_id in (?) or oid like ?", php2go.Implode(",", ids), "%"+param["keyword"]+"%") |
|
|
|
|
|
|
|
|
sess.And("enterprise_id in ("+php2go.Implode(",", ids)+") or oid like ?", "%"+param["keyword"]+"%") |
|
|
} |
|
|
} |
|
|
if param["state"] != "" && param["state"] != "1" { |
|
|
if param["state"] != "" && param["state"] != "1" { |
|
|
sess.And("state =?", param["state"]) |
|
|
sess.And("state =?", param["state"]) |
|
|