修改报表

This commit is contained in:
lcc
2025-01-20 10:28:29 +08:00
parent 1efdd96a09
commit 3216159ba8
2 changed files with 6 additions and 4 deletions
+4 -3
View File
@@ -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'));
}
+2 -1
View File
@@ -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');