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/LexNewAndEditContactPIPLController.cls | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/force-app/main/default/classes/LexNewAndEditContactPIPLController.cls b/force-app/main/default/classes/LexNewAndEditContactPIPLController.cls index 8bf9000..5844afa 100644 --- a/force-app/main/default/classes/LexNewAndEditContactPIPLController.cls +++ b/force-app/main/default/classes/LexNewAndEditContactPIPLController.cls @@ -11,7 +11,7 @@ Boolean isDoctor = true; string s = null; - + //濡傛灉鏈夎褰曠被鍨嬶紝鍒ゆ柇鏄笉鏄尰闄㈢被鍨� if (String.isNotBlank(recordTypeId)) { System.debug('recordTypeId = ' + recordTypeId); @@ -38,8 +38,8 @@ //璇存槑鏃犻渶鍔犲瘑 if (String.isNotBlank(rid)) { - List<Contact> contact = [select Id,RecordTypeId from Contact where Id=:rid]; - if(String.isNotBlank(contact[0].RecordTypeId)){ + List<Contact> contact = [SELECT Id, RecordTypeId FROM Contact WHERE Id = :rid]; + if (String.isNotBlank(contact[0].RecordTypeId)) { s = Schema.SObjectType.Contact.getRecordTypeInfosById().get(contact[0].RecordTypeId).getDeveloperName(); if (s == 'Agency' || s == 'Internal_staff') { isDoctor = false; @@ -49,11 +49,11 @@ } } ResponseBodyLWC rbl = LexNewAndEditBasePIPLController.initData(rid, recordTypeId, sobjectType); - if(rbl.status == 'Success'){ - data = (Map<String,Object>)rbl.entity; + if (rbl.status == 'Success') { + data = (Map<String, Object>) rbl.entity; data.put('isDoctor', isDoctor); rbl.entity = data; } return rbl; } -} \ No newline at end of file +} -- Gitblit v1.9.1