| | |
| | | |
| | | System.Test.startTest(); |
| | | Database.executeBatch(new ConsumablesApplyOrLendBatch(),1); |
| | | strategicDep[0].OwnerId = user[1].Id; |
| | | strategicDep[0].Department_Class_Label__c = '其他'; |
| | | update strategicDep; |
| | | Database.executeBatch(new ConsumablesApplyOrLendBatch(strategicDep[0].id),1); |
| | | // 20220805 ljh update start |
| | | // strategicDep[0].OwnerId = user[1].Id; |
| | | // strategicDep[0].Department_Class_Label__c = '其他'; |
| | | // update strategicDep; |
| | | // Database.executeBatch(new ConsumablesApplyOrLendBatch(strategicDep[0].id),1); |
| | | // 20220805 ljh update end |
| | | System.Test.stopTest(); |
| | | } |
| | | |
| | |
| | | List<User> user = [select Id,Name,Job_Category__c from User where IsActive = true AND Job_Category__c = '销售服务']; |
| | | // List<User> user1 = [select Id,Name from User where IsActive = true AND Job_Category__c = '销售服务']; |
| | | strategicDep[0].OwnerId = user[0].Id; |
| | | strategicDep[0].Department_Class_Label__c = '普外科'; |
| | | // strategicDep[0].Department_Class_Label__c = '普外科';// 20220805 ljh update |
| | | update strategicDep; |
| | | |
| | | hospital.FSE_GI_Main_Leader__c = user[1].Id; |
| | |
| | | |
| | | System.Test.startTest(); |
| | | Database.executeBatch(new ConsumablesApplyOrLendBatch(),1); |
| | | strategicDep[0].OwnerId = user[1].Id; |
| | | strategicDep[0].Department_Class_Label__c = '其他'; |
| | | update strategicDep; |
| | | Database.executeBatch(new ConsumablesApplyOrLendBatch(strategicDep[0].id),1); |
| | | // 20220805 ljh update start |
| | | // strategicDep[0].OwnerId = user[1].Id; |
| | | // strategicDep[0].Department_Class_Label__c = '其他'; |
| | | // update strategicDep; |
| | | // Database.executeBatch(new ConsumablesApplyOrLendBatch(strategicDep[0].id),1); |
| | | // 20220805 ljh update end |
| | | System.Test.stopTest(); |
| | | } |
| | | |
| | |
| | | |
| | | insert ra1; |
| | | List<Rental_Apply__c> raList = [SELECT id,OwnerId,Approver_of_Service_Department__c,Strategic_user__c,Strategic_dept__c,ShareStrategicUser__c FROM Rental_Apply__c WHERE Id = :ra1.Id ]; |
| | | |
| | | strategicDep[0].OwnerId = u1.Id; |
| | | strategicDep[0].Department_Class_Label__c = '普外科'; |
| | | update strategicDep; |
| | | |
| | | // 20220805 ljh update start |
| | | // strategicDep[0].OwnerId = u1.Id; |
| | | // strategicDep[0].Department_Class_Label__c = '普外科'; |
| | | // update strategicDep; |
| | | // 20220805 ljh update end |
| | | |
| | | hospital.FSE_GI_Main_Leader__c = u2.Id; |
| | | hospital.FSE_SP_Main_Leader__c = u2.Id; |