|
|
@@ -97,7 +97,7 @@ func GetErmcpGoodses(userid int64, lastUpdateTime string) ([]ErmcpGoods, error)
|
|
|
session := engine.Table("GOODS G").
|
|
|
Select("G.*, M.TRADEMODE").
|
|
|
Join("LEFT", "MARKET M", "M.MARKETID = G.MARKETID").
|
|
|
- Where("G.GOODSSTATUS in (3, 7)")
|
|
|
+ Where("G.GOODSSTATUS in (3, 7)").OrderBy("G.GOODSCODE")
|
|
|
|
|
|
if err := session.Find(&goodses); err != nil {
|
|
|
return nil, err
|