|
@@ -10,7 +10,7 @@ import com.ruoyi.system.service.ReportDataService;
|
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
@@ -33,40 +33,40 @@ public class ReportDataController {
|
|
|
ReportDataService reportDataService;
|
|
ReportDataService reportDataService;
|
|
|
|
|
|
|
|
//小车位置
|
|
//小车位置
|
|
|
- @PostMapping(value = "/carLocation")
|
|
|
|
|
|
|
+ @GetMapping(value = "/carLocation")
|
|
|
@ApiOperation("获取小车实时位置")
|
|
@ApiOperation("获取小车实时位置")
|
|
|
public R<CarPosition> carLocation(Long siteId) {
|
|
public R<CarPosition> carLocation(Long siteId) {
|
|
|
return R.ok(reportDataService.carLocation(siteId));
|
|
return R.ok(reportDataService.carLocation(siteId));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//小车信息
|
|
//小车信息
|
|
|
- @PostMapping(value = "/carInfo")
|
|
|
|
|
|
|
+ @GetMapping(value = "/carInfo")
|
|
|
@ApiOperation("获取小车实时信息")
|
|
@ApiOperation("获取小车实时信息")
|
|
|
public R<HeartBeat> carInfo(Long siteId) {
|
|
public R<HeartBeat> carInfo(Long siteId) {
|
|
|
return R.ok(reportDataService.carInfo(siteId));
|
|
return R.ok(reportDataService.carInfo(siteId));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//站点实时信息
|
|
//站点实时信息
|
|
|
- @PostMapping(value = "/siteRealTime")
|
|
|
|
|
|
|
+ @GetMapping(value = "/siteRealTime")
|
|
|
@ApiOperation("获取站点实时信息")
|
|
@ApiOperation("获取站点实时信息")
|
|
|
public R<SiteRealTimeDTO> siteRealTime(Long siteId) {
|
|
public R<SiteRealTimeDTO> siteRealTime(Long siteId) {
|
|
|
return R.ok(reportDataService.siteRealTime(siteId));
|
|
return R.ok(reportDataService.siteRealTime(siteId));
|
|
|
}
|
|
}
|
|
|
//即时信息
|
|
//即时信息
|
|
|
- @PostMapping(value = "/taskNotice")
|
|
|
|
|
|
|
+ @GetMapping(value = "/taskNotice")
|
|
|
@ApiOperation("获取任务通知(及时消息)")
|
|
@ApiOperation("获取任务通知(及时消息)")
|
|
|
public R<Page<TaskNotice>> taskNotice(Long siteId, Long page, Long size) {
|
|
public R<Page<TaskNotice>> taskNotice(Long siteId, Long page, Long size) {
|
|
|
return R.ok(reportDataService.taskNotice(siteId,page,size));
|
|
return R.ok(reportDataService.taskNotice(siteId,page,size));
|
|
|
}
|
|
}
|
|
|
//当前水位
|
|
//当前水位
|
|
|
- @PostMapping(value = "/getWaterLevel")
|
|
|
|
|
|
|
+ @GetMapping(value = "/getWaterLevel")
|
|
|
@ApiOperation("获取实时水位")
|
|
@ApiOperation("获取实时水位")
|
|
|
public R<WaterLevel> getWaterLevel(Long siteId) {
|
|
public R<WaterLevel> getWaterLevel(Long siteId) {
|
|
|
return R.ok(reportDataService.getWaterLevel(siteId));
|
|
return R.ok(reportDataService.getWaterLevel(siteId));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//垂线点对应流量图
|
|
//垂线点对应流量图
|
|
|
- @PostMapping(value = "/getMeasureLine")
|
|
|
|
|
|
|
+ @GetMapping(value = "/getMeasureLine")
|
|
|
@ApiOperation("获取垂线点对应流量图")
|
|
@ApiOperation("获取垂线点对应流量图")
|
|
|
public R<List<MeasureUpload>> getMeasureLine(Long siteId) {
|
|
public R<List<MeasureUpload>> getMeasureLine(Long siteId) {
|
|
|
return R.ok(reportDataService.getMeasureLine(siteId));
|
|
return R.ok(reportDataService.getMeasureLine(siteId));
|