@@ -22,7 +22,7 @@ import java.util.Optional; | |||||
*/ | */ | ||||
@Slf4j | @Slf4j | ||||
@RequiredArgsConstructor | @RequiredArgsConstructor | ||||
@Component("ORDINARY_USER") | |||||
@Component("NORMAL_MEMBER") | |||||
public class OrdinaryUserDataScopeProviderImpl implements DataScopeProvider { | public class OrdinaryUserDataScopeProviderImpl implements DataScopeProvider { | ||||
private final UserInfoHelper userInfoHelper; | private final UserInfoHelper userInfoHelper; | ||||
@@ -21,7 +21,7 @@ import java.util.Optional; | |||||
*/ | */ | ||||
@Slf4j | @Slf4j | ||||
@RequiredArgsConstructor | @RequiredArgsConstructor | ||||
@Component("ORG_ADMIN") | |||||
@Component("COMPANY_MANAGER") | |||||
public class OrgAdminDataScopeProviderImpl implements DataScopeProvider { | public class OrgAdminDataScopeProviderImpl implements DataScopeProvider { | ||||
private final UserInfoHelper userInfoHelper; | private final UserInfoHelper userInfoHelper; | ||||
@@ -26,7 +26,7 @@ import java.util.stream.Collectors; | |||||
*/ | */ | ||||
@Slf4j | @Slf4j | ||||
@RequiredArgsConstructor | @RequiredArgsConstructor | ||||
@Component("REGION_ADMIN") | |||||
@Component("REGION_MANAGER") | |||||
public class RegionAdminDataScopeProviderImpl implements DataScopeProvider { | public class RegionAdminDataScopeProviderImpl implements DataScopeProvider { | ||||
private final RegionCacheHelper regionCacheHelper; | private final RegionCacheHelper regionCacheHelper; | ||||
@@ -505,16 +505,32 @@ public class TodoCenterManage { | |||||
UserFullInfoDTO beforeUser = null; | UserFullInfoDTO beforeUser = null; | ||||
Boolean isAndOr = Boolean.FALSE; | Boolean isAndOr = Boolean.FALSE; | ||||
//还有种情况是 会签 或签 并且在上个节点 | |||||
if(CollUtil.isNotEmpty(beforeAndOr)){ | |||||
for(ProgressNode n : beforeAndOr){ | |||||
if(n.getUserId().equals(user.getEmployeeCode())){ | |||||
//如果上个会签没取到 还有种情况是 会签 或签 并且在上个节点 | |||||
if(CollUtil.isNotEmpty(beforeAndOr)) { | |||||
for (ProgressNode n : beforeAndOr) { | |||||
if (n.getUserId().equals(user.getEmployeeCode())) { | |||||
beforeProgressNode = n; | |||||
//说明当前操作人 在上个会签或者或签节点 | //说明当前操作人 在上个会签或者或签节点 | ||||
isAndOr = Boolean.TRUE; | isAndOr = Boolean.TRUE; | ||||
break; | break; | ||||
} | } | ||||
} | } | ||||
} | } | ||||
//还有种情况是 会签 或签 并且在当前节点 并且已经通过 | |||||
if(!isAndOr && CollUtil.isNotEmpty(thisAndOr)){ | |||||
for(ProgressNode n : thisAndOr){ | |||||
if(n.getUserId().equals(user.getEmployeeCode()) && | |||||
Objects.nonNull(n.getFinishTime())){ | |||||
beforeProgressNode = n; | |||||
//说明当前操作人 在上个会签或者或签节点 | |||||
isAndOr = Boolean.TRUE; | |||||
break; | |||||
} | |||||
} | |||||
} | |||||
if(Objects.nonNull(beforeProgressNode)){ | if(Objects.nonNull(beforeProgressNode)){ | ||||
// 获取当前工作流任务前一个审核人信息 | // 获取当前工作流任务前一个审核人信息 | ||||
beforeUser = userInfoHelper.getUserFullInfoByEmployeeCode(beforeProgressNode.getUserId()); | beforeUser = userInfoHelper.getUserFullInfoByEmployeeCode(beforeProgressNode.getUserId()); | ||||