CN109741092B - Public transportation cost preferential adjustment method and background service equipment - Google Patents

Public transportation cost preferential adjustment method and background service equipment Download PDF

Info

Publication number
CN109741092B
CN109741092B CN201811566580.5A CN201811566580A CN109741092B CN 109741092 B CN109741092 B CN 109741092B CN 201811566580 A CN201811566580 A CN 201811566580A CN 109741092 B CN109741092 B CN 109741092B
Authority
CN
China
Prior art keywords
record
transaction
target
current
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811566580.5A
Other languages
Chinese (zh)
Other versions
CN109741092A (en
Inventor
谢振东
苏浩伟
顾裕波
温晓丽
袁勇
邹大毕
李靖凯
李泽城
叶少华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Yang Cheng Tong Co ltd
Original Assignee
Guangzhou Yang Cheng Tong Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Yang Cheng Tong Co ltd filed Critical Guangzhou Yang Cheng Tong Co ltd
Priority to CN201811566580.5A priority Critical patent/CN109741092B/en
Publication of CN109741092A publication Critical patent/CN109741092A/en
Application granted granted Critical
Publication of CN109741092B publication Critical patent/CN109741092B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a public transportation cost preferential adjustment method and background service equipment, wherein the method comprises the following steps: the background service equipment receives a current traffic transaction record which is sent by the terminal equipment and aims at the passenger, wherein the current traffic transaction record at least comprises the identity of the passenger, determines a target transaction information record table corresponding to the identity, and reads transaction information in the target transaction information record table; calculating the total number of target transactions, wherein the total number of target transactions is equal to 1 increase of the total number of transactions in the same month; and updating the target transaction information record table according to the relation between the total number of target transactions and the preset threshold number. The invention can not only update the month transaction record information in real time, but also adjust the month transaction record information in time when finding out wrong preferential preference by establishing the month transaction information record table and updating the month transaction information record table in time, thereby optimizing the management of traffic departments and improving the experience of passengers.

Description

Public transportation cost preferential adjustment method and background service equipment
Technical Field
The invention relates to the field of urban rail transit, in particular to a public transportation cost preferential adjustment method and background service equipment.
Background
With the rapid development of internet technology, IC (Integrated Circuit ) card payment technology is maturing, and IC card payment has penetrated into various fields of our lives, for example: in the urban rail public transportation field, passengers can finish payment only by swiping a riding card reader by using an IC card. In order to alleviate traffic pressure and advocate green low-carbon travel, traffic departments have proposed many IC card riding offers, such as: and implementing a month trade frequency threshold preference mode, namely, after the month accumulated trade frequency reaches the specified frequency, the trade enjoys discount.
However, it has been found in practice that since the transaction amount paid by the public transportation IC card is large, for example: the IC card payment transaction amount of the Guangzhou subway and bus is 600 ten thousand times every day, so that the situation that the passenger preferential calculation error is possibly caused by untimely transaction uploading exists in the current IC card riding preferential method.
Disclosure of Invention
The technical problem to be solved by the invention is to provide the public transportation expense preference adjusting method and the background service equipment, which can not only update the month transaction record information in real time, but also adjust in time when finding out the wrong preference by establishing the month transaction information record table and updating the month transaction information record table in time, thereby optimizing the management of the transportation department.
In order to solve the technical problems, a first aspect of the embodiments of the present invention discloses a method for adjusting public transportation cost preference, which includes:
the background service equipment receives a current traffic transaction record for a passenger, which is sent by a terminal equipment, wherein the current traffic transaction record at least comprises an identity of the passenger and the current transaction time of the current traffic transaction record;
the background service equipment determines a target transaction information record table corresponding to the identity mark, and reads transaction information in the target transaction information record table, wherein the transaction information at least comprises the total number of current-month transactions of the passenger and the time to count threshold time corresponding to the current-month count threshold record;
the background service equipment calculates the total number of target transactions, wherein the total number of target transactions is equal to the increase of 1 of the total number of current-month transactions;
the background service equipment updates the target transaction information record table according to the relation between the total target transaction times and preset threshold times, wherein the preset threshold times are trigger thresholds for enabling passengers to enjoy preferential benefits in the same month.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, after the background service device receives the current traffic transaction record for the passenger sent by the terminal device and before the background service device determines the target transaction information record table corresponding to the identity, the method further includes:
The background service equipment judges whether a target riding transaction information record table corresponding to the identity mark exists or not;
when judging that the target transaction information record table corresponding to the identity exists, triggering and executing the operation of determining the target transaction information record table corresponding to the identity by the background service equipment;
and, the method further comprises:
when judging that the target transaction information record table corresponding to the identity is not existed, the background service equipment creates the transaction information record table corresponding to the identity as the target transaction information record table.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the transaction information further includes a total monthly offer amount of the passenger and a total monthly offer number;
and the background service equipment updates the target transaction information record table according to the relation between the total number of target transactions and the preset threshold number of times, and the method comprises the following steps:
the background service equipment updates the total number of transactions in the month to the target total number of transactions;
when the total number of target transactions is equal to the preset threshold number, the background service equipment updates the time for reaching the counting threshold to the current transaction time;
When the total number of target transactions is greater than the preset threshold number, the background service equipment judges whether the current transaction time is later than the time for reaching the counting threshold;
when the current transaction time is judged to be later than the time threshold of reaching the time counting, the background service equipment calculates a first preferential amount corresponding to the current traffic transaction record, increases the first preferential amount to the current month total preferential amount to update the current month total preferential amount, and increases the current month total preferential number by 1 to update the current month total preferential number.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the method further includes:
when the target transaction total number is greater than the preset threshold number and when the current transaction time is judged to be earlier than the arrival counting threshold time, the background service equipment determines the current month counting threshold record as a target preferential adjustment record, calculates a second preferential amount corresponding to the target preferential adjustment record, increases the second preferential amount into the current month total preferential amount to update the current month preferential total amount, increases the current month total preferential number by 1 to update the current month total preferential number, and updates the arrival counting threshold time to the current transaction time.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the method further includes:
the background service equipment adds the target discount adjustment record and the second discount amount to a discount record adjustment table which is created in advance, wherein the discount record adjustment table comprises all discount adjustment records of the discount amount required to be adjusted by the passengers in the current month and discount amounts corresponding to the discount adjustment records.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the method further includes: the background service equipment judges whether the current time reaches the sending time or not;
and when the current time reaching time is judged, the background service equipment sends the target transaction information record table and/or the preferential record adjustment table to the client of the passenger.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, after the background service device receives the current traffic transaction record for the passenger sent by the terminal device and before the background service device determines the target transaction information record table corresponding to the identity, the method further includes:
The background service equipment determines the triggering type of the current traffic transaction record;
when the trigger type of the current traffic transaction record is determined to be a single trigger type, the background service equipment executes the operation of determining a target transaction information record table corresponding to the identity;
when the triggering type of the current traffic transaction record is determined to be a double triggering type, the background service equipment judges whether the current traffic transaction record is a complete transaction record or not, wherein the complete transaction record comprises a starting record and a terminating record;
when the current traffic transaction record is judged to be the complete transaction record, the background service equipment triggers and executes the operation of determining a target transaction information record table corresponding to the identity;
the method further comprises the steps of:
and when judging that the current traffic transaction record is not the complete transaction record, the background service equipment sends a complement indication to a client corresponding to the passenger, so that the passenger fills the missing target information according to the complement indication, updates the current traffic transaction record according to the target information filled by the passenger, and triggers the operation of determining the target transaction information record table corresponding to the identity.
The second aspect of the embodiment of the invention discloses a background service device, which comprises:
the receiving module is used for receiving a current traffic transaction record for a passenger, which is sent by the terminal equipment, wherein the current traffic transaction record at least comprises an identity of the passenger and the current transaction time of the current traffic transaction record;
the first determining module is used for determining a target transaction information record table corresponding to the identity;
the reading module is used for reading the transaction information in the target transaction information record table, and the transaction information at least comprises the total number of the current month transactions of the passengers and the time to reach the counting threshold corresponding to the current month counting threshold record;
the calculating module is used for calculating the total number of target transactions, wherein the total number of target transactions is equal to the increase of 1 of the total number of current-month transactions;
and the first updating module is used for updating the target transaction information record table according to the relation between the total number of target transactions and the preset threshold number, wherein the preset threshold number is a trigger threshold value for enabling passengers to enjoy preferential benefits in the same month.
In a second aspect of the embodiment of the present invention, as an optional implementation manner, the background service device further includes a first determining module, where:
The first judging module is used for judging whether a target riding transaction information record table corresponding to the identity mark exists or not;
the first determining module is specifically configured to:
when the first judging module judges that the target transaction information record table corresponding to the identity exists, determining the target transaction information record table corresponding to the identity;
and, the background service device further comprises a creation module, wherein:
the creating module is configured to create, when the first judging module judges that the target transaction information record table corresponding to the identity does not exist, a transaction information record table corresponding to the identity as the target transaction information record table.
As an optional implementation manner, in the second aspect of the embodiment of the present invention, the transaction information further includes a total monthly offer amount of the passenger and a total monthly offer number;
and the first updating module comprises a first updating sub-module, a second updating sub-module, a judging sub-module and a third updating sub-module, wherein:
the first updating sub-module is used for updating the total number of transactions in the month to the target total number of transactions;
The second updating sub-module is configured to update the time to reach the counted threshold time to the current transaction time when the total number of target transactions is equal to the preset threshold number;
the judging sub-module is used for judging whether the current transaction time is later than the time for reaching the counting threshold time or not when the total number of target transactions is larger than the preset threshold number;
and the third updating sub-module is used for calculating a first preferential amount corresponding to the current traffic transaction record when the judging sub-module judges that the current transaction time is later than the time reaching counting threshold time, increasing the first preferential amount to the current month total preferential amount to update the current month total preferential amount, and increasing the current month total preferential number by 1 to update the current month total preferential number.
As an optional implementation manner, in the second aspect of the embodiment of the present invention, the first update module further includes a fourth update sub-module, where:
the fourth updating sub-module is configured to determine the current transaction time as a target preference adjustment record when the target transaction total number is greater than the preset threshold number and the judging sub-module judges that the current transaction time is earlier than the arrival time threshold time, calculate a second preference amount corresponding to the target preference adjustment record, increase the second preference amount to the current month total preference amount to update the current month total preference amount, increase the current month total preference number by 1 to update the current month total preference number, and update the arrival time threshold time to the current transaction time.
As an optional implementation manner, in the second aspect of the embodiment of the present invention, the background service device further includes an adding module, where:
the adding module is configured to add the target offer adjustment record and the second offer amount to a pre-created offer record adjustment table, where the offer record adjustment table includes all offer adjustment records in which the passenger needs to adjust the offer amount in the current month and the offer amount corresponding to each of the offer adjustment records.
In a second aspect of the embodiment of the present invention, the background service device further includes a second determining module and a first sending module, where:
the second judging module is used for judging whether the current time reaches the sending time or not;
and the first sending module is used for sending the transaction information record list and/or the preferential record adjustment list to the client of the passenger when the second judging module judges that the current time reaches the sending time.
In a second aspect of the embodiment of the present invention, as an optional implementation manner, the background service device further includes a second determining module and a third judging module, where:
The second determining module is configured to determine a trigger type of the current traffic transaction record after the receiving module receives the current traffic transaction record for the passenger sent by the terminal device and before the first determining module determines a target transaction information record table corresponding to the identity;
the first determining module is further configured to determine a target transaction information record table corresponding to the identity when the second determining module determines that the trigger type of the current traffic transaction record is a one-shot type;
the third judging module is configured to judge whether the current traffic transaction record is a complete transaction record when the second determining module determines that the trigger type of the current traffic transaction record is a double trigger type, where the complete transaction record includes a start record and a stop record;
the first determining module is further configured to determine a target transaction information record table corresponding to the identity when the second determining module determines that the trigger type of the current traffic transaction record is a double trigger type and the third judging module judges that the current traffic transaction record is the complete transaction record;
The background service device further comprises a second sending module, a second updating module and a third determining module, wherein:
the second sending module is configured to send a complement registration instruction to a client corresponding to the passenger when the third judging module judges that the current traffic transaction record is not the complete transaction record, so that the passenger fills the missing target information according to the complement registration instruction;
the second updating module is used for updating the current traffic transaction record according to the target information filled by the passenger;
and the third determining module is used for determining a target transaction information record table corresponding to the identity mark when the second updating module updates the current traffic transaction record according to the target information filled by the passenger.
The third aspect of the embodiment of the invention discloses another background service device, which comprises:
a memory storing executable program code;
a processor coupled to the memory;
the processor invokes the executable program codes stored in the memory to execute the public transportation expense preference adjustment method disclosed in the first aspect of the embodiment of the invention.
A fourth aspect of the embodiment of the present invention discloses a computer-readable storage medium storing a computer program, wherein the computer program causes a computer to execute the public transportation cost preference adjustment method disclosed in the first aspect of the embodiment of the present invention.
A fifth aspect of an embodiment of the invention discloses a computer program product which, when run on a computer, causes the computer to perform the public transportation cost advantage adjustment method disclosed in the first aspect.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
in the invention, background service equipment receives a current traffic transaction record for a passenger, which is sent by terminal equipment, wherein the current traffic transaction record at least comprises the identity of the passenger and the current transaction time of the current traffic transaction record; determining a target transaction information record table corresponding to the identity mark, and reading transaction information in the target transaction information record table, wherein the transaction information at least comprises the total number of current-month transactions of passengers and the time to reach a counting threshold corresponding to the current-month counting threshold record; calculating the total number of target transactions, wherein the total number of target transactions is equal to 1 increase of the total number of transactions in the same month; and updating the target transaction information record table according to the relation between the total number of target transactions and the preset threshold number, wherein the preset threshold number is a trigger threshold value for passengers to start enjoying preferential preference in the current month. By means of the method and the system, the month transaction information record table can be built and updated in time, so that the month transaction record information can be updated in real time, and the month transaction information can be adjusted in time when false offers are found, and therefore management of traffic departments is optimized, and experience of passengers is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a method for adjusting public transportation cost preference according to an embodiment of the present invention;
FIG. 2 is a flow chart of another method for adjusting public transportation cost preference according to an embodiment of the present invention;
FIG. 3 is a flow chart of another method for adjusting public transportation cost preference according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a background service device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another background service device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a background service device according to another embodiment of the present invention.
Detailed Description
For a better understanding and implementation, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The invention discloses a public transportation expense preference adjustment method and background service equipment, which can not only update month transaction record information in real time, but also adjust in time when false preference is found by establishing a month transaction information record table and updating the month transaction information record table in time, thereby optimizing management of transportation departments and improving experience of passengers. The following will describe in detail.
Example 1
Referring to fig. 1, fig. 1 is a flow chart of a method for adjusting public transportation cost preference according to an embodiment of the invention. The method for adjusting public transportation cost preference shown in fig. 1 can be applied to background service equipment of public transportation means such as subways, buses and trams, and the embodiment of the invention is not limited. As shown in fig. 1, the public transportation cost preference adjustment method may include the steps of:
101. the background service equipment receives a current traffic transaction record sent by the terminal equipment and aiming at the passenger, wherein the current traffic transaction record at least comprises the identity of the passenger and the current transaction time of the current traffic transaction record.
In the embodiment of the invention, the terminal equipment comprises a ticket checking machine and a user terminal, and the embodiment of the invention is not limited. The current traffic transaction record may further include at least one of a transaction mode type and a current traffic route corresponding to the traffic transaction record, where the transaction mode type includes any one of two-dimensional code scanning transaction and IC card swiping transaction (e.g., a sheep city IC card, a financial IC card, etc.), and the embodiment of the present invention is not limited.
In the embodiment of the present invention, the identity of the passenger includes at least one of a user registration name, a user nickname, a user mobile phone number, a registration mailbox, and an identity card number, which is not limited in the embodiment of the present invention.
As an alternative embodiment, after performing step 101, the public transportation cost offer adjustment method may further include the steps of:
the background service equipment acquires a face image of the passenger and judges whether the face image is matched with the identity;
when judging that the facial image is matched with the identity, triggering the background service equipment to execute step 102;
wherein, judging whether the face image is matched with the identity mark may include:
the background service equipment acquires a target image corresponding to the identity mark, and acquires the facial features of the facial image and the target features of the target image respectively;
the background service equipment performs feature matching on the facial features and the target features to obtain matching rates of the facial features and the target features, and judges whether the matching rates reach preset matching rates or not;
when judging that the matching rate reaches the preset matching rate, the background service equipment determines that the face image is matched with the identity mark;
And when judging that the matching rate reaches the preset matching rate, the background service equipment determines that the face image is not matched with the identity mark.
It can be seen that the optional embodiment can reduce the possibility of fraudulent use of the two-dimension code account number or the IC card of other people by judging whether the face image of the passenger is matched with the identity.
In this optional embodiment, optionally, when the transaction mode type is a swipe IC card transaction, the public transportation expense preference adjustment method may further include the steps of:
when judging that the facial image is not matched with the identity, the background service equipment judges whether the passenger corresponding to the identity authorizes the use of the IC card;
when it is determined that the passenger corresponding to the identification mark authorizes the use of the IC card, the background service device triggers execution of step 102.
In this optional embodiment, further optionally, when it is determined that the passenger corresponding to the identity is not authorized to use the IC card, the background service device records a face image of the passenger, sends the face image to a client of the passenger corresponding to the identity, and tracks the IC card according to the face image. It can be seen that this alternative embodiment also enables tracking of the IC card and making the use of the IC card known to the passenger corresponding to the identification by recording the facial image of the passenger.
As another alternative embodiment, the IC card carries a locator, and the public transportation expense preference adjustment method may further include the steps of:
the background service equipment acquires the position information sent by the IC card and sends the position information to the client of the passenger at intervals;
the background service device receives abnormal information of the passenger aiming at the position information, and reports the loss of the IC card or freezes the IC card according to the abnormal information, wherein the abnormal information is used for indicating that the passenger loses the IC card or the IC card is stolen.
Therefore, the optional embodiment can enable the passenger to quickly position the IC card by sending the position information of the IC card to the passenger, and can reduce the economic loss of the passenger by reporting or freezing the IC card according to the abnormal information of the position information of the IC card sent by the passenger, thereby improving the experience of the passenger.
102. The background service equipment determines a target transaction information record table corresponding to the identity mark, and reads transaction information in the target transaction information record table, wherein the transaction information at least comprises the total number of the current month transactions of the passenger and the time to count threshold time corresponding to the current month count threshold record.
In the embodiment of the invention, the transaction information can also comprise at least one of the identification of the passenger, the transaction mode and the traffic route corresponding to each traffic transaction record in all traffic transaction records of the month and the current month.
In the embodiment of the invention, all traffic transaction records in the target transaction information record table can be traffic transaction records of the same transaction mode, and can also be traffic transaction records of multiple transaction modes, and the embodiment of the invention is not limited.
For example, all traffic records in the target transaction information record table may be traffic records with IC card or two-dimensional riding code, or traffic records with IC card and two-dimensional riding code combination.
103. The background service device calculates a target total number of transactions equal to 1 increase in the total number of transactions per month.
In the embodiment of the invention, the background service equipment calculates the total number of target transactions according to the current traffic transaction record.
104. The background service equipment updates the target transaction information record table according to the relation between the total target transaction times and the preset threshold times, wherein the preset threshold times are trigger thresholds for passengers to start enjoying preferential offers in the same month.
In the embodiment of the present invention, the transaction information may further include a total monthly offer amount of the passenger and a total monthly offer number.
In the embodiment of the present invention, the preset threshold number may be any specific threshold number (for example, 15 times) according to a change of a preferential policy of a traffic department. Further, the discount policy may be that each of all traffic transaction records greater than a preset threshold number may enjoy discount offers, and the discount offers may be any one of six-fold, five-fold, etc. offers, which are not limited by the embodiments of the present invention.
In an embodiment of the present invention, as an optional implementation manner, the updating, by the background service device, the target transaction information record table according to the relationship between the total number of target transactions and the preset threshold number of times may include:
the background service equipment updates the total number of transactions in the month to the target total number of transactions;
when the total number of target transactions is equal to the preset threshold number, the background service equipment updates the time for reaching the counting threshold to the current transaction time;
when the total number of target transactions is greater than the preset threshold number, the background service equipment judges whether the current transaction time is later than the arrival counting threshold time;
when the current transaction time is judged to be later than the arrival counting threshold time, the background service equipment calculates a first preferential amount corresponding to the current traffic transaction record, increases the first preferential amount to the current month total preferential amount to update the current month total preferential amount, and increases the current month total preferential number by 1 to update the current month total preferential number.
In this optional embodiment, further optionally, the background service device updates the target transaction information record table according to a relationship between the total number of target transactions and a preset threshold number of times, and may further include:
When the target transaction total number is greater than the preset threshold number and the current transaction time is judged to be earlier than the arrival counting threshold time, the background service equipment determines the current month counting threshold record as a target preferential adjustment record, calculates a second preferential amount corresponding to the target preferential adjustment record, increases the second preferential amount to the current month total preferential amount to update the current month total preferential amount, increases the current month total preferential number by 1 to update the current month total preferential number, and updates the arrival counting threshold time to the current transaction time.
For example, if the preset threshold number is set to 15 times, each of all traffic transaction records after more than 15 times enjoys a five-fold preference, and the threshold time to reach is 2018.11.24,09:56:00.
When the total number of target transactions is 14, the background service equipment updates the total number of current-month transactions to 14;
when the total number of target transactions is 15 and the current transaction time of the current traffic transaction record is 2018.11.30, 08:00:45, the background service equipment updates the threshold time for reaching the count to 2018.11.30, 08:00:45;
When the total number of target transactions is 17 and the current transaction time of the current traffic transaction record is 2018.11.30, 17:13:00 is later than the threshold time 2018.11.24,09:56:00, and the 17 th time of traffic fee is 8 yuan and the total amount of the current month offers is 5 yuan, the background service equipment calculates the first offer amount corresponding to the 17 th time of traffic transaction record as 4 yuan, updates the total amount of the current month offers as 9 yuan and updates the total number of the current month offers as 2 yuan;
when the total number of target transactions is 17 and the current transaction time of the current traffic transaction record is 2018.11.23, 14:45:00, before reaching the calculated threshold time 2018.11.24,09:56:00, the background service device determines the 15 th traffic transaction record as a target preference adjustment record, namely the traffic transaction record actually enjoying the preference, if the 15 th total amount is 10 yuan and the month preference total amount is 5 yuan, the background service device calculates the 15 th (the actual 17 th) preference amount as 5 yuan, updates the month preference total amount as 10 yuan, updates the month total preference number as 2, and updates the reaching threshold time from 2018.11.24,09:56:00 as 2018.11.23, 14:45:00.
Therefore, in the optional implementation manner, by setting the preset threshold times and only accumulating the total number of target traffic transactions before the preset threshold times, the running power consumption of the memory can be reduced, the wrong traffic transaction records and preferential amount can be determined and corrected by comparing the current transaction time with the time reaching the counted threshold times, the management of the preferential traffic departments is realized, and the experience of passengers is improved.
As yet another alternative embodiment, after the step 104 is performed, the public transportation expense preference adjusting method may further include the steps of:
the background service equipment adds the target discount adjustment record and the second discount amount to a pre-created discount record adjustment table, wherein the discount record adjustment table comprises all discount adjustment records of passengers needing to adjust discount amounts in the current month and discount amounts corresponding to each discount adjustment record.
In this alternative embodiment, when the coupon record adjustment table is established, the coupon adjustment record in the coupon record adjustment table is empty, and the coupon amount with the coupon adjustment record is 0.
It can be seen that, in this alternative embodiment, by adding the coupon adjustment record and the coupon amount of the coupon adjustment record to the pre-created coupon adjustment table, not only can the coupon adjustment record be classified with the target transaction information record table, but also the traffic transaction record to be adjusted can be uniformly managed, so as to improve the management efficiency of the traffic department.
As yet another alternative embodiment, the public transportation expense preference adjusting method may further include the steps of:
the background service device sends the target transaction information record list and/or the preferential record adjustment list to the client of the passenger.
It can be seen that this alternative embodiment can make the passenger aware of the specific condition of the traffic fee preference adjustment by sending the target transaction information record table and/or the preference record adjustment table to the passenger, thereby improving the experience of the passenger.
In this optional embodiment, optionally, before the background service device sends the target transaction information record table and/or the offer record adjustment table to the client of the passenger, the public transportation cost offer adjustment method may further include the steps of:
the background service equipment judges whether the current time reaches the sending time or not;
when the current time reaches the sending time, the background service equipment triggers and executes the operation of sending the target transaction information record list and/or the preferential record adjustment list to the client of the passenger.
In this alternative embodiment, the sending time includes any one of the last day of the month, the earliest day of the beginning of the month, and the day of the month, and the embodiment of the present invention is not limited.
In this alternative embodiment, the background service device may further transmit the target transaction information record table and/or the preference record adjustment table to the client of the passenger at intervals, and the number of transmissions per month may be 1, 2, etc. for example: each of the two days is sent once in the month of the current month and the last day at the end of the month of the current month. The interval time period may be 5 days, 10 days, etc., which is not limited in the embodiment of the present invention.
Therefore, the optional embodiment sends the traffic transaction adjustment table to the passenger only when the traffic transaction adjustment table is sent, so that the passenger can clearly see the error preferential information of the current month according to the traffic transaction adjustment record of the whole month, and the passenger can conveniently store the traffic transaction adjustment record, and the experience of the passenger is further improved.
As yet another alternative embodiment, the public transportation expense preference adjusting method may further include the steps of:
the background service equipment counts the number of times of the current month in the traffic transaction adjustment table, calculates the adjustment rate, and compares the adjustment rate with the adjustment rate of the previous month, wherein the adjustment rate is equal to the ratio of the number of times of the current month to the total number of the current month target transaction.
Therefore, the optimization condition of the traffic transaction data of the background service equipment can be known by calculating and comparing the adjustment rate between months, and the uploading speed of the traffic transaction data is further optimized according to the adjustment rate.
Therefore, the public transportation expense preferential adjustment method described in the implementation of fig. 1 can not only update the month trade record information in real time, but also adjust in time when finding false preferential, thereby optimizing the management of the transportation department and improving the experience of passengers. In addition, the possibility of stealing and fraudulent use of other two-dimension code account numbers or IC cards by bad passengers can be reduced; the tracking of the IC card can also be realized, and passengers corresponding to the identity mark can know the service condition of the IC card; the passengers can also quickly position the IC card, and the economic loss of the passengers is reduced; the running power consumption of the memory can be reduced, and the wrong traffic transaction records and preferential amount can be determined and corrected; the traffic transaction records needing to be adjusted can be conveniently and uniformly managed; the passengers can be enabled to know the specific conditions of preferential adjustment of the traffic cost; the passengers can also know the optimization condition of the traffic transaction data of the background service equipment, and the uploading speed of the traffic transaction data is further optimized, so that the management of traffic departments is further favored, and the management efficiency and the experience of the passengers are further improved.
Example two
Referring to fig. 2, fig. 2 is a flow chart of another method for adjusting public transportation cost preference according to an embodiment of the invention. The method for adjusting public transportation cost preference shown in fig. 2 can be applied to background service equipment of public transportation means such as subways, buses and trams, and the embodiment of the invention is not limited. As shown in fig. 2, the public transportation cost preference adjustment method may include the steps of:
201. the background service equipment receives a current traffic transaction record sent by the terminal equipment and aiming at the passenger, wherein the current traffic transaction record at least comprises the identity of the passenger and the current transaction time of the current traffic transaction record.
202. The background service equipment judges whether a target riding transaction information record table corresponding to the identity mark exists or not. When the result of the determination is yes, the execution of step 204 may be triggered, and when the result of the determination is no, the execution of step 203 may be triggered.
203. The background service equipment creates a transaction information record table corresponding to the identity mark as the target transaction information record table.
In the embodiment of the invention, after receiving the current traffic transaction information of a passenger and judging that a transaction information record table of the passenger does not exist in a database, a transaction information record table created after the transaction information record table of the passenger is initialized, the time for reaching a counting threshold in the transaction information record table is empty, the total number of transactions in the month is 1, the total preferential number is 0, and the total preferential amount is 0; or,
And initializing a transaction information record table created before receiving the current traffic transaction information of the passenger, wherein the arrival counting threshold time in the transaction information record table is empty, the total number of transactions in the month is 0, the total number of times of preferential is 0, and the total preferential amount is 0.
204. The background service equipment determines a target transaction information record table corresponding to the identity mark, and reads transaction information in the target transaction information record table, wherein the transaction information at least comprises the total number of the current month transactions of the passenger and the time to count threshold time corresponding to the current month count threshold record.
205. The background service device calculates a target total number of transactions equal to 1 increase in the total number of transactions per month.
206. The background service equipment updates the target transaction information record table according to the relation between the total target transaction times and the preset threshold times, wherein the preset threshold times are trigger thresholds for passengers to start enjoying preferential offers in the same month.
In the embodiment of the present invention, the descriptions of step 201, step 204 and step 206 refer to the detailed descriptions of embodiment-specific step 101 to step 104, and the description of the embodiment of the present invention is omitted.
Therefore, the public transportation expense preferential adjustment method described in the implementation of fig. 2 can not only update the month trade record information in real time, but also adjust in time when finding false preferential, thereby optimizing the management of the transportation department and improving the experience of passengers. In addition, the transaction information record table corresponding to the identity mark can be judged whether to exist or not, and when the transaction information record table does not exist, the transaction information record table of the passenger is created, so that the invalid occupation of the memory of the database can be reduced, the running power consumption of the memory can be reduced, and each passenger can have the corresponding transaction information record table.
Example III
Referring to fig. 3, fig. 3 is a flow chart of another method for adjusting public transportation cost preference according to an embodiment of the invention. The method for adjusting public transportation cost preference shown in fig. 3 can be applied to background service equipment of public transportation means such as subways, buses and trams, and the embodiment of the invention is not limited. As shown in fig. 3, the public transportation cost preference adjustment method may include the steps of:
301. the background service equipment receives a current traffic transaction record sent by the terminal equipment and aiming at the passenger, wherein the current traffic transaction record at least comprises the identity of the passenger and the current transaction time of the current traffic transaction record.
302. The background service device determines a trigger type for the current traffic transaction record.
In the embodiment of the present invention, when step 302 determines that the trigger type of the current traffic transaction record is a single trigger type, step 305 may be triggered and executed, or step 307 may be directly triggered.
In the embodiment of the invention, the single trigger type is a trigger type which can finish fee deduction only by scanning a two-dimensional traffic code once or by scanning an IC card once.
For example, when a passenger gets on a car, the two-dimensional traffic code is placed in the sensing area of the code reader to scan the fee or the IC card is placed in the sensing area of the card reader to brush the fee is triggered in a single trigger mode.
303. When the triggering type of the current traffic transaction record is determined to be the double triggering type, the background service equipment judges whether the current traffic transaction record is a complete transaction record or not, wherein the complete transaction record comprises a starting record and a terminating record. When the result of the determination is yes, execution of step 305 may be triggered; when the result of the determination is negative, execution of step 304 may be triggered.
In the embodiment of the present invention, when the result of the determination in step 303 is yes, step 307 may also be directly triggered.
In the embodiment of the invention, the double trigger type is a trigger type which can finish deduction only by scanning two-dimensional traffic codes twice or by scanning an IC card twice. The two-time code scanning or the two-time IC card swiping gate can be a gate of the same station or a gate of different stations, and the embodiment of the invention is not limited. For example, when a passenger takes a subway, if the transaction mode selected by the passenger is a two-dimensional code transaction mode, the passenger needs to place two-dimensional traffic codes in two-dimensional code sensing areas of an entrance gate and an exit gate respectively, and deduction can be achieved by scanning the two-dimensional traffic codes.
304. The background service equipment sends a complement indication to the client corresponding to the passenger, so that the passenger fills the missing target information according to the complement indication, and updates the current traffic transaction record according to the passenger filled target information.
In the embodiment of the present invention, the missing target information includes at least one of a gate entering site name, a gate entering time, a gate exiting site name, and a gate exiting time, which is not limited in the embodiment of the present invention.
As an alternative embodiment, after the step 304 is performed, the method for adjusting public transportation cost preference may further include the steps of: the background service equipment judges whether the target information filled by the passenger is accurate or not;
triggering to execute step 305 when the passenger fills up the target information accurately; and when the target information filled by the passenger is judged to be inaccurate, a complement indication is sent to the passenger again.
It can be seen that this alternative embodiment can reduce losses in the traffic sector by determining the accuracy of the passenger-filled target information.
305. The background service equipment judges whether a target riding transaction information record table corresponding to the identity mark exists or not. When the result of the determination is yes, the execution step 307 may be triggered, and when the result of the determination is no, the execution step 306 may be triggered.
306. The background service equipment creates a transaction information record table corresponding to the identity mark as the target transaction information record table.
307. The background service equipment determines a target transaction information record table corresponding to the identity mark, and reads transaction information in the target transaction information record table, wherein the transaction information at least comprises the total number of the current month transactions of the passenger and the time to count threshold time corresponding to the current month count threshold record.
308. The background service device calculates a target total number of transactions equal to 1 increase in the total number of transactions per month.
309. The background service equipment updates the target transaction information record table according to the relation between the total target transaction times and the preset threshold times, wherein the preset threshold times are trigger thresholds for passengers to start enjoying preferential offers in the same month.
In the embodiment of the present invention, the descriptions of step 301 and step 307 to step 309 refer to the detailed descriptions of step 101 to step 104 in the first embodiment, and the descriptions of step 305 and step 306 refer to the detailed descriptions of step 202 and step 203 in the second embodiment, which are not repeated herein.
Therefore, the public transportation expense preferential adjustment method described in the embodiment of fig. 3 can not only update the month trade record information in real time, but also adjust the month trade record information in time when finding false preferential, thereby optimizing the management of the transportation department and improving the experience of passengers. In addition, the target transaction record table can be determined by determining the triggering type of the current traffic transaction record and checking the integrity of the current traffic transaction record, and the passenger can be complemented with the current traffic transaction record by sending the complement indication to the passenger, so that the cost preference adjustment efficiency is further improved.
Example IV
Referring to fig. 4, fig. 4 is a schematic structural diagram of a background service device according to an embodiment of the present invention. The background service device shown in fig. 4 may be a background service device in a public transportation means such as a subway, a bus, a tram, etc., which is not limited by the embodiment of the present invention. As shown in fig. 4, the background service device may include a receiving module 401, a first determining module 402, a reading module 403, a calculating module 404, and a first updating module 405, where:
the receiving module 401 is configured to receive a current traffic transaction record for a passenger sent by a terminal device, where the current traffic transaction record includes at least an identity of the passenger and a current transaction time of the current traffic transaction record.
A first determining module 402 is configured to determine a target transaction information record table corresponding to the identity.
The reading module 403 is configured to read the transaction information in the target transaction information record table, where the transaction information includes at least a total number of transactions of the passenger in the month and an arrival count threshold time corresponding to the current month count threshold record.
A calculating module 404, configured to calculate a target total number of transactions, where the target total number of transactions is equal to the current month total number of transactions increased by 1.
The first updating module 405 is configured to update the target transaction information record table according to a relationship between the total number of target transactions and a preset threshold number, where the preset threshold number is a trigger threshold value for passengers to start enjoying preferential preference in the month.
It can be seen that the background service device described in fig. 4 can not only update the month transaction record information in real time, but also adjust in time when finding out the wrong preference by establishing and updating the month transaction information record table, thereby optimizing the management of the traffic department and improving the experience of passengers.
As an alternative embodiment, the background service device further comprises a first determination module 406. At this time, the structure of the background service device may be as shown in fig. 5, and fig. 5 is a schematic structural diagram of another background service device disclosed in the embodiment of the present invention, where:
a first determining module 406 is configured to determine whether a target riding transaction information record table corresponding to the identity exists.
The first determining module 402 is specifically configured to:
when the first judging module 406 judges that the target transaction information record table corresponding to the identity exists, the target transaction information record table corresponding to the identity is determined.
In this alternative embodiment, optionally, the background service device further comprises a creation module 407, wherein:
the creating module 407 is configured to create, when the first judging module 406 judges that the target transaction information record table corresponding to the identity does not exist, the transaction information record table corresponding to the identity as the target transaction information record table.
It can be seen that implementing the background service device described in fig. 5 can determine whether there is a transaction information record table corresponding to the identity, and create the transaction information record table of the passenger when there is no transaction information record table, so that not only can the invalid occupation of the database memory be reduced, but also the running power consumption of the memory can be reduced, and each passenger can have a corresponding transaction information record table.
In this alternative embodiment, as an alternative implementation manner, the transaction information further includes a total monthly offer amount of the passenger and a total monthly offer number. And the first update module 405 includes a first update sub-module 4051, a second update sub-module 4052, a determination sub-module 4053, and a third update sub-module 4054, as shown in fig. 5, wherein:
a first updating sub-module 4051, configured to update the current total number of transactions to the target total number of transactions.
A second updating sub-module 4052, configured to update the arrival count threshold time to the current transaction time when the target transaction total number is equal to the preset threshold number.
The judging sub-module 4053 is configured to judge whether the current transaction time is later than the arrival count threshold time when the total number of target transactions is greater than a preset threshold number.
A third updating sub-module 4054, configured to calculate a first preference amount corresponding to the current traffic transaction record when the determining sub-module 4053 determines that the current transaction time is later than the arrival counting threshold time, and increase the first preference amount to the current month total preference amount to update the current month total preference amount, and increase the current month total preference number by 1 to update the current month total preference number.
As another alternative embodiment, as shown in fig. 5, the first updating module 405 further includes a fourth updating sub-module 4055, wherein:
and a fourth updating sub-module 4055, configured to determine the current transaction time as a target preference adjustment record and calculate a second preference amount corresponding to the target preference adjustment record when the target transaction total number is greater than the preset threshold number and the judging sub-module 4053 judges that the current transaction time is earlier than the arrival time threshold time, and increase the second preference amount to the current month total preference amount to update the current month total preference amount, and increase the current month total preference number by 1 to update the current month total preference number, and update the arrival time threshold time to the current transaction time.
Therefore, the background service device described in fig. 5 can also reduce the running power consumption of the memory by setting the preset threshold number, and only accumulating the total number of target traffic transactions before the preset threshold number, and can determine and correct the wrong traffic transaction record and the preferential amount by comparing the current transaction time with the time for reaching the counted threshold number, thereby promoting the management of the traffic department and improving the experience of passengers.
As yet another alternative embodiment, as shown in fig. 5, the background service device further comprises an adding module 408, wherein:
the adding module 408 is configured to add the target coupon adjustment record and the second coupon amount to a pre-created coupon record adjustment table, where the coupon record adjustment table includes all coupon adjustment records that the passenger needs to adjust the coupon amount in the current month and the coupon amount corresponding to each coupon adjustment record.
It can be seen that the background service device described in fig. 5 can also be implemented to not only classify the target transaction information record table, but also uniformly manage the traffic transaction records to be adjusted by adding the coupon adjustment record and the coupon amount of the coupon adjustment record to the pre-created coupon adjustment table, thereby improving the management efficiency of the traffic department.
As yet another alternative embodiment, as shown in fig. 5, the background service device further includes a second determining module 409 and a first sending module 410, where:
a second determining module 409, configured to determine whether the current time reaches the sending time;
in this alternative embodiment, after the adding module 408 performs the operation of adding the target coupon adjustment record and the second coupon amount to the pre-created coupon record adjustment table, the second determining module 409 may be triggered to perform the above-described operation of determining whether the current time reaches the transmission time.
The first sending module 410 is configured to send the target transaction information record table and/or the preference record adjustment table to the client of the passenger when the second judging module 409 judges that the current time reaches the sending time.
Therefore, the background service device described in fig. 5 can also send the traffic transaction adjustment table to the passenger only when the traffic transaction adjustment table is sent, so that the passenger can be clear of the error preferential information of the current month according to the traffic transaction adjustment record of the whole month, and the passenger can store the traffic transaction adjustment record conveniently, thereby further improving the experience of the passenger.
As yet another alternative embodiment, as shown in fig. 5, the background service device further includes a second determining module 411 and a third judging module 412, where:
A second determining module 411, configured to determine a trigger type of the current traffic transaction record after the receiving module 401 receives the current traffic transaction record sent by the terminal device and before the first determining module 402 determines a target transaction information record table corresponding to the identity;
the first determining module 402 is further configured to determine, when the second determining module 411 determines that the trigger type of the current traffic transaction record is a one-shot type, a target transaction information record table corresponding to the identity.
And a third judging module 412, configured to judge whether the current traffic transaction record is a complete transaction record when the second determining module 411 determines that the trigger type of the current traffic transaction record is a double trigger type, where the complete transaction record includes a start record and a stop record.
The first determining module 402 is further configured to determine, when the second determining module 411 determines that the trigger type of the current traffic transaction record is a double trigger type and the third determining module 412 determines that the current traffic transaction record is a complete transaction record, a target transaction information record table corresponding to the identity.
It can be seen that implementing the background service device described in fig. 5 can also determine the target transaction record table by determining the trigger type of the current traffic transaction record and checking the integrity of the current traffic transaction record, and can pertinently execute the adjustment policy, thereby improving the cost benefit adjustment efficiency.
As yet another alternative embodiment, as shown in fig. 5, the background service device further includes a second sending module 413, a second updating module 414, and a third determining module 415, where:
and the second sending module 413 is configured to send a complement indication to the client of the passenger when the third judging module 412 judges that the current traffic transaction record is not a complete transaction record, so that the passenger fills the missing target information according to the complement indication.
A second updating module 414 is configured to update the current traffic transaction record according to the passenger-filled destination information.
The third determining module 415 is configured to determine, when the second updating module 414 updates the current traffic transaction record according to the target information filled by the passenger, a target transaction information record table corresponding to the identity.
It can be seen that implementing the background service device described in fig. 5 can also enable the passenger to complement the current traffic transaction record by sending a complement indication to the passenger, thereby improving the cost benefit adjustment efficiency.
Example five
Referring to fig. 6, fig. 6 is a schematic structural diagram of a background service device according to an embodiment of the present invention. As shown in fig. 6, the background service apparatus may include:
A memory 601 in which executable program codes are stored;
a processor 602 coupled to the memory 601;
the processor 602 invokes the executable program code stored in the memory 601 to execute the steps in the public transportation cost benefit adjustment method described in any one of the first to third embodiments.
Example six
The embodiment of the invention discloses a computer-readable storage medium storing a computer program for electronic data exchange, wherein the computer program causes a computer to execute the steps in the public transportation cost preference adjustment method described in any one of the first to third embodiments.
Example seven
An embodiment of the present invention discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute the steps of the public transportation cost benefit adjustment method described in any one of the first to third embodiments.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above detailed description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course by means of hardware. Based on such understanding, the foregoing technical solutions may be embodied essentially or in part in the form of a software product that may be stored in a computer-readable storage medium including Read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), programmable Read-Only Memory (Programmable Read-Only Memory, PROM), erasable programmable Read-Only Memory (Erasable Programmable Read On ly Memory, EPROM), one-time programmable Read-Only Memory (OTPROM), electrically erasable programmable Read-Only Memory (EEPROM), compact disc Read-Only Memory (Compact Disc Read-Only Memory, CD-ROM) or other optical disc Memory, magnetic disc Memory, tape Memory, or any other medium that can be used for computer-readable carrying or storing data.
Finally, it should be noted that: the public transportation expense preferential adjustment method and the background service equipment disclosed by the embodiment of the invention are only disclosed in the preferred embodiment of the invention, and are only used for illustrating the technical scheme of the invention, but are not limited to the technical scheme; although the invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that; the technical scheme recorded in the various embodiments can be modified or part of technical features in the technical scheme can be replaced equivalently; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions.

