|
@@ -249,12 +249,14 @@ void card_list::load_his_card_postion_vehicle()
|
|
|
|
|
|
void card_list::load_his_card_postion_staff()
|
|
|
{
|
|
|
+ std::string init_limit_hour = config.get("service.init_limit_hour","48");
|
|
|
+
|
|
|
std::string sql = "select l.card_id,l.site_id, l.cur_time, l.x, l.y, l.z, l.area_info, l.state, \
|
|
|
att.start_time, att.end_time \
|
|
|
from rt_location l, rt_att_staff att, dat_card c, dat_staff_extend s \
|
|
|
where l.card_id = c.card_id and l.card_id = att.card_id and l.card_id=s.card_id\
|
|
|
and c.state_id=0 and end_time is null ";
|
|
|
- sql += " and timestampdiff(hour ,att.start_time,now()) <= " + std::to_string(CYaSetting::g_load_person_his_data_interval) + ";";
|
|
|
+ sql += " and timestampdiff(hour ,att.start_time,now()) <= " + init_limit_hour + ";";
|
|
|
|
|
|
log_info("load_his_card_postion_staff:%s ",sql.c_str());
|
|
|
|