From f5156a92b4f64b496336e6465ff9e76ba6d9c756 Mon Sep 17 00:00:00 2001
From: liuxm <liuxm_a@163.com>
Date: 星期一, 03 六月 2024 08:38:51 +0800
Subject: [PATCH] 组装生产任务计划

---
 pms-parent/pms-web-base/src/main/java/com/dy/pmsBase/role/RoleSv.java |    5 +++--
 1 files changed, 3 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 6004a72..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);

--
Gitblit v1.8.0