From a1755cc202804b3a115f1cb898a65f2935fa3a18 Mon Sep 17 00:00:00 2001 From: lsh <lsh@163.com> Date: 星期三, 30 七月 2025 09:58:50 +0800 Subject: [PATCH] * --- src/main/java/com/zy/asrs/task/WrkMastStaInIt2Scheduler.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/zy/asrs/task/WrkMastStaInIt2Scheduler.java b/src/main/java/com/zy/asrs/task/WrkMastStaInIt2Scheduler.java index b187187..2ae4d46 100644 --- a/src/main/java/com/zy/asrs/task/WrkMastStaInIt2Scheduler.java +++ b/src/main/java/com/zy/asrs/task/WrkMastStaInIt2Scheduler.java @@ -68,7 +68,7 @@ @Scheduled(cron = "0/1 * * * * ? ") private void execute(){ RgvOneSign rgvTwoSign = rgvOneSignService.selectOne(new EntityWrapper<RgvOneSign>().eq("rgv_one_type","rgvTwo")); - if (rgvTwoSign.getRgvOneSign()!=0){ + if (Cools.isEmpty(rgvTwoSign) || rgvTwoSign.getRgvOneSign()!=0){ return; } List<Integer> integersStaArr = new ArrayList<>(); @@ -162,7 +162,7 @@ @Scheduled(cron = "0/1 * * * * ? ") private void execute2(){ RgvOneSign rgvTwoSign = rgvOneSignService.selectOne(new EntityWrapper<RgvOneSign>().eq("rgv_one_type","rgvTwo")); - if (rgvTwoSign.getRgvOneSign()!=0){ + if (Cools.isEmpty(rgvTwoSign) || rgvTwoSign.getRgvOneSign()!=0){ return; } try{ -- Gitblit v1.9.1