From bfca7a84bec815da594f1d12558535ed06d2490b Mon Sep 17 00:00:00 2001
From: 沙世明 <shashiming@prec-tech.com>
Date: 星期二, 13 九月 2022 09:57:32 +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