From 5246e2c35663aa963f4efcca85c2a46bf6c90399 Mon Sep 17 00:00:00 2001 From: zengchaoxin Date: Sun, 13 Oct 2019 18:02:18 +0800 Subject: [PATCH] abc --- frontend/controllers/AppointmentController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/controllers/AppointmentController.php b/frontend/controllers/AppointmentController.php index 3e959f3..6321d99 100644 --- a/frontend/controllers/AppointmentController.php +++ b/frontend/controllers/AppointmentController.php @@ -383,7 +383,7 @@ class AppointmentController extends BaseController $query = AppointmentT::find() ->leftJoin('car_t','`car_t`.`id`=`appointment_t`.`car_id`') - ->where('appointment_t.is_first=0 and car_t.location=2') + ->where('appointment_t.is_first=0 and (car_t.location=2 or cat_t.location=4)') ->andWhere('appointment_t.pdate<="'.date('Y-m-d').'"'); $user_ids = $this->getChildrenUserIDs(); @@ -459,7 +459,7 @@ class AppointmentController extends BaseController $query = AppointmentT::find() ->leftJoin('car_t','`car_t`.`id`=`appointment_t`.`car_id`') - ->where('appointment_t.is_first=0 and car_t.location=2'); + ->where('appointment_t.is_first=0 and (car_t.location=2 or cat_t.location=4)'); if($username == '') { $user_ids = $this->getChildrenUserIDs();