From a48ed9f335db52a433a2b343ff9636a28ee8a97f Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期四, 10 三月 2022 18:53:59 +0800
Subject: [PATCH] New xml file for PIPL20220310
---
force-app/main/default/classes/LastbuyProductHandlerTest.cls | 32 ++++++++++++++++++++++++++++++++
1 files changed, 32 insertions(+), 0 deletions(-)
diff --git a/force-app/main/default/classes/LastbuyProductHandlerTest.cls b/force-app/main/default/classes/LastbuyProductHandlerTest.cls
index 6bb9229..cd8bd02 100644
--- a/force-app/main/default/classes/LastbuyProductHandlerTest.cls
+++ b/force-app/main/default/classes/LastbuyProductHandlerTest.cls
@@ -7,9 +7,41 @@
pro.LastbuyProductFLG__c = false;
insert pro;
+ Product2 pro1 = new Product2();
+ pro1.Name = 'Testname0216';
+ pro1.LastbuyProductFLG__c = false;
+ insert pro1;
+
LastbuyProduct__c lbp = new LastbuyProduct__c();
lbp.Name = 'Test0215';
lbp.ProductName__c = pro.Id;
+ lbp.effectiveFLG__c = true;
insert lbp;
+
+ lbp.effectiveFLG__c = false;
+ update lbp;
+
+ lbp.effectiveFLG__c = true;
+ update lbp;
+
+ LastbuyProduct__c lbp1 = new LastbuyProduct__c();
+ lbp1.Name = 'Test0216';
+ lbp1.ProductName__c = pro1.Id;
+ lbp1.effectiveFLG__c = true;
+ insert lbp1;
+
+ LastbuyProduct__c lbp2 = new LastbuyProduct__c();
+ lbp2.Name = 'Test0217';
+ lbp2.ProductName__c = pro1.Id;
+ lbp2.effectiveFLG__c = true;
+ insert lbp2;
+
+ lbp1.effectiveFLG__c = false;
+ update lbp1;
+
+ lbp2.ProductName__c = pro.Id;
+ update lbp2;
+
}
+
}
\ No newline at end of file
--
Gitblit v1.9.1