From 01f207d979d6be17c8cdec293feab48828c0ec3e Mon Sep 17 00:00:00 2001
From: 黄千龙 <huangqianlong@prec-tech.com>
Date: 星期五, 08 四月 2022 14:22:52 +0800
Subject: [PATCH] Merge branch 'master' of http://47.92.229.245:8089/r/OlyMEBG

---
 force-app/main/default/classes/OFSInsReportLayoutControllerTest.cls |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/force-app/main/default/classes/OFSInsReportLayoutControllerTest.cls b/force-app/main/default/classes/OFSInsReportLayoutControllerTest.cls
index fcec175..83e40d5 100644
--- a/force-app/main/default/classes/OFSInsReportLayoutControllerTest.cls
+++ b/force-app/main/default/classes/OFSInsReportLayoutControllerTest.cls
@@ -43,7 +43,8 @@
             //Profile prof = [select Id from Profile where Name ='901_缁忛攢鍟嗙ぞ鍖烘櫘閫氭潈闄恄2閲嶉獙璇�'];
             User loginUser = [Select Id, Alias, Province__c from User where Id =: UserInfo.getUserId()];
             loginUser.Job_Category__c = '閿�鍞湇鍔�';
-            update loginUser;
+            //update loginUser;
+            loginUser = [Select Id, Alias, Province__c from User where Job_Category__c = '閿�鍞湇鍔�' limit 1];
 
             ir = new Inspection_Report__c(Name = '*', Inspection_Date__c = inspectionDate, Hospital__c = hp.Id);
             ir.recordtypeId = [Select Id FROM RecordType WHERE IsActive = true and SobjectType = 'Inspection_Report__c' and DeveloperName = 'EndoscopeSystem'].id;
@@ -261,8 +262,10 @@
         Test.startTest();
         TestRepo repo = new TestRepo();
         repo.createInspectionReport(null);
+        
         repo.initAssets();
         repo.sqlIr();
+        
         String wrongId = repo.ir.Id;
         wrongId = wrongId.substring(0, 14) + wrongId.substring(13, 14);
         Apexpages.currentPage().getParameters().put('id', wrongId);

--
Gitblit v1.9.1