|
@@ -186,7 +186,7 @@ public class StudentRegistrationController extends BaseController {
|
|
|
@PreAuthorize("@pcs.hasPermissions('studentRegistration/del')")
|
|
|
public HttpResponseResult<Boolean> del(Long id) {
|
|
|
StudentRegistration studentRegistration = studentRegistrationService.get(id);
|
|
|
- if(studentRegistration == null){
|
|
|
+ if (studentRegistration == null) {
|
|
|
return failed("删除的报名信息不存在");
|
|
|
}
|
|
|
return succeed(studentRegistrationService.delReg(id));
|
|
@@ -197,7 +197,16 @@ public class StudentRegistrationController extends BaseController {
|
|
|
@PostMapping("/batchDel")
|
|
|
@PreAuthorize("@pcs.hasPermissions('studentRegistration/batchDel')")
|
|
|
public HttpResponseResult<Boolean> batchDel(@RequestBody DelRegisterDto delRegisterDto) {
|
|
|
- return succeed(studentRegistrationService.batchDelRegs(delRegisterDto.getMusicGroupId(),delRegisterDto.getUserIds()));
|
|
|
+ return succeed(studentRegistrationService.batchDelRegs(delRegisterDto.getMusicGroupId(), delRegisterDto.getUserIds()));
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ @ApiOperation(value = "获取乐团学生的退费信息")
|
|
|
+ @GetMapping("/getMusicGroupStuReBack")
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('studentRegistration/getMusicGroupStuReBack')")
|
|
|
+ @ApiImplicitParams({@ApiImplicitParam(name = "musicGroupId", value = "乐团编号", required = true, dataType = "String")})
|
|
|
+ public HttpResponseResult getMusicGroupStuReBack(String musicGroupId) {
|
|
|
+ return succeed(studentRegistrationService.getMusicGroupStuReBack(musicGroupId));
|
|
|
}
|
|
|
|
|
|
}
|