SELECT
upload_id
,
record_type
,
card_car_id
,
temp_id
,
entrance_time
,
entrance_car_image
,
entrance_parking_box_id
,
exit_time
,
exit_car_image
,
exit_parking_box_id
,
receivable_fee
,
actual_fee
,
admin_id
,
ontime
,
update_time
,
parking_id
,
park_name
,
area_id
,
group_id
,
is_fixed
,
state
,
car_owner_parking_fixed_location_id
,
exit_road
,
entrance_road
,
synid
,
free_time
,
plate_number
,
upload_insert
,
upload_update
,
remarks
,
online_fee
,
entrance_car_image_believe
,
exit_car_image_believe
,
entrance_car_plate_color
,
exit_car_plate_color
,
operate_user_id
,
is_finish
,
motor_type
,
motor_type_detail
,
brand
,
STATUS
FROM
parking_record
WHERE
parking_id
= ?
AND STATUS = ?
AND (
exit_time
<> ?
AND update_time
>= ?
AND update_time
<= ?
)
ORDER BY
entrance_time
DESC,
id
ASC
LIMIT
您看这个sql有4个执行计划,是不是都可能是因为有空数据的存在导致的