张洋 1 month ago
parent
commit
1ede9da2e1

+ 2 - 1
zhipuzi_pos_windows/pch/pch.h

@@ -72,8 +72,9 @@ using namespace rapidjson;
 
 
 //业务相关的工具类函数
 //业务相关的工具类函数
 #include "../tool/CSetting.h"
 #include "../tool/CSetting.h"
+#include "../tool/CSqlite3.h"
 
 
 //网络相关的工具类函数
 //网络相关的工具类函数
 #include "../network/CZhipuziHttpClient.h"
 #include "../network/CZhipuziHttpClient.h"
 
 
-#endif //PCH_H
+#endif //PCH_H

+ 1 - 3
zhipuzi_pos_windows/tool/CFoodHandle.cpp

@@ -1,8 +1,6 @@
 #include "pch.h"
 #include "pch.h"
 #include "CFoodHandle.h"
 #include "CFoodHandle.h"
 
 
-#include "CSqlite3.h"
-
 CFoodHandle::CFoodHandle()
 CFoodHandle::CFoodHandle()
 {
 {
 
 
@@ -107,4 +105,4 @@ bool CFoodHandle::DeleteOneFood(std::string food_id)
 	}
 	}
 
 
 	return true;
 	return true;
-}
+}

+ 1 - 3
zhipuzi_pos_windows/tool/CSetting.cpp

@@ -1,8 +1,6 @@
 #include "pch.h"
 #include "pch.h"
 #include "CSetting.h"
 #include "CSetting.h"
 
 
-#include "CSqlite3.h"
-
 CSetting::CSetting()
 CSetting::CSetting()
 {
 {
 
 
@@ -794,4 +792,4 @@ std::string CSetting::getUsername()
 std::string CSetting::getPassword()
 std::string CSetting::getPassword()
 {
 {
 	return m_password;
 	return m_password;
-}
+}

+ 1 - 3
zhipuzi_pos_windows/tool/CSetting.h

@@ -1,7 +1,5 @@
 #pragma once
 #pragma once
 
 
-#include "pch.h"
-
 class ChufangPrinter
 class ChufangPrinter
 {
 {
 public:
 public:
@@ -75,4 +73,4 @@ private:
 
 
 	std::string m_username;
 	std::string m_username;
 	std::string m_password;
 	std::string m_password;
-};
+};

+ 1 - 1
zhipuzi_pos_windows/tool/CSqlite3.h

@@ -77,4 +77,4 @@ private:
 	int m_rc;
 	int m_rc;
 
 
 	sqlite3* m_db = NULL;
 	sqlite3* m_db = NULL;
-};
+};