|
|
@@ -1888,7 +1888,8 @@ func (r *Patradelinkdetail) buildSql() string {
|
|
|
u.ACCOUNTNAME
|
|
|
FROM ERMCP_PA_TradeLinkDetail t
|
|
|
LEFT JOIN ERMCP_PA_TradeLink p ON p.TradeID = t.TradeID AND p.BuyorSell = t.BuyorSell
|
|
|
- LEFT JOIN USERACCOUNT u on u.userid = p.ACCOUNTID
|
|
|
+ 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
|
|
|
WHERE t.areauserid = %v AND t.middlegoodsid = %v
|
|
|
`
|