From ee24e022c8491d531785d3bfddedad4b39a6eac9 Mon Sep 17 00:00:00 2001
From: whyclj <1525436766@qq.com>
Date: 星期二, 08 一月 2019 13:51:33 +0800
Subject: [PATCH] 初始化web_site数据库中的表

---
 BattMonitor_DB_Builder/src/com/dev/fbs9100/FBS9100_Task_Thread_SQL.java |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/BattMonitor_DB_Builder/src/com/dev/fbs9100/FBS9100_Task_Thread_SQL.java b/BattMonitor_DB_Builder/src/com/dev/fbs9100/FBS9100_Task_Thread_SQL.java
index 2f33626..9dcdd6b 100644
--- a/BattMonitor_DB_Builder/src/com/dev/fbs9100/FBS9100_Task_Thread_SQL.java
+++ b/BattMonitor_DB_Builder/src/com/dev/fbs9100/FBS9100_Task_Thread_SQL.java
@@ -208,7 +208,7 @@
 	 * 
 	 * @param gB_MysqlConnPool
 	 */
-	public static void createBTSStationState_TableOnRam(MysqlConnPool con_pool) {
+	public static void createBTSStationState_TableOnRam(MysqlConnPool con_pool,boolean recreate_tb) {
 		String str1 = "DROP TABLE IF EXISTS " + Sql_Mysql.BTSStationState_Table;
 		String str2 = "CREATE TABLE IF NOT EXISTS " + Sql_Mysql.BTSStationState_Table
 				+ " ( `num` BIGINT NOT NULL AUTO_INCREMENT, "
@@ -233,7 +233,9 @@
 				+ " ENGINE=InnoDB DEFAULT CHARSET=utf8";
 		Sql_Mysql sql = new Sql_Mysql(con_pool.getConn());
 		try {
-			sql.sqlMysqlExecute(str1);
+			if(recreate_tb) {				
+				sql.sqlMysqlExecute(str1);
+			}
 			sql.sqlMysqlExecute(str2);
 		} catch (SQLException e) {
 			e.printStackTrace();

--
Gitblit v1.9.1