|
@@ -87,7 +87,7 @@ public class VoluntaryController extends BaseController {
|
|
|
|
|
|
|
|
@GetMapping("voluntary/getVoluntaryList")
|
|
@GetMapping("voluntary/getVoluntaryList")
|
|
|
@ApiOperation("查询志愿列表")
|
|
@ApiOperation("查询志愿列表")
|
|
|
- public R<List<VoluntaryDto.VoluntaryRecord>> voluntaryList(@ApiParam @RequestParam Integer pageNum, @ApiParam @RequestParam Integer pageSize) { // 我的志愿表 // 后台填充快照缺省
|
|
|
|
|
|
|
+ public R<List<VoluntaryDto.VoluntaryRecord>> voluntaryList() { // 我的志愿表 // 后台填充快照缺省
|
|
|
List<VoluntaryDto.VoluntaryRecord> list = voluntaryService.getVoluntaryList2();
|
|
List<VoluntaryDto.VoluntaryRecord> list = voluntaryService.getVoluntaryList2();
|
|
|
return R.ok(list);
|
|
return R.ok(list);
|
|
|
}
|
|
}
|
|
@@ -100,14 +100,14 @@ public class VoluntaryController extends BaseController {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Log(title = "志愿删除院校", businessType = BusinessType.DELETE)
|
|
@Log(title = "志愿删除院校", businessType = BusinessType.DELETE)
|
|
|
- @DeleteMapping("voluntary/removeVoluntaryByUniversity/{universityId}")
|
|
|
|
|
|
|
+ @PostMapping("voluntary/removeVoluntaryByUniversity/{universityId}")
|
|
|
public AjaxResult removeVoluntaryByUniversity(@PathVariable Long universityId)
|
|
public AjaxResult removeVoluntaryByUniversity(@PathVariable Long universityId)
|
|
|
{
|
|
{
|
|
|
return toAjax(voluntaryService.removeVoluntaryByUniversity(SecurityUtils.getLoginUser().getUserId(), universityId));
|
|
return toAjax(voluntaryService.removeVoluntaryByUniversity(SecurityUtils.getLoginUser().getUserId(), universityId));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Log(title = "志愿删除专业", businessType = BusinessType.DELETE)
|
|
@Log(title = "志愿删除专业", businessType = BusinessType.DELETE)
|
|
|
- @DeleteMapping("voluntary/removeVoluntaryByMajor/{majorId}")
|
|
|
|
|
|
|
+ @PostMapping("voluntary/removeVoluntaryByMajor/{majorId}")
|
|
|
public AjaxResult removeVoluntaryByMajor(@PathVariable Long majorId)
|
|
public AjaxResult removeVoluntaryByMajor(@PathVariable Long majorId)
|
|
|
{
|
|
{
|
|
|
return toAjax(voluntaryService.removeVoluntaryByMajor(SecurityUtils.getLoginUser().getUserId(), majorId));
|
|
return toAjax(voluntaryService.removeVoluntaryByMajor(SecurityUtils.getLoginUser().getUserId(), majorId));
|