修改空间站分配线索也需要解锁
This commit is contained in:
@@ -716,7 +716,7 @@ class Customers extends Wxapp
|
||||
$biz = $this->get_biz_info();
|
||||
$rows = $this->customers_model->get_status();
|
||||
$lists = [];
|
||||
if ($biz['type'] == Biz_model::BIZ_TYPE_4s) {
|
||||
if (in_array($biz['type'], [Biz_model::BIZ_TYPE_4s, Biz_model::BIZ_TYPE_SPACE])) {
|
||||
$lists[] = ['key' => 1000, 'name' => '线索池'];
|
||||
}
|
||||
if ($rows) {
|
||||
@@ -855,7 +855,9 @@ class Customers extends Wxapp
|
||||
$status = 0;
|
||||
$show_log = true;
|
||||
} else {
|
||||
$biz_type == Biz_model::BIZ_TYPE_4s && $where['un_lock'] = 1;
|
||||
if (in_array($biz_type, [Biz_model::BIZ_TYPE_4s, Biz_model::BIZ_TYPE_SPACE])) {
|
||||
$where['un_lock'] = 1;
|
||||
}
|
||||
}
|
||||
if ($of_id) {
|
||||
$where["of_id"] = $of_id;
|
||||
@@ -1016,7 +1018,7 @@ class Customers extends Wxapp
|
||||
$tip = $status_name[$val['status']] ? $status_name[$val['status']] : '';
|
||||
$left_time = 0;
|
||||
$mobile = $this->get_mobile(['mobile' => $val['mobile'], 'rid' => $val['rid'], 'un_lock' => $val['un_lock']]);
|
||||
if ($param['biz_type'] == Biz_model::BIZ_TYPE_4s) {
|
||||
if (in_array($param['biz_type'], [Biz_model::BIZ_TYPE_4s, Biz_model::BIZ_TYPE_SPACE])) {
|
||||
!$param['un_lock'] && $mobile = mobile_asterisk($mobile);
|
||||
$rec_time = strtotime($val['rec_time']);
|
||||
$left_time = $rec_time > time() ? $rec_time - time() : 0;
|
||||
@@ -1239,7 +1241,9 @@ class Customers extends Wxapp
|
||||
}
|
||||
}
|
||||
$group_id == 1 && $where['a.admin_id'] = $this->myuid;
|
||||
$biz_type == Biz_model::BIZ_TYPE_4s && $where['a.un_lock'] = 1;
|
||||
if (in_array($biz_type, [Biz_model::BIZ_TYPE_4s, Biz_model::BIZ_TYPE_SPACE])) {
|
||||
$where['a.un_lock'] = 1;
|
||||
}
|
||||
$count = $this->mdCustomerVisitData->count_visit($where);
|
||||
} else {//数据看板 数据列表
|
||||
if ($tab_id == 2) {//今日
|
||||
@@ -1253,7 +1257,9 @@ class Customers extends Wxapp
|
||||
$where = ['biz_id' => $this->biz_id, 'status>=' => 0, 'p_time>=' => $s_c_time
|
||||
, 'p_time<=' => $e_c_time];
|
||||
$group_id == 1 && $where['admin_id'] = $this->myuid;
|
||||
$biz_type == Biz_model::BIZ_TYPE_4s && $where['un_lock'] = 1;
|
||||
if (in_array($biz_type, [Biz_model::BIZ_TYPE_4s, Biz_model::BIZ_TYPE_SPACE])) {
|
||||
$where['un_lock'] = 1;
|
||||
}
|
||||
$count = $this->customers_model->count($where);
|
||||
} else if ($visit == 5 || $visit == 7) {//今日/本月到店/战败
|
||||
$oplogs_type = $visit == 7 ? 7 : 4;//4到店7战败
|
||||
@@ -1271,7 +1277,9 @@ class Customers extends Wxapp
|
||||
}
|
||||
!$str_uids && $str_uids = '-1';
|
||||
$where["(of2_id = 10 and c_time>={$s_c_time} and c_time<={$e_c_time}) OR id in(select customer_id from lc_receiver_customer_oplogs where type={$oplogs_type} and uid in({$str_uids}) and c_time>={$s_c_time} and c_time<={$e_c_time})"] = null;
|
||||
$biz_type == Biz_model::BIZ_TYPE_4s && $where['un_lock'] = 1;
|
||||
if (in_array($biz_type, [Biz_model::BIZ_TYPE_4s, Biz_model::BIZ_TYPE_SPACE])) {
|
||||
$where['un_lock'] = 1;
|
||||
}
|
||||
$count = $this->customers_model->count($where);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user