|
@@ -296,13 +296,13 @@ public class SiteDataWarnHandler {
|
|
|
if (thisStepTempRes.getLastCompareSampleTime() <= 0L){//从未分析过则重新计数
|
|
if (thisStepTempRes.getLastCompareSampleTime() <= 0L){//从未分析过则重新计数
|
|
|
thisStepTempRes.resetData();
|
|
thisStepTempRes.resetData();
|
|
|
}else {
|
|
}else {
|
|
|
- if (FrequencyUnit.MIN.equals(planDetail.getFrequencyUnit())){
|
|
|
|
|
|
|
+ /*if (FrequencyUnit.MIN.equals(planDetail.getFrequencyUnit())){
|
|
|
if (minDevCycle > 0 && ((thisStepTempRes.getLastCompareSampleTime()+TimeTool.MS_ONE_SEC*minDevCycle) > curUTCTm)){//设备的下一个采集数据还未到
|
|
if (minDevCycle > 0 && ((thisStepTempRes.getLastCompareSampleTime()+TimeTool.MS_ONE_SEC*minDevCycle) > curUTCTm)){//设备的下一个采集数据还未到
|
|
|
step = "Dev next record not arrived,do analysis next time.";
|
|
step = "Dev next record not arrived,do analysis next time.";
|
|
|
code = ResponseCode.RESULT_BAD;
|
|
code = ResponseCode.RESULT_BAD;
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
|
|
+ }*/
|
|
|
int sampleClock = (int)((thisStepTempRes.getLastCompareSampleTime()/1000/60/60%24+8)%24);
|
|
int sampleClock = (int)((thisStepTempRes.getLastCompareSampleTime()/1000/60/60%24+8)%24);
|
|
|
if ((sampleClock >= ruleStartClock && sampleClock <= ruleEndClock)
|
|
if ((sampleClock >= ruleStartClock && sampleClock <= ruleEndClock)
|
|
|
|| ((sampleClock+1)%24) == ruleStartClock){
|
|
|| ((sampleClock+1)%24) == ruleStartClock){
|