zhou.xiaoning преди 1 година
родител
ревизия
0e89338618
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      models/wrTrade2.go

+ 2 - 2
models/wrTrade2.go

@@ -3370,9 +3370,9 @@ func (r *WrTradeOrderDetail) buildSql() string {
 	sqlId.And("t.BUYORSELL", r.BUYORSELL)
 
 	if r.BUYORSELL == 0 {
-		sqlId.Join(" order by t.orderprice desc, t.orderid")
+		sqlId.Join(" order by t.orderprice desc, t.orderindexid, t.orderid")
 	} else {
-		sqlId.Join(" order by t.orderprice, t.orderid")
+		sqlId.Join(" order by t.orderprice, t.orderindexid, t.orderid")
 	}
 	sqlId.Page(r.Page, r.PageSize)
 	return sqlId.String()