| | |
| | | //URF限次合同2期 xxf 20220811 start |
| | | public String Series; |
| | | //URF限次合同2期 xxf 20220811 end |
| | | |
| | | //再注册分析 需求 新增字段 20220811 |
| | | public String Reanalysis; |
| | | |
| | |
| | | iflog = [Select Id, Name from BatchIF_Log__c where Id = :iflog.Id]; |
| | | System.debug(Logginglevel.DEBUG, 'NFM103_' + iflog.Name + ' start'); // callout の中 end のlogを出します |
| | | // 20220902 ljh XLIU-CHSD8G update start |
| | | // NFM103Controller.callout(iflog.Id, rprIds, null); |
| | | // NFM103Controller.callout(iflog.Id, rprIds); |
| | | String uid = UserInfo.getUserId(); |
| | | String BUid = System.Label.Batch_User_Id; |
| | | System.debug('zheli'); |
| | |
| | | NFM103Controller.callout(iflog.Id, rprIds, null); |
| | | } |
| | | // 20220902 ljh XLIU-CHSD8G update end |
| | | |
| | | } |
| | | System.debug('-----NFM103Trigger end'); |
| | | } |
| | |
| | | * |
| | | * @param iflog_Id ログテーブルのId |
| | | * @param repairIds 送信対象修理 |
| | | * @param reanalysisFlag 再注册分析使用 --- 再修理分析状态 |
| | | */ |
| | | @future (callout = true) |
| | | public static void callout(String iflog_Id, List<Id> repairIds, String reanalysisFlag) { |
| | | calloutNotfuture( iflog_Id, repairIds, reanalysisFlag); |
| | | public static void callout(String iflog_Id, List<Id> repairIds, String flag) { |
| | | calloutNotfuture(iflog_Id, repairIds, flag); |
| | | } |
| | | //20220902 ljh 新增(复制callout)方法 |
| | | public static void calloutNotfuture(String iflog_Id, List<Id> repairIds, String reanalysisFlag) { |
| | | //20220902 ljh 新增(复制)方法 XLIU-CHSD8G |
| | | public static void calloutNotfuture(String iflog_Id, List<Id> repairIds,String flag) { |
| | | |
| | | if (repairIds == null || repairIds.size() == 0) { |
| | | return; |
| | | } |
| | |
| | | element.Address = rpr.Detailed_Address__c; //详细地址 |
| | | element.Postal = rpr.address_ZipCode__c; //邮编 |
| | | element.ReturnType = NFMUtil.getMapValue(ReturnsProductWayMap,'Returns_Product_way__c', rpr.Returns_Product_way__c, iflog);//返品方式 |
| | | // modify by liu 20220909 再注册项目NFM103接口连通测试时追加对应 start |
| | | // element.UpdateStatus = rpr.Address_type__c; //申请修理时间 |
| | | if (String.isNotBlank(reanalysisFlag)) { |
| | | element.UpdateStatus = 'X'; //申请修理时间 |
| | | } else { |
| | | element.UpdateStatus = rpr.Address_type__c; //申请修理时间 |
| | | } |
| | | // modify by liu 20220909 再注册项目NFM103接口连通测试时追加对应 end |
| | | |
| | | element.UpdateStatus = rpr.Address_type__c; //申请修理时间 |
| | | //add by wangweipeng 2021/07/14 end |
| | | //add pi 密文 sushanhu 20220222 start |
| | | element.DataId =rpr.AWS_Data_Id__c;//aws存储凭证 |
| | |
| | | element.OfferRental =rpr.Offer_Rental_New__c ? 'X':''; //是否提供备品(NEW) |
| | | //XLIU-CGAD3Z 【委托】备品相关字段传输至SAP LY 20220714 end |
| | | //URF限次合同2期 xxf 20220811 start |
| | | if (rpr.Maintenance_Contract__r.URF_Contract__c == true && rpr.Delivered_Product__r.Product2.ProductURF__c !=null) { |
| | | element.Series =rpr.Delivered_Product__r.Product2.ProductURF__r.URFLimitSerial__c =='URF-P'?'P':'V'; //限次合同系列 |
| | | }else{ |
| | | element.Series =null; |
| | | if (!String.isBlank(rpr.Maintenance_Contract__c)){ |
| | | if (rpr.Maintenance_Contract__r.URF_Contract__c == true && rpr.Delivered_Product__r.Product2.ProductURF__c !=null) { |
| | | element.Series =rpr.Delivered_Product__r.Product2.ProductURF__r.URFLimitSerial__c =='URF-P'?'P':'V'; //限次合同系列 |
| | | }else{ |
| | | element.Series =null; |
| | | } |
| | | } |
| | | |
| | | //URF限次合同2期 xxf 20220811 end |
| | | rprId = rpr.Id; //2022-07-14 zyh add |
| | | |
| | | //再注册分析 需求 新增字段 20220811 sx start |
| | | element.Reanalysis = reanalysisFlag; |
| | | //再注册分析 需求 新增字段 20220811 sx end |
| | | element.Reanalysis = flag; |
| | | |
| | | if(flag != null){ |
| | | element.UpdateStatus = 'X'; |
| | | } |
| | | //再注册分析 需求 新增字段 20220811 sx end |
| | | |
| | | } |
| | | |