作者 郭盛
1 个管道 的构建 通过 耗费 1 秒

修改订单数量

... ... @@ -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);
}
... ...
... ... @@ -9579,7 +9579,7 @@
<div class="row mt0 footer">
<div class="col-md-6" align="left">
Generated on 2020-03-20 16:48:31 </div>
Generated on 2020-03-20 17:52:12 </div>
<div class="col-md-6" align="right">
<a href="https://www.fastadmin.net" target="_blank">FastAdmin</a>
</div>
... ...