edit-liche-stat

This commit is contained in:
lccsw
2021-09-17 16:07:06 +08:00
parent 606c272508
commit 7dd4b93161
+4 -4
View File
@@ -206,8 +206,8 @@ class Statistics extends Wxapp{
];
$admin_id && $where['admin_id'] = $admin_id;
if($day){
$s_time = date('Y-m-01 00:00:00',strtotime($day));
$e_time = date('Y-m-t 23:59:59',strtotime($day));
$s_time = date('Y-m-d 00:00:00',strtotime($day));
$e_time = date('Y-m-d 23:59:59',strtotime($day));
$where['c_time>='] = strtotime($s_time);
$where['c_time<='] = strtotime($e_time);
}
@@ -344,8 +344,8 @@ class Statistics extends Wxapp{
'biz_id' => $biz_id
];
if($day){
$s_time = date('Y-m-01 00:00:00',strtotime($day));
$e_time = date('Y-m-t 23:59:59',strtotime($day));
$s_time = date('Y-m-d 00:00:00',strtotime($day));
$e_time = date('Y-m-d 23:59:59',strtotime($day));
$where['c_time>='] = strtotime($s_time);
$where['c_time<='] = strtotime($e_time);
}