移除预算工作流服务中未使用的代码

移除了 BudgetWorkFlowService 类中有关角色检查的无用代码,该检查原本用于验证用户是否具有“维修上报”角色。由于当前流程不再需要此角色检查,因此删除了相关代码以简化实现。
This commit is contained in:
lijiaqi 2024-08-08 15:23:18 +08:00
parent b334cd13d1
commit abe07eef3d
1 changed files with 1 additions and 0 deletions

View File

@ -69,6 +69,7 @@ public class BudgetWorkFlowService implements IWorkFlowType {
public AjaxResult first(WorkFlow workFlow) {
//是否维修上报角色
User user = userService.getById(workFlow.getUserId());
// List<Role> roles = roleService.listByIds(Arrays.asList(user.getRoles().split(",")));
// List<String> roleNames = roles.stream().map(Role::getName).collect(Collectors.toList());
// if (!roleNames.contains("维修上报")) throw new ResultException("您不是维修上报人员");