|
@@ -60,13 +60,9 @@ void card_list::init_staffer(const std::string & lszId64)
|
|
|
person* tmp_ptr= static_cast<person*>(card_ptr.get());
|
|
|
person* db_person_ptr= static_cast<person*>(db_person.get());
|
|
|
|
|
|
- tmp_ptr->m_cid = db_person_ptr->m_cid;
|
|
|
- tmp_ptr->m_type = db_person_ptr->m_type;
|
|
|
- tmp_ptr->m_deptid = db_person_ptr->m_deptid;
|
|
|
+ card_ptr->set_base_data(db_person_ptr->m_cid,db_person_ptr->m_type,db_person_ptr->m_deptid,db_person_ptr->m_level_id);
|
|
|
//group_id
|
|
|
//occ_id
|
|
|
- tmp_ptr->m_level_id = db_person_ptr->m_level_id;
|
|
|
- // tmp_ptr->m_display = db_person_ptr->m_display;
|
|
|
tmp_ptr->m_workLine = db_person_ptr->m_workLine;
|
|
|
tmp_ptr->m_stafferName = db_person_ptr->m_stafferName;
|
|
|
tmp_ptr->m_deptName = db_person_ptr->m_deptName;
|
|
@@ -105,17 +101,15 @@ void card_list::init_vehicle(const std::string & lszId64)
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- car* db_car= static_cast<car*>(map.begin()->second.get());
|
|
|
uint64_t id64 = map.begin()->first;
|
|
|
auto card_ptr = card_list::instance()->get(id64);
|
|
|
+ car* db_car= static_cast<car*>(map.begin()->second.get());
|
|
|
if(card_ptr)
|
|
|
{
|
|
|
car* tmp_ptr= static_cast<car*>(card_ptr.get());
|
|
|
- //tmp_ptr->m_display = static_cast<uint16_t>(db_car->m_display);
|
|
|
- tmp_ptr->m_deptid = db_car->m_deptid;
|
|
|
+ card_ptr->set_base_data(db_car->m_cid,db_car->m_type,db_car->m_deptid,db_car->m_level_id);
|
|
|
tmp_ptr->m_vehicle_category_id = db_car->m_vehicle_category_id;
|
|
|
tmp_ptr->m_vehicle_type_id = db_car->m_vehicle_type_id;
|
|
|
- tmp_ptr->m_level_id = db_car->m_level_id;
|
|
|
if(db_car->m_display!=tmp_ptr->m_display){
|
|
|
request(id64,tmp_ptr->m_id,db_car->m_display);
|
|
|
}
|