Claims (12)

1. A method for adjusting public transportation cost offers, the method comprising:
the background service equipment receives a current traffic transaction record for a passenger, which is sent by a terminal equipment, wherein the current traffic transaction record at least comprises an identity of the passenger and the current transaction time of the current traffic transaction record; the current traffic transaction record further comprises at least one of a transaction style and a current traffic route corresponding to the current traffic transaction record;
The background service equipment determines a target transaction information record table corresponding to the identity mark, and reads transaction information in the target transaction information record table, wherein the transaction information at least comprises the total number of current-month transactions of the passenger and the time to count threshold time corresponding to the current-month count threshold record; the transaction information also comprises the total current month discount amount of the passenger and the total current month discount times;
the background service equipment calculates the total number of target transactions, wherein the total number of target transactions is equal to the increase of 1 of the total number of current-month transactions;
the background service equipment updates the target transaction information record table according to the relation between the total target transaction times and preset threshold times, wherein the preset threshold times are trigger thresholds for enabling passengers to enjoy preferential offers in the same month;
the background service device updates the target transaction information record table according to the relation between the total number of target transactions and the preset threshold number of times, and the method comprises the following steps:
the background service equipment updates the total number of transactions in the month to the target total number of transactions;
when the total number of target transactions is equal to the preset threshold number, the background service equipment updates the time for reaching the counting threshold to the current transaction time;
When the total number of target transactions is greater than the preset threshold number, the background service equipment judges whether the current transaction time is later than the time for reaching the counting threshold;
when the current transaction time is judged to be later than the time threshold of reaching the time counting, the background service equipment calculates a first preferential amount corresponding to the current traffic transaction record, increases the first preferential amount to the current month total preferential amount to update the current month total preferential amount, and increases the current month total preferential number by 1 to update the current month total preferential number;
and, the method further comprises:
when the target transaction total number is greater than the preset threshold number and when the current transaction time is judged to be earlier than the arrival counting threshold time, the background service equipment determines the current month counting threshold record as a target preferential adjustment record, calculates a second preferential amount corresponding to the target preferential adjustment record, increases the second preferential amount into the current month total preferential amount to update the current month total preferential amount, increases the current month total preferential number by 1 to update the current month total preferential number, and updates the arrival counting threshold time to the current transaction time.
2. The method for adjusting public transportation cost preference according to claim 1, wherein after the background service device receives a current transportation transaction record for a passenger sent by a terminal device and before the background service device determines a target transaction information record table corresponding to the identity, the method further comprises:
the background service equipment judges whether a target riding transaction information record table corresponding to the identity mark exists or not;
when judging that the target transaction information record table corresponding to the identity exists, triggering and executing the operation of determining the target transaction information record table corresponding to the identity by the background service equipment;
and, the method further comprises:
when judging that the target transaction information record table corresponding to the identity is not existed, the background service equipment creates the transaction information record table corresponding to the identity as the target transaction information record table.
3. The public transportation expense preference adjustment method according to claim 2, characterized in that the method further comprises:
the background service equipment adds the target discount adjustment record and the second discount amount to a discount record adjustment table which is created in advance, wherein the discount record adjustment table comprises all discount adjustment records of the discount amount required to be adjusted by the passengers in the current month and discount amounts corresponding to the discount adjustment records.
4. A public transportation cost preference adjustment method according to claim 3, characterized in that the method further comprises:
the background service equipment judges whether the current time reaches the sending time or not;
and when the current time reaches the sending time, the background service equipment sends the target transaction information record table and/or the preferential record adjustment table to the client of the passenger.
5. The method according to any one of claims 1 to 4, wherein after the background service device receives a current traffic transaction record for a passenger transmitted by a terminal device and before the background service device determines a target transaction information record table corresponding to the identity, the method further comprises:
the background service equipment determines the triggering type of the current traffic transaction record;
when the trigger type of the current traffic transaction record is determined to be a single trigger type, the background service equipment executes the operation of determining a target transaction information record table corresponding to the identity;
when the triggering type of the current traffic transaction record is determined to be a double triggering type, the background service equipment judges whether the current traffic transaction record is a complete transaction record or not, wherein the complete transaction record comprises a starting record and a terminating record;
When the current traffic transaction record is judged to be the complete transaction record, the background service equipment triggers and executes the operation of determining a target transaction information record table corresponding to the identity;
the method further comprises the steps of:
and when judging that the current traffic transaction record is not the complete transaction record, the background service equipment sends a complement indication to a client corresponding to the passenger, so that the passenger fills the missing target information according to the complement indication, updates the current traffic transaction record according to the target information filled by the passenger, and triggers the operation of determining the target transaction information record table corresponding to the identity.
6. A background service device, the background service device comprising:
the receiving module is used for receiving a current traffic transaction record for a passenger, which is sent by the terminal equipment, wherein the current traffic transaction record at least comprises an identity of the passenger and the current transaction time of the current traffic transaction record; the current traffic transaction record further comprises at least one of a transaction style and a current traffic route corresponding to the current traffic transaction record;
The first determining module is used for determining a target transaction information record table corresponding to the identity;
the reading module is used for reading the transaction information in the target transaction information record table, and the transaction information at least comprises the total number of the current month transactions of the passengers and the time to reach the counting threshold corresponding to the current month counting threshold record; the transaction information also comprises the total current month discount amount of the passenger and the total current month discount times;
the calculating module is used for calculating the total number of target transactions, wherein the total number of target transactions is equal to the increase of 1 of the total number of current-month transactions;
the first updating module is used for updating the target transaction information record table according to the relation between the total number of target transactions and the preset threshold number, wherein the preset threshold number is a trigger threshold value for enabling passengers to enjoy preferential benefits in the same month;
and the first updating module comprises a first updating sub-module, a second updating sub-module, a judging sub-module and a third updating sub-module, wherein:
the first updating sub-module is used for updating the total number of transactions in the month to the target total number of transactions;
the second updating sub-module is configured to update the time to reach the counted threshold time to the current transaction time when the total number of target transactions is equal to the preset threshold number;
The judging sub-module is used for judging whether the current transaction time is later than the time for reaching the counting threshold time or not when the total number of target transactions is larger than the preset threshold number;
the third updating sub-module is configured to calculate a first offer amount corresponding to the current traffic transaction record when the judging sub-module judges that the current transaction time is later than the arrival counting threshold time, increase the first offer amount to the current month total offer amount to update the current month total offer amount, and increase the current month total offer number by 1 to update the current month total offer number;
and, the first update module further comprises a fourth update sub-module, wherein:
the fourth updating sub-module is configured to determine the current transaction time as a target preference adjustment record when the target transaction total number is greater than the preset threshold number and the judging sub-module judges that the current transaction time is earlier than the arrival time threshold time, calculate a second preference amount corresponding to the target preference adjustment record, increase the second preference amount to the current month total preference amount to update the current month total preference amount, increase the current month total preference number by 1 to update the current month total preference number, and update the arrival time threshold time to the current transaction time.
7. The background service device of claim 6, further comprising a first determination module, wherein:
the first judging module is used for judging whether a target riding transaction information record table corresponding to the identity mark exists or not;
the first determining module is specifically configured to:
when the first judging module judges that the target transaction information record table corresponding to the identity exists, determining the target transaction information record table corresponding to the identity;
and, the background service device further comprises a creation module, wherein:
the creating module is configured to create, when the first judging module judges that the target transaction information record table corresponding to the identity does not exist, a transaction information record table corresponding to the identity as the target transaction information record table.
8. The background service device of claim 6, further comprising an add-on module, wherein:
the adding module is configured to add the target offer adjustment record and the second offer amount to a pre-created offer record adjustment table, where the offer record adjustment table includes all offer adjustment records in which the passenger needs to adjust the offer amount in the current month and the offer amount corresponding to each of the offer adjustment records.
9. The background service device of claim 8, further comprising a second determination module and a first sending module, wherein:
the second judging module is used for judging whether the current time reaches the sending time or not;
and the first sending module is used for sending the target transaction information record list and/or the preferential record adjustment list to the client of the passenger when the second judging module judges that the current time reaches the sending time.
10. The background service device according to any of claims 6-9, further comprising a second determination module and a third determination module, wherein:
the second determining module is configured to determine a trigger type of the current traffic transaction record after the receiving module receives the current traffic transaction record for the passenger sent by the terminal device and before the first determining module determines a target transaction information record table corresponding to the identity;
the first determining module is further configured to determine a target transaction information record table corresponding to the identity when the second determining module determines that the trigger type of the current traffic transaction record is a one-shot type;
The third judging module is configured to judge whether the current traffic transaction record is a complete transaction record when the second determining module determines that the trigger type of the current traffic transaction record is a double trigger type, where the complete transaction record includes a start record and a stop record;
the first determining module is further configured to determine a target transaction information record table corresponding to the identity when the second determining module determines that the trigger type of the current traffic transaction record is a double trigger type and the third judging module judges that the current traffic transaction record is the complete transaction record;
the background service device further comprises a second sending module, a second updating module and a third determining module, wherein:
the second sending module is configured to send a complement registration instruction to a client corresponding to the passenger when the third judging module judges that the current traffic transaction record is not the complete transaction record, so that the passenger fills the missing target information according to the complement registration instruction;
the second updating module is used for updating the current traffic transaction record according to the target information filled by the passenger;
And the third determining module is used for determining a target transaction information record table corresponding to the identity mark when the second updating module updates the current traffic transaction record according to the target information filled by the passenger.
11. A background service device, comprising:
a memory storing executable program code;
a processor coupled to the memory;
the processor invokes the executable program code stored in the memory to perform the public transportation cost offer adjustment method of any one of claims 1-5.
12. A computer readable storage medium storing computer instructions which, when invoked, are operable to perform the public transportation cost benefit adjustment method of any one of claims 1-5.
CN201811566580.5A 2018-12-19 2018-12-19 Public transportation cost preferential adjustment method and background service equipment Active CN109741092B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811566580.5A CN109741092B (en) 2018-12-19 2018-12-19 Public transportation cost preferential adjustment method and background service equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811566580.5A CN109741092B (en) 2018-12-19 2018-12-19 Public transportation cost preferential adjustment method and background service equipment

