From 184e2c9ec5d93965c818a5801439f54d3dfebd7c Mon Sep 17 00:00:00 2001
From: 王煜鑫 <wyx@iemsoft.cn>
Date: Tue, 06 Nov 2018 09:45:05 +0800
Subject: [PATCH] 更新权限接口

---
 sourcecode/MVNFHM/src/main/resources/mybatis1/system/ButtonrightsMapper.xml |   18 ++++++++++++++++--
 1 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/sourcecode/MVNFHM/src/main/resources/mybatis1/system/ButtonrightsMapper.xml b/sourcecode/MVNFHM/src/main/resources/mybatis1/system/ButtonrightsMapper.xml
index fd23f50..e71bbcf 100644
--- a/sourcecode/MVNFHM/src/main/resources/mybatis1/system/ButtonrightsMapper.xml
+++ b/sourcecode/MVNFHM/src/main/resources/mybatis1/system/ButtonrightsMapper.xml
@@ -85,6 +85,20 @@
 		where
 			a.ROLE_ID = #{ROLE_ID}
 	</select>
-	
-	<!-- fh313596790qq(青苔) -->
+
+	<select id="findButtonByOpenIdAndSystemId" parameterType="java.util.Map" resultType="com.fh.entity.system.power.FuncPermission">
+		SELECT
+			f.FHBUTTON_ID id,
+			f.QX_NAME name,
+			f.`NAME` display
+		FROM
+			sys_user u
+			LEFT JOIN sys_user_system s ON u.USER_ID = s.USER_ID
+			AND s.SYSTEM_ID = #{systemId}
+			LEFT JOIN sys_role_fhbutton r ON s.ROLE_ID = r.ROLE_ID
+			LEFT JOIN sys_fhbutton f ON r.BUTTON_ID = f.FHBUTTON_ID
+		WHERE
+			u.USER_ID = #{openId}
+	</select>
+
 </mapper>
\ No newline at end of file

--
Gitblit v1.8.0