月球大数据地理空间分析展示平台-【后端】-月球后台服务
13693261870
2023-08-25 7e0bae3a2e766241046877d10c5bd538e21d2473
修改缓存清理机制
已修改6个文件
56 ■■■■ 文件已修改
src/main/java/com/moon/server/controller/data/PublishController.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/moon/server/controller/sys/LayerController.java 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/moon/server/controller/sys/ResController.java 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/moon/server/controller/sys/RoleLayerController.java 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/moon/server/controller/sys/RoleResController.java 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/moon/server/service/all/TestService.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/moon/server/controller/data/PublishController.java
@@ -251,7 +251,7 @@
                entity.setToken(WebHelper.getToken(req));
            }
            permsService.clearLayerCache();
            permsService.clearPermsCache();
            String method = getConvertMethod(entity.getType());
            long count = publishService.postForPub(entity, method, req);
@@ -304,7 +304,7 @@
            }
            // publishService.deleteFiles(list)
            permsService.clearLayerCache();
            permsService.clearPermsCache();
            publishService.deleteFiles(ids, req);
            int count = publishService.deletes(ids, req);
@@ -329,7 +329,7 @@
                entity.setUpdateUser(ue.getId());
            }
            permsService.clearLayerCache();
            permsService.clearPermsCache();
            int count = publishService.update(entity);
            return success(count);
src/main/java/com/moon/server/controller/sys/LayerController.java
@@ -106,7 +106,7 @@
            int count = layerService.insert(entity);
            if (count > 0) {
                permsService.clearLayerCache();
                permsService.clearPermsCache();
            }
            return success(count);
@@ -132,7 +132,7 @@
            int count = layerService.inserts(list);
            if (count > 0) {
                permsService.clearLayerCache();
                permsService.clearPermsCache();
            }
            return success(count);
@@ -151,7 +151,7 @@
        try {
            int count = layerService.delete(id);
            if (count > 0) {
                permsService.clearLayerCache();
                permsService.clearPermsCache();
            }
            return success(count);
@@ -174,7 +174,7 @@
            int count = layerService.deletes(ids);
            if (count > 0) {
                permsService.clearLayerCache();
                permsService.clearPermsCache();
            }
            return success(count);
@@ -199,7 +199,7 @@
            int count = layerService.update(entity);
            if (count > 0) {
                permsService.clearLayerCache();
                permsService.clearPermsCache();
            }
            return success(count);
@@ -226,7 +226,7 @@
            int count = layerService.updates(list);
            if (count > 0) {
                permsService.clearLayerCache();
                permsService.clearPermsCache();
            }
            return success(count);
src/main/java/com/moon/server/controller/sys/ResController.java
@@ -142,7 +142,7 @@
            int count = resService.insert(entity);
            if (count > 0) {
                permsService.clearResCache();
                permsService.clearPermsCache();
            }
            return success(count);
@@ -169,7 +169,7 @@
            int count = resService.inserts(list);
            if (count > 0) {
                permsService.clearResCache();
                permsService.clearPermsCache();
            }
            return success(count);
@@ -188,7 +188,7 @@
        try {
            int count = resService.delete(id);
            if (count > 0) {
                permsService.clearResCache();
                permsService.clearPermsCache();
            }
            return success(count);
@@ -211,7 +211,7 @@
            int count = resService.deletes(ids);
            if (count > 0) {
                permsService.clearResCache();
                permsService.clearPermsCache();
            }
            return success(count);
@@ -237,7 +237,7 @@
            int count = resService.update(entity);
            if (count > 0) {
                permsService.clearResCache();
                permsService.clearPermsCache();
            }
            return success(count);
@@ -265,7 +265,7 @@
            int count = resService.updates(list);
            if (count > 0) {
                permsService.clearResCache();
                permsService.clearPermsCache();
            }
            return success(count);
src/main/java/com/moon/server/controller/sys/RoleLayerController.java
@@ -110,7 +110,7 @@
            int count = roleLayerService.insert(entity);
            if (count > 0) {
                permsService.clearLayerCache();
                permsService.clearPermsCache();
            }
            return success(count);
@@ -136,7 +136,7 @@
            int count = roleLayerService.inserts(list);
            if (count > 0) {
                permsService.clearLayerCache();
                permsService.clearPermsCache();
            }
            return success(count);
@@ -155,7 +155,7 @@
        try {
            int count = roleLayerService.delete(id);
            if (count > 0) {
                permsService.clearLayerCache();
                permsService.clearPermsCache();
            }
            return success(count);
@@ -178,7 +178,7 @@
            int count = roleLayerService.deletes(ids);
            if (count > 0) {
                permsService.clearLayerCache();
                permsService.clearPermsCache();
            }
            return success(count);
@@ -203,7 +203,7 @@
            int count = roleLayerService.update(entity);
            if (count > 0) {
                permsService.clearLayerCache();
                permsService.clearPermsCache();
            }
            return success(count);
@@ -230,7 +230,7 @@
            int count = roleLayerService.updates(list);
            if (count > 0) {
                permsService.clearLayerCache();
                permsService.clearPermsCache();
            }
            return success(count);
src/main/java/com/moon/server/controller/sys/RoleResController.java
@@ -108,7 +108,7 @@
            int count = roleResService.insert(entity);
            if (count > 0) {
                permsService.clearResCache();
                permsService.clearPermsCache();
            }
            return success(count);
@@ -134,7 +134,7 @@
            int count = roleResService.inserts(list);
            if (count > 0) {
                permsService.clearResCache();
                permsService.clearPermsCache();
            }
            return success(count);
@@ -153,7 +153,7 @@
        try {
            int count = roleResService.delete(id);
            if (count > 0) {
                permsService.clearResCache();
                permsService.clearPermsCache();
            }
            return success(count);
@@ -176,7 +176,7 @@
            int count = roleResService.deletes(ids);
            if (count > 0) {
                permsService.clearResCache();
                permsService.clearPermsCache();
            }
            return success(count);
@@ -201,7 +201,7 @@
            int count = roleResService.update(entity);
            if (count > 0) {
                permsService.clearResCache();
                permsService.clearPermsCache();
            }
            return success(count);
@@ -228,7 +228,7 @@
            int count = roleResService.updates(list);
            if (count > 0) {
                permsService.clearResCache();
                permsService.clearPermsCache();
            }
            return success(count);
src/main/java/com/moon/server/service/all/TestService.java
@@ -117,7 +117,7 @@
        List<PermsAuthEntity> pauList = permsService.selectPermsEntity("admin");
        List<PermsAuthEntity> pauList2 = permsService.selectPermsEntity("admin");
        permsService.clearResCache();
        // permsService.clearResCache()
        permsService.clearPermsCache();
        raeList = permsService.selectRes("admin");