Explorar o código

买卖大厅显示顺序错误:应为“价格优先,时间优先”

deng.yinping %!s(int64=2) %!d(string=hai) anos
pai
achega
32771c2da6
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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.ordertime desc")
+		sqlId.Join(" order by t.orderprice desc, t.ordertime")
 	} else {
-		sqlId.Join(" order by t.orderprice, t.ordertime desc")
+		sqlId.Join(" order by t.orderprice, t.ordertime")
 	}
 	sqlId.Page(r.Page, r.PageSize)
 	return sqlId.String()