月球大数据地理空间分析展示平台-【后端】-月球后台服务
13693261870
2023-08-28 910c0d09275fc7ac411a0bcbe87bc7b5ead533ee
src/main/java/com/moon/server/controller/sys/MenuAuthController.java
@@ -168,10 +168,8 @@
                entity.setCreateUser(ue.getId());
            }
            permsService.clearPermsCache();
            int count = menuAuthService.insert(entity);
            if (count > 0) {
                permsService.clearPermsCache();
            }
            return success(count);
        } catch (Exception ex) {
@@ -194,10 +192,8 @@
                }
            }
            permsService.clearPermsCache();
            int count = menuAuthService.inserts(list);
            if (count > 0) {
                permsService.clearPermsCache();
            }
            return success(count);
        } catch (Exception ex) {
@@ -213,10 +209,8 @@
    @GetMapping(value = "/delete")
    public ResponseMsg<Integer> delete(int id) {
        try {
            permsService.clearPermsCache();
            int count = menuAuthService.delete(id);
            if (count > 0) {
                permsService.clearPermsCache();
            }
            return success(count);
        } catch (Exception ex) {
@@ -236,10 +230,8 @@
                return fail("id数组不能为空", -1);
            }
            permsService.clearPermsCache();
            int count = menuAuthService.deletes(ids);
            if (count > 0) {
                permsService.clearPermsCache();
            }
            return success(count);
        } catch (Exception ex) {
@@ -261,10 +253,8 @@
                entity.setUpdateUser(ue.getId());
            }
            permsService.clearPermsCache();
            int count = menuAuthService.update(entity);
            if (count > 0) {
                permsService.clearPermsCache();
            }
            return success(count);
        } catch (Exception ex) {
@@ -288,10 +278,8 @@
                }
            }
            permsService.clearPermsCache();
            int count = menuAuthService.updates(list);
            if (count > 0) {
                permsService.clearPermsCache();
            }
            return success(count);
        } catch (Exception ex) {