Service renewal data processing method and device

By combining the usage time range of the basic service package and the renewal service package, the service package is postponed and effective, solving the problem of overlapping service package validity periods in the existing technology, and improving the user experience.

CN119673393APending Publication Date: 2025-03-21BEIJING JINGDONG TUOXIAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311219911.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-20
Publication Date
2025-03-21

AI Technical Summary

Technical Problem

The existing technology cannot meet the business needs of users to expect the newly purchased service package to take effect after the current service package expires, resulting in poor user experience.

Method used

By responding to the user's renewal order, obtain the available time of the renewal service package, and merge the actual usage time range of the basic service package with the available time range of the renewal service package to form the actual usage time range of the aggregated service package to achieve service renewal.

Benefits of technology

It solves the problem of overlapping validity periods caused by the immediate effect of service packages, realizes the delayed effectiveness of service packages, reduces the number of user interactions and business complexity, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119673393A_ABST
    Figure CN119673393A_ABST
Patent Text Reader

Abstract

The invention discloses a service renewal data processing method and device, and relates to the technical field of intelligent medical treatment. A specific embodiment of the method comprises the steps of receiving a renewal order completion instruction which is triggered by a user and carries a renewal service package identifier in response to the fact that a basic service package of the user is in an effective state, and obtaining available duration of the renewal service package; and combining the actual use time range of the basic service package with the available duration of the renewal service package to obtain the actual use time range of an aggregation service package formed based on the basic service package and the renewal server. According to the embodiment, service renewal can be realized based on the renewal service package.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of smart medical technology, and in particular to a service renewal data processing method and device. Background Art

[0002] In current online healthcare solutions, users can obtain benefits such as accompanying patients and registration by purchasing service packages. However, in existing technologies, after users purchase a service package, the service package will automatically take effect at the time of purchase. However, the user may already have an effective service package and hopes that the newly purchased service package will take effect after the current service package expires. Existing technologies cannot meet this business requirement, resulting in poor user experience. Summary of the invention

[0003] In view of this, an embodiment of the present invention provides a service renewal data processing method and device, which can realize service renewal based on a renewal service package.

[0004] To achieve the above objective, according to one aspect of the present invention, a service renewal data processing method is provided.

[0005] The service renewal data processing method of the embodiment of the present invention includes: in response to a user's basic service package being in an effective state, receiving a renewal order completion instruction triggered by the user and carrying a renewal service package identifier, and obtaining the available duration of the renewal service package; merging the actual usage time range of the basic service package with the available duration of the renewal service package to obtain the actual usage time range of an aggregated service package formed based on the basic service package and the renewal server.

[0006] Optionally, the actual usage time range is a time period between a service effective time and a service expiration time, and the number of the renewal service packages is greater than or equal to 1; and the actual usage time range of the basic service package is combined with the available duration of the renewal service package to obtain the actual usage time range of the aggregate service package formed based on the basic service package and the renewal server, including: arranging the basic service package and at least one renewal service package into a queue in ascending order according to the order submission time, and taking the service expiration time of the basic service package at the head of the queue as a fixed value; starting from the basic service package, determining the service effective time of the later original service package of any two adjacent original service packages to be equal to the service expiration time of the previous original service package, and determining the difference between the service expiration time and the service effective time of any original service package to be equal to the available duration of the original service package, to obtain the actual usage time range of each original service package; wherein the original service package includes the basic service package and the renewal service package; and determining the time period between the service effective time of the basic service package and the service expiration time of the original service package at the end of the queue as the actual usage time range of the aggregate service package.

[0007] Optionally, the service package includes rights and interests; and any renewal service package is limited to: including the same rights and interests as the basic service package.

[0008] Optionally, the method further includes: receiving a first order completion instruction triggered by the user and containing the basic service package identifier, obtaining detailed data of the basic service package and detailed data of the rights and interests items in the basic service package; using the first data table of the first database to save the detailed data of the basic service package, and using the second data table of the first database to save the detailed data of the rights and interests items in the basic service package.

[0009] Optionally, the method further includes: receiving the renewal order completion instruction, obtaining the detailed data of the renewal service package indicated by the renewal service package, and the detailed data of the benefits items in the renewal service package; using a first data table to save the detailed data of the renewal service package, and using a second data table to save the detailed data of the benefits items in the renewal service package.

[0010] Optionally, the detailed data of any basic service package includes: the identification of the user, the identification of the basic service package, the actual usage time range of the basic service package, and the current status of the basic service package; the detailed data of any renewal service package includes: the identification of the user, the identification of the renewal service package, the actual usage time range of the renewal service package, the current status of the renewal service package, and the identification of the basic service package associated with the renewal service package; the detailed data of any benefit item in any original service package includes: the identification of the benefit item, the actual usage time range of the benefit item in the original service package to which it belongs, the current status of the benefit item, and the identification of the original service package to which the benefit item belongs; wherein, the actual usage time range of the benefit item in the original service package to which it belongs is equal to the actual usage time range of the original service package.

[0011] Optionally, the aggregated data of the aggregated service package is stored in the third data table of the second database, and the aggregated data of the rights and interests items in the aggregated service package is stored in the fourth data table of the second database; wherein, the aggregated data of the aggregated service package includes: the identifier of the user, the identifier of the aggregated service package, the actual usage time range of the aggregated service package obtained after the merging, and the current status of the aggregated service package; the aggregated data of any rights and interests item in the aggregated service package includes: the identifier of the rights and interests item, the actual usage time range of the rights and interests item in the aggregated service package obtained after the merging, and the identifier of the aggregated service package to which the rights and interests item belongs; wherein, the actual usage time range of the rights and interests item in the aggregated service package is equal to the actual usage time range of the aggregated service package.

