月球大数据地理空间分析展示平台-【后端】-月球后台服务
13693261870
2023-10-08 cd5ddb61527d65c72e78c6f475d5026bb5beb0e4
src/main/java/com/moon/server/controller/sys/RoleLayerController.java
@@ -108,10 +108,8 @@
                entity.setCreateUser(ue.getId());
            }
            permsService.clearPermsCache();
            int count = roleLayerService.insert(entity);
            if (count > 0) {
                permsService.clearLayerCache();
            }
            return success(count);
        } catch (Exception ex) {
@@ -134,10 +132,8 @@
                }
            }
            permsService.clearPermsCache();
            int count = roleLayerService.inserts(list);
            if (count > 0) {
                permsService.clearLayerCache();
            }
            return success(count);
        } catch (Exception ex) {
@@ -153,10 +149,8 @@
    @GetMapping(value = "/delete")
    public ResponseMsg<Integer> delete(int id) {
        try {
            permsService.clearPermsCache();
            int count = roleLayerService.delete(id);
            if (count > 0) {
                permsService.clearLayerCache();
            }
            return success(count);
        } catch (Exception ex) {
@@ -176,10 +170,8 @@
                return fail("id数组不能为空", -1);
            }
            permsService.clearPermsCache();
            int count = roleLayerService.deletes(ids);
            if (count > 0) {
                permsService.clearLayerCache();
            }
            return success(count);
        } catch (Exception ex) {
@@ -201,10 +193,8 @@
                entity.setUpdateUser(ue.getId());
            }
            permsService.clearPermsCache();
            int count = roleLayerService.update(entity);
            if (count > 0) {
                permsService.clearLayerCache();
            }
            return success(count);
        } catch (Exception ex) {
@@ -228,10 +218,8 @@
                }
            }
            permsService.clearPermsCache();
            int count = roleLayerService.updates(list);
            if (count > 0) {
                permsService.clearLayerCache();
            }
            return success(count);
        } catch (Exception ex) {