【fix sonar】FillRuleUtil文件

This commit is contained in:
梁琦涛
2023-03-08 12:01:51 +08:00
parent 0761966c38
commit e28a591b2d
@@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
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;
/**
@@ -33,7 +34,7 @@ public class FillRuleUtil {
// 获取 Service
ServiceImpl impl = (ServiceImpl) SpringContextUtils.getBean("sysFillRuleServiceImpl");
// 根据 ruleCode 查询出实体
QueryWrapper queryWrapper = new QueryWrapper();
QueryWrapper<T> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("rule_code", ruleCode);
JSONObject entity = JSON.parseObject(JSON.toJSONString(impl.getOne(queryWrapper)));
if (entity == null) {