Parcourir la source

修改接口BUG

zhou.xiaoning il y a 3 ans
Parent
commit
71a2b31f1c
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      models/ermcp8.go

+ 2 - 1
models/ermcp8.go

@@ -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
 	`