|
@@ -95,11 +95,13 @@ public class MonitorBusiness {
|
95
|
95
|
airMonitorMinuteRecord.setIsLose(exceptionDataDispose.LoseData(x.getMax()!=null?x.getMax().doubleValue():0,
|
96
|
96
|
x.getMin()!=null?x.getMin().doubleValue():0,
|
97
|
97
|
x.getAvg()!=null?x.getAvg().doubleValue():0));
|
98
|
|
- if (!airMonitorMinuteRecord.getIsExceed().equals("Y") || !airMonitorMinuteRecord.getIsLose().equals("Y") || !airMonitorMinuteRecord.getIsSix().equals("Y")){
|
|
98
|
+ if ((airMonitorMinuteRecord.getIsExceed()!=null && !airMonitorMinuteRecord.getIsExceed().equals("Y") )||
|
|
99
|
+ (airMonitorMinuteRecord.getIsLose()!=null && !airMonitorMinuteRecord.getIsLose().equals("Y") )||
|
|
100
|
+ (airMonitorMinuteRecord.getIsSix()!=null && !airMonitorMinuteRecord.getIsSix().equals("Y"))){
|
99
|
101
|
saveExcepLog(x, airMonitorMinuteRecord);
|
100
|
102
|
}
|
101
|
103
|
} catch (Exception e) {
|
102
|
|
- log.error("调用 ExceptionDataDispose 方法异常{} 当前参数为:{}",e,airMonitorMinuteRecord);
|
|
104
|
+ log.error("调用 ExceptionDataDispose1 方法异常{} 当前参数为:{}",e,airMonitorMinuteRecord);
|
103
|
105
|
}
|
104
|
106
|
listData.add(airMonitorMinuteRecord);
|
105
|
107
|
});
|
|
@@ -131,11 +133,13 @@ public class MonitorBusiness {
|
131
|
133
|
airMonitorMinuteRecord.setIsLose(exceptionDataDispose.LoseData(x.getMax()!=null?x.getMax().doubleValue():0,
|
132
|
134
|
x.getMin()!=null?x.getMin().doubleValue():0,
|
133
|
135
|
x.getAvg()!=null?x.getAvg().doubleValue():0));
|
134
|
|
- if (!airMonitorMinuteRecord.getIsExceed().equals("Y") || !airMonitorMinuteRecord.getIsLose().equals("Y") || !airMonitorMinuteRecord.getIsSix().equals("Y")){
|
|
136
|
+ if ((airMonitorMinuteRecord.getIsExceed()!=null && !airMonitorMinuteRecord.getIsExceed().equals("Y") )||
|
|
137
|
+ (airMonitorMinuteRecord.getIsLose()!=null && !airMonitorMinuteRecord.getIsLose().equals("Y") )||
|
|
138
|
+ (airMonitorMinuteRecord.getIsSix()!=null && !airMonitorMinuteRecord.getIsSix().equals("Y"))){
|
135
|
139
|
saveExcepLog(x, airMonitorMinuteRecord);
|
136
|
140
|
}
|
137
|
141
|
} catch (Exception e) {
|
138
|
|
- log.error("调用 ExceptionDataDispose 方法异常{} 当前参数为:{}",e,airMonitorMinuteRecord);
|
|
142
|
+ log.error("调用 ExceptionDataDispose2 方法异常{} 当前参数为:{}",e,airMonitorMinuteRecord);
|
139
|
143
|
}
|
140
|
144
|
listData.add(airMonitorMinuteRecord);
|
141
|
145
|
});
|
|
@@ -170,11 +174,14 @@ public class MonitorBusiness {
|
170
|
174
|
x.getMin()!=null?x.getMin().doubleValue():0,
|
171
|
175
|
x.getAvg()!=null?x.getAvg().doubleValue():0));
|
172
|
176
|
airMonitorHourRecord.setIsSix(exceptionDataDispose.SixData(factorModel.getMN(), x.getFactor(),x.getAvg()!=null?x.getAvg().doubleValue():0, factorModel.getDataTime()));
|
173
|
|
- if (!airMonitorHourRecord.getIsExceed().equals("Y") || !airMonitorHourRecord.getIsLose().equals("Y") || !airMonitorHourRecord.getIsSix().equals("Y")){
|
|
177
|
+// if (!airMonitorHourRecord.getIsExceed().equals("Y") || !airMonitorHourRecord.getIsLose().equals("Y") || !airMonitorHourRecord.getIsSix().equals("Y")){
|
|
178
|
+ if ((airMonitorHourRecord.getIsExceed()!=null && !airMonitorHourRecord.getIsExceed().equals("Y") )||
|
|
179
|
+ (airMonitorHourRecord.getIsLose()!=null && !airMonitorHourRecord.getIsLose().equals("Y") )||
|
|
180
|
+ (airMonitorHourRecord.getIsSix()!=null && !airMonitorHourRecord.getIsSix().equals("Y"))){
|
174
|
181
|
saveExcepLog(x, airMonitorHourRecord);
|
175
|
182
|
}
|
176
|
183
|
} catch (Exception e) {
|
177
|
|
- log.error("调用 ExceptionDataDispose 方法异常{} 当前参数为:{}",e,airMonitorHourRecord);
|
|
184
|
+ log.error("调用 ExceptionDataDispose3 方法异常{} 当前参数为:{}",e,airMonitorHourRecord);
|
178
|
185
|
}
|
179
|
186
|
listData.add(airMonitorHourRecord);
|
180
|
187
|
});
|
|
@@ -206,11 +213,13 @@ public class MonitorBusiness {
|
206
|
213
|
waterMonitorMinuteRecord.setIsLose(exceptionDataDispose.LoseData(x.getMax()!=null?x.getMax().doubleValue():0,
|
207
|
214
|
x.getMin()!=null?x.getMin().doubleValue():0,
|
208
|
215
|
x.getAvg()!=null?x.getAvg().doubleValue():0));
|
209
|
|
- if (!waterMonitorMinuteRecord.getIsExceed().equals("Y") || !waterMonitorMinuteRecord.getIsLose().equals("Y") || !waterMonitorMinuteRecord.getIsSix().equals("Y")){
|
|
216
|
+ if ((waterMonitorMinuteRecord.getIsExceed()!=null && !waterMonitorMinuteRecord.getIsExceed().equals("Y") )||
|
|
217
|
+ (waterMonitorMinuteRecord.getIsLose()!=null && !waterMonitorMinuteRecord.getIsLose().equals("Y") )||
|
|
218
|
+ (waterMonitorMinuteRecord.getIsSix()!=null && !waterMonitorMinuteRecord.getIsSix().equals("Y"))){
|
210
|
219
|
saveExcepLog(x, waterMonitorMinuteRecord);
|
211
|
220
|
}
|
212
|
221
|
} catch (Exception e) {
|
213
|
|
- log.error("调用 ExceptionDataDispose 方法异常{} 当前参数为:{}",e,waterMonitorMinuteRecord);
|
|
222
|
+ log.error("调用 ExceptionDataDispose4 方法异常{} 当前参数为:{}",e,waterMonitorMinuteRecord);
|
214
|
223
|
}
|
215
|
224
|
listData.add(waterMonitorMinuteRecord);
|
216
|
225
|
});
|
|
@@ -239,11 +248,13 @@ public class MonitorBusiness {
|
239
|
248
|
waterMonitorMinuteRecord.setIsLose(exceptionDataDispose.LoseData(x.getMax()!=null?x.getMax().doubleValue():0,
|
240
|
249
|
x.getMin()!=null?x.getMin().doubleValue():0,
|
241
|
250
|
x.getAvg()!=null?x.getAvg().doubleValue():0));
|
242
|
|
- if (!waterMonitorMinuteRecord.getIsExceed().equals("Y") || !waterMonitorMinuteRecord.getIsLose().equals("Y") || !waterMonitorMinuteRecord.getIsSix().equals("Y")){
|
|
251
|
+ if ((waterMonitorMinuteRecord.getIsExceed()!=null && !waterMonitorMinuteRecord.getIsExceed().equals("Y") )||
|
|
252
|
+ (waterMonitorMinuteRecord.getIsLose()!=null && !waterMonitorMinuteRecord.getIsLose().equals("Y") )||
|
|
253
|
+ (waterMonitorMinuteRecord.getIsSix()!=null && !waterMonitorMinuteRecord.getIsSix().equals("Y"))){
|
243
|
254
|
saveExcepLog(x, waterMonitorMinuteRecord);
|
244
|
255
|
}
|
245
|
256
|
} catch (Exception e) {
|
246
|
|
- log.error("调用 ExceptionDataDispose 方法异常{} 当前参数为:{}",e,waterMonitorMinuteRecord);
|
|
257
|
+ log.error("调用 ExceptionDataDispose5 方法异常{} 当前参数为:{}",e,waterMonitorMinuteRecord);
|
247
|
258
|
}
|
248
|
259
|
|
249
|
260
|
listData.add(waterMonitorMinuteRecord);
|
|
@@ -277,11 +288,13 @@ public class MonitorBusiness {
|
277
|
288
|
x.getMin()!=null?x.getMin().doubleValue():0,
|
278
|
289
|
x.getAvg()!=null?x.getAvg().doubleValue():0));
|
279
|
290
|
waterMonitorHourRecord.setIsSix(exceptionDataDispose.SixData(factorModel.getMN(), x.getFactor(),x.getAvg()!=null?x.getAvg().doubleValue():0, factorModel.getDataTime()));
|
280
|
|
- if (!waterMonitorHourRecord.getIsExceed().equals("Y") || !waterMonitorHourRecord.getIsLose().equals("Y") || !waterMonitorHourRecord.getIsSix().equals("Y")){
|
|
291
|
+ if ((waterMonitorHourRecord.getIsExceed()!=null && !waterMonitorHourRecord.getIsExceed().equals("Y") )||
|
|
292
|
+ (waterMonitorHourRecord.getIsLose()!=null && !waterMonitorHourRecord.getIsLose().equals("Y") )||
|
|
293
|
+ (waterMonitorHourRecord.getIsSix()!=null && !waterMonitorHourRecord.getIsSix().equals("Y"))){
|
281
|
294
|
saveExcepLog(x, waterMonitorHourRecord);
|
282
|
295
|
}
|
283
|
296
|
} catch (Exception e) {
|
284
|
|
- log.error("调用 ExceptionDataDispose 方法异常{} 当前参数为:{}",e,waterMonitorHourRecord);
|
|
297
|
+ log.error("调用 ExceptionDataDispose6 方法异常{} 当前参数为:{}",e,waterMonitorHourRecord);
|
285
|
298
|
}
|
286
|
299
|
listData.add(waterMonitorHourRecord);
|
287
|
300
|
});
|