CN117611249A - Member point information processing method and device, readable storage medium and terminal - Google Patents

Member point information processing method and device, readable storage medium and terminal Download PDF

Info

Publication number
CN117611249A
CN117611249A CN202410063129.0A CN202410063129A CN117611249A CN 117611249 A CN117611249 A CN 117611249A CN 202410063129 A CN202410063129 A CN 202410063129A CN 117611249 A CN117611249 A CN 117611249A
Authority
CN
China
Prior art keywords
integral
block
expiration time
issued
value
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.)
Granted
Application number
CN202410063129.0A
Other languages
Chinese (zh)
Other versions
CN117611249B (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.)
Hangzhou Shuyun Information Technology Co ltd
Original Assignee
Hangzhou Shuyun 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 Hangzhou Shuyun Information Technology Co ltd filed Critical Hangzhou Shuyun Information Technology Co ltd
Priority to CN202410063129.0A priority Critical patent/CN117611249B/en
Publication of CN117611249A publication Critical patent/CN117611249A/en
Application granted granted Critical
Publication of CN117611249B publication Critical patent/CN117611249B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/0211Determining the effectiveness of discounts or incentives
    • 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

Landscapes

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

Abstract

The application provides a method and a device for processing member point information, a readable storage medium and a terminal, wherein the method for processing member point information comprises the following steps: determining an integral value and an expiration time of an integral to be issued in response to the integral issuing operation; determining an integral block to which the to-be-issued integral belongs according to the expiration time of the to-be-issued integral, wherein different integral blocks have different expiration times, each integral block records an effective total integral value of the integral block, and the effective total integral value is determined based on the sum of integral values of all integral blocks with the same expiration time as the expiration time of the integral block; and updating the effective total integral value of the affiliated integral block according to the integral value of the integral to be issued. The above-described scheme can improve the effective integrated value update efficiency.

Description

