|
|
@ -46,8 +46,6 @@ public class SaveAlarmQuartz {
|
|
|
|
alarmRequest.setPageSize(10);
|
|
|
|
alarmRequest.setPageSize(10);
|
|
|
|
// 定义成功条数
|
|
|
|
// 定义成功条数
|
|
|
|
int successNum = 0;
|
|
|
|
int successNum = 0;
|
|
|
|
// 定义失败条数
|
|
|
|
|
|
|
|
int failuresNum = 0;
|
|
|
|
|
|
|
|
List<Alarm> list = new ArrayList<>();
|
|
|
|
List<Alarm> list = new ArrayList<>();
|
|
|
|
if (data == null) {
|
|
|
|
if (data == null) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
@ -68,11 +66,11 @@ public class SaveAlarmQuartz {
|
|
|
|
sourceService.delBySourceId(x);
|
|
|
|
sourceService.delBySourceId(x);
|
|
|
|
successNum++;
|
|
|
|
successNum++;
|
|
|
|
Thread.sleep(1000);
|
|
|
|
Thread.sleep(1000);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
failuresNum++;
|
|
|
|
log.info("==========================睡眠异常");
|
|
|
|
log.info("==========================" + "id:" + x, "更新数据失败");
|
|
|
|
|
|
|
|
log.info("失败更新=========================" + failuresNum + "条数据");
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
alarmService.saveBatch(list);
|
|
|
|
alarmService.saveBatch(list);
|
|
|
|