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/LexInventoryController.cls | 20 ++++---------------- 1 files changed, 4 insertions(+), 16 deletions(-) diff --git a/force-app/main/default/classes/LexInventoryController.cls b/force-app/main/default/classes/LexInventoryController.cls index 909cdb8..7380b26 100644 --- a/force-app/main/default/classes/LexInventoryController.cls +++ b/force-app/main/default/classes/LexInventoryController.cls @@ -157,11 +157,7 @@ String userId = UserInfo.getUserId(); //String userId = '00510000006k82X'; //String userId = '00510000005QO75'; - user Useracc = [ - SELECT Accountid, Work_Location__c, UserPro_Type__c - FROM user - WHERE id = :userId - ]; + user Useracc = [SELECT Accountid, Work_Location__c, UserPro_Type__c FROM user WHERE id = :userId]; accountid = Useracc.Accountid; userWorkLocation = Useracc.Work_Location__c; agencyProType = Useracc.UserPro_Type__c; @@ -169,11 +165,7 @@ agencyProType = 'ET'; } sqlagencyProType = '%' + agencyProType + '%'; - Account accountInfo = [ - SELECT Name, Dealer_discount__c - FROM account - WHERE id = :accountid - ]; + Account accountInfo = [SELECT Name, Dealer_discount__c FROM account WHERE id = :accountid]; accountName = accountInfo.Name; consumableorderdetailsRecords = new List<ConsumableorderdetailsInfo>(); Map<String, Product2__c> midMap = new Map<String, Product2__c>(); @@ -1288,11 +1280,7 @@ try { insert Po; eSetId = Po.id; - List<Consumable_order__c> Consumable_order = [ - SELECT Name - FROM Consumable_order__c - WHERE id = :Po.id - ]; + List<Consumable_order__c> Consumable_order = [SELECT Name FROM Consumable_order__c WHERE id = :Po.id]; List<Consumable_orderdetails__c> InsList = new List<Consumable_orderdetails__c>(); List<Consumable_order_details2__c> InsListUp = new List<Consumable_order_details2__c>(); List<Consumable_order_details2__c> updListAdjust = new List<Consumable_order_details2__c>(); @@ -1482,4 +1470,4 @@ return returnValue; } } -} +} \ No newline at end of file -- Gitblit v1.9.1