高章伟
2022-03-10 1312ba82d4c880bdb5357d28e0d4af5b285f610f
force-app/main/default/classes/OrdergoodsControllerTest.cls
@@ -7,6 +7,10 @@
        if (rectCo.size() == 0) {
            throw new ControllerUtil.myException('not found 办事处 recodetype');
        }
        Account account2 = new Account();
      account2.Name = 'test1经销商';
        account2.RecordTypeId = '01210000000Qem1';
        insert account2;
        // 客户
        Account account = new Account();
        account.RecordTypeId = rectCo[0].Id;
@@ -14,6 +18,7 @@
        account.Name = 'Katsu テスト';
        account.Quolified_Approve_Status__c = 'Draft';
        account.If_Need_Quolified__c = true;
        account.ParentId = account2.Id;
        insert account;
        Product2 product = new Product2();
@@ -147,12 +152,17 @@
            throw new ControllerUtil.myException('not found 办事处 recodetype');
        }
        // 客户
        Account account2 = new Account();
      account2.Name = 'test1经销商';
        account2.RecordTypeId = '01210000000Qem1';
        insert account2;
        Account account = new Account();
        account.RecordTypeId = rectCo[0].Id;
        account.Phone = '13888888888';
        account.Name = 'Katsu テスト';
        account.Quolified_Approve_Status__c = 'Draft';
        account.If_Need_Quolified__c = true;
        account.ParentId = account2.Id;
        insert account;
        //查不出任何样本品,SFDA_Status__c会被触发器修改为停止
        Product2 product = new Product2();