Procházet zdrojové kódy

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

deng.yinping před 2 roky
rodič
revize
32771c2da6
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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()