From 5b5c1e16deaa3a9d6d0ed1ffca390655ed103df7 Mon Sep 17 00:00:00 2001 From: buli <137736985@qq.com> Date: 星期五, 14 七月 2023 14:56:14 +0800 Subject: [PATCH] lex community --- force-app/main/default/classes/LexSaleOrderController.cls | 16 ++++------------ 1 files changed, 4 insertions(+), 12 deletions(-) diff --git a/force-app/main/default/classes/LexSaleOrderController.cls b/force-app/main/default/classes/LexSaleOrderController.cls index d9693a9..a4fbc59 100644 --- a/force-app/main/default/classes/LexSaleOrderController.cls +++ b/force-app/main/default/classes/LexSaleOrderController.cls @@ -32,11 +32,7 @@ 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]; @@ -259,11 +255,7 @@ } 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) { @@ -285,7 +277,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); + 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) { @@ -1325,4 +1317,4 @@ return null; } } -} +} \ No newline at end of file -- Gitblit v1.9.1