...
|
...
|
@@ -51,14 +51,13 @@ class UserController extends RestBaseController |
|
|
$where['o.to_post_status']=$param['status'];
|
|
|
}
|
|
|
if ($param['status']==""){
|
|
|
$where['o.to_post_status']='not null';
|
|
|
$where['o.to_post_status']=['neq',0];
|
|
|
}
|
|
|
$data=Db::name('order')
|
|
|
->alias('o')
|
|
|
->join('post p','o.post_id=p.id')
|
|
|
->join('user u1','p.user_id=u1.id')
|
|
|
->where($where)
|
|
|
->whereNotNull('o.to_post_status')
|
|
|
->field('o.*,u1.user_nickname')
|
|
|
->select()->each(function ($item) {
|
|
|
if ($item['to_post_status']!=6){
|
...
|
...
|
|