From e6068da47c1bef5517c9e5fdc8c726766867ad4e Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期五, 14 七月 2023 15:10:02 +0800
Subject: [PATCH] Merge branch 'master' into LEXUpgrade2023-Deloitte

---
 force-app/main/default/classes/LexConInvoiceViewController.cls |   53 -----------------------------------------------------
 1 files changed, 0 insertions(+), 53 deletions(-)

diff --git a/force-app/main/default/classes/LexConInvoiceViewController.cls b/force-app/main/default/classes/LexConInvoiceViewController.cls
index b67d39d..42fc3cb 100644
--- a/force-app/main/default/classes/LexConInvoiceViewController.cls
+++ b/force-app/main/default/classes/LexConInvoiceViewController.cls
@@ -102,32 +102,6 @@
         }
         userId = UserInfo.getUserId();
         List<user> Useracc = new List<user>();
-<<<<<<< HEAD
-        Useracc = [
-            SELECT accountid, Work_Location__c, UserPro_Type__c
-            FROM user
-            WHERE id = :userId
-        ];
-        accountid = Useracc[0].accountid;
-        userWorkLocation = Useracc[0].Work_Location__c;
-        agencyProType = Useracc[0].UserPro_Type__c;
-        if (String.isBlank(Useracc[0].UserPro_Type__c)) {
-            agencyProType = 'ET';
-        }
-        coc = new Consumable_order__c();
-
-        Dealerelationship = [
-            SELECT Dealer_subordinate__c, Dealer_subordinate__r.Name
-            FROM Dealer_elationship__c
-            WHERE Dealer_principal__c = :accountid
-        ];
-        List<Agency_Hospital_Link__c> AgencyHospitalLink = new List<Agency_Hospital_Link__c>();
-        AgencyHospitalLink = [
-            SELECT Id, Name, Hospital__c, Hospital__r.Id, Hospital__r.Name, Agency__c
-            FROM Agency_Hospital_Link__c
-            WHERE Agency__c = :accountId
-        ];
-=======
         Useracc = [SELECT accountid, Work_Location__c, UserPro_Type__c FROM user WHERE id = :userId];
         accountid = Useracc[0].accountid;
         userWorkLocation = Useracc[0].Work_Location__c;
@@ -148,7 +122,6 @@
             FROM Agency_Hospital_Link__c
             WHERE Agency__c = :accountId
         ];
->>>>>>> LEXCommunityLiJun
         // 鏂拌
         if (invoiceId == null || invoiceId == '') {
             if (deliveryId == null || deliveryId == '') {
@@ -415,15 +388,7 @@
         //         attachmentRecoeds.add(new InvoiceOrderInfo(attachmentinfo[i]));
         //     }
         // }
-<<<<<<< HEAD
-        List<ContentDocumentLink> links = [
-            SELECT Id, ContentDocumentId
-            FROM ContentDocumentLink
-            WHERE LinkedEntityId = :invoiceId
-        ];
-=======
         List<ContentDocumentLink> links = [SELECT Id, ContentDocumentId FROM ContentDocumentLink WHERE LinkedEntityId = :invoiceId];
->>>>>>> LEXCommunityLiJun
         if (links != null && links.size() > 0) {
             List<String> documentIds = new List<String>();
             for (ContentDocumentLink link : links) {
@@ -434,11 +399,7 @@
                 FROM ContentVersion
                 WHERE ContentDocumentId IN :documentIds
             ];
-<<<<<<< HEAD
 
-=======
-            
->>>>>>> LEXCommunityLiJun
             if (cvInfo.size() > 0) {
                 for (Integer i = 0; i < cvInfo.size(); i++) {
                     attachmentRecoeds.add(new InvoiceOrderInfo(cvInfo[i]));
@@ -668,13 +629,8 @@
                     invoiceHead.Order_ForDealer__c = SecondDealer;
                 }
                 invoiceHead.Order_ForDealerText__c = coc.Order_ForDealerText__c;
-<<<<<<< HEAD
                 if (Test.isRunningTest()) {
                     invoiceHead.Order_ForHospital__c = null;
-=======
-                if(Test.isRunningTest()){
-                    invoiceHead.Order_ForHospital__c  = null;
->>>>>>> LEXCommunityLiJun
                 }
                 insert invoiceHead;
                 invoiceId = invoiceHead.Id;
@@ -773,13 +729,8 @@
                     invoiceHead.Order_ForDealer__c = SecondDealer;
                 }
                 invoiceHead.Order_ForDealerText__c = coc.Order_ForDealerText__c;
-<<<<<<< HEAD
                 if (Test.isRunningTest()) {
                     invoiceHead.Order_ForHospital__c = null;
-=======
-                if(Test.isRunningTest()){
-                    invoiceHead.Order_ForHospital__c  = null;
->>>>>>> LEXCommunityLiJun
                 }
                 insert invoiceHead;
                 System.debug('invoiceHead = ' + invoiceHead);
@@ -1729,8 +1680,4 @@
             return null;
         }
     }
-<<<<<<< HEAD
 }
-=======
-}
->>>>>>> LEXCommunityLiJun

--
Gitblit v1.9.1