From 0c4796706fc9473d069b620321a54b20a119906c Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期二, 11 七月 2023 14:16:44 +0800
Subject: [PATCH] Merge branch 'LEXUpgrade2023-Deloitte'

---
 force-app/main/default/classes/LexSaleOrderController.cls |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/force-app/main/default/classes/LexSaleOrderController.cls b/force-app/main/default/classes/LexSaleOrderController.cls
index 23b9d5a..d9693a9 100644
--- a/force-app/main/default/classes/LexSaleOrderController.cls
+++ b/force-app/main/default/classes/LexSaleOrderController.cls
@@ -32,7 +32,11 @@
         res.entity = data;
 
         String UserName = UserInfo.getUserId();
-        user useracc = [SELECT Accountid, Work_Location__c FROM user WHERE id = :UserName];
+        user useracc = [
+            SELECT Accountid, Work_Location__c
+            FROM user
+            WHERE id = :UserName
+        ];
         accountid = useracc.Accountid;
         userWorkLocation = useracc.Work_Location__c;
         Account accountInfo = [SELECT Name FROM account WHERE id = :accountid];
@@ -255,7 +259,11 @@
         }
         Map<String, String> proHosMap = new Map<String, String>();
         Map<String, String> proIdMap = new Map<String, String>();
-        List<hospitalprice__c> hpList = [SELECT id, hospital__c, product__c FROM hospitalprice__c WHERE account__c = :accountid];
+        List<hospitalprice__c> hpList = [
+            SELECT id, hospital__c, product__c
+            FROM hospitalprice__c
+            WHERE account__c = :accountid
+        ];
         if (hpList != null && hpList.size() > 0) {
             for (hospitalprice__c hp : hpList) {
                 if (hp.product__c != null && String.valueof(hp.product__c).length() >= 15) {
@@ -277,6 +285,7 @@
                     errorIdMap.put(newdet2[j].Bar_Code__c, newdet2[j].Bar_Code__c);
                 }
                 if (coc.OutPattern__c == true) {
+                    System.debug('testPattern:' + newdet2[j].Product_Pattern__c + '---' + orderdetails[i].Product_Pattern__c);
                     if (newdet2[j].Product_Pattern__c == orderdetails[i].Product_Pattern__c) {
                         //add by rentx 2021-03-22 start
                         if (newdet2[j].exchangeOutPattern__c == true) {

--
Gitblit v1.9.1