From 795565345a05fd6f3d6aeb97cb586d8299b399e2 Mon Sep 17 00:00:00 2001
From: Fancy <Fancy.fx@outlook.com>
Date: 星期五, 13 十二月 2024 11:50:18 +0800
Subject: [PATCH] change wx name
---
pms-parent/pms-web-base/src/main/java/com/dy/pmsBase/role/RoleSv.java | 22 ++++++++++++++++++++--
1 files changed, 20 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 ce9d298..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
@@ -49,6 +49,20 @@
return this.dao.deleteLogicById(id);
}
+ /**
+ * 绂佺敤鎴栧惎鐢ㄨ鑹蹭俊鎭�
+ * @param id
+ * @param disabled
+ * @return
+ */
+ @Transactional
+ public int disabled(Long id,Boolean disabled) {
+ BaRole role=new BaRole();
+ role.id=id;
+ role.disabled=disabled;
+ return dao.updateByPrimaryKeySelective(role);
+ }
+
@Transactional
public int update(BaRole role) {
int count = dao.updateByPrimaryKeySelective(role);
@@ -63,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);
@@ -80,6 +94,10 @@
return dao.selectByPrimaryKey(Long.valueOf(roleId));
}
+ public List<BaRole> selectAll() {
+ return dao.selectAll();
+ }
+
/**
* 鑾峰彇瑙掕壊鍒楄〃
*/
--
Gitblit v1.8.0