|
@@ -404,6 +404,7 @@ public class ExcelTabServiceImpl extends BaseServiceImpl<ExcelTabMapper, ExcelTa
|
|
List<TableInfo> tableInfoList = this.getTableInfoList(dataArray);
|
|
List<TableInfo> tableInfoList = this.getTableInfoList(dataArray);
|
|
List<NodeTable> tableAll = createNodeTables(nodeId, tableInfoList.get(0).getContractId(), tableInfoList.get(0).getProjectId(), type);
|
|
List<NodeTable> tableAll = createNodeTables(nodeId, tableInfoList.get(0).getContractId(), tableInfoList.get(0).getProjectId(), type);
|
|
String tableNames=tableAll.stream().map(NodeTable::getInitTableName).distinct().collect(Collectors.joining("','","'","'"));
|
|
String tableNames=tableAll.stream().map(NodeTable::getInitTableName).distinct().collect(Collectors.joining("','","'","'"));
|
|
|
|
+ /*当前工序包含的所有元素信息,还未包含数据*/
|
|
List<FormData> processFds =this.formulaService.getSqlList(
|
|
List<FormData> processFds =this.formulaService.getSqlList(
|
|
"select d.id,c.tab_ch_name tableChName,d.e_type eType,d.e_name eName,d.e_length eLength,d.e_allow_deviation eAllowDeviation,CONCAT(c.tab_en_name,':',d.e_key) code from m_table_info c join m_wbs_form_element d on c.id=d.f_id where d.is_deleted=0 and c.tab_en_name in("+tableNames+")"
|
|
"select d.id,c.tab_ch_name tableChName,d.e_type eType,d.e_name eName,d.e_length eLength,d.e_allow_deviation eAllowDeviation,CONCAT(c.tab_en_name,':',d.e_key) code from m_table_info c join m_wbs_form_element d on c.id=d.f_id where d.is_deleted=0 and c.tab_en_name in("+tableNames+")"
|
|
,FormData.class
|
|
,FormData.class
|
|
@@ -412,6 +413,10 @@ public class ExcelTabServiceImpl extends BaseServiceImpl<ExcelTabMapper, ExcelTa
|
|
if (Func.isNotEmpty(keyMappers) && Func.isNotEmpty(tableAll)) {
|
|
if (Func.isNotEmpty(keyMappers) && Func.isNotEmpty(tableAll)) {
|
|
Map<String, Map<String, String>> coordinateMap = createCoordinateMap(keyMappers, type);
|
|
Map<String, Map<String, String>> coordinateMap = createCoordinateMap(keyMappers, type);
|
|
List<Formula> formulas = this.formulaService.getFormulaList(keyMappers);
|
|
List<Formula> formulas = this.formulaService.getFormulaList(keyMappers);
|
|
|
|
+ /*要找到最小加载数量
|
|
|
|
+ * 1.根据依赖溯源然后确定当前页面修改数据的影响范围
|
|
|
|
+ * 2.区分能部分执行和必须整体执行公式的元素*/
|
|
|
|
+
|
|
/*判断哪些元素是可部分执行和整体执行*/
|
|
/*判断哪些元素是可部分执行和整体执行*/
|
|
CurrentNode currentNode = null;
|
|
CurrentNode currentNode = null;
|
|
Long pKeyId = null;
|
|
Long pKeyId = null;
|