处理传如时间的时间判断
This commit is contained in:
parent
ded87e722b
commit
337f3f4bf8
@ -68,10 +68,10 @@ class StoreOrder extends BaseController
|
||||
[$page, $limit] = $this->getPage();
|
||||
$where['section_startTime'] = $this->request->param('section_startTime');
|
||||
$where['section_endTime'] = $this->request->param('section_endTime');
|
||||
// if(empty($where['section_startTime']) && empty($where['section_endTime'])){
|
||||
// $where['section_startTime'] = date('Y-m-d',time()).' 00:00:00';
|
||||
// $where['section_endTime'] = date('Y-m-d',time()).' 23:59:59';
|
||||
// }
|
||||
if(!empty($where['section_endTime'])&& $where['section_endTime']){
|
||||
$timestamp = strtotime($where['section_endTime'] . ' +1 day');
|
||||
$where['section_endTime'] = date('Y-m-d', $timestamp);
|
||||
}
|
||||
|
||||
return app('json')->success($repository->revenueExpenditure($where, $page, $limit,$merId));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user