| | |
| | | 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);
|
| | |
| | | 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());
|
| | |
| | | }
|
| | | }
|
| | | filebyte = new byte[0];
|
| | | {
|
| | | /*{
|
| | | if(nowFbo.getDownload_state() == DownLoadState_ExportSucc) {
|
| | | //System.out.println("导出历史放电数据成功");
|
| | | file.setDownload_flag(DownloadFlag_Over);
|
| | |
| | | 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);
|
| | | /******************************** 最后设置当前导出状态 ********************************************/
|