浏览代码

修改接口BUG

zhou.xiaoning 3 年之前
父节点
当前提交
71a2b31f1c
共有 1 个文件被更改,包括 2 次插入1 次删除
  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
 	`