|
@@ -85,8 +85,14 @@ class Task
|
|
|
# 统计
|
|
|
public function stat()
|
|
|
{
|
|
|
- # 获取昨天的时间
|
|
|
- $time = \Dever\Helper\Date::day(1);
|
|
|
+ $day = Dever::input('day');
|
|
|
+ if ($day) {
|
|
|
+ $time = \Dever\Helper\Date::day($day);
|
|
|
+ } else {
|
|
|
+ # 获取昨天的时间
|
|
|
+ $time = \Dever\Helper\Date::day(1);
|
|
|
+ }
|
|
|
+
|
|
|
$where['cdate'] = array('>=', $time[0]);
|
|
|
$where['#cdate'] = array('<=', $time[1]);
|
|
|
$order = Dever::db('order_bak', 'seller')->load($where);
|