|
@@ -2493,7 +2493,10 @@ public class ExecutorMeter extends FormulaExecutor {
|
|
|
|
|
|
/*删除没有计量的章节*/
|
|
/*删除没有计量的章节*/
|
|
public LinkedHashMap<String,NodeTable> removeNodeTable(LinkedHashMap<String,List<MeterApply>> meterApplyGroup){
|
|
public LinkedHashMap<String,NodeTable> removeNodeTable(LinkedHashMap<String,List<MeterApply>> meterApplyGroup){
|
|
- List<NodeTable> table2E16= tec.getTableAll().stream().filter(e-> Pattern.matches("【2-16】工程计量表\\(\\d+章\\)",e.getNodeName().replaceAll("\\s+",""))).collect(Collectors.toList());
|
|
|
|
|
|
+ List<NodeTable> table2E16= tec.getTableAll().stream().filter(e-> Pattern.matches("【2-16】工程计量表(\\(\\d+章\\))?",e.getNodeName().replaceAll("\\s+",""))).collect(Collectors.toList());
|
|
|
|
+ table2E16.stream().filter(e->e.getNodeName().equals("【2-16】工程计量表")).findAny().ifPresent(t->{
|
|
|
|
+ t.setNodeName(t.getNodeName()+"(100章)");
|
|
|
|
+ });
|
|
List<String>chapters =new ArrayList<>(meterApplyGroup.keySet());
|
|
List<String>chapters =new ArrayList<>(meterApplyGroup.keySet());
|
|
List<Long> removeIds=table2E16.stream().filter(t->!BaseUtils.inChain(chapters,t.getNodeName())).map(NodeTable::getPKeyId).collect(Collectors.toList());
|
|
List<Long> removeIds=table2E16.stream().filter(t->!BaseUtils.inChain(chapters,t.getNodeName())).map(NodeTable::getPKeyId).collect(Collectors.toList());
|
|
/*删除没有计量的章节*/
|
|
/*删除没有计量的章节*/
|