Waybill data matching method and device, equipment and storage medium

By creating target activities and user accounts in express delivery services and using the monitoring service system to match the waybill data in real time, the problem of users being difficult to match the waybill data when placing orders through different channels is solved, matching efficiency and accuracy are improved, and automatic settlement is achieved.

CN120219019APending Publication Date: 2025-06-27SF TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311804258.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-25
Publication Date
2025-06-27

AI Technical Summary

Technical Problem

In express delivery services, it is difficult for users to match the waybill data when placing orders through different channels, resulting in the inability to enjoy corresponding preferential treatment, reducing user experience and potential losses.

Method used

By creating a target activity, setting activity rules and generating a target activity identification code, and then creating a user account. The monitoring service system receives waybill data from each channel in real time, determines the target user account corresponding to the waybill data, and matches the activity rules with the waybill data, calculates the target amount of the waybill data and updates the user account.

Benefits of technology

It improves the matching efficiency and accuracy of waybill data, avoids the problem of information out of synchronization between different channels, realizes automated settlement, and reduces the workload and error rate of repeated settlement and summary.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120219019A_ABST
    Figure CN120219019A_ABST
Patent Text Reader

Abstract

The invention discloses a waybill data matching method and device, equipment and a storage medium, and the method comprises the steps: setting an activity rule for a created target activity, and generating a corresponding target activity identification code; in response to an identification operation of the user on the target activity identification code, creating a user account for the user; sending the activity rule to a monitoring service system, so that the monitoring service system matches the activity rule with the waybill data after determining a target user account corresponding to the waybill data based on the waybill data of each channel received in real time, and calculates a target amount of the waybill data according to a matching result for updating the target user account; compared with the prior art, the technical scheme of the invention determines the target user account based on the waybill data of each channel, avoids the problem of information asynchronization between different channels, and improves the matching efficiency and accuracy of the waybill data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data matching processing, and in particular to a waybill data matching method, device, equipment and storage medium. Background Art

[0002] In traditional express delivery services, in order to promote and encourage users to place orders, express companies often provide discount coupons to users and give shipping discounts according to certain conditions reached by users.

[0003] However, there are currently many channels available for users to place orders, and the account information between different channels is not equal. When users place orders through different channels, it is difficult to match the corresponding monthly settlement card numbers for the waybill data of different channels, resulting in the inability to enjoy the corresponding preferential treatment through the monthly settlement card numbers, leading to a decline in user experience and potential losses to express companies. Summary of the Invention

[0004] The technical problem to be solved by the present invention is to provide a waybill data matching method, device, equipment and storage medium, which avoids the problem of information asynchronization between different channels and improves the matching efficiency and accuracy of waybill data.

[0005] To solve the above technical problem, the present invention provides a waybill data matching method, including: creating a target activity, setting activity rules for the target activity, and generating a target activity identification code corresponding to the target activity; in response to a user's recognition operation on the target activity identification code, creating a user account for the user; sending the activity rules to a monitoring service system, so that the monitoring service system, based on the waybill data received in real time from each channel, determines the target user account corresponding to the waybill data, then matches the activity rules with the waybill data, calculates the target amount of the waybill data according to the matching result, and updates the target user account based on the target amount.

[0006] In some embodiments, in response to a user's recognition operation on a target activity identification code, a user account is created for the user, including: in response to the user's recognition operation on the target activity identification code, obtaining the user's input mobile phone number, and based on the mobile phone number, determining whether there is a user's corresponding unique identity identifier; when it is determined that there is no user's corresponding unique identity identifier, generating a user's corresponding unique identity identifier based on a preset identifier generation algorithm, and associating the unique identity identifier with the mobile phone number; creating a user account for the user, and generating a user account identifier corresponding to the user account based on the preset identifier generation algorithm, and associating the user account identifier with the unique identity identifier; obtaining a target activity identifier corresponding to the target activity identification code, and associating the target activity identifier with the mobile phone number; using the unique identity identifier, the mobile phone number, the target activity identifier, and the user account identifier as the user account parameters of the user account.

[0007] In some embodiments, the monitoring service system determines a target user account based on the waybill data received in real time from each channel, including: the monitoring service system receives the waybill data from each channel in real time, and obtains the waybill mobile phone number in the waybill data, and compares the waybill mobile phone number with the mobile phone numbers of all user account parameters respectively. If there is a first mobile phone number that is the same as the waybill mobile phone number, the user account corresponding to the first mobile phone number is used as the target user account corresponding to the waybill data.

[0008] In some embodiments, before sending the activity rules to the monitoring service system, it further includes: detecting the activity state of the target activity in real time, and when it is detected that the activity state is an effective state, sending the activity rules to the monitoring service system.

