|
|
@@ -1888,7 +1888,7 @@ func (r *Patradelinkdetail) buildSql() string {
|
|
|
to_char(t.TRADEID) TRADEID,
|
|
|
u.ACCOUNTNAME
|
|
|
FROM ERMCP_PA_TradeLinkDetail t
|
|
|
- LEFT JOIN ERMCP_PA_TradeLink p ON p.TradeID = t.TradeID AND p.BuyorSell = t.BuyorSell
|
|
|
+ INNER JOIN ERMCP_PA_TradeLink p ON p.TradeID = t.TradeID AND p.BuyorSell = t.BuyorSell
|
|
|
LEFT JOIN TAACCOUNT ta on ta.accountid = p.ACCOUNTID
|
|
|
LEFT JOIN USERACCOUNT u on u.userid = ta.relateduserid
|
|
|
LEFT JOIN GOODS g ON g.goodsid = t.goodsid
|