库存日志记录
GET
/warehouse-logs请求参数
Query 参数
limit
integer
每页显示多少条
示例值:
10
page
integer
页数
示例值:
1
warehouse_state
string
必需
状态(显示物料或成品的库存日志信息)
示例值:
1
warehouse_id
string
仓库id
product_type
string
物料编号/机器类型
materials_method
integer
操作行为字典id
new_time
string
可选
日期上限 类型:yyyy-MM-dd HH:mm:ss
old_time
string
可选
日期下限 类型:yyyy-MM-dd HH:mm:ss
order
string
可选
顺序(默认降序) descend: 降序 ascend: 升序
示例值:
descend
sort
string
可选
排序字段,默认创建时间create_time
product_id
integer
物料主键
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
message
string
必需
data
object
必需
records
array [object {15}]
必需
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": [
{
"address": "B-12-1-1",
"warehouseState": "成品",
"create_time": "2023-12-07T10:48:29",
"materialsMethod": "成品增加",
"product_name": "H650-CH-J1-2312-1002",
"product_type": "抖粉机",
"warehouse_name": "仓库一号",
"warehouse_state": 1,
"id": 10,
"materials_method": 4,
"new_stock": 1,
"by_user": "钟润玲",
"old_stock": 0
},
{
"address": "A-12-1-2",
"warehouseState": "成品",
"create_time": "2023-12-07T10:50:06",
"materialsMethod": "成品增加",
"product_name": "H650-CH-J1-2312-1003",
"product_type": "抖粉机",
"warehouse_name": "仓库一号",
"warehouse_state": 1,
"id": 11,
"materials_method": 4,
"new_stock": 1,
"by_user": "钟润玲",
"old_stock": 0
},
{
"address": "B-14-1-1",
"warehouseState": "成品",
"create_time": "2023-12-07T11:04:14",
"description": "",
"materialsMethod": "成品增加",
"product_name": "H650-CH-J1-2312-1003",
"product_type": "抖粉机",
"warehouse_name": "仓库一号",
"warehouse_state": 1,
"id": 12,
"materials_method": 4,
"new_stock": 1,
"by_user": "陈慧敏",
"old_stock": 0
},
{
"address": "B-12-2-1",
"warehouseState": "成品",
"create_time": "2023-12-07T11:12:26",
"description": "",
"materialsMethod": "成品增加",
"product_name": "H650-CH-J1-2312-1003",
"product_type": "抖粉机",
"warehouse_name": "仓库一号",
"warehouse_state": 1,
"id": 13,
"materials_method": 4,
"new_stock": 1,
"by_user": "陈慧敏",
"old_stock": 0
},
{
"address": "C-12-1-1",
"warehouseState": "成品",
"create_time": "2023-12-07T11:17:27",
"description": "",
"materialsMethod": "成品增加",
"product_name": "H650-CH-J1-2312-1003",
"product_type": "抖粉机",
"warehouse_name": "仓库一号",
"warehouse_state": 1,
"id": 15,
"materials_method": 4,
"new_stock": 1,
"by_user": "陈慧敏",
"old_stock": 0
},
{
"address": "B-14-1-1",
"warehouseState": "成品",
"create_time": "2023-12-08T09:17:58",
"description": "",
"materialsMethod": "成品修改",
"product_name": "H650-CH-J1-2312-1003",
"product_type": "抖粉机",
"warehouse_name": "仓库一号",
"warehouse_state": 1,
"id": 19,
"materials_method": 6,
"new_stock": 0,
"by_user": "陈慧敏",
"old_stock": 1
},
{
"address": "B-14-1-1",
"warehouseState": "成品",
"create_time": "2023-12-08T09:17:58",
"description": "",
"materialsMethod": "成品修改",
"product_name": "H650-CH-J1-2312-1003",
"product_type": "抖粉机",
"warehouse_name": "仓库一号",
"warehouse_state": 1,
"id": 20,
"materials_method": 6,
"new_stock": 1,
"by_user": "陈慧敏",
"old_stock": 0
},
{
"address": "B-14-1-1",
"warehouseState": "成品",
"create_time": "2023-12-08T11:09:56",
"description": "",
"materialsMethod": "成品修改",
"product_name": "H650-CH-J1-2312-1003",
"product_type": "抖粉机",
"warehouse_name": "仓库一号",
"warehouse_state": 1,
"id": 22,
"materials_method": 6,
"new_stock": 0,
"by_user": "陈慧敏",
"old_stock": 1
},
{
"address": "B-14-1-1",
"warehouseState": "成品",
"create_time": "2023-12-08T11:09:56",
"description": "",
"materialsMethod": "成品修改",
"product_name": "H650-CH-J1-2312-1003",
"product_type": "抖粉机",
"warehouse_name": "仓库一号",
"warehouse_state": 1,
"id": 23,
"materials_method": 6,
"new_stock": 1,
"by_user": "陈慧敏",
"old_stock": 0
},
{
"address": "D-21-1-4",
"warehouseState": "成品",
"create_time": "2023-12-08T11:19:28",
"description": "",
"materialsMethod": "成品增加",
"product_name": "H650-CH-J1-2312-1003",
"product_type": "抖粉机",
"warehouse_name": "仓库一号",
"warehouse_state": 1,
"id": 24,
"materials_method": 4,
"new_stock": 1,
"by_user": "陈慧敏",
"old_stock": 0
}
],
"total": 10,
"size": 10,
"current": 1,
"orders": [],
"optimizeCountSql": true,
"hitCount": false,
"countId": null,
"maxLimit": null,
"searchCount": true,
"pages": 1
}
}
最后修改时间: 1 年前