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/NewConsumApplyEquipSetDetailController.cls |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/force-app/main/default/classes/NewConsumApplyEquipSetDetailController.cls b/force-app/main/default/classes/NewConsumApplyEquipSetDetailController.cls
index 52bbc36..251c272 100644
--- a/force-app/main/default/classes/NewConsumApplyEquipSetDetailController.cls
+++ b/force-app/main/default/classes/NewConsumApplyEquipSetDetailController.cls
@@ -23,6 +23,9 @@
     public String requiredErrorMsg{set;get;}
     public String sobjecttypeForFrontEnd{set;get;}
     public String sobjectPrefix{set;get;}
+    //zhj MEBG鏂版柟妗堟敼閫� 2022-11-29 start
+    public String staticResourceV2 {get; set;}
+    //zhj MEBG鏂版柟妗堟敼閫� 2022-11-29 end
     public NewConsumApplyEquipSetDetailController(ApexPages.StandardController controller) {
         isNewMode = true;
         isCloneMode = false;
@@ -56,6 +59,9 @@
         fieldAPIToLabelMapStr = JSON.serialize(fieldAPIToLabelMap);
         PIHelper.PIIntegration piIntegration =PIHelper.getPIIntegrationInfo('Consum_Apply_Equipment_Set_Detail__c');
         staticResource = JSON.serialize(piIntegration);
+        //zhj MEBG鏂版柟妗堟敼閫� 2022-11-29 start
+        staticResourceV2 = JSON.serialize(PIHelper.getPIIntegrationInfo('Consum_Apply_Equipment_Set_Detail__cV2'));
+        //zhj MEBG鏂版柟妗堟敼閫� 2022-11-29 end
         encryptedAPIList = piIntegration.PIFields;
         sobjectPrefix = piIntegration.sobjectPrefix;
     }
@@ -87,9 +93,14 @@
                 if(String.isNotBlank(fieldValue)&&fieldValue.contains('T')){
                     fieldValue = fieldValue.replace('T',' ');
                     consumApplyInfo.put(fieldAPI, Datetime.valueOfGmt(fieldValue));
+                //20220405 By ChenYanan Start
+                }else if(String.isNotBlank(fieldValue))  {
+                    fieldValue = fieldValue.replace('/', '-') + ':00';
+                    consumApplyInfo.put(fieldAPI, Datetime.valueOf(fieldValue));
+                //20220405 By ChenYanan End
                 }else{
                     consumApplyInfo.put(fieldAPI, null);
-                }                    
+                }               
             }else if(String.valueof(fielddataType)=='CURRENCY'|| String.valueof(fielddataType)=='PERCENT'||String.valueOf(fielddataType)=='Number'||String.valueOf(fielddataType)=='DOUBLE' ){
                 consumApplyInfo.put(fieldAPI, (String.isBlank(fieldValue)||String.isEmpty(fieldValue))?0:Decimal.valueOf(fieldValue)); 
             } else if(String.valueof(fielddataType)=='BOOLEAN'){

--
Gitblit v1.9.1