问题修改
This commit is contained in:
parent
f17d5ea3a4
commit
705b2aff97
|
|
@ -137,7 +137,7 @@ public class SysDept extends BaseEntity {
|
|||
private Long userCount;
|
||||
|
||||
/**
|
||||
*角色名称
|
||||
* 角色名称
|
||||
*/
|
||||
private String roleName;
|
||||
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ public class FaceDataController extends BaseController {
|
|||
/**
|
||||
* 查询列表
|
||||
*/
|
||||
@RequiresPermissions("face:data:list")
|
||||
//@RequiresPermissions("face:data:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(FaceDataEntity faceData) {
|
||||
try {
|
||||
|
|
@ -45,7 +45,7 @@ public class FaceDataController extends BaseController {
|
|||
/**
|
||||
* 获取详细信息
|
||||
*/
|
||||
@RequiresPermissions("face:data:query")
|
||||
//@RequiresPermissions("face:data:query")
|
||||
@GetMapping(value = "/{faceId}")
|
||||
public AjaxResult getInfo(@PathVariable("faceId") Long faceId) {
|
||||
return faceDataService.selectFaceDataByFaceId(faceId);
|
||||
|
|
@ -54,7 +54,7 @@ public class FaceDataController extends BaseController {
|
|||
/**
|
||||
* 新增
|
||||
*/
|
||||
@RequiresPermissions("face:data:add")
|
||||
//@RequiresPermissions("face:data:add")
|
||||
@PostMapping("/add")
|
||||
@SysLog(title = "", businessType = OperaType.INSERT, logType = 0, module = "", details = "导出列表")
|
||||
public AjaxResult add(FaceDataEntity faceData) {
|
||||
|
|
@ -64,7 +64,7 @@ public class FaceDataController extends BaseController {
|
|||
/**
|
||||
* 修改
|
||||
*/
|
||||
@RequiresPermissions("face:data:edit")
|
||||
//@RequiresPermissions("face:data:edit")
|
||||
@PostMapping("/edit")
|
||||
@SysLog(title = "", businessType = OperaType.UPDATE, logType = 0, module = "", details = "导出列表")
|
||||
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}")
|
||||
@SysLog(title = "", businessType = OperaType.DELETE, logType = 0, module = "", details = "导出列表")
|
||||
public AjaxResult remove(@PathVariable Long[] faceIds) {
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ public class FaceGroupsController extends BaseController {
|
|||
/**
|
||||
* 查询列表
|
||||
*/
|
||||
@RequiresPermissions("face:groups:list")
|
||||
//@RequiresPermissions("face:groups:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(FaceGroupsEntity faceGroups) {
|
||||
try {
|
||||
|
|
@ -45,7 +45,7 @@ public class FaceGroupsController extends BaseController {
|
|||
/**
|
||||
* 获取详细信息
|
||||
*/
|
||||
@RequiresPermissions("face:groups:query")
|
||||
//@RequiresPermissions("face:groups:query")
|
||||
@GetMapping(value = "/{groupId}")
|
||||
public AjaxResult getInfo(@PathVariable("groupId") Long groupId) {
|
||||
return faceGroupsService.selectFaceGroupsByGroupId(groupId);
|
||||
|
|
@ -54,7 +54,7 @@ public class FaceGroupsController extends BaseController {
|
|||
/**
|
||||
* 新增
|
||||
*/
|
||||
@RequiresPermissions("face:groups:add")
|
||||
//@RequiresPermissions("face:groups:add")
|
||||
@PostMapping("/add")
|
||||
@SysLog(title = "", businessType = OperaType.INSERT, logType = 0, module = "", details = "导出列表")
|
||||
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")
|
||||
@SysLog(title = "", businessType = OperaType.UPDATE, logType = 0, module = "", details = "导出列表")
|
||||
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}")
|
||||
@SysLog(title = "", businessType = OperaType.DELETE, logType = 0, module = "", details = "导出列表")
|
||||
public AjaxResult remove(@PathVariable Long[] groupIds) {
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ public class MinioUtil {
|
|||
/**
|
||||
* i皖送,minio上传文件域名路径
|
||||
*/
|
||||
public String domain = "http://sgwpdm.ah.sgcc.com.cn/iws/ahbns/";
|
||||
public String domain = "http://112.29.103.165:29300/";
|
||||
/**
|
||||
* 分片大小
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ public class GenController extends BaseController
|
|||
/**
|
||||
* 查询代码生成列表
|
||||
*/
|
||||
@RequiresPermissions("tool:gen:list")
|
||||
//@RequiresPermissions("tool:gen:list")
|
||||
@GetMapping("/list")
|
||||
@SysLog(title = "代码生成", businessType = OperaType.QUERY,logType = 0,module = "系统工具->代码生成",details = "代码生成列表")
|
||||
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}")
|
||||
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")
|
||||
public TableDataInfo dataList(GenTable genTable)
|
||||
{
|
||||
|
|
@ -102,7 +102,7 @@ public class GenController extends BaseController
|
|||
/**
|
||||
* 导入表结构(保存)
|
||||
*/
|
||||
@RequiresPermissions("tool:gen:import")
|
||||
//@RequiresPermissions("tool:gen:import")
|
||||
@PostMapping("/importTable")
|
||||
@SysLog(title = "代码生成", businessType = OperaType.IMPORT,logType = 0,module = "系统工具->代码生成",details = "导入表结构")
|
||||
public AjaxResult importTableSave(String tables)
|
||||
|
|
@ -117,7 +117,7 @@ public class GenController extends BaseController
|
|||
/**
|
||||
* 修改保存代码生成业务
|
||||
*/
|
||||
@RequiresPermissions("tool:gen:edit")
|
||||
//@RequiresPermissions("tool:gen:edit")
|
||||
@PostMapping("/edit")
|
||||
@SysLog(title = "代码生成", businessType = OperaType.UPDATE,logType = 0,module = "系统工具->代码生成",details = "修改保存代码生成业务")
|
||||
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}")
|
||||
@SysLog(title = "代码生成", businessType = OperaType.DELETE,logType = 0,module = "系统工具->代码生成",details = "删除代码生成")
|
||||
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}")
|
||||
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}")
|
||||
@SysLog(title = "代码生成", businessType = OperaType.DOWNLOAD,logType = 0,module = "系统工具->代码生成",details = "生成代码")
|
||||
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}")
|
||||
@SysLog(title = "代码生成", businessType = OperaType.DOWNLOAD,logType = 0,module = "系统工具->代码生成",details = "生成代码")
|
||||
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}")
|
||||
@SysLog(title = "代码生成", businessType = OperaType.UPDATE,logType = 0,module = "系统工具->代码生成",details = "同步数据库")
|
||||
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")
|
||||
@SysLog(title = "代码生成", businessType = OperaType.INSERT,logType = 0,module = "系统工具->代码生成",details = "批量生成代码")
|
||||
public void batchGenCode(HttpServletResponse response, String tables) throws IOException
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ public class SysJobController extends BaseController
|
|||
/**
|
||||
* 查询定时任务列表
|
||||
*/
|
||||
@RequiresPermissions("monitor:job:list")
|
||||
//@RequiresPermissions("monitor:job:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SysJob sysJob)
|
||||
{
|
||||
|
|
@ -56,7 +56,7 @@ public class SysJobController extends BaseController
|
|||
/**
|
||||
* 导出定时任务列表
|
||||
*/
|
||||
@RequiresPermissions("monitor:job:export")
|
||||
//@RequiresPermissions("monitor:job:export")
|
||||
@PostMapping("/export")
|
||||
@SysLog(title = "定时任务", businessType = OperaType.EXPORT,logType = 0,module = "系统监控->定时任务",details = "导出定时任务列表")
|
||||
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}")
|
||||
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
|
||||
@SysLog(title = "定时任务", businessType = OperaType.INSERT,logType = 0,module = "系统监控->定时任务",details = "新增定时任务")
|
||||
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")
|
||||
@SysLog(title = "定时任务", businessType = OperaType.UPDATE,logType = 0,module = "系统监控->定时任务",details = "修改定时任务")
|
||||
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")
|
||||
@SysLog(title = "定时任务", businessType = OperaType.UPDATE,logType = 0,module = "系统监控->定时任务",details = "定时任务状态修改")
|
||||
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")
|
||||
@SysLog(title = "定时任务", businessType = OperaType.UPDATE,logType = 0,module = "系统监控->定时任务",details = "定时任务立即执行一次")
|
||||
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}")
|
||||
@SysLog(title = "定时任务", businessType = OperaType.DELETE,logType = 0,module = "系统监控->定时任务",details = "删除定时任务")
|
||||
public AjaxResult remove(@PathVariable Long[] jobIds) throws SchedulerException, TaskException
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ public class SysJobLogController extends BaseController
|
|||
/**
|
||||
* 查询定时任务调度日志列表
|
||||
*/
|
||||
@RequiresPermissions("monitor:job:list")
|
||||
//@RequiresPermissions("monitor:job:list")
|
||||
@GetMapping("/list")
|
||||
@SysLog(title = "定时任务", businessType = OperaType.QUERY,logType = 0,module = "系统监控->定时任务->调度日志",details = "查询定时任务调度日志列表")
|
||||
public TableDataInfo list(SysJobLog sysJobLog)
|
||||
|
|
@ -48,7 +48,7 @@ public class SysJobLogController extends BaseController
|
|||
/**
|
||||
* 导出定时任务调度日志列表
|
||||
*/
|
||||
@RequiresPermissions("monitor:job:export")
|
||||
//@RequiresPermissions("monitor:job:export")
|
||||
@PostMapping("/export")
|
||||
@SysLog(title = "定时任务", businessType = OperaType.EXPORT,logType = 0,module = "系统监控->定时任务->调度日志",details = "导出定时任务调度日志列表")
|
||||
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}")
|
||||
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}")
|
||||
@SysLog(title = "定时任务", businessType = OperaType.DELETE,logType = 0,module = "系统监控->定时任务->调度日志",details = "删除定时任务调度日志")
|
||||
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")
|
||||
@SysLog(title = "定时任务", businessType = OperaType.DELETE,logType = 0,module = "系统监控->定时任务->调度日志",details = "清空定时任务调度日志")
|
||||
public AjaxResult clean()
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ public class SysConfigController extends BaseController {
|
|||
return getDataTableError(new ArrayList<SysConfig>());
|
||||
}
|
||||
|
||||
@RequiresPermissions("system:config:export")
|
||||
//@RequiresPermissions("system:config:export")
|
||||
@PostMapping("/export")
|
||||
@SysLog(title = "参数配置", businessType = OperaType.EXPORT,logType = 0,module = "系统管理->参数配置")
|
||||
public void export(HttpServletResponse response, SysConfig config) {
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ public class SysDictDataController extends BaseController
|
|||
return getDataTableError(new ArrayList<>());
|
||||
}
|
||||
|
||||
@RequiresPermissions("system:dict:export")
|
||||
//@RequiresPermissions("system:dict:export")
|
||||
@PostMapping("/export")
|
||||
@SysLog(title = "字典管理", businessType = OperaType.EXPORT,logType = 0,module = "系统管理->字典管理")
|
||||
public void export(HttpServletResponse response, SysDictData dictData) {
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ public class SysDictTypeController extends BaseController
|
|||
}
|
||||
|
||||
@SysLog(title = "字典管理", businessType = OperaType.EXPORT,logType = 0,module = "系统管理->字典管理")
|
||||
@RequiresPermissions("system:dict:export")
|
||||
//@RequiresPermissions("system:dict:export")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, SysDictType dictType) {
|
||||
try{
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ public class SysIpWhitelistController extends BaseController
|
|||
/**
|
||||
* 查询白名单管理列表
|
||||
*/
|
||||
@RequiresPermissions("system:whitelist:list")
|
||||
//@RequiresPermissions("system:whitelist:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SysIpWhitelist sysIpWhitelist)
|
||||
{
|
||||
|
|
@ -49,7 +49,7 @@ public class SysIpWhitelistController extends BaseController
|
|||
/**
|
||||
* 导出白名单管理列表
|
||||
*/
|
||||
@RequiresPermissions("system:whitelist:export")
|
||||
//@RequiresPermissions("system:whitelist:export")
|
||||
@PostMapping("/export")
|
||||
@SysLog(title = "白名单管理", businessType = OperaType.EXPORT,logType = 0,module = "白名单管理",details = "导出白名单管理列表")
|
||||
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}")
|
||||
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")
|
||||
@SysLog(title = "白名单管理", businessType = OperaType.INSERT,logType = 0,module = "白名单管理",details = "导出白名单管理列表")
|
||||
public AjaxResult add(@RequestBody SysIpWhitelist sysIpWhitelist)
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ public class SysLogininforController extends BaseController
|
|||
@Autowired
|
||||
private RedisService redisService;
|
||||
|
||||
@RequiresPermissions("system:logininfor:list")
|
||||
//@RequiresPermissions("system:logininfor:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SysLogininfor logininfor) {
|
||||
try{
|
||||
|
|
|
|||
|
|
@ -1,26 +1,19 @@
|
|||
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.web.controller.BaseController;
|
||||
import com.bonus.common.core.web.domain.AjaxResult;
|
||||
import com.bonus.common.core.web.page.TableDataInfo;
|
||||
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.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
|
||||
private ISysOperLogService operLogService;
|
||||
|
||||
@RequiresPermissions("system:operlog:list")
|
||||
//@RequiresPermissions("system:operlog:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SysOperLog operLog)
|
||||
{
|
||||
|
|
@ -43,7 +36,7 @@ public class SysOperlogController extends BaseController
|
|||
return getDataTable(list);
|
||||
}
|
||||
|
||||
@RequiresPermissions("system:operlog:export")
|
||||
//@RequiresPermissions("system:operlog:export")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, SysOperLog operLog)
|
||||
{
|
||||
|
|
@ -52,14 +45,14 @@ public class SysOperlogController extends BaseController
|
|||
util.exportExcel(response, list, "操作日志");
|
||||
}
|
||||
|
||||
@RequiresPermissions("system:operlog:remove")
|
||||
//@RequiresPermissions("system:operlog:remove")
|
||||
@PostMapping("/delete/{operIds}")
|
||||
public AjaxResult remove(@PathVariable Long[] operIds)
|
||||
{
|
||||
return toAjax(operLogService.deleteOperLogByIds(operIds));
|
||||
}
|
||||
|
||||
@RequiresPermissions("system:operlog:remove")
|
||||
//@RequiresPermissions("system:operlog:remove")
|
||||
@PostMapping("/clean")
|
||||
public AjaxResult clean()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ public class SysRoleController extends BaseController
|
|||
}
|
||||
|
||||
|
||||
@RequiresPermissions("system:role:export")
|
||||
//@RequiresPermissions("system:role:export")
|
||||
@PostMapping("/export")
|
||||
@SysLog(title = "角色管理", businessType = OperaType.EXPORT,logType = 0,module = "系统管理->角色管理",details = "导出角色excel")
|
||||
public void export(HttpServletResponse response, SysRole role) {
|
||||
|
|
|
|||
|
|
@ -14,8 +14,6 @@ import com.bonus.common.log.annotation.SysLog;
|
|||
import com.bonus.common.log.enums.OperaType;
|
||||
import com.bonus.common.redis.service.RedisService;
|
||||
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.config.ListPagingUtil;
|
||||
import com.bonus.system.api.domain.RoleParams;
|
||||
|
|
@ -113,7 +111,7 @@ public class SysUserController extends BaseController {
|
|||
return success();
|
||||
}
|
||||
|
||||
@RequiresPermissions("system:user:export")
|
||||
//@RequiresPermissions("system:user:export")
|
||||
@PostMapping("/export")
|
||||
@SysLog(title = "用户管理", businessType = OperaType.EXPORT, logType = 0, module = "系统管理->用户管理", details = "导出用户信息")
|
||||
public void export(HttpServletResponse response, SysUser user) {
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ public class SysUserOnlineController extends BaseController
|
|||
@Autowired
|
||||
private RedisService redisService;
|
||||
|
||||
@RequiresPermissions("monitor:online:list")
|
||||
//@RequiresPermissions("monitor:online:list")
|
||||
@GetMapping("/list")
|
||||
@SysLog(title = "在线用户", businessType = OperaType.UPDATE,logType = 0,module = "系统监控->在线用户",details = "查询在线用户列表")
|
||||
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}")
|
||||
@SysLog(title = "在线用户", businessType = OperaType.UPDATE,logType = 0,module = "系统监控->在线用户",details = "在线用户退出")
|
||||
public AjaxResult forceLogout(@PathVariable String tokenId) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue