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 |   12 ++----------
 1 files changed, 2 insertions(+), 10 deletions(-)

diff --git a/force-app/main/default/classes/LexConInvoiceViewController.cls b/force-app/main/default/classes/LexConInvoiceViewController.cls
index f36b7a4..42fc3cb 100644
--- a/force-app/main/default/classes/LexConInvoiceViewController.cls
+++ b/force-app/main/default/classes/LexConInvoiceViewController.cls
@@ -102,11 +102,7 @@
         }
         userId = UserInfo.getUserId();
         List<user> Useracc = new List<user>();
-        Useracc = [
-            SELECT accountid, Work_Location__c, UserPro_Type__c
-            FROM user
-            WHERE id = :userId
-        ];
+        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;
@@ -392,11 +388,7 @@
         //         attachmentRecoeds.add(new InvoiceOrderInfo(attachmentinfo[i]));
         //     }
         // }
-        List<ContentDocumentLink> links = [
-            SELECT Id, ContentDocumentId
-            FROM ContentDocumentLink
-            WHERE LinkedEntityId = :invoiceId
-        ];
+        List<ContentDocumentLink> links = [SELECT Id, ContentDocumentId FROM ContentDocumentLink WHERE LinkedEntityId = :invoiceId];
         if (links != null && links.size() > 0) {
             List<String> documentIds = new List<String>();
             for (ContentDocumentLink link : links) {

--
Gitblit v1.9.1