|
|
@@ -30,6 +30,7 @@ public class TimerCheckWarnPlanMgr {
|
|
|
}
|
|
|
|
|
|
public static void checkWarnPlanByFrequency(int curClock, int curMinute, String frequencyUnit){
|
|
|
+ long curNowTm = TimeTool.getCurSecUTC();
|
|
|
int curTmForCompare = 0;
|
|
|
String tmFiler = "";
|
|
|
if (FrequencyUnit.MIN.equals(frequencyUnit)){
|
|
|
@@ -132,6 +133,12 @@ public class TimerCheckWarnPlanMgr {
|
|
|
|
|
|
if (DoPeriodUnit.HOUR.equals(oItem.getDoPeriodUnit()) && curClock < oItem.getMinStarts())
|
|
|
continue;
|
|
|
+ if (FrequencyUnit.MIN.equals(frequencyUnit)
|
|
|
+ && oItem.getMinDevCycle() > 0
|
|
|
+ && oItem.getLastCompareSampleTime() > 0L){
|
|
|
+ if ((oItem.getLastCompareSampleTime() + TimeTool.MS_ONE_SEC*oItem.getMinDevCycle()) > curNowTm)//设备的下一个采集数据还未到
|
|
|
+ continue;
|
|
|
+ }
|
|
|
//}
|
|
|
AsyncTaskQueueMgr.getInstance().postTaskData(TaskQueueDataTypeEx.ASYNC_ANALY_WARN_PLAN, new OrdWarnPlanWillDo(oItem.getUid(), oItem.getObjSrc()));
|
|
|
}
|