CN111008875B - Method and system for calculating group preference based on personal real-time - Google Patents

Method and system for calculating group preference based on personal real-time Download PDF

Info

Publication number
CN111008875B
CN111008875B CN201911343673.6A CN201911343673A CN111008875B CN 111008875 B CN111008875 B CN 111008875B CN 201911343673 A CN201911343673 A CN 201911343673A CN 111008875 B CN111008875 B CN 111008875B
Authority
CN
China
Prior art keywords
group
users
user
preference
accumulated
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
CN201911343673.6A
Other languages
Chinese (zh)
Other versions
CN111008875A (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.)
Beijing Si Tech Information Technology Co Ltd
Original Assignee
Beijing Si Tech Information Technology 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 Beijing Si Tech Information Technology Co Ltd filed Critical Beijing Si Tech Information Technology Co Ltd
Priority to CN201911343673.6A priority Critical patent/CN111008875B/en
Publication of CN111008875A publication Critical patent/CN111008875A/en
Application granted granted Critical
Publication of CN111008875B publication Critical patent/CN111008875B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0208Trade or exchange of goods or services in exchange for incentives or rewards
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/10Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
    • G06Q20/102Bill distribution or payments
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/387Payment using discounts or coupons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0211Determining the effectiveness of discounts or incentives
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0215Including financial accounts
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses a method and a system for calculating group preference based on personal real time, and relates to the field of telecommunication charging. The method comprises the following steps: acquiring consumption information of a first group of users, wherein the first group of users is any group of users in all groups of users; obtaining a group accumulated bill of the first group user according to the consumption information; reading group accumulated bills of all group users, and calculating group offers according to preset group offer conditions and the group accumulated bills of all group users; obtaining an apportioned preferential result of the first group user according to the proportion of the group accumulated bill of the first group user to the group accumulated bill of all group users and the group preferential; and updating the bill of the first group of users after the first group of users offers according to the allocation offer results of the first group of users. By the scheme, the dependence link of the processing flow for calculating the group preference is reduced, and meanwhile, a mode of using amount allocation is introduced in the real-time preference calculation, so that the habit of checking the cost by the user is more met.

Description

