buli
2022-05-13 2f4492ee18f90274582fcc2bb06f5e9bf64136e8
force-app/main/default/classes/NewOpportunityController.cls
@@ -16,9 +16,6 @@
    public Boolean isIEDealer{get; set; }
    public String staticResource {get; set;}
    public String opportunityAWSDataId{get; set;}
    public NewOpportunityController() {
        baseUrl = URL.getSalesforceBaseUrl().toExternalForm();
        String path = URL.getCurrentRequestUrl().getPath();
@@ -82,9 +79,9 @@
        if(acc.compo_Acc__c == 'COMPO客户' && acc.ProductSegment__c == 'IE'){
            opp.compo_opp__c = true;
        }
        if(acc.UserType__c == 'OEM客户' && acc.ProductSegment__c == 'BS'){
        /*if(acc.UserType__c == 'OEM客户' && acc.ProductSegment__c == 'BS'){
            opp.useing__c = 'OEM';
        }
        }*/
        opp.AccountId = acc.Id;
        opp.Account = acc;
        opp.ProductSegment__c = acc.ProductSegment__c;
@@ -97,7 +94,6 @@
            opp.Dealer__c = dealerId;
        }
        staticResource = JSON.serialize(PIHelper.getPIIntegrationInfo('Opportunity'));
        return null;
    }