移除预算工作流服务中未使用的代码
移除了 BudgetWorkFlowService 类中有关角色检查的无用代码,该检查原本用于验证用户是否具有“维修上报”角色。由于当前流程不再需要此角色检查,因此删除了相关代码以简化实现。
This commit is contained in:
parent
b334cd13d1
commit
abe07eef3d
|
@ -69,6 +69,7 @@ public class BudgetWorkFlowService implements IWorkFlowType {
|
||||||
public AjaxResult first(WorkFlow workFlow) {
|
public AjaxResult first(WorkFlow workFlow) {
|
||||||
//是否维修上报角色
|
//是否维修上报角色
|
||||||
User user = userService.getById(workFlow.getUserId());
|
User user = userService.getById(workFlow.getUserId());
|
||||||
|
|
||||||
// List<Role> roles = roleService.listByIds(Arrays.asList(user.getRoles().split(",")));
|
// List<Role> roles = roleService.listByIds(Arrays.asList(user.getRoles().split(",")));
|
||||||
// List<String> roleNames = roles.stream().map(Role::getName).collect(Collectors.toList());
|
// List<String> roleNames = roles.stream().map(Role::getName).collect(Collectors.toList());
|
||||||
// if (!roleNames.contains("维修上报")) throw new ResultException("您不是维修上报人员");
|
// if (!roleNames.contains("维修上报")) throw new ResultException("您不是维修上报人员");
|
||||||
|
|
Loading…
Reference in New Issue