13693261870
2025-07-08 810ad9dbaa8553299a4516790a9f546a9b84905e
se-system/src/main/java/com/terra/system/controller/sys/RoleController.java
@@ -117,10 +117,8 @@
                entity.setCreateUser(ue.getId());
            }
            permsService.clearPermsCache();
            int count = roleService.insertRole(entity);
            if (count > 0) {
                permsService.clearPermsCache();
            }
            return success(count);
        } catch (Exception ex) {
@@ -143,10 +141,8 @@
                }
            }
            permsService.clearPermsCache();
            int count = roleService.insertRoles(list);
            if (count > 0) {
                permsService.clearPermsCache();
            }
            return success(count);
        } catch (Exception ex) {
@@ -162,10 +158,8 @@
    @GetMapping(value = "/deleteRole")
    public ResponseMsg<Integer> deleteRole(int id) {
        try {
            permsService.clearPermsCache();
            int count = roleService.deleteRole(id);
            if (count > 0) {
                permsService.clearPermsCache();
            }
            return success(count);
        } catch (Exception ex) {
@@ -185,10 +179,8 @@
                return fail("id数组不能为空", -1);
            }
            permsService.clearPermsCache();
            int count = roleService.deleteRoles(ids);
            if (count > 0) {
                permsService.clearPermsCache();
            }
            return success(count);
        } catch (Exception ex) {
@@ -210,10 +202,8 @@
                entity.setUpdateUser(ue.getId());
            }
            permsService.clearPermsCache();
            int count = roleService.updateRole(entity);
            if (count > 0) {
                permsService.clearPermsCache();
            }
            return success(count);
        } catch (Exception ex) {