[0009] In some embodiments, detecting the activity state of the target activity in real time includes: obtaining the activity rule effective time of the activity rules, and obtaining the current system time in real time, and comparing the current system time with the activity rule effective time. If the current system time is within the activity rule effective time, it is determined that the activity state of the target activity is an effective state, otherwise, it is determined that the activity state of the target activity is an invalid state.

[0010] In some embodiments, after sending the activity rules to the monitoring service system, it further includes: detecting the change state of the activity rules in real time. When the change state is that there is a change, obtaining the first activity rules and the first activity rule effective time corresponding to the first activity rules; if the current system time is within the first activity rule effective time, sending the first activity rules to the monitoring service system to update the activity rules received in the monitoring service system.

[0011] In some embodiments, the monitoring service system matches the activity rules with the waybill data, and further includes: the monitoring service system determines a target activity identifier corresponding to the target user account according to the target user account, determines a target activity rule based on the target activity identifier, obtains a rule expression corresponding to the target activity rule, and matches the waybill data based on the rule expression.

[0012] In some embodiments, the monitoring service system calculates the target amount of the waybill data according to the matching result, including: when the monitoring service system detects that the rule expression matches the waybill data, it obtains the amount calculation ratio set in the target activity rule and calculates the target amount of the waybill data based on the amount calculation ratio.

[0013] The present invention also provides a waybill data matching device, including: a target activity identification code generation module, a user account creation module, and a data matching module; wherein, the target activity identification code generation module is used to create a target activity, set an activity rule for the target activity, and generate a target activity identification code corresponding to the target activity; the user account creation module is used to create a user account for the user in response to the user's recognition operation on the target activity identification code; the data matching module is used to send the activity rule to the monitoring service system, so that after the monitoring service system determines the target user account corresponding to the waybill data based on the waybill data received in real time from each channel, it matches the activity rule with the waybill data, calculates the target amount of the waybill data according to the matching result, and updates the target user account based on the target amount.

[0014] In some embodiments, the user account creation module is used to create a user account for the user in response to the user's recognition operation on the target activity identification code, including: in response to the user's recognition operation on the target activity identification code, it obtains the user's input mobile phone number, and determines whether there is a user's unique identity identifier corresponding to the user based on the mobile phone number; when it is determined that there is no user's unique identity identifier corresponding to the user, it generates a user's unique identity identifier based on a preset identifier generation algorithm, and associates the user's unique identity identifier with the mobile phone number; creates a user account for the user, and generates a user account identifier corresponding to the user account based on a preset identifier generation algorithm, and associates the user account identifier with the user's unique identity identifier; obtains the target activity identifier corresponding to the target activity identification code, and associates the target activity identifier with the mobile phone number; uses the user's unique identity identifier, mobile phone number, target activity identifier, and user account identifier as the user account parameters of the user account.

[0015] In some embodiments, the monitoring service system in the data matching module determines a target user account based on the waybill data received in real time from each channel, including: the monitoring service system receives the waybill data from each channel in real time, obtains the waybill mobile phone number in the waybill data, compares the waybill mobile phone number with the user mobile phone numbers in all user account parameters respectively, and if there is a first user mobile phone number that is the same as the waybill mobile phone number, then uses the user account corresponding to the first user mobile phone number as the target user account corresponding to the waybill data.

[0016] In some embodiments, the data matching module, before sending the activity rule to the monitoring service system, is further configured to: detect the activity status of the target activity in real time, and when it detects that the activity status is an effective status, send the activity rule to the monitoring service system.

[0017] In some embodiments, the data matching module, for detecting the activity status of the target activity in real time, includes: obtaining the activity rule effective time of the activity rule, and obtaining the current system time in real time, comparing the current system time with the activity rule effective time, and if the current system time is within the activity rule effective time, determining that the activity status of the target activity is an effective status, otherwise, determining that the activity status of the target activity is an invalid status.

[0018] In some embodiments, after the data matching module sends the activity rule to the monitoring service system, it further includes: detecting the change status of the activity rule in real time, and when the change status is that there is a change, obtaining the first activity rule and the first activity rule effective time corresponding to the first activity rule; if the current system time is within the first activity rule effective time, then send the first activity rule to the monitoring service system to update the activity rule received in the monitoring service system.

[0019] In some embodiments, when the monitoring service system in the data matching module matches the activity rule with the waybill data, it further includes: the monitoring service system determines the target activity identifier corresponding to the target user account according to the target user account, determines the target activity rule based on the target activity identifier, obtains the rule expression corresponding to the target activity rule, and matches the waybill data based on the rule expression.

[0020] In some embodiments, the monitoring service system in the data matching module calculates the target amount of the waybill data according to the matching result, including: when the monitoring service system detects that the rule expression matches the waybill data, obtaining the amount calculation ratio set in the target activity rule, and calculating the target amount of the waybill data based on the amount calculation ratio.

