|
@@ -492,7 +492,7 @@ public class WebMediatorImpl implements ViewMediator {
|
|
|
// 测试类型的转换
|
|
|
Optional<TestTypePO> testTypePO = testTypeDao.findByCode(task.getType());
|
|
|
if (!testTypePO.isPresent()) {
|
|
|
- throw new HttpBadRequestException("不存在此测试类型");
|
|
|
+ throw new HttpBadRequestException("请选择测试类型");
|
|
|
}
|
|
|
task.setType(testTypePO.get().getName());
|
|
|
return task;
|
|
@@ -557,7 +557,7 @@ public class WebMediatorImpl implements ViewMediator {
|
|
|
if(applicationTypePO.isPresent()){
|
|
|
projectVO.setPlatform(applicationTypePO.get().getName());
|
|
|
}else{
|
|
|
- throw new HttpBadRequestException("不存在此应用类型");
|
|
|
+ throw new HttpBadRequestException("请选择应用类型");
|
|
|
}
|
|
|
|
|
|
// 领域类型值的转换
|
|
@@ -565,7 +565,7 @@ public class WebMediatorImpl implements ViewMediator {
|
|
|
if(fieldPO.isPresent()){
|
|
|
projectVO.setField(fieldPO.get().getName());
|
|
|
}else{
|
|
|
- throw new HttpBadRequestException("不存在此领域类型");
|
|
|
+ throw new HttpBadRequestException("请选择领域类型");
|
|
|
}
|
|
|
|
|
|
// 测试类型的转换
|
|
@@ -574,7 +574,7 @@ public class WebMediatorImpl implements ViewMediator {
|
|
|
if (testTypePO.isPresent()) {
|
|
|
return testTypePO.get().getName();
|
|
|
} else {
|
|
|
- throw new HttpBadRequestException("不存在此测试类型");
|
|
|
+ throw new HttpBadRequestException("请选择测试类型");
|
|
|
}
|
|
|
}).collect(Collectors.toList());
|
|
|
projectVO.setType(testStringList);
|
|
@@ -662,7 +662,7 @@ public class WebMediatorImpl implements ViewMediator {
|
|
|
// 测试类型的转换
|
|
|
Optional<TestTypePO> testTypePO = testTypeDao.findByCode(taskVO.getServiceType());
|
|
|
if (!testTypePO.isPresent()) {
|
|
|
- throw new HttpBadRequestException("不存在此测试类型");
|
|
|
+ throw new HttpBadRequestException("请选择测试类型");
|
|
|
}
|
|
|
taskVO.setServiceType(testTypePO.get().getName());
|
|
|
|