liuyn
2024-03-11 a87f1c3df03078814ee97ad0c8ac200a232419e9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
@isTest
public with sharing class NFM511FutureControllerTest {
 
    @IsTest
    static void TestMethod01() {
 
        BatchIF_Log__c rowData = new BatchIF_Log__c();
        rowData.Type__c = 'NFM511';
        rowData.RowDataFlg__c = true;
        rowData.Log__c ='{"code":200,"data":{"total":25518,"current":4,"hitCount":false,"pages":1276,"size":20,"optimizeCountSql":true,"records":[{"bidQuantity":3,"sfdcCode":"","city":"来宾市","speci":"WA2T43WA","contractObject":"宫腔检查镜","title":"广西机电设备招标有限公司关于来宾市中医医院医疗设备采购(LBZC2022-J1-00958-JDZB)成交结果公告","bidTotalPrice":607560.00,"threeClass":"宫腔镜","projectNo":"LBZC2022-J1-00958-JDZB","modifyTime":"2023-10-10 04:00:09","province":"广西壮族自治区","twoClass":"内窥镜","supplier":"南宁博松医疗器械有限公司","brand":"奥林巴斯 OLYMPUS","bidUnitPrice":202520.00,"winningDetailId":2714594,"publishTime":"2023-01-13 17:27:05","projectTotalPrice":607560.00,"noticeType":"中标结果","originalUrl":"http://zfcg.gxzf.gov.cn/ZcyAnnouncement/ZcyAnnouncement2/ZcyAnnouncement4006/ZOjbHf7EXGjKnfJmVBMJgHW/mJneMEZIY404e6NpCfw=.html","url":"https://www.mdbid.cn/beaconDetail?id=C64B2D3D23D07473048D16EADC168B03BDCD584A966F51D1DED02D93D597BCF50D3AFE25BF54DA0FCA2E5F030E9E0BBE50C6165690C8E7D4AAA1EA0919AA7C61","hostIf":"否","brandType":"进口","createTime":"2023-10-10 04:00:09","tenderee":"来宾市中医医院","district":"兴宾区","progress":"单一来源","bid":"71c43c58cff6f1a24d10770b0c6e5d08","fundingSource":"","oneClass":"医用成像器械"}],"searchCount":true,"orders":[]},"message":"执行成功"}';
        insert rowData;
 
        BatchIF_Log__c iflog = new BatchIF_Log__c();
        iflog.Type__c = 'NFM511Future';
        iflog.RowDataFlg__c = false;
        iflog.Log__c = ' ';
        iflog.ErrorLog__c = ' ';
        // iflog.MessageGroupNumber__c = rowData.MessageGroupNumber__c;
        insert iflog;
 
        Test.startTest();
        NFM511FutureController.main(rowData.Id, iflog.Id, false);
        Test.stopTest();
 
        // List<NFM501Controller.AmountItem> AmountItem = new List<NFM501Controller.AmountItem>();
 
        // Test.startTest();
        // Test.setMock(HttpCalloutMock.class, new NFM501HttpCallMock());
        // NFM501FutureController.main(rowData01.Id, iflog01.Id, false,'txid');
        // NFM501FutureController.USACurrency(AmountItem, te1, 'BudgetAmount');
        // NFM501FutureController.OtherCurrency(AmountItem, te1, 'Budget');
        // Test.stopTest();
    }
 
    
}