[0012] Optionally, the actual usage time range of the basic service package is combined with the available duration of the renewal service package to obtain the actual usage time range of the aggregated service package formed based on the basic service package and the renewal server, including: when a record of the renewal service package of the user is newly added to the first data table, calculating the aggregated data of the aggregated service package according to the newly added record and the original service package record of the user in the first data table and saving it in a third data table; calculating the aggregated data of the equity items in the aggregated service package according to the calculated aggregated data of the aggregated service package and the equity item identifier in the basic service package, and saving the calculated aggregated data in a fourth data table.

[0013] Optionally, the current state includes a state to be effective, a state to be effective and an invalid state; and the method further includes: when the current time moves to the service effectiveness time of any service package, the current state of the service package is switched from the state to be effective to the state to be effective, and a state switching notification is issued to the predetermined object; wherein the service package includes the original service package and the aggregated service package; when the current time moves to a service deadline time greater than any service package, the current state of the service package is switched from the state to be effective to the invalid state, and a state switching notification is issued to the predetermined object.

[0014] The method further includes: receiving a validity period details query request for a specific original service package or a specific benefit item in the specific original service package, obtaining and returning the query result based on the first data table or the second data table; receiving a validity period aggregation query request for the service package or benefit item under the user dimension, obtaining and returning the query result based on the third data table or the fourth data table.

[0015] Optionally, the method further includes: receiving a return request for the basic service package issued by the user, setting the basic service package record and the renewal service package record associated with the basic service package in the first data table to a "returned" status, and setting the benefit item records under the basic service package and the renewal service package in the second data table, the aggregated service package record corresponding to the basic service package in the third data table, and the benefit item record under the aggregated service package in the fourth data table to a "returned" status; receiving a return request for any renewal service package issued by the user, determining the current basic service package, or the basic service package and the renewal service package, and then recalculating the actual usage time range of each original service package and the aggregated service package, and using the calculation results to update the relevant records in the first data table, the second data table, the third data table and the fourth data table.

[0016] Optionally, the detailed data or aggregated data of any service package further includes at least one of the following: the type, name, and association status of the service package with the renewal service package; the detailed data or aggregated data of any equity item further includes: the name of the equity item; the equity item is divided into multiple equity groups according to the equity item attributes, the first database further includes a fifth data table for storing the detailed data of each equity group under the original service package, and the second database further includes a sixth data table for storing the aggregated data of each equity group under the aggregated service package; the first database includes a relational database, and the second database includes an Elastic Search ES database.

[0017] To achieve the above objective, according to another aspect of the present invention, a service renewal data processing device is provided.

[0018] The service renewal data processing device of the embodiment of the present invention may include: a data preparation unit, used to: in response to a user's basic service package being in an effective state, receive a renewal order completion instruction triggered by the user and carrying a renewal service package identifier, and obtain the available duration of the renewal service package; a merging unit, used to merge the actual usage time range of the basic service package with the available duration of the renewal service package to obtain the actual usage time range of an aggregated service package formed based on the basic service package and the renewal server.

[0019] To achieve the above objective, according to another aspect of the present invention, an electronic device is provided.

[0020] An electronic device of the present invention includes: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the service renewal data processing method provided by the present invention.

[0021] To achieve the above objective, according to yet another aspect of the present invention, a computer-readable storage medium is provided.

[0022] A computer-readable storage medium of the present invention stores a computer program, which, when executed by a processor, implements the service renewal data processing method provided by the present invention.

[0023] According to the technical solution of the present invention, the embodiments of the above invention have the following advantages or beneficial effects:

[0024] When the user's basic service package is in an effective state, after the server monitors that the renewal order is completed, it determines the available time of the renewal service package indicated by the renewal order, and merges the actual use time range of the basic service package with the available time range of the renewal service package, so as to obtain the actual use time range of the basic service package and each renewal service package postponed according to the order submission time, and the actual use time range of the aggregated service package formed based on the basic service package and the renewal server. In this way, the service renewal based on the renewal service package is realized, and the renewal service package will not take effect immediately after purchase, but will take effect after the previous service package expires according to the order submission time of each service package, which solves the problem of overlapping service package validity periods (actual use time ranges) caused by the immediate effectiveness of service packages in the prior art, and the validity period merging strategy based on the aggregated service package can realize the validity period merging and aggregation and query display of the basic service card and the renewal service card for the same user, avoiding the disadvantage that the user needs to frequently switch between different membership certificates to calculate the total validity period, thereby reducing the number of interactions and business complexity, and improving user experience.

[0025] Furthermore, the embodiment of the present invention sets a first database in a data heterogeneous manner to store the detailed data of the original service package and its rights and interests, and sets a second database to store the aggregated data of the aggregated service package and its rights and interests. The first database can adopt a relational database to meet the query of specific service packages and specific rights and interests item details or usage records. The second database can adopt an ES database with higher query performance to meet the more general aggregate query of the validity period of service packages and rights and interests items under the name of the user, thereby realizing the aggregate display of multiple service packages under the premise of meeting multiple query requirements. At the same time, the dual database heterogeneous mode can ensure that the system has high read and write performance and stability as well as fast query response. In addition, the embodiment of the present invention also designs the processing flow of transactions such as basic service package order fulfillment, renewal service package order fulfillment, validity period merger between basic service package and renewal service package, status conversion judgment and notification of service package and rights and interests item, user query, service package return, etc. based on the above dual database architecture, so as to ensure high availability of the system under the premise of meeting business requirements.

[0026] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0028] Figure 1 It is a schematic diagram of the main steps of the service renewal data processing method in an embodiment of the present invention;

[0029] Figure 2 is a flow chart of a service renewal data processing method in a first embodiment of the present invention;

[0030] Figure 3 is an interactive schematic diagram of a service renewal data processing method in a first embodiment of the present invention;

[0031] Figure 4 It is a schematic diagram of components of a service renewal data processing device in an embodiment of the present invention;

