Browse Source

过滤持仓数量为0的记录

zou.yingbin 4 years ago
parent
commit
efd5a33e66
1 changed files with 1 additions and 1 deletions
  1. 1 1
      models/tradexx.go

+ 1 - 1
models/tradexx.go

@@ -280,7 +280,7 @@ SELECT to_char(t.TRADEID) TRADEID,
   FROM TRADE_HOLDERDETAIL t
   LEFT JOIN gtmp on t.goodsid=gtmp.goodsid
   LEFT JOIN utmp on t.accountid=utmp.accountid
- WHERE 1 = 1
+ WHERE 1 = 1 and t.HOLDERQTY > 0
 `
 
 	sqlId.AndEx("utmp.userid", r.USERID, r.USERID > 0)