取消接口的权限校验

master
吴顺杰 10 months ago
parent f03f16b258
commit 8a034b5238

@ -42,7 +42,7 @@ public class BNetController extends BaseController {
/**
*
*/
@PreAuthorize("@ss.hasPermi('netEwm:net:list')")
// @PreAuthorize("@ss.hasPermi('netEwm:net:list')")
@GetMapping("/list")
public TableDataInfo list(BNet bNet) {
startPage();
@ -67,7 +67,7 @@ public class BNetController extends BaseController {
/**
*
*/
@PreAuthorize("@ss.hasPermi('netEwm:net:export')")
// @PreAuthorize("@ss.hasPermi('netEwm:net:export')")
@Log(title = "网络", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, BNet bNet) {
@ -79,7 +79,7 @@ public class BNetController extends BaseController {
/**
*
*/
@PreAuthorize("@ss.hasPermi('netEwm:net:query')")
// @PreAuthorize("@ss.hasPermi('netEwm:net:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) {
return success(bNetService.selectBNetById(id));
@ -88,7 +88,7 @@ public class BNetController extends BaseController {
/**
*
*/
@PreAuthorize("@ss.hasPermi('netEwm:net:add')")
// @PreAuthorize("@ss.hasPermi('netEwm:net:add')")
@Log(title = "网络", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody BNet bNet) {
@ -98,7 +98,7 @@ public class BNetController extends BaseController {
/**
*
*/
@PreAuthorize("@ss.hasPermi('netEwm:net:edit')")
// @PreAuthorize("@ss.hasPermi('netEwm:net:edit')")
@Log(title = "网络", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody BNet bNet) {
@ -108,7 +108,7 @@ public class BNetController extends BaseController {
/**
*
*/
@PreAuthorize("@ss.hasPermi('netEwm:net:remove')")
// @PreAuthorize("@ss.hasPermi('netEwm:net:remove')")
@Log(title = "网络", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) {

@ -41,7 +41,7 @@ public class BNetHistoryController extends BaseController {
/**
*
*/
@PreAuthorize("@ss.hasPermi('netEwm:netHistory:list')")
// @PreAuthorize("@ss.hasPermi('netEwm:netHistory:list')")
@GetMapping("/list")
public TableDataInfo list(BNetHistory bNetHistory) {
startPage();
@ -52,7 +52,7 @@ public class BNetHistoryController extends BaseController {
/**
*
*/
@PreAuthorize("@ss.hasPermi('netEwm:netHistory:export')")
// @PreAuthorize("@ss.hasPermi('netEwm:netHistory:export')")
@Log(title = "连网历史", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, BNetHistory bNetHistory) {
@ -64,7 +64,7 @@ public class BNetHistoryController extends BaseController {
/**
*
*/
@PreAuthorize("@ss.hasPermi('netEwm:netHistory:query')")
// @PreAuthorize("@ss.hasPermi('netEwm:netHistory:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) {
return success(bNetHistoryService.selectBNetHistoryById(id));
@ -73,7 +73,7 @@ public class BNetHistoryController extends BaseController {
/**
*
*/
@PreAuthorize("@ss.hasPermi('netEwm:netHistory:add')")
// @PreAuthorize("@ss.hasPermi('netEwm:netHistory:add')")
@Log(title = "连网历史", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody BNetHistory bNetHistory) {
@ -83,7 +83,7 @@ public class BNetHistoryController extends BaseController {
/**
*
*/
@PreAuthorize("@ss.hasPermi('netEwm:netHistory:edit')")
// @PreAuthorize("@ss.hasPermi('netEwm:netHistory:edit')")
@Log(title = "连网历史", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody BNetHistory bNetHistory) {
@ -93,7 +93,7 @@ public class BNetHistoryController extends BaseController {
/**
*
*/
@PreAuthorize("@ss.hasPermi('netEwm:netHistory:remove')")
// @PreAuthorize("@ss.hasPermi('netEwm:netHistory:remove')")
@Log(title = "连网历史", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) {

@ -44,7 +44,7 @@ public class BPosterController extends BaseController {
/**
* 广
*/
@PreAuthorize("@ss.hasPermi('netEwm:poster:list')")
// @PreAuthorize("@ss.hasPermi('netEwm:poster:list')")
@GetMapping("/list")
public TableDataInfo list(BPoster bPoster) {
startPage();
@ -55,7 +55,7 @@ public class BPosterController extends BaseController {
/**
* 广
*/
@PreAuthorize("@ss.hasPermi('netEwm:poster:export')")
// @PreAuthorize("@ss.hasPermi('netEwm:poster:export')")
@Log(title = "广告", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, BPoster bPoster) {
@ -67,7 +67,7 @@ public class BPosterController extends BaseController {
/**
* 广
*/
@PreAuthorize("@ss.hasPermi('netEwm:poster:query')")
// @PreAuthorize("@ss.hasPermi('netEwm:poster:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) {
return success(bPosterService.selectBPosterById(id));
@ -76,7 +76,7 @@ public class BPosterController extends BaseController {
/**
* 广
*/
@PreAuthorize("@ss.hasPermi('netEwm:poster:add')")
// @PreAuthorize("@ss.hasPermi('netEwm:poster:add')")
@Log(title = "广告", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody BPoster bPoster) {
@ -99,7 +99,7 @@ public class BPosterController extends BaseController {
/**
* 广
*/
@PreAuthorize("@ss.hasPermi('netEwm:poster:edit')")
// @PreAuthorize("@ss.hasPermi('netEwm:poster:edit')")
@Log(title = "广告", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody BPoster bPoster) {
@ -109,7 +109,7 @@ public class BPosterController extends BaseController {
/**
* 广
*/
@PreAuthorize("@ss.hasPermi('netEwm:poster:remove')")
// @PreAuthorize("@ss.hasPermi('netEwm:poster:remove')")
@Log(title = "广告", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) {

@ -41,7 +41,7 @@ public class BPosterHistoryController extends BaseController {
/**
* 广
*/
@PreAuthorize("@ss.hasPermi('netEwm:posterHistory:list')")
// @PreAuthorize("@ss.hasPermi('netEwm:posterHistory:list')")
@GetMapping("/list")
public TableDataInfo list(BPosterHistory bPosterHistory) {
startPage();
@ -52,7 +52,7 @@ public class BPosterHistoryController extends BaseController {
/**
* 广
*/
@PreAuthorize("@ss.hasPermi('netEwm:posterHistory:export')")
// @PreAuthorize("@ss.hasPermi('netEwm:posterHistory:export')")
@Log(title = "广告历史", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, BPosterHistory bPosterHistory) {
@ -64,7 +64,7 @@ public class BPosterHistoryController extends BaseController {
/**
* 广
*/
@PreAuthorize("@ss.hasPermi('netEwm:posterHistory:query')")
// @PreAuthorize("@ss.hasPermi('netEwm:posterHistory:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) {
return success(bPosterHistoryService.selectBPosterHistoryById(id));
@ -73,7 +73,7 @@ public class BPosterHistoryController extends BaseController {
/**
* 广
*/
@PreAuthorize("@ss.hasPermi('netEwm:posterHistory:add')")
// @PreAuthorize("@ss.hasPermi('netEwm:posterHistory:add')")
@Log(title = "广告历史", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody BPosterHistory bPosterHistory) {
@ -83,7 +83,7 @@ public class BPosterHistoryController extends BaseController {
/**
* 广
*/
@PreAuthorize("@ss.hasPermi('netEwm:posterHistory:edit')")
// @PreAuthorize("@ss.hasPermi('netEwm:posterHistory:edit')")
@Log(title = "广告历史", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody BPosterHistory bPosterHistory) {
@ -93,7 +93,7 @@ public class BPosterHistoryController extends BaseController {
/**
* 广
*/
@PreAuthorize("@ss.hasPermi('netEwm:posterHistory:remove')")
// @PreAuthorize("@ss.hasPermi('netEwm:posterHistory:remove')")
@Log(title = "广告历史", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) {

@ -9,7 +9,6 @@ import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.system.domain.BShanghu;
import com.ruoyi.system.service.IBShanghuService;
import io.swagger.annotations.Api;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
@ -41,7 +40,7 @@ public class BShanghuController extends BaseController {
/**
*
*/
@PreAuthorize("@ss.hasPermi('netEwm:shanghu:list')")
// @PreAuthorize("@ss.hasPermi('netEwm:shanghu:list')")
@GetMapping("/list")
public TableDataInfo list(BShanghu bShanghu) {
startPage();
@ -52,7 +51,7 @@ public class BShanghuController extends BaseController {
/**
*
*/
@PreAuthorize("@ss.hasPermi('netEwm:shanghu:export')")
// @PreAuthorize("@ss.hasPermi('netEwm:shanghu:export')")
@Log(title = "商户", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, BShanghu bShanghu) {
@ -64,7 +63,7 @@ public class BShanghuController extends BaseController {
/**
*
*/
@PreAuthorize("@ss.hasPermi('netEwm:shanghu:query')")
// @PreAuthorize("@ss.hasPermi('netEwm:shanghu:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) {
return success(bShanghuService.selectBShanghuById(id));
@ -73,7 +72,7 @@ public class BShanghuController extends BaseController {
/**
*
*/
@PreAuthorize("@ss.hasPermi('netEwm:shanghu:add')")
// @PreAuthorize("@ss.hasPermi('netEwm:shanghu:add')")
@Log(title = "商户", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody BShanghu bShanghu) {
@ -83,7 +82,7 @@ public class BShanghuController extends BaseController {
/**
*
*/
@PreAuthorize("@ss.hasPermi('netEwm:shanghu:edit')")
// @PreAuthorize("@ss.hasPermi('netEwm:shanghu:edit')")
@Log(title = "商户", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody BShanghu bShanghu) {
@ -93,7 +92,7 @@ public class BShanghuController extends BaseController {
/**
*
*/
@PreAuthorize("@ss.hasPermi('netEwm:shanghu:remove')")
// @PreAuthorize("@ss.hasPermi('netEwm:shanghu:remove')")
@Log(title = "商户", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) {

@ -44,7 +44,7 @@ public class CacheController
caches.add(new SysCache(CacheConstants.PWD_ERR_CNT_KEY, "密码错误次数"));
}
@PreAuthorize("@ss.hasPermi('monitor:cache:list')")
// @PreAuthorize("@ss.hasPermi('monitor:cache:list')")
@GetMapping()
public AjaxResult getInfo() throws Exception
{
@ -68,14 +68,14 @@ public class CacheController
return AjaxResult.success(result);
}
@PreAuthorize("@ss.hasPermi('monitor:cache:list')")
// @PreAuthorize("@ss.hasPermi('monitor:cache:list')")
@GetMapping("/getNames")
public AjaxResult cache()
{
return AjaxResult.success(caches);
}
@PreAuthorize("@ss.hasPermi('monitor:cache:list')")
// @PreAuthorize("@ss.hasPermi('monitor:cache:list')")
@GetMapping("/getKeys/{cacheName}")
public AjaxResult getCacheKeys(@PathVariable String cacheName)
{
@ -83,7 +83,7 @@ public class CacheController
return AjaxResult.success(cacheKeys);
}
@PreAuthorize("@ss.hasPermi('monitor:cache:list')")
// @PreAuthorize("@ss.hasPermi('monitor:cache:list')")
@GetMapping("/getValue/{cacheName}/{cacheKey}")
public AjaxResult getCacheValue(@PathVariable String cacheName, @PathVariable String cacheKey)
{
@ -92,7 +92,7 @@ public class CacheController
return AjaxResult.success(sysCache);
}
@PreAuthorize("@ss.hasPermi('monitor:cache:list')")
// @PreAuthorize("@ss.hasPermi('monitor:cache:list')")
@DeleteMapping("/clearCacheName/{cacheName}")
public AjaxResult clearCacheName(@PathVariable String cacheName)
{
@ -101,7 +101,7 @@ public class CacheController
return AjaxResult.success();
}
@PreAuthorize("@ss.hasPermi('monitor:cache:list')")
// @PreAuthorize("@ss.hasPermi('monitor:cache:list')")
@DeleteMapping("/clearCacheKey/{cacheKey}")
public AjaxResult clearCacheKey(@PathVariable String cacheKey)
{
@ -109,7 +109,7 @@ public class CacheController
return AjaxResult.success();
}
@PreAuthorize("@ss.hasPermi('monitor:cache:list')")
// @PreAuthorize("@ss.hasPermi('monitor:cache:list')")
@DeleteMapping("/clearCacheAll")
public AjaxResult clearCacheAll()
{

@ -16,7 +16,7 @@ import com.ruoyi.framework.web.domain.Server;
@RequestMapping("/monitor/server")
public class ServerController
{
@PreAuthorize("@ss.hasPermi('monitor:server:list')")
// @PreAuthorize("@ss.hasPermi('monitor:server:list')")
@GetMapping()
public AjaxResult getInfo() throws Exception
{

@ -35,7 +35,7 @@ public class SysLogininforController extends BaseController
@Autowired
private SysPasswordService passwordService;
@PreAuthorize("@ss.hasPermi('monitor:logininfor:list')")
// @PreAuthorize("@ss.hasPermi('monitor:logininfor:list')")
@GetMapping("/list")
public TableDataInfo list(SysLogininfor logininfor)
{
@ -45,7 +45,7 @@ public class SysLogininforController extends BaseController
}
@Log(title = "登录日志", businessType = BusinessType.EXPORT)
@PreAuthorize("@ss.hasPermi('monitor:logininfor:export')")
// @PreAuthorize("@ss.hasPermi('monitor:logininfor:export')")
@PostMapping("/export")
public void export(HttpServletResponse response, SysLogininfor logininfor)
{
@ -54,7 +54,7 @@ public class SysLogininforController extends BaseController
util.exportExcel(response, list, "登录日志");
}
@PreAuthorize("@ss.hasPermi('monitor:logininfor:remove')")
// @PreAuthorize("@ss.hasPermi('monitor:logininfor:remove')")
@Log(title = "登录日志", businessType = BusinessType.DELETE)
@DeleteMapping("/{infoIds}")
public AjaxResult remove(@PathVariable Long[] infoIds)
@ -62,7 +62,7 @@ public class SysLogininforController extends BaseController
return toAjax(logininforService.deleteLogininforByIds(infoIds));
}
@PreAuthorize("@ss.hasPermi('monitor:logininfor:remove')")
// @PreAuthorize("@ss.hasPermi('monitor:logininfor:remove')")
@Log(title = "登录日志", businessType = BusinessType.CLEAN)
@DeleteMapping("/clean")
public AjaxResult clean()
@ -71,7 +71,7 @@ public class SysLogininforController extends BaseController
return success();
}
@PreAuthorize("@ss.hasPermi('monitor:logininfor:unlock')")
// @PreAuthorize("@ss.hasPermi('monitor:logininfor:unlock')")
@Log(title = "账户解锁", businessType = BusinessType.OTHER)
@GetMapping("/unlock/{userName}")
public AjaxResult unlock(@PathVariable("userName") String userName)

@ -31,7 +31,7 @@ public class SysOperlogController extends BaseController
@Autowired
private ISysOperLogService operLogService;
@PreAuthorize("@ss.hasPermi('monitor:operlog:list')")
// @PreAuthorize("@ss.hasPermi('monitor:operlog:list')")
@GetMapping("/list")
public TableDataInfo list(SysOperLog operLog)
{
@ -41,7 +41,7 @@ public class SysOperlogController extends BaseController
}
@Log(title = "操作日志", businessType = BusinessType.EXPORT)
@PreAuthorize("@ss.hasPermi('monitor:operlog:export')")
// @PreAuthorize("@ss.hasPermi('monitor:operlog:export')")
@PostMapping("/export")
public void export(HttpServletResponse response, SysOperLog operLog)
{
@ -51,7 +51,7 @@ public class SysOperlogController extends BaseController
}
@Log(title = "操作日志", businessType = BusinessType.DELETE)
@PreAuthorize("@ss.hasPermi('monitor:operlog:remove')")
// @PreAuthorize("@ss.hasPermi('monitor:operlog:remove')")
@DeleteMapping("/{operIds}")
public AjaxResult remove(@PathVariable Long[] operIds)
{
@ -59,7 +59,7 @@ public class SysOperlogController extends BaseController
}
@Log(title = "操作日志", businessType = BusinessType.CLEAN)
@PreAuthorize("@ss.hasPermi('monitor:operlog:remove')")
// @PreAuthorize("@ss.hasPermi('monitor:operlog:remove')")
@DeleteMapping("/clean")
public AjaxResult clean()
{

@ -38,7 +38,7 @@ public class SysUserOnlineController extends BaseController
@Autowired
private RedisCache redisCache;
@PreAuthorize("@ss.hasPermi('monitor:online:list')")
// @PreAuthorize("@ss.hasPermi('monitor:online:list')")
@GetMapping("/list")
public TableDataInfo list(String ipaddr, String userName)
{
@ -72,7 +72,7 @@ public class SysUserOnlineController extends BaseController
/**
* 退
*/
@PreAuthorize("@ss.hasPermi('monitor:online:forceLogout')")
// @PreAuthorize("@ss.hasPermi('monitor:online:forceLogout')")
@Log(title = "在线用户", businessType = BusinessType.FORCE)
@DeleteMapping("/{tokenId}")
public AjaxResult forceLogout(@PathVariable String tokenId)

@ -37,7 +37,7 @@ public class SysConfigController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:config:list')")
// @PreAuthorize("@ss.hasPermi('system:config:list')")
@GetMapping("/list")
public TableDataInfo list(SysConfig config)
{
@ -47,7 +47,7 @@ public class SysConfigController extends BaseController
}
@Log(title = "参数管理", businessType = BusinessType.EXPORT)
@PreAuthorize("@ss.hasPermi('system:config:export')")
// @PreAuthorize("@ss.hasPermi('system:config:export')")
@PostMapping("/export")
public void export(HttpServletResponse response, SysConfig config)
{
@ -59,7 +59,7 @@ public class SysConfigController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:config:query')")
// @PreAuthorize("@ss.hasPermi('system:config:query')")
@GetMapping(value = "/{configId}")
public AjaxResult getInfo(@PathVariable Long configId)
{
@ -78,7 +78,7 @@ public class SysConfigController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:config:add')")
// @PreAuthorize("@ss.hasPermi('system:config:add')")
@Log(title = "参数管理", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@Validated @RequestBody SysConfig config)
@ -94,7 +94,7 @@ public class SysConfigController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:config:edit')")
// @PreAuthorize("@ss.hasPermi('system:config:edit')")
@Log(title = "参数管理", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@Validated @RequestBody SysConfig config)
@ -110,7 +110,7 @@ public class SysConfigController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:config:remove')")
// @PreAuthorize("@ss.hasPermi('system:config:remove')")
@Log(title = "参数管理", businessType = BusinessType.DELETE)
@DeleteMapping("/{configIds}")
public AjaxResult remove(@PathVariable Long[] configIds)
@ -122,7 +122,7 @@ public class SysConfigController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:config:remove')")
// @PreAuthorize("@ss.hasPermi('system:config:remove')")
@Log(title = "参数管理", businessType = BusinessType.CLEAN)
@DeleteMapping("/refreshCache")
public AjaxResult refreshCache()

@ -37,7 +37,7 @@ public class SysDeptController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:dept:list')")
// @PreAuthorize("@ss.hasPermi('system:dept:list')")
@GetMapping("/list")
public AjaxResult list(SysDept dept)
{
@ -48,7 +48,7 @@ public class SysDeptController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:dept:list')")
// @PreAuthorize("@ss.hasPermi('system:dept:list')")
@GetMapping("/list/exclude/{deptId}")
public AjaxResult excludeChild(@PathVariable(value = "deptId", required = false) Long deptId)
{
@ -60,7 +60,7 @@ public class SysDeptController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:dept:query')")
// @PreAuthorize("@ss.hasPermi('system:dept:query')")
@GetMapping(value = "/{deptId}")
public AjaxResult getInfo(@PathVariable Long deptId)
{
@ -71,7 +71,7 @@ public class SysDeptController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:dept:add')")
// @PreAuthorize("@ss.hasPermi('system:dept:add')")
@Log(title = "部门管理", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@Validated @RequestBody SysDept dept)
@ -87,7 +87,7 @@ public class SysDeptController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:dept:edit')")
// @PreAuthorize("@ss.hasPermi('system:dept:edit')")
@Log(title = "部门管理", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@Validated @RequestBody SysDept dept)
@ -113,7 +113,7 @@ public class SysDeptController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:dept:remove')")
// @PreAuthorize("@ss.hasPermi('system:dept:remove')")
@Log(title = "部门管理", businessType = BusinessType.DELETE)
@DeleteMapping("/{deptId}")
public AjaxResult remove(@PathVariable Long deptId)

@ -40,7 +40,7 @@ public class SysDictDataController extends BaseController
@Autowired
private ISysDictTypeService dictTypeService;
@PreAuthorize("@ss.hasPermi('system:dict:list')")
// @PreAuthorize("@ss.hasPermi('system:dict:list')")
@GetMapping("/list")
public TableDataInfo list(SysDictData dictData)
{
@ -50,7 +50,7 @@ public class SysDictDataController extends BaseController
}
@Log(title = "字典数据", businessType = BusinessType.EXPORT)
@PreAuthorize("@ss.hasPermi('system:dict:export')")
// @PreAuthorize("@ss.hasPermi('system:dict:export')")
@PostMapping("/export")
public void export(HttpServletResponse response, SysDictData dictData)
{
@ -62,7 +62,7 @@ public class SysDictDataController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:dict:query')")
// @PreAuthorize("@ss.hasPermi('system:dict:query')")
@GetMapping(value = "/{dictCode}")
public AjaxResult getInfo(@PathVariable Long dictCode)
{
@ -86,7 +86,7 @@ public class SysDictDataController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:dict:add')")
// @PreAuthorize("@ss.hasPermi('system:dict:add')")
@Log(title = "字典数据", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@Validated @RequestBody SysDictData dict)
@ -98,7 +98,7 @@ public class SysDictDataController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:dict:edit')")
// @PreAuthorize("@ss.hasPermi('system:dict:edit')")
@Log(title = "字典数据", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@Validated @RequestBody SysDictData dict)
@ -110,7 +110,7 @@ public class SysDictDataController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:dict:remove')")
// @PreAuthorize("@ss.hasPermi('system:dict:remove')")
@Log(title = "字典类型", businessType = BusinessType.DELETE)
@DeleteMapping("/{dictCodes}")
public AjaxResult remove(@PathVariable Long[] dictCodes)

@ -34,7 +34,7 @@ public class SysDictTypeController extends BaseController
@Autowired
private ISysDictTypeService dictTypeService;
@PreAuthorize("@ss.hasPermi('system:dict:list')")
// @PreAuthorize("@ss.hasPermi('system:dict:list')")
@GetMapping("/list")
public TableDataInfo list(SysDictType dictType)
{
@ -44,7 +44,7 @@ public class SysDictTypeController extends BaseController
}
@Log(title = "字典类型", businessType = BusinessType.EXPORT)
@PreAuthorize("@ss.hasPermi('system:dict:export')")
// @PreAuthorize("@ss.hasPermi('system:dict:export')")
@PostMapping("/export")
public void export(HttpServletResponse response, SysDictType dictType)
{
@ -56,7 +56,7 @@ public class SysDictTypeController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:dict:query')")
// @PreAuthorize("@ss.hasPermi('system:dict:query')")
@GetMapping(value = "/{dictId}")
public AjaxResult getInfo(@PathVariable Long dictId)
{
@ -66,7 +66,7 @@ public class SysDictTypeController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:dict:add')")
// @PreAuthorize("@ss.hasPermi('system:dict:add')")
@Log(title = "字典类型", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@Validated @RequestBody SysDictType dict)
@ -82,7 +82,7 @@ public class SysDictTypeController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:dict:edit')")
// @PreAuthorize("@ss.hasPermi('system:dict:edit')")
@Log(title = "字典类型", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@Validated @RequestBody SysDictType dict)
@ -98,7 +98,7 @@ public class SysDictTypeController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:dict:remove')")
// @PreAuthorize("@ss.hasPermi('system:dict:remove')")
@Log(title = "字典类型", businessType = BusinessType.DELETE)
@DeleteMapping("/{dictIds}")
public AjaxResult remove(@PathVariable Long[] dictIds)
@ -110,7 +110,7 @@ public class SysDictTypeController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:dict:remove')")
// @PreAuthorize("@ss.hasPermi('system:dict:remove')")
@Log(title = "字典类型", businessType = BusinessType.CLEAN)
@DeleteMapping("/refreshCache")
public AjaxResult refreshCache()

@ -36,7 +36,7 @@ public class SysMenuController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:menu:list')")
// @PreAuthorize("@ss.hasPermi('system:menu:list')")
@GetMapping("/list")
public AjaxResult list(SysMenu menu)
{
@ -47,7 +47,7 @@ public class SysMenuController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:menu:query')")
// @PreAuthorize("@ss.hasPermi('system:menu:query')")
@GetMapping(value = "/{menuId}")
public AjaxResult getInfo(@PathVariable Long menuId)
{
@ -80,7 +80,7 @@ public class SysMenuController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:menu:add')")
// @PreAuthorize("@ss.hasPermi('system:menu:add')")
@Log(title = "菜单管理", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@Validated @RequestBody SysMenu menu)
@ -100,7 +100,7 @@ public class SysMenuController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:menu:edit')")
// @PreAuthorize("@ss.hasPermi('system:menu:edit')")
@Log(title = "菜单管理", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@Validated @RequestBody SysMenu menu)
@ -124,7 +124,7 @@ public class SysMenuController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:menu:remove')")
// @PreAuthorize("@ss.hasPermi('system:menu:remove')")
@Log(title = "菜单管理", businessType = BusinessType.DELETE)
@DeleteMapping("/{menuId}")
public AjaxResult remove(@PathVariable("menuId") Long menuId)

@ -35,7 +35,7 @@ public class SysNoticeController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:notice:list')")
// @PreAuthorize("@ss.hasPermi('system:notice:list')")
@GetMapping("/list")
public TableDataInfo list(SysNotice notice)
{
@ -47,7 +47,7 @@ public class SysNoticeController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:notice:query')")
// @PreAuthorize("@ss.hasPermi('system:notice:query')")
@GetMapping(value = "/{noticeId}")
public AjaxResult getInfo(@PathVariable Long noticeId)
{
@ -57,7 +57,7 @@ public class SysNoticeController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:notice:add')")
// @PreAuthorize("@ss.hasPermi('system:notice:add')")
@Log(title = "通知公告", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@Validated @RequestBody SysNotice notice)
@ -69,7 +69,7 @@ public class SysNoticeController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:notice:edit')")
// @PreAuthorize("@ss.hasPermi('system:notice:edit')")
@Log(title = "通知公告", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@Validated @RequestBody SysNotice notice)
@ -81,7 +81,7 @@ public class SysNoticeController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:notice:remove')")
// @PreAuthorize("@ss.hasPermi('system:notice:remove')")
@Log(title = "通知公告", businessType = BusinessType.DELETE)
@DeleteMapping("/{noticeIds}")
public AjaxResult remove(@PathVariable Long[] noticeIds)

@ -37,7 +37,7 @@ public class SysPostController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:post:list')")
// @PreAuthorize("@ss.hasPermi('system:post:list')")
@GetMapping("/list")
public TableDataInfo list(SysPost post)
{
@ -47,7 +47,7 @@ public class SysPostController extends BaseController
}
@Log(title = "岗位管理", businessType = BusinessType.EXPORT)
@PreAuthorize("@ss.hasPermi('system:post:export')")
// @PreAuthorize("@ss.hasPermi('system:post:export')")
@PostMapping("/export")
public void export(HttpServletResponse response, SysPost post)
{
@ -59,7 +59,7 @@ public class SysPostController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:post:query')")
// @PreAuthorize("@ss.hasPermi('system:post:query')")
@GetMapping(value = "/{postId}")
public AjaxResult getInfo(@PathVariable Long postId)
{
@ -69,7 +69,7 @@ public class SysPostController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:post:add')")
// @PreAuthorize("@ss.hasPermi('system:post:add')")
@Log(title = "岗位管理", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@Validated @RequestBody SysPost post)
@ -89,7 +89,7 @@ public class SysPostController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:post:edit')")
// @PreAuthorize("@ss.hasPermi('system:post:edit')")
@Log(title = "岗位管理", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@Validated @RequestBody SysPost post)
@ -109,7 +109,7 @@ public class SysPostController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:post:remove')")
// @PreAuthorize("@ss.hasPermi('system:post:remove')")
@Log(title = "岗位管理", businessType = BusinessType.DELETE)
@DeleteMapping("/{postIds}")
public AjaxResult remove(@PathVariable Long[] postIds)

@ -55,7 +55,7 @@ public class SysRoleController extends BaseController
@Autowired
private ISysDeptService deptService;
@PreAuthorize("@ss.hasPermi('system:role:list')")
// @PreAuthorize("@ss.hasPermi('system:role:list')")
@GetMapping("/list")
public TableDataInfo list(SysRole role)
{
@ -65,7 +65,7 @@ public class SysRoleController extends BaseController
}
@Log(title = "角色管理", businessType = BusinessType.EXPORT)
@PreAuthorize("@ss.hasPermi('system:role:export')")
// @PreAuthorize("@ss.hasPermi('system:role:export')")
@PostMapping("/export")
public void export(HttpServletResponse response, SysRole role)
{
@ -77,7 +77,7 @@ public class SysRoleController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:role:query')")
// @PreAuthorize("@ss.hasPermi('system:role:query')")
@GetMapping(value = "/{roleId}")
public AjaxResult getInfo(@PathVariable Long roleId)
{
@ -88,7 +88,7 @@ public class SysRoleController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:role:add')")
// @PreAuthorize("@ss.hasPermi('system:role:add')")
@Log(title = "角色管理", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@Validated @RequestBody SysRole role)
@ -109,7 +109,7 @@ public class SysRoleController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:role:edit')")
// @PreAuthorize("@ss.hasPermi('system:role:edit')")
@Log(title = "角色管理", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@Validated @RequestBody SysRole role)
@ -144,7 +144,7 @@ public class SysRoleController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:role:edit')")
// @PreAuthorize("@ss.hasPermi('system:role:edit')")
@Log(title = "角色管理", businessType = BusinessType.UPDATE)
@PutMapping("/dataScope")
public AjaxResult dataScope(@RequestBody SysRole role)
@ -157,7 +157,7 @@ public class SysRoleController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:role:edit')")
// @PreAuthorize("@ss.hasPermi('system:role:edit')")
@Log(title = "角色管理", businessType = BusinessType.UPDATE)
@PutMapping("/changeStatus")
public AjaxResult changeStatus(@RequestBody SysRole role)
@ -171,7 +171,7 @@ public class SysRoleController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:role:remove')")
// @PreAuthorize("@ss.hasPermi('system:role:remove')")
@Log(title = "角色管理", businessType = BusinessType.DELETE)
@DeleteMapping("/{roleIds}")
public AjaxResult remove(@PathVariable Long[] roleIds)
@ -182,7 +182,7 @@ public class SysRoleController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:role:query')")
// @PreAuthorize("@ss.hasPermi('system:role:query')")
@GetMapping("/optionselect")
public AjaxResult optionselect()
{
@ -192,7 +192,7 @@ public class SysRoleController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:role:list')")
// @PreAuthorize("@ss.hasPermi('system:role:list')")
@GetMapping("/authUser/allocatedList")
public TableDataInfo allocatedList(SysUser user)
{
@ -204,7 +204,7 @@ public class SysRoleController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:role:list')")
// @PreAuthorize("@ss.hasPermi('system:role:list')")
@GetMapping("/authUser/unallocatedList")
public TableDataInfo unallocatedList(SysUser user)
{
@ -216,7 +216,7 @@ public class SysRoleController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:role:edit')")
// @PreAuthorize("@ss.hasPermi('system:role:edit')")
@Log(title = "角色管理", businessType = BusinessType.GRANT)
@PutMapping("/authUser/cancel")
public AjaxResult cancelAuthUser(@RequestBody SysUserRole userRole)
@ -227,7 +227,7 @@ public class SysRoleController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:role:edit')")
// @PreAuthorize("@ss.hasPermi('system:role:edit')")
@Log(title = "角色管理", businessType = BusinessType.GRANT)
@PutMapping("/authUser/cancelAll")
public AjaxResult cancelAuthUserAll(Long roleId, Long[] userIds)
@ -238,7 +238,7 @@ public class SysRoleController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:role:edit')")
// @PreAuthorize("@ss.hasPermi('system:role:edit')")
@Log(title = "角色管理", businessType = BusinessType.GRANT)
@PutMapping("/authUser/selectAll")
public AjaxResult selectAuthUserAll(Long roleId, Long[] userIds)
@ -250,7 +250,7 @@ public class SysRoleController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:role:query')")
// @PreAuthorize("@ss.hasPermi('system:role:query')")
@GetMapping(value = "/deptTree/{roleId}")
public AjaxResult deptTree(@PathVariable("roleId") Long roleId)
{

@ -61,7 +61,7 @@ public class SysUserController extends BaseController {
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:user:list')")
// @PreAuthorize("@ss.hasPermi('system:user:list')")
@GetMapping("/list")
public TableDataInfo list(SysUser user) {
startPage();
@ -70,7 +70,7 @@ public class SysUserController extends BaseController {
}
@Log(title = "用户管理", businessType = BusinessType.EXPORT)
@PreAuthorize("@ss.hasPermi('system:user:export')")
// @PreAuthorize("@ss.hasPermi('system:user:export')")
@PostMapping("/export")
public void export(HttpServletResponse response, SysUser user) {
List<SysUser> list = userService.selectUserList(user);
@ -79,7 +79,7 @@ public class SysUserController extends BaseController {
}
@Log(title = "用户管理", businessType = BusinessType.IMPORT)
@PreAuthorize("@ss.hasPermi('system:user:import')")
// @PreAuthorize("@ss.hasPermi('system:user:import')")
@PostMapping("/importData")
public AjaxResult importData(MultipartFile file, boolean updateSupport) throws Exception {
ExcelUtil<SysUser> util = new ExcelUtil<SysUser>(SysUser.class);
@ -98,7 +98,7 @@ public class SysUserController extends BaseController {
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:user:query')")
// @PreAuthorize("@ss.hasPermi('system:user:query')")
@GetMapping(value = {"/", "/{userId}"})
public AjaxResult getInfo(@PathVariable(value = "userId", required = false) Long userId) {
userService.checkUserDataScope(userId);
@ -118,7 +118,7 @@ public class SysUserController extends BaseController {
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:user:add')")
// @PreAuthorize("@ss.hasPermi('system:user:add')")
@Log(title = "用户管理", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@Validated @RequestBody SysUser user) {
@ -140,7 +140,7 @@ public class SysUserController extends BaseController {
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:user:edit')")
// @PreAuthorize("@ss.hasPermi('system:user:edit')")
@Log(title = "用户管理", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@Validated @RequestBody SysUser user) {
@ -160,7 +160,7 @@ public class SysUserController extends BaseController {
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:user:remove')")
// @PreAuthorize("@ss.hasPermi('system:user:remove')")
@Log(title = "用户管理", businessType = BusinessType.DELETE)
@DeleteMapping("/{userIds}")
public AjaxResult remove(@PathVariable Long[] userIds) {
@ -173,7 +173,7 @@ public class SysUserController extends BaseController {
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:user:resetPwd')")
// @PreAuthorize("@ss.hasPermi('system:user:resetPwd')")
@Log(title = "用户管理", businessType = BusinessType.UPDATE)
@PutMapping("/resetPwd")
public AjaxResult resetPwd(@RequestBody SysUser user) {
@ -187,7 +187,7 @@ public class SysUserController extends BaseController {
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:user:edit')")
// @PreAuthorize("@ss.hasPermi('system:user:edit')")
@Log(title = "用户管理", businessType = BusinessType.UPDATE)
@PutMapping("/changeStatus")
public AjaxResult changeStatus(@RequestBody SysUser user) {
@ -200,7 +200,7 @@ public class SysUserController extends BaseController {
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:user:query')")
// @PreAuthorize("@ss.hasPermi('system:user:query')")
@GetMapping("/authRole/{userId}")
public AjaxResult authRole(@PathVariable("userId") Long userId) {
AjaxResult ajax = AjaxResult.success();
@ -214,7 +214,7 @@ public class SysUserController extends BaseController {
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:user:edit')")
// @PreAuthorize("@ss.hasPermi('system:user:edit')")
@Log(title = "用户管理", businessType = BusinessType.GRANT)
@PutMapping("/authRole")
public AjaxResult insertAuthRole(Long userId, Long[] roleIds) {
@ -226,7 +226,7 @@ public class SysUserController extends BaseController {
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:user:list')")
// @PreAuthorize("@ss.hasPermi('system:user:list')")
@GetMapping("/deptTree")
public AjaxResult deptTree(SysDept dept) {
return success(deptService.selectDeptTreeList(dept));

@ -46,7 +46,7 @@ public class GenController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tool:gen:list')")
// @PreAuthorize("@ss.hasPermi('tool:gen:list')")
@GetMapping("/list")
public TableDataInfo genList(GenTable genTable)
{
@ -58,7 +58,7 @@ public class GenController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tool:gen:query')")
// @PreAuthorize("@ss.hasPermi('tool:gen:query')")
@GetMapping(value = "/{tableId}")
public AjaxResult getInfo(@PathVariable Long tableId)
{
@ -75,7 +75,7 @@ public class GenController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tool:gen:list')")
// @PreAuthorize("@ss.hasPermi('tool:gen:list')")
@GetMapping("/db/list")
public TableDataInfo dataList(GenTable genTable)
{
@ -87,7 +87,7 @@ public class GenController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tool:gen:list')")
// @PreAuthorize("@ss.hasPermi('tool:gen:list')")
@GetMapping(value = "/column/{tableId}")
public TableDataInfo columnList(Long tableId)
{
@ -101,7 +101,7 @@ public class GenController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tool:gen:import')")
// @PreAuthorize("@ss.hasPermi('tool:gen:import')")
@Log(title = "代码生成", businessType = BusinessType.IMPORT)
@PostMapping("/importTable")
public AjaxResult importTableSave(String tables)
@ -116,7 +116,7 @@ public class GenController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tool:gen:edit')")
// @PreAuthorize("@ss.hasPermi('tool:gen:edit')")
@Log(title = "代码生成", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult editSave(@Validated @RequestBody GenTable genTable)
@ -129,7 +129,7 @@ public class GenController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tool:gen:remove')")
// @PreAuthorize("@ss.hasPermi('tool:gen:remove')")
@Log(title = "代码生成", businessType = BusinessType.DELETE)
@DeleteMapping("/{tableIds}")
public AjaxResult remove(@PathVariable Long[] tableIds)
@ -141,7 +141,7 @@ public class GenController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tool:gen:preview')")
// @PreAuthorize("@ss.hasPermi('tool:gen:preview')")
@GetMapping("/preview/{tableId}")
public AjaxResult preview(@PathVariable("tableId") Long tableId) throws IOException
{
@ -152,7 +152,7 @@ public class GenController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tool:gen:code')")
// @PreAuthorize("@ss.hasPermi('tool:gen:code')")
@Log(title = "代码生成", businessType = BusinessType.GENCODE)
@GetMapping("/download/{tableName}")
public void download(HttpServletResponse response, @PathVariable("tableName") String tableName) throws IOException
@ -164,7 +164,7 @@ public class GenController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tool:gen:code')")
// @PreAuthorize("@ss.hasPermi('tool:gen:code')")
@Log(title = "代码生成", businessType = BusinessType.GENCODE)
@GetMapping("/genCode/{tableName}")
public AjaxResult genCode(@PathVariable("tableName") String tableName)
@ -176,7 +176,7 @@ public class GenController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tool:gen:edit')")
// @PreAuthorize("@ss.hasPermi('tool:gen:edit')")
@Log(title = "代码生成", businessType = BusinessType.UPDATE)
@GetMapping("/synchDb/{tableName}")
public AjaxResult synchDb(@PathVariable("tableName") String tableName)
@ -188,7 +188,7 @@ public class GenController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tool:gen:code')")
// @PreAuthorize("@ss.hasPermi('tool:gen:code')")
@Log(title = "代码生成", businessType = BusinessType.GENCODE)
@GetMapping("/batchGenCode")
public void batchGenCode(HttpServletResponse response, String tables) throws IOException

@ -42,7 +42,7 @@ public class SysJobController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('monitor:job:list')")
// @PreAuthorize("@ss.hasPermi('monitor:job:list')")
@GetMapping("/list")
public TableDataInfo list(SysJob sysJob)
{
@ -54,7 +54,7 @@ public class SysJobController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('monitor:job:export')")
// @PreAuthorize("@ss.hasPermi('monitor:job:export')")
@Log(title = "定时任务", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, SysJob sysJob)
@ -67,7 +67,7 @@ public class SysJobController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('monitor:job:query')")
// @PreAuthorize("@ss.hasPermi('monitor:job:query')")
@GetMapping(value = "/{jobId}")
public AjaxResult getInfo(@PathVariable("jobId") Long jobId)
{
@ -77,7 +77,7 @@ public class SysJobController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('monitor:job:add')")
// @PreAuthorize("@ss.hasPermi('monitor:job:add')")
@Log(title = "定时任务", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody SysJob job) throws SchedulerException, TaskException
@ -113,7 +113,7 @@ public class SysJobController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('monitor:job:edit')")
// @PreAuthorize("@ss.hasPermi('monitor:job:edit')")
@Log(title = "定时任务", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody SysJob job) throws SchedulerException, TaskException
@ -149,7 +149,7 @@ public class SysJobController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('monitor:job:changeStatus')")
// @PreAuthorize("@ss.hasPermi('monitor:job:changeStatus')")
@Log(title = "定时任务", businessType = BusinessType.UPDATE)
@PutMapping("/changeStatus")
public AjaxResult changeStatus(@RequestBody SysJob job) throws SchedulerException
@ -162,7 +162,7 @@ public class SysJobController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('monitor:job:changeStatus')")
// @PreAuthorize("@ss.hasPermi('monitor:job:changeStatus')")
@Log(title = "定时任务", businessType = BusinessType.UPDATE)
@PutMapping("/run")
public AjaxResult run(@RequestBody SysJob job) throws SchedulerException
@ -174,7 +174,7 @@ public class SysJobController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('monitor:job:remove')")
// @PreAuthorize("@ss.hasPermi('monitor:job:remove')")
@Log(title = "定时任务", businessType = BusinessType.DELETE)
@DeleteMapping("/{jobIds}")
public AjaxResult remove(@PathVariable Long[] jobIds) throws SchedulerException, TaskException

@ -34,7 +34,7 @@ public class SysJobLogController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('monitor:job:list')")
// @PreAuthorize("@ss.hasPermi('monitor:job:list')")
@GetMapping("/list")
public TableDataInfo list(SysJobLog sysJobLog)
{
@ -46,7 +46,7 @@ public class SysJobLogController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('monitor:job:export')")
// @PreAuthorize("@ss.hasPermi('monitor:job:export')")
@Log(title = "任务调度日志", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, SysJobLog sysJobLog)
@ -59,7 +59,7 @@ public class SysJobLogController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('monitor:job:query')")
// @PreAuthorize("@ss.hasPermi('monitor:job:query')")
@GetMapping(value = "/{jobLogId}")
public AjaxResult getInfo(@PathVariable Long jobLogId)
{
@ -70,7 +70,7 @@ public class SysJobLogController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('monitor:job:remove')")
// @PreAuthorize("@ss.hasPermi('monitor:job:remove')")
@Log(title = "定时任务调度日志", businessType = BusinessType.DELETE)
@DeleteMapping("/{jobLogIds}")
public AjaxResult remove(@PathVariable Long[] jobLogIds)
@ -81,7 +81,7 @@ public class SysJobLogController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('monitor:job:remove')")
// @PreAuthorize("@ss.hasPermi('monitor:job:remove')")
@Log(title = "调度日志", businessType = BusinessType.CLEAN)
@DeleteMapping("/clean")
public AjaxResult clean()

Loading…
Cancel
Save