From cd730d0b1a775abacfba06003bb58327d5d1fb3c Mon Sep 17 00:00:00 2001
From: 黄千龙 <huangqianlong@prec-tech.com>
Date: 星期四, 02 二月 2023 12:23:31 +0800
Subject: [PATCH] 同步数据

---
 force-app/main/default/classes/NFM211Rest.cls |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/force-app/main/default/classes/NFM211Rest.cls b/force-app/main/default/classes/NFM211Rest.cls
index 414f84b..9adb02e 100644
--- a/force-app/main/default/classes/NFM211Rest.cls
+++ b/force-app/main/default/classes/NFM211Rest.cls
@@ -386,7 +386,12 @@
         if(String.isNotBlank(infoH.Description)){
             tempPH.Description__c = infoH.Description;
             //鍚嶇О 淇冮攢鏀跨瓥鍚嶇О =鏂规鎻忚堪
-            tempPH.name = infoH.Description;
+            String tempName = infoH.Description;
+            if(tempName.length()>80){
+                tempPH.name = tempName.substring(0, 80);
+            }else{
+                tempPH.name = tempName;
+            }
         }
         //淇冮攢鏂规鍏蜂綋鍐呭
         if(String.isNotBlank(infoH.Memo)){
@@ -457,7 +462,12 @@
             if(String.isNotBlank(infoP.Model)&&infoP.Quantity!=null){
                 tempPP.PromotionHead__c = pHeadMap.get(infoH.SpoID);
                 tempPP.Asset_Model_No__c = infoP.Model;
-                tempPP.name = infoP.Model;
+                String tempName = infoP.Model;
+                if(tempName.length()>80){
+                    tempPP.name = tempName.substring(0, 80);
+                }else{
+                    tempPP.name = tempName;
+                }
                 //鏁伴噺
                 tempPP.Quantity__c = infoP.Quantity;
                 return tempPP;

--
Gitblit v1.9.1