admin_customer_1014_2

This commit is contained in:
dengbw
2021-10-15 00:02:49 +08:00
committed by xiaoyu
parent a3008a36b8
commit 9d086f2f3d
+6 -1
View File
@@ -70,6 +70,7 @@ class Customer extends HD_Controller
$where['admin_id'] = $params['admin_id'];
} else {
$where_lcb = array();
$str_ids = '';
if ($params['biz_id_admin']) {//指定店铺所有销售员
$where_lcb['biz_id'] = $params['biz_id_admin'];
} else {
@@ -100,7 +101,11 @@ class Customer extends HD_Controller
$str_ids = $str_ids . ',0';
$where["admin_id in({$str_ids})"] = null;
} else {
$where['admin_id'] = -1;
if ($str_ids) {
$where['admin_id'] = 0;
} else {
$where['admin_id'] = -1;
}
}
}
!$params['city_id_admin'] && $params['city_id_admin'] = '';