Method and system for calculating group preference based on personal real-time
Technical Field
The invention relates to the field of telecommunication charging, in particular to a method and a system for calculating group preference based on personal real time.
Background
The telecommunication service market generally promotes home services, and has the biggest characteristic in a charging mode that a home service group is established, and members in the group share preferential. The types of offers include discounts, gifts (full reductions), minimum consumption, etc., and for discounts the offers may be calculated in whole or in individual members, with the results being consistent. The gifting and minimal consumption depend on the overall consumption of the group, and there is a problem of the distribution (to members) of the preferential results. In distributed systems with large traffic, the existing business preference algorithms are interdependent in processing flow, and cannot effectively perform real-time concurrent processing according to users, and the expansion processing capacity of the system is limited.
Disclosure of Invention
The invention aims to solve the technical problem of providing a method and a system for calculating group offers in real time based on individuals aiming at the defects of the prior art.
The technical scheme for solving the technical problems is as follows:
a method for calculating group offers in real time based on individuals, comprising the steps of:
s1, acquiring consumption information of a first group of users, wherein the first group of users are any group of users in all groups of users;
s2, obtaining a group accumulated bill of the first group of users according to the consumption information;
s3, reading group accumulated bills of all group users, and calculating group offers according to preset group offer conditions and the group accumulated bills of all group users;
s4, obtaining an allocation preferential result of the first group user according to the proportion of the group accumulated bills of the first group user to the group accumulated bills of all group users and the group preferential;
s5, updating the bill of the first group of users after the first group of users offer according to the allocation offer result of the first group of users.
The beneficial effects of the invention are as follows: according to the method, the consumption bills of the first group users and the bills of all the group users are obtained, the total offers of the group consumption are calculated according to the bills of all the group users, the total offers of the group consumption are distributed to the consumption offer values of the first group users according to the consumption proportion of the first group users, the reduced consumption bills are sent to the first group users, the process does not affect concurrent updating of other users, the group offers of the group users are calculated in real time, through the method, the dependence link of the processing flow of calculating the group offers is reduced, meanwhile, the mode of using amount allocation is introduced in the real-time offer calculation, the habit of checking the cost of general users is met, and the method is more suitable for being used on the total offers of the group bills. Meanwhile, in distributed systems with large traffic, the conventional business preference algorithm cannot effectively perform real-time concurrent processing according to users, and the expansion processing capacity of the system is limited.
On the basis of the technical scheme, the invention can be improved as follows.
Further, when the consumption information of the first group of users changes, the S3 specifically includes: and reading the group accumulated bills of all the group users in a dirty reading mode, taking the group accumulated bills of all the group users which are not changed any more finally as the reference, and calculating group preference according to preset group preference conditions.
The beneficial effects of adopting the further scheme are as follows: and the group accumulated bill of all group users is read in a dirty reading mode, and the condition that snapshot data is too old is avoided based on the group accumulated bill which is not changed, so that the group accumulated information read by each member in the group is consistent.
Further, the step S4 further includes: s41, when consumption cost changes occur to other users except the first group of users, each other user records notification information affecting group accumulated bills of other members of the group;
s42, calculating the apportionment preferential result of the first group of users according to the notification information of the other users of the group after combination.
The beneficial effects of adopting the further scheme are as follows: the first group user asynchronously caches notification information of the group accumulated bill influenced by other group users, merges the notification information, obtains the final group accumulated bill of all group users according to the merged notification information, calculates group offers according to the final group accumulated bill, further calculates the group users of the first user, ensures that the overall offer results of the final group are correct and consistent, and the first group user can independently calculate own offer results without relying on the offer calculation of other group users, so that the interdependence of the group offer calculation process is reduced, and the flexibility of the system architecture is improved.
Further, the step S42 specifically includes: and asynchronously caching a plurality of pieces of notification information, eliminating repeated notification information through a merging algorithm, and calculating the apportionment preferential results of the first group of users according to the calculation result of the last merging algorithm.
The beneficial effects of adopting the further scheme are as follows: the notification information of other users is asynchronously cached, repeated notification information is removed through a merging algorithm, the effectiveness of cached data is guaranteed according to the calculation result of the last merging algorithm, and according to the merging result, each user in the group can obtain a consistent whole group preference result, so that the correctness of the preference calculation result of each user in the group is guaranteed.
Further, the step S1 specifically includes: and locking the first group of users, acquiring consumption information of the first group of users, and unlocking other group of users except the first group of users, so as to keep concurrent updating of the other group of users.
The beneficial effects of adopting the further scheme are as follows: by locking the first group of users and performing subsequent preferential calculation when the first group of users acquire self consumption information, other users in the group are not locked in the period, and concurrent updating is kept.
The other technical scheme for solving the technical problems is as follows:
a system for computing group offers on a personal real-time basis, comprising:
the system comprises a user consumption information acquisition module, a group preference calculation module, a user preference calculation module and a user information updating module;
the user consumption information acquisition module is used for acquiring consumption information of a first group of users, and acquiring a group internal accumulated bill of the first group of users according to the consumption information, wherein the first group of users is any one group of users in all groups of users;
the group preference calculation module is used for reading group accumulated bills of all group users and calculating group preference according to preset group preference conditions and the group accumulated bills of all group users;
the user preference calculation module is used for obtaining an allocation preference result of the first group user according to the proportion of the group accumulated bill of the first group user to the group accumulated bill of all group users and the group preference;
and the user information updating module is used for updating the bill after the first group of users offer according to the allocation offer result of the first group of users.
The beneficial effects of the invention are as follows: according to the method, the consumption bills of the first group users and the bills of all the group users are obtained, the total offers of the group consumption are calculated according to the bills of all the group users, the total offers of the group consumption are distributed to the consumption offer values of the first group users according to the consumption proportion of the first group users, the reduced consumption bills are sent to the first group users, the process does not affect concurrent updating of other users, the group offers of the group users are calculated in real time, through the method, the dependence link of the processing flow of calculating the group offers is reduced, meanwhile, the mode of using amount allocation is introduced in the real-time offer calculation, the habit of checking the cost of general users is met, and the method is more suitable for being used on the total offers of the group bills. Meanwhile, in distributed systems with large traffic, the conventional business preference algorithm cannot effectively perform real-time concurrent processing according to users, and the expansion processing capacity of the system is limited.
On the basis of the technical scheme, the invention can be improved as follows.
Further, the group preference calculating module is specifically configured to, when the consumption information of the first group user changes, read the group accumulated bills of all the group users in a dirty reading manner, and calculate the group preference according to a preset group preference condition based on the group accumulated bills of all the group users that do not change at all.
The beneficial effects of adopting the further scheme are as follows: and the group accumulated bill of all group users is read in a dirty reading mode, and the condition that snapshot data is too old is avoided based on the group accumulated bill which is not changed, so that the group accumulated information read by each member in the group is consistent.
Further, the user preference calculation module is further configured to, when consumption cost changes occur to other users in the group other than the first group user, record notification information affecting a group accumulated bill of other members in the group, and calculate an allocation preference result of the first group user according to the notification information of the other users after merging.
The beneficial effects of adopting the further scheme are as follows: the first group user asynchronously caches notification information of the group accumulated bill influenced by other group users, merges the notification information, obtains the final group accumulated bill of all group users according to the merged notification information, calculates group offers according to the final group accumulated bill, further calculates the group users of the first user, ensures that the overall offer results of the final group are correct and consistent, and the first group user can independently calculate own offer results without relying on the offer calculation of other group users, so that the interdependence of the group offer calculation process is reduced, and the flexibility of the system architecture is improved.
Furthermore, the user preferential calculation module is further specifically configured to asynchronously cache a plurality of pieces of notification information, reject repeated notification information through a merging algorithm, and calculate an apportioned preferential result of the first group of users according to a calculation result of the last merging algorithm.
The beneficial effects of adopting the further scheme are as follows: the notification information of other users is asynchronously cached, repeated notification information is removed through a merging algorithm, the effectiveness of cached data is guaranteed according to the calculation result of the last merging algorithm, and according to the merging result, each user in the group can obtain a consistent whole group preference result, so that the correctness of the preference calculation result of each user in the group is guaranteed.
Further, the user consumption information acquisition module is specifically configured to lock a first group of users, acquire consumption information of the first group of users, unlock other group of users except the first group of users, and keep concurrent updating of the other group of users.
The beneficial effects of adopting the further scheme are as follows: by locking the first group of users and performing subsequent preferential calculation when the first group of users acquire self consumption information, other users in the group are not locked in the period, and concurrent updating is kept.
Additional aspects of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
FIG. 1 is a flowchart of a method for calculating group offers based on personal real-time according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a process for performing real-time group benefit for single user consumption according to other embodiments of the present invention;
FIG. 3 is a schematic flow chart of a group preference asynchronous caching and merging computation according to an embodiment of the present invention;
fig. 4 is a block diagram of a system for calculating group offers based on personal real time according to an embodiment of the present invention.
Detailed Description
The principles and features of the present invention are described below with reference to the drawings, the illustrated embodiments are provided for illustration only and are not intended to limit the scope of the present invention.
As shown in fig. 1, a method for calculating group preference based on personal real-time according to an embodiment of the present invention includes: s1, acquiring consumption information of a first group of users, wherein the first group of users are any group of users in all groups of users;
s2, obtaining a group accumulated bill of the first group user according to the consumption information;
it should be noted that, in the step (2) shown in fig. 2, the process uses the group users accumulated in units of users to update only the fee information of the current member. The simultaneous consumption of other members does not affect the accumulating process. The process only needs to lock the member data, so that the accuracy of the member data is ensured, and the concurrent updating of other members is not influenced.
S3, reading group accumulated bills of all group users, and calculating group offers according to preset group offer conditions and the group accumulated bills of all group users;
in the step (3) shown in fig. 2, when the user 1 calculates the cost, the accumulated billing cost of all the users (1-N) in the group needs to be loaded. Wherein the cost of the user 1 belongs to the cost generated by the current real-time change, and other users in the group belong to accumulated data of the previous change snapshot. At this time, the member user 2 and the user N can update the group cumulative information at the same time without waiting for each other.
The method is characterized in that the method uses a final consistency algorithm, the group accumulated information is dirty read, and snapshot data is too old, so that after the final group accumulated information is not changed any more, preferential calculation is carried out again for each member in the group, and the consistency of the group accumulated information read by each member can be ensured.
The algorithm of final consistency solves the problem that concurrent calculation is not locked through a redundant recalculation compensation mechanism as shown in fig. 2, and meanwhile, data is inconsistent in the changing process;
the preset group preference condition may be determined according to a preference service of the telecommunication service, for example, discount, lowest consumption, or full reduction, for example, full reduction may be when the group accumulates consumption 500 preference 100, full 300 preference 50, etc.
S4, obtaining an allocation preferential result of the first group user according to the proportion of the group accumulated bills of the first group user to the group accumulated bills of all the group users and the group preferential;
as shown in the link (4) of fig. 2, the total consumption according to the group is used as a preferential object during calculation. The result after the preferential treatment needs to be distributed to each member, and in order to improve the parallel computing efficiency, the consumption of the user 1 only calculates the cost which needs to be distributed to the user 1. In one embodiment, assuming that the group consists of user 1, user 2, and user 3, 500 yuan is consumed cumulatively, and offers of "give 100 yuan directly" are ordered, wherein the calculation results are shown in table 1:
Figure BDA0002332771600000081
TABLE 1
The total cost of the first time of the offer is 400 yuan, and the added total cost can only meet the latter condition of 'full 300 yuan minus 50 yuan', if 'full 500 yuan minus 100 yuan, full 300 yuan minus 50 yuan' offers are continuously added in the above example, wherein the calculation result is shown in table 2.
Figure BDA0002332771600000082
TABLE 2
And S5, updating the bill of the first group of users after the first group of users offers according to the allocation offer results of the first group of users.
It should be noted that, as shown in link (5) in fig. 2, the user preference result after the preference is updated, and the group preference calculation triggered by user 1 only updates the preference result after the preference is distributed to user 1. The process does not involve modifying bills of other members, and only needs to lock the member data, so that the accuracy of the member data is ensured, and the concurrent updating of other members is not influenced.
According to the method, the consumption bills of the first group users and the bills of all the group users are obtained, the total offers of the group consumption are calculated according to the bills of all the group users, the total offers of the group consumption are distributed to the consumption offer values of the first group users according to the consumption proportion of the first group users, the reduced consumption bills are sent to the first group users, the process does not affect concurrent updating of other users, the group offers of the group users are calculated in real time, through the method, the dependence link of the processing flow of calculating the group offers is reduced, meanwhile, the mode of using amount allocation is introduced in the real-time offer calculation, the habit of checking the cost of general users is met, and the method is more suitable for being used on the total offers of the group bills. Meanwhile, in distributed systems with large traffic, the conventional business preference algorithm cannot effectively perform real-time concurrent processing according to users, and the expansion processing capacity of the system is limited.
Preferably, in any of the foregoing embodiments, when the first group of users changes consumption information, S3 specifically includes: and reading the group accumulated bills of all group users in a dirty reading mode, taking the group accumulated bills of all group users which are not changed any more as the group accumulated bills, and calculating group preference according to preset group preference conditions.
And the group accumulated bill of all group users is read in a dirty reading mode, and the condition that snapshot data is too old is avoided based on the group accumulated bill which is not changed, so that the group accumulated information read by each member in the group is consistent.
Preferably, in any of the above embodiments, S4 further includes: s41, when consumption cost changes occur to other users except the first group of users, each group of other users respectively records notification information affecting the group accumulated bill of other members of the group;
s42, calculating the apportionment preferential result of the first group of users according to the notification information of the other users of the combined group.
In one embodiment, as shown in fig. 3, it is assumed that member 1 consumes and generates a cost change, which affects the total cost of the group, and affects both the conditions of the group offer and the allocation result. At this time, the other members 2 and 3 in the group need to be subjected to another preferential calculation to ensure the accuracy of the total preferential result of the group.
Each member changes the time, only calculates the self-charge in the group, and records a notification message which affects other members. And according to the processing condition of the system and the service requirement of the whole perception of the user, asynchronously performing preferential calculation on other members which influence, and combining and processing repeated information which causes influence when each processing is performed. For example: the group has 10 members, each member consumes in turn, and the calculation is needed 10 times 10 = 100 times before buffering. The calculation process is as follows:
the first 10 times is that each member is calculated once after triggering;
the second 10 times, which is to trigger the calculation of other 9 members by each member, is totally 90 times, and after the buffer combination, only needs to consider the calculation of each member (10) again;
the method can be stated in another way:
the buffering is preceded by 10+9×10=100 times, and the buffering is followed by 10+10=20 times;
the first group user asynchronously caches notification information of the group accumulated bill influenced by other group users, merges the notification information, obtains the final group accumulated bill of all group users according to the merged notification information, calculates group offers according to the final group accumulated bill, further calculates the group users of the first user, ensures that the overall offer results of the final group are correct and consistent, and the first group user can independently calculate own offer results without relying on the offer calculation of other group users, so that the interdependence of the group offer calculation process is reduced, and the flexibility of the system architecture is improved.
Preferably, in any of the above embodiments, S42 specifically includes: and asynchronously caching a plurality of pieces of notification information, eliminating repeated notification information through a merging algorithm, and calculating the allocation preferential result of the first group of users according to the calculation result of the last merging algorithm.
The purpose of the cache is to remove the duplication for later merging, in the scheme, a work order table of the memory database is used for storing the triggering user;
the merging algorithm is a duplication eliminating process, and as described above, one member may be passively operated for multiple times by the change of other members in the group, so that the merging calculation is only needed to be performed once finally.
The notification information of other users is asynchronously cached, repeated notification information is removed through a merging algorithm, the effectiveness of cached data is guaranteed according to the calculation result of the last merging algorithm, and according to the merging result, each user in the group can obtain a consistent whole group preference result, so that the correctness of the preference calculation result of each user in the group is guaranteed.
Preferably, in any of the foregoing embodiments, S1 specifically includes: and locking the first group of users to acquire consumption information of the first group of users, and unlocking other group of users except the first group of users to keep concurrent updating of the other group of users.
By locking the first group of users and performing subsequent preferential calculation when the first group of users acquire self consumption information, other users in the group are not locked in the period, and concurrent updating is kept.
In other embodiments of the present invention, a system for calculating group offers in real time based on individuals is provided, as shown in fig. 4, the system includes:
a user consumption information acquisition module 11, a group preference calculation module 12, a user preference calculation module 13 and a user information update module 14;
the user consumption information acquisition module 11 is configured to acquire consumption information of a first group of users, and obtain a group internal accumulated bill of the first group of users according to the consumption information, where the first group of users is any one of all group of users;
the group preference calculating module 12 is configured to read group accumulated bills of all group users, and calculate group preference according to preset group preference conditions and the group accumulated bills of all group users;
the user preference calculation module 13 is configured to obtain an allocation preference result of the first group user according to the proportion of the group accumulated bills of the first group user to the group accumulated bills of all group users and the group preference;
the user information updating module 14 is configured to update the bill after the first group of users offers according to the result of the apportionment of the first group of users.
According to the method, the consumption bills of the first group users and the bills of all the group users are obtained, the total offers of the group consumption are calculated according to the bills of all the group users, the total offers of the group consumption are distributed to the consumption offer values of the first group users according to the consumption proportion of the first group users, the reduced consumption bills are sent to the first group users, the process does not affect concurrent updating of other users, the group offers of the group users are calculated in real time, through the method, the dependence link of the processing flow of calculating the group offers is reduced, meanwhile, the mode of using amount allocation is introduced in the real-time offer calculation, the habit of checking the cost of general users is met, and the method is more suitable for being used on the total offers of the group bills. Meanwhile, in distributed systems with large traffic, the conventional business preference algorithm cannot effectively perform real-time concurrent processing according to users, and the expansion processing capacity of the system is limited.
Preferably, in any of the above embodiments, the group preference calculating module 12 is specifically configured to, when the consumption information of the first group user changes, read the group accumulated bills of all the group users in a dirty reading manner, and calculate the group preference according to the preset group preference condition based on the group accumulated bills of all the group users that no change occurs.
And the group accumulated bill of all group users is read in a dirty reading mode, and the condition that snapshot data is too old is avoided based on the group accumulated bill which is not changed, so that the group accumulated information read by each member in the group is consistent.
Preferably, in any of the above embodiments, the user preference calculation module 13 is further configured to, when a consumption fee change occurs for other users than the first group user, record notification information affecting a group cumulative bill of other members of the group, and calculate an apportioned preference result of the first group user according to the notification information of the combined group other users.
The first group user asynchronously caches notification information of the group accumulated bill influenced by other group users, merges the notification information, obtains the final group accumulated bill of all group users according to the merged notification information, calculates group offers according to the final group accumulated bill, further calculates the group users of the first user, ensures that the overall offer results of the final group are correct and consistent, and the first group user can independently calculate own offer results without relying on the offer calculation of other group users, so that the interdependence of the group offer calculation process is reduced, and the flexibility of the system architecture is improved.
Preferably, in any of the foregoing embodiments, the user preference calculation module 13 is further specifically configured to asynchronously cache a plurality of pieces of notification information, reject repeated notification information through a merging algorithm, and calculate an apportioned preference result of the first group of users according to a calculation result of the last merging algorithm.
The notification information of other users is asynchronously cached, repeated notification information is removed through a merging algorithm, the effectiveness of cached data is guaranteed according to the calculation result of the last merging algorithm, and according to the merging result, each user in the group can obtain a consistent whole group preference result, so that the correctness of the preference calculation result of each user in the group is guaranteed.
Preferably, in any of the foregoing embodiments, the user consumption information obtaining module 11 is specifically configured to lock a first group of users, obtain consumption information of the first group of users, unlock other group of users except the first group of users, and keep concurrent updating of the other group of users.
By locking the first group of users and performing subsequent preferential calculation when the first group of users acquire self consumption information, other users in the group are not locked in the period, and concurrent updating is kept.
It is to be understood that in some embodiments, some or all of the alternatives described in the various embodiments above may be included.
It should be noted that, the foregoing embodiments are product embodiments corresponding to the previous method embodiments, and the description of each optional implementation manner in the product embodiments may refer to the corresponding description in the foregoing method embodiments, which is not repeated herein.
The reader will appreciate that in the description of this specification, a description of terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the method embodiments described above are merely illustrative, e.g., the division of steps is merely a logical function division, and there may be additional divisions of actual implementation, e.g., multiple steps may be combined or integrated into another step, or some features may be omitted or not performed.
The above-described method, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present invention is essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of the embodiments of the present invention. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a Read-only memory (ROM), a random access memory (RAM, randomAccessMemory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The present invention is not limited to the above embodiments, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the present invention, and these modifications and substitutions are intended to be included in the scope of the present invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (10)

1. A method for computing group offers on a personal basis in real time, comprising:
s1, acquiring consumption information of a first group of users, wherein the first group of users are any group of users in all groups of users;
s2, obtaining a group accumulated bill of the first group of users according to the consumption information;
s3, reading group accumulated bills of all group users, and calculating group offers according to preset group offer conditions and the group accumulated bills of all group users;
s4, obtaining an allocation preferential result of the first group user according to the proportion of the group accumulated bills of the first group user to the group accumulated bills of all group users and the group preferential;
s5, updating the bill of the first group of users after the first group of users offer according to the allocation offer result of the first group of users.
2. The method of claim 1, wherein when the first group of users changes consumption information, S3 specifically comprises: and reading the group accumulated bills of all the group users in a dirty reading mode, taking the group accumulated bills of all the group users which are not changed any more finally as the reference, and calculating group preference according to preset group preference conditions.
3. A method for calculating group offers based on personal real time according to claim 1 or 2, wherein S4 further comprises: s41, when consumption cost changes occur to other users except the first group of users, each group of other users respectively records notification information affecting group accumulated bills of other members of the group;
s42, calculating the apportionment preferential result of the first group of users according to the notification information of the other users of the combined group.
4. The method for calculating group offers based on personal real-time according to claim 3, wherein S42 specifically comprises: and asynchronously caching a plurality of pieces of notification information, eliminating repeated notification information through a merging algorithm, and calculating the apportionment preferential results of the first group of users according to the calculation result of the last merging algorithm.
5. The method for calculating group offers based on personal real-time as claimed in claim 4, wherein said S1 specifically comprises: and locking the first group of users, acquiring consumption information of the first group of users, and unlocking other group of users except the first group of users, so as to keep concurrent updating of the other group of users.
6. A system for computing group offers on a personal real-time basis, comprising: the system comprises a user consumption information acquisition module, a group preference calculation module, a user preference calculation module and a user information updating module;
the user consumption information acquisition module is used for acquiring consumption information of a first group of users, and acquiring a group internal accumulated bill of the first group of users according to the consumption information, wherein the first group of users is any one group of users in all groups of users;
the group preference calculation module is used for reading group accumulated bills of all group users and calculating group preference according to preset group preference conditions and the group accumulated bills of all group users;
the user preference calculation module is used for obtaining an allocation preference result of the first group user according to the proportion of the group accumulated bill of the first group user to the group accumulated bill of all group users and the group preference;
and the user information updating module is used for updating the bill after the first group of users offer according to the allocation offer result of the first group of users.
7. The system according to claim 6, wherein the group preference calculating module is specifically configured to, when the consumption information of the first group user changes, read the group accumulated bills of all group users in a dirty reading manner, and calculate the group preference according to a preset group preference condition based on the group accumulated bills of all group users that eventually no longer change.
8. The system according to claim 5 or 6, wherein the user preference calculation module is further configured to, when a consumption fee change occurs for other users than the first group user, record notification information affecting a group accumulated bill of other members of the group, and calculate an allocation preference result of the first group user according to the notification information of the combined group other users.
9. The system for calculating group offers based on personal real-time according to claim 8, wherein the user offer calculation module is further specifically configured to asynchronously cache a plurality of pieces of notification information, reject repeated notification information by a merging algorithm, and calculate an apportioned offer result of the first group of users according to a calculation result of a last merging algorithm.
10. The system of claim 9, wherein the user consumption information acquisition module is specifically configured to lock a first group of users, acquire consumption information of the first group of users, and unlock other group of users except the first group of users, so as to keep concurrent updating of the other group of users.
CN201911343673.6A 2019-12-24 2019-12-24 Method and system for calculating group preference based on personal real-time Active CN111008875B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911343673.6A CN111008875B (en) 2019-12-24 2019-12-24 Method and system for calculating group preference based on personal real-time

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911343673.6A CN111008875B (en) 2019-12-24 2019-12-24 Method and system for calculating group preference based on personal real-time

Publications (2)

Publication Number Publication Date
CN111008875A CN111008875A (en) 2020-04-14
CN111008875B true CN111008875B (en) 2023-07-14

Family

ID=70117702

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911343673.6A Active CN111008875B (en) 2019-12-24 2019-12-24 Method and system for calculating group preference based on personal real-time

Country Status (1)

Country Link
CN (1) CN111008875B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113765680A (en) * 2021-07-28 2021-12-07 北京思特奇信息技术股份有限公司 Method and system for overall calculation control preference

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110033156A (en) * 2018-12-14 2019-07-19 阿里巴巴集团控股有限公司 A kind of determination method and device of business activity effect

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1756285B (en) * 2004-09-30 2010-08-25 华为技术有限公司 Processing method for realizing group user preferential charge
US10679251B2 (en) * 2009-06-18 2020-06-09 Microsoft Technology Licensing, Llc Controlling ad delivery to mobile clients
US20140046777A1 (en) * 2009-08-14 2014-02-13 Dataxu, Inc. Methods and systems for using consumer aliases and identifiers
EP2727065A4 (en) * 2011-07-01 2015-01-28 Dataxu Inc Creation and usage of synthetic user identifiers within an advertisement placement facility
CN106126524B (en) * 2016-06-07 2020-11-10 腾讯科技(深圳)有限公司 Information pushing method and device
CN106878031B (en) * 2017-01-23 2020-03-27 北京思特奇信息技术股份有限公司 Method and system for accelerating processing of telephone bill of telecommunication package user
CN108171503A (en) * 2017-11-09 2018-06-15 西安艾润物联网技术服务有限责任公司 On-line payment processing method, equipment and computer readable storage medium
CN109727014A (en) * 2018-11-20 2019-05-07 北京辰森世纪科技股份有限公司 Processing method, device and the equipment of bill information
CN109636469A (en) * 2018-12-13 2019-04-16 北京三快在线科技有限公司 Discount coupon generation method, device, storage medium and electronic equipment
CN109767260A (en) * 2018-12-15 2019-05-17 深圳壹账通智能科技有限公司 Bill preferential measure, device, equipment and storage medium based on integration payment
CN112131305A (en) * 2020-06-19 2020-12-25 中信银行股份有限公司 Account processing system
CN112702178B (en) * 2020-12-18 2022-09-27 中国联合网络通信集团有限公司 Method, system and device for real-time charge accounting

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110033156A (en) * 2018-12-14 2019-07-19 阿里巴巴集团控股有限公司 A kind of determination method and device of business activity effect

Also Published As

Publication number Publication date
CN111008875A (en) 2020-04-14

Similar Documents

Publication Publication Date Title
CA2616194C (en) Revenue management system and method
CN104751359B (en) System and method for payment clearing
CN104471573A (en) Updating cached database query results
CN111008875B (en) Method and system for calculating group preference based on personal real-time
CN104850627A (en) Method and apparatus for performing paging display
CN112749198A (en) Multi-level data caching method and device based on version number
CN108415990B (en) Data quality monitoring method and device, computer equipment and storage medium
CN111984677B (en) Resource data checking method, device, computer equipment and storage medium
CN111913913A (en) Access request processing method and device
CN111182485A (en) Single ticket total traffic control system and method
CN110580307A (en) Processing method and device for fast statistics
CN115907917A (en) Business data processing method and device and computer readable medium
CN113947491A (en) Leader node determination method, device, equipment and medium based on power block chain
US11140094B2 (en) Resource stabilization in a distributed network
CN114298785A (en) Preferential activity denomination management method and device, computer equipment and storage medium
CN112581295A (en) Product data processing method, device, equipment and medium based on field splitting
CN109558080A (en) A kind of NandFlash data managing method of electric power acquisition equipment
US8818973B1 (en) Generation and vending of unique sequence values
CN112131433B (en) Interval counting query method and device
CN111400279B (en) Data operation method, device and computer readable storage medium
Wang et al. ESS: An efficient storage scheme for improving the scalability of bitcoin system
CN115292243B (en) Non-admission distributed file storage system and storage method based on blockchain
CN117234731A (en) Memory bank cluster performance optimization method, device, equipment and storage medium
CN117114356A (en) Financial data management method and system
CN117762893A (en) Stream data migration method, electronic device and storage medium

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