From 80a3f59e2d3df07805bc67e329300b8de90a5b3a Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期二, 11 七月 2023 14:13:08 +0800
Subject: [PATCH] Merge branch 'LEXCommunityLiJun' into LEXUpgrade2023-Deloitte

---
 force-app/main/default/classes/LexCancelRemoveBoxController.cls |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/force-app/main/default/classes/LexCancelRemoveBoxController.cls b/force-app/main/default/classes/LexCancelRemoveBoxController.cls
index 24ddae3..a1d4c44 100644
--- a/force-app/main/default/classes/LexCancelRemoveBoxController.cls
+++ b/force-app/main/default/classes/LexCancelRemoveBoxController.cls
@@ -45,7 +45,11 @@
 
         String 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;
@@ -53,7 +57,11 @@
             agencyProType = 'ET';
         }
         userPro_Typestr = '%' + agencyProType + '%';
-        List<account> accountInfo = [SELECT Name FROM account WHERE id = :accountid];
+        List<account> accountInfo = [
+            SELECT Name
+            FROM account
+            WHERE id = :accountid
+        ];
         //String view_product = accountInfo[0].view_product__c;
         accountName = accountInfo[0].Name;
         //proidList = view_product.split(',');
@@ -713,6 +721,7 @@
         }
     }
 
+    @TestVisible
     class ConsumableorderdetailsInfo implements Comparable {
         public Consumable_order_details2__c esd { get; set; }
         public Product2__c Prod { get; set; }
@@ -761,4 +770,4 @@
             return null;
         }
     }
-}
\ No newline at end of file
+}

--
Gitblit v1.9.1