|
@@ -42,5 +42,6 @@ void area_business_card_enter_or_leave::on_leave(const std::shared_ptr<area_hove
|
|
|
const auto &ep=a->m_last_point;
|
|
|
snprintf(sql,LENGTH_SQL,"UPDATE his_location_area SET leave_time='%s',end_point='%.2f,%.2f' WHERE card_id = '%s' AND area_id=%d AND enter_time='%s';",
|
|
|
end_time.c_str(),ep.x,ep.y,card_id.c_str(),a->id(),start_time.c_str());
|
|
|
+ log_info("card_enter_leave:%s",sql);
|
|
|
db_tool::PushAsync(sql);
|
|
|
}
|