分页和条件查询[机器订单]
GET
/machine-orders请求参数
Query 参数
limit
number
每页显示多少条
示例值:
10
page
number
页数
示例值:
1
order_sn
string
订单编号
order_state
string
可选
订单状态(状态 1: 已下单 0: 已完成)
time_end
string
时间下限
time_start
string
时间上限
order
string
可选
顺序(默认降序) descend: 降序 ascend: 升序
sort
string
可选
排序字段,默认创建时间create_time、可选delivery_date
示例代码
返回响应
成功(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": [
{
"create_time": "2024-04-08T13:41:54",
"machine_id": 2,
"order_unit_id": 4,
"remark": "黑魔蝎哦哦",
"machine_name": "H650-CH-J2",
"order_unit_name": "单位-3",
"delivery_date": "2023-12-29T11:03:04",
"is_deleted": 0,
"finished_num": 0,
"order_quantity": 60,
"by_user": "admin",
"order_id": 9,
"order_state": 0,
"order_sn": "2"
},
{
"create_time": "2024-04-08T13:41:51",
"machine_id": 1,
"order_unit_id": 1,
"remark": "11111111111111111",
"machine_name": "H650-CH-J1",
"order_unit_name": "生菜加工厂",
"delivery_date": "2023-12-07T11:03:04",
"is_deleted": 0,
"finished_num": 0,
"order_quantity": 4,
"by_user": "迪尼克",
"order_id": 1,
"order_state": 1,
"order_sn": "1"
},
{
"create_time": "2024-03-29T11:14:56",
"machine_id": 1,
"order_unit_id": 2,
"remark": "A650-EN1-2-2-2312-1111",
"machine_name": "H650-CH-J1",
"order_unit_name": "单位-1",
"delivery_date": "2023-10-03T00:00:00",
"is_deleted": 0,
"finished_num": 0,
"order_quantity": 13,
"by_user": "admin",
"order_id": 67,
"order_state": 1,
"order_sn": "5jge5"
},
{
"create_time": "2024-03-29T11:14:55",
"machine_id": 2,
"order_unit_id": 2,
"remark": "测试-2",
"machine_name": "H650-CH-J2",
"order_unit_name": "单位-1",
"delivery_date": "2023-10-02T00:00:00",
"is_deleted": 0,
"finished_num": 0,
"order_quantity": 12,
"by_user": "admin",
"order_id": 66,
"order_state": 1,
"order_sn": "3www4"
},
{
"create_time": "2024-03-29T11:14:55",
"machine_id": 1,
"order_unit_id": 2,
"remark": "测试-1",
"machine_name": "H650-CH-J1",
"order_unit_name": "单位-1",
"delivery_date": "2023-10-01T00:00:00",
"is_deleted": 0,
"finished_num": 0,
"order_quantity": 11,
"by_user": "admin",
"order_id": 65,
"order_state": 1,
"order_sn": "34412"
},
{
"create_time": "2024-03-29T11:14:54",
"description": "如联接认水时选公里委许设效都设。月办工商技国己口应什素下劳等数。对品基对场万传没由越者头验接。红正加来带带且路解大理和重积表时。决真清员代日快前代再以共照素天业北阶。据权铁铁的西加开数速里主一究。声地常后制对月如革特在构生果程音称。",
"machine_id": 1,
"order_unit_id": 1,
"remark": "cillum fugiat elit do nostrud",
"machine_name": "H650-CH-J1",
"order_unit_name": "生菜加工厂",
"delivery_date": "2023-12-21T17:16:24",
"is_deleted": 0,
"finished_num": 0,
"order_quantity": 24,
"by_user": "admin",
"order_id": 64,
"order_state": 0,
"order_sn": "occaecat"
},
{
"create_time": "2024-03-29T11:14:54",
"machine_id": 3,
"order_unit_id": 4,
"remark": "测试-3",
"machine_name": "A650-CH3-1-5",
"order_unit_name": "单位-3",
"delivery_date": "2023-10-03T00:00:00",
"is_deleted": 0,
"finished_num": 0,
"order_quantity": 13,
"by_user": "admin",
"order_id": 63,
"order_state": 1,
"order_sn": "31"
},
{
"create_time": "2024-03-29T11:14:53",
"machine_id": 3,
"order_unit_id": 2,
"remark": "测试-1",
"machine_name": "A650-CH3-1-5",
"order_unit_name": "单位-1",
"delivery_date": "2023-10-03T00:00:00",
"is_deleted": 0,
"finished_num": 0,
"order_quantity": 11,
"by_user": "admin",
"order_id": 61,
"order_state": 1,
"order_sn": "29"
},
{
"create_time": "2024-03-29T11:14:53",
"machine_id": 3,
"order_unit_id": 3,
"remark": "测试-2",
"machine_name": "A650-CH3-1-5",
"order_unit_name": "单位-2",
"delivery_date": "2023-10-03T00:00:00",
"is_deleted": 0,
"finished_num": 0,
"order_quantity": 12,
"by_user": "admin",
"order_id": 62,
"order_state": 1,
"order_sn": "30"
},
{
"create_time": "2024-03-29T11:14:52",
"machine_id": 3,
"order_unit_id": 3,
"remark": "测试-2",
"machine_name": "A650-CH3-1-5",
"order_unit_name": "单位-2",
"delivery_date": "2023-10-03T00:00:00",
"is_deleted": 0,
"finished_num": 0,
"order_quantity": 12,
"by_user": "admin",
"order_id": 59,
"order_state": 1,
"order_sn": "27"
}
],
"total": 67,
"size": 10,
"current": 1,
"orders": [],
"optimizeCountSql": true,
"searchCount": true,
"countId": null,
"maxLimit": null,
"pages": 7
}
}
最后修改时间: 9 个月前