[物料来货表]条件分页查询
测试中GET
/materials-income请求参数
Query 参数
page
integer
页数
示例值:
1
limit
integer
每页显示多少条
示例值:
10
by_user
string
创建人
materials_name
string
物料名称
materials_sn
string
物料编号
vendorId
integer
供应商id
vendorName
string
供应商名字
sort
string
可选
排序字段,默认创建时间create_time
order
string
可选
顺序(默认降序) descend: 降序 ascend: 升序
示例代码
返回响应
成功(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": [
{
"materials_num": 22,
"materials_unit": "件",
"create_time": "2024-01-30T11:28:31",
"vendor_name": "供应商名称1",
"remark": "好用",
"materials_name": "i3200喷头数据线",
"courier_number": "44051419000101",
"materials_income_id": 24,
"vendor_id": 1,
"materials_id": 38,
"materials_sn": "i3200",
"category": "其他",
"by_user": "admin"
},
{
"materials_num": 23,
"materials_unit": "件",
"create_time": "2024-01-30T11:28:31",
"vendor_name": "供应商名称2",
"remark": "爱用",
"materials_name": "i3280喷头数据线",
"courier_number": "44051419000102",
"materials_income_id": 25,
"vendor_id": 2,
"materials_id": 39,
"materials_sn": "i3280",
"category": "其他",
"by_user": "admin"
},
{
"materials_num": 12,
"materials_unit": "件",
"create_time": "2024-01-19T09:11:48",
"description": "空运",
"vendor_name": "供应商名称1",
"remark": "好用",
"materials_name": "i3200喷头数据线",
"courier_number": "12312312312378",
"materials_income_id": 12,
"vendor_id": 1,
"materials_id": 38,
"materials_sn": "i3200",
"category": "其他",
"by_user": "admin"
},
{
"materials_num": 12,
"materials_unit": "件",
"create_time": "2024-01-18T17:04:16",
"description": "空运",
"vendor_name": "供应商名称1",
"remark": "好用",
"materials_name": "i3200喷头数据线",
"courier_number": "12312312312378",
"materials_income_id": 9,
"vendor_id": 1,
"materials_id": 38,
"materials_sn": "i3200",
"category": "其他",
"by_user": "admin"
},
{
"materials_num": 24,
"materials_unit": "件",
"create_time": "2024-01-18T17:04:16",
"description": "无人机",
"vendor_name": "供应商名称2",
"remark": "爱用",
"materials_name": "i3280喷头数据线",
"courier_number": "234234234234",
"materials_income_id": 10,
"vendor_id": 2,
"materials_id": 39,
"materials_sn": "i3280",
"category": "其他",
"by_user": "admin"
},
{
"materials_num": 36,
"materials_unit": "个",
"create_time": "2024-01-18T17:04:16",
"description": "地铁",
"vendor_name": "供应商名称3",
"remark": "棒,差评",
"materials_name": "螺丝刀",
"courier_number": "11124536936967",
"materials_income_id": 11,
"vendor_id": 3,
"materials_id": 53,
"materials_sn": "4855",
"category": "其他",
"by_user": "admin"
},
{
"materials_num": 12,
"materials_unit": "个",
"create_time": "2024-01-18T10:26:26",
"description": "空运",
"vendor_name": "供应商名称1",
"remark": "脆脆的",
"materials_name": "螺丝刀",
"courier_number": "12345678987123421",
"materials_income_id": 7,
"vendor_id": 1,
"materials_id": 51,
"materials_sn": "4855",
"category": "其他",
"by_user": "admin"
},
{
"materials_num": 13,
"materials_unit": "个",
"create_time": "2024-01-18T10:26:26",
"description": "无人机",
"vendor_name": "供应商名称2",
"remark": "吃席专用",
"materials_name": "螺丝123",
"courier_number": "54321656343490",
"materials_income_id": 8,
"vendor_id": 2,
"materials_id": 52,
"materials_sn": "1212",
"category": "其他",
"by_user": "admin"
},
{
"materials_num": 3,
"materials_unit": "只",
"create_time": "2024-01-17T14:09:50",
"description": "圆通快递",
"vendor_name": "供应商名称2",
"remark": "好好好",
"materials_name": "线条小狗",
"courier_number": "78785612343490",
"materials_income_id": 6,
"vendor_id": 2,
"materials_id": 42,
"materials_sn": "181815",
"category": "其他",
"by_user": "admin"
},
{
"materials_num": 3,
"materials_unit": "个",
"create_time": "2024-01-17T14:09:49",
"description": "顺丰速递",
"vendor_name": "供应商名称1",
"remark": "好用好吃",
"materials_name": "海绵宝宝",
"courier_number": "12396488987654321",
"materials_income_id": 5,
"vendor_id": 1,
"materials_id": 15,
"materials_sn": "1818",
"by_user": "admin"
}
],
"total": 14,
"size": 10,
"current": 1,
"orders": [],
"optimizeCountSql": true,
"searchCount": true,
"countId": null,
"maxLimit": null,
"pages": 2
}
}
最后修改时间: 1 年前