fix(flow): 获取部门主管的时候,提示用户凭证已过期

Closes #6183
This commit is contained in:
冷冷 committed 2025-01-22 15:10:22 +08:00
1 parent 59c8d2a672
commit ab86bce01c
6 files changed
+10

No files matched your search

@@ -39,6 +39,7 @@ public interface RemoteFlowTaskService {
* 流程结束事件
* @param processInstanceParamDto
*/
@NoToken
@PostMapping("/remote/endProcess")
void endProcessEvent(@RequestBody ProcessInstanceParamDto processInstanceParamDto);
@@ -152,6 +152,7 @@ public class RemoteController {
* @param processInstanceParamDto
* @return
*/
@Inner
@PostMapping("endProcess")
public R endProcess(@RequestBody ProcessInstanceParamDto processInstanceParamDto) {
return remoteService.endProcess(processInstanceParamDto.getProcessInstanceId());
@@ -22,6 +22,7 @@ package com.pig4cloud.pigx.admin.api.feign;
import com.pig4cloud.pigx.admin.api.entity.SysDept;
import com.pig4cloud.pigx.common.core.constant.ServiceNameConstants;
import com.pig4cloud.pigx.common.core.util.R;
import com.pig4cloud.pigx.common.feign.annotation.NoToken;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
@@ -49,6 +50,7 @@ public interface RemoteDeptService {
* @param deptId 部门ID
* @return 负责人ID列表
*/
@NoToken
@GetMapping("/dept/leader/{deptId}")
R<List<Long>> getAllDeptLeader(@PathVariable("deptId") Long deptId);
@@ -85,6 +85,7 @@ public interface RemoteUserService {
* @param roleIdList 角色ID列表
* @return 用户ID列表
*/
@NoToken
@GetMapping("/user/getUserIdListByRoleIdList")
R<List<Long>> getUserIdListByRoleIdList(@RequestParam("roleIdList") List<Long> roleIdList);
@@ -93,6 +94,7 @@ public interface RemoteUserService {
* @param deptIdList 部门ID列表
* @return 用户ID列表
*/
@NoToken
@GetMapping("/user/getUserIdListByDeptIdList")
R<List<SysUser>> getUserIdListByDeptIdList(@RequestParam("deptIdList") List<Long> deptIdList);
@@ -27,6 +27,7 @@ import com.pig4cloud.pigx.common.excel.annotation.RequestExcel;
import com.pig4cloud.pigx.common.excel.annotation.ResponseExcel;
import com.pig4cloud.pigx.common.log.annotation.SysLog;
import com.pig4cloud.pigx.common.security.annotation.HasPermission;
import com.pig4cloud.pigx.common.security.annotation.Inner;
import io.swagger.v3.oas.annotations.security.SecurityRequirement;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.Valid;
@@ -129,6 +130,7 @@ public class SysDeptController {
return R.ok(sysDeptService.listDescendant(deptId));
}
@Inner
@GetMapping(value = "/leader/{deptId}")
public R getAllDeptLeader(@PathVariable Long deptId) {
return R.ok(sysDeptService.listDeptLeader(deptId));
@@ -272,6 +272,7 @@ public class SysUserController {
* @param roleIdList 角色ID列表
* @return R 返回结果对象,包含根据角色ID列表获取到的用户ID列表信息
*/
@Inner
@GetMapping("/getUserIdListByRoleIdList")
public R<List<Long>> getUserIdListByRoleIdList(Long[] roleIdList) {
return R.ok(userService.listUserIdByRoleIds(CollUtil.toList(roleIdList)));
@@ -283,6 +284,7 @@ public class SysUserController {
* @param deptIdList 部门ID列表
* @return R 返回结果对象,包含根据部门ID列表获取到的用户ID列表信息
*/
@Inner
@GetMapping("/getUserIdListByDeptIdList")
public R<List<SysUser>> getUserIdListByDeptIdList(Long[] deptIdList) {
return R.ok(userService.listUserIdByDeptIds(CollUtil.toList(deptIdList)));