Browse Source

#告警修改

zhongwei
yang_shj 11 months ago
parent
commit
a44b2c3272
  1. 1
      hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/show/service/impl/AlarmServiceImpl.java
  2. 2
      hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/tabulate/service/impl/AlarmTabulateServiceImpl.java

1
hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/show/service/impl/AlarmServiceImpl.java

@ -301,6 +301,7 @@ public class AlarmServiceImpl extends BaseServiceImpl<AlarmMapper, AlarmEntity>
mailMessageDTO.setBusinessClassify("system"); mailMessageDTO.setBusinessClassify("system");
mailMessageDTO.setBusinessKey("Mail"); mailMessageDTO.setBusinessKey("Mail");
mailMessageDTO.setSubject("邮件发送"); mailMessageDTO.setSubject("邮件发送");
mailMessageDTO.setContent(name+"websocket链接失败;"+"链接失败次数:"+num); mailMessageDTO.setContent(name+"websocket链接失败;"+"链接失败次数:"+num);
R<List<User>> res = userClient.userListByRoleAlias("200000", "sendMail"); R<List<User>> res = userClient.userListByRoleAlias("200000", "sendMail");
if (!res.isSuccess()||CollectionUtil.isEmpty(res.getData())){ if (!res.isSuccess()||CollectionUtil.isEmpty(res.getData())){

2
hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/tabulate/service/impl/AlarmTabulateServiceImpl.java

@ -38,7 +38,7 @@ public class AlarmTabulateServiceImpl implements AlarmTabulateService {
public IPage<StbAnalysisVO> early(IPage<StbAnalysisVO> page, TabulateEarlyVo tabulateEarly) { public IPage<StbAnalysisVO> early(IPage<StbAnalysisVO> page, TabulateEarlyVo tabulateEarly) {
StbAnalysisDTO param = new StbAnalysisDTO(); StbAnalysisDTO param = new StbAnalysisDTO();
if(StringUtil.isNotBlank(tabulateEarly.getStartTime())){ if(StringUtil.isNotBlank(tabulateEarly.getStartTime())){
param.setStartTime(LocalDateTime.parse(tabulateEarly.getStartTime(), DateUtil.DATETIME_FORMATTER)); param.setStartTime(LocalDateTime.parse(tabulateEarly.getStartTime()));
} }
if(StringUtil.isNotBlank(tabulateEarly.getEndTime())){ if(StringUtil.isNotBlank(tabulateEarly.getEndTime())){
param.setEndTime(LocalDateTime.parse(tabulateEarly.getEndTime(), DateUtil.DATETIME_FORMATTER)); param.setEndTime(LocalDateTime.parse(tabulateEarly.getEndTime(), DateUtil.DATETIME_FORMATTER));

Loading…
Cancel
Save