Ver Fonte

Mine/QueryMineTradeOrders 接口放开方向限制

zhou.xiaoning há 2 anos atrás
pai
commit
34dec8c93d
1 ficheiros alterados com 1 adições e 3 exclusões
  1. 1 3
      models/mine.go

+ 1 - 3
models/mine.go

@@ -607,7 +607,6 @@ func (r *MineTradeOrder) buildSql() string {
 	on t.accountid = ta.accountid
 
 	where t.marketid = 49201
-	and t.buyorsell = 1
 	and ta.userid = %v 
 	order by t.ordertime desc 
 	`
@@ -674,8 +673,7 @@ func (r *MineTradeOrder) buildSql_His() string {
 	inner join taaccount ta
 	on t.accountid = ta.accountid
 
-	where t.marketid = 49201
-	and t.buyorsell = 1 
+	where t.marketid = 49201 
 	`
 
 	sqlId.And("ta.userid", r.Userid)