作者 潘浩文
1 个管道 的构建 通过 耗费 0 秒

XIAOPAN

@@ -51,6 +51,7 @@ class AdminOrderController extends AdminBaseController{ @@ -51,6 +51,7 @@ class AdminOrderController extends AdminBaseController{
51 ->join('users u','a.users_id=u.id') 51 ->join('users u','a.users_id=u.id')
52 // ->field('a.*,b.serial_number,b.hospital') 52 // ->field('a.*,b.serial_number,b.hospital')
53 // ->join('equipment b','a.eq_name=b.name') 53 // ->join('equipment b','a.eq_name=b.name')
  54 + ->field('a.*')
54 ->where($where) 55 ->where($where)
55 ->order('a.end_time','desc') 56 ->order('a.end_time','desc')
56 ->paginate(10); 57 ->paginate(10);
@@ -68,7 +69,6 @@ class AdminOrderController extends AdminBaseController{ @@ -68,7 +69,6 @@ class AdminOrderController extends AdminBaseController{
68 //更改订单状态 69 //更改订单状态
69 public function endOrder(){ 70 public function endOrder(){
70 $param=$this->request->param(); 71 $param=$this->request->param();
71 - var_dump($param);  
72 Db::name('order') 72 Db::name('order')
73 ->where('id',$param['id']) 73 ->where('id',$param['id'])
74 ->update(['state'=>3]); 74 ->update(['state'=>3]);