From 3962c2bb0435484b60a3e408e4738d792e249a53 Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期一, 05 六月 2023 11:09:55 +0800
Subject: [PATCH] LEX CommunityNewCmp
---
force-app/main/default/classes/LexConsumableAccountInfoController.cls | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 49 insertions(+), 0 deletions(-)
diff --git a/force-app/main/default/classes/LexConsumableAccountInfoController.cls b/force-app/main/default/classes/LexConsumableAccountInfoController.cls
new file mode 100644
index 0000000..09f8d19
--- /dev/null
+++ b/force-app/main/default/classes/LexConsumableAccountInfoController.cls
@@ -0,0 +1,49 @@
+public without sharing class LexConsumableAccountInfoController {
+ //鍒濆鍖�
+ @AuraEnabled
+ public static ResponseBodyLWC init(String accId) {
+ ResponseBodyLWC res = new ResponseBodyLWC();
+ Map<String, object> data = new Map<String, object>();
+ res.entity = data;
+ Account obj = new Account();
+ if (accId != null) {
+ List<Account> accList = [
+ SELECT
+ Id,
+ Name,
+ Owner.Name,
+ Site,
+ Alias_Name2__c,
+ Grade__c,
+ OCM_Category__c,
+ Is_Active__c,
+ Ban_On_Use_Reason__c,
+ Attribute_Type__c,
+ Speciality_Type__c,
+ State_Master__r.Name,
+ City_Master__r.Name,
+ Town__c,
+ Street__c,
+ Address_Together__c,
+ Phone,
+ PhoneCall__c,
+ Fax,
+ Postal_Code__c,
+ Parent.Name,
+ Address__c
+ FROM Account
+ WHERE Id = :accId
+ ];
+ if (accList != null && accList.size() > 0) {
+ obj = accList.get(0);
+ }
+ }else {
+ return new ResponseBodyLWC('Error', 500, 'accId涓虹┖', '');
+ }
+ data.put('obj', obj);
+ res.status = 'Success';
+ res.code = 200;
+ res.msg = '';
+ return res;
+ }
+}
\ No newline at end of file
--
Gitblit v1.9.1