分页和条件查找[仓库]
GET
/warehouses请求参数
Query 参数
limit
integer
每页显示多少条
示例值:
10
page
integer
页数
示例值:
1
warehouse_address
string
仓库位置
warehouse_id
integer
仓库id
warehouse_leader
string
仓库管理人
warehouse_name
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": [
{
"is_deleted": 0,
"warehouse_name": "仓库六号",
"create_time": "2023-12-27T15:20:44",
"warehouse_address": "H栋2楼",
"remark": "存放成品",
"state": 1,
"by_user": "admin",
"warehouse_leader": "谭工",
"warehouse_id": 18
},
{
"is_deleted": 0,
"warehouse_name": "仓库五号",
"create_time": "2023-12-21T08:53:39",
"warehouse_address": "C栋1楼",
"remark": "存放物料",
"state": 1,
"by_user": "主管5",
"warehouse_leader": "主管5",
"warehouse_id": 17
},
{
"is_deleted": 0,
"warehouse_name": "仓库四号",
"create_time": "2023-12-20T09:25:33",
"warehouse_address": "G栋3楼",
"remark": "存放客户需求货物",
"state": 1,
"by_user": "主管1",
"warehouse_leader": "主管1",
"warehouse_id": 16
},
{
"is_deleted": 0,
"warehouse_name": "唔西迪西",
"create_time": "2023-12-12T16:03:42",
"warehouse_address": "护城河",
"remark": "存放花园宝宝",
"state": 1,
"by_user": "主管3号",
"warehouse_leader": "主管3号",
"warehouse_id": 12
},
{
"is_deleted": 0,
"warehouse_name": "一千块",
"create_time": "2023-12-12T15:58:44",
"warehouse_address": "咖啡店",
"remark": "",
"state": 1,
"by_user": "李小允",
"warehouse_leader": "李小允",
"warehouse_id": 11
},
{
"is_deleted": 0,
"warehouse_name": "第五个季节",
"create_time": "2023-12-12T15:56:02",
"warehouse_address": "雪地里",
"remark": "",
"state": 1,
"by_user": "小花",
"warehouse_leader": "玫瑰病人",
"warehouse_id": 10
},
{
"is_deleted": 0,
"warehouse_name": "小木屋",
"create_time": "2023-12-12T15:50:05",
"warehouse_address": "旧城以西",
"remark": "",
"state": 1,
"by_user": "米仲信",
"warehouse_leader": "罗本",
"warehouse_id": 9
},
{
"is_deleted": 0,
"warehouse_name": "惩罚",
"create_time": "2023-12-12T15:48:36",
"warehouse_address": "心的距离",
"remark": "无",
"state": 1,
"by_user": "乐瑶",
"warehouse_leader": "薇薇简",
"warehouse_id": 8
},
{
"is_deleted": 0,
"warehouse_name": "曾经的仓库",
"create_time": "2023-12-12T15:42:35",
"warehouse_address": "护城河",
"remark": "为过去干杯",
"state": 1,
"by_user": "罗本",
"warehouse_leader": "韦蔓雯",
"warehouse_id": 7
},
{
"is_deleted": 0,
"warehouse_name": "空城里",
"create_time": "2023-12-12T15:40:14",
"warehouse_address": "卓美",
"remark": "十万精品",
"state": 1,
"by_user": "方圆",
"warehouse_leader": "叶贝妮",
"warehouse_id": 6
}
],
"total": 15,
"size": 10,
"current": 1,
"orders": [],
"optimizeCountSql": true,
"hitCount": false,
"countId": null,
"maxLimit": null,
"searchCount": true,
"pages": 2
}
}
最后修改时间: 1 年前