...
|
...
|
@@ -168,13 +168,13 @@ class OrderController extends Controller |
|
|
* @author panhaowen
|
|
|
* @url /portal/Order/BusinessOrderIndex
|
|
|
* @param name:param type:varchar require:1 desc:搜索参数(order_sn,name,user_login1,status)
|
|
|
* @param name:business_id type:int require:1 desc:新媒体类型
|
|
|
* @param name:category_id type:int require:1 desc:新媒体类型
|
|
|
* @method POST
|
|
|
*/
|
|
|
public function BusinessOrderIndex()
|
|
|
{
|
|
|
$param=$this->request->param();
|
|
|
$where['b.id']=$param['business_id'];
|
|
|
$where['c.id']=$param['category_id'];
|
|
|
if (!empty($param['order_sn'])){
|
|
|
$where['bo.order_sn']=['like','%'.$param['order_sn'].'%'];
|
|
|
}
|
...
|
...
|
@@ -192,6 +192,7 @@ class OrderController extends Controller |
|
|
->join('user u1','bo.user_id=u1.id')
|
|
|
->join('user u2','bo.admin_id=u2.id')
|
|
|
->join('business b','bo.business_id=b.id')
|
|
|
->join('category c','b.category_id=c.id')
|
|
|
->where($where)
|
|
|
->field('bo.*,u1.user_login as user_login1,u2.user_login as user_login2,u1.user_type,b.name')
|
|
|
->paginate('10');
|
...
|
...
|
|