Member point information processing method and device, readable storage medium and terminal
Technical Field
The embodiment of the invention relates to the technical field of information processing, in particular to a method and a device for processing membership point information, a readable storage medium and a terminal.
Background
In the existing point system, points are added every time, and when the points expire according to the point details, the expired points are deducted from the point account. A period of time is required from discovery of the point expiration to triggering calculation of the total point of expiration and deducting the point of expiration from the membership point account. In particular, in the case of a large amount of data, it may take a relatively long time to calculate, and only after all the outdated credits are calculated, the valid credits in the credit account are updated, which may result in that the credits in the total account are unchanged until the outdated data have not been processed, and in practice some of the credits in the total account are unused outdated credits, resulting in a delay in the updating of the credits in the total account, and the valid total credits displayed by the total account are not real valid credits. I.e. the update of the currently valid total integrated value is less efficient.
Disclosure of Invention
The technical problem solved by the embodiment of the invention is that the update efficiency of the effective total integrated value is low at present.
In order to solve the above technical problems, an embodiment of the present invention provides a method for processing membership point information, including: determining an integral value and an expiration time of an integral to be issued in response to the integral issuing operation; determining an integral block to which the to-be-issued integral belongs according to the expiration time of the to-be-issued integral, wherein different integral blocks have different expiration times, each integral block records an effective total integral value of the integral block, and the effective total integral value is determined based on the sum of integral values of all integral blocks with the same expiration time as the expiration time of the integral block; and updating the effective total integral value of the affiliated integral block according to the integral value of the integral to be issued.
Optionally, the determining, in response to the credit issuing operation, the credit value and the expiration time of the credit to be issued includes: if the newly added integral record is detected, judging to trigger integral issuing operation, and responding to the integral issuing operation to obtain integral detail information of the newly added integral record, wherein the integral detail information comprises an integral value of an integral to be issued, effective time of the integral to be issued and expiration time of the integral to be issued; and determining the integral value of the to-be-sent integral and the expiration time of the to-be-sent integral according to the integral detail of each newly added integral record.
Optionally, the determining, according to the expiration time of the to-be-sent point, the point block to which the to-be-sent point belongs includes: judging whether an integral block with the same expiration time as the expiration time of the to-be-issued integral exists or not according to the expiration time of the to-be-issued integral; if the integral blocks with the same expiration time as the to-be-issued integral exist, taking the integral blocks with the same expiration time as the integral blocks to which the to-be-issued integral belongs; if no integral block with the expiration time identical to that of the to-be-issued integral exists, a new integral block is created as the integral block to which the to-be-issued integral belongs.
Optionally, the effective total integral value of the integral block is a sum of integral values of which expiration time is the same as that of the integral block and integral values of which expiration time is after the expiration time of the integral block, and the membership point information processing method further includes: acquiring the validity period of the to-be-issued integral, wherein the validity period of the to-be-issued integral comprises the effective time and the expiration time of the to-be-issued integral; determining an integral block influenced by the validity period of the to-be-issued integral according to the validity period of the to-be-issued integral, wherein the integral block influenced by the validity period of the to-be-issued integral is an integral block with expiration time between the effective time and the expiration time of the to-be-issued integral; and updating the effective total integral value of the integration block influenced by the effective period of the to-be-issued integral based on the integral value of the to-be-issued integral.
Optionally, the method for processing the membership point information further includes: determining an integral value and an effective period of the to-be-deducted integral in response to the integral deduction operation, wherein the effective period of the to-be-deducted integral comprises effective time and expiration time of the to-be-deducted integral; determining an integral block influenced by the to-be-deducted integral within the effective period of the to-be-deducted integral, wherein the integral block influenced by the to-be-deducted integral is an integral block with expiration time between the effective time and the expiration time of the to-be-deducted integral; and updating the effective total integral value of the integral block affected by the to-be-deducted integral according to the integral value of the to-be-deducted integral.
Optionally, the method for processing the membership point information further includes: determining a query time in response to the integral query operation; and acquiring a target integral block according to the inquiry time, and determining the effective total integral value of the inquiry based on the effective total integral value of the target integral block, wherein the target integral block is an integral block with the same expiration time as the inquiry time or after the inquiry time and closest to the inquiry time.
Optionally, the obtaining the target integral block according to the query time, determining an effective total integral value of the query based on the effective total integral value of the target integral block, includes: if the effective total integral value of the integral blocks is the sum of integral values of integral blocks with the same expiration time as the expiration time of the integral blocks, acquiring the integral blocks with the same expiration time as the inquiry time and after the inquiry time as the target integral blocks, and taking the sum of the effective total integral values of the target integral blocks as the effective total integral value of the inquiry; and if the effective total integral value of the integral block is the sum of the integral with the same expiration time as the expiration time of the integral block and the integral with the expiration time after the expiration time of the integral block, acquiring the integral block with the same expiration time as the inquiry time or after the inquiry time and closest to the inquiry time as the target integral block, and taking the effective total integral value of the target integral block as the effective total integral value of the inquiry.
Optionally, the method for processing the membership point information further includes: when the integral blocks are detected to meet the cleaning conditions, deleting the integral blocks meeting the cleaning conditions, wherein the cleaning conditions comprise any one of the following: the effective total integral value of the integral blocks is zero, the expiration time of the integral blocks is reached, and the expiration time of the integral blocks exceeds the set time.
Optionally, the method for processing the membership point information further includes: and recording the to-be-transmitted integral in the corresponding integral block, wherein each integral block records the integral detail information of all integral of the effective total integral values of the integral block.
The embodiment of the invention also provides a processing device of the membership point information, which comprises the following steps: a first determination unit configured to determine an integrated value and an expiration time of an integrated value to be issued in response to an integrated value issuing operation; a second determining unit, configured to determine an integral block to which the to-be-issued integral belongs according to an expiration time of the to-be-issued integral, where different integral blocks have different expiration times, each integral block records an effective total integral value of the integral block, and the effective total integral value is determined based on a sum of integral values of all integral blocks having the same expiration time as the expiration time of the integral block; and the updating unit is used for updating the effective total integral value of the affiliated integral block according to the integral value of the integral to be issued.
The embodiment of the present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of any one of the above-described member point information processing methods.
The embodiment of the invention also provides a terminal, which comprises a memory and a processor, wherein the memory stores a computer program capable of running on the processor, and the processor executes the steps of any member point information processing method when running the computer program.
Compared with the prior art, the technical scheme of the embodiment of the invention has the following beneficial effects:
in response to the point issuance operation, an point value and an expiration time for the point to be issued are determined. And determining an integral block to which the to-be-issued integral belongs according to the expiration time of the to-be-issued integral, and updating the effective total integral value of the integral block to which the to-be-issued integral belongs according to the integral value of the to-be-issued integral. Since different integrator blocks have different expiration times, each integrator block records an effective total integral value for that integrator block, which is determined based on the sum of the integral values of all of the integrals having the same expiration time as that of the integrator block. Therefore, in the point issuing stage, the points with the same expiration date in the future can be summarized and recorded in the same point block, so that the calculated amount of the subsequent point expiration statistics is reduced, the point update delay is reduced, and the update efficiency of the effective total point is improved.
Drawings
Fig. 1 is a flowchart of a method of processing membership point information in an embodiment of the present invention;
FIG. 2 is a schematic diagram of an integrator block;
FIG. 3 is a schematic diagram of an integration block after issuing an integration;
FIG. 4 is a schematic diagram of an integration block after subtraction integration;
fig. 5 is a schematic diagram of a member score information processing apparatus according to an embodiment of the present invention.
Detailed Description
As described above, in the case of a large data volume, the existing integration system may take a relatively long time to calculate, and only after all the outdated credits are calculated, the valid credits in the integrated account are updated, which results in that the integrated value of the integrated account is unchanged before the outdated data is not processed, and in practice, some of the credits in the integrated account are unused outdated credits, resulting in delay in updating the integrated account, and the valid total integrated value displayed by the integrated account is not a real valid integrated value. I.e. the update of the currently valid total integrated value is less efficient.
To solve the above-described problems, in an embodiment of the present invention, an integrated value and an expiration time of an integrated value to be issued are determined in response to an integrated issuing operation. And determining an integral block to which the to-be-issued integral belongs according to the expiration time of the to-be-issued integral, and updating the effective total integral value of the integral block to which the to-be-issued integral belongs according to the integral value of the to-be-issued integral. Because different integral blocks have different expiration times, each integral block records the effective total integral value of the integral block, and the effective total integral value is determined based on the sum of integral values of all integral blocks with the same expiration time as the integral block, so that the integral blocks with the same expiration time in the future can be summarized in the integral issuing stage and recorded in the same integral block, thereby being beneficial to reducing the calculated amount of the expiration statistics of the following integral blocks, reducing the integral updating delay and improving the updating efficiency of the effective total integral value.
In order to make the above objects, features and advantages of the embodiments of the present invention more comprehensible, the following detailed description of the embodiments of the present invention refers to the accompanying drawings.
The embodiment of the invention provides a method for processing member point information, which can be executed by a terminal, by a member point system and other suitable application software installed on the terminal, by a cloud or a server and the like. The terminal can be a mobile phone, a computer, a tablet personal computer and other devices. Referring to fig. 1, the method for processing the membership point information may specifically include the steps of:
in step 11, in response to the point issuance operation, the point value and the expiration time of the point to be issued are determined.
And step 12, determining an integral block to which the to-be-issued integral belongs according to the expiration time of the to-be-issued integral, wherein different integral blocks have different expiration times, each integral block records an effective total integral value of the integral block, and the effective total integral value is determined based on the sum of integral values of all integral blocks with the same expiration time as the expiration time of the integral block.
And step 13, updating the effective total integral value of the integral block to which the integral block belongs according to the integral value of the integral to be transmitted.
From the above, in response to the point issuing operation, the point value and the expiration time of the point to be issued are determined. And determining an integral block to which the to-be-issued integral belongs according to the expiration time of the to-be-issued integral, and updating the effective total integral value of the integral block to which the to-be-issued integral belongs according to the integral value of the to-be-issued integral. Since different integrator blocks have different expiration times, each integrator block records an effective total integral value for that integrator block, which is determined based on the sum of the integral values of all of the integrals having the same expiration time as that of the integrator block. Therefore, in the point issuing stage, the points with the same expiration date in the future can be summarized and recorded in the same point block, so that the calculated amount of the subsequent point expiration statistics is reduced, the point update delay is reduced, and the update efficiency of the effective total point is improved.
In one implementation of step 11, if a new added credit record is detected, it is determined to trigger a credit release operation, and credit detail information of the new added credit record is acquired in response to the credit release operation. The point detail information comprises a point value to be issued, an effective time of the point to be issued and an expiration time of the point to be issued. And determining the integral value of the to-be-sent integral and the expiration time of the to-be-sent integral according to the integral detail of each newly added integral record.
In a specific implementation, when a new consumption order event, a member point reward event triggering event and the like can all cause the new point record to be added, and point detail information corresponding to the event is generated. The point details may also include membership identifications, the membership identifications of different members being different. The corresponding relation between the point detail information and the members can be obtained through the member identification, so that the point detail information corresponding to each member can be conveniently obtained.
In addition, each point block is also recorded with a membership identification to identify the member to which the point block belongs. For example, a membership identifier, a valid total integrated value, an expiration time, and the like may be defined in the metadata of the integrated block.
For simplicity of description, the same member is used as an example in the embodiment of the present invention. In practical application, the number of members facing in the processing of the member credit information is not limited to one, and when a plurality of members are facing, the related information such as the credit detail information, the credit block, etc. of each member may be acquired based on the member identification information of the member.
In implementations, the effective time of the points to be issued and the expiration time of the points to be issued may be determined based on the validity period configuration information of the points. The validity period configuration information of the credit may be used to indicate validity rules for the credit as well as expiration periods. The validation rule is used to indicate the validation time of the points to be issued. For example, the validation rule is used to indicate that the points to be issued are validated immediately, validated the next day, validated after a specific condition is satisfied, or the like. The specific conditions may include that the order is not returned, the set time length is reached, and the like, and the specific conditions are configured according to the actual application scene requirements. The expiration period can be day, month, quarter, year, etc., and the expiration period can also be a preset period duration. The expiration period may be configured to scroll for a set period of time, such as by day, by month, etc. The expiration period may also be configured as a fixed window, e.g., with a certain time as the expiration time, e.g., the last day of the year as the expiration time. The expiration time may be determined based on the validation time and the expiration period.
In one implementation of step 12, the integral block to which the to-be-issued integral belongs may be determined according to the expiration time of the to-be-issued integral, specifically, by: and judging whether an integral block with the same expiration time as the to-be-transmitted integral exists according to the expiration time of the to-be-transmitted integral. If the integral blocks with the same expiration time as the to-be-issued integral exist, the integral blocks with the same expiration time are used as the integral blocks to which the to-be-issued integral belongs. If no integral block with the expiration time identical to that of the to-be-issued integral exists, a new integral block is created as the integral block to which the to-be-issued integral belongs.
In some embodiments, the integration block may be created in advance. The integration block may be created in advance according to an expiration period. For example, the expiration period is a natural month, that is, the last day of the month of each natural month is an expiration time, 12 integration blocks may be created in advance for each natural year, and the expiration time of each integration block is the last day of the month of each month, respectively. As another example, the expiration period is quarterly, i.e., the last day of each quarter is the expiration time, 4 blocks of credits may be created in advance for each natural year, with the expiration time of each block of credits being the last day of each quarter, respectively.
In other embodiments, the integration blocks may be created according to actual requirements, that is, each time a corresponding integration block is created according to the expiration time of the to-be-issued integration, when the integration with the same expiration time exists subsequently, the integration with the same expiration time is recorded in the integration block with the same expiration time.
In some embodiments, the effective total integral value of an integral block is the sum of integral values of the same expiration time as the expiration time of the integral block. For example, if the expiration time of the integration block is 2023, 11, 3, and the integral values of the integration blocks of 2023, 11, 3 are 5, 8, 13, and 26, respectively, the effective total integral value of the integration block of 2023, 11, 3 is the sum 52 of the integral values 5, 8, 13, and 26.
In other embodiments, the effective total integral of the integral block is the sum of the integral having the same expiration time as the expiration time of the integral block and the integral having an expiration time after the expiration time of the integral block. At this time, the to-be-issued integral may affect the effective integral total value of the existing integral block, and in order to ensure the accuracy of the effective integral total value of the affected integral block after the to-be-issued integral is issued, in the embodiment of the present invention, the effective integral total value of the affected integral block may be updated.
Specifically, the valid period of the to-be-issued integral is obtained, wherein the valid period of the to-be-issued integral comprises the effective time and the expiration time of the to-be-issued integral; and determining an integration block influenced by the validity period of the to-be-issued integral according to the validity period of the to-be-issued integral. The integration block affected by the validity period of the to-be-issued integral is an integration block with expiration time between the effective time and expiration time of the to-be-issued integral; and updating the effective total integral value of the integration block influenced by the effective period of the to-be-issued integral based on the integral value of the to-be-issued integral.
As a non-limiting example, referring to fig. 2, there are two integration blocks 1 and 2, and the effective total integration value of each integration block is the sum of the integration value of the same expiration time as the integration block and the integration value of the integration of the expiration time after the expiration time of the integration block. The expiration time of integration block 1 is 2023-10-01 and the effective total integration value is 60. The expiration time of integration block 2 is 2023-10-06 and the effective total integration value is 50. The integral value of the to-be-issued score is 40 and the expiration time is 2024-01-23, and since there is currently no integral block having the same expiration time as the expiration time of the to-be-issued score 2024-01-23, an integral block 3 is created, the expiration time of the integral block 3 is 2024-01-23, and the effective total integral value 40 is recorded, see fig. 3. If the current time is 2023-09-20, the validity period of the to-be-issued integral is 2023-09-24 to 2024-01-23. Since the expiration time of the integration block 1 and the integration block 2 are both within the validity period of the to-be-issued integration, the integration block 1 and the integration block 2 are both integration blocks affected by the validity period of the to-be-issued integration. The effective total integral values of the integration block 1 and the integration block 2 are respectively updated according to the integral value 40 to be transmitted, the updated effective total integral value of the integration block 1 is 100, and the updated effective total integral value of the integration block 2 is 90.
In practical application, there are points deduction conditions caused by consumption points, expiration of points, return and the like of members, and at this time, the points deduction operation is triggered.
In a specific implementation, in response to an integral deduction operation, an integral value and an expiration period of a to-be-deducted integral are determined, wherein the expiration period of the to-be-deducted integral comprises an effective time and an expiration time of the to-be-deducted integral. Determining an integral block influenced by the to-be-deducted integral within the effective period of the to-be-deducted integral, wherein the integral block influenced by the to-be-deducted integral is an integral block with expiration time between the effective time and the expiration time of the to-be-deducted integral; and updating the effective total integral value of the integral block affected by the to-be-deducted integral according to the integral value of the to-be-deducted integral.
In some embodiments, the point details information includes a membership identification, an effective time of each point, an expiration time, and a point status. The integration state includes one or more of the following: the points that have been consumed, points that have not been consumed, expiration, freezing. The effective period of the integral value of the to-be-deducted integral, namely the effective time and the expiration time of the to-be-deducted integral, can be determined based on the integral detail. The points to be deducted can be the same validity period or different validity periods. For example, the integrated value of the to-be-deducted integral is 30, wherein 10 of the integrated values of the to-be-deducted integral is one validity period, and the other 20 is another validity period. For another example, the integral value of the to-be-deducted integral is 20, and the integral value of 20 is the same validity period.
In some embodiments, the credits are deducted sequentially in the order of the expiration time of each of the credits, i.e., the first-to-expire credit is deducted with priority, and the first-to-expire credit refers to the credit whose expiration time is closest to the current time.
Continuing with fig. 3 as an example, the effective total integral value of the integral block in fig. 3 is the sum of the integral having the same expiration time as the expiration time of the integral block and the integral having the expiration time after the expiration time of the integral block. The integral value of the integration to be subtracted is 35. The validity period of the integration value 35 of the to-be-deducted integral can be determined by the integral state in the integral detail information as follows, the expiration time of 10 integration values in the to-be-deducted integral is 2023-10-01, and the expiration time of 25 integration values in the to-be-deducted integral is 2023-10-06. The integration blocks affected by the to-be-deducted integration can be determined as the integration block 1 and the integration block 2 according to the expiration time of the integration value 35 of the to-be-deducted integration. And integration block 1 is affected by an integration value of 35, while integration block 2 is affected by an integration value of 25 because the expiration time of 10 integration values in the to-be-deducted integration is 2023-10-01. Referring to fig. 4, at this time, the effective total integral value of the integration block 1 and the integration block 2 affected by the integration to be deducted is updated according to the integral value of the integration to be deducted, the updated effective total integral value of the integration block 1 is 65, and the updated effective total integral value of the integration block 2 is 65. Since the integration block 3 is not affected by the subtraction of the integration to be deducted, the effective total integration value of the integration block 3 is unchanged, and the effective total integration value is still 40.
In practical applications, there is a need for a member to inquire about a current effective integral value or an effective integral value within a specified period of time, at which time an integral inquiry operation may be triggered. The point query operation may be triggered in a number of ways, such as by triggering a corresponding operation key, such as a "point query" key. The point query operation may also be triggered by an event, such as by a point redemption event.
In particular implementations, a query time is determined in response to an integral query operation; and acquiring a target integral block according to the inquiry time, and determining the effective total integral value of the inquiry based on the effective total integral value of the target integral block, wherein the target integral block is an integral block with the same expiration time as the inquiry time or after the inquiry time and closest to the inquiry time.
In some embodiments, if the effective total integral value of the integral block is the sum of integral values of the integral having the same expiration time as the expiration time of the integral block, obtaining the integral block having the same expiration time as the inquiry time and after the inquiry time as the target integral block, and taking the sum of effective total integral values of the target integral block as the effective total integral value of the inquiry.
In other embodiments, if the effective total integral value of the integral block is the sum of the integral with the expiration time same as the expiration time of the integral block and the integral with the expiration time after the expiration time of the integral block, the integral block with the expiration time same as the query time or after the query time and closest to the query time is obtained as the target integral block, and the effective total integral value of the target integral block is taken as the effective total integral value of the query. That is, by the configuration of the data structure of the valid total integral value of the integration block and the valid period, the valid total integral value of the integration block in each valid period in the future is counted according to the expiration time at the time of the integration issue, so that the valid total integral value of the integration block with the same expiration time as the query is used as the valid total integral value of the query at the time of the query, or the valid total integral value of the integration block which is after the query time and is closest to the query time is used as the valid total integral value of the query, and the real-time calculation according to the per-stroke integration detail information is not needed, thereby improving the integration query efficiency.
In practical applications, since the integration blocks have expiration time, the integration blocks may expire over time, or the effective integration of a certain integration block may be deducted, which results in some invalid integration blocks. To save storage space, in some non-limiting embodiments of the present invention, when it is detected that the integral blocks satisfy a cleaning condition, the integral blocks satisfying the cleaning condition are deleted, the cleaning condition including any one of the following: the effective total integral value of the integral blocks is zero, the expiration time of the integral blocks is reached, and the expiration time of the integral blocks exceeds the set time. The set duration may be one week, one month, one year, or a set duration (e.g., 30 hours, 3 days, 5 days, etc.).
In some non-limiting embodiments, the to-be-transmitted points are recorded in the affiliated point blocks, and each point block records the point detail information of all points of the effective total point values of the point block. For example, the integration block is associated with the integration detail information belonging to the integration block, so that the integration detail information of all the integration belonging to the integration block is recorded by each integration block.
In some embodiments, for each integration block, the integration detail information belonging to the integration block may be used as the attribute information of the integration block, so as to implement recording of the integration detail information of all the integration belonging to the integration block by each integration block.
When the expiration time of the integration block is reached, the integration detail information of all the integrals belonging to the integration block can be quickly positioned according to the expiration time of the integration block, and the integration state of the integration detail information which belongs to the integration block and is influenced by the expiration time can be updated. Or when the integral deduction operation occurs, determining integral detail information corresponding to the integral to be deducted according to the integral detail information of the integral associated with the integral block according to the sequence of the expiration time of the integral block, and updating the integral state of the integral detail information corresponding to the integral to be deducted.
For example, the effective total integral value of an integral block is the sum of integral values of integral points having the same expiration time as the expiration time of the integral block, and integral detail information of integral points having the same expiration time as the expiration time of the integral block is used as attribute information of the integral block, so that the integral block and integral detail information belonging to the integral block are associated, and the integral detail information of all integral points belonging to the integral block is recorded by each integral block. In this case, the information on the integral block and the integral detail information of the integral which is the same as the expiration time of the integral block may be stored in one storage location or may be stored separately.
When the expiration time of the integration block is reached, if the effective total integration value of the integration block is not zero, according to the attribute information of the integration block, the integration detail information of the integration which is the same as the expiration time of the integration block is found, and the integration state in the integration detail is updated. If the point state of the point which is the same as the expiration time of the point block and the point state is the point which is not consumed is updated to be expired. Thus, outdated points can be quickly located, and the efficiency of updating the point state and updating the effective total point value is improved.
When the integral deduction operation occurs, the integral deduction operation can be quickly positioned to the integral detail information of the integral to be deducted according to the sequence of the expiration time of the integral blocks and the attribute information of the integral blocks, and the integral state in the integral detail information of the integral to be deducted is updated. Thus, the efficiency of the integral deduction operation can be improved, and the updating efficiency of the effective total integral value after deduction can be improved.
In some non-limiting embodiments, to ensure timeliness of the point status update of each point, a time schedule may be obtained according to the effective time and the expiration time of each point in the point detail information, the time detail information of the effective time and the expiration time of each point is stored in the time schedule, a scheduling task is configured, the scheduling task is periodically executed to scan the time schedule, and the point status of the point is updated in time. The time range of scanning the time sequence table is the last scheduling time and the current scheduling time.
Referring to fig. 5, the embodiment of the present invention further provides a member score information processing device, where the member score information processing device 50 includes: a first determining unit 51 for determining an integrated value and an expiration time of an integrated value to be issued in response to an integrated value issuing operation; a second determining unit 52, configured to determine an integral block to which the to-be-issued integral belongs according to an expiration time of the to-be-issued integral, where different integral blocks have different expiration times, each integral block records an effective total integral value of the integral block, and the effective total integral value is determined based on a sum of integral values of all integral points having the same expiration time as the expiration time of the integral block; an updating unit 53, configured to update the effective total integrated value of the belonging integration block according to the integrated value of the to-be-issued integration.
In a specific implementation, the member score information processing device 50 may be used to implement the member score information processing method provided in any of the foregoing embodiments, where the member score information processing device 50 includes corresponding units for implementing each step in the member score information processing method, and the specific working principle and workflow of the member score information processing device 50 may be referred to the description in the foregoing embodiment about the member score information processing method, which is not repeated herein.
The embodiment of the present invention also provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the member score information processing method provided in any of the above embodiments of the present invention.
The computer readable storage medium may include non-volatile memory (non-volatile) or non-transitory memory, and may also include optical disks, mechanical hard disks, solid state disks, and the like.
It should also be appreciated that the memory in embodiments of the present application may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an electrically Erasable ROM (Electrically EPROM, EEPROM), or a flash Memory. The volatile memory may be a random access memory (Random Access Memory, RAM for short) which acts as an external cache. The embodiment of the invention also provides a terminal, which comprises a memory and a processor, wherein the memory stores a computer program capable of running on the processor, and the processor executes the steps of the member point information processing method provided by any embodiment when running the computer program.
The memory is coupled to the processor and may be located within the terminal or external to the terminal. The memory and the processor may be connected by a communication bus.
The terminal can include, but is not limited to, a mobile phone, a computer, a tablet computer and other terminal equipment, and can also be a server, a cloud platform and the like.
The above embodiments may be implemented in whole or in part by software, hardware, firmware, or any other combination. When implemented in software, the above-described embodiments may be implemented in whole or in part in the form of a computer program product. The computer program product comprises one or more computer instructions or computer programs. When the computer instructions or computer program are loaded or executed on a computer, the processes or functions described in accordance with the embodiments of the present application are all or partially produced. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer program may be stored in or transmitted from one computer readable storage medium to another, for example, by wired or wireless means from one website, computer, server, or data center.
In the several embodiments provided in the present application, it should be understood that the disclosed method, apparatus, and system may be implemented in other manners. For example, the device embodiments described above are merely illustrative; for example, the division of the units is only one logic function division, and other division modes can be adopted in actual implementation; for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may be physically included separately, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in hardware plus software functional units. For example, for each device or product applied to or integrated on a chip, each module/unit included in the device or product may be implemented in hardware such as a circuit, or at least part of the modules/units may be implemented in software program, where the software program runs on a processor integrated inside the chip, and the rest (if any) of the modules/units may be implemented in hardware such as a circuit; for each device and product applied to or integrated in the chip module, each module/unit contained in the device and product can be realized in a hardware manner such as a circuit, different modules/units can be located in the same component (such as a chip, a circuit module and the like) or different components of the chip module, or at least part of the modules/units can be realized in a software program, the software program runs on a processor integrated in the chip module, and the rest (if any) of the modules/units can be realized in a hardware manner such as a circuit; for each device, product, or application to or integrated with the terminal, each module/unit included in the device, product, or application may be implemented by using hardware such as a circuit, different modules/units may be located in the same component (for example, a chip, a circuit module, or the like) or different components in the terminal, or at least part of the modules/units may be implemented by using a software program, where the software program runs on a processor integrated inside the terminal, and the remaining (if any) part of the modules/units may be implemented by using hardware such as a circuit.
The term "plurality" as used in the embodiments herein refers to two or more.
The first and second descriptions in the embodiments of the present application are only used for illustrating and distinguishing the description objects, and no order division is adopted, nor is the number of devices in the embodiments of the present application specified, and no limitation on the embodiments of the present application should be construed.
It should be noted that the serial numbers of the steps in the present embodiment do not represent a limitation on the execution sequence of the steps.
Although the present invention is disclosed above, the present invention is not limited thereto. Various changes and modifications may be made by one skilled in the art without departing from the spirit and scope of the invention, and the scope of the invention should be assessed accordingly to that of the appended claims.

