From 36d15f189de2e83ce2576715dac30c3c260388dd Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期五, 14 七月 2023 14:47:50 +0800
Subject: [PATCH] fixconflict

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

diff --git a/force-app/main/default/classes/LexConInvoiceViewController.cls b/force-app/main/default/classes/LexConInvoiceViewController.cls
index 5a2f230..b67d39d 100644
--- a/force-app/main/default/classes/LexConInvoiceViewController.cls
+++ b/force-app/main/default/classes/LexConInvoiceViewController.cls
@@ -102,6 +102,32 @@
         }
         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;
@@ -122,6 +148,7 @@
             FROM Agency_Hospital_Link__c
             WHERE Agency__c = :accountId
         ];
+>>>>>>> LEXCommunityLiJun
         // 鏂拌
         if (invoiceId == null || invoiceId == '') {
             if (deliveryId == null || deliveryId == '') {
@@ -388,7 +415,15 @@
         //         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) {
@@ -399,7 +434,11 @@
                 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]));
@@ -629,8 +668,13 @@
                     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;
@@ -729,8 +773,13 @@
                     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);
@@ -1680,4 +1729,8 @@
             return null;
         }
     }
-}
\ No newline at end of file
+<<<<<<< HEAD
+}
+=======
+}
+>>>>>>> LEXCommunityLiJun

--
Gitblit v1.9.1