[0021] The present invention also provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, the waybill data matching method as described in any one of the above is implemented.

[0022] The present invention also provides a computer-readable storage medium, which includes a stored computer program. When the computer program runs, it controls the device where the computer-readable storage medium is located to execute the waybill data matching method as described in any one of the above.

[0023] Compared with the prior art, a waybill data matching method, device, equipment, and storage medium according to an embodiment of the present invention have the following beneficial effects:

[0024] By setting activity rules for the created target activity and generating a target activity identification code, users only need to identify the target activity identification code to participate in the activity in the future, and corresponding user accounts can be created for users, which can simplify the process for users to participate in the activity, improve user participation and activity effects; the monitoring service system receives waybill data from each channel in real time, determines the target user account based on the waybill data, can avoid the problem of information asynchronization between different channels, and finally calculates the target amount of the waybill data according to the matching result of the line waybill data and the activity rules, and updates the target user account based on the target amount, and can also automatically complete the settlement, reducing the workload and error rate of repeated settlement and summary. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 is a schematic flowchart of an embodiment of a waybill data matching method provided by the present invention;

[0026] Figure 2 is a schematic diagram of activity rule setting of an embodiment provided by the present invention;

[0027] Figure 3 is a schematic diagram of a target activity list of an embodiment provided by the present invention;

[0028] Figure 4 is a schematic diagram of a target activity display interface of an embodiment provided by the present invention;

[0029] Figure 5 is a schematic diagram of a target activity interface of an embodiment provided by the present invention;

[0030] Figure 6 is a schematic diagram of an account amount interface of a target user account of an embodiment provided by the present invention;

[0031] Figure 7 is another structural schematic diagram of a waybill data matching method provided by the present invention;

[0032] Figure 8 It is a schematic structural diagram of an embodiment of a waybill data matching device provided by the present invention;

[0033] Figure 9 It is a schematic structural diagram of a terminal device provided by the present invention. Detailed implementation manners

[0034] In the express delivery field, in order to encourage users to place orders, discount coupons are usually issued to the senders, and senders can enjoy shipping discounts after meeting corresponding conditions. However, in the case of collect-on-delivery, although the sender decides on the choice of logistics products, the sender does not need to pay the shipping fee, resulting in the inability to achieve the purpose of motivating users to place orders through conventional methods such as issuing discount coupons. Moreover, there are currently many channels available for users to place orders. The issuance of discount coupons is generally affected by their usage. When placing orders through different channels, the received discount rates vary, and there is also an information incompatibility situation among various channels.

[0035] To solve the above problems, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without making creative efforts belong to the scope of protection of the present invention.

[0036] Embodiment 1, refer to Figure 1 , Figure 1 It is a schematic flowchart of an embodiment of a waybill data matching method provided by the present invention. As Figure 1 shown, the method includes steps 101 to 104, which are specifically as follows:

[0037] Step 101: Create a target activity, set activity rules for the target activity, and generate a target activity identification code corresponding to the target activity.

[0038] In one embodiment, in response to the target activity creation operation of the operation personnel on the professional operation management platform, a target activity is created, and the activity rules input by the operation personnel on the professional operation management platform are obtained, and the corresponding activity rules are set for the target activity.

[0039] In one embodiment, for the activity rules, by obtaining a preset activity rule pre-generation template, the activity rules are set based on the activity rule pre-generation template; enabling the operation personnel to perform personalized adjustment on the activity rule pre-generation template based on the target activity requirements can realize the configuration of the activity rules, avoiding the cumbersome code development and deployment processes, reducing the amount of code development, and enhancing the dynamic expansion ability.

[0040] Preferably, the number of activity rules can be one or more; each activity rule includes but is not limited to product type, value-added service, payment method, shipping outlet, billing weight, and rebate model; as Figure 2 shown, Figure 2 is a schematic diagram of activity rule setting.

[0041] In one embodiment, a corresponding activity rule effective time is set for each activity rule.

[0042] In one embodiment, after the creation of the target rule is completed, a target activity identification code corresponding to the target activity is also generated based on the identification code generation tool; by publishing the generated target activity identification code to the target channel, such as embedding the target activity identification code in offline store posters or advertisements, or embedding the target activity identification code in online activity pages, etc.; to facilitate participating in the activity by identifying the target activity identification code.

[0043] Preferably, the target activity identification code can be set in forms that can be scanned and recognized by mobile terminals, such as two-dimensional codes, barcodes, etc.