[0032] Figure 5 is an exemplary system architecture diagram in which embodiments of the present invention may be applied;

[0033] Figure 6 It is a schematic diagram of the structure of an electronic device used to implement the service renewal data processing method in an embodiment of the present invention. DETAILED DESCRIPTION

[0034] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0035] The technical solution of the present invention can be applied to online medical and health scenarios. The following description will take this scenario as an example, but the technical solution of the present invention is not limited to this scenario and can also be applied to any other applicable scenarios involving service performance. It should be pointed out that the embodiments of the present invention and the technical features in the embodiments can be combined with each other without conflict.

[0036] Figure 1 2 is a schematic diagram of main steps of a method for processing service renewal data according to an embodiment of the present invention.

[0037] like Figure 1 As shown, the service renewal data processing method of the embodiment of the present invention can be executed by a rights and interests platform, which can be a dedicated server or computer system. The specific steps are as follows:

[0038] Step S101: In response to the user's basic service package being in an effective state, receiving a renewal order completion instruction triggered by the user and carrying a renewal service package identifier, and obtaining the available duration of the renewal service package.

[0039] In an embodiment of the present invention, a service package is a data object that encapsulates a certain service. Each service package generally has an available duration and contains at least one benefit item such as registration, accompanying a doctor, etc. Each benefit item may have a name and an available number of times, or it may be unlimited use within the effective time of the service package. The time range in which the service package takes effect is called the actual use time range (also referred to as the validity period), which is limited by the service effective time and the service deadline. The basic service package may be a service package obtained by the user through the first order for the service package, and the renewal service package is a service package purchased by the user for renewal after the basic service package. The number of renewal service packages in this step may be more than one, and the basic service package and the renewal service package may be collectively referred to as the original service package, and the original service package and the aggregated service package to be described later may be collectively referred to as the service package. Optionally, the benefit items may be divided into multiple benefit groups according to the different attributes of the benefit items, and the service package, benefit group, and benefit item thus form a sequential inclusion relationship. Judging from the actual use time range, the status of the service package and the benefit item may include a pending effective state, an effective state, and an invalid state.

[0040] In this step, when the rights platform determines that the user's basic service package is in an effective state and the renewal order submitted by the user with the renewal service package logo is completed (order completion means that the user has obtained the goods in the order after the order payment is completed), the available time of the renewal service package is determined by the renewal service package logo. Generally, renewal orders can be created and submitted through specific buttons set on the user terminal interface. In actual applications, any renewal service package can be pre-defined as having the same rights and interests as the basic service package, that is, having the same number of rights and interests and the same SKU for each rights and interests item, which helps to simplify business logic and user operations.

[0041] Step S102: The actual usage time range of the basic service package is combined with the available time of the renewal service package to obtain the actual usage time range of the aggregated service package formed based on the basic service package and the renewal service package.

[0042] In this step, the equity platform may combine the basic service package and at least one renewal service package into an aggregated service package, and determine the actual usage time range of the aggregated service package according to the actual usage time range of the basic service package and the available time of the renewal service package. The specific execution steps are as follows:

[0043] The rights and interests platform first arranges the basic service package and at least one renewal service package into a queue in ascending order according to the order submission time, and takes the service deadline of the basic service package at the head of the queue as a fixed value. Then, starting from the basic service package, the rights and interests platform determines the service effective time of the later original service package in any two adjacent original service packages to be equal to the service deadline of the previous original service package, and determines the difference between the service deadline and the service effective time of any original service package to be equal to the available time of the original service package, thereby obtaining the actual use time range of each original service package, and determines the time period from the service effective time of the basic service package to the service deadline of the original service package at the end of the queue as the actual use time range of the aggregated service package. In other words, the rights and interests platform starts from the actual use time range of the fixed basic service package and postpones the validity of each renewal service package in order from the smallest to the largest order of order submission time, thereby obtaining the actual use time range of each renewal service package, and finally determines the maximum time range of all service packages (i.e., the time period from the service effective time of the basic service package to the service deadline of the original service package at the end of the queue) as the actual use time range of the aggregated service package. Based on the above steps, the renewal service package will not take effect immediately after purchase, but will take effect after the previous service package expires according to the order submission time of each service package, thereby solving the problem of overlapping service package validity periods caused by the immediate effectiveness of service packages in the prior art.

[0044] In particular, in an embodiment of the present invention, the relevant data of the original service package and the aggregated service package can be stored separately in two databases in a data heterogeneous manner. Specifically, in response to the completion of the first order submitted by the user and containing the basic service package identifier, the rights and interests platform determines the detailed data of the basic service package and the detailed data of the rights and interests items in the basic service package, and stores the detailed data of the basic service package in the first data table of the first database, and stores the detailed data of the rights and interests items in the basic service package in the second data table of the first database. In response to the completion of the renewal order, the rights and interests platform determines the detailed data of the renewal service package indicated by the renewal service package and the detailed data of the rights and interests items in the renewal service package, and stores the detailed data of the renewal service package in the first data table, and stores the detailed data of the rights and interests items in the renewal service package in the second data table. Through the above steps, the rights and interests platform realizes the database storage of the detailed data of the basic service package and the renewal service package and the detailed data of the rights and interests items therein.

[0045] Exemplarily, the detailed data of any basic service package may include: the user's identification, the identification of the basic service package, the actual use time range of the basic service package, and the current status of the basic service package (including the pending effective status, the effective status, and the invalid status); the detailed data of any renewal service package may include: the user's identification, the identification of the renewal service package, the actual use time range of the renewal service package, the current status of the renewal service package, and the identification of the basic service package associated with the renewal service package; the detailed data of any benefit item in any original service package may include: the identification of the benefit item, the actual use time range of the benefit item in the original service package to which it belongs, the current status of the benefit item, and the identification of the original service package to which the benefit item belongs; wherein the actual use time range of the benefit item in the original service package to which it belongs is equal to the actual use time range of the original service package. In actual applications, the first database may be a relational database such as Mysql, and the first data table and the second data table may be database tables in Mysql.

