|
@@ -53,13 +53,15 @@ public class FormulaMileage implements FormulaStrategy {
|
|
|
List<String> cp =cur.getFormula().getRelyList();
|
|
|
Map<String,FormData> map = new LinkedHashMap<>();
|
|
|
List<FormData> listFd = new ArrayList<>();
|
|
|
- fds.forEach(e->{
|
|
|
- if(cp.contains(e.getCode())){
|
|
|
- map.put(e.getCode(),e);
|
|
|
- listFd.add(e);
|
|
|
- }
|
|
|
+ cp.forEach(e->{
|
|
|
+ fds.forEach(k->{
|
|
|
+ if(e.equals(k.getCode())){
|
|
|
+ map.put(k.getCode(),k);
|
|
|
+ listFd.add(k);
|
|
|
+ }
|
|
|
+ });
|
|
|
});
|
|
|
- if(listFd.size()<9){
|
|
|
+ if(listFd.size()<keys.size()){
|
|
|
return;
|
|
|
}
|
|
|
/*测点名称*/
|
|
@@ -98,6 +100,7 @@ public class FormulaMileage implements FormulaStrategy {
|
|
|
/*设计ds*/
|
|
|
listFd.get(8).getValues().add(new ElementData(index,groupId,ds));
|
|
|
}
|
|
|
+ listFd.forEach(e->e.setUpdate(1));
|
|
|
}
|
|
|
}
|
|
|
this.cur.setFinished(Boolean.TRUE);
|