[机器成品信息]的分页和条件查询
GET
/finish-products请求参数
Query 参数
limit
integer
每页多少条
示例值:
10
page
integer
页数
示例值:
1
start_time
string
可选
成品入库时间上区间 格式:yyyy-MM-dd HH:mm:ss
end_time
string
可选
成品入库时间下区间 格式:yyyy-MM-dd HH:mm:ss
machine_name
string
机器名字
warehouse_id
string
仓库id
machine_type
string
机器类型
order
string
可选
顺序(默认降序) descend: 降序 ascend: 升序
sort
string
可选
排序字段,默认创建时间create_time
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
message
string
必需
data
object
必需
records
array [object {9}]
必需
total
integer
必需
size
integer
必需
current
integer
必需
orders
array[string]
必需
optimizeCountSql
boolean
必需
hitCount
boolean
必需
countId
null
必需
maxLimit
null
必需
searchCount
boolean
必需
pages
integer
必需
示例
成功示例
{
"code": 20000,
"message": "分页和条件查询成功",
"data": {
"records": [
{
"machine_type": "抖粉机",
"warehouse_name": "仓库一号",
"new_time": "2023-12-08T11:19:28",
"finish_product_Address": "A-12-1-2,B-12-2-1,C-12-1-1,D-21-1-4",
"machine_count": 4,
"machine_name": "H650-CH-J1-2312-1003",
"old_time": "2023-12-07T10:47:33",
"word_order_id": "2,4,5,6",
"warehouse_id": 1
},
{
"machine_type": "抖粉机",
"warehouse_name": "仓库二号",
"new_time": "2023-12-07T11:06:29",
"finish_product_Address": "B-14-1-1",
"machine_count": 1,
"machine_name": "H650-CH-J1-2312-1003",
"old_time": "2023-12-07T11:06:29",
"word_order_id": "3",
"warehouse_id": 2
},
{
"machine_type": "抖粉机",
"warehouse_name": "仓库一号",
"new_time": "2023-12-07T10:46:19",
"finish_product_Address": "B-12-1-1",
"machine_count": 1,
"machine_name": "H650-CH-J1-2312-1002",
"old_time": "2023-12-07T10:46:19",
"word_order_id": "1",
"warehouse_id": 1
}
],
"total": 3,
"size": 10,
"current": 1,
"orders": [],
"optimizeCountSql": true,
"hitCount": false,
"countId": null,
"maxLimit": null,
"searchCount": true,
"pages": 1
}
}
最后修改时间: 1 年前