From 06cc6a688030171d1bff4453c76bc216dbde09e1 Mon Sep 17 00:00:00 2001 From: Administrator <1525436766@qq.com> Date: 星期五, 11 二月 2022 11:27:54 +0800 Subject: [PATCH] 2.当前的组端电压修改为当前选中那一组的组端电压,未选中电池组时设置为0 --- BattMonitor_FGCD-A059NT/src/com/battmonitor/data_store/InsertDataToMysql_Task_SQL.java | 28 ++++++++++++++-------------- 1 files changed, 14 insertions(+), 14 deletions(-) diff --git a/BattMonitor_FGCD-A059NT/src/com/battmonitor/data_store/InsertDataToMysql_Task_SQL.java b/BattMonitor_FGCD-A059NT/src/com/battmonitor/data_store/InsertDataToMysql_Task_SQL.java index 8adbba8..1044667 100644 --- a/BattMonitor_FGCD-A059NT/src/com/battmonitor/data_store/InsertDataToMysql_Task_SQL.java +++ b/BattMonitor_FGCD-A059NT/src/com/battmonitor/data_store/InsertDataToMysql_Task_SQL.java @@ -170,9 +170,9 @@ + "'" + tmp_test_data.getStartTestTimeString() + "', " + "'" + tmp_test_data.getRecordTimeString() + "', " + tmp_test_data.testTimeLong + ", " - + tmp_test_data.onlineVol + ", " - + tmp_test_data.groupVol + ", " - + tmp_test_data.testCurr + ", " + + String.format("%1.2f", tmp_test_data.onlineVol) + ", " + + String.format("%1.2f", tmp_test_data.groupVol) + ", " + + String.format("%1.2f", tmp_test_data.testCurr) + ", " + tmp_test_data.testCap + ", " + (n+1) + ", " + rt_data.get_al_MonVol_History(n) + ", " @@ -238,7 +238,7 @@ + "test_starttime, " + "record_time, " + "test_timelong, " - //+ "online_vol, " + + "online_vol, " + "group_vol, " + "test_curr, " + "test_cap, " @@ -256,9 +256,9 @@ + "'" + tmp_test_data.getStartTestTimeString() + "', " + "'" + tmp_test_data.getRecordTimeString() + "', " + tmp_test_data.testTimeLong + ", " - //+ tmp_test_data.onlineVol + ", " - + tmp_test_data.groupVol + ", " - + tmp_test_data.testCurr + ", " + + String.format("%1.2f", tmp_test_data.onlineVol) + ", " + + String.format("%1.2f", tmp_test_data.groupVol) + ", " + + String.format("%1.2f", tmp_test_data.testCurr) + ", " + tmp_test_data.testCap + ", " + (n+1) + ", " + tmp_mon_vol.get(n).monVol + ")"; @@ -281,9 +281,9 @@ + "record_num=" + (tmp_test_data.recordNum + 1) + ", " + "record_time='" + tmp_test_data.getRecordTimeString() + "', " + "test_timelong=" + tmp_test_data.testTimeLong + ", " - //+ "online_vol=" + tmp_test_data.onlineVol + ", " - + "group_vol=" + tmp_test_data.groupVol + ", " - + "test_curr=" + tmp_test_data.getAvgTestCurr()/*.testCurrAbsMax*/ + ", " + + "online_vol=" + String.format("%1.2f", tmp_test_data.onlineVol) + ", " + + "group_vol=" + String.format("%1.2f", tmp_test_data.groupVol) + ", " + + "test_curr=" + String.format("%1.2f", tmp_test_data.getAvgTestCurr())/*.testCurrAbsMax*/ + ", " + "test_cap=" + tmp_test_data.testCap + " " + " WHERE " + " BattGroupId=" + rt_data.BattGroupId @@ -453,8 +453,8 @@ + "'" + tmp_test_data.getRecordTimeString() + "', " + tmp_test_data.testTimeLong + ", " + tmp_test_data.test_stoptype + ", " - + tmp_test_data.groupVol + ", " - + tmp_test_data.testCurr + ", " + + String.format("%1.2f", tmp_test_data.groupVol) + ", " + + String.format("%1.2f", tmp_test_data.testCurr) + ", " + tmp_test_data.testCap + ", " + rt_data.mMaxMonNum + ", " + rt_data.mMaxMonVol + ", " @@ -481,8 +481,8 @@ + "record_time='" + tmp_test_data.getRecordTimeString() + "', " + "test_timelong=" + tmp_test_data.testTimeLong + ", " + "test_stoptype=" + tmp_test_data.test_stoptype + ", " - + "group_vol=" + tmp_test_data.groupVol + ", " - + "test_curr=" + tmp_test_data.testCurrAbsMax + ", " + + "group_vol=" + String.format("%1.2f", tmp_test_data.groupVol) + ", " + + "test_curr=" + String.format("%1.2f", tmp_test_data.testCurrAbsMax) + ", " + "test_cap=" + tmp_test_data.testCap + ", " + "max_monnum=" + rt_data.mMaxMonNum + ", " + "max_monvol=" + rt_data.mMaxMonVol + ", " -- Gitblit v1.9.1