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/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