|
@ -236,6 +236,19 @@ public class PatientCourseEndpoint extends EnvelopRestEndpoint {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@GetMapping("isEnrollment")
|
|
|
@ApiOperation(value = "是否已经报名")
|
|
|
public Envelop isEnrollment(@ApiParam(name = "patient", value = "居民id", defaultValue = "3ae2673512154d5280d1dcf5ffa5626d")
|
|
|
@RequestParam(value = "patient", required = true) String patient,
|
|
|
@ApiParam(name = "recruitStudentsId", value = "招生id", defaultValue = "1")
|
|
|
@RequestParam(value = "recruitStudentsId", required = true) String recruitStudentsId){
|
|
|
try {
|
|
|
return success("查询成功",courseService.isEnrollment(patient,recruitStudentsId));
|
|
|
} catch (Exception e) {
|
|
|
return failedException(e);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@PostMapping("enrollment")
|
|
|
@ApiOperation(value = "招生报名")
|
|
|
public Envelop enrollment(@ApiParam(name = "patient", value = "居民id", defaultValue = "3ae2673512154d5280d1dcf5ffa5626d")
|