Claims (12)

1. A method of processing membership point information, comprising:
determining an integral value and an expiration time of an integral to be issued in response to the integral issuing operation;
determining an integral block to which the to-be-issued integral belongs according to the expiration time of the to-be-issued integral, wherein different integral blocks have different expiration times, each integral block records an effective total integral value of the integral block, and the effective total integral value is determined based on the sum of integral values of all integral blocks with the same expiration time as the expiration time of the integral block;
and updating the effective total integral value of the affiliated integral block according to the integral value of the integral to be issued.
2. The method of processing membership point information as in claim 1, wherein said determining an integrated value and an expiration time of an integrated value to be issued in response to an integrated value issuing operation includes:
if the newly added integral record is detected, judging to trigger integral issuing operation, and responding to the integral issuing operation to obtain integral detail information of the newly added integral record, wherein the integral detail information comprises an integral value of an integral to be issued, effective time of the integral to be issued and expiration time of the integral to be issued;
and determining the integral value of the to-be-sent integral and the expiration time of the to-be-sent integral according to the integral detail of each newly added integral record.
3. The method for processing member credit information according to claim 1, wherein said determining a credit block to which the to-be-transmitted credit belongs according to an expiration time of the to-be-transmitted credit includes:
judging whether an integral block with the same expiration time as the expiration time of the to-be-issued integral exists or not according to the expiration time of the to-be-issued integral;
if the integral blocks with the same expiration time as the to-be-issued integral exist, taking the integral blocks with the same expiration time as the integral blocks to which the to-be-issued integral belongs;
if no integral block with the expiration time identical to that of the to-be-issued integral exists, a new integral block is created as the integral block to which the to-be-issued integral belongs.
4. The method of processing membership point information as in claim 3, wherein the effective total point value of the integration block is a sum of points whose expiration time is the same as that of the integration block and points whose expiration time is after the expiration time of the integration block, the membership point information processing method further comprising:
acquiring the validity period of the to-be-issued integral, wherein the validity period of the to-be-issued integral comprises the effective time and the expiration time of the to-be-issued integral;
determining an integral block influenced by the validity period of the to-be-issued integral according to the validity period of the to-be-issued integral, wherein the integral block influenced by the validity period of the to-be-issued integral is an integral block with expiration time between the effective time and the expiration time of the to-be-issued integral;
and updating the effective total integral value of the integration block influenced by the effective period of the to-be-issued integral based on the integral value of the to-be-issued integral.
5. The method for processing member score information as claimed in claim 1, further comprising:
determining an integral value and an effective period of the to-be-deducted integral in response to the integral deduction operation, wherein the effective period of the to-be-deducted integral comprises effective time and expiration time of the to-be-deducted integral;
determining an integral block influenced by the to-be-deducted integral within the effective period of the to-be-deducted integral, wherein the integral block influenced by the to-be-deducted integral is an integral block with expiration time between the effective time and the expiration time of the to-be-deducted integral;
and updating the effective total integral value of the integral block affected by the to-be-deducted integral according to the integral value of the to-be-deducted integral.
6. The method for processing member score information as claimed in claim 1, further comprising:
determining a query time in response to the integral query operation;
and acquiring a target integral block according to the inquiry time, and determining the effective total integral value of the inquiry based on the effective total integral value of the target integral block, wherein the target integral block is an integral block with the same expiration time as the inquiry time or after the inquiry time and closest to the inquiry time.
7. The method of claim 6, wherein the acquiring the target integral block according to the inquiry time, determining the effective total integral value of the inquiry based on the effective total integral value of the target integral block, comprises:
if the effective total integral value of the integral blocks is the sum of integral values of integral blocks with the same expiration time as the expiration time of the integral blocks, acquiring the integral blocks with the same expiration time as the inquiry time and after the inquiry time as the target integral blocks, and taking the sum of the effective total integral values of the target integral blocks as the effective total integral value of the inquiry;
and if the effective total integral value of the integral block is the sum of the integral with the same expiration time as the expiration time of the integral block and the integral with the expiration time after the expiration time of the integral block, acquiring the integral block with the same expiration time as the inquiry time or after the inquiry time and closest to the inquiry time as the target integral block, and taking the effective total integral value of the target integral block as the effective total integral value of the inquiry.
8. The method for processing member score information as claimed in claim 1, further comprising:
when the integral blocks are detected to meet the cleaning conditions, deleting the integral blocks meeting the cleaning conditions, wherein the cleaning conditions comprise any one of the following:
the effective total integral value of the integral blocks is zero, the expiration time of the integral blocks is reached, and the expiration time of the integral blocks exceeds the set time.
9. The method for processing member score information as claimed in claim 1, further comprising:
and recording the to-be-transmitted integral in the corresponding integral block, wherein each integral block records the integral detail information of all integral of the effective total integral values of the integral block.
10. A member point information processing apparatus, comprising:
a first determination unit configured to determine an integrated value and an expiration time of an integrated value to be issued in response to an integrated value issuing operation;
a second determining unit, configured to determine an integral block to which the to-be-issued integral belongs according to an expiration time of the to-be-issued integral, where different integral blocks have different expiration times, each integral block records an effective total integral value of the integral block, and the effective total integral value is determined based on a sum of integral values of all integral blocks having the same expiration time as the expiration time of the integral block;
and the updating unit is used for updating the effective total integral value of the affiliated integral block according to the integral value of the integral to be issued.
11. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, performs the steps of the method of processing member point information according to any one of claims 1 to 9.
12. A terminal comprising a memory and a processor, the memory having stored thereon a computer program executable on the processor, characterized in that the processor executes the steps of the method for processing membership point information according to any one of claims 1 to 9 when the computer program is executed.
CN202410063129.0A 2024-01-16 2024-01-16 Member point information processing method and device, readable storage medium and terminal Active CN117611249B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410063129.0A CN117611249B (en) 2024-01-16 2024-01-16 Member point information processing method and device, readable storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410063129.0A CN117611249B (en) 2024-01-16 2024-01-16 Member point information processing method and device, readable storage medium and terminal

