buli
2022-05-13 2f4492ee18f90274582fcc2bb06f5e9bf64136e8
force-app/main/default/classes/IENewOpportunityController.cls
@@ -1,10 +1,3 @@
/**
 * @description       :
 * @author            : ChangeMeIn@UserSettingsUnder.SFDoc
 * @group             :
 * @last modified on  : 04-08-2022
 * @last modified by  : ChangeMeIn@UserSettingsUnder.SFDoc
**/
public with sharing class IENewOpportunityController {
    public boolean hasError { get; set; }
    //public boolean isDealerPage { get; set; }
@@ -59,7 +52,6 @@
            opp.compo_opp__c = true;
        }
        opp.AccountId = acc.Id;
        opp.Name = acc.Name;//dennis updated for test
        opp.Account = acc;
        opp.ProductSegment__c = acc.ProductSegment__c;
        opp.Type = 'Not Traget';
@@ -103,9 +95,8 @@
        Savepoint sp = Database.setSavepoint();
        try {
            //0120K000000OptT正式环境
            //0120T0000003Ser测试环境
            opp.RecordTypeId = '0120T0000003Ser';
            opp.RecordTypeId = '0120K000000OptT';
            opp.SalesChannel__c = 'direct';
            insert opp;
            if(opp.Have_Computer__c && opp.Association_Opportunity__c != null){