From 741d8fea137649dd5a45d94f2573ca1bb8297c1f Mon Sep 17 00:00:00 2001 From: L <L@132> Date: 星期四, 25 九月 2025 10:27:50 +0800 Subject: [PATCH] * --- src/main/java/com/zy/asrs/task/StaEscalationScheduler.java | 32 ++++++++++++++++++++++++++++++++ 1 files changed, 32 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/zy/asrs/task/StaEscalationScheduler.java b/src/main/java/com/zy/asrs/task/StaEscalationScheduler.java index b305170..c5a9cd3 100644 --- a/src/main/java/com/zy/asrs/task/StaEscalationScheduler.java +++ b/src/main/java/com/zy/asrs/task/StaEscalationScheduler.java @@ -36,4 +36,36 @@ } } + @Scheduled(cron = "0/3 * * * * ? ") + private void execute3(){//1妤肩炕杞崐鎴愬搧鍊掓枡淇℃伅涓婁紶 + int[] staNos =new int[]{536}; + for (int staNo : staNos){ + try{ + ReturnT<String> result = staEscalationHandler.start3(staNo); + if (result.getCode()==200){ + break; + } + }catch (Exception e){ + LedErrorThreadUtil.ledErrorThread("1妤肩炕杞崐鎴愬搧鍊掓枡淇℃伅涓婁紶!绔欑偣鍙凤細"+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 = staEscalationHandler.start2(staNo); + if (result.getCode()==200){ + break; + } + }catch (Exception e){ + LedErrorThreadUtil.ledErrorThread("2妤肩炕杞�掓枡鍚庡洖搴撴爣璁版竻闄ゅけ璐�!绔欑偣鍙凤細"+staNo,4, LedErrorAreaType.ONE_OTHER.getDesc()); + log.error("绔欑偣"+staNo+"2妤肩炕杞�掓枡鍚庡洖搴撴爣璁版竻闄ゅけ璐ワ紝寮傚父淇℃伅锛�"+e); + } + } + } + } -- Gitblit v1.9.1