|
|
|
@ -79,7 +79,7 @@ public class MntnCheckTask {
|
|
|
|
|
long count = rawReportsMapper.countByExample(example);
|
|
|
|
|
if (count > maxCount) {
|
|
|
|
|
this.sendWarningCount(term, count);
|
|
|
|
|
} else if (count <= 0) {
|
|
|
|
|
} else if (count <= 0 && term.getIsfavor() != null && term.getIsfavor().intValue() == 1) {
|
|
|
|
|
example = new MntnRawReportsExample();
|
|
|
|
|
criteria = example.createCriteria();
|
|
|
|
|
criteria.andTermIdEqualTo(termId);
|
|
|
|
@ -91,7 +91,7 @@ public class MntnCheckTask {
|
|
|
|
|
long days = (System.currentTimeMillis() / 1000 - lasttime) / 60 / 60 / 24;
|
|
|
|
|
if (days > maxDay) {
|
|
|
|
|
Date date = new Date(lasttime * 1000);
|
|
|
|
|
// this.sendWarningDay(term, date, days);
|
|
|
|
|
this.sendWarningDay(term, date, days);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|