Publications (2)

Publication Number Publication Date
CN117611249A true CN117611249A (en) 2024-02-27
CN117611249B CN117611249B (en) 2024-04-16

Family

ID=89956428

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410063129.0A Active CN117611249B (en) 2024-01-16 2024-01-16 Member point information processing method and device, readable storage medium and terminal

Country Status (1)

Country Link
CN (1) CN117611249B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003168165A (en) * 2001-11-29 2003-06-13 Nec Infrontia Corp Expiration date information system
CN108510333A (en) * 2018-04-27 2018-09-07 厦门南讯软件科技有限公司 A kind of more clients integrate the processing method and processing device of fast-aging
CA3049861A1 (en) * 2017-04-11 2018-10-18 10353744 Canada Ltd. Points employment system and points employment program
CN109409958A (en) * 2018-10-29 2019-03-01 四川长虹电器股份有限公司 Integrate the method that balance of points is quickly updated in expired system
CN111192088A (en) * 2019-12-27 2020-05-22 万翼科技有限公司 Method and apparatus for determining settlement target of point and computer readable storage medium
CN112328600A (en) * 2020-11-16 2021-02-05 北京首汽智行科技有限公司 Electronic coupon management method
CN114119085A (en) * 2021-11-17 2022-03-01 南京星云数字技术有限公司 Method and device for point consumption, computer equipment and storage medium
CN115344581A (en) * 2022-08-17 2022-11-15 深圳市神州路路通网络科技有限公司 Integration processing method, device, equipment and computer readable storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003168165A (en) * 2001-11-29 2003-06-13 Nec Infrontia Corp Expiration date information system
CA3049861A1 (en) * 2017-04-11 2018-10-18 10353744 Canada Ltd. Points employment system and points employment program
CN108510333A (en) * 2018-04-27 2018-09-07 厦门南讯软件科技有限公司 A kind of more clients integrate the processing method and processing device of fast-aging
CN109409958A (en) * 2018-10-29 2019-03-01 四川长虹电器股份有限公司 Integrate the method that balance of points is quickly updated in expired system
CN111192088A (en) * 2019-12-27 2020-05-22 万翼科技有限公司 Method and apparatus for determining settlement target of point and computer readable storage medium
CN112328600A (en) * 2020-11-16 2021-02-05 北京首汽智行科技有限公司 Electronic coupon management method
CN114119085A (en) * 2021-11-17 2022-03-01 南京星云数字技术有限公司 Method and device for point consumption, computer equipment and storage medium
CN115344581A (en) * 2022-08-17 2022-11-15 深圳市神州路路通网络科技有限公司 Integration processing method, device, equipment and computer readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
丁辰;: "别浪费你的会员积分", 理财周刊, no. 46, 16 December 2019 (2019-12-16), pages 46 - 47 *

