Parking lot vehicle parking fee calculation method and system, and storage medium
By dividing the nested parking lot into the main parking lot and the secondary parking lot, calculating the fees for each secondary parking lot separately, and based on the billing rules and time extension rules, the problem of inconsistent charges in the nested parking lot is solved, and accurate differentiated billing and clearing settlement are achieved.
Patent Information
- Application Number
- CN202510893719.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-30
- Publication Date
- 2025-10-17
AI Technical Summary
In nested parking lots, since different areas are operated by different business entities, the charging standards are inconsistent, and existing technologies cannot achieve accurate differentiated clearing and settlement.
The nested parking lot is divided into the main parking lot and the secondary parking lot, and the parking fees of each secondary parking lot are calculated separately. The total fee is calculated based on the remaining time period and billing rules of the main parking lot, taking into account the free time, the first billing time and the tiered billing standards, and reasonably handling the time period extension rules.
It realizes differentiated billing for parking spaces of different business entities, ensures accurate billing results, avoids duplicate or missed billing, and improves the adaptability and efficiency of the billing system.
Smart Images

Figure CN120808465A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of intelligent parking lot management, and particularly relates to a parking lot vehicle parking fee calculation method and system and a storage medium. BACKGROUND
[0002] At present, most parking lots on the market are operated by one operating subject, for example, operated by one property company.
[0003] In the prior art, with the increasingly refined operation of parking lots, the operation mode is increasingly rich, and the differentiation is increasingly large, so that different parking spaces in the same physical parking lot may belong to different operating subjects, and there are cases of parking space sales and parking space contracting, and the parking space resources in the parking lot may not all belong to the same operating subject. For example, in a large parking lot, a part of parking spaces belong to A company, a part of parking spaces belong to B company, and a part of parking spaces belong to an individual. When the parking lot provides services to the outside, if the conventional parking lot operation is adopted, it is impossible to differentiate and settle according to the parking space belonging to the operating right, and more and more parking lots start to operate in a nested parking mode, and different regions of a parking lot have multiple charging standards. Such a complex charging mode leads to inconsistent charging and many problems. SUMMARY
[0004] In view of the deficiencies in the prior art, the present application aims to provide a parking lot vehicle parking fee calculation method and system and a storage medium.
[0005] In order to achieve the above-mentioned purpose, the present application provides the following technical scheme:
[0006] A parking lot vehicle parking fee calculation method, comprising the steps of:
[0007] dividing a nested parking lot into a main parking lot and at least one secondary parking lot, the main parking lot containing a plurality of secondary parking lots;
[0008] obtaining a main entry time of a target vehicle into the main parking lot, a main exit time of the target vehicle from the main parking lot, and secondary entry times and secondary exit times of the target vehicle in each secondary parking lot;
[0009] for each secondary parking lot, calculating a secondary parking fee of the target vehicle in the secondary parking lot according to the charging rule of the secondary parking lot and the corresponding parking duration, and outputting the secondary parking fee;
[0010] removing secondary time periods of all secondary parking lots from a main time period from the main entry time to the main exit time of the main parking lot, to obtain a remaining time period of the main parking lot;
[0011] According to the charging rule of the main parking lot and the remaining time period, a main parking fee of the target vehicle in the main parking lot is calculated, and the main parking fee is output.
[0012] In the application, preferably, the calculation of the secondary parking fee of the target vehicle in the secondary parking lot specifically comprises the steps of:
[0013] obtaining a secondary entry time and a secondary exit time of the target vehicle in the secondary parking lot;
[0014] calculating a secondary parking duration of the target vehicle in the secondary parking lot, the secondary parking duration being a time difference between the secondary exit time and the secondary entry time;
[0015] obtaining a charging rule of the secondary parking lot;
[0016] calculating the fee of the secondary parking lot according to the charging rule and the entry time.
[0017] In the application, preferably, after the charging rule of the secondary parking lot is obtained, it is judged whether the charging rule includes a step charging standard, a corresponding step interval is determined according to the secondary parking duration, and the secondary parking fee is calculated.
[0018] In the application, preferably, the charging rule includes a free duration, when the secondary parking duration is less than or equal to the free duration, the secondary parking fee is 0 yuan, and when the secondary parking duration is greater than the free duration, the secondary parking duration is adjusted according to whether the free duration participates in the charging, and then the secondary parking fee is calculated.
[0019] In the application, preferably, when the charging rule includes a first charging duration, when the secondary parking duration is less than or equal to the first charging duration, the time period is removed, and when the secondary parking duration is greater than the first charging duration, the secondary parking duration is adjusted and then the secondary parking fee is calculated.
[0020] In the application, preferably, when the charging rule includes a free duration and the secondary parking duration is greater than the free duration, the secondary parking duration is adjusted according to whether the free duration participates in the charging, and then the secondary parking fee is calculated, specifically as follows:
[0021] If the secondary parking duration is greater than the free duration, the start time of the time period is added to the free duration to obtain a new secondary charging time period.
[0022] If the secondary parking duration is less than or equal to the free duration, the time period is removed, and the secondary parking duration is deducted from the free duration, and it is continued to judge whether the duration of the next time period is greater than the remaining free duration.
[0023] In the application, preferably, when the charging rule includes a first charging duration, when the secondary parking duration is greater than the first charging duration, the secondary parking duration is adjusted and then the secondary parking fee is calculated.
[0024] adding the start time of the sub time period to the first charging duration to obtain a new sub charging time period, and adding the first charging fee;
[0025] If the sub parking duration is less than the first charging duration, the sub time period is removed, the sub parking duration is subtracted from the first charging duration, and whether the duration of the next time period is greater than the remaining first charging duration is determined.
[0026] In the application, preferably, before calculating the main parking fee of the target vehicle in the main parking lot according to the charging rules of the main parking lot and the remaining time periods, the application further comprises:
[0027] determining whether the adjacent remaining time periods meet the extension condition,
[0028] the extension condition comprises:
[0029] when the exit time of the previous time period is in the daytime and the entry time of the next time period is in the daytime, the extension is performed;
[0030] when the exit time of the previous time period is in the daytime and the entry time of the next time period is in the nighttime and the daytime-cross-nighttime extension rule is configured, the extension is performed;
[0031] when the exit time of the previous time period is in the nighttime and the entry time of the next time period is in the nighttime, the extension is performed;
[0032] when the exit time of the previous time period is in the nighttime and the entry time of the next time period is in the daytime and the nighttime-cross-daytime extension rule is configured, the extension is performed;
[0033] if the extension condition is met, the adjacent remaining time periods are combined into a continuous time period; if the extension condition is not met, the remaining time periods are kept independent.
[0034] In the application, preferably, calculating the main parking fee of the target vehicle in the main parking lot according to the charging rules of the main parking lot and the remaining time periods comprises:
[0035] when the charging rules of the main parking lot are sub charging, the main parking fee is calculated after the remaining time periods in the same daytime time period or the same nighttime time period are combined.
[0036] A parking lot vehicle parking fee calculation system comprises:
[0037] a parking lot division module configured to divide a nested parking lot into a main parking lot and at least one sub parking lot, and the main parking lot contains the sub parking lot;
[0038] a time acquisition module, configured to acquire a main entry time of the target vehicle into the main parking lot, a main exit time of the target vehicle from the main parking lot, and a secondary entry time and a secondary exit time of the target vehicle into and from each of the secondary parking lots;
[0039] a secondary parking lot charging module, configured to, for each of the secondary parking lots, calculate a secondary parking fee of the target vehicle in the secondary parking lot according to a charging rule of the secondary parking lot and a corresponding secondary parking duration, and output the secondary parking fee;
[0040] a time period processing module, configured to remove, from a main time period from the main entry time to the main exit time of the main parking lot, all secondary time periods from the secondary entry time to the secondary exit time of the secondary parking lots, to obtain a remaining time period of the main parking lot;
[0041] a main parking lot charging module, configured to calculate a main parking fee of the target vehicle in the main parking lot according to a charging rule of the main parking lot and the remaining time period, and output the main parking fee.
[0042] Compared with the prior art, the method has the following beneficial effects:
[0043] The method can accurately process charging demands of different operation subjects and realize reasonable distribution and clearing settlement of the fees by dividing the nested parking lot into the main parking lot and the secondary parking lot and calculating the fees respectively.
[0044] The flexible processing mode is provided for the special charging rules of the free duration and the first charging duration, so that the charging time period can be adjusted according to the actual situation, and the charging result is ensured to be accurate.
[0045] When calculating the main parking fee, the time period of the secondary parking lot is removed, and the time period extension rule is considered, so that the time period can be reasonably combined or split, and repeated charging or missed charging is avoided.
[0046] The charging difference of different time periods in the daytime and the nighttime and the time period extension rule are considered, so that the diversified charging demands are met, and the adaptability of the charging system is improved. BRIEF DESCRIPTION OF DRAWINGS
[0047] Figure 1 FIG. 1 is a flowchart of a parking fee calculation method of a parking lot according to the present application.
[0048] Figure 2 FIG. 2 is a structural diagram of a main parking lot and a secondary parking lot according to the present application. DETAILED DESCRIPTION
[0049] With reference to the drawings of the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described, obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments of the present application, all the other embodiments obtained by a person of ordinary skill in the art without creative work belong to the scope of protection of the present application.
[0050] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used in the description of the application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used herein, the term "and / or" includes any and all combinations of one or more of the associated listed items.
[0051] Please refer to Figure 1 and Figure 2 , a parking lot vehicle parking fee calculation method is provided in a preferred embodiment of the present application, mainly used to solve the billing problem of nested parking lots, improve the billing efficiency of intelligent parking lots with multiple operators, realize differentiated billing and clearing settlement of parking spaces of different operators, specifically including the following steps:
[0052] The nested parking lot is divided into a main parking lot and at least one secondary parking lot, the main parking lot contains a plurality of secondary parking lots, i.e. the target vehicle enters the main parking lot and then enters the secondary parking lot 1, secondary parking lot 2, etc. respectively stay for a period of time and then leave the main parking lot;
[0053] The main entry time of the target vehicle into the main parking lot, the main exit time of the target vehicle from the main parking lot, and the secondary entry time and secondary exit time in each secondary parking lot are obtained. The total parking time is calculated according to the difference between the main entry time and the main exit time, and the secondary parking time of each corresponding secondary parking lot is calculated according to the difference between the secondary entry time and the secondary exit time;
[0054] For each secondary parking lot, the secondary parking fee of the target vehicle in the secondary parking lot is calculated according to the billing rules of the secondary parking lot and the corresponding parking time, and the secondary parking fee is output;
[0055] From the main entry time to the main exit time of the main parking lot, remove all secondary entry time to secondary exit time of the secondary parking lot, get the remaining time period of the main parking lot, i.e. remove each secondary time period from the total parking time, which is the remaining time period of the main parking lot;
[0056] According to the billing rules of the main parking lot and the remaining time period, the main parking fee of the target vehicle in the main parking lot is calculated, and the main parking fee is output.
[0057] In the embodiment, the calculation of the parking fee of the target vehicle in the parking lot comprises the following steps:
[0058] The time of entry and the time of exit of the target vehicle in the parking lot are obtained.
[0059] The parking duration of the target vehicle in the parking lot is calculated, which is the time difference between the time of exit and the time of entry.
[0060] The charging rule of the parking lot is obtained.
[0061] The parking fee of the parking lot is calculated according to the charging rule and the time of entry.
[0062] In the embodiment, after the charging rule of the parking lot is obtained, it is determined whether the charging rule comprises a step charging standard, the corresponding step interval is determined according to the parking duration, and the parking fee is calculated.
[0063] In the embodiment, the charging rule comprises a free duration, when the parking duration is less than or equal to the free duration, the parking fee is 0 yuan, and when the parking duration is greater than the free duration, the parking duration is adjusted and the parking fee is calculated according to whether the free duration is involved in the charging.
[0064] When the charging rule comprises a first charging duration, when the parking duration is less than or equal to the first charging duration, the time period is removed, and when the parking duration is greater than the first charging duration, the parking duration is adjusted and the parking fee is calculated.
[0065] In the embodiment, when the charging rule comprises a free duration and the parking duration is greater than the free duration, the parking duration is adjusted and the parking fee is calculated according to whether the free duration is involved in the charging, specifically as follows:
[0066] If the parking duration is greater than the free duration, the start time of the time period is added to the free duration to obtain a new charging time period.
[0067] If the parking duration is less than or equal to the free duration, the time period is removed, and the parking duration is deducted from the free duration, and it is determined whether the duration of the next time period is greater than the remaining free duration.
[0068] In the embodiment, when the charging rule comprises a first charging duration, when the parking duration is greater than the first charging duration, the parking duration is adjusted and the parking fee is calculated as follows:
[0069] The start time of the time period is added to the first charging duration to obtain a new charging time period, and the first charging fee is calculated.
[0070] If the parking duration of the current period is less than the first billing duration, the current period is removed, the parking duration of the current period is deducted from the first billing duration, and whether the duration of the next period is greater than the remaining first billing duration is determined.
[0071] In the embodiment, before calculating the main parking fee of the target vehicle in the main parking lot according to the billing rules of the main parking lot and the remaining periods, the method further comprises:
[0072] determining whether the extension condition is met between the remaining periods,
[0073] the extension condition comprises:
[0074] when the exit time of the previous period is in the daytime and the entry time of the next period is in the daytime, the extension is performed;
[0075] when the exit time of the previous period is in the daytime and the entry time of the next period is in the nighttime and the daytime-cross-nighttime extension rule is configured, the extension is performed;
[0076] when the exit time of the previous period is in the nighttime and the entry time of the next period is in the nighttime, the extension is performed;
[0077] when the exit time of the previous period is in the nighttime and the entry time of the next period is in the daytime and the nighttime-cross-daytime extension rule is configured, the extension is performed;
[0078] if the extension condition is met, the adjacent remaining periods are combined into a continuous period; if the extension condition is not met, the remaining periods are kept independent.
[0079] In the embodiment, the main parking fee of the target vehicle in the main parking lot is calculated according to the billing rules of the main parking lot and the remaining periods, and the method comprises:
[0080] when the billing rules of the main parking lot are per-visit billing, the remaining periods in the same daytime period or the same nighttime period are combined to calculate the main parking fee.
[0081] Another preferred embodiment of the application provides a parking lot vehicle parking fee calculation system, comprising:
[0082] a parking lot division module for dividing a nested parking lot into a main parking lot and at least one secondary parking lot, the main parking lot containing the secondary parking lot;
[0083] a time acquisition module for acquiring the main entry time of a target vehicle into the main parking lot, the main exit time of the target vehicle from the main parking lot, and the secondary entry time and the secondary exit time in each secondary parking lot;
[0084] a secondary parking lot charging module, configured to calculate, for each of the secondary parking lot, a secondary parking fee of the target vehicle in the secondary parking lot according to a charging rule of the secondary parking lot and a corresponding secondary parking duration, and output the secondary parking fee;
[0085] a time period processing module, configured to remove all secondary time periods of the secondary parking lot from a main time period of the main parking lot from a main entry time to a main exit time, to obtain a remaining time period of the main parking lot;
[0086] a main parking lot charging module, configured to calculate a main parking fee of the target vehicle in the main parking lot according to a charging rule of the main parking lot and the remaining time period, and output the main parking fee.
[0087] In the embodiment, a parking lot vehicle parking fee calculation system further comprises:
[0088] a rule acquisition unit, configured to acquire a charging rule of the secondary parking lot, the charging rule comprising at least one of a ladder charging standard, a free duration, and a first charging duration;
[0089] a duration calculation unit, configured to calculate a secondary parking duration of the target vehicle in the secondary parking lot, the secondary parking duration being a time difference between a secondary exit time and a secondary entry time;
[0090] a ladder charging unit, configured to, if the charging rule comprises the ladder charging standard, determine a corresponding ladder interval according to the secondary parking duration, and calculate the secondary parking fee;
[0091] a free duration processing unit, configured to, if the charging rule comprises the free duration, when the secondary parking duration is less than or equal to the free duration, the secondary parking fee is 0 yuan; and when the secondary parking duration is greater than the free duration, the secondary parking duration is adjusted according to whether the free duration participates in charging, and the secondary parking fee is calculated after the adjustment;
[0092] a first charging processing unit, configured to, if the charging rule comprises the first charging duration, when the secondary parking duration is less than or equal to the first charging duration, remove the secondary time period; and when the secondary parking duration is greater than the first charging duration, adjust the secondary parking duration and calculate the secondary parking fee after the adjustment.
[0093] In the embodiment, the free duration processing unit comprises:
[0094] a non-participating charging subunit, configured to, when the charging rule comprises a free duration and the parking duration is greater than the free duration, if the free duration does not participate in charging: if the parking duration is greater than the free duration, adding the start time of the time period to the free duration to obtain a new parking duration; if the parking duration is less than or equal to the free duration, removing the time period and deducting the parking duration from the free duration, and continuing to determine whether the duration of the next time period is greater than the remaining free duration.
[0095] In the embodiment, the first charging processing unit comprises:
[0096] a first charging calculation subunit, configured to, when the charging rule comprises a first charging duration and the parking duration is greater than the first charging duration, adding the start time of the time period to the first charging duration to obtain a new parking duration, and charging the first charging fee; if the parking duration is less than or equal to the first charging duration, removing the time period and deducting the parking duration from the first charging duration, and continuing to determine whether the duration of the next time period is greater than the remaining first charging duration.
[0097] In the embodiment, a time period postponing judgment module is further included, configured to, before calculating the main parking fee according to the charging rule of the main parking lot and the remaining time periods, judging whether the postponing condition is met between the remaining time periods, the postponing condition comprising:
[0098] postponing when the exit time of the previous time period is in the daytime and the entry time of the next time period is in the daytime;
[0099] postponing when the exit time of the previous time period is in the daytime, the entry time of the next time period is in the nighttime and a daytime-cross-nighttime postponing rule is configured;
[0100] postponing when the exit time of the previous time period is in the nighttime and the entry time of the next time period is in the nighttime;
[0101] postponing when the exit time of the previous time period is in the nighttime, the entry time of the next time period is in the daytime and a nighttime-cross-daytime postponing rule is configured;
[0102] if the postponing condition is met, merging the adjacent remaining time periods into one continuous time period; if the postponing condition is not met, keeping the remaining time periods independent.
[0103] In the embodiment, the main parking lot charging module comprises:
[0104] a per-time charging processing unit, configured to, if the charging rule of the main parking lot is per-time charging, merging the remaining time periods in the same daytime period or the same nighttime period and then calculating the main parking fee.
[0105] In some preferred embodiments of the present application, a computer readable storage medium is provided, which stores a computer program. The computer program, when executed by a processor, causes the processor to perform the steps of the method as described in the above embodiments.
[0106] The functions described above can be implemented in software or computer program product, which is stored in one kind of computer readable storage medium when sold or used as an independent product. Based on this understanding, the technical solutions of the present application or the parts of the technical solutions that essentially contribute to the prior art can be embodied in the form of software product, which is stored in a storage medium and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various media that can store program codes.
[0107] The above description is a detailed description of the preferred embodiments of the present application, but the embodiments are not intended to limit the scope of the patent application of the present application. Any equivalent changes or modifications made under the technical spirit of the present application should be included in the patent scope of the present application.
Claims
1. A method for calculating parking fees for vehicles in a parking lot, characterized in that: Including steps: Dividing the nested parking lot into a main parking lot and at least one secondary parking lot, wherein the main parking lot contains a plurality of the secondary parking lots; Obtaining the target vehicle's main entry time into the main parking lot, main exit time from the main parking lot, and secondary entry time and secondary exit time at each secondary parking lot; For each of the secondary parking lots, the parking fee for the target vehicle at the secondary parking lot is calculated according to the charging rules of the secondary parking lot and the corresponding parking duration, and the parking fee is output; From the main time period of the main parking lot from the main entry time to the main exit time, remove the secondary time periods of all the secondary parking lots from the secondary entry time to the secondary exit time to obtain the remaining time period of the main parking lot; The main parking fee of the target vehicle in the main parking lot is calculated according to the charging rules of the main parking lot and the remaining time period, and the main parking fee is output.
2. A method for calculating parking fees for vehicles in a parking lot according to claim 1, characterized in that: Calculating the parking fee of the target vehicle at the parking lot specifically includes the following steps: Obtain the target vehicle's second entry time and second exit time at the second parking lot; Calculate the target vehicle's secondary parking time at the secondary parking lot, where the secondary parking time is the time difference between the secondary exit time and the secondary entry time; Get the billing rules for this parking lot; The parking fee is calculated based on the billing rules and entry time.
3. A method for calculating parking fees for vehicles in a parking lot according to claim 2, characterized in that: After obtaining the billing rules of the secondary parking lot, determine whether it includes a tiered billing standard, determine the corresponding tiered interval according to the secondary parking duration, and calculate the secondary parking fee.
4. A method for calculating parking fees for vehicles in a parking lot according to claim 3, characterized in that: The charging rules include free time. When the parking time is less than or equal to the free time, the parking fee is 0 yuan. When the parking time is greater than the free time, the parking fee is calculated after adjusting the parking time based on whether the free time is included in the charging. When the billing rules include the first billing duration, when the second parking duration ≤ the first billing duration, remove the secondary time period; when the second parking duration > the first billing duration, adjust the second parking duration and calculate the second parking fee.
5. A method for calculating parking fees for vehicles in a parking lot according to claim 4, characterized in that: When the billing rule includes a free time and the secondary parking time is greater than the free time, the secondary parking fee is calculated after adjusting the secondary parking time based on whether the free time is included in the billing, specifically as follows: If the parking time is longer than the free time, add the free time to the start time of the time period to get the new charging time period. If the parking time is less than or equal to the free time, remove the time period and deduct the parking time from the free time period, and then continue to determine whether the next time period is greater than the remaining free time period.
6. The method for calculating parking fees for vehicles in a parking lot according to claim 1, characterized in that: When the charging rule includes the first charging duration, and the second parking duration is greater than the first charging duration, the second parking fee is calculated after adjusting the second parking duration: Add the start time of the secondary period to the duration of the first billing to obtain a new secondary billing period, and include it in the first billing fee; If the parking time is less than or equal to the first billing time, remove the time period and deduct the parking time from the first billing time, and continue to determine whether the next time period is greater than the remaining first billing time.
7. The method for calculating parking fees for vehicles in a parking lot according to claim 1, wherein: Before calculating the main parking fee of the target vehicle at the main parking lot according to the charging rules of the main parking lot and the remaining time period, the method further includes: Determine whether the remaining time periods satisfy the extension conditions. The postponement conditions include: When the exit time of the previous period is during the day and the entry time of the next period is during the day, it will be postponed accordingly; When the exit time of the previous period is during the day, and the entry time of the next period is at night, and the day-to-night postponement rule is configured, the entry will be postponed; When the exit time of the previous period is in the evening and the entry time of the next period is in the evening, it will be postponed accordingly; When the exit time of the previous period is at night, the entry time of the next period is during the day, and the night-to-day postponement rule is configured, the entry will be postponed; If the postponement condition is met, the adjacent remaining time periods are merged into one continuous time period; if the postponement condition is not met, the remaining time periods are kept independent.
8. The method for calculating parking fees for vehicles in a parking lot according to claim 1, wherein: Calculating the main parking fee of the target vehicle at the main parking lot according to the charging rules of the main parking lot and the remaining time period, including: When the charging rule of the main parking lot is pay-per-time, the remaining time periods of the same daytime period or the same nighttime period are combined to calculate the main parking fee.
9. A parking fee calculation system for vehicles in a parking lot, used to implement a parking fee calculation method for vehicles in a parking lot according to any one of claims 1 to 8, characterized in that: include: A yard division module, configured to divide the nested yard into a main yard and at least one secondary yard, wherein the main yard includes the secondary yard; A time acquisition module is used to acquire the main entry time of the target vehicle entering the main parking lot, the main exit time of the target vehicle leaving the main parking lot, and the secondary entry time and secondary exit time of the target vehicle at each secondary parking lot; A secondary parking lot charging module is used to calculate the parking fee of the target vehicle at each secondary parking lot according to the charging rules of the secondary parking lot and the corresponding secondary parking duration, and output the parking fee; a time period processing module, configured to remove the secondary time periods from the secondary entry time to the secondary exit time of all the secondary parking lots from the primary time period from the primary entry time to the primary exit time of the primary parking lot, to obtain the remaining time periods of the primary parking lot; The main parking lot charging module is used to calculate the main parking fee of the target vehicle in the main parking lot according to the charging rules of the main parking lot and the remaining time period, and output the main parking fee.
10. A storage medium, characterized in that: A computer program is stored, and when the computer program is executed by a processor, the processor is caused to execute the steps of a method for calculating parking fees for vehicles in a parking lot as described in any one of claims 1 to 9.