获取库存对象根据id
#### 简要描述:
- 获取库存根据库存id
#### 接口版本:
|版本号|制定人|制定日期|修订日期|
|:---- |:---|:----- |----- |
|1.0.0 |张玉龙 |2020-12-03 |2020-12-03 |
#### 请求URL:
- http://ip:port/semi-api/inventory/getDealerById
#### 请求方式:
- GET
#### 请求头:
|参数名|是否必须|类型|说明|
|:---- |:---|:----- |----- |
|Content-Type |是 |string |请求类型: application/json |
#### 请求示例:
```json
?id=1000017
```
#### 请求参数:
|参数名|是否必须|类型|说明|
|:---- |:---|:----- |----- |
|id|是 |string |主键 |
|approvalStatus|是 |string | 审批状态 <br> 101 未审批 <br> 102 审批通过 <br> 103 审批不通过 |
#### 返回示例:
**正确时返回:**
```json
{
"msg": "操作成功",
"code": 200,
"data": {
"costPrice": 105.00,
"count": 105,
"createTime": "2020-12-04 16:35:24",
"entryRegistrant": "测试6",
"id": 1000017,
"inventoryAttributes": "整卷",
"operatingPersonnel": "user",
"page": 1,
"productCode": "PW1009",
"productEnglishName": "dianguanghui9",
"productLine": "电光系列9",
"productName": "电光灰灰灰9",
"productNo": "200000424214146",
"productSpecification": "100*200",
"recordNumber": "2033916615400003",
"rows": 10,
"storageWarehouse": "北京库房",
"supplier": "xxxx有限公司",
"unitMeasurement": "卷",
"updateTime": "2020-12-04 16:35:24",
"warehouseEntryTime": "2020-01-16 00:00:00",
"warehousingCosts": "100",
"warehouseLocation": "北京市大兴区xxxx"
}
}
```
**错误时返回:**
```json
{
"msg": "请求失败",
"code": -200,
"data": {}
}
```
#### 返回参数(通用参数)说明:
|参数名|是否必须|类型|说明|
|:---- |:---|:----- |----- |
|code|是 |string | 200 成功 其他失败 |
|msg|是 |string |成功或失败消息内容 |
|data|是 |string | 真实参数 |
#### 返回参数(data)说明:
| 参数名称 | 参数类型 | 示例值 | 备注 |
| ------------ | ------------ | ------------ | ------------ |
|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|北京市大兴区哈哈哈哈|库房位置 |