From 9909cdba659d1933abb3c63e9cc5dc7e719f90e6 Mon Sep 17 00:00:00 2001
From: sunxia <sunxia@prec-tech.com>
Date: 星期五, 11 三月 2022 14:30:34 +0800
Subject: [PATCH] OBPM 上线比较文件差异注释解开

---
 force-app/main/default/classes/EquipmentSetShippmentReceived2Controller.cls |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/force-app/main/default/classes/EquipmentSetShippmentReceived2Controller.cls b/force-app/main/default/classes/EquipmentSetShippmentReceived2Controller.cls
index c028ad4..63fb18a 100644
--- a/force-app/main/default/classes/EquipmentSetShippmentReceived2Controller.cls
+++ b/force-app/main/default/classes/EquipmentSetShippmentReceived2Controller.cls
@@ -114,7 +114,7 @@
                        Asset__r.Remark__c, Asset__r.ImageAsset__c, Asset__r.ImageSerial__c, Asset__r.ImageAssetUploadedTime__c, Asset__r.ImageSerialUploadedTime__c,
                        Loaner_CDS_Info__c, Inspection_result__c, Check_lost_Item__c, Pre_disinfection__c, Water_leacage_check__c, Inspection_result_after__c, Arrival_in_wh__c,
                        Asset__r.Pre_Reserve_RAES_Detail__c, Asset__r.Pre_Reserve_RAES_Detail__r.After_Inspection_time__c,
-                       Inspection_result_after_ng__c, Inspection_result_ng__c, Lost_item_giveup__c, CDS_complete__c, Loaner_accsessary__c
+                       Inspection_result_after_ng__c, Inspection_result_ng__c, Lost_item_giveup__c, CDS_complete__c, Loaner_accsessary__c, Pre_NG_abord_reason__c
                   from Rental_Apply_Equipment_Set_Detail__c
                  where Rental_Apply_Equipment_Set__c in :esIds
                    and Cancel_Select__c = False
@@ -201,7 +201,8 @@
 
         //妫�鏌ユ槸鍚﹀彲浠ョ户缁�
         Rental_Apply__c RaTar = [select Campaign__c,Repair__c,next_action__c,QIS_number__r.ReplaceDeliveryDate__c,demo_purpose2__c,Follow_UP_Opp__r.Shipping_Finished_Day_Func__c,
-                                                Campaign__r.Status,repair__r.Return_Without_Repair_Date__c,Repair__r.Repair_Final_Inspection_Date__c,Repair__r.Repair_Shipped_Date__c
+                                                Campaign__r.Status,repair__r.Return_Without_Repair_Date__c,Repair__r.Repair_Final_Inspection_Date__c,Repair__r.Repair_Shipped_Date__c,
+                                                Campaign__r.IF_Approved__c, Campaign__r.Meeting_Approved_No__c
                                             from Rental_Apply__c 
                                             where id=:Raid];
 
@@ -232,6 +233,13 @@
                 return null;
            }
         //1822 yc 20211108 end
+
+        //20220225 sx start obpm 涓嬫灦澧炲姞 鏄惁鐢宠鍐宠鍕剧潃娌℃湁鍐宠缂栧彿涓嶈兘杩涜鎿嶄綔
+        else if ( RaTar.Campaign__c!= null &&  RaTar.Campaign__r.IF_Approved__c && RaTar.Campaign__r.Meeting_Approved_No__c == null){
+            ApexPages.addmessage(new ApexPages.message(ApexPages.severity.Error, '宸茬敵璇峰喅瑁佷絾鍐宠缂栫爜涓虹┖'));
+            return null;
+        }
+        //20220225 sx end 涓嬫灦澧炲姞鍒ゆ柇
         
         String userid = Userinfo.getUserId();
         List<Rental_Apply_Equipment_Set_Detail__c> eList = new List<Rental_Apply_Equipment_Set_Detail__c>();

--
Gitblit v1.9.1