高章伟
2023-03-03 d8dc84a3d56df839895f1c417a4d9cbee763d262
force-app/main/default/classes/SearchProductController.cls
@@ -12,6 +12,7 @@
    public String trade {get;set;}                    // hidden項目からもらった CNY か USD の文字列
    public String lineNo {get;set;}                   // 親画面の選択した行
    public String val {get;set;}                      // 親画面のからの検索文字列
    public String celon {get;set;}                    // 親画面のからの検索文字列 Celon询价增加 2022-04-24 ssm
    public String SearchName {get;set;}               // 検索文字列
@@ -22,6 +23,7 @@
//        this.trade = Apexpages.currentPage().getParameters().get('trade');
        this.lineNo = Apexpages.currentPage().getParameters().get('lineno');
        this.val = Apexpages.currentPage().getParameters().get('val');
        this.celon = Apexpages.currentPage().getParameters().get('celon');
        if (val!=null && val!=''){
            SearchName = val;
@@ -50,7 +52,9 @@
                        //增加产品不可取消多年保逻辑 精琢技术 wql 2020/09/02 end 阿西赛多 2020/12/29 end
                        + ' , Product2.GuranteeType__c , product2.VenderName__c , product2.Maintenance_Price_Year__c '
                        // 多年保修 end
                        // 20221020 ljh SWAG-CJ98AJ start
                        + ' , Product2.suitDepartment__c '
                        // 20221020 ljh SWAG-CJ98AJ end
                        //SFDC停止预警(预计消耗到期日) lt 20210929 add start
                        + ' , Product2.Estimated_ConsumptionDueDate__c '
                        //SFDC停止预警(预计消耗到期日) lt 20210929 add end
@@ -95,6 +99,11 @@
            system.debug(' trade = '+ trade);
        }
        // Celon询价修改 2022-04-24 ssm start
        celon = String.isNotBlank(celon) ? celon : null;
        whereSql += ' and Product2.Celon_Product__c = :celon ';
        // Celon询价修改 2022-04-24 ssm end
        searchSql = searchSql + whereStr + whereSql;
        //20211123 lt update 450 原500