|
@@ -1092,6 +1092,10 @@ public class WebMediatorImpl implements ViewMediator {
|
|
ProjectOperationControl operationControl = new ProjectOperationControl();
|
|
ProjectOperationControl operationControl = new ProjectOperationControl();
|
|
if (user == null)
|
|
if (user == null)
|
|
return operationControl;
|
|
return operationControl;
|
|
|
|
+ if(project.getStatus() == CrowdTestProjectStatus.HAS_TIME_OUT){
|
|
|
|
+ return operationControl;
|
|
|
|
+ }
|
|
|
|
+
|
|
//需求提出者和系统管理员视角
|
|
//需求提出者和系统管理员视角
|
|
if (project.getUserId().equals(user.getId()) || user.getRoleList().stream().anyMatch(role -> role.getName().equals("SystemAdministrator"))) {
|
|
if (project.getUserId().equals(user.getId()) || user.getRoleList().stream().anyMatch(role -> role.getName().equals("SystemAdministrator"))) {
|
|
if (project.getStatus() < CrowdTestProjectStatus.HAS_RECEIVED) {
|
|
if (project.getStatus() < CrowdTestProjectStatus.HAS_RECEIVED) {
|
|
@@ -1103,7 +1107,7 @@ public class WebMediatorImpl implements ViewMediator {
|
|
//区域管理员视角
|
|
//区域管理员视角
|
|
if (user.getRoleList().stream().anyMatch(role -> role.getName().equals("RegionalManager"))) {
|
|
if (user.getRoleList().stream().anyMatch(role -> role.getName().equals("RegionalManager"))) {
|
|
if ((project.getProjectDistributionTypeId() == 0 && project.getRegionalManagerId().equals(user.getId()))
|
|
if ((project.getProjectDistributionTypeId() == 0 && project.getRegionalManagerId().equals(user.getId()))
|
|
- || (project.getProjectDistributionTypeId() > 0 && project.getStatus() >= CrowdTestProjectStatus.HAS_RECEIVED && project.getRegionalManagerId().equals(user.getId()))) {
|
|
|
|
|
|
+ || ((project.getProjectDistributionTypeId() > 0 && project.getStatus() >= CrowdTestProjectStatus.HAS_RECEIVED) && project.getRegionalManagerId().equals(user.getId()))) {
|
|
if (project.getStatus() == CrowdTestProjectStatus.HAS_RELEASED) {
|
|
if (project.getStatus() == CrowdTestProjectStatus.HAS_RELEASED) {
|
|
operationControl.setReceive(true);
|
|
operationControl.setReceive(true);
|
|
operationControl.setReject(true);
|
|
operationControl.setReject(true);
|
|
@@ -1145,6 +1149,10 @@ public class WebMediatorImpl implements ViewMediator {
|
|
TaskOperationControl taskOperationControl = new TaskOperationControl();
|
|
TaskOperationControl taskOperationControl = new TaskOperationControl();
|
|
if (user == null)
|
|
if (user == null)
|
|
return taskOperationControl;
|
|
return taskOperationControl;
|
|
|
|
+ if(task.getStatus() == CrowdTestTaskStatus.HAS_TIME_OUT){
|
|
|
|
+ return taskOperationControl;
|
|
|
|
+ }
|
|
|
|
+
|
|
//区域管理员或系统管理员视角
|
|
//区域管理员或系统管理员视角
|
|
if (user.getRoleList().stream().anyMatch(role -> role.getName().equals("SystemAdministrator"))
|
|
if (user.getRoleList().stream().anyMatch(role -> role.getName().equals("SystemAdministrator"))
|
|
|| (user.getRegionalManager() != null && user.getId().equals(project.getRegionalManagerId()))) {
|
|
|| (user.getRegionalManager() != null && user.getId().equals(project.getRegionalManagerId()))) {
|