MES标准开放接口
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.
 

6.8 KiB

查询产品详情(GetProduct)

此接口用于查询产品详情


基本信息

方法:POST

URL: http://localhost:8033/open/GetProduct


请求

请求参数

参数名 类型 必填 说明
profile string 厂区代码
productCode string 产品编码

示例 1:查询产品信息

{
	"data": {
		profile: "测试厂区",
		productCode: "088+089ART-MW",
	}
}

响应

响应字段

字段 类型 说明
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-07-05 10:40:59.173",
    "status": "ok",
    "data": {
        "info": {
            "productCode": "test001",
            "familyCode": "label_code",
            "processGroupId": 0,
            "crysTypeId": 38,
            "crysTypeDesc": "单晶",
            "crysTypeValue": "M",
            "busbarTypeId": 132,
            "busbarTypeDesc": "grid_describe",
            "busbarTypeValue": "grid_code",
            "cellQty": 122,
            "cellQtyDesc": "122",
            "cellQtyValue": "122",
            "cellColorId": 0,
            "cellColorDesc": "N/A",
            "cellColorValue": "N/A",
            "modSpecId": 69,
            "modSpecDesc": "1722*1134*30",
            "modSpecValue": "1722*1134*30",
            "modWeight": "N/A",
            "fgCode": "N/A",
            "createDate": "2023-06-07 09:52:49.030",
            "lastUpdate": "2023-06-07 10:12:54.623",
            "lastUpdateuser": "mesadmin",
            "processType": 8,
            "processTypedesc": "双玻组件",
            "processTypeValue": "双玻组件",
            "featureCode": 9,
            "featureCodeDesc": "P",
            "featureCodeValue": "P",
            "serialCodeRule": "编码N型",
            "palletCodeRule": "保密包装",
            "attrs": [
                {
                    "id": "c35d36c0-773b-4e6e-9d77-1f05988694a5",
                    "attributeId": "Product_1231333",
                    "attributeDesc": "颜色1",
                    "productCode": "test001",
                    "description": "111",
                    "code": "111",
                    "createTime": "2023/6/7 14:59:06",
                    "createTimeLucid": "2023-06-07 14:59:06.777",
                    "createUser": null
                },
                {
                    "id": "0c682acf-a9a8-4a71-8d05-b3a264ae6137",
                    "attributeId": "Product_BACK_TYPE",
                    "attributeDesc": "背板类型",
                    "productCode": "test001",
                    "description": "背板",
                    "code": "背板",
                    "createTime": "2023/6/7 14:59:06",
                    "createTimeLucid": "2023-06-07 14:59:06.787",
                    "createUser": null
                },
                {
                    "id": "714d564f-5380-403d-aba2-5916f0022693",
                    "attributeId": "Product_CELL_SIZE",
                    "attributeDesc": "产品电池片尺寸",
                    "productCode": "test001",
                    "description": "123",
                    "code": "123",
                    "createTime": "2023/6/7 14:59:06",
                    "createTimeLucid": "2023-06-07 14:59:06.783",
                    "createUser": null
                },
                {
                    "id": "75847d78-000f-4dda-ad5a-37164ff99a82",
                    "attributeId": "Product_FRAME_TYPE",
                    "attributeDesc": "边框类型",
                    "productCode": "test001",
                    "description": "无框组件",
                    "code": "W",
                    "createTime": "2023/6/7 14:59:06",
                    "createTimeLucid": "2023-06-07 14:59:06.787",
                    "createUser": null
                },
                {
                    "id": "7add1e54-d99e-4432-8175-c5afd80ae058",
                    "attributeId": "Product_GLASS_TYPE",
                    "attributeDesc": "玻璃类型",
                    "productCode": "test001",
                    "description": "双玻",
                    "code": "双玻",
                    "createTime": "2023/6/7 14:59:06",
                    "createTimeLucid": "2023-06-07 14:59:06.800",
                    "createUser": null
                },
                {
                    "id": "92ebfd31-8e24-4367-a6e1-4335ce69cf32",
                    "attributeId": "Product_MOD_TYPE",
                    "attributeDesc": "产品组件类型",
                    "productCode": "test001",
                    "description": "123",
                    "code": "123",
                    "createTime": "2023/6/7 14:59:06",
                    "createTimeLucid": "2023-06-07 14:59:06.800",
                    "createUser": null
                }
            ]
        }
    }
}

查询报错:

{
  "clock": "2023-06-25 20:00:00.000",
  "status": "exception",
  "message": "查询产品详情失败",
  "data": {}
}