Pārlūkot izejas kodu

/Ermcp/GetErmcpGoods: 先按goodsorder排序 ,再按goodscode排序

deng.yinping 10 mēneši atpakaļ
vecāks
revīzija
cd39fc33f4
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      models/ermcpGoods.go

+ 1 - 1
models/ermcpGoods.go

@@ -180,7 +180,7 @@ func GetErmcpGoodses(userid int64, lastUpdateTime string, loginID int64) ([]Ermc
 	if loginID != 0 {
 		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 {
 		return nil, err