月球大数据地理空间分析展示平台-【后端】-月球后台服务
1
13693261870
2024-11-11 fee67ca8a0760315047a52fc4101a8f4f80b7a7f
src/main/java/com/moon/server/controller/sys/MenuAuthController.java
@@ -18,12 +18,9 @@
import javax.servlet.http.HttpServletRequest;
import java.util.List;
/**
 * 菜单-权限
 * @author WWW
 */
@Api(tags = "运维管理\\菜单权限")
@RestController
@SuppressWarnings("ALL")
@RequestMapping("/menuAuth")
public class MenuAuthController extends BaseController {
    @Autowired
@@ -168,10 +165,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 +189,8 @@
                }
            }
            permsService.clearPermsCache();
            int count = menuAuthService.inserts(list);
            if (count > 0) {
                permsService.clearPermsCache();
            }
            return success(count);
        } catch (Exception ex) {
@@ -213,10 +206,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 +227,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 +250,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 +275,8 @@
                }
            }
            permsService.clearPermsCache();
            int count = menuAuthService.updates(list);
            if (count > 0) {
                permsService.clearPermsCache();
            }
            return success(count);
        } catch (Exception ex) {