46 lines
1014 B
PHP
46 lines
1014 B
PHP
<?php
|
|
/**
|
|
* Created by Vim
|
|
* User: lcc
|
|
* Date: 2021/06/29
|
|
* Time: 13:47
|
|
*/
|
|
|
|
defined('BASEPATH') or exit('No direct script access allowed');
|
|
|
|
class Hdcloud_clues_model extends HD_Model
|
|
{
|
|
private $table_name = 'lc_hdcloud_clues';
|
|
|
|
public function __construct()
|
|
{
|
|
parent::__construct($this->table_name, 'default');
|
|
}
|
|
|
|
/**
|
|
* Notes:线索状态
|
|
* Created on: 2021/9/15 10:25
|
|
* Created by: dengbw
|
|
* @param $status
|
|
* @return array
|
|
*/
|
|
public function statusAry($status = '')
|
|
{
|
|
$status_ary[0] = array('name' => '待处理', 'list' => array());
|
|
$status_ary[1] = array('name' => '已派单', 'list' => array());
|
|
|
|
if (strlen($status)) {
|
|
$return_status = $status_ary[$status];
|
|
} else {
|
|
$return_status = $status_ary;
|
|
}
|
|
return $return_status;
|
|
}
|
|
|
|
//关联订单
|
|
public function count_order($where)
|
|
{
|
|
return $this->select_order($where, '', '', '', '', 1);
|
|
}
|
|
}
|