| | |
| | | } |
| | | 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'}; |
| | |
| | | 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); |