|
|
|
@ -40,7 +40,7 @@ public class DataController {
|
|
|
|
|
@AuthToken
|
|
|
|
|
@ApiOperation("1、区域查询")
|
|
|
|
|
@PreAuthorize("hasAuthority('minio:upload')")
|
|
|
|
|
@RequestMapping(value = "/dataimport/getRefionInfo", method = {RequestMethod.POST})
|
|
|
|
|
@RequestMapping(value = "/dataimport/getRefionInfo", method = {RequestMethod.GET})
|
|
|
|
|
@ApiResponses({
|
|
|
|
|
@ApiResponse(code = 200, message = "成功"),
|
|
|
|
|
@ApiResponse(code = 401, message = "访问未经授权"),
|
|
|
|
@ -53,9 +53,9 @@ public class DataController {
|
|
|
|
|
try {
|
|
|
|
|
log.info("区域查询");
|
|
|
|
|
List<String> regionInfo = dataImportService.getRefionInfo();
|
|
|
|
|
return RetResponse.makeOKRsp(regionInfo);
|
|
|
|
|
}catch (ParamsException e){
|
|
|
|
|
return RetResponse.makeErrRsp("查询错误!"+e.getMessage());
|
|
|
|
|
}
|
|
|
|
|
return getRefionInfo();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|