Procházet zdrojové kódy

外部报验功能-邮件发送

wangming před 1 rokem
rodič
revize
3aa8c5bcc0

+ 10 - 10
business-common/src/main/java/com/rongwei/bscommon/sys/service/impl/ZhcxOutsideInspectionItpServiceImpl.java

@@ -344,16 +344,16 @@ public class ZhcxOutsideInspectionItpServiceImpl extends ServiceImpl<ZhcxOutside
         log.info("邮件发送", JSONUtil.toJsonStr(notifyDtoList));
         //邮件发送
         if(ObjectUtil.isNotEmpty(notifyDtoList)) {
-//            for(NotifyDto notifyDto : notifyDtoList) {
-//                MailDo mainDo = new MailDo();
-//                mainDo.setSubject(notifyDto.getSubject());
-//                mainDo.setContent(notifyDto.getContent());
-//                mainDo.setOperationtype("10");
-//                mainDo.setCcEmail(new String[]{});
-//                mainDo.setNeedTransReceive(true);
-//                mainDo.setReceiveEmail(notifyDto.getReceiverIds().stream().toArray(String[]::new));
-//                notifyFeginService.sendHtmlMail(mainDo);
-//            }
+            for(NotifyDto notifyDto : notifyDtoList) {
+                MailDo mainDo = new MailDo();
+                mainDo.setSubject(notifyDto.getSubject());
+                mainDo.setContent(notifyDto.getContent());
+                mainDo.setOperationtype("10");
+                mainDo.setCcEmail(new String[]{});
+                mainDo.setNeedTransReceive(true);
+                mainDo.setReceiveEmail(notifyDto.getReceiverIds().stream().toArray(String[]::new));
+                notifyFeginService.sendHtmlMail(mainDo);
+            }
         }
 
         return R.ok();