[0046] Preferably, the aggregated data of the aggregated service package is stored in the third data table of the second database, and the aggregated data of the rights and interests items in the aggregated service package is stored in the fourth data table of the second database; wherein, the aggregated data of the aggregated service package may include: the user's identifier, the identifier of the aggregated service package, the actual usage time range of the aggregated service package obtained through the above merger, and the current status of the aggregated service package; the aggregated data of any rights and interests item in the aggregated service package may include: the identifier of the rights and interests item, the actual usage time range of the rights and interests item in the aggregated service package obtained through the above merger, and the identifier of the aggregated service package to which the rights and interests item belongs; wherein, the actual usage time range of the rights and interests item in the aggregated service package is equal to the actual usage time range of the aggregated service package. Exemplarily, the second database may be an elastic search ES database with strong search performance, and the third data table and the fourth data table may be of type type in ES, thereby satisfying more general aggregate queries on service packages and rights and interests items under a user's name.

[0047] In actual applications, the detailed data or aggregated data of any service package may also include at least one of the following: the type of the service package (indicating whether the service package is a basic service package, a renewal service package or an aggregated service package), the name, and the association status of the renewal service package; the detailed data or aggregated data of any benefit item further includes: the name of the benefit item.

[0048] The merging logic for the basic service package and the renewal service package is as follows. In response to monitoring the record of the renewal service package of the newly added user in the first data table, the rights and interests platform calculates the aggregated data of the aggregated service package based on the newly added record and the original service package record of the user in the first data table and stores it in the third data table, and calculates the aggregated data of the rights and interests items in the aggregated service package based on the calculated aggregated data of the aggregated service package and the rights and interests item identifier in the basic service package, and stores the calculated aggregated data in the fourth data table. The above calculation process is the merged calculation of the aforementioned basic service package and the renewal service package. In this way, the third data table and the fourth data table can provide data support for the aggregated service package through the aggregated data therein.

[0049] The following describes the status switching and notification methods for service packages and rights items. When the current time moves to the service effective time of any service package, the rights platform switches the current status of the service package from the pending effective state to the effective state, and sends a status switching notification to the predetermined object (such as a user terminal or a specific service end); when the current time moves to a time greater than the service expiration time of any service package, the rights platform switches the current status of the service package from the effective state to the invalid state, and sends a status switching notification to the predetermined object.

[0050] The following describes the validity query process of service packages and rights and interests items. In response to a query request for validity details issued by a user for a specific original service package or a specific rights and interests item in a specific original service package, the rights and interests platform obtains and returns the query result based on the first data table or the second data table; in response to a query request for validity aggregation of service packages or rights and interests items issued by a user under the user dimension, the rights and interests platform obtains and returns the query result based on the third data table or the fourth data table. In this way, the embodiment of the present invention sets a first database in a data heterogeneous manner to store the detailed data of the original service package and its rights and interests items, and sets a second database to store the aggregated data of the aggregated service package and its rights and interests items. The first database can use a relational database to meet the query for the detailed information or usage records of a specific service package and a specific rights and interests item. The second database can use an ES database with higher query performance and convenient paging query, so as to meet the more general user name service package validity period and rights and interests item validity period aggregation query, thereby realizing the aggregation display of multiple service packages under the premise of meeting multiple query requirements, and at the same time, the dual database heterogeneous mode can ensure that the system has high read and write performance and stability and fast query response.

[0051] The following describes the return process (i.e., reverse) of service packages and rights and interests items. In response to a return request for a basic service package issued by a user, the rights and interests platform marks the basic service package record and the renewal service package record associated with the basic service package in the first data table as "returned" status, and marks the rights and interests item records under the basic service package and the renewal service package in the second data table, the aggregated service package records corresponding to the basic service package in the third data table, and the rights and interests item records under the aggregated service package in the fourth data table as "returned" status. Records marked as "returned" status can be used as invalid data, thereby achieving the invalidation of the basic service package and each renewal service package.

[0052] In response to a user's request to return any renewal service package, the rights and interests platform determines the current basic service package, or the basic service package and the renewal service package, and then recalculates the actual usage time range of each original service package and the aggregated service package (the calculation method is the same as the aforementioned combined calculation method of the validity period of the basic service package and the renewal service package), and uses the calculation results to update the service package and rights and interests item records in the first data table, the second data table, the third data table and the fourth data table. It can be understood that the return of any service package will result in the migration of the validity period of the aggregated service package (that is, the service deadline is moved forward).

[0053] In an optional technical solution, the first database may further include a fifth data table for storing the detailed data of each equity group under the original service package, and the second database may further include a sixth data table for storing the aggregated data of each equity group under the aggregated service package. The equity group detailed data and aggregated data in the fifth and sixth data tables can be used to synchronize the equity group data in order fulfillment, service package merging, service package and equity item status switching, and service package reversal, and can also provide users with queries on the equity group detailed data and aggregated data.

[0054] Figure 2 FIG. 1 is a flow chart of a method for processing service renewal data in a first embodiment of the present invention. Figure 2 As shown in the figure, the equity platform can provide general data processing and service renewal logic, and the business end can call the equity platform to implement corresponding business functions. After the business end issues the service package, the equity platform performs the association between the basic service package and the renewal service package, and performs the calculation of the validity extension. After the business end uses the service package, the equity platform can provide functions such as validity query, status conversion, and validity notification. After the business end executes the return service, the equity platform will re-execute the validity calculation to achieve the forward shift of the validity period.

