|
@@ -124,6 +124,7 @@ void card_location_base::put_three_rates(card_pos & cp)
|
|
{
|
|
{
|
|
cp.rec_time=m_time;cp.type=m_type;cp.id=m_id;
|
|
cp.rec_time=m_time;cp.type=m_type;cp.id=m_id;
|
|
cp.identifier_id=m_cid;cp.running_stat=m_stat;cp.final_v=m_speed;
|
|
cp.identifier_id=m_cid;cp.running_stat=m_stat;cp.final_v=m_speed;
|
|
|
|
+ cp.dpt_id = m_deptid;
|
|
log_info("three_rates:type:%d,id:%d,cid:%d",cp.type,cp.id,cp.identifier_id);
|
|
log_info("three_rates:type:%d,id:%d,cid:%d",cp.type,cp.id,cp.identifier_id);
|
|
three_rates::get_instance()->put(cp);
|
|
three_rates::get_instance()->put(cp);
|
|
}
|
|
}
|
|
@@ -143,9 +144,9 @@ card_location_base::~card_location_base()
|
|
}
|
|
}
|
|
|
|
|
|
std::shared_ptr<card_location_base> card_location_base::make_person(const std::string&type,uint32_t cardid,uint16_t needdisplay,int16_t t,
|
|
std::shared_ptr<card_location_base> card_location_base::make_person(const std::string&type,uint32_t cardid,uint16_t needdisplay,int16_t t,
|
|
- int32_t deptid,int32_t level_id,uint32_t cid,int wl,const std::string &sname,const std::string & dname)
|
|
|
|
|
|
+ int32_t deptid,int32_t level_id,uint32_t cid,int wl,const std::string &sname,const std::string & dname,int worktype_id)
|
|
{
|
|
{
|
|
- return std::make_shared<person>(type,cardid,needdisplay,t, deptid,level_id,cid,wl,sname,dname);
|
|
|
|
|
|
+ return std::make_shared<person>(type,cardid,needdisplay,t, deptid,level_id,cid,wl,sname,dname,worktype_id);
|
|
}
|
|
}
|
|
|
|
|
|
std::shared_ptr<card_location_base> card_location_base::make_car(const std::string&type,uint32_t cardid,uint16_t needdisplay,int16_t t,
|
|
std::shared_ptr<card_location_base> card_location_base::make_car(const std::string&type,uint32_t cardid,uint16_t needdisplay,int16_t t,
|