From da42e2995c00293af89c71fe5ba6e16cbb77e1b3 Mon Sep 17 00:00:00 2001 From: binxie <137736985@qq.com> Date: 星期五, 16 六月 2023 17:24:31 +0800 Subject: [PATCH] backup code --- force-app/main/default/classes/LexUpAccountProLimit.cls | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/force-app/main/default/classes/LexUpAccountProLimit.cls b/force-app/main/default/classes/LexUpAccountProLimit.cls index c7288c6..7f195d7 100644 --- a/force-app/main/default/classes/LexUpAccountProLimit.cls +++ b/force-app/main/default/classes/LexUpAccountProLimit.cls @@ -24,6 +24,7 @@ system.debug('userPro_Type' + userPro_Type); String checkResoultstr = checkResoult(productLimit); system.debug('checkResoultstr====>'+checkResoultstr); + system.debug('accountId'+accountId); if(String.isNotBlank(checkResoultstr)){ return new ResponseBodyLWC('Error',500,''+checkResoultstr+'', ''); // return checkResoultstr; @@ -44,14 +45,15 @@ ]; if(null == acc || acc.size() == 0) { // return '娌℃湁缁忛攢鍟嗭細' + accountId + '鐨勬暟鎹��'; - return new ResponseBodyLWC('Error',500,'娌℃湁缁忛攢鍟嗭細' + accountId + '鐨勬暟鎹�', ''); + return new ResponseBodyLWC('Error',500,'娌℃湁缁忛攢鍟嗭細' + accountId + '鐨勬暟鎹��', ''); } //proidList = acc[0].view_product__c.split(','); //--------UpdateStart-----XHL--------------20180929------------- String sql = ''; - List<Product2__c> roduct2List = [SELECT Asset_Model_No__c - FROM Product2__c - WHERE Product_Type__c like :userPro_Typestr limit 10000];//Add Limit by Li Jun 20230601, need to remove limit later + + List<Product2__c> roduct2List = [SELECT Asset_Model_No__c,Estimation_Entry_Possibility__c + FROM Product2__c + WHERE Product_Type__c like :userPro_Typestr and Estimation_Entry_Possibility__c = '鈼�'];//Add by WangXueqin 20230605 //ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR,'roduct2List:'+ roduct2List)); //sql = 'SELECT Asset_Model_No__c ' // + ' FROM Product2__c ' @@ -81,7 +83,7 @@ for(Integer i = 0; i < pro_List.size(); i++){ if(!productMap.containsKey(pro_List[i])){ // return '缁忛攢鍟嗘病鏈� ' + pro_List[i] + ' 鐨勪骇鍝佷笂闄愯瀹氭潈闄愶紝鎴栦骇鍝佷笉瀛樺湪锛�'; - return new ResponseBodyLWC('Error',500,'缁忛攢鍟嗘病鏈� ' + pro_List[i] + ' 鐨勪骇鍝佷笂闄愯瀹氭潈闄愶紝鎴栦骇鍝佷笉瀛樺湪', ''); + return new ResponseBodyLWC('Error',500,'缁忛攢鍟嗘病鏈� ' + pro_List[i] + ' 鐨勪骇鍝佷笂闄愯瀹氭潈闄愶紝鎴栦骇鍝佷笉瀛樺湪锛�', ''); } } String productLimitDa = ''; @@ -134,7 +136,7 @@ } } if(asstModelNoCount.size() > 0){ - return '浜у搧锛�' + asstModelNoCount + '鐨勬暟鎹噸澶�'; + return '浜у搧锛�' + asstModelNoCount + '鐨勬暟鎹噸澶嶃��'; // return new ResponseBodyLWC('Error',500,'浜у搧锛�' + asstModelNoCount + '鐨勬暟鎹噸澶嶃��', ''); }else{ return ''; -- Gitblit v1.9.1