Java Code Examples for com.ruoyi.common.enums.BusinessType#DELETE
The following examples show how to use
com.ruoyi.common.enums.BusinessType#DELETE .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SysMenuController.java From ruoyiplus with MIT License | 6 votes |
/** * 删除菜单 */ @Log(title = "菜单管理", businessType = BusinessType.DELETE) @RequiresPermissions("system:menu:remove") @PostMapping("/remove/{menuId}") @ResponseBody public AjaxResult remove(@PathVariable("menuId") Long menuId) { if (menuService.selectCountMenuByParentId(menuId) > 0) { return error(1, "存在子菜单,不允许删除"); } if (menuService.selectCountRoleMenuByMenuId(menuId) > 0) { return error(1, "菜单已分配,不允许删除"); } ShiroUtils.clearCachedAuthorizationInfo(); return toAjax(menuService.deleteMenuById(menuId)); }
Example 2
Source File: StoreGoodsController.java From supplierShop with MIT License | 5 votes |
/** * 删除商品主 */ @RequiresPermissions("shop:goods:remove") @Log(title = "商品主", businessType = BusinessType.DELETE) @PostMapping( "/remove") @ResponseBody public AjaxResult remove(String ids) { return toAjax(storeGoodsService.deleteStoreGoodsByIds(ids)); }
Example 3
Source File: SysDictDataController.java From supplierShop with MIT License | 5 votes |
@Log(title = "字典数据", businessType = BusinessType.DELETE) @RequiresPermissions("system:dict:remove") @PostMapping("/remove") @ResponseBody public AjaxResult remove(String ids) { return toAjax(dictDataService.deleteDictDataByIds(ids)); }
Example 4
Source File: SysPostController.java From supplierShop with MIT License | 5 votes |
@RequiresPermissions("system:post:remove") @Log(title = "岗位管理", businessType = BusinessType.DELETE) @PostMapping("/remove") @ResponseBody public AjaxResult remove(String ids) { try { return toAjax(postService.deletePostByIds(ids)); } catch (Exception e) { return error(e.getMessage()); } }
Example 5
Source File: SysDictTypeController.java From supplierShop with MIT License | 5 votes |
@Log(title = "字典类型", businessType = BusinessType.DELETE) @RequiresPermissions("system:dict:remove") @PostMapping("/remove") @ResponseBody public AjaxResult remove(String ids) { try { return toAjax(dictTypeService.deleteDictTypeByIds(ids)); } catch (Exception e) { return error(e.getMessage()); } }
Example 6
Source File: SysConfigController.java From supplierShop with MIT License | 5 votes |
/** * 删除参数配置 */ @RequiresPermissions("system:config:remove") @Log(title = "参数管理", businessType = BusinessType.DELETE) @PostMapping("/remove") @ResponseBody public AjaxResult remove(String ids) { return toAjax(configService.deleteConfigByIds(ids)); }
Example 7
Source File: SysLogininforController.java From RuoYi with Apache License 2.0 | 5 votes |
@RequiresPermissions("monitor:logininfor:remove") @Log(title = "登陆日志", businessType = BusinessType.DELETE) @PostMapping("/remove") @ResponseBody public AjaxResult remove(String ids) { return toAjax(logininforService.deleteLogininforByIds(ids)); }
Example 8
Source File: SysRoleController.java From RuoYi with Apache License 2.0 | 5 votes |
@RequiresPermissions("system:role:remove") @Log(title = "角色管理", businessType = BusinessType.DELETE) @PostMapping("/remove") @ResponseBody public AjaxResult remove(String ids) { try { return toAjax(roleService.deleteRoleByIds(ids)); } catch (Exception e) { return error(e.getMessage()); } }
Example 9
Source File: SysNoticeController.java From ruoyiplus with MIT License | 5 votes |
/** * 删除公告 */ @RequiresPermissions("system:notice:remove") @Log(title = "通知公告", businessType = BusinessType.DELETE) @PostMapping("/remove") @ResponseBody public AjaxResult remove(String ids) { return toAjax(noticeService.deleteNoticeByIds(ids)); }
Example 10
Source File: SysJobController.java From supplierShop with MIT License | 5 votes |
@Log(title = "定时任务", businessType = BusinessType.DELETE) @RequiresPermissions("monitor:job:remove") @PostMapping("/remove") @ResponseBody public AjaxResult remove(String ids) throws SchedulerException { jobService.deleteJobByIds(ids); return success(); }
Example 11
Source File: SysJobLogController.java From RuoYi with Apache License 2.0 | 5 votes |
@Log(title = "调度日志", businessType = BusinessType.DELETE) @RequiresPermissions("monitor:job:remove") @PostMapping("/remove") @ResponseBody public AjaxResult remove(String ids) { return toAjax(jobLogService.deleteJobLogByIds(ids)); }
Example 12
Source File: SysUserController.java From ruoyiplus with MIT License | 5 votes |
@RequiresPermissions("system:user:remove") @Log(title = "用户管理", businessType = BusinessType.DELETE) @PostMapping("/remove") @ResponseBody public AjaxResult remove(String ids) { try { return toAjax(userService.deleteUserByIds(ids)); } catch (Exception e) { return error(e.getMessage()); } }
Example 13
Source File: SysMenuController.java From RuoYi with Apache License 2.0 | 5 votes |
/** * 删除菜单 */ @Log(title = "菜单管理", businessType = BusinessType.DELETE) @RequiresPermissions("system:menu:remove") @GetMapping("/remove/{menuId}") @ResponseBody public AjaxResult remove(@PathVariable("menuId") Long menuId) { if (menuService.selectCountMenuByParentId(menuId) > 0) { return AjaxResult.warn("存在子菜单,不允许删除"); } if (menuService.selectCountRoleMenuByMenuId(menuId) > 0) { return AjaxResult.warn("菜单已分配,不允许删除"); } ShiroUtils.clearCachedAuthorizationInfo(); return toAjax(menuService.deleteMenuById(menuId)); }
Example 14
Source File: SysNoticeController.java From RuoYi with Apache License 2.0 | 5 votes |
/** * 删除公告 */ @RequiresPermissions("system:notice:remove") @Log(title = "通知公告", businessType = BusinessType.DELETE) @PostMapping("/remove") @ResponseBody public AjaxResult remove(String ids) { return toAjax(noticeService.deleteNoticeByIds(ids)); }
Example 15
Source File: StoreGoodsAttributeController.java From supplierShop with MIT License | 5 votes |
/** * 删除商品的属性(独立) */ @RequiresPermissions("shop:attribute:remove") @Log(title = "商品的属性(独立)", businessType = BusinessType.DELETE) @PostMapping( "/remove") @ResponseBody public AjaxResult remove(String ids) { return toAjax(storeGoodsAttributeService.deleteStoreGoodsAttributeByIds(ids)); }
Example 16
Source File: SysRoleController.java From ruoyiplus with MIT License | 5 votes |
@RequiresPermissions("system:role:remove") @Log(title = "角色管理", businessType = BusinessType.DELETE) @PostMapping("/remove") @ResponseBody public AjaxResult remove(String ids) { try { return toAjax(roleService.deleteRoleByIds(ids)); } catch (Exception e) { return error(e.getMessage()); } }
Example 17
Source File: SysDeptController.java From RuoYi with Apache License 2.0 | 5 votes |
/** * 删除 */ @Log(title = "部门管理", businessType = BusinessType.DELETE) @RequiresPermissions("system:dept:remove") @GetMapping("/remove/{deptId}") @ResponseBody public AjaxResult remove(@PathVariable("deptId") Long deptId) { if (deptService.selectDeptCount(deptId) > 0) { return AjaxResult.warn("存在下级部门,不允许删除"); } if (deptService.checkDeptExistUser(deptId)) { return AjaxResult.warn("部门存在用户,不允许删除"); } return toAjax(deptService.deleteDeptById(deptId)); }
Example 18
Source File: SysJobLogController.java From supplierShop with MIT License | 5 votes |
@Log(title = "调度日志", businessType = BusinessType.DELETE) @RequiresPermissions("monitor:job:remove") @PostMapping("/remove") @ResponseBody public AjaxResult remove(String ids) { return toAjax(jobLogService.deleteJobLogByIds(ids)); }
Example 19
Source File: SysJobController.java From RuoYi with Apache License 2.0 | 5 votes |
@Log(title = "定时任务", businessType = BusinessType.DELETE) @RequiresPermissions("monitor:job:remove") @PostMapping("/remove") @ResponseBody public AjaxResult remove(String ids)throws SchedulerException { jobService.deleteJobByIds(ids); return success(); }
Example 20
Source File: SysLogininforController.java From supplierShop with MIT License | 5 votes |
@RequiresPermissions("monitor:logininfor:remove") @Log(title = "登陆日志", businessType = BusinessType.DELETE) @PostMapping("/remove") @ResponseBody public AjaxResult remove(String ids) { return toAjax(logininforService.deleteLogininforByIds(ids)); }