|
|
@@ -825,6 +825,12 @@ bool CSqlite3::InitFoodData(rapidjson::Value& foodrows)
|
|
|
rapidjson::Value& foodinfo = foodrows[i];
|
|
|
|
|
|
std::string id = foodinfo["id"].GetString();
|
|
|
+
|
|
|
+ if (id == "5625413")
|
|
|
+ {
|
|
|
+ int a = 1;
|
|
|
+ }
|
|
|
+
|
|
|
std::string shop_id = foodinfo["shop_id"].GetString();
|
|
|
std::string name = foodinfo["name"].GetString();
|
|
|
std::string price = foodinfo["price"].GetString();
|
|
|
@@ -1252,15 +1258,20 @@ std::vector<CFood> CSqlite3::GetFoodByTypeid(std::string type_id, bool is_shouyi
|
|
|
newFood.member_price_used = (char*)sqlite3_column_text(stmt, 15);
|
|
|
newFood.member_price = (char*)sqlite3_column_text(stmt, 16);
|
|
|
newFood.buying_price = (char*)sqlite3_column_text(stmt, 17);
|
|
|
- newFood.stock = (char*)sqlite3_column_text(stmt,18);
|
|
|
+ newFood.stock = (char*)sqlite3_column_text(stmt, 18);
|
|
|
newFood.stockvalid = (char*)sqlite3_column_text(stmt, 19);
|
|
|
newFood.stock_warning = (char*)sqlite3_column_text(stmt, 20);
|
|
|
newFood.is_shouyinji_show = (char*)sqlite3_column_text(stmt, 21);
|
|
|
- newFood.expiration_date = (char*)sqlite3_column_text(stmt, 22);
|
|
|
- newFood.is_weight = (char*)sqlite3_column_text(stmt, 23);
|
|
|
- newFood.weight_plu_code = (char*)sqlite3_column_text(stmt, 24);
|
|
|
- newFood.weight_food_code = (char*)sqlite3_column_text(stmt, 25);
|
|
|
- newFood.member_price_json = (char*)sqlite3_column_text(stmt, 26);
|
|
|
+ newFood.is_waimai_show = (char*)sqlite3_column_text(stmt, 22);
|
|
|
+ newFood.is_tangshi_show = (char*)sqlite3_column_text(stmt, 23);
|
|
|
+ newFood.is_zhengcan_show = (char*)sqlite3_column_text(stmt, 24);
|
|
|
+ newFood.expiration_date = (char*)sqlite3_column_text(stmt, 25);
|
|
|
+ newFood.is_weight = (char*)sqlite3_column_text(stmt, 26);
|
|
|
+ newFood.weight_plu_code = (char*)sqlite3_column_text(stmt, 27);
|
|
|
+ newFood.weight_food_code = (char*)sqlite3_column_text(stmt, 28);
|
|
|
+ newFood.jiagong_type = (char*)sqlite3_column_text(stmt, 29);
|
|
|
+ newFood.cost_mode = (char*)sqlite3_column_text(stmt, 30);
|
|
|
+ newFood.member_price_json = (char*)sqlite3_column_text(stmt, 31);
|
|
|
|
|
|
data.push_back(newFood);
|
|
|
}
|