|
|
@@ -947,14 +947,17 @@ public class OrderNewServiceImpl extends BaseMybatisDao<TOrderNewMapper> impleme
|
|
|
if(admin!=null&&StringUtils.isNotBlank(admin.getEmail()))adminIds+=admin.getEmail()+",";
|
|
|
}
|
|
|
if(!nlist.isEmpty())noticeMapper.insertBatch(nlist);
|
|
|
- if(StringUtils.isNotBlank(adminIds))adminIds.substring(0, adminIds.length()-1);
|
|
|
- EmailBo bo = new EmailBo(NoticeStatus.getValueByCode(type), adminIds, a.getDepartmentName(), a.getName(), "请登录查看");
|
|
|
- try {
|
|
|
- //使用专利邮件模板
|
|
|
- SendEmailUtil.getInstance().patentSend(bo);
|
|
|
- } catch (UnsupportedEncodingException | MessagingException e) {
|
|
|
- throw new BusinessException(new Error( "邮件发送错误","邮件发送错误"));
|
|
|
- }
|
|
|
+ if(StringUtils.isNotBlank(adminIds)) {
|
|
|
+ adminIds.substring(0, adminIds.length()-1);
|
|
|
+ EmailBo bo = new EmailBo(NoticeStatus.getValueByCode(type), adminIds, a.getDepartmentName(), a.getName(), "请登录查看");
|
|
|
+ try {
|
|
|
+ //使用专利邮件模板
|
|
|
+ SendEmailUtil.getInstance().patentSend(bo);
|
|
|
+ } catch (UnsupportedEncodingException | MessagingException e) {
|
|
|
+ throw new BusinessException(new Error( "邮件发送错误","邮件发送错误"));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|