From 00e147ec892cb1e89d0698787a8c60da1014cdb7 Mon Sep 17 00:00:00 2001
From: binxie <137736985@qq.com>
Date: 星期一, 26 六月 2023 17:42:22 +0800
Subject: [PATCH] Community升级

---
 force-app/main/default/classes/ArriveGoodsController.cls |   41 ++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 40 insertions(+), 1 deletions(-)

diff --git a/force-app/main/default/classes/ArriveGoodsController.cls b/force-app/main/default/classes/ArriveGoodsController.cls
index e83e417..1b94b33 100644
--- a/force-app/main/default/classes/ArriveGoodsController.cls
+++ b/force-app/main/default/classes/ArriveGoodsController.cls
@@ -500,6 +500,8 @@
         }
         //ApexPages.addmessage(new ApexPages.message(ApexPages.severity.INFO, '绠$悊缂栫爜涓虹┖鐨勪骇鍝� ' + ErrorIdMap));
         //鏁翠綋鍒拌揣
+        System.debug('EsetId===>'+EsetId);
+        System.debug('ArrType===>'+ArrType);
         if(EsetId == null || EsetId == ''){
             if(ArrType!='ReG'){
                 //鍒拌揣浣嗕骇鍝佺被鍨嬩笌鐢ㄦ埛鐨勭被鍨嬩笉绗�            
@@ -538,6 +540,42 @@
                         }
                     }
                 }
+                System.debug('reSet1===>'+reSet1);
+                //add by Wang Xueqin 
+                          //鍒拌揣浣嗕骇鍝佺被鍨嬩笌鐢ㄦ埛鐨勭被鍨嬩笉绗�            
+                          reSet1 = [SELECT Id,Name,Intra_Trade_List_RMB__c,Asset_Model_No__c,
+                          Consumable_Product__c,Consumable_Product__r.Name,
+                          Consumable_Product__r.Name__c,Consumable_Product__r.Asset_Model_No__c,
+                          Sterilization_limit__c,Deliver_date__c,Bar_Code__c,
+                          Arrive_date__c,Send_Date__c,Consumable_order_minor__r.Name,
+                          Consumable_order_minor__c,Dealer_Arrive__c,
+                          Guarantee_period_for_products__c,CFDA_Status__c,
+                          ProductPacking_list_manual__c,Report_Product_Approbation__c,
+                          Report_Product_Expiration__c,Box_Piece__c, Rrturn_count__c,
+                          Product_Type__c
+                          ,ContractNo_text__c
+                          ,Consumable_order_minor__r.ContractNo__c
+                  FROM Consumable_order_details2__c
+                  WHERE Bar_Code__c  in :BarCodeListP
+                  AND ( not Product_Type__c  like :userPro_Typestr)
+                 ];
+
+          if(reSet1.size()>0){
+              for (Integer i = 0; i < reSet1.size(); i++) {
+                  if(ErrorIdMap.containsKey(reSet1[i].Bar_Code__c)){
+                      // 璺宠繃宸茬粡澶勭悊鐨勬秷鑰楀搧鏄庣粏
+                      continue;
+                  }else{
+                      String str = '浜у搧绫诲瀷['+reSet1[i].Product_Type__c+']涓庣敤鎴风殑绫诲瀷['+userPro_Type+']涓嶇';
+                      ConsumableorderdetailsRecordserror.add(new ConsumableorderdetailsInfo(reSet1[i],str));
+                      ErrorIdMap.put(reSet1[i].Bar_Code__c,reSet1[i].Bar_Code__c);
+                  }
+              }
+          }
+          System.debug('reSet1===>1'+reSet1);
+        //end
+
+
                 //閿�鍞骇鍝�
                 reSet1 = [SELECT Id,  Name,Consumable_Product__r.Name__c,
                                 Consumable_Product__c,Consumable_Product__r.Name, Sterilization_limit__c,
@@ -1179,7 +1217,8 @@
                         AND TracingCode__c in :barMcodeMap.values()
                         AND Bar_Code__c not in :barMcodeMap.keySet()
                         ORDER BY Name ];
-
+            System.debug('barMcodeMap1:'+barMcodeMap.values());
+            System.debug('barMcodeMap2s:'+barMcodeMap.keySet());
             if(reSet.size()>0){
                 for (Integer i = 0; i < reSet.size(); i++) {
                     if(ExistIdMap.containsKey(reSet[i].Bar_Code__c) || ErrorIdMap.containsKey(reSet[i].Bar_Code__c)){

--
Gitblit v1.9.1