高章伟
2022-03-10 1312ba82d4c880bdb5357d28e0d4af5b285f610f
force-app/main/default/classes/InventoryStartAssetSnapshotCopyBatch.cls
@@ -879,7 +879,7 @@
         }
         InventoryStartAssetSnapshotCopyBatch.messagesForTest = this.emailMessages;
        // 发 mail
        String InventoryCheck_PIC_email = iheader.InventoryCheck_PIC__r.Email;
        // String InventoryCheck_PIC_email = iheader.InventoryCheck_PIC__r.Email;
        BatchEmailUtil be = new BatchEmailUtil();
        // String[] toList = new String[]{UserInfo.getUserEmail()};
        String[] toList = new String[]{'sfdc_lijinhuan@olympus.com.cn'};
@@ -888,10 +888,10 @@
        for(String email : System.Label.Inventory_Result_Email.split(',')){
            ccList.add(email);
        } 
        system.debug('盘点报告确认人'+InventoryCheck_PIC_email);
         /*system.debug('盘点报告确认人'+InventoryCheck_PIC_email);
        if(InventoryCheck_PIC_email != null){
           ccList.add(InventoryCheck_PIC_email); 
        }
        }*/
         
        if(this.emailMessages.size() == 0 && totalCount == executedCount) {
            be.successMail(toList,ccList, title, totalCount, text);