[0044] Taking the target activity as a rebate activity as an example, the creation process of the target activity is illustrated by way of example, as Figure 3 shown, Figure 3 is a schematic diagram of the target activity list, as Figure 4 shown, Figure 4 is a schematic diagram of the target activity display interface. The operation personnel enter the background of the professional operation management platform, click to add a rebate activity on the interface of the professional operation management platform. At this time, the professional operation management platform will respond to the target activity creation operation of the operation personnel on the professional operation management platform, create a rebate activity. At the same time, the professional operation management platform will also respond to the rebate activity rules input by the operation personnel based on the pre-generated template of the activity rules, set the corresponding rebate activity rules for the rebate activity, update the newly added rebate activity to the rebate activity list, and based on the rebate activity list, all currently set rebate activities can be viewed in real time. By clicking on any rebate activity in the rebate activity list, the interface display of the rebate activity can be realized. Among them, the interface of the rebate activity includes the order placement channel, photo-taking requirements, user reviewer, activity rule effective time, and specific activity rule content, etc.

[0045] Step 102: Respond to the user's recognition operation of the target activity identification code, and create a user account for the user.

[0046] In one embodiment, the user identifies the target activity identification code through the user terminal, jumps to the target activity interface, enters user data to participate in the target activity on the target activity interface, and after successfully participating in the target activity, a corresponding user account will be generated in the account service; as Figure 5 shown, Figure 5It is a schematic diagram of the target activity interface, and user data includes but is not limited to user mobile phone numbers, ID card numbers, etc.

[0047] In one embodiment, in response to the user's scanning operation on the target activity identification code, the user's input mobile phone number is obtained, and based on the user's mobile phone number, it is determined whether there is a user's unique identity identifier corresponding to the user.

[0048] Specifically, the user's unique identity identifier is the unique user ID.

[0049] Specifically, all existing user accounts and their corresponding existing user account parameters are obtained. Among them, the existing user accounts are the user accounts that have been created and stored in the account service, and the existing user account parameters include the existing user mobile phone numbers; the obtained user mobile phone number is compared with all the existing user mobile phone numbers in the existing user account parameters. If there is an existing user mobile phone number that is the same as the user mobile phone number, it is determined that there is a user's unique identity identifier corresponding to the user, otherwise, it is determined that there is no user's unique identity identifier corresponding to the user.

[0050] In one embodiment, when it is determined that there is no user's unique identity identifier corresponding to the user, based on a preset identifier generation algorithm, a user's unique identity identifier corresponding to the user is generated, and the user's unique identity identifier is associated with the user's mobile phone number.

[0051] Specifically, the preset identifier generation algorithm is the Snowflake algorithm; the Snowflake algorithm is a distributed unique ID generation algorithm that can generate globally unique and incrementing IDs.

[0052] Specifically, by establishing a mapping relationship between the user's unique identity identifier and the user's mobile phone number, the user's unique identity identifier and the user's mobile phone number are associated, so that each user's unique identity identifier will correspond to a user's mobile phone number.

[0053] In one embodiment, a user account is created for the user, and based on a preset identifier generation algorithm, a user account identifier corresponding to the user account is generated, and the user account identifier is associated with the user's unique identity identifier.

[0054] Specifically, the user account identifier corresponding to the user account is generated based on the Snowflake algorithm, where the user account identifier is the account ID.

[0055] Specifically, by establishing a mapping relationship between the user's unique identity identifier and the user account identifier, the user's unique identity identifier and the user account identifier are associated, so that each user's unique identity identifier will correspond to a user account identifier.

[0056] In one embodiment, the target activity identifier corresponding to the target activity identification code is obtained, and the target activity identifier is associated with the user's mobile phone number.

[0057] Specifically, the target activity identifier is the target activity ID.

[0058] Specifically, a mapping relationship is also established between the user's mobile phone number and the target activity identifier, so as to associate the user's mobile phone number with the target activity identifier, so that each user's mobile phone number corresponds to a target activity identifier.

[0059] In one embodiment, the user's unique identity identifier, the user's mobile phone number, the target activity identifier, and the user account identifier are used as the user account parameters of the user account.

[0060] Step 103: Send the activity rule to the monitoring service system, so that after the monitoring service system determines the target user account corresponding to the waybill data based on the waybill data received in real time from each channel, match the activity rule with the waybill data, calculate the target amount of the waybill data according to the matching result, and update the target user account based on the target amount.

[0061] In one embodiment, since when setting the target activity rule of the target activity, a target activity rule effective time is also set for the target activity rule, therefore, the activity state of the target activity can also be detected in real time based on the target activity rule effective time.

[0062] In one embodiment, obtain the activity rule effective time of the activity rule, and obtain the current system time in real time. Compare the current system time with the activity rule effective time. If the current system time is within the activity rule effective time, determine that the activity state of the target activity is the valid state; otherwise, determine that the activity state of the target activity is the invalid state.

[0063] In one embodiment, when it is detected that the activity state is the valid state, send the activity rule within the activity rule effective time to the monitoring service system.

