日志查看 数据权限校验修改
This commit is contained in:
parent
7cb916ef57
commit
fb0d08162b
@ -3,6 +3,7 @@ package cn.iocoder.yudao.module.system.controller.admin.worklog;
|
||||
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
||||
import cn.iocoder.yudao.framework.datapermission.core.annotation.DataPermission;
|
||||
import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
|
||||
import cn.iocoder.yudao.framework.operatelog.core.annotations.OperateLog;
|
||||
import cn.iocoder.yudao.module.system.controller.admin.dept.vo.dept.DeptRespVO;
|
||||
@ -151,6 +152,7 @@ public class LogInstanceController {
|
||||
@Operation(summary = "获得可查看日志的用户详情")
|
||||
@Parameter(name = "logId", description = "日志编号", required = true, example = "10")
|
||||
@PreAuthorize("@ss.hasPermission('system:view-log:query')")
|
||||
@DataPermission(enable = false)
|
||||
public CommonResult<List<Map<String, Object>>> getUserByLogId(@RequestParam("logId") Long logId) {
|
||||
|
||||
List<Map<String, Object>> readUserVO = new ArrayList<>();
|
||||
|
@ -1,6 +1,7 @@
|
||||
package cn.iocoder.yudao.module.system.controller.app.comment;
|
||||
|
||||
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
||||
import cn.iocoder.yudao.framework.datapermission.core.annotation.DataPermission;
|
||||
import cn.iocoder.yudao.module.system.controller.app.comment.dto.CommentDTO;
|
||||
import cn.iocoder.yudao.module.system.controller.app.comment.vo.CommentPageListVO;
|
||||
import cn.iocoder.yudao.module.system.controller.app.comment.vo.CommentTypeCountVO;
|
||||
@ -27,6 +28,7 @@ public class WorkLogCommentController {
|
||||
|
||||
@Operation(summary = "用户工作日志评论-分页查询评论列表")
|
||||
@GetMapping(value = "/queryCommentPageList")
|
||||
@DataPermission(enable = false)
|
||||
public CommonResult<IPage<CommentPageListVO>> queryCommentPageList(CommentDTO dto,
|
||||
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
|
||||
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize) {
|
||||
|
Loading…
Reference in New Issue
Block a user