From ebae0c1137ba96d38e5b2323577129d2c9ff2e6e Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期四, 22 五月 2025 09:45:59 +0800
Subject: [PATCH] 1、优化配置文件; 2、优化ID生成器代码; 3、修改注释; 4、修改权限初始化时算法; 5、导出Excel文件功能归为一个新类; 6、工站数据库存入验空修改;

---
 pms-parent/pms-web-base/src/main/java/com/dy/pmsBase/role/RoleSv.java |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/pms-parent/pms-web-base/src/main/java/com/dy/pmsBase/role/RoleSv.java b/pms-parent/pms-web-base/src/main/java/com/dy/pmsBase/role/RoleSv.java
index 14f39c5..ad67043 100644
--- a/pms-parent/pms-web-base/src/main/java/com/dy/pmsBase/role/RoleSv.java
+++ b/pms-parent/pms-web-base/src/main/java/com/dy/pmsBase/role/RoleSv.java
@@ -55,6 +55,7 @@
      * @param disabled
      * @return
      */
+    @Transactional
     public int disabled(Long id,Boolean disabled) {
         BaRole role=new BaRole();
         role.id=id;
@@ -76,9 +77,9 @@
      * @param priIds 鏉冮檺id
      * @return
      */
-    private void updateRolePrivileges(Long roleId,List<Integer> priIds) {
+    private void updateRolePrivileges(Long roleId,List<Long> priIds) {
         if(CollectionUtils.isEmpty(priIds)){
-            throw new RuntimeException("鏉冮檺id涓嶈兘涓虹┖");
+            return;
         }
         // 鍒犻櫎瑙掕壊鏉冮檺
         rpDao.deleteByRoleId(roleId);
@@ -93,6 +94,10 @@
         return dao.selectByPrimaryKey(Long.valueOf(roleId));
     }
 
+    public List<BaRole> selectAll() {
+        return dao.selectAll();
+    }
+
     /**
      * 鑾峰彇瑙掕壊鍒楄〃
      */

--
Gitblit v1.8.0