Commit 707daa01 by huangfusuper

解决跳过错误信息邮箱BUG

parent 561f007a
......@@ -98,7 +98,7 @@ public class EmailAlarmServiceImpl implements EmailAlarmService {
record.setAlarmResult("2");
log.error("-----------邮件发送失败【{}】--------------", MythLogUtils.getMessage(e));
throw new BusinessException(AdminEnums.SEND_EMAIL_FAILURE);
}
}finally {
EmailAlarm emailAlarm = new EmailAlarm( );
BeanUtils.copyProperties(record,emailAlarm);
......@@ -107,6 +107,8 @@ public class EmailAlarmServiceImpl implements EmailAlarmService {
updateEmailAlarm(emailAlarm);
}
}
@Override
public int updateEmailAlarm(EmailAlarm record) {
return emailAlarmMapper.updateEmailAlarm(record);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment