修改预约中无法搜索手机号码BUG

dev
曾超新 5 years ago
parent 171e642ff9
commit 1c20105960
  1. 8
      frontend/controllers/AppointmentController.php

@ -328,11 +328,9 @@ class AppointmentController extends BaseController
$car_man = $request->get('car_man'); $car_man = $request->get('car_man');
$phone = $request->get('phone'); $phone = $request->get('phone');
$car_no = $request->get('car_no'); $car_no = $request->get('car_no');
$page = $request->get('page',1);
$username = $request->get('username'); $username = $request->get('username');
$sort_key = $request->get('sort_key','appointment_t.pdate'); $sort_key = $request->get('sort_key','appointment_t.pdate');
$sort_value = $request->get('sort_value','ASC'); $sort_value = $request->get('sort_value','ASC');
$user_id = $request->get('user_id');
$offset = $request->get('offset',0); $offset = $request->get('offset',0);
$limit = $request->get('limit', 10); $limit = $request->get('limit', 10);
@ -349,7 +347,7 @@ class AppointmentController extends BaseController
$query->andWhere('car_t.car_man like "'.$car_man.'"'); $query->andWhere('car_t.car_man like "'.$car_man.'"');
} }
if($phone != '') { if($phone != '') {
$query->andWhere('car_t.phone like "'.$phone.'"'); $query->andWhere('car_t.car_man_phone like "'.$phone.'"');
} }
if($car_no != '') { if($car_no != '') {
$query->andWhere('car_t.car_no like "'.$car_no.'"'); $query->andWhere('car_t.car_no like "'.$car_no.'"');
@ -430,7 +428,7 @@ class AppointmentController extends BaseController
$query = $query->andWhere('car_t.car_man like "'.$car_man.'"'); $query = $query->andWhere('car_t.car_man like "'.$car_man.'"');
} }
if($phone != '') { if($phone != '') {
$query = $query->andWhere('car_t.phone="'.$phone.'"'); $query = $query->andWhere('car_t.car_man_phone="'.$phone.'"');
} }
if($ptype > 0) { if($ptype > 0) {
$query = $query->andWhere('appointment_t.ptype='.$ptype); $query = $query->andWhere('appointment_t.ptype='.$ptype);
@ -507,7 +505,7 @@ class AppointmentController extends BaseController
$query = $query->andWhere('car_t.car_man like "'.$car_man.'"'); $query = $query->andWhere('car_t.car_man like "'.$car_man.'"');
} }
if($phone != '') { if($phone != '') {
$query = $query->andWhere('car_t.phone="'.$phone.'"'); $query = $query->andWhere('car_t.car_man_phone="'.$phone.'"');
} }
if($ptype > 0) { if($ptype > 0) {
$query = $query->andWhere('appointment_t.ptype='.$ptype); $query = $query->andWhere('appointment_t.ptype='.$ptype);

Loading…
Cancel
Save