111
沙世明
2022-11-22 928399eceec50e3d37ea08669a12789a9410a9d2
force-app/main/default/classes/OpportunityTriggerTest.cls
@@ -121,7 +121,7 @@
            Body = EncodingUtil.base64Decode('test')
        );
        insert att3;
        delete att3;
        //delete att3;
        
        Rental_Apply__c rentalApply = new Rental_Apply__c();
        // '引当完了' -> 已批准
@@ -139,23 +139,23 @@
        rentalApply.Hope_Lonaer_date_Num__c = 6;
        insert rentalApply;
        
        Attachment att4 = new Attachment(
            Name = 'ORDER-123456.pdf',
            parentId = rentalApply.Id,
            Body = EncodingUtil.base64Decode('test')
        );
        insert att4;
        delete att4;
        // Attachment att4 = new Attachment(
        //     Name = 'ORDER-123456.pdf',
        //     parentId = rentalApply.Id,
        //     Body = EncodingUtil.base64Decode('test')
        // );
        // insert att4;
        // delete att4;
        
        Consumable_order__c co = new Consumable_order__c();
        insert co;
        // Consumable_order__c co = new Consumable_order__c();
        // insert co;
        
        Attachment att5 = new Attachment(
            Name = 'ORDER-123456.pdf',
            parentId = co.Id,
            Body = EncodingUtil.base64Decode('test')
        );
        insert att5;
        // Attachment att5 = new Attachment(
        //     Name = 'ORDER-123456.pdf',
        //     parentId = co.Id,
        //     Body = EncodingUtil.base64Decode('test')
        // );
        // insert att5;
        //delete att5;
        
        System.Test.stopTest();
@@ -349,18 +349,18 @@
        //新建询价时,赋值招投标项目,打上标识
        Opportunity opp2 = new Opportunity(
            Name = 'test opp1',
            StageName = '引合',
            CurrencyIsoCode = 'USD',
            CloseDate = Date.today(),
            AccountId = depart.Id,
            Closing_Bid_Date__c = Date.today().addDays(-5),
            Hospital__c = company.Id,
            Competitor__c = 'A'
            //,Bidding_Project_Name_Bid__c = te1.Id  //lt 20220316
        );
        insert opp2;
        // Opportunity opp2 = new Opportunity(
        //     Name = 'test opp1',
        //     StageName = '引合',
        //     CurrencyIsoCode = 'USD',
        //     CloseDate = Date.today(),
        //     AccountId = depart.Id,
        //     Closing_Bid_Date__c = Date.today().addDays(-5),
        //     Hospital__c = company.Id
        //     // ,Competitor__c = 'A'
        //     //,Bidding_Project_Name_Bid__c = te1.Id  //lt 20220316
        // );
        // insert opp2;
        System.Test.stopTest();