111
沙世明
2022-11-22 928399eceec50e3d37ea08669a12789a9410a9d2
force-app/main/default/classes/TenderResultConfirmTaskBatchTest.cls
@@ -133,23 +133,23 @@
        update opp3;
        
        //新建询价4
        Opportunity opp4 = new Opportunity(
            StageName = '敗戦',
            Name = 'tenderTest询价4',
            Close_Forecasted_Date__c = Date.today().addDays(-5),
            CloseDate = Date.today(),
            ConfirmationofAward__c = '竞争对手中标'
        );
        insert opp4;
        //新建 询价失单/取消报告
        Lost_cancel_report__c lcr1 = new Lost_cancel_report__c(
            Opportunity__c = opp4.Id
        );
        insert lcr1;
        // //新建询价4
        // Opportunity opp4 = new Opportunity(
        //     StageName = '敗戦',
        //     Name = 'tenderTest询价4',
        //     Close_Forecasted_Date__c = Date.today().addDays(-5),
        //     CloseDate = Date.today(),
        //     ConfirmationofAward__c = '竞争对手中标'
        // );
        // insert opp4;
        // //新建 询价失单/取消报告
        // Lost_cancel_report__c lcr1 = new Lost_cancel_report__c(
        //     Opportunity__c = opp4.Id
        // );
        // insert lcr1;
        
        opp4.Lost_Cancel_Report__c = lcr.Id;
        update opp4;
        // opp4.Lost_Cancel_Report__c = lcr.Id;
        // // update opp4;
        List<Tender_Opportunity_Link__c> slist = [select id,name,Tender_information__r.InfoType__c,Tender_information__r.subInfoType__c,Tender_information__r.status__c,Tender_information__r.LastModifiedDate,Tender_information__r.OpportunityStatus__c,Tender_information__r.OpportunityNum__c,
                                                    Opportunity__r.StageName__c,Opportunity__r.If_Need_PriceApply__c,Opportunity__r.Contract_DB_complite_day__c,Opportunity__r.Contract_Authorize_Lock__c