Browse Source

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

deng.yinping 2 years ago
parent
commit
32771c2da6
1 changed files with 2 additions and 2 deletions
  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()