diff --git a/app/db/db_order_list.go b/app/db/db_order_list.go index 948c5ac..c533770 100644 --- a/app/db/db_order_list.go +++ b/app/db/db_order_list.go @@ -158,7 +158,7 @@ func GetOrderListByIpad(eg *xorm.Engine, param map[string]string) (*[]model.Orde for _, v := range data { 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" { sess.And("state =?", param["state"])