Fancy
2025-01-14 ce988f65d5b0c74ad5c104d05f1155ed05b1db72
pms-parent/pms-web-other/src/main/java/com/dy/pmsOther/screen/ScreenReportCtrl.java
@@ -6,6 +6,7 @@
import com.dy.common.webUtil.BaseResponseUtils;
import com.dy.common.webUtil.QueryResultVo;
import com.dy.pmsGlobal.aop.Log;
import com.dy.pmsGlobal.pojoPr.PrOrder;
import com.dy.pmsGlobal.pojoPr.PrProductionProcess;
import com.dy.pmsGlobal.pojoSta.StaDeviceProductionLog;
import jakarta.validation.Valid;
@@ -33,7 +34,7 @@
    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 BaseResponseUtils.buildSuccess(result);
    }
    /**
     * 根据时间区间查询 所有过站记录
@@ -54,4 +55,49 @@
        List<JSONObject> list = sv.queryPlanList();
        return BaseResponseUtils.buildSuccess(list);
    }
    /**
     * 任务看板  查询工站使用情况
     * */
    @GetMapping(path="queryWorkList")
    @Log("查询工站使用情况")
    public BaseResponse<List<JSONObject>> queryWorkList(){
        List<JSONObject> list = sv.queryWorkList();
        return BaseResponseUtils.buildSuccess(list);
    }
    /**
     * 任务看板  查询在产任务看板
     * */
    @GetMapping(path="queryTopError")
    @Log("查询top10不良")
    public BaseResponse<List<JSONObject>> queryTopError(){
        List<JSONObject> list = sv.queryTopError();
        return BaseResponseUtils.buildSuccess(list);
    }
    @GetMapping(path="queryAttendUser")
    @Log("查询人员出勤率")
    public BaseResponse<JSONObject> queryAttendUser(){
        JSONObject obj = sv.queryAttendUser();
        return BaseResponseUtils.buildSuccess(obj);
    }
    @GetMapping(path="queryStatisticWork")
    @Log("查询统计人员工作量")
    public BaseResponse<List<JSONObject>> queryStatisticWork(){
        List<JSONObject> list = sv.queryStatisticWork();
        return BaseResponseUtils.buildSuccess(list);
    }
    @GetMapping(path="queryOrderList")
    @Log("查询订单看板")
    public BaseResponse<List<PrOrder>> queryOrderList(){
        List<PrOrder> list = sv.queryOrderList();
        return BaseResponseUtils.buildSuccess(list);
    }
    @GetMapping(path="queryOrderStatistic")
    @Log("查询统计订单数量")
    public BaseResponse<JSONObject> queryOrderStatistic(){
        JSONObject obj = sv.queryStatisticOrder();
        return BaseResponseUtils.buildSuccess(obj);
    }
}