From f1e6aadf01a2ac32bc1707ca43fc6a2d2587b9ac Mon Sep 17 00:00:00 2001 From: liuxm <liuxm@fescotech.com> Date: 星期四, 16 五月 2024 15:07:14 +0800 Subject: [PATCH] 添加 产品,质检项目,不合格原因,报废原因的 禁用启用方法;id序列化 --- pms-parent/pms-web-base/src/main/java/com/dy/pmsBase/role/RoleSv.java | 8 ++++++-- 1 files changed, 6 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..eec6e82 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 @@ -76,9 +76,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 +93,10 @@ return dao.selectByPrimaryKey(Long.valueOf(roleId)); } + public List<BaRole> selectAll() { + return dao.selectAll(); + } + /** * 鑾峰彇瑙掕壊鍒楄〃 */ -- Gitblit v1.8.0