You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
159 lines
4.3 KiB
159 lines
4.3 KiB
1 year ago
|
### 列出产品(ListProduct)
|
||
|
|
||
|
此接口用于获取产品列表,搜索产品
|
||
|
|
||
|
---
|
||
|
|
||
|
### 基本信息
|
||
|
|
||
|
方法:POST
|
||
|
|
||
|
URL: http://localhost:8033/open/ListProduct
|
||
|
|
||
|
---
|
||
|
|
||
|
### 请求
|
||
|
|
||
|
请求参数
|
||
|
|
||
|
| 参数名 | 类型 | 必填 | 说明 |
|
||
|
| :-- | :-- | :-- | :-- |
|
||
|
| profile | string | 是 | 厂区代码 |
|
||
|
| search | string | 否 | 产品编码产品描述模糊查询 |
|
||
|
|
||
|
示例 1:模糊查询产品列表
|
||
|
|
||
|
```
|
||
|
{
|
||
|
"data": {
|
||
|
profile:"测试厂区",
|
||
|
search: "组件001",
|
||
|
}
|
||
|
}
|
||
|
```
|
||
|
|
||
|
|
||
|
---
|
||
|
|
||
|
### 响应
|
||
|
|
||
|
响应字段
|
||
|
|
||
|
| 字段 | 类型 | 说明 |
|
||
|
| :-- | :-- | :-- |
|
||
|
| productCode | string | 产品编码 |
|
||
|
| familyCode | string | 标签形式 |
|
||
|
| processGroupId | int | 组件绑定生产流程id |
|
||
|
| crysTypeId | int | 晶体类型-id |
|
||
|
| crysTypeDesc | string | 晶体类型-对应下拉选项的文本 |
|
||
|
| crysTypeValue | string | 晶体类型-对应下拉选项的值 |
|
||
|
| busbarTypeId | int | 栅线类型-id |
|
||
|
| busbarTypeDesc | string | 栅线类型-对应下拉选项的文本 |
|
||
|
| busbarTypeValue | string | 栅线类型-对应下拉选项的值 |
|
||
|
| cellQty | int | 电池片数量-实际数量 |
|
||
|
| cellQtyDesc | string | 晶体类型-对应下拉选项的文本 |
|
||
|
| cellQtyValue | string | 晶体类型-对应下拉选项的值 |
|
||
|
| modSpecId | int | 组件规格-id |
|
||
|
| modSpecDesc | string | 组件规格-对应下拉选项的文本 |
|
||
|
| modSpecValue | string | 组件规格-对应下拉选项的值 |
|
||
|
| processType | int | 工艺类型-id |
|
||
|
| processTypedesc | string | 工艺类型-对应下拉选项的文本 |
|
||
|
| processTypeValue | string | 工艺类型-对应下拉选项的值 |
|
||
|
| featureCode | int | 产品特征-id |
|
||
|
| featureCodeDesc | string | 产品特征-对应下拉选项的文本 |
|
||
|
| featureCodeValue | string | 产品特征-对应下拉选项的值 |
|
||
|
| modWeight | string | 组件重量 |
|
||
|
| fgCode | string | |
|
||
|
| createDate | string | 创建时间 |
|
||
|
| lastUpdate | string | 最近更新时间 |
|
||
|
| lastUpdateuser | string | 最近更新账号 |
|
||
|
| serialCodeRule | string | 组件生码编码规则 |
|
||
|
| palletCodeRule | string | 包装生码编码规则 |
|
||
|
| attrs | Array | 产品属性列表 |
|
||
|
|
||
|
attrs字段
|
||
|
|
||
|
| 字段 | 类型 | 说明 |
|
||
|
| :-- | :-- | :-- |
|
||
|
| id | string | id字段 |
|
||
|
| attributeId | string | 属性Id |
|
||
|
| attributeDesc | string | 属性名称 |
|
||
|
| productCode | string | 产品编号 |
|
||
|
| description | string | 属性代码描述 |
|
||
|
| code | string | 属性代码 |
|
||
|
| createTime | string | 创建时间 |
|
||
|
| createUser | string | 创建人 |
|
||
|
|
||
|
查询成功时,响应如下:
|
||
|
|
||
|
```
|
||
|
{
|
||
|
"clock": "2023-06-25 20:00:00.000",
|
||
|
"status": "ok",
|
||
|
"data": [
|
||
|
{
|
||
|
productCode:"088+089ART-MW",
|
||
|
familyCode:"ART550-144MHA",
|
||
|
processGroupId:0,
|
||
|
crysTypeId:38,
|
||
|
crysTypeDesc:"单晶",
|
||
|
crysTypeValue:"M",
|
||
|
busbarTypeId:37,
|
||
|
busbarTypeDesc:"11BB",
|
||
|
busbarTypeValue:"11BB",
|
||
|
cellQty:144,
|
||
|
cellQtyDesc:"144",
|
||
|
cellQtyValue:"144",
|
||
|
modSpecId:49,
|
||
|
modSpecDesc:"2279*1134*35",
|
||
|
modSpecValue:"2279*1134*35",
|
||
|
processType:39,
|
||
|
processTypedesc:"单玻组件",
|
||
|
processTypeValue:"单玻组件",
|
||
|
featureCode:9,
|
||
|
featureCodeDesc:"P",
|
||
|
featureCodeValue:"P",
|
||
|
modWeight:"",
|
||
|
fgCode:"",
|
||
|
createDate:"2022-01-10 23:10:01.890",
|
||
|
lastUpdate:"2022-01-16 22:24:32.273",
|
||
|
lastUpdateuser:"mesadmin",
|
||
|
serialCodeRule:"DM405M10-54HSW",
|
||
|
palletCodeRule:"DM405M10-54HSW-bz",
|
||
|
attrs:[
|
||
|
{
|
||
|
id:"7add1e54-d99e-4432-8175-c5afd80ae058",
|
||
|
attributeId:"Product_GLASS_TYPE",
|
||
|
attributeDesc:"玻璃类型",
|
||
|
productCode:"088+089ART-MW",
|
||
|
description:"双玻",
|
||
|
code:"双玻",
|
||
|
createTime:"2023-06-07 14:59:06.800",
|
||
|
createUser:""
|
||
|
},
|
||
|
{
|
||
|
id:"c671f463-5f66-4b99-9083-44fe9293a83e",
|
||
|
attributeId:"Product_PACK_QTY",
|
||
|
attributeDesc:"包装数量",
|
||
|
productCode:"088+089ART-MW",
|
||
|
description:"31",
|
||
|
code:"31",
|
||
|
createTime:"2023-06-07 14:59:06.800",
|
||
|
createUser:""
|
||
|
}
|
||
|
],
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
```
|
||
|
|
||
|
查询报错:
|
||
|
|
||
|
```
|
||
|
{
|
||
|
"clock": "2023-06-25 20:00:00.000",
|
||
|
"status": "exception",
|
||
|
"message": "查询错误",
|
||
|
"data": {}
|
||
|
}
|
||
|
```
|