Authored by zhengyouwei

add

... ... @@ -53,20 +53,20 @@ public class AlarmSendVoiceTask {
//todo 查询是否需要语音通知
boolean needVoice = true;
QueryResult queryResult1 = smsUpMapper.select(30);
int voiceCount = QueryResultUtil.getCount(queryResult1);
// QueryResult queryResult1 = smsUpMapper.select(30);
// int voiceCount = QueryResultUtil.getCount(queryResult1);
DEBUG.info("alarmSendVoice task sms voiceCount = {}", voiceCount);
// DEBUG.info("alarmSendVoice task sms voiceCount = {}", voiceCount);
if (voiceCount > 1) {
// if (voiceCount > 0) {
if (lastTime == 0) {
lastTime = now;
} else {
if (now - lastTime < 30 * 60 * 1000) {//三十分钟内不再发送
if (now - lastTime < 10 * 60 * 1000) {//三十分钟内不再发送
needVoice = false;
}
}
}
// }
if (needVoice) {
lastTime = now;
... ...