...
|
...
|
@@ -305,11 +305,11 @@ class User extends Api |
|
|
->count();
|
|
|
$data['finish'] = Db::name('order')
|
|
|
->where('user_id',$user_id)
|
|
|
->where('finish_status',2)
|
|
|
->where('finish_status',5)
|
|
|
->count();
|
|
|
$data['after'] = Db::name('order')
|
|
|
->where('user_id',$user_id)
|
|
|
->where('finish_status',3)
|
|
|
->where('finish_status',4)
|
|
|
// ->where('is_complaint',1)
|
|
|
->count();
|
|
|
}else{
|
...
|
...
|
@@ -343,26 +343,22 @@ class User extends Api |
|
|
$data['summarize'] = Db::name('order')
|
|
|
->where('teacher_id',$teacher['id'])
|
|
|
->where('finish_status',2)
|
|
|
->where('is_summarize',2)
|
|
|
->count();
|
|
|
//结算中
|
|
|
$data['jiesuan'] = Db::name('order')
|
|
|
->where('teacher_id',$teacher['id'])
|
|
|
->where('finish_status',2)
|
|
|
->where('is_summarize',1)
|
|
|
->where('order_status',2)
|
|
|
->where('finish_status',3)
|
|
|
->count();
|
|
|
//已完成
|
|
|
$data['finish'] = Db::name('order')
|
|
|
->where('teacher_id',$teacher['id'])
|
|
|
->where('finish_status',2)
|
|
|
->where('is_summarize',1)
|
|
|
->where('finish_status',5)
|
|
|
->where('order_status',1)
|
|
|
->count();
|
|
|
//售后
|
|
|
$data['after'] = Db::name('order')
|
|
|
->where('teacher_id',$teacher['id'])
|
|
|
->where('finish_status',3)
|
|
|
->where('finish_status',4)
|
|
|
// ->where('is_complaint',['=',1],['=',3],'or')
|
|
|
->count();
|
|
|
}
|
...
|
...
|
@@ -397,11 +393,11 @@ class User extends Api |
|
|
->count();
|
|
|
$data['finish'] = Db::name('order')
|
|
|
->where('user_id',$user_id)
|
|
|
->where('finish_status',2)
|
|
|
->where('finish_status',5)
|
|
|
->count();
|
|
|
$data['after'] = Db::name('order')
|
|
|
->where('user_id',$user_id)
|
|
|
->where('finish_status',3)
|
|
|
->where('finish_status',4)
|
|
|
->count();
|
|
|
$this->success('success',$data);
|
|
|
}
|
...
|
...
|
|