瀏覽代碼

pipe 类型目前都按照方形处理

huangxingxing 9 月之前
父節點
當前提交
40b6eed0bd
共有 1 個文件被更改,包括 16 次插入0 次删除
  1. 16 0
      src/main/java/com/miniframe/template/TemplateGenerator2.java

+ 16 - 0
src/main/java/com/miniframe/template/TemplateGenerator2.java

@@ -278,6 +278,22 @@ public class TemplateGenerator2 {
 
         List<DPipeVo> vos =new ArrayList<>();
         for (DPipe pipe:pipes) {
+            if(pipe.getSectionType().equals("HORZI_ELLIPSE")
+            || pipe.getSectionType().equals("VERT_ELLIPSE")
+            || pipe.getSectionType().equals("ARCH")
+            || pipe.getSectionType().equals("RECT_TRIANGULAR")
+            || pipe.getSectionType().equals("RECT_ROUND")
+            || pipe.getSectionType().equals("MODBASKETHANDLE")
+            || pipe.getSectionType().equals("EGG")
+            || pipe.getSectionType().equals("HORSESHOE")
+            || pipe.getSectionType().equals("GOTHIC")
+            || pipe.getSectionType().equals("CATENARY")
+            || pipe.getSectionType().equals("SEMIELLIPTICAL")
+            || pipe.getSectionType().equals("BASKETHANDLE")
+            || pipe.getSectionType().equals("SEMICIRCULAR")
+            ){//TODO 目前都按照方形处理
+                pipe.setSectionType("RECTANGLE");
+            }
             DPipeVo vo = new DPipeVo();
             vo.setdPipe(pipe);
             vo.setEnName(getNnameById(pipe.getEnid()));