| | |
| | | List<Repair__c> recptList = [select |
| | | Id, Name, Workshop__c, SalesOfficeCode__c, |
| | | Repair_Detail__c, RepairSource__c, On_site_repair__c, PaperRepairRequestNo__c, |
| | | Failure_Occurrence_Date__c,Failure_Occurrence_Date2__c, On_Site_Repair_Order_Date__c, Send_To_RC_Date__c, |
| | | Failure_Occurrence_Date__c, On_Site_Repair_Order_Date__c, Send_To_RC_Date__c, |
| | | Hospital__r.Management_Code__c, Account__r.Management_Code__c, Dealer__r.Management_Code__c, |
| | | Incharge_Staff__r.alias, Incharge_Staff_Email__c, Incharge_Staff_Contact__c, Incharge_Staff_Contact__r.Name, CreatedBy.Alias, CreatedBy.Email, |
| | | Delivered_Product__r.Product2.Asset_Model_No__c, Delivered_Product__r.SerialNumber, Delivered_Product__r.LastSFDCRepairNo__c, |
| | |
| | | // 原則非同期ですので、logsを確認する必要がないでしょう。 |
| | | if (status == 'OK') { |
| | | rowData.retry_cnt__c = 0; |
| | | //add wangweipeng 2022/02/18 start |
| | | //如果为true,证明是重新发送的接口,需要把日志记录下 |
| | | if(needUpdateIflog){ |
| | | logstr += 'Status:' + status; |
| | | logstr += '\nResponse:' + responseBody; |
| | | logstr += '\nend'; |
| | | } |
| | | //add wangweipeng 2022/02/18 start |
| | | } else { |
| | | if (rowData.retry_cnt__c == null) rowData.retry_cnt__c = 0; |
| | | if (rowData.retry_cnt__c < batch_retry_max_cnt) { |