From 07390e2fcb4adf27c928335bf27ae7939c5a80ad Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期二, 23 五月 2023 11:28:12 +0800
Subject: [PATCH] bakcup20230523

---
 force-app/main/default/classes/PCLLostProduct2AssetHandlerTest.cls |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/force-app/main/default/classes/PCLLostProduct2AssetHandlerTest.cls b/force-app/main/default/classes/PCLLostProduct2AssetHandlerTest.cls
index cc5aa84..6a2230c 100644
--- a/force-app/main/default/classes/PCLLostProduct2AssetHandlerTest.cls
+++ b/force-app/main/default/classes/PCLLostProduct2AssetHandlerTest.cls
@@ -36,6 +36,11 @@
         depart2.Hospital__c         = company1.Id;
 
         insert new Account[] {depart1, depart2};
+
+        String recordtypeid = '01210000000aMAE';
+        if (NFMUtil.isSandbox()) {
+            recordtypeid = '01210000000aMAE';
+        }
         List<Product2> prdList = new List<Product2>();
         Product2 prd1 = new Product2();
         prd1.ProductCode_Ext__c     = 'HistoryPrd1';
@@ -45,6 +50,8 @@
         prd1.Manual_Entry__c        = true;
         prd1.Category5__c = '绔炰簤瀵规墜';
         prd1.Brand_Name__c = 'STORZ';
+        prd1.recordTypeId = recordtypeid; //20230221涓婄嚎鏀逛负鈥�01210000000aMAE鈥欙紝涓婂畬杩樺師recordtypeid
+        //绔炲搧涓绘満  姝e紡鐜01210000000aMAE   stagefull鐜0129D000001NacD  partial鐜01210000000aMAE
         // prd1.Lost_By_Company__c= 'STORZ'; //add tcm 20211213
 
         Product2 prd2 = new Product2();
@@ -55,6 +62,7 @@
         prd2.Manual_Entry__c        = true;
         prd2.Category5__c = '绔炰簤瀵规墜';
         prd2.Brand_Name__c = 'STORZ';
+        prd2.recordTypeId = recordtypeid;
         // prd2.Lost_By_Company__c= 'STORZ'; //add tcm 20211213
 
         insert new Product2[] {prd1, prd2};

--
Gitblit v1.9.1