|
@@ -24,7 +24,7 @@ class Order extends Api
|
|
|
*/
|
|
|
public function getList(){
|
|
|
try {
|
|
|
- $status = input('status',0);//状态:1=待支付,2=待处理,3=已完成,4=已取消
|
|
|
+ $status = input('status',0);//状态:1=待核销,2=已接单,3=已完成,4=已取消
|
|
|
|
|
|
$o = 'order';
|
|
|
$st = 'servicetype';
|
|
@@ -79,7 +79,7 @@ class Order extends Api
|
|
|
$where[$o.'.user_id'] = $this->auth->id;
|
|
|
$where[$o.'.company_id'] = $this->auth->company_id;
|
|
|
$where[$o.'.ordertype'] = 3;//类型:1=预约下单,2=在线下单,3=套餐订单
|
|
|
- $where[$o.'.status'] = ['in',[1,2,3]];//状态:2=待处理,3=已完成,4=已取消
|
|
|
+ $where[$o.'.status'] = ['in',[1,2,3]];//状态:2=已接单,3=已完成,4=已取消
|
|
|
$where[$p.'.type'] = 1;//类型:1=普通,2=卡券
|
|
|
if (!empty($status)) {
|
|
|
if ($status == 1) {
|
|
@@ -230,7 +230,7 @@ class Order extends Api
|
|
|
}
|
|
|
}
|
|
|
$where[$o.'.user_id'] = $this->auth->id;
|
|
|
- $where[$o.'.status'] = ['in',[2,3]];//状态:2=待处理,3=已完成,4=已取消
|
|
|
+ $where[$o.'.status'] = ['in',[2,3]];//状态:2=已接单,3=已完成,4=已取消
|
|
|
$where[$st.'.is_upkeep'] = 1;//是否保养:1=是,0=否
|
|
|
$field = $o.'.id,'.$o.'.servicetype_id,server_info,finish_time,next_date,next_carlicheng,pay_fee,appen_fee,'.$st.'.title as `service_title`,'.$p.'.title as `package_title`';
|
|
|
$result = $this->model->alias($o)->field($field)
|