[0064] In one embodiment, when there are multiple activity rules, obtain the activity rule effective time corresponding to each activity rule, and compare the current system time with each activity rule effective time respectively. If there is a current system time that falls within any activity rule effective time, determine that the activity state of the target activity is the valid state; otherwise, determine that the activity state of the target activity is the invalid state; and when it is detected that the activity state is the valid state, obtain all the activity rules within the activity rule effective time, and send all the activity rules within the activity rule effective time to the monitoring service system.

[0065] In one embodiment, after sending the activity rules to the monitoring service system, it further includes: detecting the change status of the activity rules in real time. When the change status indicates that there is a change, obtaining the first activity rule and the corresponding effective time of the first activity rule. If the current system time is within the effective time of the first activity rule, sending the first activity rule to the monitoring service system to update the activity rules received in the monitoring service system.

[0066] Specifically, the first activity rule can be a newly added activity rule or a new activity rule generated after modifying the activity rule. The effective time of the first activity rule is the effective time of the activity rule corresponding to the first activity rule.

[0067] Specifically, by detecting the change status of the activity rules and sending the changed first activity rule to the monitoring service system based on the effective time of the activity rule after the activity rule is changed, the monitoring service system can respond to the change of the activity rules in a timely manner, avoid modifying the monitoring service system, and reduce the system operation and maintenance cost.

[0068] In one embodiment, when sending the activity rules to the monitoring service system, the effective activity rules are sent to the monitoring service system in the form of message distribution.

[0069] In one embodiment, since there are many channels for users to participate in activities, when users place orders through each channel, the waybill data corresponding to the users of each channel will be collected and sent to the Kafka message queue. Among them, Kafka is a distributed message queue system used to reliably store and transmit large-scale data streams. It focuses on high throughput, persistence, and reliability and is used to build real-time data stream platforms and data pipelines, enabling centralized management of the waybill data of each channel and providing it to other systems or services for further processing and analysis.

[0070] Specifically, the waybill data includes the sender's mobile phone number, waybill number, value-added service, and waybill amount.

[0071] In one embodiment, the monitoring service system receives the waybill data of each channel in real time based on the Kafka message queue and consumes the waybill data in the Kafka message queue in real time based on the Flink task. Among them, Flink is a distributed computing engine that can be used for batch processing, that is, processing static data sets and historical data sets; it can also be used for stream processing, that is, real-time processing of some real-time data streams and real-time generation of data results; it can also be used for some event-based applications, such as using Flink CEP to realize real-time monitoring of the user's behavior stream to judge whether the user's behavior is legitimate, etc.

[0072] In one embodiment, after receiving the waybill data, the monitoring service system also performs duplicate removal processing on all the received waybill data based on the waybill number in the waybill data to ensure the accuracy of the waybill data.

[0073] Specifically, obtain the waybill number corresponding to each waybill data, determine whether there are waybill numbers with the same number, and if so, delete the duplicate waybill numbers to achieve duplicate removal processing of the waybill data.

[0074] In one embodiment, since the waybill data contains the sender's mobile phone number, after the rebate monitoring service receives the waybill data, it queries the corresponding activity information and account information based on the sender's mobile phone number in the waybill data. Since after the user scans the target activity identification code to participate in the target activity, the user's mobile phone number and the user account identifier will be associated based on the generated user unique identity identifier, the corresponding target user account can be found through the sender's mobile phone number.

[0075] In one embodiment, when the monitoring service system determines the target user account based on the waybill data received in real time from each channel, by receiving the waybill data from each channel in real time and obtaining the waybill mobile phone number in the waybill data, compare the waybill mobile phone number with the user mobile phone numbers in all user account parameters respectively. If there is a first user mobile phone number that is the same as the waybill mobile phone number, then use the user account corresponding to the first user mobile phone number as the target user account corresponding to the waybill data.

[0076] Specifically, the waybill mobile phone number is the sender's mobile phone number; the first user mobile phone number is the user mobile phone number that is the same as the waybill mobile phone number; the target user account is the user account whose waybill mobile phone number in the waybill data is the same as the user mobile phone number corresponding to the user account.

[0077] In one embodiment, determining the target user account corresponding to the waybill data based on the sender's mobile phone number can enable the sender to enjoy the corresponding rebate benefits based on the target user account even in the case of express collect, which can achieve the purpose of motivating users to place orders; and the monitoring service system receives the waybill data from each channel and associates the waybill data with the target user account based on the sender's mobile phone number, which also avoids the situation of information incompatibility between each channel.

[0078] In one embodiment, when it is detected that the activity status is valid, the mapping relationship between the user mobile phone number and the target activity identifier is also sent to the monitoring service system, so that the monitoring service system, based on the mapping relationship between the user mobile phone number and the target activity identifier, after determining the target user account, further determines the target activity identifier corresponding to the target user account according to the target activity identifier corresponding to the target user account, and determines the corresponding target activity and its target activity rules based on the target activity identifier.