[0055] Figure 3 is an interactive schematic diagram of the service renewal data processing method in the first embodiment of the present invention, see Figure 3 . The configuration end is used to execute the predetermined parameter configuration and logic configuration. Its execution actions are: create equity items, create service packages, set equity groups, set matching conditions for matching renewal service packages with basic service packages (for example, requiring renewal service packages to have the same equity items as basic service packages), and store relevant data in the database. When the business end executes the first purchase service, the equity platform sends the basic service package and executes the general order fulfillment logic and finally stores the data in the database. When the business end executes the detailed query service, the equity platform queries the Mysql database. When the business end executes the aggregate query service, the equity platform queries the ES database. When the business end executes the renewal service, the equity platform issues the renewal service package, verifies whether the renewal service package meets the pre-configured matching conditions, binds the renewal service package with the basic service package, obtains data from other fields, executes the general renewal logic, and stores the data in the database. When the business end executes the service use, the equity platform performs equity deduction processing. When the business end executes the reverse service, the equity platform invalidates the corresponding basic service package or renewal service package. In the above process, the equity platform monitors the changes in the Mysql database and then synchronizes the ES database. It can also synchronize the data in the preset cache.

[0056] In the technical solution of the embodiment of the present invention, when the basic service package of the user is in the effective state, after the server monitors the completion of the renewal order, it determines the available time of the renewal service package indicated by the renewal order, and merges the actual use time range of the basic service package with the available time range of the renewal service package, so as to obtain the actual use time range of the basic service package and each renewal service package postponed according to the order submission time, and the actual use time range of the aggregated service package formed based on the basic service package and the renewal server. In this way, the service renewal based on the renewal service package is realized, and the renewal service package will not take effect immediately after purchase, but will take effect after the previous service package expires according to the order submission time of each service package, which solves the problem of overlapping service package validity periods caused by the immediate effectiveness of service packages in the prior art, and the validity period merging strategy based on the aggregated service package can realize the validity period merging and aggregation and query display of the basic service card and the renewal service card for the same user, avoiding the disadvantage that the user needs to frequently switch between different member certificates to calculate the total validity period, thereby reducing the number of interactions and business complexity, and improving user experience.

[0057] Furthermore, the embodiment of the present invention sets a first database in a data heterogeneous manner to store the detailed data of the original service package and its rights and interests, and sets a second database to store the aggregated data of the aggregated service package and its rights and interests. The first database can adopt a relational database to meet the query of specific service packages and specific rights and interests item details or usage records. The second database can adopt an ES database with higher query performance to meet the more general aggregate query of the validity period of service packages and rights and interests items under the name of the user, thereby realizing the aggregate display of multiple service packages under the premise of meeting multiple query requirements. At the same time, the dual database heterogeneous mode can ensure that the system has high read and write performance and stability as well as fast query response. In addition, the embodiment of the present invention also designs the processing flow of transactions such as basic service package order fulfillment, renewal service package order fulfillment, validity period merger between basic service package and renewal service package, status conversion judgment and notification of service package and rights and interests item, user query, service package return, etc. based on the above dual database architecture, so as to ensure high availability of the system under the premise of meeting business requirements.

[0058] It should be noted that the collection, collection, updating, analysis, processing, use, transmission, storage and other aspects of user personal information involved in the technical solution of the present invention are in compliance with the provisions of relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. Necessary measures are taken for user personal information to prevent illegal access to user personal information data and maintain the security of user personal information, network security and national security.

[0059] For the above-mentioned method embodiments, for the convenience of description, they are expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the order of the actions described, and some steps can actually be performed in other orders or simultaneously. In addition, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily necessary to implement the present invention.

[0060] In order to better implement the above-mentioned solution of the embodiment of the present invention, relevant devices for implementing the above-mentioned solution are also provided below.

[0061] See also Figure 4 As shown, the service renewal data processing device 400 provided in the embodiment of the present invention may include: a data preparing unit 401 and a merging unit 402 .

[0062] Among them, the data preparation unit 401 can be used to: in response to the user's basic service package being in an effective state, receive a renewal order completion instruction triggered by the user and carrying a renewal service package identifier, and obtain the available duration of the renewal service package; the merging unit 402 can be used to merge the actual usage time range of the basic service package with the available duration of the renewal service package to obtain the actual usage time range of the aggregated service package formed based on the basic service package and the renewal server.

[0063] In an embodiment of the present invention, the actual usage time range is the time period between the service effective time and the service expiration time, and the number of the renewal service packages is greater than or equal to 1; and the merging unit 402 can be further used to: arrange the basic service package and at least one renewal service package into a queue in ascending order according to the order submission time, and use the service expiration time of the basic service package at the head of the queue as a fixed value; starting from the basic service package, the service effective time of the later original service package of any two adjacent original service packages is determined to be equal to the service expiration time of the previous original service package, and the difference between the service expiration time and the service effective time of any original service package is determined to be equal to the available time of the original service package, so as to obtain the actual usage time range of each original service package; wherein the original service package includes the basic service package and the renewal service package; and the time period between the service effective time of the basic service package and the service expiration time of the original service package at the end of the queue is determined as the actual usage time range of the aggregated service package.

[0064] In an actual scenario, the service package has benefit items; and any renewal service package is limited to having the same benefit items as the basic service package.

[0065] In a specific scenario, the device 400 may further include a data processing unit, which is used to: receive the first order completion instruction triggered by the user and containing the basic service package identifier, obtain the detailed data of the basic service package and the detailed data of the rights and interests items in the basic service package; use the first data table of the first database to save the detailed data of the basic service package, and use the second data table of the first database to save the detailed data of the rights and interests items in the basic service package.

[0066] Preferably, the data processing unit can be further used to: receive the renewal order completion instruction, obtain the detailed data of the renewal service package indicated by the renewal service package, and the detailed data of the benefits items in the renewal service package; use the first data table to save the detailed data of the renewal service package, and use the second data table to save the detailed data of the benefits items in the renewal service package.

