capacity2.0

jiekou


3. 生产统计数据

[TOC]

简要描述
  • 生产统计数据
接口维护负责人:周智鸿
请求URL
  • http://172.17.10.52:8080/pyapi/statistics_data
请求方式
  • POST
请求参数
参数名 类型 说明
Mi nvarhar 产品型号
Line nvarchar 生产拉线id
StartDate datetime 最小生产日期
EndDate datetime 最大生产日期
OutPut bool 是否导出接口
请求示例
{
    "Mi":"",
    "Line":"1",
    "page":1,
    "limit":10,
    "StartDate":"",
    "OutPut":false,
    "EndDate":""
}
返回示例
{
    "code": 200,
    "data": {
        "MapData": {
            "x_axis": [
                "2022-07-22",
                "2022-07-23",
                "2022-07-25",
                "2022-07-26"
            ],
            "y_FailCount": [
                0,
                0,
                0,
                0
            ],
            "y_FailRate": [
                0.0,
                0.0,
                0.0,
                0.0
            ],
            "y_PassCount": [
                266,
                71,
                45,
                15
            ],
            "y_PassRate": [
                100.0,
                100.0,
                100.0,
                100.0
            ]
        },
        "TableData": [
            {
                "FailCount": 0,
                "FailRate": 0.0,
                "LineName": "L36",
                "Mi": "brs",
                "PassCount": 266,
                "PassRate": 100.0,
                "ProductDate": "2022-07-22"
            },
            {
                "FailCount": 0,
                "FailRate": 0.0,
                "LineName": "L36",
                "Mi": "brs",
                "PassCount": 71,
                "PassRate": 100.0,
                "ProductDate": "2022-07-23"
            },
            {
                "FailCount": 0,
                "FailRate": 0.0,
                "LineName": "L36",
                "Mi": "brs",
                "PassCount": 45,
                "PassRate": 100.0,
                "ProductDate": "2022-07-25"
            },
            {
                "FailCount": 0,
                "FailRate": 0.0,
                "LineName": "L36",
                "Mi": "brs",
                "PassCount": 15,
                "PassRate": 100.0,
                "ProductDate": "2022-07-26"
            }
        ]
    },
    "msg": "success",
    "pageData": {
        "page": 1,
        "total": 4
    }
}
返回参数说明
参数名 类型 说明
TableData 表格数据
ProductDate datetime 生产日期
Mi nvarchar 产品型号
PassCount int pass
FailCount int NG
FailRate float 不良率
PassRate float 良率
LineName nvarchar 拉线
MapData 折线图数据

页面列表

ITEM_HTML