|
@@ -2631,6 +2631,8 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
|
Map<String,String> parent= getWtpParent(meterType.getName(),contractInfo.getPId());
|
|
|
List<NodeTable> tableList=getTableListMeter(parent);
|
|
|
Map<String,Map<String,String>> coordinateMap=tableList.parallelStream().collect(Collectors.toMap(NodeTable::getInitTableName,m->FormulaUtils.getElementExcelCoords(m.getHtmlUrl()),(v1,v2)->v2));
|
|
|
+ /*额外单元格坐标配置*/
|
|
|
+ settingCoordsExtend(coordinateMap);
|
|
|
List<FormData> processFds = this.createFormDataByTableName(tableList.stream().map(NodeTable::getInitTableName).collect(Collectors.joining("','")));
|
|
|
listForMeter(processFds,contractInfo.getPId(),parent.get("id"));
|
|
|
|
|
@@ -2664,6 +2666,15 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
|
return tec.getReportResults();
|
|
|
}
|
|
|
|
|
|
+ public void settingCoordsExtend( Map<String,Map<String,String>> coordinateMap){
|
|
|
+ if(coordinateMap!=null){
|
|
|
+ /*中间计量表*/
|
|
|
+ Map<String,String> interimMeterMap = coordinateMap.computeIfAbsent("m_20231212171403_1734501859877453824",k->new HashMap<>());
|
|
|
+ /*页码*/
|
|
|
+ interimMeterMap.put("key_23","3_"+(BaseUtils.parseColumn("I")+1));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
public List<NodeTable> getTableListMeter(Map<String,String> parent){
|
|
|
return this.getSqlList("select p_key_id pkeyId, node_name nodeName ,init_table_name initTableName,html_url htmlUrl ,excel_id excelId 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")+"%",parent.get("projectId"),parent.get("wbsId"));
|
|
|
}
|