| | |
| | | raIdSet.add(raes.Rental_Apply__c); |
| | | } |
| | | //20220920 ljh update SWAG-CHM5E4 end |
| | | // 20221220 ljh DB202212267051 add Split_Apply_Reason__c |
| | | List<Rental_Apply__c> rtlList = |
| | | [select id, RA_Status__c, OPDPlan__c from Rental_Apply__c where OPDPlan__c in :OpdRtlList]; |
| | | [select id, RA_Status__c, OPDPlan__c,Split_Apply_Reason__c from Rental_Apply__c where OPDPlan__c in :OpdRtlList]; |
| | | //取出备品借出状态不是草案中,申请中,取消的取消延期数据放入map |
| | | for (Rental_Apply__c rtl : rtlList) { |
| | | //20221007 ljh update SWAG-CHM5E4 start |
| | |
| | | // OPD计划-所有备品Map |
| | | rtl3Set.add(rtl.OPDPlan__c); |
| | | } |
| | | if(raIdSet.contains(rtl.Id)){ |
| | | // 20221220 ljh DB202212267051 start |
| | | // 品申请上“分单理由”为“到货NG分单”和“追加附属品分单”,自动延期一次,超期不取消。 |
| | | // if(raIdSet.contains(rtl.Id)){ |
| | | if(raIdSet.contains(rtl.Id) || (String.isNotBlank(rtl.Split_Apply_Reason__c) && (rtl.Split_Apply_Reason__c == '到货NG分单' || rtl.Split_Apply_Reason__c == '追加附属品分单'))){ |
| | | // 20221220 ljh DB202212267051 start |
| | | rtlMap.put(rtl.OPDPlan__c, rtl); |
| | | } |
| | | //20221007 ljh update SWAG-CHM5E4 end |