From 564fc4fa1acec4320e660b1d3469a6ca6cc6d071 Mon Sep 17 00:00:00 2001 From: mxd <838425805@qq.com> Date: Wed, 21 Aug 2019 18:35:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=8D=E6=89=A7=E8=A1=8CSQ?= =?UTF-8?q?L=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../spiderflow/core/executor/shape/ExecuteSQLExecutor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spider-flow-core/src/main/java/org/spiderflow/core/executor/shape/ExecuteSQLExecutor.java b/spider-flow-core/src/main/java/org/spiderflow/core/executor/shape/ExecuteSQLExecutor.java index 03c4e9e..014e279 100644 --- a/spider-flow-core/src/main/java/org/spiderflow/core/executor/shape/ExecuteSQLExecutor.java +++ b/spider-flow-core/src/main/java/org/spiderflow/core/executor/shape/ExecuteSQLExecutor.java @@ -46,12 +46,12 @@ public class ExecuteSQLExecutor implements ShapeExecutor{ @Override public void execute(SpiderNode node, SpiderContext context, Map variables) { - if(StringUtils.isNotBlank(node.getStringJsonValue(DATASOURCE_ID))){ + if(!StringUtils.isNotBlank(node.getStringJsonValue(DATASOURCE_ID))){ context.log("数据源ID为空!"); if(logger.isDebugEnabled()){ logger.debug("数据库ID为空!"); } - }else if(StringUtils.isNotBlank(node.getStringJsonValue(SQL))){ + }else if(!StringUtils.isNotBlank(node.getStringJsonValue(SQL))){ context.log("sql为空!"); if(logger.isDebugEnabled()){ logger.debug("sql为空!");