|
|
|
@ -52,9 +52,11 @@ public class MntnCheckTask {
|
|
|
|
|
Integer termId = it.next();
|
|
|
|
|
this.checkOne(termId);
|
|
|
|
|
}
|
|
|
|
|
String str = sb.toString();
|
|
|
|
|
if (StringUtils.isNotBlank(str)) {
|
|
|
|
|
DingTalkPushUtil.pushText(str);
|
|
|
|
|
if (shutdown == 0) {
|
|
|
|
|
String str = sb.toString();
|
|
|
|
|
if (StringUtils.isNotBlank(str)) {
|
|
|
|
|
DingTalkPushUtil.pushText(str);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
log.info("MntnCheckTask.checkAll 结束.");
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
@ -72,9 +74,11 @@ public class MntnCheckTask {
|
|
|
|
|
MntnRawReportsExample.Criteria criteria = example.createCriteria();
|
|
|
|
|
criteria.andTermIdEqualTo(termId);
|
|
|
|
|
criteria.andCreateTimeGreaterThan(time);
|
|
|
|
|
long count = rawReportsMapper.countByExample(example);
|
|
|
|
|
if (count > max) {
|
|
|
|
|
this.sendWarning(term, count);
|
|
|
|
|
if (shutdown == 0) {
|
|
|
|
|
long count = rawReportsMapper.countByExample(example);
|
|
|
|
|
if (count > max) {
|
|
|
|
|
this.sendWarning(term, count);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|