|
@@ -41,6 +41,7 @@ import org.springblade.manager.mapper.WbsTreePrivateMapper;
|
|
|
import org.springblade.manager.service.*;
|
|
|
import org.springblade.manager.utils.FileUtils;
|
|
|
import org.springblade.manager.vo.*;
|
|
|
+import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.context.annotation.Lazy;
|
|
|
import org.springframework.jdbc.core.JdbcTemplate;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -51,6 +52,7 @@ import java.util.*;
|
|
|
import java.util.concurrent.atomic.AtomicBoolean;
|
|
|
import java.util.concurrent.atomic.AtomicInteger;
|
|
|
import java.util.function.BiFunction;
|
|
|
+import java.util.function.Function;
|
|
|
import java.util.function.Predicate;
|
|
|
import java.util.regex.Matcher;
|
|
|
import java.util.regex.Pattern;
|
|
@@ -81,6 +83,7 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
|
private final IContractInfoService contractInfoService;
|
|
|
private final IProjectInfoService projectInfoService;
|
|
|
private final WbsTreeContractMapper wbsTreeContractMapper;
|
|
|
+ private final IFormulaDao formulaDao;
|
|
|
|
|
|
public final static String WP="WP";
|
|
|
public final static String CHAIN="trees";
|
|
@@ -491,6 +494,7 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
|
);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
public void missingFill(List<String> missingList,TableElementConverter tec){
|
|
|
try {
|
|
|
/*数据池里面没有任何元素匹配和当前依赖匹配*/
|
|
@@ -958,14 +962,8 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
|
if(code!=null){
|
|
|
FormData formData= tec.getFormDataMap().get(code);
|
|
|
if(formData!=null&&!formData.empty()){
|
|
|
- Optional<String> op= formData.getValues().stream().map(ElementData::stringValue).filter(StringUtils::isNotEmpty).findFirst();
|
|
|
- op.ifPresent(t->{
|
|
|
- /*[2023年08月14日, 2023年08月15日]时间段格式*/
|
|
|
- if(t instanceof String){
|
|
|
- t=FormulaUtils.range2end(t);
|
|
|
- }
|
|
|
- dateList.add(new DateTime(t).toString(DatePattern.NORM_DATE_PATTERN));
|
|
|
- });
|
|
|
+ /*获取所有相关联日期的天气*/
|
|
|
+ formData.getValues().stream().map(ElementData::stringValue).filter(StringUtils::isNotEmpty).flatMap(s->FormulaUtils.duration2date(s).stream()).distinct().forEach(dateList::add);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -2524,6 +2522,11 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
|
}
|
|
|
|
|
|
|
|
|
+ public void create(){
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
public Map<String,Object> getBussDataInfo(Long pkeyId, int type,Boolean isFormLoading) {
|
|
|
/*需要加载表单公式的时候isFormLoading==true*/
|
|
|
Document document=null;
|
|
@@ -2792,6 +2795,7 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|