浏览代码

添加新接口:插入新数据到reportData.db。

jianfeng1.wang 2 年之前
父节点
当前提交
87587247b9
共有 1 个文件被更改,包括 14 次插入0 次删除
  1. 14 0
      FactoryTool_CShare/Database/SQLiteHelper.cs

+ 14 - 0
FactoryTool_CShare/Database/SQLiteHelper.cs

@@ -870,5 +870,19 @@ namespace MOKA_Factory_Tools
             else
             else
                 return false;
                 return false;
         }
         }
+
+        public static bool AddReportOnlineData(SQLiteConnection connection, string url, string order, string content)
+        {
+            if (connection == null)
+                return false;
+
+            SQLiteCommand cmd = new SQLiteCommand();
+            cmd.Connection = connection;
+            cmd.CommandText = string.Format("insert into ReportData(order,url,content) values('{0}','{1}','{2}')", order, url, content);
+            int result = cmd.ExecuteNonQuery();
+            cmd.Dispose();
+
+            return result > 0 ? true : false;
+        }
     }
     }
 }
 }