|
@@ -743,4 +743,19 @@ class StoreOrderDao extends BaseDao
|
|
|
})->where('StoreOrder.uid',$uid)->count()
|
|
|
;
|
|
|
}
|
|
|
+ /**
|
|
|
+ * TODO 获取超时订单数据
|
|
|
+ * @param $id
|
|
|
+ * @param $uid
|
|
|
+ * @return array|Model|null
|
|
|
+ * @throws DataNotFoundException
|
|
|
+ * @throws DbException
|
|
|
+ * @throws ModelNotFoundException
|
|
|
+ * @author xaboy
|
|
|
+ * @day 2020/6/11
|
|
|
+ */
|
|
|
+ public function expireOrder()
|
|
|
+ {
|
|
|
+ return StoreOrder::getDB()->where('expire_time','>', date('Y-m-d H:i:s'))->find();
|
|
|
+ }
|
|
|
}
|