From 3611f9226cbe970c7e6702c20e85fb87c6ae2510 Mon Sep 17 00:00:00 2001 From: zhangshuai Date: Thu, 28 Nov 2024 15:02:42 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20ASW-199=20=E8=B0=83=E6=95=B4=20cron=20?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../geedge/asw/module/job/service/impl/JobCfgServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/geedge/asw/module/job/service/impl/JobCfgServiceImpl.java b/src/main/java/net/geedge/asw/module/job/service/impl/JobCfgServiceImpl.java index 6031fcc..ee3d36d 100644 --- a/src/main/java/net/geedge/asw/module/job/service/impl/JobCfgServiceImpl.java +++ b/src/main/java/net/geedge/asw/module/job/service/impl/JobCfgServiceImpl.java @@ -121,7 +121,7 @@ public class JobCfgServiceImpl extends ServiceImpl impl if (T.StrUtil.equals(cfg.getType(), "cron") && cfg.getCron() == null) { throw new ASWException(RCode.JOB_CFG_CRON_CANNOT_EMPTY); } - if (cfg.getCron() != null && !CronExpression.isValidExpression(cfg.getCron())) { + if (T.StrUtil.isNotEmpty(cfg.getCron()) && !CronExpression.isValidExpression(cfg.getCron())) { throw new ASWException(RCode.JOB_CFG_CRON_ERROR); }