Publications (2)

Publication Number Publication Date
CN109741092A CN109741092A (en) 2019-05-10
CN109741092B true CN109741092B (en) 2024-03-08

Family

ID=66360832

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811566580.5A Active CN109741092B (en) 2018-12-19 2018-12-19 Public transportation cost preferential adjustment method and background service equipment

Country Status (1)

Country Link
CN (1) CN109741092B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112037416A (en) * 2020-09-04 2020-12-04 海南海岛聚讯科技有限公司 Bus payment method, system, bus charging equipment and storage medium
CN113159830A (en) * 2021-03-22 2021-07-23 广州宸祺出行科技有限公司 Directional coupon issuing method and device for passenger grouping
CN113221187B (en) * 2021-04-16 2022-09-30 宁波市民卡运营管理有限公司 Data processing method, charging device and system, computer equipment and storage medium
CN116957665A (en) * 2023-09-21 2023-10-27 深圳市深圳通有限公司 Travel information processing method, device, terminal equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050024149A (en) * 2003-09-05 2005-03-10 케이비 테크놀러지 (주) Adjustment method of discount fare
JP2007184003A (en) * 2007-04-02 2007-07-19 Fujitsu Ltd Transaction reservation reception method, transaction reservation reception system, transaction reservation reception device and recording medium
CN106204104A (en) * 2016-06-28 2016-12-07 天脉聚源(北京)传媒科技有限公司 The management method of a kind of preferential code and device
CN107093074A (en) * 2017-04-26 2017-08-25 广州地铁设计研究院有限公司 The ticket checking payment system and method for a kind of urban track traffic financial IC card
CN107392596A (en) * 2017-07-25 2017-11-24 杨宇 Method of payment and device
CN107622412A (en) * 2017-08-04 2018-01-23 尹作军 A kind of charging method and system based on consumption statistic
CN107833051A (en) * 2017-10-19 2018-03-23 中国银行股份有限公司 A kind of data statistical approach and system
CN108010137A (en) * 2017-12-07 2018-05-08 广州地铁设计研究院有限公司 A kind of urban track traffic system of real name carrier ticket-checking system and method
CN108460586A (en) * 2018-02-10 2018-08-28 深圳壹账通智能科技有限公司 A kind of amount of money preferential measure, device, terminal device and the storage medium of polymerization payment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050024149A (en) * 2003-09-05 2005-03-10 케이비 테크놀러지 (주) Adjustment method of discount fare
JP2007184003A (en) * 2007-04-02 2007-07-19 Fujitsu Ltd Transaction reservation reception method, transaction reservation reception system, transaction reservation reception device and recording medium
CN106204104A (en) * 2016-06-28 2016-12-07 天脉聚源(北京)传媒科技有限公司 The management method of a kind of preferential code and device
CN107093074A (en) * 2017-04-26 2017-08-25 广州地铁设计研究院有限公司 The ticket checking payment system and method for a kind of urban track traffic financial IC card
CN107392596A (en) * 2017-07-25 2017-11-24 杨宇 Method of payment and device
CN107622412A (en) * 2017-08-04 2018-01-23 尹作军 A kind of charging method and system based on consumption statistic
CN107833051A (en) * 2017-10-19 2018-03-23 中国银行股份有限公司 A kind of data statistical approach and system
CN108010137A (en) * 2017-12-07 2018-05-08 广州地铁设计研究院有限公司 A kind of urban track traffic system of real name carrier ticket-checking system and method
CN108460586A (en) * 2018-02-10 2018-08-28 深圳壹账通智能科技有限公司 A kind of amount of money preferential measure, device, terminal device and the storage medium of polymerization payment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
羊城通月刷15次后6折 学生卡直接享5折 广州公布公交地铁票价;南方都市报;《https://news.sina.com.cn/o/2009-12-17/053016785652s.shtml》;20091217;第1页 *

