修改报表
This commit is contained in:
@@ -25,15 +25,16 @@ class Report extends HD_Controller
|
||||
$params = $this->input->get();
|
||||
$params['page'] = $params['page'] ? intval($params['page']) : 1;
|
||||
|
||||
$biz_where = ['status' => 1, 'type' => 0, 'province_id' => 350000];
|
||||
// $biz_where = ['status' => 1, 'type' => 0, 'province_id' => 350000];
|
||||
$biz_where = ['status' => 1, 'type in (1,2)' => null, 'province_id' => 350000];
|
||||
$biz_lists = $this->biz_model->select($biz_where, '', 0, 0, 'id,biz_name');
|
||||
$params['size'] = count($biz_lists);
|
||||
$params['size'] = count($biz_lists) ?: 20;
|
||||
$lists = array();
|
||||
|
||||
$where = ["status<>-1" => null];
|
||||
if ($params['day']) {
|
||||
$where['day'] = $params['day'];
|
||||
}else{
|
||||
} else {
|
||||
$where['day'] = date('Y-m-d', strtotime('yesterday'));
|
||||
}
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
class Report extends HD_Controller
|
||||
{
|
||||
private $log_dir = 'biz_report';
|
||||
private $biz_type = '1,2';
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
@@ -46,7 +47,7 @@ class Report extends HD_Controller
|
||||
|
||||
$where = array(
|
||||
'status' => 1,
|
||||
'type' => 0,
|
||||
"type in ({$this->biz_type})" => null,
|
||||
'province_id' => 350000
|
||||
);
|
||||
$bizs = $this->biz_model->select($where, '', $page, $size, 'id, biz_name');
|
||||
|
||||
Reference in New Issue
Block a user