|
@@ -217,11 +217,12 @@ class Order extends Api
|
|
|
if (!empty($serviceTypeId)) {
|
|
|
$where[$o.'.servicetype_id'] = $serviceTypeId;
|
|
|
}
|
|
|
- if (!empty($carId)) {
|
|
|
- $where[$o.'.user_car_id'] = $carId;
|
|
|
- }
|
|
|
- if (empty($carNumber)) {
|
|
|
+ if (!empty($carNumber)) {
|
|
|
$where[$o.'.user_car_number'] = $carNumber;
|
|
|
+ } else {
|
|
|
+ if (!empty($carId)) {
|
|
|
+ $where[$o.'.user_car_id'] = $carId;
|
|
|
+ }
|
|
|
}
|
|
|
$where[$o.'.user_id'] = $this->auth->id;
|
|
|
$where[$o.'.status'] = ['in',[2,3]];//状态:2=待处理,3=已完成,4=已取消
|