分页和条件查询物料借还信息
测试中GET
/materials-opers请求参数
Query 参数
materials_method
integer
11 10
示例值:
10
materialsName
string
物料名称
page
integer
页数
示例值:
1
limit
integer
条数
示例值:
10
示例代码
返回响应
成功(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
必需
searchCount
boolean
必需
countId
null
必需
maxLimit
null
必需
pages
integer
必需
示例
{
"code": 20000,
"message": "分页查找成功",
"data": {
"records": [
{
"materials_address": "A-12-3-7",
"borrow_num": 5,
"description": "借出急用",
"remain_num": 0,
"materials_name": "A520解码器(芭比版)",
"return_num": 5,
"warehouse_name": "仓库二号",
"materials_loc_id": 1,
"user_id": 1,
"materials_type": "45*40*29",
"materials_id": 1,
"materials_sn": "A520",
"materials_oper_id": 1,
"category": "螺丝",
"warehouse_id": 2
},
{
"materials_address": "A-13-7-10",
"borrow_num": 2,
"description": "再借",
"remain_num": 0,
"materials_name": "A520解码器(芭比版)",
"return_num": 2,
"warehouse_name": "仓库二号",
"materials_loc_id": 2,
"user_id": 1,
"materials_type": "45*40*29",
"materials_id": 1,
"materials_sn": "A520",
"materials_oper_id": 2,
"category": "螺丝",
"warehouse_id": 2
}
],
"total": 2,
"size": 10,
"current": 1,
"orders": [],
"optimizeCountSql": true,
"searchCount": true,
"countId": null,
"maxLimit": null,
"pages": 1
}
}
最后修改时间: 8 个月前