From e3984fbbf370bf5925250a75bfb6154b4a16685c Mon Sep 17 00:00:00 2001 From: buli <137736985@qq.com> Date: 星期二, 11 四月 2023 14:04:00 +0800 Subject: [PATCH] bakcup --- 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 eb8a1ab..31dba36 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