Also Published As

Publication number Publication date
CN117611249B (en) 2024-04-16

Similar Documents

Publication Publication Date Title
CN109857737B (en) Cold and hot data storage method and device and electronic equipment
CN105827706B (en) Message pushing device and method
CN107943718B (en) Method and device for cleaning cache file
CN110489063B (en) Method and device for setting cache expiration time, electronic equipment and storage medium
CN107092628B (en) Time series data processing method and device
CN113486036B (en) Virtual resource management method and device, electronic equipment and storage medium
CN110659971B (en) Transaction data processing method and device
CN111339158A (en) Method and device for processing information, electronic equipment and storage medium
CN117611249B (en) Member point information processing method and device, readable storage medium and terminal
CN110955639A (en) Data processing method and device
CN111061654B (en) Cache refreshing processing method and device and electronic equipment
CN111913913A (en) Access request processing method and device
CN115002187B (en) Binding relation processing method and related equipment
CN107295059A (en) The statistical system and method for service propelling amount
CN111131393B (en) User activity data statistical method, electronic device and storage medium
CN107589907B (en) Data processing method, electronic device and computer readable storage medium
CN110597830A (en) Real-time index generation method and system, electronic device and storage medium
CN112102014B (en) Method and device for recording user resources
CN108805778B (en) Electronic device, method for collecting credit investigation data and storage medium
CN111640027A (en) Service data processing method, service data processing device, service processing device and electronic equipment
CN111401969A (en) Method, device, server and storage medium for improving user retention rate
CN114912880A (en) False duty processing method and device, computer equipment and storage medium
CN111737209A (en) File cleaning method and related equipment thereof
CN112015758B (en) Product code-fetching method, device, computer equipment and storage medium
CN110990640A (en) Data determination method, device, equipment and computer readable 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