【fix sonar】FillRuleUtil文件
This commit is contained in:
+2
-1
@@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import com.jero.common.handler.IFillRuleHandler;
|
import com.jero.common.handler.IFillRuleHandler;
|
||||||
|
import org.apache.poi.ss.formula.functions.T;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -33,7 +34,7 @@ public class FillRuleUtil {
|
|||||||
// 获取 Service
|
// 获取 Service
|
||||||
ServiceImpl impl = (ServiceImpl) SpringContextUtils.getBean("sysFillRuleServiceImpl");
|
ServiceImpl impl = (ServiceImpl) SpringContextUtils.getBean("sysFillRuleServiceImpl");
|
||||||
// 根据 ruleCode 查询出实体
|
// 根据 ruleCode 查询出实体
|
||||||
QueryWrapper queryWrapper = new QueryWrapper();
|
QueryWrapper<T> queryWrapper = new QueryWrapper<>();
|
||||||
queryWrapper.eq("rule_code", ruleCode);
|
queryWrapper.eq("rule_code", ruleCode);
|
||||||
JSONObject entity = JSON.parseObject(JSON.toJSONString(impl.getOne(queryWrapper)));
|
JSONObject entity = JSON.parseObject(JSON.toJSONString(impl.getOne(queryWrapper)));
|
||||||
if (entity == null) {
|
if (entity == null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user