|
|
@ -93,10 +93,24 @@ class Server extends Controller |
|
|
|
$order_status = intval($this->request->post('order_status')); |
|
|
|
$order_status = intval($this->request->post('order_status')); |
|
|
|
$where = []; |
|
|
|
$where = []; |
|
|
|
if (!empty($order_no)) { |
|
|
|
if (!empty($order_no)) { |
|
|
|
$where['order_no'] = $order_no; |
|
|
|
$where[] = ['order_no', '=', $order_no]; |
|
|
|
} |
|
|
|
} |
|
|
|
if ($order_status) { |
|
|
|
if ($order_status) { |
|
|
|
$where['order_status'] = $order_status; |
|
|
|
$where[] = ['order_status', '=', $order_status]; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
$pay_method = $this->request->post('pay_method'); |
|
|
|
|
|
|
|
if (!empty($pay_method)) { |
|
|
|
|
|
|
|
$where[] = ['pay_method', '=', $pay_method]; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
$start_time = $this->request->post('start_time'); |
|
|
|
|
|
|
|
if (!empty($start_time) && strtotime($start_time)) { |
|
|
|
|
|
|
|
$start_time = strtotime($start_time); |
|
|
|
|
|
|
|
$where[] = ['create_time', '>=', strtotime($start_time)]; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
$end_time = $this->request->post('end_time'); |
|
|
|
|
|
|
|
if (!empty($end_time) && strtotime($end_time)) { |
|
|
|
|
|
|
|
$end_time = strtotime($end_time) + 86400; |
|
|
|
|
|
|
|
$where[] = ['create_time', '<', $end_time]; |
|
|
|
} |
|
|
|
} |
|
|
|
$model = new ServerOrder($where); |
|
|
|
$model = new ServerOrder($where); |
|
|
|
$list = $model->orderList($where); |
|
|
|
$list = $model->orderList($where); |
|
|
@ -107,6 +121,7 @@ class Server extends Controller |
|
|
|
$data['list'][$key]['is_cancel'] = ServerServiceOrder::checkCancel($value); |
|
|
|
$data['list'][$key]['is_cancel'] = ServerServiceOrder::checkCancel($value); |
|
|
|
$data['list'][$key]['is_dispatch'] = ServerServiceOrder::checkDispatch($value); |
|
|
|
$data['list'][$key]['is_dispatch'] = ServerServiceOrder::checkDispatch($value); |
|
|
|
$data['list'][$key]['is_pay'] = ServerServiceOrder::checkPay($value); |
|
|
|
$data['list'][$key]['is_pay'] = ServerServiceOrder::checkPay($value); |
|
|
|
|
|
|
|
$data['list'][$key]['is_success'] = ServerServiceOrder::checkSuccess($value); |
|
|
|
unset($data['list'][$key]['image']); |
|
|
|
unset($data['list'][$key]['image']); |
|
|
|
if (!empty($data['list'][$key]['dealer'])) { |
|
|
|
if (!empty($data['list'][$key]['dealer'])) { |
|
|
|
unset($data['list'][$key]['dealer']); |
|
|
|
unset($data['list'][$key]['dealer']); |
|
|
|