| | |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import jakarta.annotation.Resource; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @GetMapping("/summary") |
| | | @Operation(summary = "设备统计汇总(台账/维修/保养/类型分布)") |
| | | @PreAuthorize("@ss.hasPermission('mes:dv-machinery:query')") |
| | | public CommonResult<MesDvStatisticsRespVO> getSummary() { |
| | | MesDvStatisticsRespVO vo = new MesDvStatisticsRespVO(); |
| | | |
| | |
| | | |
| | | @GetMapping("/oee") |
| | | @Operation(summary = "设备 OEE 统计(稼动率×性能开动率×良品率)") |
| | | @PreAuthorize("@ss.hasPermission('mes:dv-machinery:query')") |
| | | public CommonResult<MesDvOeeRespVO> getOee( |
| | | @RequestParam(value = "startTime", required = false) |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") LocalDateTime startTime, |