|
@@ -136,10 +136,14 @@ class Resource
|
|
|
{
|
|
|
$where['uid'] = Place::$uid;
|
|
|
$set['num'] = 10;
|
|
|
- $set['col'] = 'id,info_id,name,cash,num,cdate,status';
|
|
|
+ $set['col'] = 'id,order_num,info_id,name,cash,num,cdate,status';
|
|
|
$status = Dever::input('status');
|
|
|
if ($status) {
|
|
|
- $where['status'] = array('in', $status);
|
|
|
+ if ($status == 10) {
|
|
|
+ $where['refund_status'] = 1;
|
|
|
+ } else {
|
|
|
+ $where['status'] = array('in', $status);
|
|
|
+ }
|
|
|
}
|
|
|
$data = Dever::db('order', $this->app)->select($where, $set);
|
|
|
$result = array();
|