Commit 47f87895 by wuyang.zou

Pos Response Ods Push Order Result

wait test

Version:2.1.1
parent 39274137
...@@ -1986,6 +1986,7 @@ bool JsonModule::_getOrderResponseJson(IN const std::string& posResponse, IN con ...@@ -1986,6 +1986,7 @@ bool JsonModule::_getOrderResponseJson(IN const std::string& posResponse, IN con
uint64_t pk_id = GetJsonIntSafe(document2,"pk_id"); uint64_t pk_id = GetJsonIntSafe(document2,"pk_id");
std::string child_store_id; std::string child_store_id;
if (document2.HasMember("shopInfo")) if (document2.HasMember("shopInfo"))
{ {
rapidjson::Value& shopInfo_obj = document2["shopInfo"]; rapidjson::Value& shopInfo_obj = document2["shopInfo"];
...@@ -2019,6 +2020,12 @@ bool JsonModule::_getOrderResponseJson(IN const std::string& posResponse, IN con ...@@ -2019,6 +2020,12 @@ bool JsonModule::_getOrderResponseJson(IN const std::string& posResponse, IN con
writer.Key("pk_id"); writer.Key("pk_id");
writer.Uint64(pk_id); writer.Uint64(pk_id);
writer.Key("store_id");
writer.String( _store_id.c_str() );
writer.Key("pos_id");
writer.String( _pos_id.c_str() );
writer.Key("child_store_id"); writer.Key("child_store_id");
writer.String(child_store_id.c_str()); writer.String(child_store_id.c_str());
...@@ -2328,6 +2335,7 @@ void JsonModule::setInitData(IN const char* data) ...@@ -2328,6 +2335,7 @@ void JsonModule::setInitData(IN const char* data)
} }
_store_id = document["store_id"].GetString(); _store_id = document["store_id"].GetString();
_pos_id = document["pos_id"].GetString();
} }
int JsonModule::_getODSStatusByPOSReq(int fm_cmd) int JsonModule::_getODSStatusByPOSReq(int fm_cmd)
......
...@@ -109,6 +109,7 @@ public: ...@@ -109,6 +109,7 @@ public:
private: private:
std::string _store_id; //门店号 std::string _store_id; //门店号
std::string _pos_id; //POS编号;
private: private:
std::string _getDeliveryTypeString(int type); std::string _getDeliveryTypeString(int type);
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
INITIALIZE_EASYLOGGINGPP INITIALIZE_EASYLOGGINGPP
#define VERSION "1.2.1 RC " //版本号 #define VERSION "1.2.2 RC " //版本号
std::string g_init_data; std::string g_init_data;
std::string g_init_data_ods_back; std::string g_init_data_ods_back;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment