diff --git a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/auth/AuthController.java b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/auth/AuthController.java index f1ee6018..4f7672d3 100644 --- a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/auth/AuthController.java +++ b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/auth/AuthController.java @@ -148,6 +148,7 @@ public class AuthController { @Parameter(name = "type", description = "社交类型", required = true), @Parameter(name = "redirectUri", description = "回调路径") }) + @OperateLog(enable = false) // 避免 Post 请求被记录操作日志 public CommonResult socialLogin(@RequestParam("type") Integer type, @RequestParam("redirectUri") String redirectUri) { return success(socialClientService.getAuthorizeUrl( @@ -165,6 +166,7 @@ public class AuthController { @PostMapping("/miniapp_quick_login") @PermitAll @Operation(summary = "微信小程序授权手机号快捷登陆", description = "微信小程序的手机号授权,快捷登陆" ) + @OperateLog(enable = false) // 避免 Post 请求被记录操作日志 public CommonResult miniAppQuickLogin(@RequestBody AuthSocialLoginReqVO reqVO) { return success(authService.miniAppQuickLogin(reqVO)) ; } @@ -172,6 +174,7 @@ public class AuthController { @PostMapping("/miniapp_code2Session") @PermitAll @Operation(summary = "微信小程序openid", description = "获取微信小程序的openid" ) + @OperateLog(enable = false) // 避免 Post 请求被记录操作日志 public CommonResult miniAppCode2Session(@RequestBody AuthSocialLoginReqVO reqVO) { return success(authService.miniAppCode2Session(reqVO)) ; } diff --git a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/dal/mysql/worklog/LogInstanceMapper.java b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/dal/mysql/worklog/LogInstanceMapper.java index 9f304bc9..051099ca 100644 --- a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/dal/mysql/worklog/LogInstanceMapper.java +++ b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/dal/mysql/worklog/LogInstanceMapper.java @@ -47,10 +47,4 @@ public interface LogInstanceMapper extends BaseMapperX { List selectRaedUser(Long deptId); - /** - * 获取我管理的日志列表 - * - * @return - */ - List myManageLogInstanceByTimeRange(@Param("fromId") Long fromId, @Param("beginTime") Date beginTime, @Param("endTime") Date endTime); } \ No newline at end of file diff --git a/yudao-module-system/yudao-module-system-biz/src/main/resources/mapper/worklog/LogInstanceMapper.xml b/yudao-module-system/yudao-module-system-biz/src/main/resources/mapper/worklog/LogInstanceMapper.xml index 8f34272b..d4d24127 100644 --- a/yudao-module-system/yudao-module-system-biz/src/main/resources/mapper/worklog/LogInstanceMapper.xml +++ b/yudao-module-system/yudao-module-system-biz/src/main/resources/mapper/worklog/LogInstanceMapper.xml @@ -82,26 +82,6 @@ or ( result.dept_id = #{deptId} and result.data_scope = 3 ) or result.data_scope = 1 - @@ -25,6 +26,8 @@ select DISTINCT use_user_dept from work_log_use - where form_id = #{formId} + where + deleted = 0 + and form_id = #{formId} \ No newline at end of file