[0067] As a preferred solution, the detailed data of any basic service package includes: the identification of the user, the identification of the basic service package, the actual usage time range of the basic service package, and the current status of the basic service package; the detailed data of any renewal service package includes: the identification of the user, the identification of the renewal service package, the actual usage time range of the renewal service package, the current status of the renewal service package, and the identification of the basic service package associated with the renewal service package; the detailed data of any benefit item in any original service package includes: the identification of the benefit item, the actual usage time range of the benefit item in the original service package to which it belongs, the current status of the benefit item, and the identification of the original service package to which the benefit item belongs; wherein, the actual usage time range of the benefit item in the original service package to which it belongs is equal to the actual usage time range of the original service package.

[0068] In one embodiment, the aggregated data of the aggregated service package is stored in the third data table of the second database, and the aggregated data of the rights and interests items in the aggregated service package are stored in the fourth data table of the second database; wherein, the aggregated data of the aggregated service package include: the identifier of the user, the identifier of the aggregated service package, the actual usage time range of the aggregated service package obtained after the merging, and the current status of the aggregated service package; the aggregated data of any rights and interests item in the aggregated service package include: the identifier of the rights and interests item, the actual usage time range of the rights and interests item in the aggregated service package obtained after the merging, and the identifier of the aggregated service package to which the rights and interests item belongs; wherein, the actual usage time range of the rights and interests item in the aggregated service package is equal to the actual usage time range of the aggregated service package.

[0069] In an optional technical solution, the merging unit 402 can be further used to: when monitoring a new record of the renewal service package of the user in the first data table, calculate the aggregate data of the aggregated service package based on the new record and the original service package record of the user in the first data table and save it in a third data table; calculate the aggregate data of the rights and interests items in the aggregated service package based on the calculated aggregate data of the aggregated service package and the rights and interests item identifier in the basic service package, and save the calculated aggregate data in a fourth data table.

[0070] In an optional implementation, the current state includes a state to be effective, a state to be effective, and an invalid state; and the merging unit 402 can be further used to: when the current time moves to the service effectiveness time of any service package, switch the current state of the service package from the state to be effective to the effective state, and issue a state switching notification to the predetermined object; wherein the service package includes the original service package and the aggregated service package; when the current time moves to a service deadline greater than any service package, switch the current state of the service package from the effective state to the invalid state, and issue a state switching notification to the predetermined object.

[0071] In specific applications, the data processing unit can be further used to: receive a validity period details query request issued by the user for a specific original service package or a specific rights and interests item in the specific original service package, obtain and return the query results based on the first data table or the second data table; receive a validity period aggregation query request issued by the user for the service package or rights and interests item under the user dimension, obtain and return the query results based on the third data table or the fourth data table.

[0072] In actual applications, the data processing unit can be further used to: receive a return request for the basic service package issued by the user, set the basic service package record and the renewal service package record associated with the basic service package in the first data table to a "returned" state, and set the rights and interests item records under the basic service package and the renewal service package in the second data table, the aggregated service package records corresponding to the basic service package in the third data table, and the rights and interests item records under the aggregated service package in the fourth data table to a "returned" state; receive a return request for any renewal service package issued by the user, determine the current basic service package, or the basic service package and the renewal service package, and then recalculate the actual usage time range of each original service package and the aggregated service package, and use the calculation results to update the relevant records in the first data table, the second data table, the third data table and the fourth data table.

[0073] In addition, in an embodiment of the present invention, the detailed data or aggregated data of any service package further includes at least one of the following: the type, name, and association status of the service package with the renewal service package; the detailed data or aggregated data of any equity item further includes: the name of the equity item; the equity item is divided into multiple equity groups according to the equity item attributes, the first database further includes a fifth data table for storing the detailed data of each equity group under the original service package, and the second database further includes a sixth data table for storing the aggregated data of each equity group under the aggregated service package; the first database is a relational database, and the second database is an Elastic Search ES database.

[0074] According to the technical solution of the embodiment of the present invention, when the basic service package of the user is in the effective state, after the server monitors the completion of the renewal order, it determines the available time of the renewal service package indicated by the renewal order, and merges the actual use time range of the basic service package with the available time range of the renewal service package, so as to obtain the actual use time range of the basic service package and each renewal service package postponed according to the order submission time, and the actual use time range of the aggregated service package formed based on the basic service package and the renewal server. In this way, the service renewal based on the renewal service package is realized, and the renewal service package will not take effect immediately after purchase, but will take effect after the previous service package expires according to the order submission time of each service package, which solves the problem of overlapping service package validity periods caused by the immediate effectiveness of service packages in the prior art, and the validity period merging strategy based on the aggregated service package can realize the validity period merging and aggregation and query display of the basic service card and the renewal service card for the same user, avoiding the disadvantage that the user needs to frequently switch between different member certificates to calculate the total validity period, thereby reducing the number of interactions and business complexity, and improving user experience.

[0075] Furthermore, the embodiment of the present invention sets a first database in a data heterogeneous manner to store the detailed data of the original service package and its rights and interests, and sets a second database to store the aggregated data of the aggregated service package and its rights and interests. The first database can adopt a relational database to meet the query of specific service packages and specific rights and interests item details or usage records. The second database can adopt an ES database with higher query performance to meet the more general aggregate query of the validity period of service packages and rights and interests items under the name of the user, thereby realizing the aggregate display of multiple service packages under the premise of meeting multiple query requirements. At the same time, the dual database heterogeneous mode can ensure that the system has high read and write performance and stability as well as fast query response. In addition, the embodiment of the present invention also designs the processing flow of transactions such as basic service package order fulfillment, renewal service package order fulfillment, validity period merger between basic service package and renewal service package, status conversion judgment and notification of service package and rights and interests item, user query, service package return, etc. based on the above dual database architecture, so as to ensure high availability of the system under the premise of meeting business requirements.

