|
@@ -11,15 +11,16 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
import com.jfireel.expression.Expression;
|
|
import com.jfireel.expression.Expression;
|
|
-import com.mixsmart.utils.*;
|
|
|
|
-import com.sun.org.apache.bcel.internal.generic.NEW;
|
|
|
|
|
|
+import com.mixsmart.utils.CustomFunction;
|
|
|
|
+import com.mixsmart.utils.FormulaUtils;
|
|
|
|
+import com.mixsmart.utils.RegexUtils;
|
|
|
|
+import com.mixsmart.utils.StringUtils;
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.RequiredArgsConstructor;
|
|
import org.apache.poi.ss.usermodel.*;
|
|
import org.apache.poi.ss.usermodel.*;
|
|
import org.jsoup.Jsoup;
|
|
import org.jsoup.Jsoup;
|
|
import org.jsoup.nodes.Document;
|
|
import org.jsoup.nodes.Document;
|
|
import org.jsoup.nodes.Element;
|
|
import org.jsoup.nodes.Element;
|
|
import org.jsoup.select.Elements;
|
|
import org.jsoup.select.Elements;
|
|
-import org.springblade.common.constant.CommonConstant;
|
|
|
|
import org.springblade.common.utils.BaseUtils;
|
|
import org.springblade.common.utils.BaseUtils;
|
|
import org.springblade.common.utils.CommonUtil;
|
|
import org.springblade.common.utils.CommonUtil;
|
|
import org.springblade.common.utils.SnowFlakeUtil;
|
|
import org.springblade.common.utils.SnowFlakeUtil;
|
|
@@ -30,8 +31,8 @@ import org.springblade.core.tool.api.R;
|
|
import org.springblade.core.tool.utils.*;
|
|
import org.springblade.core.tool.utils.*;
|
|
import org.springblade.manager.bean.TableInfo;
|
|
import org.springblade.manager.bean.TableInfo;
|
|
import org.springblade.manager.dto.*;
|
|
import org.springblade.manager.dto.*;
|
|
-import org.springblade.manager.entity.*;
|
|
|
|
import org.springblade.manager.entity.EvaluateDate;
|
|
import org.springblade.manager.entity.EvaluateDate;
|
|
|
|
+import org.springblade.manager.entity.*;
|
|
import org.springblade.manager.enums.ExecuteType;
|
|
import org.springblade.manager.enums.ExecuteType;
|
|
import org.springblade.manager.formula.*;
|
|
import org.springblade.manager.formula.*;
|
|
import org.springblade.manager.formula.impl.*;
|
|
import org.springblade.manager.formula.impl.*;
|
|
@@ -44,22 +45,16 @@ import org.springblade.manager.vo.*;
|
|
import org.springblade.meter.entity.InterimPayCertificateItem;
|
|
import org.springblade.meter.entity.InterimPayCertificateItem;
|
|
import org.springblade.meter.feign.CertificateItemClient;
|
|
import org.springblade.meter.feign.CertificateItemClient;
|
|
import org.springblade.resource.feign.NewIOSSClient;
|
|
import org.springblade.resource.feign.NewIOSSClient;
|
|
-import org.springblade.system.cache.ParamCache;
|
|
|
|
import org.springframework.beans.BeanUtils;
|
|
import org.springframework.beans.BeanUtils;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.context.annotation.Lazy;
|
|
import org.springframework.context.annotation.Lazy;
|
|
import org.springframework.dao.EmptyResultDataAccessException;
|
|
import org.springframework.dao.EmptyResultDataAccessException;
|
|
import org.springframework.jdbc.core.BeanPropertyRowMapper;
|
|
import org.springframework.jdbc.core.BeanPropertyRowMapper;
|
|
import org.springframework.jdbc.core.JdbcTemplate;
|
|
import org.springframework.jdbc.core.JdbcTemplate;
|
|
-import org.springframework.scheduling.annotation.Async;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
-import org.springframework.transaction.annotation.Transactional;
|
|
|
|
-
|
|
|
|
|
|
|
|
import javax.validation.constraints.NotNull;
|
|
import javax.validation.constraints.NotNull;
|
|
-import java.io.File;
|
|
|
|
-import java.io.FileInputStream;
|
|
|
|
import java.io.FileNotFoundException;
|
|
import java.io.FileNotFoundException;
|
|
import java.io.InputStream;
|
|
import java.io.InputStream;
|
|
import java.util.*;
|
|
import java.util.*;
|
|
@@ -2908,7 +2903,7 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
}
|
|
}
|
|
|
|
|
|
// 检查是否可以自动绑定参数公式
|
|
// 检查是否可以自动绑定参数公式
|
|
- List<FormData> notFormulaFds=fds.stream().filter(f->f.getFormulaId()==null).collect(Collectors.toList());
|
|
|
|
|
|
+ /*List<FormData> notFormulaFds=fds.stream().filter(f->f.getFormulaId()==null).collect(Collectors.toList());
|
|
if(notFormulaFds.size()>0){
|
|
if(notFormulaFds.size()>0){
|
|
List<WbsParam> finalTotal = total;
|
|
List<WbsParam> finalTotal = total;
|
|
notFormulaFds.forEach(e->{
|
|
notFormulaFds.forEach(e->{
|
|
@@ -2926,7 +2921,7 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
}
|
|
}
|
|
});
|
|
});
|
|
});
|
|
});
|
|
- }
|
|
|
|
|
|
+ }*/
|
|
fds.removeIf(f->f.getFormula()==null);
|
|
fds.removeIf(f->f.getFormula()==null);
|
|
if(fds.size()>0) {
|
|
if(fds.size()>0) {
|
|
/*执行结果放回数据集合*/
|
|
/*执行结果放回数据集合*/
|