|
|
@@ -162,7 +162,7 @@ func SearchGoodses(content, tradeModes string) ([]SearchGoods, error) {
|
|
|
Select(`G.*,
|
|
|
M.MARKETNAME, M.TRADEMODE`).
|
|
|
Join("INNER", "MARKET M", "M.MARKETID = G.MARKETID").
|
|
|
- Where(fmt.Sprintf("G.GOODSCODE like '%%%s%%' or G.GOODSNAME like '%%%s%%'", content, content))
|
|
|
+ Where(fmt.Sprintf("(G.GOODSSTATUS in (2,3)) and (G.GOODSCODE like '%%%s%%' or G.GOODSNAME like '%%%s%%')", content, content))
|
|
|
if len(tradeModes) > 0 {
|
|
|
session = session.And(fmt.Sprintf("M.TRADEMODE in (%s)", tradeModes))
|
|
|
}
|