|
@@ -2537,11 +2537,13 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
Map<String,String> parent= this.getSqlOne("select id,wbs_id wbsId,CONCAT(ancestors,',',id) path from m_wbs_tree_private a where a.node_name=? and a.project_id=?",Map.class,tabArr[type],contractInfo.getPId());
|
|
Map<String,String> parent= this.getSqlOne("select id,wbs_id wbsId,CONCAT(ancestors,',',id) path from m_wbs_tree_private a where a.node_name=? and a.project_id=?",Map.class,tabArr[type],contractInfo.getPId());
|
|
List<NodeTable> tableList= this.getSqlList("select p_key_id pkeyId, node_name nodeName ,init_table_name initTableName,html_url htmlUrl from m_wbs_tree_private where ancestors like ? and LENGTH(html_url)>0 and is_deleted=0 and project_id=? and wbs_id=?",NodeTable.class,parent.get("path")+"%",contractInfo.getPId(),parent.get("wbsId"));
|
|
List<NodeTable> tableList= this.getSqlList("select p_key_id pkeyId, node_name nodeName ,init_table_name initTableName,html_url htmlUrl from m_wbs_tree_private where ancestors like ? and LENGTH(html_url)>0 and is_deleted=0 and project_id=? and wbs_id=?",NodeTable.class,parent.get("path")+"%",contractInfo.getPId(),parent.get("wbsId"));
|
|
Map<String,Map<String,String>> coordinateMap=tableList.stream().collect(Collectors.toMap(NodeTable::getInitTableName,m->FormulaUtils.getElementCell(m.getHtmlUrl()),(v1,v2)->v2));
|
|
Map<String,Map<String,String>> coordinateMap=tableList.stream().collect(Collectors.toMap(NodeTable::getInitTableName,m->FormulaUtils.getElementCell(m.getHtmlUrl()),(v1,v2)->v2));
|
|
- List<FormData> processFds = this.createFormDataByTableName(String.join(",", ""));
|
|
|
|
|
|
+ List<FormData> processFds = this.createFormDataByTableName(tableList.stream().map(NodeTable::getInitTableName).collect(Collectors.joining("','")));
|
|
listForMeter(processFds,contractInfo.getPId(),parent.get("id"));
|
|
listForMeter(processFds,contractInfo.getPId(),parent.get("id"));
|
|
TableElementConverter tec = new TableElementConverter(processFds,coordinateMap,tableList);
|
|
TableElementConverter tec = new TableElementConverter(processFds,coordinateMap,tableList);
|
|
tec.setProjectId(Long.parseLong(contractInfo.getPId()));
|
|
tec.setProjectId(Long.parseLong(contractInfo.getPId()));
|
|
tec.setContractId(contractInfo.getId());
|
|
tec.setContractId(contractInfo.getId());
|
|
|
|
+ tec.setPeriodId(periodId);
|
|
|
|
+ tec.setLog(new FormulaLog());
|
|
tec.before();
|
|
tec.before();
|
|
List<FormulaHandleChain> formulaHandleChains = new ArrayList<>();
|
|
List<FormulaHandleChain> formulaHandleChains = new ArrayList<>();
|
|
ExecutorInit init= new ExecutorInit(tec);
|
|
ExecutorInit init= new ExecutorInit(tec);
|