[0076] Figure 5 An exemplary system architecture 500 is shown to which the service renewal data processing method or service renewal data processing device according to the embodiment of the present invention can be applied.

[0077] like Figure 5 As shown, the system architecture 500 may include terminal devices 501, 502, 503, a network 504 and a server 505 (this architecture is only an example, and the components included in the specific architecture may be adjusted according to the specific application). The network 504 is used to provide a medium for communication links between the terminal devices 501, 502, 503 and the server 505. The network 504 may include various connection types, such as wired, wireless communication links or optical fiber cables.

[0078] The user can use the terminal devices 501, 502, 503 to interact with the server 505 through the network 504 to receive or send messages, etc. Various client applications, such as Internet medical applications, etc. (only as an example), can be installed on the terminal devices 501, 502, 503.

[0079] The terminal devices 501 , 502 , and 503 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.

[0080] The server 505 may be a server that provides various services, such as a backend server (for example only) that provides support for Internet medical applications operated by users using the terminal devices 501, 502, and 503. The backend server may process the received validity query request and feed back the processing result (for example, the total validity period obtained - for example only) to the terminal devices 501, 502, and 503.

[0081] It should be noted that the service renewal data processing method provided in the embodiment of the present invention is generally executed by the server 505 , and accordingly, the service renewal data processing device is generally disposed in the server 505 .

[0082] It should be understood that Figure 5 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0083] The present invention also provides an electronic device. The electronic device of an embodiment of the present invention includes: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the service renewal data processing method provided by the present invention.

[0084] Reference below Figure 6 , which shows a schematic diagram of the structure of a computer system 600 of an electronic device suitable for implementing an embodiment of the present invention. Figure 6 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0085] like Figure 6 As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the computer system 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0086] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed so that a computer program read therefrom is installed into the storage section 608 as needed.

[0087] In particular, according to the embodiments disclosed in the present invention, the process described in the main step diagram above can be implemented as a computer software program. For example, an embodiment of the present invention includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the main step diagram. In the above embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the central processing unit 601, the above functions defined in the system of the present invention are executed.

[0088] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0089] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0090] The units involved in the embodiments of the present invention may be implemented by software or hardware. The units described may also be set in a processor, for example, it may be described as: a processor includes a data preparation unit and a merging unit. The names of these units do not constitute a limitation on the units themselves in some cases, for example, the data preparation unit may also be described as a "unit that provides the merging unit with the available time of the renewal service package".

[0091] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently and not be installed in the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by the device, the steps executed by the device include: in response to the user's basic service package being in an effective state, receiving a renewal order completion instruction triggered by the user and carrying a renewal service package identifier, and obtaining the available duration of the renewal service package; merging the actual usage time range of the basic service package with the available duration of the renewal service package to obtain the actual usage time range of the aggregated service package formed based on the basic service package and the renewal server.

[0092] In the technical solution of the embodiment of the present invention, when the basic service package of the user is in the effective state, after the server monitors the completion of the renewal order, it determines the available time of the renewal service package indicated by the renewal order, and merges the actual use time range of the basic service package with the available time range of the renewal service package, so as to obtain the actual use time range of the basic service package and each renewal service package postponed according to the order submission time, and the actual use time range of the aggregated service package formed based on the basic service package and the renewal server. In this way, the service renewal based on the renewal service package is realized, and the renewal service package will not take effect immediately after purchase, but will take effect after the previous service package expires according to the order submission time of each service package, which solves the problem of overlapping service package validity periods caused by the immediate effectiveness of service packages in the prior art, and the validity period merging strategy based on the aggregated service package can realize the validity period merging and aggregation and query display of the basic service card and the renewal service card for the same user, avoiding the disadvantage that the user needs to frequently switch between different member certificates to calculate the total validity period, thereby reducing the number of interactions and business complexity, and improving user experience.

[0093] Furthermore, the embodiment of the present invention sets a first database in a data heterogeneous manner to store the detailed data of the original service package and its rights and interests, and sets a second database to store the aggregated data of the aggregated service package and its rights and interests. The first database can adopt a relational database to meet the query of specific service packages and specific rights and interests item details or usage records. The second database can adopt an ES database with higher query performance to meet the more general aggregate query of the validity period of service packages and rights and interests items under the name of the user, thereby realizing the aggregate display of multiple service packages under the premise of meeting multiple query requirements. At the same time, the dual database heterogeneous mode can ensure that the system has high read and write performance and stability as well as fast query response. In addition, the embodiment of the present invention also designs the processing flow of transactions such as basic service package order fulfillment, renewal service package order fulfillment, validity period merger between basic service package and renewal service package, status conversion judgment and notification of service package and rights and interests item, user query, service package return, etc. based on the above dual database architecture, so as to ensure high availability of the system under the premise of meeting business requirements.

[0094] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A service renewal data processing method, characterized in that: include: In response to the user's basic service package being in an effective state, receiving a renewal order completion instruction triggered by the user and carrying a renewal service package identifier, and obtaining the available duration of the renewal service package; The actual usage time range of the basic service package is combined with the available duration of the renewal service package to obtain the actual usage time range of the aggregated service package formed based on the basic service package and the renewal service package.

2. The method according to claim 1, characterized in that The actual usage time range is a time period between the service effective time and the service expiration time, and the number of the renewal service packages is greater than or equal to 1; and the actual usage time range of the basic service package is combined with the available time of the renewal service package to obtain the actual usage time range of the aggregated service package formed based on the basic service package and the renewal server, including: Arrange the basic service package and at least one renewal service package into a queue in ascending order according to the order submission time, and use the service deadline of the basic service package at the head of the queue as a fixed value; Starting from the basic service package, the service effective time of the later original service package of any two adjacent original service packages is determined to be equal to the service expiration time of the previous original service package, and the difference between the service expiration time and the service effective time of any original service package is determined to be equal to the available time of the original service package, so as to obtain the actual use time range of each original service package; wherein the original service package includes the basic service package and the renewal service package; The time period from the service effective time of the basic service package to the service expiration time of the original service package at the end of the queue is determined as the actual use time range of the aggregate service package.

