| | |
| | | public String ReturnType;//返品方式 |
| | | public String UpdateStatus;//直返修改标识 |
| | | //add by wangweipeng 2021/07/14 end |
| | | //add pi 加密 sushanhu 20220222 start |
| | | public String DataId;//AWS存储凭证 |
| | | //add pi 加密 sushanhu 20220222 end |
| | | } |
| | | ////NFM103修改Rest end |
| | | |
| | |
| | | ,Returns_Product_way__c //返品方式 |
| | | ,FSE_ApplyForRepair_time__c //申请修理时间 |
| | | //add by wangweipeng 2021/07/14 start |
| | | |
| | | ,AWS_Data_Id__c //add by sushanhu AWSDateID for PIPL |
| | | from Repair__c where Id IN :repairIds]; // 削除データを検索しないはず、All ROWS いらないはず |
| | | System.debug(Logginglevel.DEBUG, 'NFM103_ recptList.size()=' + recptList.size()); |
| | | |
| | |
| | | element.Postal = rpr.address_ZipCode__c; //邮编 |
| | | element.ReturnType = NFMUtil.getMapValue(ReturnsProductWayMap,'Returns_Product_way__c', rpr.Returns_Product_way__c, iflog);//返品方式 |
| | | element.UpdateStatus = rpr.Address_type__c; //申请修理时间 |
| | | //add by wangweipeng 2021/07/14 start |
| | | //add by wangweipeng 2021/07/14 end |
| | | //add pi 密文 sushanhu 20220222 start |
| | | element.DataId =rpr.AWS_Data_Id__c;//aws存储凭证 |
| | | //add pi 密文 sushanhu 20220222 end |
| | | |
| | | } |
| | | |
| | | if (repairRequest.GeneralData.size() > 0) { |
| | |
| | | // NFM103修改Rest end |
| | | |
| | | // WLIG-BXQBH6 start |
| | | NFMUtil.response response = |
| | | NFMUtil.sendToSapStatusAndBody(rowDataStr, NFMUtil.NFM103_ENDPOINT); |
| | | status = response.status; |
| | | // NFMUtil.response response = |
| | | // NFMUtil.sendToSapStatusAndBody(rowDataStr, NFMUtil.NFM103_ENDPOINT); |
| | | //update to aws 20220222 sushanhu start for PIPL |
| | | NFMUtil.response res = NFMUtil.getAwsToken(); |
| | | String token=res.responseBody; |
| | | if(String.isBlank(token)){ |
| | | iflog.ErrorLog__c='NFM103'+'获取aws token 失败'; |
| | | |
| | | } |
| | | NFMUtil.response response = NFMUtil.sendToPiAWS(rowDataStr, NFMUtil.NFM103_ENDPOINT,token); |
| | | //update to aws 20220222 sushanhu end for PIPL |
| | | status = response.status; |
| | | system.debug('AWS Response status:'+status); |
| | | ResponseBody = response.responseBody; |
| | | //update to aws 20220302 sushanhu start for PIPL |
| | | Map<String, Object> results = (Map<String, Object>)JSON.deserializeUntyped(ResponseBody); |
| | | system.System.debug('NGM103 AWS result--'+ ResponseBody); |
| | | //update to aws 20220302 sushanhu end for PIPL |
| | | NFM103Response NFM103Response = new NFM103Response(); |
| | | system.debug(ResponseBody); |
| | | if (string.isNotEmpty(ResponseBody)) { |