瀏覽代碼

MyFavorite:不返回无效现货委托单

deng.yinping 3 年之前
父節點
當前提交
fe924a4369
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      models/guangzuan.go

+ 3 - 2
models/guangzuan.go

@@ -2349,8 +2349,9 @@ func (r *MyFavorite) buildSql() string {
 		END AS SIZEDISPLAY,
 		ua1.ACCOUNTNAME	         
 	FROM Wrtrade_Myfavorite t
-	LEFT JOIN view_GZ_WRStandard_Ex_Query q ON t.WRSTANDARDID = q.WRSTANDARDID
-	LEFT JOIN UserAccount ua1 ON t.USERID = ua1.userid
+	INNER JOIN view_GZ_WRStandard_Ex_Query q ON t.WRSTANDARDID = q.WRSTANDARDID
+	INNER JOIN UserAccount ua1 ON t.USERID = ua1.userid
+	INNER JOIN wrtrade_orderdetail od on t.wrtradeorderid = od.wrtradeorderid
 	WHERE t.marketid=67201
 	`