|
@@ -327,7 +327,14 @@ public class ExamController extends ControllerSupport {
|
|
|
return saved;
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "按ID查询考试批次", notes = "ID查询")
|
|
|
+ /**
|
|
|
+ * 方法注释
|
|
|
+ *
|
|
|
+ * @author WANGWEI
|
|
|
+ * @param examId
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "查询考试批次所有属性")
|
|
|
@GetMapping("{examId}")
|
|
|
public Map<String, String> getFullExamProperties(@PathVariable Long examId) {
|
|
|
|
|
@@ -341,6 +348,24 @@ public class ExamController extends ControllerSupport {
|
|
|
return map;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 方法注释
|
|
|
+ *
|
|
|
+ * @author WANGWEI
|
|
|
+ * @param examId
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "考试批次所有属性")
|
|
|
+ @GetMapping("{examId}/{key}")
|
|
|
+ public String getExamProperty(@PathVariable Long examId, @PathVariable String key) {
|
|
|
+ ExamProperty ep = ExamProperty.valueOf(key);
|
|
|
+ ExamPropertyEntity one = examPropertyRepo.findByexamIdAndKeyId(examId, ep.getKeyId());
|
|
|
+ if (null == one) {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+ return one.getValue();
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 方法注释
|
|
|
*
|