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.1 KiB

修改产品(UpdateProduct)编码

此接口用于修改产品


基本信息

方法:POST

URL: http://localhost:8033/open/UpdateProduct


请求

请求参数

参数名 类型 必填 说明
profile string 厂区代码
productCode string 产品编码
descriptions string 产品描述
familyCode string 标签形式
processGroupId int 组件绑定生产流程id
crysTypeId int 晶体类型-id
busbarTypeId int 栅线类型-id
cellQty int 电池片数量-id
modSpecId int 组件规格-id
processType int 工艺类型-id
featureCode int 产品特征-id
modWeight string 组件重量
fgCode string

示例 1:修改一个产品基本字段

{
	"data": {
		"profile": "测试",
		"productCode": "088+089ART-MW",
        "descriptions":"产品描述",
		"familyCode": "ART550-144MHA",
		"processGroupId": 34,
		"crysTypeId": 12,
		"busbarTypeId": 31,
		"cellQty": 64,
		"modSpecId": 345,
		"processType": 22,
		"featureCode": 34,
		"modWeight": "",
		"fgCode": "",
	}
}

响应

执行成功时,响应如下:

{
    "clock": "2023-07-05 13:58:49.886",
    "status": "ok",
    "data": {
        "info": {
            "productCode": "088+089ART-MW",
            "descriptions":"产品描述",
            "familyCode": "ART550-144MHA",
            "processGroupId": 0,
            "crysTypeId": 12,
            "crysTypeDesc": "12BB",
            "crysTypeValue": "12BB",
            "busbarTypeId": 31,
            "busbarTypeDesc": "78",
            "busbarTypeValue": "78",
            "cellQty": 0,
            "cellQtyDesc": "D",
            "cellQtyValue": "D",
            "cellColorId": 0,
            "cellColorDesc": "N/A",
            "cellColorValue": "N/A",
            "modSpecId": 13,
            "modSpecDesc": "2465*1134*35",
            "modSpecValue": "2465*1134*35",
            "modWeight": "",
            "fgCode": "",
            "createDate": "2022-01-10 23:10:01.890",
            "lastUpdate": "2023-07-05 13:58:49.843",
            "lastUpdateuser": "",
            "processType": 22,
            "processTypedesc": "A",
            "processTypeValue": "A",
            "featureCode": 34,
            "featureCodeDesc": "OK",
            "featureCodeValue": "OK",
            "serialCodeRule": "",
            "palletCodeRule": "",
            "attrs": [
                {
                    "id": null,
                    "attributeId": null,
                    "attributeDesc": "颜色1",
                    "productCode": null,
                    "description": null,
                    "code": null,
                    "createTime": "0001/1/1 0:00:00",
                    "createTimeLucid": "0001-01-01 00:00:00.000",
                    "createUser": null
                },
                {
                    "id": null,
                    "attributeId": null,
                    "attributeDesc": "背板类型",
                    "productCode": null,
                    "description": null,
                    "code": null,
                    "createTime": "0001/1/1 0:00:00",
                    "createTimeLucid": "0001-01-01 00:00:00.000",
                    "createUser": null
                },
                {
                    "id": null,
                    "attributeId": null,
                    "attributeDesc": "产品电池片尺寸",
                    "productCode": null,
                    "description": null,
                    "code": null,
                    "createTime": "0001/1/1 0:00:00",
                    "createTimeLucid": "0001-01-01 00:00:00.000",
                    "createUser": null
                },
                {
                    "id": null,
                    "attributeId": null,
                    "attributeDesc": "边框类型",
                    "productCode": null,
                    "description": null,
                    "code": null,
                    "createTime": "0001/1/1 0:00:00",
                    "createTimeLucid": "0001-01-01 00:00:00.000",
                    "createUser": null
                },
                {
                    "id": null,
                    "attributeId": null,
                    "attributeDesc": "玻璃类型",
                    "productCode": null,
                    "description": null,
                    "code": null,
                    "createTime": "0001/1/1 0:00:00",
                    "createTimeLucid": "0001-01-01 00:00:00.000",
                    "createUser": null
                },
                {
                    "id": null,
                    "attributeId": null,
                    "attributeDesc": "产品组件类型",
                    "productCode": null,
                    "description": null,
                    "code": null,
                    "createTime": "0001/1/1 0:00:00",
                    "createTimeLucid": "0001-01-01 00:00:00.000",
                    "createUser": null
                },
                {
                    "id": null,
                    "attributeId": null,
                    "attributeDesc": "包装数量",
                    "productCode": null,
                    "description": null,
                    "code": null,
                    "createTime": "0001/1/1 0:00:00",
                    "createTimeLucid": "0001-01-01 00:00:00.000",
                    "createUser": null
                },
                {
                    "id": null,
                    "attributeId": null,
                    "attributeDesc": "仓库属性",
                    "productCode": null,
                    "description": null,
                    "code": null,
                    "createTime": "0001/1/1 0:00:00",
                    "createTimeLucid": "0001-01-01 00:00:00.000",
                    "createUser": null
                }
            ]
        }
    }
}

执行报错:

{
  "clock": "2023-06-25 20:00:00.000",
  "status": "exception",
  "message": "修改产品失败",
  "data": {}
}