From 48b0d8bf2db9a5a0950946ad03544504633a86d0 Mon Sep 17 00:00:00 2001 From: whyclxw <http://whyclxw@118.89.139.230:10101/r/~whyclxw/IdeaTest.git> Date: 星期三, 01 九月 2021 12:54:18 +0800 Subject: [PATCH] 一体机修改成多线程导入数据库并插入导入进度 --- BattMonitor_FGCD-A059NT/src/com/dev/fgcd/data/FGCD_TestFBOFile.java | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/BattMonitor_FGCD-A059NT/src/com/dev/fgcd/data/FGCD_TestFBOFile.java b/BattMonitor_FGCD-A059NT/src/com/dev/fgcd/data/FGCD_TestFBOFile.java index 508d7c2..1cb2de8 100644 --- a/BattMonitor_FGCD-A059NT/src/com/dev/fgcd/data/FGCD_TestFBOFile.java +++ b/BattMonitor_FGCD-A059NT/src/com/dev/fgcd/data/FGCD_TestFBOFile.java @@ -16,6 +16,8 @@ public int file_count; //当前文件数 public int file_total; //数据文件总数 + public int file_downloadNum; //当前下载文件编号索引 + private int stop_reason; //结束原因 public FBOFile[] files = new FBOFile[8]; //读取的历史文件 @@ -152,6 +154,8 @@ public int download_state; //下载状态 public int now_data_block; //当前数据块数目 public int total_data_block; //当前下载状态 + + public void clear() { file_count = 0; //数据文件总数 @@ -328,6 +332,7 @@ this.monvol_type = monvol_type; } + public void setFileName() { filename = "F"+(2000+year); if(month>=10) { -- Gitblit v1.9.1