buli
2022-05-13 2f4492ee18f90274582fcc2bb06f5e9bf64136e8
force-app/main/default/classes/NewReplacementOpportunityController.cls
@@ -13,8 +13,6 @@
   public String rtUrl { get; set; }
   public String ProductSegment { get; set; }
   public String staticResource {get; set;}
   public String opportunityAWSDataId{get; set;}
   public NewReplacementOpportunityController() {
      baseUrl = URL.getSalesforceBaseUrl().toExternalForm();
@@ -62,7 +60,7 @@
      opp.AccountId = acc.Id;
      opp.Account = acc;
      opp.ProductSegment__c = acc.ProductSegment__c;
      opp.Type = 'Not Traget';
      opp.Type = '非目标';
      opp.SalesChannel__c = 'dealer';
      opp.NewInquiryDate__c = Date.today();
      opp.StageName = 'Prospect Created';
@@ -72,7 +70,7 @@
      if (UserInfo.getUserType() == 'PowerPartner' && acc.ProductSegment__c != 'BS') {
         opp.Dealer__c = dealerId;
      }
        staticResource = JSON.serialize(PIHelper.getPIIntegrationInfo('Opportunity'));
      return null;
   }