|
@@ -61,7 +61,7 @@ public class ApplyTaskController extends BaseController {
|
|
|
@ApiOperation(value = "预约时段新增/编辑")
|
|
|
@PostMapping(value = "/time/save")
|
|
|
public void timeSave(@ApiParam("预约任务ID") @RequestParam Long id,
|
|
|
- @ApiParam("预约时段json") @RequestParam String timeJson) {
|
|
|
+ @ApiParam("预约时段json") @RequestBody String timeJson) {
|
|
|
List<TimePeriodReq> timeList = JsonHelper.toList(timeJson, TimePeriodReq.class);
|
|
|
if (timeList.isEmpty())
|
|
|
throw new StatusException("请填写时段");
|
|
@@ -71,7 +71,7 @@ public class ApplyTaskController extends BaseController {
|
|
|
|
|
|
@ApiOperation(value = "考试说明新增/编辑")
|
|
|
@PostMapping(value = "/notice/save")
|
|
|
- public void noticesave(@ApiParam("预约任务ID") @RequestParam Long id, @ApiParam("考试说明") @RequestParam String notice) {
|
|
|
+ public void noticesave(@ApiParam("预约任务ID") @RequestParam Long id, @ApiParam("考试说明") @RequestBody String notice) {
|
|
|
LoginUser user = this.curLoginUser();
|
|
|
applyTaskService.saveNotice(user.getId(), id, notice);
|
|
|
}
|