From ff55f15de19cb5bf02fa4d2313f4882ef9b3a452 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期三, 30 四月 2025 10:47:34 +0800
Subject: [PATCH] 表阀一体机上报心跳数据最小间隔经常改动,时常不通知软件开发人员,所以通信中间件根据最小上报数据间隔会切断设备网络连接,为此改变中间件配置,最小心跳间隔改为在properties文件中配置。

---
 pipIrr-platform/pipIrr-global/src/main/resources/mapper/BaUserRoleMapper.xml |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/BaUserRoleMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/BaUserRoleMapper.xml
index ccdf6ef..8840d70 100644
--- a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/BaUserRoleMapper.xml
+++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/BaUserRoleMapper.xml
@@ -60,4 +60,17 @@
     where userId = #{roleId,jdbcType=BIGINT}
   </delete>
 
+  <!--鏍规嵁鐢ㄦ埛缂栧彿鑾峰彇鏉冮檺鍒楄〃-->
+  <select id="getPermissionsByUserId" resultType="java.util.Map">
+    SELECT
+      rol.id AS roleId,
+      rol.`name` AS roleName,
+      per.id AS perId
+    FROM ba_user_role use_rol
+           INNER JOIN ba_role rol ON rol.id = use_rol.roleId
+           INNER JOIN ba_role_permissions per ON per.roleId = rol.id
+    WHERE use_rol.userId = ${userId}
+
+  </select>
+
 </mapper>
\ No newline at end of file

--
Gitblit v1.8.0