From d8dc84a3d56df839895f1c417a4d9cbee763d262 Mon Sep 17 00:00:00 2001
From: 高章伟 <gaozhangwei@prec-tech.com>
Date: 星期五, 03 三月 2023 14:50:59 +0800
Subject: [PATCH] gzw 测试环境代码更新
---
force-app/main/default/classes/ConsumablesApplyOrLendBatchTest.cls | 32 ++++++++++++++++++--------------
1 files changed, 18 insertions(+), 14 deletions(-)
diff --git a/force-app/main/default/classes/ConsumablesApplyOrLendBatchTest.cls b/force-app/main/default/classes/ConsumablesApplyOrLendBatchTest.cls
index dc81d30..053d148 100644
--- a/force-app/main/default/classes/ConsumablesApplyOrLendBatchTest.cls
+++ b/force-app/main/default/classes/ConsumablesApplyOrLendBatchTest.cls
@@ -138,10 +138,12 @@
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();
}
@@ -180,7 +182,7 @@
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;
@@ -197,10 +199,12 @@
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();
}
@@ -245,11 +249,11 @@
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;
--
Gitblit v1.9.1