| | |
| | | nObj.DeliverySlip_Text__c = nObj.DeliverySlip__c; |
| | | nObj.Return_DeliverySlip_Text__c = nObj.Return_DeliverySlip__c; |
| | | nObj.Received_Confirm_Text__c = nObj.Received_Confirm_F__c; |
| | | // SFDC更新导致问题的对应(暂定方案) 20230307 by lc Start |
| | | nObj.Rental_Apply_Object__c = nObj.Rental_Apply__c; |
| | | // SFDC更新导致问题的对应(暂定方案) 20230307 by lc End |
| | | Rental_Apply_Equipment_Set_Detail__c oObj = null; |
| | | if (Trigger.isUpdate) { |
| | | oObj = oldMap.get(nObj.Id); |
| | |
| | | ORDER BY Rental_Apply__c, Rental_Apply_Equipment_Set__c, Name]; |
| | | // 收集回寄明细 {raesId -> raesdList} |
| | | Map<Id, List<Rental_Apply_Equipment_Set_Detail__c>> raesdListMap = new Map<Id, List<Rental_Apply_Equipment_Set_Detail__c>>(); |
| | | Map<Id, Rental_Apply__c> return_DeliverySlipIdMap = new Map<Id, Rental_Apply__c>(); |
| | | Map<Id, FixtureDeliverySlip__c> return_DeliverySlipMap = new Map<Id, FixtureDeliverySlip__c>(); |
| | | for (Rental_Apply_Equipment_Set_Detail__c raesd : raesdList) { |
| | | if (!raesdListMap.containsKey(raesd.Rental_Apply_Equipment_Set__c)) { |
| | | raesdListMap.put(raesd.Rental_Apply_Equipment_Set__c, new List<Rental_Apply_Equipment_Set_Detail__c>()); |
| | | } |
| | | return_DeliverySlipIdMap.put(raesd.Return_DeliverySlip__c, raesd.Rental_Apply__r); |
| | | |
| | | raesdListMap.get(raesd.Rental_Apply_Equipment_Set__c).add(raesd); |
| | | /* --------- 设置运输单Map Start --------- */ |
| | | if (return_DeliverySlipMap.containsKey(raesd.Rental_Apply__c) == false) { |