月球大数据地理空间分析展示平台-【后端】-月球后台服务
13693261870
2023-08-28 910c0d09275fc7ac411a0bcbe87bc7b5ead533ee
src/main/java/com/moon/server/controller/sys/MenuController.java
@@ -50,10 +50,8 @@
                entity.setCreateUser(ue.getId());
            }
            permsService.clearPermsCache();
            int count = menuService.insertMenu(entity);
            if (count > 0) {
                permsService.clearPermsCache();
            }
            return success(count);
        } catch (Exception ex) {
@@ -76,10 +74,8 @@
                }
            }
            permsService.clearPermsCache();
            int count = menuService.insertMenus(list);
            if (count > 0) {
                permsService.clearPermsCache();
            }
            return success(count);
        } catch (Exception ex) {
@@ -95,10 +91,8 @@
    @GetMapping(value = "/deleteMenu")
    public ResponseMsg<Integer> deleteMenu(int id) {
        try {
            permsService.clearPermsCache();
            int count = menuService.deleteMenu(id);
            if (count > 0) {
                permsService.clearPermsCache();
            }
            return success(count);
        } catch (Exception ex) {
@@ -118,10 +112,8 @@
                return fail("id数组不能为空", -1);
            }
            permsService.clearPermsCache();
            int count = menuService.deleteMenus(ids);
            if (count > 0) {
                permsService.clearPermsCache();
            }
            return success(count);
        } catch (Exception ex) {
@@ -143,10 +135,8 @@
                entity.setUpdateUser(ue.getId());
            }
            permsService.clearPermsCache();
            int count = menuService.updateMenu(entity);
            if (count > 0) {
                permsService.clearPermsCache();
            }
            return success(count);
        } catch (Exception ex) {
@@ -170,10 +160,8 @@
                }
            }
            permsService.clearPermsCache();
            int count = menuService.updateMenus(list);
            if (count > 0) {
                permsService.clearPermsCache();
            }
            return success(count);
        } catch (Exception ex) {