Joburgess 5 năm trước cách đây
mục cha
commit
4e2ae563af

+ 2 - 4
edu-user/edu-user-server/src/main/java/com/keao/edu/user/controller/ExamLocationController.java

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