|
|
@ -97,11 +97,9 @@ class RenewalController 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); |
|
|
|
|
|
|
|
|
|
|
@ -118,7 +116,7 @@ class RenewalController 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.'"'); |
|
|
@ -199,7 +197,7 @@ class RenewalController 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); |
|
|
@ -276,7 +274,7 @@ class RenewalController 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); |
|
|
|