|
@@ -48,16 +48,19 @@ void area_business_card_enter_or_leave::on_leave(const std::shared_ptr<area_hove
|
|
|
|
|
|
///入库
|
|
|
void area_business_card_enter_or_leave::save_his_area_location_enter(const std::shared_ptr<area_hover>&area_hover_ptr,
|
|
|
- const std::shared_ptr<card_location_base> card_ptr,
|
|
|
+ const std::shared_ptr<card_location_base>&card_ptr,
|
|
|
uint64_t start_time_ms)
|
|
|
{
|
|
|
char sql[LENGTH_SQL] = {0};
|
|
|
|
|
|
+ std::string call(card_ptr->is_vehicle()?"add_area_vehicle":"add_area_staff");
|
|
|
+#if 0
|
|
|
std::string call("add_area_staff");
|
|
|
if(card_ptr->is_vehicle())//车卡
|
|
|
{
|
|
|
call="add_area_vehicle";
|
|
|
}
|
|
|
+#endif
|
|
|
|
|
|
std::string start_str = tool_time::to_str_ex(start_time_ms);
|
|
|
|
|
@@ -70,16 +73,19 @@ void area_business_card_enter_or_leave::save_his_area_location_enter(const std::
|
|
|
|
|
|
///入库
|
|
|
void area_business_card_enter_or_leave::save_his_area_location_leave(const std::shared_ptr<area_hover>&area_hover_ptr,
|
|
|
- const std::shared_ptr<card_location_base> card_ptr,
|
|
|
+ const std::shared_ptr<card_location_base>&card_ptr,
|
|
|
uint64_t start_time_ms)
|
|
|
{
|
|
|
char sql[LENGTH_SQL] = {0};
|
|
|
|
|
|
+ std::string call(card_ptr->is_vehicle()?"add_area_vehicle":"add_area_staff");
|
|
|
+#if 0
|
|
|
std::string call("add_area_staff");
|
|
|
if(card_ptr->is_vehicle())//车卡
|
|
|
{
|
|
|
call="add_area_vehicle";
|
|
|
}
|
|
|
+#endif
|
|
|
|
|
|
std::string start_str = tool_time::to_str_ex(start_time_ms);
|
|
|
std::string end_str = tool_time::to_str_ex(tool_time::now_to_ms());
|