高章伟
2023-03-03 d8dc84a3d56df839895f1c417a4d9cbee763d262
force-app/main/default/classes/NFM601ControllerTest.cls
@@ -108,7 +108,7 @@
        transfer.Internal_Value__c = '消化科';
        insert transfer;
        BatchIF_Log__c iflog = new BatchIF_Log__c();
        iflog.Log__c = '{"GeData":[{"HospitalInfoData":[{"StrategicDeptCode":"","Province":"CN-05","ParentCode":"360155呼吸科","HospitalRank":"L","HospitalName":"忻州市二八二医院 呼吸科 呼吸一科","HospitalCode":"","DeptType":"BF","DeptCode":"8087357","City":"CN-0567","Area":"3.西北","Accounttype":"3"}],"DealerInfoData":[]}]}';
        iflog.Log__c = '{"GeData":[{"HospitalInfoData":[{"StrategicDeptCode":"","Province":"CN-05","ParentCode":"360155呼吸科","HospitalRank":"L","HospitalName":"忻州市二八二医院 呼吸科 呼吸一科","HospitalCode":"","DeptType":"BF","DeptCode":"8087357","City":"CN-0567","Area":"3.西北","Accounttype":"3","HospitalLevel":"一级甲"}],"DealerInfoData":[]}]}';
        iflog.Type__c = '601test';
        insert iflog;
    }
@@ -157,7 +157,9 @@
    static void testcallout4() {
        // BatchIF_Log__c iflog = [select id from BatchIF_Log__c where Type__c = '601test'];
        // NFM601Controller.ManualExecute(iflog.Id);
        Test.startTest();
        Database.executeBatch(new Sfdc2PoAccountBatch(),100);
        Test.stopTest();
    }
    @isTest