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

修改老师订单

... ... @@ -337,14 +337,15 @@ class Order extends Api
"finish_status"://完成状态(1进行中2已完成3售后
"is_summarize"://是否总结过(1是2否
"is_complaint"://是否被投诉(1是2否3已处理
"is_comment"://是否评价过(1是2否)
"is_chargeback"://是否退单(1已退款2没退款
"is_comment"://是否评价过(1是2否
"is_chargeback"://是否退单(1已退款2未申请退款
}
})
*/
public function teacherorder()
{
$user_id = $this->getUserId();
$teacher_id = Db::name('teacher')->where('user_id',$user_id)->find();
$type = $this->request->param('type');
$page = $this->request->param('page', 1, 'intval');
$pageNum = $this->request->param('pageNum', 10, 'intval');
... ... @@ -353,7 +354,7 @@ class Order extends Api
$data = Db::name('order')
->alias('a')
->join('teacher b','a.teacher_id = b.id')
->where('a.user_id',$user_id)
->where('a.teacher_id',$teacher_id['id'])
->where('a.finish_status',1)
->field('a.*,b.name,b.thumbnail')
->page($page,$pageNum)
... ... @@ -365,7 +366,7 @@ class Order extends Api
->join('teacher b','a.teacher_id = b.id')
->where('a.finish_status',2)
->where('a.is_summarize',2)
->where('a.user_id',$user_id)
->where('a.teacher_id',$teacher_id['id'])
->field('a.*,b.name,b.thumbnail')
->page($page,$pageNum)
->select();
... ... @@ -376,7 +377,7 @@ class Order extends Api
->join('teacher b','a.teacher_id = b.id')
->where('a.finish_status',2)
->where('a.is_summarize',1)
->where('a.user_id',$user_id)
->where('a.teacher_id',$teacher_id['id'])
->where('a.order_status',2)
->field('a.*,b.name,b.thumbnail')
->page($page,$pageNum)
... ... @@ -389,7 +390,7 @@ class Order extends Api
->where('a.finish_status',2)
->where('a.is_summarize',1)
->where('a.order_status',1)
->where('a.user_id',$user_id)
->where('a.teacher_id',$teacher_id['id'])
->field('a.*,b.name,b.thumbnail')
->page($page,$pageNum)
->select();
... ... @@ -400,7 +401,7 @@ class Order extends Api
->join('teacher b','a.teacher_id = b.id')
->where('a.finish_status',3)
->where('a.is_complaint',['=',1],['=',3],'or')
->where('a.user_id',$user_id)
->where('a.teacher_id',$teacher_id['id'])
->field('a.*,b.name,b.thumbnail')
->page($page,$pageNum)
->select();
... ...
... ... @@ -4138,7 +4138,10 @@
"finish_status"://完成状态(1进行中2已完成3售后
"is_summarize"://是否总结过(1是2否
"is_complaint"://是否被投诉(1是2否3已处理
"is_comment"://是否评价过(1是2否</pre>
"is_comment"://是否评价过(1是2否
"is_chargeback"://是否退单(1已退款2未申请退款
}
}</pre>
</div>
</div>
</div><!-- #sample -->
... ... @@ -7980,7 +7983,7 @@
<div class="row mt0 footer">
<div class="col-md-6" align="left">
Generated on 2020-01-19 11:32:21 </div>
Generated on 2020-01-19 11:48:08 </div>
<div class="col-md-6" align="right">
<a href="https://www.fastadmin.net" target="_blank">FastAdmin</a>
</div>
... ...