根据项目库id处理法规清单符合性流程操作人数据接口
This commit is contained in:
+1
@@ -142,6 +142,7 @@ public class ShiroConfig {
|
|||||||
filterChainDefinitionMap.put("/opensso/**", "anon"); //单点登录
|
filterChainDefinitionMap.put("/opensso/**", "anon"); //单点登录
|
||||||
|
|
||||||
filterChainDefinitionMap.put("/project/projectLawsInventoryEO/processCall", "anon"); // 项目库-法规清单 工作流处理数据接口排除
|
filterChainDefinitionMap.put("/project/projectLawsInventoryEO/processCall", "anon"); // 项目库-法规清单 工作流处理数据接口排除
|
||||||
|
filterChainDefinitionMap.put("/project/projectLawsInventoryEO/updateFlowInfoByProjectLibraryIds", "anon"); // 项目库-法规清单 根据项目库id更新符合性流程发起人、责任人接口排除
|
||||||
filterChainDefinitionMap.put("/project/projectTaskInventoryEO/processCall", "anon"); // 项目库-任务清单 工作流处理数据接口排除
|
filterChainDefinitionMap.put("/project/projectTaskInventoryEO/processCall", "anon"); // 项目库-任务清单 工作流处理数据接口排除
|
||||||
filterChainDefinitionMap.put("/wkflow/processHistoryEO/processCall", "anon"); // 流程历史 工作流处理数据接口排除
|
filterChainDefinitionMap.put("/wkflow/processHistoryEO/processCall", "anon"); // 流程历史 工作流处理数据接口排除
|
||||||
filterChainDefinitionMap.put("/lawsOpinionGather/lawsOpinionGatherEO/processCall", "anon"); // 法规收集表 工作流处理数据接口排除
|
filterChainDefinitionMap.put("/lawsOpinionGather/lawsOpinionGatherEO/processCall", "anon"); // 法规收集表 工作流处理数据接口排除
|
||||||
|
|||||||
+6
@@ -466,4 +466,10 @@ public class ProjectLawsInventoryEOController extends JeroController<ProjectLaws
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@AutoLog(value = "项目库-法规清单表-根据项目库id更新符合性流程发起人、责任人接口")
|
||||||
|
@ApiOperation(value="项目库-法规清单表-根据项目库id更新符合性流程发起人、责任人接口", notes="项目库-法规清单表-根据项目库id更新符合性流程发起人、责任人接口")
|
||||||
|
@GetMapping(value = "/updateFlowInfoByProjectLibraryIds")
|
||||||
|
public Result<?> updateFlowInfoByProjectLibraryIds(@RequestParam("projectLibraryIds") String projectLibraryIds){
|
||||||
|
return this.projectLawsInventoryEOService.updateFlowInfoByProjectLibraryIds(projectLibraryIds);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
@@ -160,4 +160,5 @@ public interface IProjectLawsInventoryEOService extends IService<ProjectLawsInve
|
|||||||
|
|
||||||
Result<?> taskUrg(ProjectTaskUrgVo projectTaskUrgVo);
|
Result<?> taskUrg(ProjectTaskUrgVo projectTaskUrgVo);
|
||||||
|
|
||||||
|
Result<?> updateFlowInfoByProjectLibraryIds(String projectLibraryIds);
|
||||||
}
|
}
|
||||||
|
|||||||
+26
-6
@@ -475,12 +475,13 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
|
|||||||
// setContentLog(infoDiff,contentLog,infoDiffEn,enContentLog,projectLawsInventoryEO.getProjectLibraryId());
|
// setContentLog(infoDiff,contentLog,infoDiffEn,enContentLog,projectLawsInventoryEO.getProjectLibraryId());
|
||||||
|
|
||||||
|
|
||||||
//验证用户是否是该法规上级 项目库的studio, 如果是,则同步更新流程
|
// //验证用户是否是该法规上级 项目库的studio, 如果是,则同步更新流程
|
||||||
int roleCode = checkUserRole(projectLawsInventoryEO.getProjectLibraryId(), currentUser.getId(), "");
|
// int roleCode = checkUserRole(projectLawsInventoryEO.getProjectLibraryId(), currentUser.getId(), "");
|
||||||
if (StringUtils.equals(String.valueOf(roleCode),ProjectRoleEnum.STUDIO_ENGINEER.getValue())){
|
// if (StringUtils.equals(String.valueOf(roleCode),ProjectRoleEnum.STUDIO_ENGINEER.getValue())){
|
||||||
//更新流程信息
|
// //更新流程信息
|
||||||
updateFlowInfo(projectLawsInventoryEO);
|
// updateFlowInfo(projectLawsInventoryEO);
|
||||||
}
|
// }
|
||||||
|
this.updateFlowInfo(projectLawsInventoryEO);
|
||||||
}else {
|
}else {
|
||||||
throw new JeroBootException("该用户没有权限操作该数据!");
|
throw new JeroBootException("该用户没有权限操作该数据!");
|
||||||
}
|
}
|
||||||
@@ -9345,5 +9346,24 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Result<?> updateFlowInfoByProjectLibraryIds(String projectLibraryIds) {
|
||||||
|
if(StringUtils.isEmpty(projectLibraryIds)){
|
||||||
|
throw new JeroBootException("项目库id不能为空");
|
||||||
|
}
|
||||||
|
|
||||||
|
List<String> projectLibraryIdList = Arrays.asList(projectLibraryIds.split(","));
|
||||||
|
|
||||||
|
QueryWrapper<ProjectLawsInventoryEO> lawsInventoryQueryWrap = new QueryWrapper<>();
|
||||||
|
lawsInventoryQueryWrap.lambda().in(ProjectLawsInventoryEO::getProjectLibraryId,projectLibraryIdList);
|
||||||
|
List<ProjectLawsInventoryEO> projectLawsInventoryEOList = this.baseMapper.selectList(lawsInventoryQueryWrap);
|
||||||
|
|
||||||
|
projectLawsInventoryEOList.forEach(lawsInventoryEO -> {
|
||||||
|
this.updateFlowInfo(lawsInventoryEO);
|
||||||
|
});
|
||||||
|
|
||||||
|
return new Result<>().success("操作成功!");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user