package com.dy.pmsOther.screen; import cn.hutool.json.JSONObject; import com.dy.common.aop.SsoPowerAop; import com.dy.common.webUtil.BaseResponse; import com.dy.common.webUtil.BaseResponseUtils; import com.dy.common.webUtil.QueryResultVo; import com.dy.pmsGlobal.aop.Log; import com.dy.pmsGlobal.pojoPr.PrProductionProcess; import com.dy.pmsGlobal.pojoSta.StaDeviceProductionLog; import jakarta.validation.Valid; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import java.util.List; import java.util.Map; /** * 大屏看板 */ @Slf4j @RestController @RequestMapping(path="screen") public class ScreenReportCtrl { private ScreenReportSv sv; @Autowired public void setSv(ScreenReportSv screenSv){ this.sv = screenSv; } @GetMapping(path = "getDeviceInfo") public BaseResponse> getDeviceInfo(String deviceNo) { log.info("DeviceReportCtl.getDeviceInfo():{}",deviceNo); Map result = sv.getDeviceInfo(deviceNo); return BaseResponseUtils.buildSuccess(result); } /** * 根据时间区间查询 所有过站记录 * @return */ @GetMapping(path="queryDeviceLog") @Log("查询生产记录") public BaseResponse>> queryDeviceLog(String startTime, String endTime){ List log = sv.queryDeviceLog(startTime,endTime); return BaseResponseUtils.buildSuccess(log); } /** * 任务看板 查询在产任务看板 * */ @GetMapping(path="queryPlanList") @Log("查询在产任务看板") public BaseResponse> queryPlanList(){ List list = sv.queryPlanList(); return BaseResponseUtils.buildSuccess(list); } /** * 任务看板 查询工站使用情况 * */ @GetMapping(path="queryWorkList") @Log("查询工站使用情况") public BaseResponse> queryWorkList(){ List list = sv.queryWorkList(); return BaseResponseUtils.buildSuccess(list); } /** * 任务看板 查询在产任务看板 * */ @GetMapping(path="queryTopError") @Log("查询top10不良") public BaseResponse> queryTopError(){ List list = sv.queryTopError(); return BaseResponseUtils.buildSuccess(list); } /** * 任务看板 查询在产任务看板 * */ @GetMapping(path="queryAttendUser") @Log("查询人员出勤率") public BaseResponse> queryAttendUser(){ List list = sv.queryAttendUser(); return BaseResponseUtils.buildSuccess(list); } /** * 任务看板 查询在产任务看板 * */ @GetMapping(path="queryOrderList") @Log("查询订单看板") public BaseResponse> queryOrderList(){ List list = sv.queryOrderList(); return BaseResponseUtils.buildSuccess(list); } }