Lius
2024-09-27 435c2e83b4caefee5676fedfd7a27d7b0362693d
lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/controller/MdcOverallEquipmentEfficiencyController.java
@@ -13,6 +13,8 @@
import org.jeecg.modules.mdc.entity.MdcOverallEquipmentEfficiency;
import org.jeecg.modules.mdc.service.IMdcOverallEquipmentEfficiencyService;
import org.jeecg.modules.mdc.vo.MdcOverallEquipmentEfficiencyVo;
import org.jeecg.modules.mdc.vo.OeeStatisticsChartVo;
import org.jeecg.modules.mdc.vo.OeeStatisticsVo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
@@ -20,6 +22,7 @@
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
/**
 * @Description: OEE设备综合效率表
@@ -58,5 +61,25 @@
        return Result.OK(pageList);
    }
    /**
     *
     * @return
     */
    @AutoLog(value = "OEE设备综合效率表-oee统计")
    @ApiOperation(value = "OEE设备综合效率表-oee统计", notes = "OEE设备综合效率表-oee统计")
    @GetMapping("/oeeStatisticsList")
    public Result oeeStatisticsList(String date) {
        List<OeeStatisticsVo> result = mdcOverallEquipmentEfficiencyService.oeeStatisticsList(date);
        return Result.OK(result);
    }
    @AutoLog(value = "OEE设备综合效率表-oee统计柱状图")
    @ApiOperation(value = "OEE设备综合效率表-oee统计柱状图", notes = "OEE设备综合效率表-oee统计柱状图")
    @GetMapping("/oeeStatisticsChart")
    public Result oeeStatisticsChart(String date, String equipmentType) {
        List<OeeStatisticsChartVo> result = mdcOverallEquipmentEfficiencyService.oeeStatisticsChart(date, equipmentType);
        return Result.OK(result);
    }
}