|
@@ -958,12 +958,7 @@ public class WebMediatorImpl implements ViewMediator {
|
|
// 判断是否具有配置项,提供跳转url
|
|
// 判断是否具有配置项,提供跳转url
|
|
if(endPointPOOptional.isPresent()){
|
|
if(endPointPOOptional.isPresent()){
|
|
// 获取测试类型对应的跳转url
|
|
// 获取测试类型对应的跳转url
|
|
- TestType testType = commonRepo.getTestTypeByAppCode(task.get().getType());
|
|
|
|
- String url = testType.getUrl();
|
|
|
|
- String reportUrl = url.replace("examId", endPointPOOptional.get().getExamId())
|
|
|
|
- .replace("caseId", endPointPOOptional.get().getCaseId())
|
|
|
|
- .replace("userId", String.valueOf(userId));
|
|
|
|
-
|
|
|
|
|
|
+ String reportUrl = endPointPOOptional.get().getServerCode().replace("userId", String.valueOf(userId));
|
|
taskVO.setWriteReportUrl(reportUrl);
|
|
taskVO.setWriteReportUrl(reportUrl);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -1622,6 +1617,10 @@ public class WebMediatorImpl implements ViewMediator {
|
|
|| (user.getRegionalManager() != null && user.getId().equals(project.getRegionalManagerId()))) {
|
|
|| (user.getRegionalManager() != null && user.getId().equals(project.getRegionalManagerId()))) {
|
|
if (task.getStatus() < CrowdTestTaskStatus.HAS_RECEIVED) {
|
|
if (task.getStatus() < CrowdTestTaskStatus.HAS_RECEIVED) {
|
|
taskOperationControl.setUpdate(true);
|
|
taskOperationControl.setUpdate(true);
|
|
|
|
+ // 具有配置项,需要在第三方进行填写报告
|
|
|
|
+ if(endPointPOOptional.isPresent()){
|
|
|
|
+ taskOperationControl.setWriteReport(true);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
else{
|
|
else{
|
|
if ((task.getParticipantHasCommittedCount() == task.getAcceptedCount() && task.getStatus() == CrowdTestTaskStatus.HAS_RECEIVED) || (task.getParticipantHasCommittedCount() == task.getParticipantCount() && task.getStatus() == CrowdTestTaskStatus.HAS_COMMITED)) {
|
|
if ((task.getParticipantHasCommittedCount() == task.getAcceptedCount() && task.getStatus() == CrowdTestTaskStatus.HAS_RECEIVED) || (task.getParticipantHasCommittedCount() == task.getParticipantCount() && task.getStatus() == CrowdTestTaskStatus.HAS_COMMITED)) {
|
|
@@ -1690,10 +1689,10 @@ public class WebMediatorImpl implements ViewMediator {
|
|
} else if (task.getDistributionType() == 2) {
|
|
} else if (task.getDistributionType() == 2) {
|
|
if (task.getStatus() == CrowdTestTaskStatus.HAS_RELEASED) {
|
|
if (task.getStatus() == CrowdTestTaskStatus.HAS_RELEASED) {
|
|
taskOperationControl.setReceive(true);
|
|
taskOperationControl.setReceive(true);
|
|
- // 项目发起者
|
|
|
|
- if (project.getUserId().equals(user.getId())) {
|
|
|
|
- taskOperationControl.setReceive(false);
|
|
|
|
- }
|
|
|
|
|
|
+// // 项目发起者
|
|
|
|
+// if (project.getUserId().equals(user.getId())) {
|
|
|
|
+// taskOperationControl.setReceive(false);
|
|
|
|
+// }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|