文档
测试

获取产量统计(品种)

POST
/wsc/mes/api/getAnalysisVarietyOutput

接口描述

获取产量统计(品种) 以天为单位的一组数据

请求头

参数名
类型
描述
必填
content-type
string
application/json
必填

请求参数

参数名
类型
描述
必填
apikey
string
调用者识别ID
必填
signature
string
调用者签名 sha1( apisecret + apikey + dtime+ apisecret), 然后 hexdigest, 转换为 十六进制数据字符串值 摘要
必填
dtime
string
请求数据日期, 样例:2021-01-01
必填

响应参数

参数名
类型
描述
必填
code
int
请求状态码, 0 成功, 1 身份验证 或 签名验证失败 ...
必填
msg
string
消息, 例如: success, failed, authentication failed,
必填
count
int
返回记录数
必填
records
list
返回记录列表
必填
workshop_id
int
车间ID
必填
workshop_name
str
车间名称
必填
dtime
str
日期
必填
shift_id
int
班次ID
必填
variety_id
int
品种ID
必填
variety_name
str
品种名称
必填
theory_weight
float
理论产量
必填
actual_weight
float
实际产量
必填
per_actual_length
float
单锭长度
必填
efficiency
float
纺纱效率
必填
thousands_rate
float
千锭时断头率
必填
keep_rate
float
留头率
必填
broken_avg_duration
float
平均停纺时间
必填

说明 / 示例

######## 请求的 jsonrpc 格式如下:############## {"jsonrpc": "2.0", "method": "call", "params": {"apikey": "o9Gxc5G_3QwcQipKQ-IypL9HZJrw", "dtime": "2021-02-04", "signature": "8c328d11cbb4f0a1fcdb071c704ccd8c0509d7a2"}, "id": 69462102} ####################### 应答格式如下: ###################### { "flag": true, "count": 0, "records": [         {             "workshop_id": "1",             "workshop_name": "车间01",             "dtime": "2021-02-04",             "shift_id": "1",             "variety_id": "1",             "variety_name": "大TC653542",             "theory_weight": "10000",             "actual_weight": "9900",             "per_actual_length": "1000",             "efficiency": "0.99",             "thousands_rate": "0.01",             "keep_rate": "0.98",             "broken_avg_duration": "2",         }     ],         }