cus
This commit is contained in:
@@ -63,6 +63,25 @@ class Series extends Wxapp{
|
||||
return $data;
|
||||
}
|
||||
|
||||
//获取品牌
|
||||
protected function get_mbrand(){
|
||||
$page = $this->input_param('page');
|
||||
$size = $this->input_param('size');
|
||||
!$page && $page = 1;
|
||||
!$size && $size = 100;
|
||||
|
||||
$where = [
|
||||
'status' => 1
|
||||
];
|
||||
$count = $this->auto_brand_model->count($where);
|
||||
$list = $this->auto_brand_model->select($where,'id desc',$page,$size,'id,name');
|
||||
$data = [
|
||||
'list' => $list,
|
||||
'total' => $count
|
||||
];
|
||||
return $data;
|
||||
}
|
||||
|
||||
//获取车型列表
|
||||
protected function get_cars(){
|
||||
$page = $this->input_param('page');
|
||||
|
||||
@@ -1146,15 +1146,15 @@ class Customers extends Wxapp
|
||||
$e_c_time = date('Y-m-d') . ' 23:59:59';
|
||||
}
|
||||
if ($visit == 3) {//今日/本月线索
|
||||
$where = ['biz_id' => $this->biz_id, 'cs_biz_id<>' => -1, 'status>=' => 0, 'c_time>=' => strtotime($s_c_time)
|
||||
, 'c_time<=' => strtotime($e_c_time)];
|
||||
$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;
|
||||
$count = $this->customers_model->count($where);
|
||||
} else if ($visit == 5 || $visit == 7) {//今日/本月到店/战败
|
||||
$oplogs_type = $visit == 7 ? 7 : 4;//4到店7战败
|
||||
$s_c_time = strtotime($s_c_time);
|
||||
$e_c_time = strtotime($e_c_time);
|
||||
$where = ['biz_id' => $this->biz_id, 'status>=' => 0, 'cs_biz_id<>' => -1];
|
||||
$where = ['biz_id' => $this->biz_id, 'status>=' => 0];
|
||||
$str_uids = '';
|
||||
if ($group_id == 1) {
|
||||
$str_uids = $this->myuid;
|
||||
|
||||
Reference in New Issue
Block a user