From 519ae5fe0eeef687ec5926c7eab777c387cbe498 Mon Sep 17 00:00:00 2001
From: yxFwq <1>
Date: 星期四, 28 十一月 2024 21:05:09 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/asrs/task/ScaleEscalationScheduler.java |   24 +++++++++++++++++++++++-
 1 files changed, 23 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/zy/asrs/task/ScaleEscalationScheduler.java b/src/main/java/com/zy/asrs/task/ScaleEscalationScheduler.java
index 4928808..020bd7a 100644
--- a/src/main/java/com/zy/asrs/task/ScaleEscalationScheduler.java
+++ b/src/main/java/com/zy/asrs/task/ScaleEscalationScheduler.java
@@ -1,8 +1,14 @@
 package com.zy.asrs.task;
 
+import com.baomidou.mybatisplus.mapper.EntityWrapper;
+import com.core.common.Cools;
+import com.zy.asrs.domain.enums.LedErrorAreaType;
+import com.zy.asrs.entity.RgvOneSign;
+import com.zy.asrs.mapper.RgvOneSignMapper;
 import com.zy.asrs.task.core.ReturnT;
 import com.zy.asrs.task.handler.ScaleEscalationHandler;
 import com.zy.asrs.task.handler.StaEscalationHandler;
+import com.zy.asrs.utils.LedErrorThreadUtil;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.scheduling.annotation.Scheduled;
@@ -20,7 +26,7 @@
     private ScaleEscalationHandler scaleEscalationHandler;
 
     @Scheduled(cron = "0/3 * * * * ? ")
-    private void execute(){//2妤肩炕杞�掓枡淇℃伅涓婁紶
+    private void execute(){//1妤肩炕杞�掓枡閲嶉噺涓婁紶
         int[] staNos =new int[]{460,453};
         for (int staNo : staNos){
             try{
@@ -29,6 +35,22 @@
                     break;
                 }
             }catch (Exception e){
+                LedErrorThreadUtil.ledErrorThread("1妤肩炕杞�掓枡閲嶉噺涓婃姤erp澶辫触!绔欑偣鍙凤細"+staNo,4, LedErrorAreaType.ONE_OTHER.getDesc());
+                log.error("绔欑偣"+staNo+"1妤肩炕杞�掓枡閲嶉噺涓婁紶澶勭悊澶辫触锛屽紓甯镐俊鎭細"+e);
+            }
+        }
+    }
+
+    @Scheduled(cron = "0/3 * * * * ? ")
+    private void executeOverturn(){//2妤肩炕杞�掓枡鍚庡洖搴撴爣璁版竻闄�
+        int[] staNos =new int[]{126,131,310,312};
+        for (int staNo : staNos){
+            try{
+                ReturnT<String> result = scaleEscalationHandler.start2(staNo);
+                if (result.getCode()==200){
+                    break;
+                }
+            }catch (Exception e){
                 log.error("绔欑偣"+staNo+"2妤肩炕杞�掓枡淇℃伅涓婁紶澶勭悊澶辫触锛屽紓甯镐俊鎭細"+e);
             }
         }

--
Gitblit v1.9.1