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<Map<String, Object>> getDeviceInfo(String deviceNo) {
|
log.info("DeviceReportCtl.getDeviceInfo():{}",deviceNo);
|
Map<String, Object> result = sv.getDeviceInfo(deviceNo);
|
return BaseResponseUtils.buildSuccess(null);
|
}
|
/**
|
* 根据时间区间查询 所有过站记录
|
* @return
|
*/
|
@GetMapping(path="queryDeviceLog")
|
@Log("查询生产记录")
|
public BaseResponse<List<Map<String,String>>> queryDeviceLog(String startTime, String endTime){
|
List<StaDeviceProductionLog> log = sv.queryDeviceLog(startTime,endTime);
|
return BaseResponseUtils.buildSuccess(log);
|
}
|
/**
|
* 任务看板 查询在产任务看板
|
* */
|
@GetMapping(path="queryPlanList")
|
@Log("查询在产任务看板")
|
public BaseResponse<List<JSONObject>> queryPlanList(){
|
List<JSONObject> list = sv.queryPlanList();
|
return BaseResponseUtils.buildSuccess(list);
|
}
|
}
|