CN111445322A - Integral sharing method and device - Google Patents

Integral sharing method and device Download PDF

Info

Publication number
CN111445322A
CN111445322A CN202010216420.9A CN202010216420A CN111445322A CN 111445322 A CN111445322 A CN 111445322A CN 202010216420 A CN202010216420 A CN 202010216420A CN 111445322 A CN111445322 A CN 111445322A
Authority
CN
China
Prior art keywords
integral
allocation
apportioned
undetermined
time interval
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.)
Pending
Application number
CN202010216420.9A
Other languages
Chinese (zh)
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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202010216420.9A priority Critical patent/CN111445322A/en
Publication of CN111445322A publication Critical patent/CN111445322A/en
Pending legal-status Critical Current

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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/03Credit; Loans; Processing thereof
    • 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/0226Incentive systems for frequent usage, e.g. frequent flyer miles programs or point systems

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • Strategic Management (AREA)
  • Development Economics (AREA)
  • Theoretical Computer Science (AREA)
  • Marketing (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Economics (AREA)
  • Technology Law (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Game Theory and Decision Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides an integral apportionment method and a device, wherein the method comprises the following steps: acquiring the point to be shared and the point detail information of a client; obtaining the apportionment integrals of all apportioned objects according to the integrals to be apportioned, the integral detail information and an integral apportionment model; wherein the integral apportionment model is pre-established. The device is used for executing the method. The integral allocation method and the device provided by the embodiment of the invention improve the calculation efficiency of the integral allocation.

Description

Integral sharing method and device
Technical Field
The invention relates to the technical field of data processing, in particular to an integral sharing method and device.
Background
Currently, in order to encourage customers to use bankcards and credit cards, the customers can obtain certain points after using the bankcards or credit cards, and the given points generate corresponding cost for the banks when the customers use the bankcards or credit cards later.
The credit given to the customer by the bank comes from the ways of card-swiping commission, marketing activity expense and the like, and corresponds to different business departments of the bank. After the points are used, the used points need to be distributed to each business department of the bank, and then the cost borne by each business department is calculated. In the prior art, when the integral is proportionally distributed to each business department, the situation of zero points which cannot be divided completely occurs, so that the integral needs to be distributed again, and the efficiency of integral distribution is reduced.
Disclosure of Invention
To solve the problems in the prior art, embodiments of the present invention provide an integral apportionment method and apparatus, which can at least partially solve the problems in the prior art.
In one aspect, the present invention provides an integral apportionment method, including:
acquiring the point to be shared and the point detail information of a client;
obtaining the apportionment integrals of all apportioned objects according to the integrals to be apportioned, the integral detail information and an integral apportionment model; wherein the integral apportionment model is pre-established.
In another aspect, the present invention provides an integral sharing apparatus, including:
the acquisition module is used for acquiring the point to be shared and the point detail information of the client;
the apportionment module is used for obtaining the apportionment integrals of the apportioned objects according to the to-be-apportioned integrals, the integral detail information and the integral apportionment model; wherein the integral apportionment model is pre-established.
In yet another aspect, the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the integral apportionment method according to any one of the above embodiments.
In yet another aspect, the present invention provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the score split method of any of the above embodiments.
The integral allocation method and the device provided by the embodiment of the invention can obtain the integral to be allocated and the integral detail information of the client, obtain the allocation integral of each allocation object according to the integral to be allocated, the integral detail information and the integral allocation model, quickly allocate the integral to be allocated to each allocation object, and improve the calculation efficiency of integral allocation.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. In the drawings:
fig. 1 is a schematic flow chart of an integral apportionment method according to an embodiment of the present invention.
Fig. 2 is a schematic flow chart of an integral apportionment method according to another embodiment of the present invention.
Fig. 3 is a schematic flow chart of an integral apportionment method according to another embodiment of the present invention.
Fig. 4 is a schematic structural diagram of an integral apportionment device according to an embodiment of the present invention.
Fig. 5 is a schematic structural diagram of an integral apportionment device according to another embodiment of the present invention.
Fig. 6 is a schematic structural diagram of an integral sharing device according to another embodiment of the present invention.
Fig. 7 is a schematic structural diagram of an integral apportionment device according to still another embodiment of the present invention.
Fig. 8 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
In order to facilitate understanding of the technical solutions provided in the present application, the following briefly describes related contents of the technical solutions in the present application. When the customer uses the bank card or the credit card, the customer can obtain the credit given by the bank, the credit is provided by different business departments of the bank, and the customer can use the credit to perform physical exchange, cash cancellation and the like. The points are distributed corresponding to accounts and expenses, after the customers use the points, the points used by the customers need to be distributed in each business department in the aspect of banks, and finally the distributed expenses of each business department are calculated.
Fig. 1 is a schematic flow chart of an integral apportionment method according to an embodiment of the present invention, and as shown in fig. 1, the integral apportionment method according to the embodiment of the present invention includes:
s101, acquiring the point to be shared and the point detail information of a client;
specifically, the server may obtain the points to be shared of the client, and obtain the point detail information of the client. The customer's points to be shared may be obtained periodically, for example, once a month. The point detail information of the client may include an expiration time interval of the point and an apportionment object corresponding to the point in each expiration time interval, and the point detail information of the client may correspond to a client identifier of the client, and the point detail information of the client is obtained through the client identifier of the client. It can be understood that the point detail information of the client is a record of points obtained when the client uses a bank card or a credit card, the expiration time interval of the points can be obtained by recording the obtaining time of the points and combining the valid period of the points, and meanwhile, the apportionment object of the points, namely the source object of the points obtained by the client, can be recorded. The execution subject of the point apportionment method provided by the embodiment of the invention includes but is not limited to a server.
For example, points used when a customer makes a consumption discount or exchanges points for a gift may be used as the points to be shared by the customer.
For example, a neural network model may be established for the integrals in the integral detail information, each integral is regarded as a neuron, and when the integral is to be subtracted, the output value corresponding to the integral is 1, and when the integral is not to be subtracted, the output value corresponding to the integral is 0. Wherein each integral corresponds to an apportionment object and an expiration time interval.
S102, obtaining the allocation integrals of all allocation objects according to the integrals to be allocated, the integral detail information and the integral allocation model; wherein the integral apportionment model is pre-established.
Specifically, after obtaining the integral to be shared and the integral detail information, the server inputs the integral to be shared and the integral detail information into the integral sharing model, and through processing of the integral sharing model, the sharing integral of each sharing object can be obtained, and the sum of the sharing integrals of each sharing object is equal to the integral to be shared. The integral apportionment model is pre-established and is used for apportioning the integral to be apportioned to each apportioned object. The apportionment object may be each business department of the bank, and is set according to actual needs, and the embodiment of the present invention is not limited.
According to the integral allocation method provided by the embodiment of the invention, the integral to be allocated and the integral detail information of the client are obtained, and the allocation integral of each allocation object is obtained according to the integral to be allocated, the integral detail information and the integral allocation model, so that the integral to be allocated can be quickly allocated to each allocation object, and the calculation efficiency of integral allocation is improved.
Fig. 2 is a schematic flow chart of an integral apportionment method according to another embodiment of the present invention, and as shown in fig. 2, on the basis of the foregoing embodiments, further, the obtaining apportioned integrals of each apportioned object according to the to-be-apportioned integral, the client integral detail information, and an integral apportionment model includes:
s1021, obtaining a determined use integral and an undetermined use integral according to the to-be-shared integral and the interval integral of each expiration time interval included in the integral detail information;
specifically, the use of the points follows a principle of first-time-first use, the client point detail information includes interval points of each expiration time interval, and the interval points of each expiration time interval are sequentially used from early to late according to the expiration time intervals. The server may gradually accumulate interval integrals of each expiration time interval, compare a result of each accumulation with the to-be-shared integral, when the result of the current accumulation is greater than the to-be-shared integral and the result of the previous accumulation is less than the to-be-shared integral, regard the result of the previous accumulation as a determined use integral, and regard a difference value obtained by subtracting the result of the previous accumulation from the to-be-shared integral as an undetermined use integral. The expiration time interval may be a week, a month, or a quarter, and is set according to actual needs, which is not limited in the embodiments of the present invention.
For example, the current time is 9 months in 2020, the customer's score to be allocated is 170, and the customer's score detail information includes interval score 30 expired in 10 months in 2020, interval score 70 expired in 11 months in 2020, interval score 90 expired in 12 months in 2020, and interval score 200 expired in 1 month in 2021. The server compares the interval integral 30 expired in 10 months in 2020 with the to-be-shared integral 170, wherein the 30 is smaller than 170, the server accumulates the interval integral expired in 10 months in 2020 and the interval integral expired in 11 months in 2020 to obtain an accumulated result of 100, 100 is smaller than 170, the server accumulates the interval integral expired in 10 months in 2020, the interval integral expired in 11 months in 2020 and the interval integral expired in 12 months in 2020 to obtain an accumulated result of 190, the server can judge that the accumulated result 190 is larger than 170, the last accumulated result 100 is smaller than 170, the use integral is determined to be 100, and the use integral is not determined to be 170-. Wherein the expiration time interval of 10 months in 2020 and 11 months in 2020 corresponds to the determined usage credits 100 and the expiration time interval of 12 months in 2020 corresponds to the undetermined usage credits 70.
S1022, obtaining a first allocation integral of each allocation object according to the integral corresponding to each allocation object in the expiration time interval corresponding to the determined use integral; the integral detail information comprises the integral corresponding to each apportioned object in each expiration time interval;
specifically, after obtaining the usage-determining integral, the server may obtain an expiration time interval corresponding to the usage-determining integral, and all interval integrals of the expiration time interval corresponding to the usage-determining integral may be used. The server may obtain, from the point specification information, the point of each allocation object in the expiration time interval corresponding to the determined usage point, and sum the points of the same allocation objects in different expiration intervals, to obtain the first allocation point of each allocation object.
For example, the server obtains a usage integral of 100, and determines that the expiration time intervals corresponding to the usage integral of 100 are 10 months in 2020 and 11 months in 2020. The interval integral of 10 months expiring in 2020 is 30, wherein the integral of the apportioned object a is 15, and the integral of the apportioned object b is 15; the interval of the 11-month expiration in 2020 is 70, where the score of the allocation object a is 25, the score of the allocation object b is 15, and the score of the allocation object c is 30. The server obtains the first share of the share object a as 15+ 25-40, the first share of the share object b as 15+ 15-30, and the first share of the share object c as 0+ 30-30.
S1023, obtaining second allocation integrals of all allocation objects according to the undetermined usage integrals, the integrals corresponding to all allocation objects in the due time intervals corresponding to the undetermined usage integrals and an integral allocation principle;
specifically, after obtaining the undetermined usage integral, the server may allocate, according to the undetermined usage integral, an integral corresponding to each allocated object in an expiration time interval corresponding to the undetermined usage integral, and an integral allocation rule, the undetermined usage integral to each allocated object, and obtain a second allocated integral of each allocated object, where a sum of the second allocated integrals of each allocated object is equal to the undetermined usage integral.
For example, the server randomly obtains an integration and allocation order of each allocation object in an expiration time interval corresponding to the undetermined usage integration, and then sequentially calculates a second allocation integration of each allocation object according to the integration and allocation order and a vector correction formula. Wherein the vector modification formula is preset.
And S1024, obtaining the allocation integrals of the allocation objects according to the first allocation integral and the second allocation integral of the allocation objects.
Specifically, the server may calculate a sum of the first and second allocation integrals for each allocation object after obtaining the first and second allocation integrals for each allocation object, and may obtain the allocation integrals for each allocation object by using the result of the sum as the allocation integral for each allocation object.
For example, if the server obtains the first apportionment of the apportioned object a as 40 and the second apportionment of the apportioned object a as 10, the apportionment of the apportioned object a is 50 to 40+ 10.
Fig. 3 is a schematic flow chart of an integral apportionment method according to yet another embodiment of the present invention, and as shown in fig. 3, on the basis of the foregoing embodiments, further, the obtaining a second apportioned integral of each apportioned object according to the undetermined usage integral, the integral corresponding to each apportioned object in the expiration time interval corresponding to the undetermined usage integral, and an integral apportionment principle includes:
s10231, randomly acquiring an integral allocation sequence of each allocation object in an expiration time interval corresponding to the undetermined usage integral;
specifically, the server obtains each allocation object in the expiration time interval corresponding to the undetermined usage integral, and then randomly and sequentially arranges each allocation object, thereby obtaining an allocation order of each allocation object in the expiration time interval corresponding to the undetermined usage integral.
For example, the server may arrange the allocation objects a, b, and c in a random order, for example, the obtained point allocation orders are the allocation objects a, c, and c, without specifying that three allocation objects a, b, and c correspond to 2020 and 12 months using the point 70.
S10232, sequentially calculating a second allocation integral of each allocation object according to the integral allocation sequence and a vector correction formula; wherein the vector correction formula is as follows:
Figure BDA0002424604140000061
Qi=Qi-1-pi-1
Ti=Ti-1-Wi-1
wherein p isiSecond division integral, p, for the ith division objecti-1A second division integral, W, for the i-1 th division objectiFor the integral of the ith apportioned object in the expiration time interval corresponding to the undetermined usage integral, Wi-1For the integral, Q, of the i-1 th apportioned object within the expiration time interval corresponding to the undetermined usage integraliFor the undetermined use integral, Q, corresponding to the ith apportioned object in the expiration time interval corresponding to the undetermined use integrali-1For the undetermined use integral corresponding to the i-1 th apportioned object in the expiration time interval corresponding to the undetermined use integral, TiFor the interval integral corresponding to the ith apportioned object in the expiration time interval corresponding to the undetermined use integral, Ti-1For the interval integral corresponding to the i-1 th apportioned object in the expiration time interval corresponding to the undetermined use integral, R () represents rounding, i is a positive integer, Q0For said undetermined use of integral, T0For the interval integral of the expiration time interval corresponding to the undetermined usage integral, p0And W0Is 0.
Specifically, after obtaining the integral apportionment order, the server calculates the second apportionment integral of each apportioned object one by one according to the integral apportionment order, and when calculating the second apportionment integral of each apportioned object, calculates the second apportionment integral of each apportioned object by a vector correction formula. Wherein the vector correction formula is as follows:
Figure BDA0002424604140000071
Qi=Qi-1-pi-1
Ti=Ti-1-Wi-1
when the value of i is 1, the value of i,
Figure BDA0002424604140000072
due to p0And W0Is 0, Q1=Q0,T1=T0,Q0For said undetermined use of integral, T0For said interval integral of the expiration time interval to which no use integral corresponds, W1For the integral of the 1 st apportionment object in the expiration time interval corresponding to the undetermined usage integral, p can be calculated as a known quantity1. R () represents rounding, that is, rounding the decimal part of a numerical value in parentheses, directly rounding off when the decimal part of the numerical value is less than 0.5, rounding off when the decimal part of the numerical value is 0.5 or more, and adding 1 to the integer part of the numerical value.
When the value of i is 2, the ratio of i to i is,
Figure BDA0002424604140000073
Q2=Q1-p1,T2=T1-W1,Q1、p1and T1Has already found out that1For the known quantity, Q is first determined2And T2,W2For the integral of the 2 nd apportionment object in the expiration time interval corresponding to the undetermined usage integral, p can be calculated as a known quantity2. The calculation process of the second allocation integral of the allocation object when i is greater than 2 is similar to the calculation process of the second allocation integral of the 2 nd allocation object, and is not described herein again.
For example, the undetermined usage integral is 70, the expiration time interval corresponding to the undetermined usage integral 70 is 2020 and 12 months, and the interval integral of the expiration time interval 2020 and 12 months is 90, where:
the integral of the allocation object a is 13, the integral of the allocation object b is 20, the integral of the allocation object c is 3, the integral of the allocation object d is 16, the integral of the allocation object e is 20, and the integral of the allocation object f is 18.
The integral allocation sequence comprises an allocation object a, an allocation object b, an allocation object c, an allocation object d, an allocation object e and an allocation object f.
For the 1 st apportioned object: apportioning objects a, Q1=Q0=70,T1=T0=90,
Figure BDA0002424604140000074
For the 2 nd contribution object: apportioning objects b, Q2=70-10=60,T2=90-13=77,
Figure BDA0002424604140000075
For the 3 rd split object: apportioning objects c, Q3=60-16=44,T3=77-20=57,
Figure BDA0002424604140000081
For the 4 th split object: apportioning objects d, Q4=44-2=42,T4=57-3=54,
Figure BDA0002424604140000082
For the 5 th split object: apportioning objects e, Q5=42-12=30,T5=54-16=38,
Figure BDA0002424604140000083
For the 6 th split object: apportioning objects f, Q6=30-16=14,T6=38-20=18,
Figure BDA0002424604140000084
When the second division integral of each division object is calculated through the vector correction formula, the second division integral of each division object can be calculated sequentially in a mode of 'one-time scanning and gradual correction', the surplus zero-point integrals are not left, and the redundant zero-point integrals do not need to be reprocessed.
On the basis of the foregoing embodiments, further, the integral apportionment method provided in the embodiment of the present invention further includes:
and calculating to obtain the allocation cost of each allocation object according to the allocation integral and the unit integral cost of each allocation object.
Specifically, the server calculates a product of the allocation integral of each allocation object and the unit integral cost after obtaining the allocation integral of each allocation object, and takes the result of the product as the allocation cost of each allocation object. The unit integral cost of each apportioned object is preset and is set according to actual needs, and the embodiment of the invention is not limited.
For example, if the server obtains an apportionment cost of 50 for the apportioned object a and the unit cost of the apportioned object a is 100, the apportionment cost of the apportioned object a is 50 × 100-5000.
Fig. 4 is a schematic structural diagram of an integral apportionment device according to an embodiment of the present invention, and as shown in fig. 4, the integral apportionment device according to the embodiment of the present invention includes an obtaining module 401 and an apportioning module 402, where:
the obtaining module 401 is configured to obtain the point to be shared and the point detail information of the client; the apportioning module 402 is configured to obtain apportioned integrals of the apportioned objects according to the to-be-apportioned integrals, the integral detail information, and an integral apportioning model; wherein the integral apportionment model is pre-established.
Specifically, the obtaining module 401 may obtain the points to be shared of the clients, and obtain the point detail information of the clients. The customer's points to be shared may be obtained periodically, for example, once a month. The point detail information of the client may include an expiration time interval of the point and an apportionment object corresponding to the point in each expiration time interval, and the point detail information of the client may correspond to a client identifier of the client, and the point detail information of the client is obtained through the client identifier of the client. It can be understood that the point detail information of the client is a record of points obtained when the client uses a bank card or a credit card, the expiration time interval of the points can be obtained by recording the obtaining time of the points and combining the valid period of the points, and meanwhile, the apportionment object of the points, namely the source object of the points obtained by the client, can be recorded.
After obtaining the to-be-shared integral and the integral detail information, the sharing module 402 inputs the to-be-shared integral and the integral detail information into the integral sharing model, and through the processing of the integral sharing model, the sharing integral of each sharing object can be obtained, and the sum of the sharing integrals of each sharing object is equal to the to-be-shared integral. The integral apportionment model is pre-established and is used for apportioning the integral to be apportioned to each apportioned object. The apportionment object may be each business department of the bank, and is set according to actual needs, and the embodiment of the present invention is not limited.
Fig. 5 is a schematic structural diagram of an integral apportioning device according to another embodiment of the present invention, and as shown in fig. 5, on the basis of the foregoing embodiments, further, the apportioning module 402 includes a first obtaining unit 4021, a first apportioning unit 4022, a second apportioning unit 4023, and a second obtaining unit 4024, where:
the first obtaining unit 4021 is configured to obtain a used integral and an undetermined used integral according to the to-be-shared integral and an interval integral of each expiration time interval included in the integral detail information; the first apportioning unit 4022 is configured to obtain a first apportioned integral of each apportioned object according to the integral corresponding to each apportioned object in the expiration time interval corresponding to the determined usage integral; the integral detail information comprises the integral of each allocation object in each expiration time interval; the second apportioning unit 4023 is configured to obtain a second apportioned integral of each apportioned object according to the undetermined usage integral, the integral of each apportioned object within the expiration time interval corresponding to the undetermined usage integral, and an integral apportioning principle; the second obtaining unit 4024 is configured to obtain an allocation integral of each allocation object according to the first allocation integral and the second allocation integral of each allocation object.
Specifically, the use of the points follows a principle of first-time-first use, the client point detail information includes interval points of each expiration time interval, and the interval points of each expiration time interval are sequentially used from early to late according to the expiration time intervals. The first obtaining unit 4021 may gradually accumulate interval integrals of each expiration time interval, compare a result of each accumulation with the to-be-shared integral, when the result of the current accumulation is greater than the to-be-shared integral and the result of the previous accumulation is less than the to-be-shared integral, take the result of the previous accumulation as a determined use integral, and take a difference obtained by subtracting the result of the previous accumulation from the to-be-shared integral as an undetermined use integral. The expiration time interval may be a week, a month, or a quarter, and is set according to actual needs, which is not limited in the embodiments of the present invention.
After obtaining the determined usage integral, the first apportioning unit 4022 may obtain an expiration time interval corresponding to the determined usage integral, and all interval integrals of the expiration time interval corresponding to the determined usage integral may be used. The server may obtain, from the point specification information, the point of each allocation object in the expiration time interval corresponding to the determined usage point, and sum the points of the same allocation objects in different expiration intervals, to obtain the first allocation point of each allocation object.
After obtaining the undetermined usage integral, the second apportioning unit 4023 may apportion the undetermined usage integral to each apportioned object according to the undetermined usage integral, an integral corresponding to each apportioned object in an expiration time interval corresponding to the undetermined usage integral, and an integral apportioning rule, to obtain a second apportioned integral of each apportioned object, where a sum of the second apportioned integrals of each apportioned object is equal to the undetermined usage integral.
After obtaining the first and second allocation integrals of the respective allocation objects, the second obtaining unit 4024 may calculate a sum of the first and second allocation integrals of each allocation object, and may obtain the allocation integrals of the respective allocation objects by taking a result of the sum as the allocation integral of each allocation object.
Fig. 6 is a schematic structural diagram of an integral apportionment device according to yet another embodiment of the present invention, and as shown in fig. 6, on the basis of the foregoing embodiments, further, the second apportioning unit 4023 includes an acquiring subunit 40231 and a calculating subunit 40232, where:
the obtaining subunit 40231 is configured to randomly obtain an integral allocation order of each allocation object in an expiration time interval corresponding to the undetermined usage integral; the calculation subunit 40232 is configured to sequentially calculate a second allocation integral of each allocation object according to the integral allocation order and the vector correction formula; wherein the vector correction formula is as follows:
Figure BDA0002424604140000101
Qi=Qi-1-pi-1
Ti=Ti-1-Wi-1
wherein p isiSecond division integral, p, for the ith division objecti-1A second division integral, W, for the i-1 th division objectiFor the integral of the ith apportioned object in the expiration time interval corresponding to the undetermined usage integral, Wi-1For the integral, Q, of the i-1 th apportioned object within the expiration time interval corresponding to the undetermined usage integraliFor the undetermined use integral, Q, corresponding to the ith apportioned object in the expiration time interval corresponding to the undetermined use integrali-1For the undetermined use integral corresponding to the i-1 th apportioned object in the expiration time interval corresponding to the undetermined use integral, TiFor said undetermined useThe interval integral, T, corresponding to the ith apportionment object in the expiration time interval corresponding to the integrali-1For the interval integral corresponding to the i-1 th apportioned object in the expiration time interval corresponding to the undetermined use integral, R () represents rounding, i is a positive integer, Q0For said undetermined use of integral, T0For the interval integral of the expiration time interval corresponding to the undetermined usage integral, p0And W0Is 0.
Specifically, the obtaining subunit 40231 obtains each allocation object in the expiration time interval corresponding to the undetermined usage integral, and then randomly and sequentially arranges each allocation object, thereby obtaining an allocation order of each allocation object in the expiration time interval corresponding to the undetermined usage integral.
After obtaining the integral apportionment order, the calculating subunit 40232 calculates the second apportionment integrals of the apportioned objects one by one according to the integral apportionment order, and calculates the second apportionment integrals of the apportioned objects by using a vector correction formula when calculating the second apportionment integrals of the apportioned objects. Wherein the vector correction formula is as follows:
Figure BDA0002424604140000111
Qi=Qi-1-pi-1
Ti=Ti-1-Wi-1
when the value of i is 1, the value of i,
Figure BDA0002424604140000112
due to p0And W0Is 0, Q1=Q0,T1=T0,Q0For said undetermined use of integral, T0For said interval integral of the expiration time interval to which no use integral corresponds, W1For the integral of the 1 st apportionment object in the expiration time interval corresponding to the undetermined usage integral, p can be calculated as a known quantity1. R () representing rounding, i.e. to the value in parenthesesThe decimal part is rounded up by rounding, when the decimal part of the numerical value is less than 0.5, the decimal part is directly rounded off, and when the decimal part of the numerical value is more than or equal to 0.5, the decimal part is rounded off and 1 is added to the integral part of the numerical value.
When the value of i is 2, the ratio of i to i is,
Figure BDA0002424604140000113
Q2=Q1-p1,T2=T1-W1,Q1、p1and T1Has already found out that1For the known quantity, Q is first determined2And T2,W2For the integral of the 2 nd apportionment object in the expiration time interval corresponding to the undetermined usage integral, p can be calculated as a known quantity2. The calculation process of the second allocation integral of the allocation object when i is greater than 2 is similar to the calculation process of the second allocation integral of the 2 nd allocation object, and is not described herein again.
Fig. 7 is a schematic structural diagram of an integral apportionment device according to yet another embodiment of the present invention, and as shown in fig. 7, on the basis of the foregoing embodiments, further, the integral apportionment device according to the embodiment of the present invention further includes a calculation module 403, where:
the calculating module 403 is configured to calculate and obtain an apportionment cost of each apportioned object according to the apportionment integral and the unit integral cost of each apportioned object.
Specifically, after obtaining the apportionment integral of each apportioned object, the calculation module 403 calculates the product of the apportionment integral of each apportioned object and the unit integral cost, and takes the result of the product as the apportionment cost of each apportioned object. The unit integral cost of each apportioned object is preset and is set according to actual needs, and the embodiment of the invention is not limited.
The embodiment of the apparatus provided in the embodiment of the present invention may be specifically configured to execute the processing flows of the above method embodiments, and the functions of the apparatus are not described herein again, and refer to the detailed description of the above method embodiments.
Fig. 8 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 8, the electronic device may include: a processor (processor)801, a communication Interface (Communications Interface)802, a memory (memory)803 and a communication bus 804, wherein the processor 801, the communication Interface 802 and the memory 803 complete communication with each other through the communication bus 804. The processor 801 may call logic instructions in the memory 803 to perform the following method: acquiring the point to be shared and the point detail information of a client; obtaining the apportionment integrals of all apportioned objects according to the integrals to be apportioned, the integral detail information and an integral apportionment model; wherein the integral apportionment model is pre-established.
In addition, the logic instructions in the memory 803 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The present embodiment discloses a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the method provided by the above-mentioned method embodiments, for example, comprising: acquiring the point to be shared and the point detail information of a client; obtaining the apportionment integrals of all apportioned objects according to the integrals to be apportioned, the integral detail information and an integral apportionment model; wherein the integral apportionment model is pre-established.
The present embodiment provides a computer-readable storage medium, which stores a computer program, where the computer program causes the computer to execute the method provided by the above method embodiments, for example, the method includes: acquiring the point to be shared and the point detail information of a client; obtaining the apportionment integrals of all apportioned objects according to the integrals to be apportioned, the integral detail information and an integral apportionment model; wherein the integral apportionment model is pre-established.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In the description herein, reference to the description of the terms "one embodiment," "a particular embodiment," "some embodiments," "for example," "an example," "a particular example," 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, the schematic representations of the terms used above do not necessarily refer 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.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. An integral apportionment method, comprising:
acquiring the point to be shared and the point detail information of a client;
obtaining the apportionment integrals of all apportioned objects according to the integrals to be apportioned, the integral detail information and an integral apportionment model; wherein the integral apportionment model is pre-established.
2. The method according to claim 1, wherein obtaining the apportioned integrals of the respective apportioned objects according to the to-be-apportioned integrals, the integral detail information and an integral apportionment model comprises:
obtaining a determined use integral and an undetermined use integral according to the to-be-shared integral and the interval integral of each expiration time interval included in the integral detail information;
obtaining a first allocation integral of each allocation object according to the integral corresponding to each allocation object in the expiration time interval corresponding to the determined use integral; the integral detail information comprises the integral of each allocation object in each expiration time interval;
obtaining second allocation integrals of all allocation objects according to the undetermined use integrals, the integrals of all the allocation objects in the due time intervals corresponding to the undetermined use integrals and an integral allocation principle;
and obtaining the allocation integrals of the allocation objects according to the first allocation integral and the second allocation integral of the allocation objects.
3. The method according to claim 2, wherein the obtaining of the second apportioned integral of each apportioned object according to the undetermined usage integral, the integral corresponding to each apportioned object in the expiration time interval corresponding to the undetermined usage integral, and an integral apportioning rule comprises:
randomly acquiring an integral allocation sequence of each allocation object in an expiration time interval corresponding to the undetermined use integral;
sequentially calculating a second apportionment integral of each apportioned object according to the integral apportionment sequence and a vector correction formula; wherein the vector correction formula is as follows:
Figure FDA0002424604130000011
Qi=Qi-1-pi-1
Ti=Ti-1-Wi-1
wherein p isiSecond division integral, p, for the ith division objecti-1A second division integral, W, for the i-1 th division objectiFor the integral of the ith apportioned object in the expiration time interval corresponding to the undetermined usage integral, Wi-1For the integral, Q, of the i-1 th apportioned object within the expiration time interval corresponding to the undetermined usage integraliFor the undetermined use integral, Q, corresponding to the ith apportioned object in the expiration time interval corresponding to the undetermined use integrali-1For the undetermined use integral corresponding to the i-1 th apportioned object in the expiration time interval corresponding to the undetermined use integral, TiFor the interval integral corresponding to the ith apportioned object in the expiration time interval corresponding to the undetermined use integral, Ti-1For the interval integral corresponding to the i-1 th apportioned object in the expiration time interval corresponding to the undetermined use integral, R () represents rounding, i is a positive integer, Q0For said undetermined use of integral, T0For the interval integral of the expiration time interval corresponding to the undetermined usage integral, p0And W0Is 0.
4. The method of any of claims 1 to 3, further comprising:
and calculating to obtain the allocation cost of each allocation object according to the allocation integral and the unit integral cost of each allocation object.
5. An integral apportioning apparatus, comprising:
the acquisition module is used for acquiring the point to be shared and the point detail information of the client;
the apportionment module is used for obtaining the apportionment integrals of the apportioned objects according to the to-be-apportioned integrals, the integral detail information and the integral apportionment model; wherein the integral apportionment model is pre-established.
6. The apparatus of claim 5, wherein the apportionment module comprises:
a first obtaining unit, configured to obtain a used integral that is determined and a used integral that is not determined according to the to-be-shared integral and an interval integral of each expiration time interval included in the integral detail information;
a first allocation unit, configured to obtain a first allocation integral of each allocation object according to an integral corresponding to each allocation object in the expiration time interval corresponding to the determined usage integral; the integral detail information comprises the integral of each allocation object in each expiration time interval;
the second allocation unit is used for obtaining second allocation integrals of all the allocation objects according to the undetermined usage integral, the integral of each allocation object in the due time interval corresponding to the undetermined usage integral and an integral allocation principle;
and the second obtaining unit is used for obtaining the allocation integrals of the allocation objects according to the first allocation integral and the second allocation integral of the allocation objects.
7. The apparatus according to claim 6, wherein the second apportioning unit comprises:
an obtaining subunit, configured to randomly obtain an integral allocation order of each allocation object in an expiration time interval corresponding to the undetermined usage integral;
the calculating subunit is used for sequentially calculating a second apportionment integral of each apportioned object according to the integral apportionment sequence and the vector correction formula; wherein the vector correction formula is as follows:
Figure FDA0002424604130000031
Qi=Qi-1-pi-1
Ti=Ti-1-Wi-1
wherein p isiSecond division integral, p, for the ith division objecti-1A second division integral, W, for the i-1 th division objectiApportioning the ith time within the expiration time interval corresponding to the undetermined usage integralIntegral of the object, Wi-1For the integral, Q, of the i-1 th apportioned object within the expiration time interval corresponding to the undetermined usage integraliFor the undetermined use integral, Q, corresponding to the ith apportioned object in the expiration time interval corresponding to the undetermined use integrali-1For the undetermined use integral corresponding to the i-1 th apportioned object in the expiration time interval corresponding to the undetermined use integral, TiFor the interval integral corresponding to the ith apportioned object in the expiration time interval corresponding to the undetermined use integral, Ti-1For the interval integral corresponding to the i-1 th apportioned object in the expiration time interval corresponding to the undetermined use integral, R () represents rounding, i is a positive integer, Q0For said undetermined use of integral, T0For the interval integral of the expiration time interval corresponding to the undetermined usage integral, p0And W0Is 0.
8. The apparatus of any one of claims 5 to 7, further comprising:
and the calculating module is used for calculating and obtaining the allocation cost of each allocation object according to the allocation integral and the unit integral cost of each allocation object.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 4 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 4.
CN202010216420.9A 2020-03-25 2020-03-25 Integral sharing method and device Pending CN111445322A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010216420.9A CN111445322A (en) 2020-03-25 2020-03-25 Integral sharing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010216420.9A CN111445322A (en) 2020-03-25 2020-03-25 Integral sharing method and device

Publications (1)

Publication Number Publication Date
CN111445322A true CN111445322A (en) 2020-07-24

Family

ID=71650759

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010216420.9A Pending CN111445322A (en) 2020-03-25 2020-03-25 Integral sharing method and device

Country Status (1)

Country Link
CN (1) CN111445322A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113112327A (en) * 2021-04-07 2021-07-13 中国工商银行股份有限公司 Commodity payment transaction data processing method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113112327A (en) * 2021-04-07 2021-07-13 中国工商银行股份有限公司 Commodity payment transaction data processing method and device
CN113112327B (en) * 2021-04-07 2024-03-29 中国工商银行股份有限公司 Commodity payment transaction data processing method and device

Similar Documents

Publication Publication Date Title
CN111784514B (en) Service processing method and device based on block chain
CN106779420B (en) Resource conversion method and device
CN110138883B (en) Hybrid cloud resource allocation method and device
CN109299883B (en) Empty driving scheduling method and device
CN110363476B (en) Cargo warehousing distribution processing method and device
CN108876472B (en) Information delivery method and device
CN110505165A (en) A kind of edge calculations task discharging method and device based on two way auction mechanism
CA3143827A1 (en) Fund data processing method, apparatus, computer device and storage medium
CN110264267A (en) A kind of accumulated point exchanging method based on block chain
Buterin Blockchain resource pricing
CN111445322A (en) Integral sharing method and device
Haile et al. Value creation in IT service platforms through two-sided network effects
CN110570175A (en) Method and device for sending rewards to users sharing economic platform by means of block chain
WO2017205024A1 (en) System and method for account security
CN107169854B (en) Data processing method and device
CN115794421A (en) Resource allocation method and device and electronic equipment
CN107979478B (en) Method and device for determining customer experience index
CN115034674A (en) Charging management method, system and electronic equipment
CN108428106A (en) A kind of intelligent application method, system and terminal device of financing
CN110060020B (en) Project cost prediction method and device
CN107274143A (en) Settlement processing method and device
CN114186925A (en) Stock value calculation method, stock value calculation device, computer equipment and storage medium
CN112232953A (en) Bond transaction prepayment method, device, equipment and storage medium
CN110688584A (en) User matching method, electronic equipment and computer program product
CA3155143A1 (en) Method and apparatus for allocation of member resources

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200724