Ver código fonte

保留30天内历史报警数据

oyq28 7 meses atrás
pai
commit
1259514c2b

+ 1 - 1
imcs-admin-boot/imcs-business-biz/src/main/java/com/github/zuihou/business/collection/DeviceCollectionTaskJob.java

@@ -496,7 +496,7 @@ public class DeviceCollectionTaskJob {
     /**
      * 保留30天内的数据
      */
-    @Scheduled(cron = "0 0 * * *")
+    @Scheduled(cron = "0 0 * * ? *")
     public void deleteHistory30(){
         plcCostomAddressHistoryMapper.deleteHistory30();
         toolCostomAddressHistoryMapper.deleteHistory30();