|
|
@@ -252,7 +252,8 @@ with gtmp as
|
|
|
on g.currencyid = e2.enumitemname
|
|
|
and e2.enumdiccode = 'currency'
|
|
|
left join market m
|
|
|
- on g.marketid = m.marketid),
|
|
|
+ on g.marketid = m.marketid
|
|
|
+ where g.GOODSSTATUS <> 7 ),
|
|
|
utmp as
|
|
|
(select ta.accountid,
|
|
|
ta.accountname taname,
|
|
|
@@ -292,7 +293,7 @@ SELECT to_char(t.TRADEID) TRADEID,
|
|
|
gtmp.*,
|
|
|
utmp.*
|
|
|
FROM TRADE_HOLDERDETAIL t
|
|
|
- LEFT JOIN gtmp on t.goodsid=gtmp.goodsid
|
|
|
+ INNER JOIN gtmp on t.goodsid=gtmp.goodsid
|
|
|
LEFT JOIN utmp on t.accountid=utmp.accountid
|
|
|
WHERE 1 = 1 and t.HOLDERQTY > 0
|
|
|
`
|