From 23b13618a4a54a06dd0d1540902e0edb54fb9b19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E7=90=A6=E6=B6=9B?= Date: Wed, 8 Mar 2023 15:45:30 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90fix=20sonar=E3=80=91FillRuleUtil?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/jero/common/util/FillRuleUtil.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/jero-boot/jero-boot-base/jero-boot-base-core/src/main/java/com/jero/common/util/FillRuleUtil.java b/jero-boot/jero-boot-base/jero-boot-base-core/src/main/java/com/jero/common/util/FillRuleUtil.java index ea727ca0..a1434067 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-core/src/main/java/com/jero/common/util/FillRuleUtil.java +++ b/jero-boot/jero-boot-base/jero-boot-base-core/src/main/java/com/jero/common/util/FillRuleUtil.java @@ -4,10 +4,9 @@ import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.jero.common.handler.IFillRuleHandler; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; -import com.jero.common.handler.IFillRuleHandler; -import org.apache.poi.ss.formula.functions.T; /** @@ -34,7 +33,7 @@ public class FillRuleUtil { // 获取 Service ServiceImpl impl = (ServiceImpl) SpringContextUtils.getBean("sysFillRuleServiceImpl"); // 根据 ruleCode 查询出实体 - QueryWrapper queryWrapper = new QueryWrapper<>(); + QueryWrapper queryWrapper = new QueryWrapper<>(); queryWrapper.eq("rule_code", ruleCode); JSONObject entity = JSON.parseObject(JSON.toJSONString(impl.getOne(queryWrapper))); if (entity == null) {