月球大数据地理空间分析展示平台-【后端】-月球后台服务
1
13693261870
2024-11-11 fee67ca8a0760315047a52fc4101a8f4f80b7a7f
src/main/java/com/moon/server/controller/sys/MenuController.java
@@ -19,13 +19,9 @@
import javax.servlet.http.HttpServletRequest;
import java.util.List;
/**
 * 菜单
 * @author sws
 * @date   2022-09-23
 */
@Api(tags= "运维管理\\菜单管理")
@RestController
@SuppressWarnings("ALL")
@RequestMapping("/menu")
public class MenuController extends BaseController {
    @Autowired
@@ -50,10 +46,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 +70,8 @@
                }
            }
            permsService.clearPermsCache();
            int count = menuService.insertMenus(list);
            if (count > 0) {
                permsService.clearPermsCache();
            }
            return success(count);
        } catch (Exception ex) {
@@ -95,10 +87,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 +108,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 +131,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 +156,8 @@
                }
            }
            permsService.clearPermsCache();
            int count = menuService.updateMenus(list);
            if (count > 0) {
                permsService.clearPermsCache();
            }
            return success(count);
        } catch (Exception ex) {