From 9644fb41cd6f23a032c56beba0c548e64b2693de Mon Sep 17 00:00:00 2001 From: liuxm <liuxm@fescotech.com> Date: 星期一, 29 四月 2024 16:23:18 +0800 Subject: [PATCH] 角色管理方法修改 --- pms-parent/pms-web-base/src/main/java/com/dy/pmsBase/role/RoleSv.java | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 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 e3a95c6..14f39c5 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 @@ -2,7 +2,6 @@ import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; import com.dy.common.webUtil.QueryResultVo; -import com.dy.pmsBase.role.QueryVo; import com.dy.pmsGlobal.daoBa.BaPrivilegeMapper; import com.dy.pmsGlobal.daoBa.BaRoleMapper; import com.dy.pmsGlobal.daoBa.BaRolePrivilegeMapper; @@ -50,6 +49,19 @@ return this.dao.deleteLogicById(id); } + /** + * 绂佺敤鎴栧惎鐢ㄨ鑹蹭俊鎭� + * @param id + * @param disabled + * @return + */ + 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); -- Gitblit v1.8.0