| | |
| | | // HWAG-BG682M start |
| | | ' isUpdateOwnerInform__c = true and ' + |
| | | // HWAG-BG682M end |
| | | ' Salesdepartment_HP__c = \'' + salesdepartment + '\''; |
| | | ' Id = \'' + salesdepartment + '\''; |
| | | // ' Salesdepartment_HP__c = \'' + salesdepartment + '\''; |
| | | } |
| | | system.debug('=====query:' + query); |
| | | return Database.getQueryLocator(query); |
| | |
| | | Map<id, List<String>> LeaderShareInsert = new Map<id, List<String>>(); |
| | | |
| | | List<String> AllLeaderShareNameList = new List<String>(); |
| | | List<String> AllLeaderShareNameList1 = new List<String>(); |
| | | |
| | | Map<String, String> teamRoleMap = new Map<String, String>(); |
| | | |
| | |
| | | List<String> DeptUsrList = new List<String>(); |
| | | for (String UsrName : acc.BF_Product_Leader__c.split('[,\\,]')) { |
| | | NameListunPrase.add(UsrName); |
| | | |
| | | String UsrName1 = UsrName.replaceAll(' ', ''); //zyh 2022-10-09 |
| | | AllLeaderShareNameList1.add(UsrName1); |
| | | AllLeaderShareNameList.add(UsrName); |
| | | teamRoleMap.put(UsrName, '推广担当'); |
| | | |
| | |
| | | //检索所有担当人 |
| | | //讲昵称和id进行配对 |
| | | List<User> loopUser = [select id, Alias__c from user where Alias__c in:AllLeaderShareNameList]; |
| | | List<User> loopUser1 = [select id,Name, Alias__c,Name_test__c from user where Name_test__c in:AllLeaderShareNameList1]; |
| | | System.debug('ceshi11111111=========='+loopUser1); |
| | | Map<String, id> allLearUserMap = new Map<String, id>(); |
| | | Map<id, String> allLearidUserMap = new Map<id, String>(); |
| | | |