[0079] In one embodiment, a rule expression corresponding to a target activity rule is obtained, and the waybill data is matched based on the rule expression.

[0080] Specifically, the target activity rule is regarded as a set of a series of rule expressions. Each rule expression is used to describe specific conditions or requirements. The commission monitoring service obtains the rule expressions corresponding to the target activity rule and matches the waybill data based on these rule expressions. Preferably, the rule expression is set as an Aviator rule expression. Aviator is a high-performance and lightweight expression evaluation engine implemented in the Java language, mainly used for dynamic evaluation of various expressions.

[0081] Specifically, by matching the waybill data with the rule expression, it can be determined whether the current waybill data meets the conditions of the rule. If the waybill data meets the conditions of the rule expression, then they are considered to be matched, and corresponding subsequent processing is performed, such as performing operations such as rebate calculation. On the contrary, if the waybill data does not meet the conditions of the rule expression, then they are considered to be unmatched and no subsequent processing is performed.

[0082] In one embodiment, the monitoring service system calculates the target amount of the waybill data according to the matching result, including: when the monitoring service system detects that the rule expression matches the waybill data, it obtains the amount calculation ratio set in the target activity rule and calculates the target amount of the waybill data based on the amount calculation ratio.

[0083] Illustrative example, if the target activity rule is that the waybill amount is greater than 2 yuan and the fixed rebate is 2%, then the corresponding aviator rule expression is: waybillAmount > 2. If the waybill amount waybillAmount value in the waybill data is greater than 2, the match is successful, and the rebate of waybillAmount * 2% is calculated as the target amount corresponding to the current waybill data.

[0084] In one embodiment, after obtaining the target amount of the waybill data, the target amount is also recharged into the account amount of the target user account for the user to withdraw cash.

[0085] Specifically, the user can see all the participated activities in the account, as well as the waybill data that meets the activity rules and the corresponding target amounts, as shown in 6. Figure 6 It is a schematic diagram of the account amount interface of the target user account.

[0086] Such as Figure 7 shown Figure 7 It is another structural schematic diagram of a waybill data matching method provided by the present invention; Figure 7In this case, taking the target activity as the commission rebate activity as an example, a commission rebate activity is created through the commission rebate activity background, and an activity QR code is generated. When a user participates in the commission rebate activity, the user scans the activity QR code on the client side, so as to generate a corresponding user account for the user in the account service. At the same time, the commission rebate activity background also constantly detects whether the commission rebate activity is valid. When the commission rebate activity takes effect, the target activity rules corresponding to the effective commission rebate activity are sent to the commission rebate monitoring service, so that the commission rebate monitoring service can receive the target activity rules in real time. When the user places an order on the client side, based on the waybill system, the waybill information is sent to the Kafka message queue, and further the waybill information is sent to the commission rebate monitoring service, so that the commission rebate monitoring service can receive the waybill information from each channel, determine whether the waybill information matches the target activity rules. If so, calculate the amount of the waybill information based on the target activity rules, and recharge the amount to the account amount corresponding to the target user account in the account service for the user to withdraw cash.

[0087] Embodiment 2, see Figure 8 , Figure 8 is a schematic structural diagram of an embodiment of a waybill data matching device provided by the present invention, as Figure 8 shown, the device includes a target activity identification code generation module 801, a user account creation module 802 and a data matching module 803, specifically as follows:

[0088] The target activity identification code generation module 801 is used to create a target activity, set activity rules for the target activity, and generate a target activity identification code corresponding to the target activity.

[0089] The user account creation module 802 is used to create a user account for the user in response to the user's recognition operation of the target activity identification code.

[0090] The data matching module 803 is used to send the activity rules to the monitoring service system, so that after the monitoring service system determines the target user account corresponding to the waybill data based on the waybill data received in real time from each channel, match the activity rules with the waybill data, calculate the target amount of the waybill data according to the matching result, and update the target user account based on the target amount.

[0091] In one embodiment, the user account creation module 802 is configured to create a user account for the user in response to the user's scanning operation on the target activity identification code, including: in response to the user's scanning operation on the target activity identification code, obtaining the user's mobile phone number input by the user, and based on the user's mobile phone number, determining whether there is a unique user identification corresponding to the user; when it is determined that there is no unique user identification corresponding to the user, generating the unique user identification corresponding to the user based on a preset identification generation algorithm, and associating the unique user identification with the user's mobile phone number; creating a user account for the user, and generating a user account identification corresponding to the user account based on a preset identification generation algorithm, and associating the user account identification with the unique user identification; obtaining the target activity identification corresponding to the target activity identification code, and associating the target activity identification with the user's mobile phone number; using the unique user identification, the user's mobile phone number, the target activity identification, and the user account identification as the user account parameters of the user account.

