|
@@ -576,6 +576,12 @@ public class ProActiService {
|
|
|
}
|
|
|
|
|
|
}
|
|
|
+ {
|
|
|
+ //判断目标人是否存在,如果存在,再判断该节点是否是串联或串联审核,如果不是就进行查询目标人是否有更高级别角色
|
|
|
+ if(targetUser!=null){
|
|
|
+ roleType=flowMainService.findUpRoleIfExist(flowMain,targetUser,roleType);
|
|
|
+ }
|
|
|
+ }
|
|
|
if (targetUser == null) {
|
|
|
// return null;
|
|
|
System.out.println("1没有找到对应人:" + "if (targetUser == null) {==>" + role + "==>" + ConstantFlowType.ROLETYPE);
|
|
@@ -1119,6 +1125,12 @@ public class ProActiService {
|
|
|
}
|
|
|
|
|
|
}
|
|
|
+ {
|
|
|
+ //判断目标人是否存在,如果存在,再判断该节点是否是串联或串联审核,如果不是就进行查询目标人是否有更高级别角色
|
|
|
+ if(targetUser!=null){
|
|
|
+ roleType=flowMainService.findUpRoleIfExist(flowMain,targetUser,roleType);
|
|
|
+ }
|
|
|
+ }
|
|
|
if (targetUser == null) {
|
|
|
// return null;
|
|
|
System.out.println("3没有找到对应人:" + "if (targetUser == null) {");
|
|
@@ -1939,14 +1951,15 @@ public class ProActiService {
|
|
|
{ //检查用户除了是部门领导是否还有别的更高的角色职位在这个流程中,如果有就重新设置高的角色放入对象中
|
|
|
String flowRole = targetUserAndFlowRole.getFlowRole();
|
|
|
FrameUser targetUser = targetUserAndFlowRole.getFrameUser();
|
|
|
- String[] onlyFlowFlowStep = targetUserAndFlowRole.getOnlyFlowFlowStep();
|
|
|
+ String[] onlyFlowFlowStep=targetUserAndFlowRole.getOnlyFlowFlowStep();
|
|
|
+ String[] onlyFlowStepAll = flowMainService.getOnlylowStepAll(flowMain.getFlowType());
|
|
|
boolean isFlowRole = false;//是否是领导角色
|
|
|
- if (flowRole != null && targetUser != null&&onlyFlowFlowStep!=null) {
|
|
|
+ if (flowRole != null && targetUser != null&&onlyFlowStepAll!=null) {
|
|
|
List<FrameRoleData> FrameRoleDatas = flowMainService.findFrameRoleDatasByUserId(targetUser.getId(), ConstantFlowType.ROLETYPE);//"FLOW"
|
|
|
- for (int i = onlyFlowFlowStep.length-1; i >=0; i--) {
|
|
|
+ for (int i = onlyFlowStepAll.length-1; i >=0; i--) {
|
|
|
for (FrameRoleData frameRoleData : FrameRoleDatas) {
|
|
|
- if (onlyFlowFlowStep[i].startsWith("flow_"+frameRoleData.getRoleKey())) {
|
|
|
- targetUserAndFlowRole.setFlowRole(onlyFlowFlowStep[i]);
|
|
|
+ if (onlyFlowStepAll[i].startsWith("flow_"+frameRoleData.getRoleKey())) {
|
|
|
+ targetUserAndFlowRole.setFlowRole(onlyFlowStepAll[i]);
|
|
|
break;
|
|
|
}
|
|
|
}
|