¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mdc.controller; |
| | | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.modules.mdc.entity.MdcEquipment; |
| | | import org.jeecg.modules.mdc.service.IMdcBoardService; |
| | | import org.jeecg.modules.system.entity.MdcProduction; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @Author: Lius |
| | | * @CreateTime: 2025-05-06 |
| | | * @Description: çæ¿æ¥å£ |
| | | */ |
| | | @Slf4j |
| | | @Api(tags = "MDCçæ¿æ¥å£") |
| | | @RestController |
| | | @RequestMapping("/mdc/board") |
| | | public class MdcBoardController { |
| | | |
| | | @Resource |
| | | private IMdcBoardService mdcBoardService; |
| | | |
| | | @ApiOperation(value = "MDCçæ¿æ¥å£-设å¤è¿è¡ç¶æç»è®¡", notes = "MDCçæ¿æ¥å£-设å¤è¿è¡ç¶æç»è®¡") |
| | | @GetMapping("/equipmentStatusStatistics") |
| | | public Result<?> equipmentStatusStatistics(String productionId) { |
| | | Map<String, Object> result = mdcBoardService.equipmentStatusStatistics(productionId); |
| | | return Result.OK(result); |
| | | } |
| | | |
| | | @ApiOperation(value = "MDCçæ¿æ¥å£-è·å车é´åç»", notes = "MDCçæ¿æ¥å£-è·å车é´åç»") |
| | | @GetMapping("/proList") |
| | | public Result<?> proList(String productionId) { |
| | | List<MdcProduction> result = mdcBoardService.proList(productionId); |
| | | return Result.OK(result); |
| | | } |
| | | |
| | | @ApiOperation(value = "MDCçæ¿æ¥å£-çåæèµ°å¿å¾", notes = "MDCçæ¿æ¥å£-çåæèµ°å¿å¾") |
| | | @GetMapping("/rateAnalysisTrend") |
| | | public Result<?> rateAnalysisTrend(String productionId) { |
| | | Map<String, Object> result = mdcBoardService.rateAnalysisTrend(productionId); |
| | | return Result.OK(result); |
| | | } |
| | | |
| | | @ApiOperation(value = "MDCçæ¿æ¥å£-设å¤å表", notes = "MDCçæ¿æ¥å£-设å¤å表") |
| | | @GetMapping("/equipmentList") |
| | | public Result<?> equipmentList(@RequestParam(name = "productionId", required = true) String productionId) { |
| | | List<MdcEquipment> result = mdcBoardService.equipmentList(productionId); |
| | | return Result.OK(result); |
| | | } |
| | | |
| | | @ApiOperation(value = "MDCçæ¿æ¥å£-è®¾å¤æ¥çåæ", notes = "MDCçæ¿æ¥å£-è®¾å¤æ¥çåæ") |
| | | @GetMapping("/rateAnalysisTrendDay") |
| | | public Result<?> rateAnalysisTrendDay(@RequestParam(name = "equipmentId", required = true) String equipmentId) { |
| | | Map<String, Object> result = mdcBoardService.rateAnalysisTrendDay(equipmentId); |
| | | return Result.OK(result); |
| | | } |
| | | |
| | | @ApiOperation(value = "MDCçæ¿æ¥å£-è®¾å¤æçåæåæ ¼ç", notes = "MDCçæ¿æ¥å£-è®¾å¤æçåæåæ ¼ç") |
| | | @GetMapping("/rateAnalysisTrendMonth") |
| | | public Result<?> rateAnalysisTrendMonth(@RequestParam(name = "equipmentId", required = true) String equipmentId) { |
| | | Map<String, Object> result = mdcBoardService.rateAnalysisTrendMonth(equipmentId); |
| | | return Result.OK(result); |
| | | } |
| | | |
| | | @ApiOperation(value = "MDCçæ¿æ¥å£-设å¤è¿è¡ç¶æåè¿è¡åæ°ä¿¡æ¯", notes = "MDCçæ¿æ¥å£-设å¤è¿è¡ç¶æåè¿è¡åæ°ä¿¡æ¯") |
| | | @GetMapping("/equipmentRealTimeDetail") |
| | | public Result<?> equipmentRealTimeDetail(@RequestParam(name = "equipmentId", required = true) String equipmentId) { |
| | | Map<String, Object> result = mdcBoardService.rateAnalysisTrendMonth(equipmentId); |
| | | return Result.OK(result); |
| | | } |
| | | |
| | | // @ApiOperation(value = "MDCé¦é¡µæ¥å£-设å¤äº§ååæ ¼ç", notes = "MDCé¦é¡µæ¥å£-设å¤äº§ååæ ¼ç") |
| | | // @GetMapping("/passRate") |
| | | // public Result<?> passRate(@RequestParam(name = "equipmentId", required = true) String equipmentId) { |
| | | // Map<String, Object> result = mdcBoardService.passRate(equipmentId); |
| | | // return Result.OK(result); |
| | | // } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |