| | |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.List; |
| | | import java.time.LocalDateTime; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success; |
| | | |
| | |
| | | @Resource |
| | | private MesCollectQueryService queryService; |
| | | |
| | | @GetMapping("/offline/intervals") |
| | | @Operation(summary = "查询数采离线停机区间") |
| | | @PreAuthorize("@ss.hasPermission('mes:collect:query')") |
| | | public CommonResult<MesCollectOfflineResultRespVO> getOfflineIntervals( |
| | | @RequestParam("deviceCode") String deviceCode, |
| | | @RequestParam("startTime") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") LocalDateTime startTime, |
| | | @RequestParam("endTime") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") LocalDateTime endTime) { |
| | | return success(queryService.getOfflineIntervals(deviceCode, startTime, endTime)); |
| | | } |
| | | |
| | | @GetMapping("/device/list") |
| | | @Operation(summary = "获取数采设备状态列表") |
| | | @PreAuthorize("@ss.hasPermission('mes:collect:query')") |