Browse Source

删除多余表结构

JeffWang 3 years ago
parent
commit
0ece1e45c7

+ 3 - 0
Source/OGCAssistTool/OGCAssistTool/OGCAssistTool.cpp

@@ -136,6 +136,9 @@ BOOL COGCAssistToolApp::InitInstance()
 	std::vector<TB_ORDER> vtOrder;
 	GLOBAL::g_db.QueryOrder("3322", order);
 	GLOBAL::g_db.InsertOrder("5555", "DeltaE00", "3.6", 1);
+	GLOBAL::g_db.UpdateOrder("5555", "DeltaE98", "1.02", 1);
+	GLOBAL::g_db.InsertSN("5555", "T302", "dfdfdf", "2022-03-19 09:25:19", "2022-03-19 09:25:59", 25532, 1, 3.2, "");
+	GLOBAL::g_db.UpdateSNData("5555", "dfdfdf", "T302",  "2022-03-19 09:25:19", "2022-03-19 09:25:59", 25532, 1, 3.2, "3.02/128/128/128\r\n3.02/128/128/128\r\n3.02/128/128/128\r\n3.02/128/128/128\r\n3.02/128/128/128\r\n3.02/128/128/128\r\n3.02/128/128/128\r\n3.02/128/128/128\r\n3.02/128/128/128\r\n3.02/128/128/128\r\n3.02/128/128/128\r\n3.02/128/128/128\r\n3.02/128/128/128\r\n3.02/128/128/128\r\n3.02/128/128/128\r\n3.02/128/128/128\r\n3.02/128/128/128\r\n3.02/128/128/128\r\n3.02/128/128/128\r\n3.02/128/128/128\r\n3.02/128/128/128\r\n3.02/128/128/128\r\n3.02/128/128/128\r\n3.02/128/128/128\r\n3.02/128/128/128\r\n3.02/128/128/128\r\n3.02/128/128/128\r\n3.02/128/128/128\r\n3.02/128/128/128\r\n3.02/128/128/128\r\n3.02/128/128/128\r\n3.02/128/128/128\r\n3.02/128/128/128\r\n");
 	GLOBAL::g_db.QueryOrders(vtOrder, "2022-04-01 02:25:19", "2022-04-21 02:25:19");
 #endif
 

+ 14 - 0
Source/OGCAssistTool/OGCAssistTool/PageDebug.cpp

@@ -416,3 +416,17 @@ void CPageDebug::OnTimer(UINT_PTR nIDEvent)
 	}
 	CDialogEx::OnTimer(nIDEvent);
 }
+
+void CPageDebug::OnOK()
+{
+	// TODO: 在此添加专用代码和/或调用基类
+
+	OnBnClickedTest();
+}
+
+void CPageDebug::OnCancel()
+{
+	// TODO: 在此添加专用代码和/或调用基类
+
+	//CDialogEx::OnCancel();
+}

+ 3 - 0
Source/OGCAssistTool/OGCAssistTool/PageDebug.h

@@ -44,4 +44,7 @@ public:
 	afx_msg void OnBnClickedTest();
 	afx_msg void OnBnClickedConnect();
 	afx_msg void OnTimer(UINT_PTR nIDEvent);
+protected:
+	virtual void OnOK();
+	virtual void OnCancel();
 };

+ 0 - 109
Source/OGCAssistTool/OGCAssistTool/TableInfo.h

@@ -1,115 +1,6 @@
 #ifndef __TABLE_INFO__
 #define __TABLE_INFO__
 
-
-// 订单下载表;
-typedef struct	__ST_MID__
-{
-	std::string		order;							// 订单号;
-	std::string		number;							// 订单数量;
-	std::string		pid;							// pid;
-	std::string		ctype;							// client type;
-	std::string		version;						// 软件版本;
-	std::string		purl;							// 包地址;
-	std::string		psize;							// 包大小;
-	std::string		pmd5;							// 包md5;
-	std::string		status;							// 下载状态:0=未下载,1=完成,-1=下载失败;
-	std::string		start_date;						// 下载开始时间;
-	std::string		finish_date;					// 下载完成时间;
-	//std::string		dsize;							// 已下载大小;
-	//std::string		file;							// 文件路径;
-	std::string		des;							// 状态描述:下载失败原因;
-
-	__ST_MID__& operator=(const __ST_MID__& that)
-	{
-		if ( this != &that )
-		{
-			number = that.number;
-			pid = that.pid;
-			ctype = that.ctype;
-			version = that.version;
-			purl = that.purl;
-			psize = that.psize;
-			pmd5 = that.pmd5;
-			status = that.status;
-			start_date = that.start_date;
-			finish_date = that.finish_date;
-			//dsize = that.dsize;
-			//file = that.file;
-			des = that.des;
-		}
-
-		return *this;
-	}
-
-}STMid, *pSTMid;
-
-// 抄写表;
-typedef struct __ST_KEYS__
-{
-	std::string		sn;								// sn;
-	std::string		bid;							// 订单号;
-	std::string		keys;							// key包Json字符串;
-	std::string		pid;							// project id;
-	std::string		copy_date;						// 抄写成功时间;
-	std::string		report_date;					// 上报成功时间;
-	//std::string		copy_status;					// 抄写状态:0=未抄写、-1=抄写成失败、1=抄写成功;
-	//std::string		report_status;					// 上报状态:0=未上报、1=上报成功、-1=上报失败;
-
-	__ST_KEYS__& operator=(const __ST_KEYS__& that)
-	{
-		if ( this != &that )
-		{
-			sn = that.sn;
-			bid = that.bid;
-			keys = that.keys;
-			pid = that.pid;
-			copy_date = that.copy_date;
-			report_date = that.report_date;
-		}
-
-		return *this;
-	}
-}STKeys, *pSTKeys;
-
-// 日志表;
-typedef struct __ST_LOG__
-{
-	std::string		type;							// 日志类型;
-	std::string		sn;								// 关联的sn;	
-	std::string		bid;							// 订单号;
-	std::string		content;						// 日志内容;
-	std::string		gdate;							// 日志生成时间;
-	std::string		report_date;					// 日志上报成功时间;
-	//std::string		report_status;				// 上报状态:0=未上报、1=上报成功、-1=上报失败;
-}STLog, *pSTLog;
-
-///////////////////////////////////////////////////////////////////////////////////
-// 以下两结构,对外提供sdk时需要使用到;对外提供时,以上结构请删除;
-
-// 抄写表;
-typedef struct __SN_KEYS__
-{
-	int				pid;							// project id;
-	std::string		did;							// device id;
-	std::string		mac;							// mac地址;
-	std::string		hdcp;							// hdcp;
-	std::string		hdcp22;							// hdcp22;
-	std::string		widi;							// widi;
-	std::string		widevine;						// widevine;
-	std::string		esn;							// neflix esn;
-	std::string		cikey;							// cikey;
-}SNKeys, *pSNKeys;
-
-// 批次数量信息;
-typedef struct __BID_INFO__
-{
-	std::string tcount;								// 应下载sn数量(服务器给定的,一般应下载sn数量=实际下载sn数量);
-	std::string sn_count;							// 实际下载sn数量(本地保存的);
-	std::string copy_count;							// 成功抄写数量;
-	std::string report_count;						// 成功上报数量;
-}BidInfo, *pBidInfo;
-
 // 订单表;
 typedef struct __TB_ORDER__
 {