| | |
| | | AccountId |
| | | from Contact |
| | | where CManageCode__c IN: PersonManagementCodeList |
| | | OR Account.PlatformCode__c IN: ManagementList |
| | | OR Account.Management_Code__c IN: SFDCCodeList |
| | | OR Account.Parent_PlatformCode__c IN: ManagementList |
| | | OR Account.Parent_Management_Code__c IN: SFDCCodeList]; //根据人员管理编码检索联系人 |
| | | Map < String, Contact > peopleMap = new Map < String, Contact > (); //联系人 |
| | |
| | | //因为没有医院管理编码,无法检索到战略科室,所以在给科室的战略科室字段赋值时空指针 |
| | | //dpt.Department_Class__c = DepartmentClassMap.get(gedata.DepartmentClass).Id; |
| | | //dpt.ParentId = DepartmentClassMap.get(gedata.DepartmentClass).Id; |
| | | dpt.Department_Class__c = DepartmentClassMap.get(gedata.DepartmentClass).Id; |
| | | dpt.ParentId = DepartmentClassMap.get(gedata.DepartmentClass).Id; |
| | | if (string.isnotblank(personCode)) { //人员管理编码存在 |
| | | if (peopleMap.containsKey(personCode)) { //人员管理编码查找有值 13 完成 |
| | | System.debug('13逻辑'); |