分页搜索库存数据
#### 简要描述:
- 分页查询库存数据
#### 接口版本:
|版本号|制定人|制定日期|修订日期|
|:---- |:---|:----- |----- |
|1.0.0 |张玉龙 |2020-12-03 |2020-13-03 |
#### 请求URL:
- http://ip:port/semi-api/inventory/searchInventory
#### 请求方式:
- POST/JSON
#### 请求头:
|参数名|是否必须|类型|说明|
|:---- |:---|:----- |----- |
|Content-Type |是 |string |请求类型: application/json |
#### 请求示例:
```json
{
"page": 1,
"rows": 10,
"searchCriteria": "电光"
}
```
#### 请求参数:
| 参数名称 | 参数类型 | 备注 | 是否必须|
| ------------ | ------------ | ------------ | ------------ |
|page|string|当前页数默认第一页| 否|
|rows|string|每页条数(默认10条)| 否|
|searchCriteria|string|搜索条件|否 |
#### 返回示例:
**正确时返回:**
```json
{
"msg": "操作成功",
"code": 200,
"data": {
"endRow": 0,
"firstPage": 0,
"hasNextPage": false,
"hasPreviousPage": false,
"isFirstPage": true,
"isLastPage": true,
"lastPage": 1,
"list": [
{
"costPrice": 100,
"count": 3,
"createTime": "2020-12-03 17:38:21",
"entryRegistrant": "登记人1",
"id": 1000005,
"inventoryAttributes": "零料",
"operatingPersonnel": "user",
"page": 1,
"productCode": "PW1004",
"productEnglishName": "dian guang xi lie",
"productLine": "电光系列",
"productName": "电光哈哈哈4",
"productNo": "123323232323",
"productSpecification": "100*200",
"recordNumber": "2033817270000002",
"rows": 10,
"storageWarehouse": "北京仓库",
"supplier": "北京xxxx公司",
"unitMeasurement": "米",
"updateTime": "2020-12-03 17:38:21",
"warehouseEntryTime": "2020-12-03 22:22:00",
"warehousingCosts": "100",
"warehouseLocation": "北京市大兴区哈哈哈哈"
}
],
"navigateFirstPage": 0,
"navigateLastPage": 1,
"navigatePages": 0,
"navigatepageNums": [],
"nextPage": 1,
"pageNum": 1,
"pageSize": 0,
"pages": 1,
"prePage": 1,
"size": 0,
"startRow": 0,
"total": 1
}
}
```
**错误时返回:**
```json
{
"msg": "操作失败",
"code": -200,
"data": {}
}
```
#### 返回参数(通用参数)说明:
|参数名|是否必须|类型|说明|
|:---- |:---|:----- |----- |
|code|是 |string | 200 成功 其他失败 |
|msg|是 |string |成功或失败消息内容 |
|data|是 |string | 真实参数 |
#### 返回参数(data)说明:
|参数名|是否必须|类型|说明|
|:---- |:---|:----- |----- |
|nextPage|是 |string | 下一页 |
|pageNum|是 |string | 当前页 |
|pages|是 |string | 总页数 |
|prePage|是 |string | 前一页 |
|total|是 |string | 总条数 |
|list |是 |array| 真实参数 |
#### 返回参数(list)说明:
| 参数名称 | 参数类型 | 示例值 | 备注 |
| ------------ | ------------ | ------------ | ------------ |
|costPrice|number|100|产品成本价格 |
|warehousingCosts|string|100|入库成本|
|count|number|3|数量 |
|createTime|string|2020-12-03 17:38:21|创建时间 |
|entryRegistrant|string|登记人1| 入库登记人|
|id|number|1000005| 主键id|
|inventoryAttributes|string|零料| 库存属性|
|operatingPersonnel|string|user| 操作人员|
|productCode|string|PW1004| 产品编码|
|productEnglishName|string|dian guang xi lie|产品英文名 |
|productLine|string|电光系列| 产品系列|
|productName|string|电光哈哈哈4| 产品名称|
|productNo|string|123323232323| 产品唯一编码|
|productSpecification|string|100*200| 产品规格|
|recordNumber|string|2033817270000002| 操作序列号|
|storageWarehouse|string|北京仓库| 入库库房|
|supplier|string|北京xxxx公司| 供货商|
|unitMeasurement|string|米| 产品计量单位|
|updateTime|string|2020-12-03 17:38:21| 更新时间|
|warehouseEntryTime|string|2020-12-03 22:22:00| 入库时间|
|warehouseLocation|string|北京市大兴区哈哈哈哈|库房位置 |