[0092] In one embodiment, the monitoring service system in the data matching module 803 determines a target user account based on the waybill data received in real time from various channels, including: the monitoring service system receives the waybill data from various channels in real time, and obtains the waybill mobile phone number in the waybill data, and compares the waybill mobile phone number with the user's mobile phone number in all user account parameters respectively. If there is a first user's mobile phone number that is the same as the waybill mobile phone number, the user account corresponding to the first user's mobile phone number is used as the target user account corresponding to the waybill data.

[0093] In one embodiment, before sending the activity rule to the monitoring service system, the data matching module 803 is further configured to: detect the activity state of the target activity in real time, and when it is detected that the activity state is an effective state, send the activity rule to the monitoring service system.

[0094] In one embodiment, the data matching module 803 is configured to detect the activity state of the target activity in real time, including: obtaining the activity rule effective time of the activity rule, and obtaining the current system time in real time, and comparing the current system time with the activity rule effective time. If the current system time is within the activity rule effective time, it is determined that the activity state of the target activity is an effective state, otherwise, it is determined that the activity state of the target activity is an invalid state.

[0095] In one embodiment, after the data matching module 803 sends the activity rule to the monitoring service system, it further includes: real-time detecting the change status of the activity rule, when the change status indicates that there is a change, obtaining the first activity rule and the corresponding effective time of the first activity rule; if the current system time is within the effective time of the first activity rule, sending the first activity rule to the monitoring service system to update the activity rule received in the monitoring service system.

[0096] In one embodiment, when the monitoring service system in the data matching module 803 matches the activity rule with the waybill data, it further includes: the monitoring service system determines the target activity identifier corresponding to the target user account according to the target user account, and determines the target activity rule based on the target activity identifier, obtains the rule expression corresponding to the target activity rule, and performs matching on the waybill data based on the rule expression.

[0097] In one embodiment, when the monitoring service system in the data matching module 803 calculates the target amount of the waybill data according to the matching result, it includes: when the monitoring service system detects that the rule expression matches the waybill data, obtaining the amount calculation ratio set in the target activity rule, and calculating the target amount of the waybill data based on the amount calculation ratio.

[0098] The above waybill data matching device can implement the waybill data matching method in the above method embodiment. The optional items in the above method embodiment are also applicable to this embodiment, and will not be elaborated here.

[0099] Figure 9 It is a schematic structural diagram of a terminal device. As Figure 9 shown, the terminal device 9 in this embodiment includes: at least one processor 901 ( Figure 9 only one is shown in the figure), a processor, a memory 902, and a computer program 903 stored in the memory 902 and executable on at least one processor 901. When the processor 901 executes the computer program 903, it implements the steps in any of the above method embodiments.

[0100] The terminal device 9 can be a computing device such as a smart phone, a laptop computer, a tablet computer, and a desktop computer. The terminal device may include but is not limited to the processor 901 and the memory 902. Those skilled in the art can understand that Figure 9 this is only an example of the terminal device 9, and does not constitute a limitation on the terminal device 9. It may include more or fewer components than shown in the figure, or combine some components, or different components. For example, it may further include input / output devices, network access devices, etc.

[0101] The so-called processor 901 may be a Central Processing Unit (CPU), and the processor 901 may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate Arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0102] In some embodiments, the memory 902 may be an internal storage unit of the terminal device 9, such as the hard disk or memory of the terminal device 9. In other embodiments, the memory 902 may also be an external storage device of the terminal device 9, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a Flash Card, etc., equipped on the terminal device 9. Further, the memory 902 may also include both the internal storage unit and the external storage device of the terminal device 9. The memory 902 is used to store an operating system, application programs, a BootLoader, data, and other programs, such as program codes of computer programs. The memory 902 may also be used to temporarily store data that has been output or is to be output.

[0103] In addition, an embodiment of the present application further provides a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0104] An embodiment of the present application provides a computer program product, and when the computer program product runs on a terminal device, the terminal device is caused to implement the steps in each of the above method embodiments when executed.

[0105] In several embodiments provided in the present application, it can be understood that each block in the flowchart or block diagram may represent a module, a program segment, or a part of code, and the module, the program segment, or the part of code includes one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order from that marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved.

[0106] If a function is implemented in the form of a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to enable a terminal device to execute all or part of the steps of the methods in various embodiments of this application. The aforementioned storage medium includes: various media such as USB flash drives, external hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical discs that can store program codes.

[0107] In summary, a waybill data matching method, device, equipment, and storage medium provided by the present invention set activity rules for a created target activity and generate a corresponding target activity identification code; in response to a user's scanning operation on the target activity identification code, create a user account for the user; send the activity rules to a monitoring service system so that the monitoring service system, based on the waybill data received in real time from each channel, determines the target user account corresponding to the waybill data, then matches the activity rules with the waybill data, and calculates the target amount of the waybill data according to the matching result for updating the target user account; compared with the prior art, the technical solution of the present invention determines the target user account based on the waybill data from each channel, avoiding the problem of information asynchronization between different channels and improving the subsequent matching efficiency and accuracy of the waybill data.

