From 7560140a14a60e949e6130d98225297e84f0a198 Mon Sep 17 00:00:00 2001
From: GWY <guweiyiscp096@foxmail.com>
Date: 星期三, 06 四月 2022 17:22:30 +0800
Subject: [PATCH] class

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

diff --git a/force-app/main/default/classes/SBG019Rest.cls b/force-app/main/default/classes/SBG019Rest.cls
index 95b0e69..0307f9a 100644
--- a/force-app/main/default/classes/SBG019Rest.cls
+++ b/force-app/main/default/classes/SBG019Rest.cls
@@ -22,7 +22,7 @@
 
         public String ProductCode;//鐗╂枡
         public String ProductDate;//鐩戠浜у搧鏈�鏃╃敓浜ф棩鏈�
-
+        public String StorageDate;//鐩戠浜у搧鍏ュ簱鏃ユ湡
     }
 
 
@@ -153,7 +153,7 @@
         String result = '';
     	//鏍规嵁浜у搧Code鏌ヨ浜у搧淇℃伅
     	List<Product2> getProductList = 
-    				[SELECT Id, Name, ProductCode,demoteer_Sap__c 
+    				[SELECT Id, Name, ProductCode,demoteer_Sap__c,Diedatvanink__c 
     				FROM Product2 
     				WHERE ProductCode 
     				IN:satisfyGeDataDetailMap.keyset() 
@@ -168,8 +168,10 @@
 			if (productMap.containsKey(productCode)) {
 				GeDataDetails geDataDetails = satisfyGeDataDetailMap.get(productCode);
 				Date demoteer_Sap = NFMUtil.parseStr2Date(geDataDetails.ProductDate, false);
+                Date Diedatvanink = NFMUtil.parseStr2Date(geDataDetails.StorageDate, false);
             	Product2  product = productMap.get(productCode);
             	product.demoteer_Sap__c = demoteer_Sap;
+                product.Diedatvanink__c = Diedatvanink;
 
             	productMap.put(productCode,product);
                 result += 'productCode [ ' + productCode + ' ]\n';  

--
Gitblit v1.9.1