From 1b3fb93f787b8b546a307bf063183f5295d183f8 Mon Sep 17 00:00:00 2001
From: binxie <137736985@qq.com>
Date: 星期一, 26 六月 2023 16:53:25 +0800
Subject: [PATCH] merge

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

diff --git a/force-app/main/default/classes/SaleOrderController.cls b/force-app/main/default/classes/SaleOrderController.cls
index 8a4faf4..e8c3067 100644
--- a/force-app/main/default/classes/SaleOrderController.cls
+++ b/force-app/main/default/classes/SaleOrderController.cls
@@ -222,10 +222,12 @@
         List<hospitalprice__c> hpList = [select id,hospital__c,product__c from hospitalprice__c where account__c = :accountid];
         if (hpList!= null && hpList.size() > 0) {
             for (hospitalprice__c hp : hpList) {
-                proIdMap.put((''+hp.product__c).subString(0,15)+'鏄�', '');
-                if (hp.hospital__c ==coc.Order_ForHospital__c) {
-                    proHosMap.put((''+hp.product__c).subString(0,15)+'鏄�', '');
-                }
+                if(hp.product__c!=null && String.valueof(hp.product__c).length()>=15){//Add by Li Jun for issue fix 20230403 
+                    proIdMap.put((''+hp.product__c).subString(0,15)+'鏄�', '');
+                    if (hp.hospital__c ==coc.Order_ForHospital__c) {
+                        proHosMap.put((''+hp.product__c).subString(0,15)+'鏄�', '');
+                    }
+                }               
             }
         }
 

--
Gitblit v1.9.1