|
|
@ -38,7 +38,7 @@ public class EXAController { |
|
|
|
|
|
|
|
|
@GetMapping("/page") |
|
|
@GetMapping("/page") |
|
|
@Operation(summary = "获取测点分页列表") |
|
|
@Operation(summary = "获取测点分页列表") |
|
|
@PreAuthorize("@ss.hasPermission('alert:exa:query')") |
|
|
// @PreAuthorize("@ss.hasPermission('alert:exa:query')")
|
|
|
public CommonResult<PageResult<EXAHttp>> getEXAList(EXAPageReqVO reqVO) throws IOException, URISyntaxException { |
|
|
public CommonResult<PageResult<EXAHttp>> getEXAList(EXAPageReqVO reqVO) throws IOException, URISyntaxException { |
|
|
PageResult<EXAHttp> pageResult = exaService.getEXAPage(reqVO); |
|
|
PageResult<EXAHttp> pageResult = exaService.getEXAPage(reqVO); |
|
|
return success(BeanUtils.toBean(pageResult, EXAHttp.class)); |
|
|
return success(BeanUtils.toBean(pageResult, EXAHttp.class)); |
|
|
@ -46,7 +46,7 @@ public class EXAController { |
|
|
|
|
|
|
|
|
@GetMapping("/nowList") |
|
|
@GetMapping("/nowList") |
|
|
@Operation(summary = "获取带实时值的列表") |
|
|
@Operation(summary = "获取带实时值的列表") |
|
|
@PreAuthorize("@ss.hasPermission('alert:exa:query')") |
|
|
// @PreAuthorize("@ss.hasPermission('alert:exa:query')")
|
|
|
public CommonResult<List<EXAHttp>> getNowDataList(List<EXAHttp> list) throws IOException, URISyntaxException { |
|
|
public CommonResult<List<EXAHttp>> getNowDataList(List<EXAHttp> list) throws IOException, URISyntaxException { |
|
|
List<EXAHttp> nowList=exaService.getEXAListNow(list); |
|
|
List<EXAHttp> nowList=exaService.getEXAListNow(list); |
|
|
return success(nowList); |
|
|
return success(nowList); |
|
|
@ -54,7 +54,7 @@ public class EXAController { |
|
|
|
|
|
|
|
|
@PostMapping("/nowListReal") |
|
|
@PostMapping("/nowListReal") |
|
|
@Operation(summary = "获取带实时值的列表") |
|
|
@Operation(summary = "获取带实时值的列表") |
|
|
@PreAuthorize("@ss.hasPermission('alert:exa:query')") |
|
|
// @PreAuthorize("@ss.hasPermission('alert:exa:query')")
|
|
|
public CommonResult<EXAResult> getNowList(@RequestBody EXANowListReqVO list) throws IOException, URISyntaxException { |
|
|
public CommonResult<EXAResult> getNowList(@RequestBody EXANowListReqVO list) throws IOException, URISyntaxException { |
|
|
EXAResult nowList=exaService.getEXAListNowReal(list); |
|
|
EXAResult nowList=exaService.getEXAListNowReal(list); |
|
|
return success(nowList); |
|
|
return success(nowList); |
|
|
@ -63,7 +63,7 @@ public class EXAController { |
|
|
|
|
|
|
|
|
@GetMapping("/now") |
|
|
@GetMapping("/now") |
|
|
@Operation(summary = "根据点号获取测点实时值-单点或多点") |
|
|
@Operation(summary = "根据点号获取测点实时值-单点或多点") |
|
|
@PreAuthorize("@ss.hasPermission('alert:exa:query')") |
|
|
// @PreAuthorize("@ss.hasPermission('alert:exa:query')")
|
|
|
public CommonResult<String> getNowData(String itemName) throws IOException, URISyntaxException { |
|
|
public CommonResult<String> getNowData(String itemName) throws IOException, URISyntaxException { |
|
|
String nowData=exaService.getEXANow(itemName); |
|
|
String nowData=exaService.getEXANow(itemName); |
|
|
return success(nowData); |
|
|
return success(nowData); |
|
|
@ -72,7 +72,7 @@ public class EXAController { |
|
|
|
|
|
|
|
|
@GetMapping("/historys") |
|
|
@GetMapping("/historys") |
|
|
@Operation(summary = "获取点号历史-支持多点(点号之间用逗号分割)") |
|
|
@Operation(summary = "获取点号历史-支持多点(点号之间用逗号分割)") |
|
|
@PreAuthorize("@ss.hasPermission('alert:exa:query')") |
|
|
// @PreAuthorize("@ss.hasPermission('alert:exa:query')")
|
|
|
public CommonResult<List<List<List<Double>>>> getEXAHistorys(EXAHistoryReqVO exaHistoryReqVo) { |
|
|
public CommonResult<List<List<List<Double>>>> getEXAHistorys(EXAHistoryReqVO exaHistoryReqVo) { |
|
|
List<List<List<Double>>> historyLists=exaService.getEXAHistorys(exaHistoryReqVo); |
|
|
List<List<List<Double>>> historyLists=exaService.getEXAHistorys(exaHistoryReqVo); |
|
|
return success(historyLists); |
|
|
return success(historyLists); |
|
|
@ -80,7 +80,7 @@ public class EXAController { |
|
|
|
|
|
|
|
|
@PostMapping("/create") |
|
|
@PostMapping("/create") |
|
|
@Operation(summary = "新增EXA点号") |
|
|
@Operation(summary = "新增EXA点号") |
|
|
@PreAuthorize("@ss.hasPermission('alert:exa:create')") |
|
|
// @PreAuthorize("@ss.hasPermission('alert:exa:create')")
|
|
|
public CommonResult<String> createPoint(@Valid @RequestBody Point pointVo) throws IOException { |
|
|
public CommonResult<String> createPoint(@Valid @RequestBody Point pointVo) throws IOException { |
|
|
String id = exaService.createPoint(pointVo); |
|
|
String id = exaService.createPoint(pointVo); |
|
|
return success(id); |
|
|
return success(id); |
|
|
@ -88,7 +88,7 @@ public class EXAController { |
|
|
|
|
|
|
|
|
@GetMapping("/group") |
|
|
@GetMapping("/group") |
|
|
@Operation(summary = "获取EXA所有组名") |
|
|
@Operation(summary = "获取EXA所有组名") |
|
|
@PreAuthorize("@ss.hasPermission('alert:exa:query')") |
|
|
// @PreAuthorize("@ss.hasPermission('alert:exa:query')")
|
|
|
public CommonResult<List<List<String>>> getEXAGroupInfo() throws URISyntaxException, IOException { |
|
|
public CommonResult<List<List<String>>> getEXAGroupInfo() throws URISyntaxException, IOException { |
|
|
List<List<String>> groupList=exaService.getEXAGroupInfo(); |
|
|
List<List<String>> groupList=exaService.getEXAGroupInfo(); |
|
|
return success(groupList); |
|
|
return success(groupList); |
|
|
@ -97,7 +97,7 @@ public class EXAController { |
|
|
@DeleteMapping("/delete") |
|
|
@DeleteMapping("/delete") |
|
|
@Operation(summary = "删除点号") |
|
|
@Operation(summary = "删除点号") |
|
|
@Parameter(name = "ItemName", description = "点号", required = true, example = "1024") |
|
|
@Parameter(name = "ItemName", description = "点号", required = true, example = "1024") |
|
|
@PreAuthorize("@ss.hasPermission('alert:exa:delete')") |
|
|
// @PreAuthorize("@ss.hasPermission('alert:exa:delete')")
|
|
|
public CommonResult<Boolean> deleteUser(@RequestParam("ItemName") String ItemName) { |
|
|
public CommonResult<Boolean> deleteUser(@RequestParam("ItemName") String ItemName) { |
|
|
String result= exaService.deletePoint(ItemName); |
|
|
String result= exaService.deletePoint(ItemName); |
|
|
|
|
|
|
|
|
@ -129,7 +129,7 @@ public class EXAController { |
|
|
@Parameter(name = "file", description = "Excel 文件", required = true), |
|
|
@Parameter(name = "file", description = "Excel 文件", required = true), |
|
|
@Parameter(name = "updateSupport", description = "是否支持更新,默认为 false", example = "true") |
|
|
@Parameter(name = "updateSupport", description = "是否支持更新,默认为 false", example = "true") |
|
|
}) |
|
|
}) |
|
|
@PreAuthorize("@ss.hasPermission('system:user:import')") |
|
|
// @PreAuthorize("@ss.hasPermission('system:user:import')")
|
|
|
public CommonResult<EXAPointImportRespVO> importExcel(@RequestParam("file") MultipartFile file, |
|
|
public CommonResult<EXAPointImportRespVO> importExcel(@RequestParam("file") MultipartFile file, |
|
|
@RequestParam(value = "updateSupport", required = false, defaultValue = "false") Boolean updateSupport) throws Exception { |
|
|
@RequestParam(value = "updateSupport", required = false, defaultValue = "false") Boolean updateSupport) throws Exception { |
|
|
System.out.println(file.getInputStream()); |
|
|
System.out.println(file.getInputStream()); |
|
|
|