充放电一体机FGCD通信程序【二期初版】
whyclxw
2021-09-02 1367c0f3e0388d1ac77e19653d857058eef1de52
BattMonitor_FGCD-A059NT/src/com/dev/fgcd/comm/FGCD_TestDataDownLoad.java
@@ -83,7 +83,7 @@
      for(int i=0;i<fbofile.files.length;i++) {
         //当前下载文件
         FBOFile file = fbofile.files[i];
         fbofile.file_downloadNum=i;//设置当前下载文件的索引
         int file_downloadNum=i;//设置当前下载文件的索引
         if(now_download_state == DownLoadState_UserCancel) {
            file.setDownload_state(DownLoadState_UserCancel);
            file.setDownload_flag(DownloadFlag_Fail);
@@ -135,7 +135,7 @@
                     nowFbo.setDownload_state(DownLoadState_ExportFail);
                  }*/
                  //开启新线程导入数据库
                  FGCD_Export_Thread_SQL export_Thread=new FGCD_Export_Thread_SQL(pool, nowFbo, fbofile);
                  FGCD_Export_Thread_SQL export_Thread=new FGCD_Export_Thread_SQL(pool, nowFbo, fbofile,file_downloadNum);
                  new Thread(export_Thread).start();
               }
               System.out.println("nowFbo.getDownload_state():"+nowFbo.getDownload_state());
@@ -152,7 +152,7 @@
            }         
         }
         filebyte = new byte[0];         
         {
         /*{
            if(nowFbo.getDownload_state() == DownLoadState_ExportSucc) {
               //System.out.println("导出历史放电数据成功");
               file.setDownload_flag(DownloadFlag_Over);
@@ -162,8 +162,8 @@
               file.setDownload_flag(DownloadFlag_Fail);
               fbofile.op_cmd = FGCD_ComBase.CMD_DownLoadFBDFile_Over;
            }
         }
         FGCD_Task_Thread_SQL.updateFBOFIleExportFlag(pool,fbofile);
         }*/
         //FGCD_Task_Thread_SQL.updateFBOFIleExportFlag(pool,fbofile);
      }   
      FGCD_Task_Thread_SQL.updateFgcd_FiledownloadState_TableByDevId(pool, fbofile);
      /******************************** 最后设置当前导出状态 ********************************************/