|
@@ -3,10 +3,8 @@ package com.keao.edu.user.controller;
|
|
|
import com.keao.edu.common.controller.BaseController;
|
|
|
import com.keao.edu.common.entity.HttpResponseResult;
|
|
|
import com.keao.edu.common.page.PageInfo;
|
|
|
-import com.keao.edu.common.page.QueryInfo;
|
|
|
import com.keao.edu.common.tenant.TenantContextHolder;
|
|
|
import com.keao.edu.user.entity.ExamLocation;
|
|
|
-import com.keao.edu.user.entity.ExamSong;
|
|
|
import com.keao.edu.user.page.ExamLocationQueryInfo;
|
|
|
import com.keao.edu.user.service.ExamLocationService;
|
|
|
import io.swagger.annotations.Api;
|
|
@@ -44,7 +42,7 @@ public class ExamLocationController extends BaseController {
|
|
|
|
|
|
@ApiOperation("新增考点")
|
|
|
@PostMapping(value = "/add")
|
|
|
- public HttpResponseResult add(ExamLocation examLocation) {
|
|
|
+ public HttpResponseResult add(@RequestBody ExamLocation examLocation) {
|
|
|
examLocation.setTenantId(TenantContextHolder.getTenantId().toString());
|
|
|
examLocationService.insert(examLocation);
|
|
|
return succeed();
|
|
@@ -52,7 +50,7 @@ public class ExamLocationController extends BaseController {
|
|
|
|
|
|
@ApiOperation("更新考点")
|
|
|
@PostMapping(value = "/update")
|
|
|
- public HttpResponseResult update(ExamLocation examLocation) {
|
|
|
+ public HttpResponseResult update(@RequestBody ExamLocation examLocation) {
|
|
|
examLocation.setUpdateTime(new Date());
|
|
|
examLocationService.update(examLocation);
|
|
|
return succeed();
|