|
@@ -11,7 +11,6 @@ import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiImplicitParam;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
-import org.apache.ibatis.annotations.Param;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
@@ -41,7 +40,7 @@ public class ExamLocationController extends BaseController {
|
|
|
|
|
|
@ApiOperation("获取所在机构所有考点")
|
|
|
@GetMapping(value = "/getTenantAllLocations")
|
|
|
- public HttpResponseResult<List<ExamLocation>> getTenantAllLocations(@Param("tenantId") String tenantId){
|
|
|
+ public HttpResponseResult<List<ExamLocation>> getTenantAllLocations(){
|
|
|
return succeed(examLocationService.getTenantAllLocations(TenantContextHolder.getTenantId()));
|
|
|
}
|
|
|
|
|
@@ -56,6 +55,7 @@ public class ExamLocationController extends BaseController {
|
|
|
@PostMapping(value = "/add")
|
|
|
public HttpResponseResult add(@RequestBody ExamLocation examLocation) {
|
|
|
examLocation.setTenantId(TenantContextHolder.getTenantId());
|
|
|
+ examLocation.setIsAvailable(true);
|
|
|
examLocationService.insert(examLocation);
|
|
|
return succeed();
|
|
|
}
|