|
@@ -218,8 +218,8 @@ public class ExamController extends ControllerSupport {
|
|
|
* @return
|
|
|
*/
|
|
|
@ApiOperation(value = "根据名称查询考试批次(包含有效)")
|
|
|
- @GetMapping("{name}")
|
|
|
- public ExamEntity getEnableExamByName(@PathVariable String name) {
|
|
|
+ @GetMapping("byName/{name}")
|
|
|
+ public ExamEntity getExamByName(@PathVariable String name) {
|
|
|
User accessUser = getAccessUser();
|
|
|
ExamEntity one = examRepo.findByNameAndRootOrgId(name, accessUser.getRootOrgId());
|
|
|
if (null == one) {
|