|
@@ -180,7 +180,7 @@ func GetErmcpGoodses(userid int64, lastUpdateTime string, loginID int64) ([]Ermc
|
|
|
if loginID != 0 {
|
|
if loginID != 0 {
|
|
|
session = session.In("G.MARKETID", ids)
|
|
session = session.In("G.MARKETID", ids)
|
|
|
}
|
|
}
|
|
|
- session = session.OrderBy("G.GOODSCODE")
|
|
|
|
|
|
|
+ session = session.OrderBy("EX.GOODSORDER, G.GOODSCODE")
|
|
|
|
|
|
|
|
if err := session.Find(&goodses); err != nil {
|
|
if err := session.Find(&goodses); err != nil {
|
|
|
return nil, err
|
|
return nil, err
|