3. The method according to claim 1, characterized in that The said services include entitlements; and, Any renewal service package is limited to: containing the same benefits as the basic service package.

4. The method according to claim 2, characterized in that: The method further comprises: receiving a first order completion instruction triggered by the user and including the basic service package identifier, and obtaining detailed data of the basic service package and detailed data of the benefit items in the basic service package; The first data table of the first database is used to store the detailed data of the basic service package, and the second data table of the first database is used to store the detailed data of the rights and interests items in the basic service package.

5. The method according to claim 4, characterized in that The method further comprises: receiving the renewal order completion instruction, and acquiring detailed data of the renewal service package indicated by the renewal service package, and detailed data of the benefit items in the renewal service package; The first data table is used to store the detailed data of the renewal service package, and the second data table is used to store the detailed data of the benefit items in the renewal service package.

6. The method according to claim 5, characterized in that The detailed data of any basic service package includes: the identification of the user, the identification of the basic service package, the actual usage time range of the basic service package, and the current status of the basic service package; The detailed data of any renewal service package includes: the user's identifier, the identifier of the renewal service package, the actual usage time range of the renewal service package, the current status of the renewal service package, and the identifier of the basic service package associated with the renewal service package; The detailed data of any benefit item in any original service package includes: the identification of the benefit item, the actual usage time range of the benefit item in the original service package to which it belongs, the current status of the benefit item, and the identification of the original service package to which the benefit item belongs; among which, the actual usage time range of the benefit item in the original service package to which it belongs is equal to the actual usage time range of the original service package.

7. The method according to claim 6, characterized in that The aggregated data of the aggregated service package is stored in the third data table of the second database, and the aggregated data of the equity items in the aggregated service package is stored in the fourth data table of the second database; wherein, The aggregated data of the aggregated service package includes: the identifier of the user, the identifier of the aggregated service package, the actual usage time range of the aggregated service package obtained through the merging, and the current status of the aggregated service package; The aggregated data of any benefit item in the aggregated service package includes: the identifier of the benefit item, the actual usage time range of the benefit item in the aggregated service package obtained after the merging, and the identifier of the aggregated service package to which the benefit item belongs; wherein the actual usage time range of the benefit item in the aggregated service package is equal to the actual usage time range of the aggregated service package.

8. The method according to claim 7, characterized in that The step of combining the actual usage time range of the basic service package with the available duration of the renewal service package to obtain the actual usage time range of the aggregated service package formed based on the basic service package and the renewal service package includes: When a record of a renewal service package of the user is newly added to the first data table, the aggregate data of the aggregate service package is calculated according to the newly added record and the original service package record of the user in the first data table and is saved in the third data table; The aggregate data of the equity items in the aggregate service package are calculated according to the calculated aggregate data of the aggregate service package and the equity item identifiers in the basic service package, and the calculated aggregate data are stored in a fourth data table.

9. The method according to claim 7, characterized in that: The current state includes a pending state, an effective state, and an invalid state; And, the method further comprises: When the current time moves to the service effective time of any service package, the current state of the service package is switched from the pending effective state to the effective state, and a state switching notification is sent to a predetermined object; wherein the service package includes the original service package and the aggregated service package; When the current time moves to a time greater than the service deadline of any service package, the current state of the service package is switched from an effective state to an invalid state, and a state switching notification is sent to a predetermined object.

10. The method according to claim 7, characterized in that The method further comprises: receiving a validity period details query request for a specific original service package or a specific benefit item in the specific original service package from the user, obtaining a query result based on the first data table or the second data table and returning the query result; Receive a validity aggregation query request for a service package or a benefit item under a user dimension issued by the user, obtain a query result based on the third data table or the fourth data table, and return it.

11. The method according to claim 7, characterized in that The method further comprises: receiving a return request for the basic service package issued by the user, setting the basic service package record and the renewal service package record associated with the basic service package in the first data table to a "returned" state, and setting the benefit item records under the basic service package and the renewal service package in the second data table, the aggregated service package record corresponding to the basic service package in the third data table, and the benefit item record under the aggregated service package in the fourth data table to a "returned" state; Receive a return request for any renewal service package issued by the user, determine the current basic service package, or the basic service package and the renewal service package, and then recalculate the actual usage time range of each original service package and the aggregated service package, and use the calculation results to update the relevant records of the first data table, the second data table, the third data table and the fourth data table.

12. The method according to claim 8, characterized in that The detailed data or aggregated data of any service package further includes at least one of the following: the type, name, and association of the renewal service package of the service package; the detailed data or aggregated data of any benefit item further includes: the name of the benefit item; The equity items are divided into a plurality of equity groups according to the equity item attributes, the first database further comprises a fifth data table for storing the detailed data of each equity group under the original service package, and the second database further comprises a sixth data table for storing the aggregated data of each equity group under the aggregated service package; The first database includes a relational database, and the second database includes an ElasticSearch ES database.

13. A service renewal data processing device, characterized in that: include: The data preparation unit is used to: in response to the user's basic service package being in an effective state, receive a renewal order completion instruction triggered by the user and carrying a renewal service package identifier, and obtain the available time of the renewal service package; A merging unit is used to merge the actual usage time range of the basic service package with the available duration of the renewal service package to obtain the actual usage time range of the aggregated service package formed based on the basic service package and the renewal service package.

14. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 12.

15. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 12 is implemented.