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

XIAOPAN

@@ -533,7 +533,7 @@ class UsersController extends HomeBaseController{ @@ -533,7 +533,7 @@ class UsersController extends HomeBaseController{
533 ->alias('o') 533 ->alias('o')
534 ->join('equipment e','o.eq_name=e.name') 534 ->join('equipment e','o.eq_name=e.name')
535 ->field('o.order_no,o.users_id,o.start_time,e.serial_number,e.hospital') 535 ->field('o.order_no,o.users_id,o.start_time,e.serial_number,e.hospital')
536 - ->where(['o.users_id'=>$user_id,'o.state'=>1,'o.type'=>1,'e.is_delete'=>0]) 536 + ->where(['o.users_id'=>$user_id,'o.state'=>1,'o.type'=>['in',[1,2]],'e.is_delete'=>0])
537 ->find(); 537 ->find();
538 if ($order){ 538 if ($order){
539 $this->apiResponse(302,'有未完成订单'); 539 $this->apiResponse(302,'有未完成订单');