条件和分页查询[订货单位]信息
GET
/order-units请求参数
Query 参数
limit
number
条数
示例值:
10
page
number
页数
示例值:
1
orderUnitAddress
string
可选
单位送货地址 模糊查询
orderUnitName
string
单位名称 模糊查询
示例值:
生菜
orderUnitPerson
string
可选
单位联系人 模糊查询
orderUnitState
string
可选
订货单位状态 2: 无单 1: 有单 0: 暂无合作
startTime
string
合作时间上区间
endTime
string
合作时间下区间
order
string
可选
顺序(默认降序) descend: 降序 ascend: 升序
sort
string
可选
排序字段,默认创建时间create_time
示例代码
返回响应
成功(20000)
HTTP 状态码: 20000
内容格式: JSONapplication/json
数据结构
code
integer
必需
message
string
必需
data
object
必需
records
array [object {12}]
必需
total
integer
必需
size
integer
必需
current
integer
必需
orders
array[string]
必需
optimizeCountSql
boolean
必需
searchCount
boolean
必需
countId
null
必需
maxLimit
null
必需
pages
integer
必需
示例
{
"code": 20000,
"message": "分页查询成功",
"data": {
"records": [
{
"is_deleted": 0,
"create_time": "2023-12-13T11:11:06",
"order_unit_person": "盒子",
"order_unit_state": 0,
"order_unit_address": "四川省",
"order_unit_id": "A4444",
"id": 4,
"by_user": "admin",
"order_unit_name": "单位-3"
},
{
"is_deleted": 0,
"create_time": "2023-12-13T11:10:13",
"order_unit_person": "小芬",
"order_unit_state": 0,
"order_unit_address": "云南省缙云",
"order_unit_id": "A3333",
"id": 3,
"by_user": "admin",
"order_unit_name": "单位-2"
},
{
"is_deleted": 0,
"create_time": "2023-12-13T11:08:46",
"order_unit_person": "小蓝",
"order_unit_state": 0,
"order_unit_address": "广西壮族自治区桂林",
"order_unit_id": "A2222",
"id": 2,
"by_user": "admin",
"order_unit_name": "单位-1"
},
{
"is_deleted": 0,
"create_time": "2023-12-11T13:32:53",
"order_unit_person": "小红",
"order_unit_state": 0,
"description": "",
"order_unit_address": "广东省增城区",
"order_unit_email": "",
"order_unit_id": "A1111",
"remark": "",
"id": 1,
"by_user": "admin",
"order_unit_name": "红星制造"
}
],
"total": 4,
"size": 10,
"current": 1,
"orders": [],
"optimizeCountSql": true,
"searchCount": true,
"countId": null,
"maxLimit": null,
"pages": 1
}
}
最后修改时间: 9 个月前