|  |  |  | 
|---|
|  |  |  | public String ClinicalCode;    //型号规格 | 
|---|
|  |  |  | //2019/11/28 End | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //20220329 WLIG-CCTA6G you | 
|---|
|  |  |  | public String CertificateNo;//3C证书编号 | 
|---|
|  |  |  | public String EffectiveFrom;//3C证书效期从 | 
|---|
|  |  |  | public String EffectiveTo;//3C证书效期至 | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @HttpPost | 
|---|
|  |  |  | 
|---|
|  |  |  | Map<String, Product_Register_Link__c> prlinkMap = new Map<String, Product_Register_Link__c>(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 产品 | 
|---|
|  |  |  | List<Product2> productList = [select id, ProductCode,ProduceCompany__c,ProduceCompany2__c,ProduceCompany3__c,M_BC_Stop_manufacure__c from Product2 where ProductCode = :productNoList]; | 
|---|
|  |  |  | List<Product2> productList = [select id, ProductCode,ProduceCompany__c,ProduceCompany2__c,ProduceCompany3__c,M_BC_Stop_manufacure__c,CertificateNo__c,EffectiveFrom__c,EffectiveTo__c from Product2 where ProductCode = :productNoList]; | 
|---|
|  |  |  | for (Product2 product : productList) { | 
|---|
|  |  |  | productMap.put(product.ProductCode, product); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | // 20220329 WLIG-CCTA6G you start | 
|---|
|  |  |  | //MaterialStatusType为空时,产品注册证和产品都更新 | 
|---|
|  |  |  | if(String.isBlank(data.MaterialStatusType) && upd_productMap.containsKey(data.MaterialNo)){ | 
|---|
|  |  |  | prd = upd_productMap.get(data.MaterialNo); | 
|---|
|  |  |  | prd.CertificateNo__c = data.CertificateNo; | 
|---|
|  |  |  | prd.EffectiveFrom__c = NFMUtil.parseStr2Date(data.EffectiveFrom, false); | 
|---|
|  |  |  | prd.EffectiveTo__c = NFMUtil.parseStr2Date(data.EffectiveTo, false); | 
|---|
|  |  |  | upd_productMap.put(data.MaterialNo, prd); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | // 20220329 WLIG-CCTA6G you end | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //logstr += ups_registerMap; | 
|---|
|  |  |  | system.debug('ups_registerMap--->'+ups_registerMap); | 
|---|
|  |  |  | if (upd_productMap.keySet().size() > 0) update upd_productMap.values(); | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return prd; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|