@@ -276,8 +276,8 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
if (op.isPresent()) {
g = op.get();
}
- }
- if (g == null) {
+ }else{
+ /*只有不存在配置的前提下才能尝试自动匹配*/
Optional<ElementBlock> op = elementBlockList.stream().filter(w -> FormulaUtils.similarity(w.getEName(), t.getPoint()) > 0.3).max(Comparator.comparingDouble((ElementBlock b) -> FormulaUtils.similarity(b.getEName(), t.getPoint())));
/*相似匹配*/