| | |
| | | |
| | | @Override |
| | | public int saveSysClauseManagement(SysClauseManagement sysClauseManagement) { |
| | | if (!SecurityUtils.isAdmin(SecurityUtils.getUserId())){ |
| | | if (!SecurityUtils.adminUser()){ |
| | | throw new ApiException("没有权限访问!"); |
| | | } |
| | | LambdaQueryWrapper<SysClauseManagement> lambdaQueryWrapper = Wrappers.<SysClauseManagement>lambdaQuery() |
| | |
| | | |
| | | @Override |
| | | public int delSysClauseManagement(Long id) { |
| | | if (!SecurityUtils.isAdmin(SecurityUtils.getUserId())){ |
| | | if (!SecurityUtils.adminUser()){ |
| | | throw new ApiException("没有权限访问!"); |
| | | } |
| | | //todo 校验已使用的? |