| | |
| | | |
| | | Boolean isDoctor = true; |
| | | string s = null; |
| | | |
| | | |
| | | //如果有记录类型,判断是不是医院类型 |
| | | if (String.isNotBlank(recordTypeId)) { |
| | | System.debug('recordTypeId = ' + recordTypeId); |
| | |
| | | |
| | | //说明无需加密 |
| | | 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; |
| | |
| | | } |
| | | } |
| | | 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; |
| | | } |
| | | } |
| | | } |