| | |
| | | import cn.iocoder.yudao.framework.common.pojo.CommonResult; |
| | | import cn.iocoder.yudao.framework.common.pojo.PageResult; |
| | | import cn.iocoder.yudao.framework.common.util.object.BeanUtils; |
| | | import cn.iocoder.yudao.module.mes.controller.admin.dv.telemetry.vo.MesDvTelemetryCheckSummaryRespVO; |
| | | import cn.iocoder.yudao.module.mes.controller.admin.dv.telemetry.vo.MesDvTelemetryDeviceRespVO; |
| | | import cn.iocoder.yudao.module.mes.controller.admin.dv.telemetry.vo.MesDvTelemetryLatestReqVO; |
| | | import cn.iocoder.yudao.module.mes.controller.admin.dv.telemetry.vo.MesDvTelemetryPageReqVO; |
| | |
| | | return success(telemetryService.getDeviceList()); |
| | | } |
| | | |
| | | @GetMapping("/check") |
| | | @Operation(summary = "供电参数比对校验明细(各设备最新参数 vs 标准值)") |
| | | @PreAuthorize("@ss.hasPermission('mes:dv-telemetry:query')") |
| | | public CommonResult<List<MesDvTelemetryRespVO>> getCheckList(MesDvTelemetryLatestReqVO reqVO) { |
| | | List<MesDvTelemetryDO> list = telemetryService.getLatestTelemetry(reqVO); |
| | | return success(BeanUtils.toBean(list, MesDvTelemetryRespVO.class)); |
| | | } |
| | | |
| | | @GetMapping("/check-summary") |
| | | @Operation(summary = "供电参数比对校验统计(按设备聚合异常率)") |
| | | @PreAuthorize("@ss.hasPermission('mes:dv-telemetry:query')") |
| | | public CommonResult<List<MesDvTelemetryCheckSummaryRespVO>> getCheckSummary(MesDvTelemetryLatestReqVO reqVO) { |
| | | return success(telemetryService.getCheckSummary(reqVO)); |
| | | } |
| | | |
| | | } |