Sfoglia il codice sorgente

优化器到求解组件

huangxingxing 3 mesi fa
parent
commit
5cd2d2a471

+ 8 - 7
src/main/java/com/miniframe/tools/file/AirfoilFileRead.java

@@ -23,11 +23,12 @@ public class AirfoilFileRead {
         sc.andPidEqualTo(pid);
         sc.andTypeEqualTo(2);
         sb.setOrderByClause("step asc");
-        List<MdoProComval> comvals =comvalDao.selectByExample(sb);
+        comvalDao.deleteByExample(sb);
+//        List<MdoProComval> comvals =comvalDao.selectByExample(sb);
         int con =0;
-        if(comvals!=null||!comvals.isEmpty()){
-            con=comvals.size();
-        }
+//        if(comvals!=null||!comvals.isEmpty()){
+//            con=comvals.size();
+//        }
         int i= 0;
         String line;
         // 使用try-with-resources语句确保资源被正确关闭
@@ -56,9 +57,9 @@ public class AirfoilFileRead {
                     comval.setType(2);//"1-列表数据 2-几何数据 3-压力数据"
                     comval.setGser(1);
                     comvalDao.insert(comval);
-                    WebsocketEndPoint webs =  (WebsocketEndPoint) UtilTools.getBean("websocketEndPoint");
-                    Gson gson = new Gson();
-                    webs.sendMessageToUser(String.valueOf(pid),gson.toJson(comval));
+//                    WebsocketEndPoint webs =  (WebsocketEndPoint) UtilTools.getBean("websocketEndPoint");
+//                    Gson gson = new Gson();
+//                    webs.sendMessageToUser(String.valueOf(pid),gson.toJson(comval));
                 }
                 i++;