[0108] The above are only the preferred embodiments of the present invention. It should be noted that for those of ordinary skill in the art, without departing from the technical principle of the present invention, several improvements and substitutions can be made, and these improvements and substitutions should also be regarded as the protection scope of the present invention.

Claims

1. A waybill data matching method, characterized in that, Including: Create a target activity, set activity rules for the target activity, and generate a target activity identification code corresponding to the target activity; In response to a user's recognition operation on the target activity identification code, create a user account for the user; Send the activity rules to the monitoring service system, so that after the monitoring service system determines the target user account corresponding to the waybill data based on the waybill data received in real time from each channel, match the activity rules with the waybill data, calculate the target amount of the waybill data according to the matching result, and update the target user account based on the target amount.

2. The way of waybill data matching according to claim 1, characterized in that The creating a user account for the user in response to a user's recognition operation on the target activity identification code includes: In response to a user's recognition operation on the target activity identification code, obtain the user's input user mobile phone number, and based on the user mobile phone number, determine whether there is a user unique identity identifier corresponding to the user; When it is determined that there is no user unique identity identifier corresponding to the user, generate the user unique identity identifier corresponding to the user based on a preset identifier generation algorithm, and associate the user unique identity identifier with the user mobile phone number; Create a user account for the user, and generate a user account identifier corresponding to the user account based on a preset identifier generation algorithm, and associate the user account identifier with the user unique identity identifier; Obtain the target activity identifier corresponding to the target activity identification code, and associate the target activity identifier with the user mobile phone number; Use the user unique identity identifier, the user mobile phone number, the target activity identifier, and the user account identifier as the user account parameters of the user account.

3. The way of matching waybill data according to claim 2, characterized in that The monitoring service system determining the target user account based on the waybill data received in real time from each channel includes: The monitoring service system receives the waybill data from each channel in real time, and obtains the waybill mobile phone number in the waybill data, and compares the waybill mobile phone number with the user mobile phone numbers in all user account parameters respectively. If there is a first user mobile phone number that is the same as the waybill mobile phone number, then use the user account corresponding to the first user mobile phone number as the target user account corresponding to the waybill data.

4. The way of matching waybill data according to claim 1, characterized in that Before sending the activity rules to the monitoring service system, it further includes: Real-time detect the activity state of the target activity, and when it is detected that the activity state is an effective state, send the activity rules to the monitoring service system; Among them, the real-time detecting the activity state of the target activity includes: Obtain the activity rule effective time of the activity rules, and obtain the current system time in real time, and compare the current system time with the activity rule effective time. If the current system time is within the activity rule effective time, then determine that the activity state of the target activity is an effective state, otherwise, determine that the activity state of the target activity is an invalid state.

5. The way of matching waybill data according to claim 4, characterized in that After sending the activity rules to the monitoring service system, it further includes: Real-time detect the change status of the activity rule. When the change status indicates that there is a change, obtain the first activity rule and the corresponding effective time of the first activity rule. If the current system time is within the effective time of the first activity rule, send the first activity rule to the monitoring service system to update the activity rule received in the monitoring service system.

6. The way of matching waybill data according to claim 1, characterized in that Match the activity rule with the waybill data, including: The monitoring service system determines the target activity identifier corresponding to the target user account according to the target user account, determines the target activity rule based on the target activity identifier, obtains the rule expression corresponding to the target activity rule, and matches the waybill data based on the rule expression.

7. The way of matching waybill data according to claim 6, characterized in that The monitoring service system calculates the target amount of the waybill data according to the matching result, including: When the monitoring service system detects that the rule expression matches the waybill data, it obtains the amount calculation ratio set in the target activity rule and calculates the target amount of the waybill data based on the amount calculation ratio.

8. A waybill data matching device, characterized in that, Include: A target activity identification code generation module, a user account creation module, and a data matching module; Among them, the target activity identification code generation module is used to create a target activity, set an activity rule for the target activity, and generate a target activity identification code corresponding to the target activity; The user account creation module is used to create a user account for the user in response to the user's recognition operation of the target activity identification code; The data matching module is used to send the activity rule to the monitoring service system, so that after the monitoring service system determines the target user account corresponding to the waybill data based on the waybill data received in real time from each channel, match the activity rule with the waybill data, calculate the target amount of the waybill data according to the matching result, and update the target user account based on the target amount.

9. A terminal device, characterized in that, It includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements the waybill data matching method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored computer program. When the computer program runs, it controls the device where the computer-readable storage medium is located to execute the waybill data matching method according to any one of claims 1 to 7.