问题修改

This commit is contained in:
jiang 2026-01-07 11:19:11 +08:00
parent f17d5ea3a4
commit 705b2aff97
16 changed files with 59 additions and 68 deletions

View File

@ -137,7 +137,7 @@ public class SysDept extends BaseEntity {
private Long userCount; private Long userCount;
/** /**
*角色名称 * 角色名称
*/ */
private String roleName; private String roleName;

View File

@ -29,7 +29,7 @@ public class FaceDataController extends BaseController {
/** /**
* 查询列表 * 查询列表
*/ */
@RequiresPermissions("face:data:list") //@RequiresPermissions("face:data:list")
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(FaceDataEntity faceData) { public TableDataInfo list(FaceDataEntity faceData) {
try { try {
@ -45,7 +45,7 @@ public class FaceDataController extends BaseController {
/** /**
* 获取详细信息 * 获取详细信息
*/ */
@RequiresPermissions("face:data:query") //@RequiresPermissions("face:data:query")
@GetMapping(value = "/{faceId}") @GetMapping(value = "/{faceId}")
public AjaxResult getInfo(@PathVariable("faceId") Long faceId) { public AjaxResult getInfo(@PathVariable("faceId") Long faceId) {
return faceDataService.selectFaceDataByFaceId(faceId); return faceDataService.selectFaceDataByFaceId(faceId);
@ -54,7 +54,7 @@ public class FaceDataController extends BaseController {
/** /**
* 新增 * 新增
*/ */
@RequiresPermissions("face:data:add") //@RequiresPermissions("face:data:add")
@PostMapping("/add") @PostMapping("/add")
@SysLog(title = "", businessType = OperaType.INSERT, logType = 0, module = "", details = "导出列表") @SysLog(title = "", businessType = OperaType.INSERT, logType = 0, module = "", details = "导出列表")
public AjaxResult add(FaceDataEntity faceData) { public AjaxResult add(FaceDataEntity faceData) {
@ -64,7 +64,7 @@ public class FaceDataController extends BaseController {
/** /**
* 修改 * 修改
*/ */
@RequiresPermissions("face:data:edit") //@RequiresPermissions("face:data:edit")
@PostMapping("/edit") @PostMapping("/edit")
@SysLog(title = "", businessType = OperaType.UPDATE, logType = 0, module = "", details = "导出列表") @SysLog(title = "", businessType = OperaType.UPDATE, logType = 0, module = "", details = "导出列表")
public AjaxResult edit(FaceDataEntity faceData) { public AjaxResult edit(FaceDataEntity faceData) {
@ -74,7 +74,7 @@ public class FaceDataController extends BaseController {
/** /**
* 删除 * 删除
*/ */
@RequiresPermissions("face:data:remove") //@RequiresPermissions("face:data:remove")
@PostMapping("/delete/{faceIds}") @PostMapping("/delete/{faceIds}")
@SysLog(title = "", businessType = OperaType.DELETE, logType = 0, module = "", details = "导出列表") @SysLog(title = "", businessType = OperaType.DELETE, logType = 0, module = "", details = "导出列表")
public AjaxResult remove(@PathVariable Long[] faceIds) { public AjaxResult remove(@PathVariable Long[] faceIds) {

View File

@ -29,7 +29,7 @@ public class FaceGroupsController extends BaseController {
/** /**
* 查询列表 * 查询列表
*/ */
@RequiresPermissions("face:groups:list") //@RequiresPermissions("face:groups:list")
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(FaceGroupsEntity faceGroups) { public TableDataInfo list(FaceGroupsEntity faceGroups) {
try { try {
@ -45,7 +45,7 @@ public class FaceGroupsController extends BaseController {
/** /**
* 获取详细信息 * 获取详细信息
*/ */
@RequiresPermissions("face:groups:query") //@RequiresPermissions("face:groups:query")
@GetMapping(value = "/{groupId}") @GetMapping(value = "/{groupId}")
public AjaxResult getInfo(@PathVariable("groupId") Long groupId) { public AjaxResult getInfo(@PathVariable("groupId") Long groupId) {
return faceGroupsService.selectFaceGroupsByGroupId(groupId); return faceGroupsService.selectFaceGroupsByGroupId(groupId);
@ -54,7 +54,7 @@ public class FaceGroupsController extends BaseController {
/** /**
* 新增 * 新增
*/ */
@RequiresPermissions("face:groups:add") //@RequiresPermissions("face:groups:add")
@PostMapping("/add") @PostMapping("/add")
@SysLog(title = "", businessType = OperaType.INSERT, logType = 0, module = "", details = "导出列表") @SysLog(title = "", businessType = OperaType.INSERT, logType = 0, module = "", details = "导出列表")
public AjaxResult add(@RequestBody FaceGroupsEntity faceGroups) { public AjaxResult add(@RequestBody FaceGroupsEntity faceGroups) {
@ -64,7 +64,7 @@ public class FaceGroupsController extends BaseController {
/** /**
* 修改 * 修改
*/ */
@RequiresPermissions("face:groups:edit") //@RequiresPermissions("face:groups:edit")
@PostMapping("/edit") @PostMapping("/edit")
@SysLog(title = "", businessType = OperaType.UPDATE, logType = 0, module = "", details = "导出列表") @SysLog(title = "", businessType = OperaType.UPDATE, logType = 0, module = "", details = "导出列表")
public AjaxResult edit(@RequestBody FaceGroupsEntity faceGroups) { public AjaxResult edit(@RequestBody FaceGroupsEntity faceGroups) {
@ -74,7 +74,7 @@ public class FaceGroupsController extends BaseController {
/** /**
* 删除 * 删除
*/ */
@RequiresPermissions("face:groups:remove") //@RequiresPermissions("face:groups:remove")
@PostMapping("/delete/{groupIds}") @PostMapping("/delete/{groupIds}")
@SysLog(title = "", businessType = OperaType.DELETE, logType = 0, module = "", details = "导出列表") @SysLog(title = "", businessType = OperaType.DELETE, logType = 0, module = "", details = "导出列表")
public AjaxResult remove(@PathVariable Long[] groupIds) { public AjaxResult remove(@PathVariable Long[] groupIds) {

View File

@ -42,7 +42,7 @@ public class MinioUtil {
/** /**
* i皖送minio上传文件域名路径 * i皖送minio上传文件域名路径
*/ */
public String domain = "http://sgwpdm.ah.sgcc.com.cn/iws/ahbns/"; public String domain = "http://112.29.103.165:29300/";
/** /**
* 分片大小 * 分片大小
*/ */

View File

@ -47,7 +47,7 @@ public class GenController extends BaseController
/** /**
* 查询代码生成列表 * 查询代码生成列表
*/ */
@RequiresPermissions("tool:gen:list") //@RequiresPermissions("tool:gen:list")
@GetMapping("/list") @GetMapping("/list")
@SysLog(title = "代码生成", businessType = OperaType.QUERY,logType = 0,module = "系统工具->代码生成",details = "代码生成列表") @SysLog(title = "代码生成", businessType = OperaType.QUERY,logType = 0,module = "系统工具->代码生成",details = "代码生成列表")
public TableDataInfo genList(GenTable genTable) public TableDataInfo genList(GenTable genTable)
@ -60,7 +60,7 @@ public class GenController extends BaseController
/** /**
* 修改代码生成业务 * 修改代码生成业务
*/ */
@RequiresPermissions("tool:gen:query") //@RequiresPermissions("tool:gen:query")
@GetMapping(value = "/{tableId}") @GetMapping(value = "/{tableId}")
public AjaxResult getInfo(@PathVariable Long tableId) public AjaxResult getInfo(@PathVariable Long tableId)
{ {
@ -77,7 +77,7 @@ public class GenController extends BaseController
/** /**
* 查询数据库列表 * 查询数据库列表
*/ */
@RequiresPermissions("tool:gen:list") //@RequiresPermissions("tool:gen:list")
@GetMapping("/db/list") @GetMapping("/db/list")
public TableDataInfo dataList(GenTable genTable) public TableDataInfo dataList(GenTable genTable)
{ {
@ -102,7 +102,7 @@ public class GenController extends BaseController
/** /**
* 导入表结构保存 * 导入表结构保存
*/ */
@RequiresPermissions("tool:gen:import") //@RequiresPermissions("tool:gen:import")
@PostMapping("/importTable") @PostMapping("/importTable")
@SysLog(title = "代码生成", businessType = OperaType.IMPORT,logType = 0,module = "系统工具->代码生成",details = "导入表结构") @SysLog(title = "代码生成", businessType = OperaType.IMPORT,logType = 0,module = "系统工具->代码生成",details = "导入表结构")
public AjaxResult importTableSave(String tables) public AjaxResult importTableSave(String tables)
@ -117,7 +117,7 @@ public class GenController extends BaseController
/** /**
* 修改保存代码生成业务 * 修改保存代码生成业务
*/ */
@RequiresPermissions("tool:gen:edit") //@RequiresPermissions("tool:gen:edit")
@PostMapping("/edit") @PostMapping("/edit")
@SysLog(title = "代码生成", businessType = OperaType.UPDATE,logType = 0,module = "系统工具->代码生成",details = "修改保存代码生成业务") @SysLog(title = "代码生成", businessType = OperaType.UPDATE,logType = 0,module = "系统工具->代码生成",details = "修改保存代码生成业务")
public AjaxResult editSave(@Validated @RequestBody GenTable genTable) public AjaxResult editSave(@Validated @RequestBody GenTable genTable)
@ -130,7 +130,7 @@ public class GenController extends BaseController
/** /**
* 删除代码生成 * 删除代码生成
*/ */
@RequiresPermissions("tool:gen:remove") //@RequiresPermissions("tool:gen:remove")
@PostMapping("/delete/{tableIds}") @PostMapping("/delete/{tableIds}")
@SysLog(title = "代码生成", businessType = OperaType.DELETE,logType = 0,module = "系统工具->代码生成",details = "删除代码生成") @SysLog(title = "代码生成", businessType = OperaType.DELETE,logType = 0,module = "系统工具->代码生成",details = "删除代码生成")
public AjaxResult remove(@PathVariable Long[] tableIds) public AjaxResult remove(@PathVariable Long[] tableIds)
@ -142,7 +142,7 @@ public class GenController extends BaseController
/** /**
* 预览代码 * 预览代码
*/ */
@RequiresPermissions("tool:gen:preview") //@RequiresPermissions("tool:gen:preview")
@GetMapping("/preview/{tableId}") @GetMapping("/preview/{tableId}")
public AjaxResult preview(@PathVariable("tableId") Long tableId) throws IOException public AjaxResult preview(@PathVariable("tableId") Long tableId) throws IOException
{ {
@ -153,7 +153,7 @@ public class GenController extends BaseController
/** /**
* 生成代码下载方式 * 生成代码下载方式
*/ */
@RequiresPermissions("tool:gen:code") //@RequiresPermissions("tool:gen:code")
@GetMapping("/download/{tableName}") @GetMapping("/download/{tableName}")
@SysLog(title = "代码生成", businessType = OperaType.DOWNLOAD,logType = 0,module = "系统工具->代码生成",details = "生成代码") @SysLog(title = "代码生成", businessType = OperaType.DOWNLOAD,logType = 0,module = "系统工具->代码生成",details = "生成代码")
public void download(HttpServletResponse response, @PathVariable("tableName") String tableName) throws IOException public void download(HttpServletResponse response, @PathVariable("tableName") String tableName) throws IOException
@ -165,7 +165,7 @@ public class GenController extends BaseController
/** /**
* 生成代码自定义路径 * 生成代码自定义路径
*/ */
@RequiresPermissions("tool:gen:code") //@RequiresPermissions("tool:gen:code")
@GetMapping("/genCode/{tableName}") @GetMapping("/genCode/{tableName}")
@SysLog(title = "代码生成", businessType = OperaType.DOWNLOAD,logType = 0,module = "系统工具->代码生成",details = "生成代码") @SysLog(title = "代码生成", businessType = OperaType.DOWNLOAD,logType = 0,module = "系统工具->代码生成",details = "生成代码")
public AjaxResult genCode(@PathVariable("tableName") String tableName) public AjaxResult genCode(@PathVariable("tableName") String tableName)
@ -177,7 +177,7 @@ public class GenController extends BaseController
/** /**
* 同步数据库 * 同步数据库
*/ */
@RequiresPermissions("tool:gen:edit") //@RequiresPermissions("tool:gen:edit")
@GetMapping("/synchDb/{tableName}") @GetMapping("/synchDb/{tableName}")
@SysLog(title = "代码生成", businessType = OperaType.UPDATE,logType = 0,module = "系统工具->代码生成",details = "同步数据库") @SysLog(title = "代码生成", businessType = OperaType.UPDATE,logType = 0,module = "系统工具->代码生成",details = "同步数据库")
public AjaxResult synchDb(@PathVariable("tableName") String tableName) public AjaxResult synchDb(@PathVariable("tableName") String tableName)
@ -189,7 +189,7 @@ public class GenController extends BaseController
/** /**
* 批量生成代码 * 批量生成代码
*/ */
@RequiresPermissions("tool:gen:code") //@RequiresPermissions("tool:gen:code")
@GetMapping("/batchGenCode") @GetMapping("/batchGenCode")
@SysLog(title = "代码生成", businessType = OperaType.INSERT,logType = 0,module = "系统工具->代码生成",details = "批量生成代码") @SysLog(title = "代码生成", businessType = OperaType.INSERT,logType = 0,module = "系统工具->代码生成",details = "批量生成代码")
public void batchGenCode(HttpServletResponse response, String tables) throws IOException public void batchGenCode(HttpServletResponse response, String tables) throws IOException

View File

@ -44,7 +44,7 @@ public class SysJobController extends BaseController
/** /**
* 查询定时任务列表 * 查询定时任务列表
*/ */
@RequiresPermissions("monitor:job:list") //@RequiresPermissions("monitor:job:list")
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(SysJob sysJob) public TableDataInfo list(SysJob sysJob)
{ {
@ -56,7 +56,7 @@ public class SysJobController extends BaseController
/** /**
* 导出定时任务列表 * 导出定时任务列表
*/ */
@RequiresPermissions("monitor:job:export") //@RequiresPermissions("monitor:job:export")
@PostMapping("/export") @PostMapping("/export")
@SysLog(title = "定时任务", businessType = OperaType.EXPORT,logType = 0,module = "系统监控->定时任务",details = "导出定时任务列表") @SysLog(title = "定时任务", businessType = OperaType.EXPORT,logType = 0,module = "系统监控->定时任务",details = "导出定时任务列表")
public void export(HttpServletResponse response, SysJob sysJob) public void export(HttpServletResponse response, SysJob sysJob)
@ -69,7 +69,7 @@ public class SysJobController extends BaseController
/** /**
* 获取定时任务详细信息 * 获取定时任务详细信息
*/ */
@RequiresPermissions("monitor:job:query") //@RequiresPermissions("monitor:job:query")
@GetMapping(value = "/{jobId}") @GetMapping(value = "/{jobId}")
public AjaxResult getInfo(@PathVariable("jobId") Long jobId) public AjaxResult getInfo(@PathVariable("jobId") Long jobId)
{ {
@ -79,7 +79,7 @@ public class SysJobController extends BaseController
/** /**
* 新增定时任务 * 新增定时任务
*/ */
@RequiresPermissions("monitor:job:add") //@RequiresPermissions("monitor:job:add")
@PostMapping @PostMapping
@SysLog(title = "定时任务", businessType = OperaType.INSERT,logType = 0,module = "系统监控->定时任务",details = "新增定时任务") @SysLog(title = "定时任务", businessType = OperaType.INSERT,logType = 0,module = "系统监控->定时任务",details = "新增定时任务")
public AjaxResult add(@RequestBody SysJob job) throws SchedulerException, TaskException public AjaxResult add(@RequestBody SysJob job) throws SchedulerException, TaskException
@ -115,7 +115,7 @@ public class SysJobController extends BaseController
/** /**
* 修改定时任务 * 修改定时任务
*/ */
@RequiresPermissions("monitor:job:edit") //@RequiresPermissions("monitor:job:edit")
@PostMapping("edit") @PostMapping("edit")
@SysLog(title = "定时任务", businessType = OperaType.UPDATE,logType = 0,module = "系统监控->定时任务",details = "修改定时任务") @SysLog(title = "定时任务", businessType = OperaType.UPDATE,logType = 0,module = "系统监控->定时任务",details = "修改定时任务")
public AjaxResult edit(@RequestBody SysJob job) throws SchedulerException, TaskException public AjaxResult edit(@RequestBody SysJob job) throws SchedulerException, TaskException
@ -151,7 +151,7 @@ public class SysJobController extends BaseController
/** /**
* 定时任务状态修改 * 定时任务状态修改
*/ */
@RequiresPermissions("monitor:job:changeStatus") //@RequiresPermissions("monitor:job:changeStatus")
@PostMapping("/changeStatus") @PostMapping("/changeStatus")
@SysLog(title = "定时任务", businessType = OperaType.UPDATE,logType = 0,module = "系统监控->定时任务",details = "定时任务状态修改") @SysLog(title = "定时任务", businessType = OperaType.UPDATE,logType = 0,module = "系统监控->定时任务",details = "定时任务状态修改")
public AjaxResult changeStatus(@RequestBody SysJob job) throws SchedulerException public AjaxResult changeStatus(@RequestBody SysJob job) throws SchedulerException
@ -164,7 +164,7 @@ public class SysJobController extends BaseController
/** /**
* 定时任务立即执行一次 * 定时任务立即执行一次
*/ */
@RequiresPermissions("monitor:job:changeStatus") //@RequiresPermissions("monitor:job:changeStatus")
@PostMapping("/run") @PostMapping("/run")
@SysLog(title = "定时任务", businessType = OperaType.UPDATE,logType = 0,module = "系统监控->定时任务",details = "定时任务立即执行一次") @SysLog(title = "定时任务", businessType = OperaType.UPDATE,logType = 0,module = "系统监控->定时任务",details = "定时任务立即执行一次")
public AjaxResult run(@RequestBody SysJob job) throws SchedulerException public AjaxResult run(@RequestBody SysJob job) throws SchedulerException
@ -176,7 +176,7 @@ public class SysJobController extends BaseController
/** /**
* 删除定时任务 * 删除定时任务
*/ */
@RequiresPermissions("monitor:job:remove") //@RequiresPermissions("monitor:job:remove")
@PostMapping("/delete/{jobIds}") @PostMapping("/delete/{jobIds}")
@SysLog(title = "定时任务", businessType = OperaType.DELETE,logType = 0,module = "系统监控->定时任务",details = "删除定时任务") @SysLog(title = "定时任务", businessType = OperaType.DELETE,logType = 0,module = "系统监控->定时任务",details = "删除定时任务")
public AjaxResult remove(@PathVariable Long[] jobIds) throws SchedulerException, TaskException public AjaxResult remove(@PathVariable Long[] jobIds) throws SchedulerException, TaskException

View File

@ -35,7 +35,7 @@ public class SysJobLogController extends BaseController
/** /**
* 查询定时任务调度日志列表 * 查询定时任务调度日志列表
*/ */
@RequiresPermissions("monitor:job:list") //@RequiresPermissions("monitor:job:list")
@GetMapping("/list") @GetMapping("/list")
@SysLog(title = "定时任务", businessType = OperaType.QUERY,logType = 0,module = "系统监控->定时任务->调度日志",details = "查询定时任务调度日志列表") @SysLog(title = "定时任务", businessType = OperaType.QUERY,logType = 0,module = "系统监控->定时任务->调度日志",details = "查询定时任务调度日志列表")
public TableDataInfo list(SysJobLog sysJobLog) public TableDataInfo list(SysJobLog sysJobLog)
@ -48,7 +48,7 @@ public class SysJobLogController extends BaseController
/** /**
* 导出定时任务调度日志列表 * 导出定时任务调度日志列表
*/ */
@RequiresPermissions("monitor:job:export") //@RequiresPermissions("monitor:job:export")
@PostMapping("/export") @PostMapping("/export")
@SysLog(title = "定时任务", businessType = OperaType.EXPORT,logType = 0,module = "系统监控->定时任务->调度日志",details = "导出定时任务调度日志列表") @SysLog(title = "定时任务", businessType = OperaType.EXPORT,logType = 0,module = "系统监控->定时任务->调度日志",details = "导出定时任务调度日志列表")
public void export(HttpServletResponse response, SysJobLog sysJobLog) public void export(HttpServletResponse response, SysJobLog sysJobLog)
@ -61,7 +61,7 @@ public class SysJobLogController extends BaseController
/** /**
* 根据调度编号获取详细信息 * 根据调度编号获取详细信息
*/ */
@RequiresPermissions("monitor:job:query") //@RequiresPermissions("monitor:job:query")
@GetMapping(value = "/{jobLogId}") @GetMapping(value = "/{jobLogId}")
public AjaxResult getInfo(@PathVariable Long jobLogId) public AjaxResult getInfo(@PathVariable Long jobLogId)
{ {
@ -71,7 +71,7 @@ public class SysJobLogController extends BaseController
/** /**
* 删除定时任务调度日志 * 删除定时任务调度日志
*/ */
@RequiresPermissions("monitor:job:remove") //@RequiresPermissions("monitor:job:remove")
@PostMapping("/delete/{jobLogIds}") @PostMapping("/delete/{jobLogIds}")
@SysLog(title = "定时任务", businessType = OperaType.DELETE,logType = 0,module = "系统监控->定时任务->调度日志",details = "删除定时任务调度日志") @SysLog(title = "定时任务", businessType = OperaType.DELETE,logType = 0,module = "系统监控->定时任务->调度日志",details = "删除定时任务调度日志")
public AjaxResult remove(@PathVariable Long[] jobLogIds) public AjaxResult remove(@PathVariable Long[] jobLogIds)
@ -82,7 +82,7 @@ public class SysJobLogController extends BaseController
/** /**
* 清空定时任务调度日志 * 清空定时任务调度日志
*/ */
@RequiresPermissions("monitor:job:remove") //@RequiresPermissions("monitor:job:remove")
@PostMapping("/clean") @PostMapping("/clean")
@SysLog(title = "定时任务", businessType = OperaType.DELETE,logType = 0,module = "系统监控->定时任务->调度日志",details = "清空定时任务调度日志") @SysLog(title = "定时任务", businessType = OperaType.DELETE,logType = 0,module = "系统监控->定时任务->调度日志",details = "清空定时任务调度日志")
public AjaxResult clean() public AjaxResult clean()

View File

@ -59,7 +59,7 @@ public class SysConfigController extends BaseController {
return getDataTableError(new ArrayList<SysConfig>()); return getDataTableError(new ArrayList<SysConfig>());
} }
@RequiresPermissions("system:config:export") //@RequiresPermissions("system:config:export")
@PostMapping("/export") @PostMapping("/export")
@SysLog(title = "参数配置", businessType = OperaType.EXPORT,logType = 0,module = "系统管理->参数配置") @SysLog(title = "参数配置", businessType = OperaType.EXPORT,logType = 0,module = "系统管理->参数配置")
public void export(HttpServletResponse response, SysConfig config) { public void export(HttpServletResponse response, SysConfig config) {

View File

@ -60,7 +60,7 @@ public class SysDictDataController extends BaseController
return getDataTableError(new ArrayList<>()); return getDataTableError(new ArrayList<>());
} }
@RequiresPermissions("system:dict:export") //@RequiresPermissions("system:dict:export")
@PostMapping("/export") @PostMapping("/export")
@SysLog(title = "字典管理", businessType = OperaType.EXPORT,logType = 0,module = "系统管理->字典管理") @SysLog(title = "字典管理", businessType = OperaType.EXPORT,logType = 0,module = "系统管理->字典管理")
public void export(HttpServletResponse response, SysDictData dictData) { public void export(HttpServletResponse response, SysDictData dictData) {

View File

@ -47,7 +47,7 @@ public class SysDictTypeController extends BaseController
} }
@SysLog(title = "字典管理", businessType = OperaType.EXPORT,logType = 0,module = "系统管理->字典管理") @SysLog(title = "字典管理", businessType = OperaType.EXPORT,logType = 0,module = "系统管理->字典管理")
@RequiresPermissions("system:dict:export") //@RequiresPermissions("system:dict:export")
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, SysDictType dictType) { public void export(HttpServletResponse response, SysDictType dictType) {
try{ try{

View File

@ -32,7 +32,7 @@ public class SysIpWhitelistController extends BaseController
/** /**
* 查询白名单管理列表 * 查询白名单管理列表
*/ */
@RequiresPermissions("system:whitelist:list") //@RequiresPermissions("system:whitelist:list")
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(SysIpWhitelist sysIpWhitelist) public TableDataInfo list(SysIpWhitelist sysIpWhitelist)
{ {
@ -49,7 +49,7 @@ public class SysIpWhitelistController extends BaseController
/** /**
* 导出白名单管理列表 * 导出白名单管理列表
*/ */
@RequiresPermissions("system:whitelist:export") //@RequiresPermissions("system:whitelist:export")
@PostMapping("/export") @PostMapping("/export")
@SysLog(title = "白名单管理", businessType = OperaType.EXPORT,logType = 0,module = "白名单管理",details = "导出白名单管理列表") @SysLog(title = "白名单管理", businessType = OperaType.EXPORT,logType = 0,module = "白名单管理",details = "导出白名单管理列表")
public void export(HttpServletResponse response, SysIpWhitelist sysIpWhitelist) public void export(HttpServletResponse response, SysIpWhitelist sysIpWhitelist)
@ -62,7 +62,7 @@ public class SysIpWhitelistController extends BaseController
/** /**
* 获取白名单管理详细信息 * 获取白名单管理详细信息
*/ */
@RequiresPermissions("system:whitelist:query") //@RequiresPermissions("system:whitelist:query")
@GetMapping(value = "/{id}") @GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) public AjaxResult getInfo(@PathVariable("id") Long id)
{ {
@ -72,7 +72,7 @@ public class SysIpWhitelistController extends BaseController
/** /**
* 新增白名单管理 * 新增白名单管理
*/ */
@RequiresPermissions("system:whitelist:add") //@RequiresPermissions("system:whitelist:add")
@PostMapping("/add") @PostMapping("/add")
@SysLog(title = "白名单管理", businessType = OperaType.INSERT,logType = 0,module = "白名单管理",details = "导出白名单管理列表") @SysLog(title = "白名单管理", businessType = OperaType.INSERT,logType = 0,module = "白名单管理",details = "导出白名单管理列表")
public AjaxResult add(@RequestBody SysIpWhitelist sysIpWhitelist) public AjaxResult add(@RequestBody SysIpWhitelist sysIpWhitelist)

View File

@ -34,7 +34,7 @@ public class SysLogininforController extends BaseController
@Autowired @Autowired
private RedisService redisService; private RedisService redisService;
@RequiresPermissions("system:logininfor:list") //@RequiresPermissions("system:logininfor:list")
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(SysLogininfor logininfor) { public TableDataInfo list(SysLogininfor logininfor) {
try{ try{

View File

@ -1,26 +1,19 @@
package com.bonus.system.controller; package com.bonus.system.controller;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletResponse;
import com.bonus.system.api.domain.SysLogsVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.bonus.common.core.utils.poi.ExcelUtil; import com.bonus.common.core.utils.poi.ExcelUtil;
import com.bonus.common.core.web.controller.BaseController; import com.bonus.common.core.web.controller.BaseController;
import com.bonus.common.core.web.domain.AjaxResult; import com.bonus.common.core.web.domain.AjaxResult;
import com.bonus.common.core.web.page.TableDataInfo; import com.bonus.common.core.web.page.TableDataInfo;
import com.bonus.common.security.annotation.InnerAuth; import com.bonus.common.security.annotation.InnerAuth;
import com.bonus.common.security.annotation.RequiresPermissions; import com.bonus.system.api.domain.SysLogsVo;
import com.bonus.system.api.domain.SysOperLog; import com.bonus.system.api.domain.SysOperLog;
import com.bonus.system.service.ISysOperLogService; import com.bonus.system.service.ISysOperLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;
/** /**
* 操作日志记录 * 操作日志记录
@ -34,7 +27,7 @@ public class SysOperlogController extends BaseController
@Autowired @Autowired
private ISysOperLogService operLogService; private ISysOperLogService operLogService;
@RequiresPermissions("system:operlog:list") //@RequiresPermissions("system:operlog:list")
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(SysOperLog operLog) public TableDataInfo list(SysOperLog operLog)
{ {
@ -43,7 +36,7 @@ public class SysOperlogController extends BaseController
return getDataTable(list); return getDataTable(list);
} }
@RequiresPermissions("system:operlog:export") //@RequiresPermissions("system:operlog:export")
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, SysOperLog operLog) public void export(HttpServletResponse response, SysOperLog operLog)
{ {
@ -52,14 +45,14 @@ public class SysOperlogController extends BaseController
util.exportExcel(response, list, "操作日志"); util.exportExcel(response, list, "操作日志");
} }
@RequiresPermissions("system:operlog:remove") //@RequiresPermissions("system:operlog:remove")
@PostMapping("/delete/{operIds}") @PostMapping("/delete/{operIds}")
public AjaxResult remove(@PathVariable Long[] operIds) public AjaxResult remove(@PathVariable Long[] operIds)
{ {
return toAjax(operLogService.deleteOperLogByIds(operIds)); return toAjax(operLogService.deleteOperLogByIds(operIds));
} }
@RequiresPermissions("system:operlog:remove") //@RequiresPermissions("system:operlog:remove")
@PostMapping("/clean") @PostMapping("/clean")
public AjaxResult clean() public AjaxResult clean()
{ {

View File

@ -66,7 +66,7 @@ public class SysRoleController extends BaseController
} }
@RequiresPermissions("system:role:export") //@RequiresPermissions("system:role:export")
@PostMapping("/export") @PostMapping("/export")
@SysLog(title = "角色管理", businessType = OperaType.EXPORT,logType = 0,module = "系统管理->角色管理",details = "导出角色excel") @SysLog(title = "角色管理", businessType = OperaType.EXPORT,logType = 0,module = "系统管理->角色管理",details = "导出角色excel")
public void export(HttpServletResponse response, SysRole role) { public void export(HttpServletResponse response, SysRole role) {

View File

@ -14,8 +14,6 @@ import com.bonus.common.log.annotation.SysLog;
import com.bonus.common.log.enums.OperaType; import com.bonus.common.log.enums.OperaType;
import com.bonus.common.redis.service.RedisService; import com.bonus.common.redis.service.RedisService;
import com.bonus.common.security.annotation.InnerAuth; import com.bonus.common.security.annotation.InnerAuth;
import com.bonus.common.security.annotation.RequiresPermissions;
import com.bonus.common.security.annotation.RequiresPermissionsOrInnerAuth;
import com.bonus.common.security.utils.SecurityUtils; import com.bonus.common.security.utils.SecurityUtils;
import com.bonus.config.ListPagingUtil; import com.bonus.config.ListPagingUtil;
import com.bonus.system.api.domain.RoleParams; import com.bonus.system.api.domain.RoleParams;
@ -113,7 +111,7 @@ public class SysUserController extends BaseController {
return success(); return success();
} }
@RequiresPermissions("system:user:export") //@RequiresPermissions("system:user:export")
@PostMapping("/export") @PostMapping("/export")
@SysLog(title = "用户管理", businessType = OperaType.EXPORT, logType = 0, module = "系统管理->用户管理", details = "导出用户信息") @SysLog(title = "用户管理", businessType = OperaType.EXPORT, logType = 0, module = "系统管理->用户管理", details = "导出用户信息")
public void export(HttpServletResponse response, SysUser user) { public void export(HttpServletResponse response, SysUser user) {

View File

@ -35,7 +35,7 @@ public class SysUserOnlineController extends BaseController
@Autowired @Autowired
private RedisService redisService; private RedisService redisService;
@RequiresPermissions("monitor:online:list") //@RequiresPermissions("monitor:online:list")
@GetMapping("/list") @GetMapping("/list")
@SysLog(title = "在线用户", businessType = OperaType.UPDATE,logType = 0,module = "系统监控->在线用户",details = "查询在线用户列表") @SysLog(title = "在线用户", businessType = OperaType.UPDATE,logType = 0,module = "系统监控->在线用户",details = "查询在线用户列表")
public TableDataInfo list(String ipaddr, String userName) { public TableDataInfo list(String ipaddr, String userName) {
@ -67,7 +67,7 @@ public class SysUserOnlineController extends BaseController
/** /**
* 强退用户 * 强退用户
*/ */
@RequiresPermissions("monitor:online:forceLogout") //@RequiresPermissions("monitor:online:forceLogout")
@PostMapping("/delete/{tokenId}") @PostMapping("/delete/{tokenId}")
@SysLog(title = "在线用户", businessType = OperaType.UPDATE,logType = 0,module = "系统监控->在线用户",details = "在线用户退出") @SysLog(title = "在线用户", businessType = OperaType.UPDATE,logType = 0,module = "系统监控->在线用户",details = "在线用户退出")
public AjaxResult forceLogout(@PathVariable String tokenId) { public AjaxResult forceLogout(@PathVariable String tokenId) {