docs: 新增部分注释
This commit is contained in:
parent
5fa58adfeb
commit
12199bf8fb
|
@ -158,7 +158,7 @@ if($qs == 'heartbeat' || $qs == 'addperson' || $qs == 'delperson') { //心跳
|
||||||
// 更新posdevice表的同步时间
|
// 更新posdevice表的同步时间
|
||||||
$db->query("update tb_pos_device set synctime=now() where id = ".$device_id);
|
$db->query("update tb_pos_device set synctime=now() where id = ".$device_id);
|
||||||
|
|
||||||
// 从tb_user表中获取所有启用且属于公司公司的用户列表,
|
// 从tb_user表中获取所有启用且属于对应公司的用户列表,
|
||||||
$userList_s = $db->get_all("select id, username, cellphone, deptname from tb_user where enabled = '1' and company_id = '{$company_id}'");
|
$userList_s = $db->get_all("select id, username, cellphone, deptname from tb_user where enabled = '1' and company_id = '{$company_id}'");
|
||||||
// 从tb_pos_device_user表中获取对应用户设备信息
|
// 从tb_pos_device_user表中获取对应用户设备信息
|
||||||
// 新版Android取餐机,宇航用于下发人脸、用户信息到Android取餐机用的记录表,方便知道每台机现在的同步情况
|
// 新版Android取餐机,宇航用于下发人脸、用户信息到Android取餐机用的记录表,方便知道每台机现在的同步情况
|
||||||
|
@ -176,6 +176,7 @@ if($qs == 'heartbeat' || $qs == 'addperson' || $qs == 'delperson') { //心跳
|
||||||
}
|
}
|
||||||
|
|
||||||
// 关联用户表和用户id卡表,获取信息
|
// 关联用户表和用户id卡表,获取信息
|
||||||
|
// 获取对应租户下的所有用户卡信息
|
||||||
$data = $db->get_all("select a.* from tb_user_idcard a, tb_user b where a.user_id=b.id and b.company_id = '{$company_id}' and a.state=1 order by a.id");
|
$data = $db->get_all("select a.* from tb_user_idcard a, tb_user b where a.user_id=b.id and b.company_id = '{$company_id}' and a.state=1 order by a.id");
|
||||||
$cardInfo = array();
|
$cardInfo = array();
|
||||||
// 提取上一步获取的信息并将数据循环加入到卡信息数组中,类似List[Dict],key是user_id,value是item
|
// 提取上一步获取的信息并将数据循环加入到卡信息数组中,类似List[Dict],key是user_id,value是item
|
||||||
|
|
Loading…
Reference in New Issue