Also Published As

Publication number Publication date
CN109741092A (en) 2019-05-10

Similar Documents

Publication Publication Date Title
CN109741092B (en) Public transportation cost preferential adjustment method and background service equipment
CN106056403B (en) A kind of rail traffic expense of riding determines method and system
US20180261082A1 (en) Method and device for processing traffic road information
CN111104990B (en) Method, device, server and storage medium for determining traffic route
CN108257226B (en) Code scanning ticket checking method, system, device, computer equipment and storage medium
CN111292460A (en) Control method and device based on subway face brushing authentication
CN105427594B (en) A kind of public transport section volume of the flow of passengers acquisition methods and system based on two-way passenger flow of getting on the bus
US20150142481A1 (en) Apparatus and method for managing access to a resource
JP2008123270A (en) Apparatus, system and method for calculating return consideration
CN105894360A (en) Cheated order identification method, device and system
US20190279219A1 (en) Method and device for vehicle-borne payment
CN109886732A (en) A kind of charging method of public transport, storage medium and vehicle-mounted counting equipment
CN107808420A (en) The fast passing of road website, the method and its system of charge
CN112686417A (en) Subway large passenger flow prediction method and system and electronic equipment
CN112530028A (en) Ticket selling and checking processing method, system server and storage medium
CN113903090A (en) Block chain-based highway cost determination method and system
CN116029733B (en) Alliance scenic spot service management method and system
CN111341002A (en) Face brushing authentication method and device based on Bluetooth function
CN112860766B (en) Bus running number determination method and device
JP2010165307A (en) Point managing device
CN111353420B (en) Optimization method and device for priority face recognition database
CN111709831B (en) Method and device for analyzing blacklist
CN112783945A (en) Bus stop judgment method and device
JP2018097675A (en) Toll collection machine, toll collection method, and program
US20160133061A1 (en) Anomaly Detection For Road User Charging Systems

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant