查询[工单信息]分页及条件
GET
/machine-workorders请求参数
Query 参数
page
integer
页码(默认为1)
limit
integer
可选
每页条数(默认为10)
workorder_number
string
可选
工单号(可选条件,为模糊查询)
machine_name
string
可选
机械名称(可选条件,为模糊查询)
order_sn
string
可选
订单SN码(可选条件,为模糊查询)
workorder_start_time
string
可选
工单开始时间(可选条件,结果集为在此时间之后)
workorder_end_time
string
可选
工单结束时间(可选条件,结果集为在此时间之前)
state
integer
可选
工单状态 (可选条件)0: 已创建 1: 生产中 2: 测试中 3: 返厂中 4: 调试中 5: 包装中 6: 装箱中 7: 运输中 8: 已完成 9: 挂起(暂停)
workshop_name
string
可选
归属车间名(可选条件,精确查询)
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
message
string
必需
data
object
必需
records
array [object {14}]
必需
total
integer
必需
size
integer
必需
current
integer
必需
orders
array[string]
必需
optimizeCountSql
boolean
必需
searchCount
boolean
必需
countId
null
必需
maxLimit
null
必需
pages
integer
必需
示例
{
"code": 20000,
"message": "查询成功",
"data": {
"records": [
{
"workshop_name": "新车间1",
"workorder_id": 1,
"create_time": "2024-01-16T15:46:25",
"workorder_end_time": "2023-12-21T11:28:08",
"percentage": 0.67,
"state": 1,
"machine_name": "H650-CH-J1",
"source_step_name": "工序一",
"workorder_start_time": "2024-01-16T15:46:25",
"by_user": "渐渐",
"order_sn": "1",
"workorder_number": "H650-CH-J1-2312-1002"
},
{
"workorder_id": 7,
"create_time": "2024-01-16T09:23:16",
"workorder_end_time": "2023-12-21T11:39:28",
"description": "描述",
"remark": "备注",
"machine_name": "A650-CH1-1-5",
"source_step_name": "工序一",
"workshop_name": "车间1",
"percentage": 0,
"state": 1,
"workorder_start_time": "2024-01-16T09:23:16",
"by_user": "admin",
"order_sn": "1",
"workorder_number": "E3748"
}
],
"total": 2,
"size": 10,
"current": 1,
"orders": [],
"optimizeCountSql": true,
"searchCount": true,
"countId": null,
"maxLimit": null,
"pages": 1
}
}
最后修改时间: 1 年前