|
@@ -217,7 +217,7 @@ public class ExamController extends ControllerSupport {
|
|
|
* @param name
|
|
|
* @return
|
|
|
*/
|
|
|
- @ApiOperation(value = "根据名称查询考试批次(包含有效)")
|
|
|
+ @ApiOperation(value = "根据名称查询考试批次")
|
|
|
@GetMapping("byName/{name}")
|
|
|
public ExamEntity getExamByName(@PathVariable String name) {
|
|
|
User accessUser = getAccessUser();
|
|
@@ -225,9 +225,6 @@ public class ExamController extends ControllerSupport {
|
|
|
if (null == one) {
|
|
|
throw new StatusException("E-001004", "考试不存在");
|
|
|
}
|
|
|
- if (!one.getEnable()) {
|
|
|
- throw new StatusException("E-001004", "考试被禁用");
|
|
|
- }
|
|
|
return one;
|
|
|
}
|
|
|
|
|
@@ -242,6 +239,7 @@ public class ExamController extends ControllerSupport {
|
|
|
@GetMapping("{examId}")
|
|
|
public ExamEntity getExamById(@PathVariable Long examId) {
|
|
|
ExamEntity one = examRepo.findOne(examId);
|
|
|
+ validateRootOrgIsolation(one.getRootOrgId());
|
|
|
return one;
|
|
|
}
|
|
|
|