Service package data processing method and device

通过合并用户的基础服务包和加量服务包的权益项,解决了现有技术中用户需要频繁切换服务包的问题,实现了更简单的业务执行流程和更好的用户体验。

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

Patent Information

Application Number
CN202311216834.1
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 prior art cannot summarize and display the stakeholders in multiple service packages owned by the same user, resulting in users needing to frequently switch and select appropriate service packages and stakeholders when executing services, increasing business complexity and poor experience.

Method used

By responding to the completion of the increase order when the user's basic service package is in an effective state, it is determined whether there are the same stakeholder items in the basic service package and the increase service package, and the two are merged based on the judgment results, and the equity items are displayed based on the merged service package.

Benefits of technology

It realizes the merger summary and query display of multiple service packages under the same user name, reducing the number of user interactions and business complexity, and improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119673392A_ABST
    Figure CN119673392A_ABST
Patent Text Reader

Abstract

The invention discloses a service package 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 determining right items in an addition service package in response to completion of an addition order which is submitted by a user and carries an addition service package identifier under the condition that a basic service package of the user is in an effective state; and judging whether the same right and interest item exists in the basic service package and the amount-added service package, combining the basic service package and the amount-added service package according to a judgment result, and displaying the right and interest item based on the combined service package. According to the embodiment, multiple service packages owned by the same user can be combined and displayed, and the interaction complexity between the server and the user is reduced.
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 package 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, the server can only display the benefits under a specific service package in the service package dimension, and cannot summarize the benefits in multiple service packages owned by the same user. As a result, users need to frequently switch and select appropriate service packages and benefits before executing specific business, which increases business complexity and provides a poor experience. Summary of the invention

[0003] In view of this, an embodiment of the present invention provides a service package data processing method and device, which can merge and display multiple service packages owned by the same user, thereby reducing the complexity of interaction between the server and the user.

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

[0005] The service package data processing method of an embodiment of the present invention includes: when a user's basic service package is in an effective state, in response to the completion of an additional order submitted by the user and carrying an additional service package identifier, determining the rights and interests items in the additional service package; judging whether the basic service package and the additional service package have the same rights and interests items, merging the basic service package and the additional service package according to the judgment result, and displaying the rights and interests items based on the merged service package.

[0006] Optionally, the benefit item has an available number of times, and the basic service package and the enhanced service package are merged into an aggregated service package; and, judging whether there are identical benefit items in the basic service package and the enhanced service package, and merging the basic service package and the enhanced service package according to the judgment result, includes: when any benefit item in the enhanced service package is identical to a benefit item in the basic service package, taking the sum of the available number of times of the benefit item in the enhanced service package and the available number of times of the benefit item in the basic service package as the available number of times of the benefit item in the aggregated service package.

[0007] Optionally, the determining whether there are identical rights and interests items in the basic service package and merging the basic service package and the enhanced service package according to the determination result includes: when any rights and interests item in the enhanced service package is different from each rights and interests item in the basic service package, placing the rights and interests item in the enhanced service package as a new rights and interests item into the aggregated service package, and using the available number of times of the rights and interests item in the enhanced service package as the available number of times of the new rights and interests item in the aggregated service package; when any rights and interests item in the basic service package is different from each rights and interests item in the enhanced service package, placing the rights and interests item in the basic service package as a new rights and interests item into the aggregated service package, and using the available number of times of the rights and interests item in the basic service package as the available number of times of the new rights and interests item in the aggregated service package.

[0008] Optionally, any original service package has a service effective time and a service expiration time, the original service package includes the basic service package and the enhanced service package, and the mutually associated basic service package and enhanced service package have the same service expiration time; and the method further includes: determining the service expiration time of the aggregate service package as the service expiration time of the basic service package associated with the aggregate service package.

[0009] Optionally, the method further includes: in response to the completion of the first order submitted by the user and containing the basic service package identifier, determining the detailed data of the basic service package and the detailed data of the benefits items in the basic service package; storing the detailed data of the basic service package in a first data table of the first database, and storing the detailed data of the benefits items in the basic service package in a second data table of the first database.

[0010] Optionally, the method further includes: in response to the completion of the incremental order, determining the detailed data of the incremental service package indicated by the incremental service package, and the detailed data of the benefits items in the incremental service package; storing the detailed data of the incremental service package in a first data table, and storing the detailed data of the benefits items in the incremental service package in a second data table.

[0011] Optionally, the detailed data of any basic service package includes: the identification of the user, the identification of the basic service package, and the total number of times the benefits items in the basic service package are available; the detailed data of any enhanced service package includes: the identification of the user, the identification of the enhanced service package, the total number of times the benefits items in the enhanced service package are available, and the identification of the basic service package associated with the enhanced service package; the detailed data of any benefit item in any original service package includes: the identification of the benefit item, the number of times the benefit item is available in the original service package to which it belongs, and the identification of the original service package to which the benefit item belongs.

[0012] 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 sum of the number of available times of each rights and interests item in the aggregated service package obtained after the merger, and the identifier of the basic service package or the incremental service package corresponding to 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 number of available times of the rights and interests item in the aggregated service package obtained after the merger, and the identifier of the aggregated service package to which the rights and interests item belongs.

[0013] Optionally, the determining whether the same rights and interests items exist in the basic service package and the enhanced service package, and merging the basic service package and the enhanced service package according to the determination result, includes: in response to monitoring a record of the enhanced service package of the user newly added in 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 storing it in a third data table; calculating the aggregated data of the rights and interests items in the aggregated service package according to the newly added record in the first data table, associating the newly added record in the second data table and the original rights and interests item record of the user in the second data table, and storing the calculated aggregated data in a fourth data table.

[0014] Optionally, the method further includes: in response to the user using any benefit item, determining the first service package from the original service package containing the benefit item according to a predetermined service package deduction order, deducting the available number of benefit items in the first service package record by an equal amount in the first data table, and deducting the available number of benefit item records under the first service package by an equal amount in the second data table; in response to monitoring the deduction occurring in the first data table or the second data table, making equal deductions on the available number of benefit items in the aggregated service package record corresponding to the first service package in the third data table and the benefit item record under the aggregated service package in the fourth data table.

[0015] Optionally, the method further includes: in response to a detailed query request issued by the user 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; in response to an aggregate query request issued by the user 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.

[0016] Optionally, the method further includes: in response to a return request issued by the user for the basic service package, marking the basic service package record in the first data table and the enhanced service package record associated with the basic service package as "returned" status, and marking the rights and interests item records under the basic service package and the enhanced 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 rights and interests item records under the aggregated service package in the fourth data table as "returned" status; in response to a return request issued by the user for any enhanced service package, marking the enhanced service package record in the first data table and the rights and interests item record under the enhanced service package in the second data table as "returned" status, and deducting the available number of rights and interests in the aggregated service package record corresponding to the enhanced service package in the third data table and the rights and interests item record under the enhanced service package in the fourth data table by an equal amount.

[0017] Optionally, the method of determining the first service package from the original service package containing the benefit item in accordance with a predetermined service package deduction order includes: for a basic service package and each additional service package containing the benefit item, if the available number of times the benefit item is available in the basic service package is not zero, determining the basic service package as the first service package; if the available number of times the benefit item is available in the basic service package is zero, determining the additional service package with the earliest order time and containing the benefit item with a non-zero available number as the first service package; and the method further includes: pre-configuring a mapping relationship between the basic service package and the additional service package; before or after the user submits the additional order, verifying whether the additional service package indicated by the additional order and the basic service package of the user conform to the mapping relationship; if not, returning a prompt to the user that the additional service package and the basic service package do not match.

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

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

[0020] The service package data processing device of an embodiment of the present invention may include: a data preparation unit, used to: when a user's basic service package is in an effective state, in response to the completion of an additional order submitted by the user and carrying an additional service package identifier, determine the rights and interests items in the additional service package; a merging unit, used to determine whether the basic service package and the additional service package have the same rights and interests items, merge the basic service package and the additional service package according to the judgment result, and display the rights and interests items based on the merged service package.

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

[0022] 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 package data processing method provided by the present invention.

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

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

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

[0026] When the user's basic service package is in an effective state, after the server detects that the additional order is completed, it determines whether there are the same rights and interests in the basic service package and the additional service package under the user's name, and merges the basic service package and the additional service package according to the judgment result, and finally displays the rights and interests based on the merged service package. In this way, it is possible to realize the merging and querying of multiple service packages under the same user name based on the predetermined rights and interests merging logic between multiple service packages, avoiding the disadvantage of users having to frequently switch between different membership credentials in the prior art, thereby reducing the number of interactions and business complexity, and improving user experience. 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 the detailed information or usage records of a specific service package and a specific rights and interests item. The second database can adopt an ES database with higher query performance to meet the more general aggregate query 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, additional service package order fulfillment, additional items and times between basic service packages and additional service packages, rights and interests item usage, user query, and service package return based on the above dual database architecture, ensuring high availability of the system under the premise of meeting business needs.

[0027] 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

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

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

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

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

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

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

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

[0035] 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.

[0036] 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.

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

[0038] like Figure 1 As shown, the service package 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:

[0039] Step S101: when the basic service package of the user is in an effective state, in response to completion of an additional order submitted by the user and carrying an additional service package identifier, the rights and interests items in the additional service package are determined.

[0040] 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 has a name and a number of available times. The time range in which the service package takes effect is called the actual use time range, which is limited by the service effective time and the service deadline. The basic service package can be a service package obtained by the user through the first order for the service package. The additional service package is a service package purchased by the user after the basic service package for adding items and times. The additional items refer to the new benefit items that are not in the basic service package in the additional service package, and the additional times refer to the increase in the number of available times of the same benefit items in the basic service package by the additional service package. The additional items and times can be collectively referred to as the additional quantity. The basic service package and the additional service package can be collectively referred to as the original service package, and the original service package and the aggregated service package to be described later can be collectively referred to as the service package. Optionally, the benefit items can be divided into multiple benefit groups according to the different attributes of the benefit items, and the service package, benefit group, and benefit item form a sequential inclusion relationship.

[0041] Service packages and benefit items can have two types of status. One is the status about the effectiveness, including the pending effectiveness status, the effective status and the expired status; the other is the status about the use of the benefit, including the used-up status and the usable status. Service packages and benefit items can have two types of identifiers. One is the identifier corresponding to the stock keeping unit SKU (hereinafter referred to as the SKU identifier), which is used to indicate whether two service packages or benefit items are the same; the other is the global identifier. The global identifier is generated by the user based on the SKU identifier after purchasing the service package. Any benefit item in a service package has a unique global identifier after it reaches the user. The same benefit item in different service packages of the same user (referring to the benefit item with the same SKU identifier) ​​has different global identifiers.

[0042] In this step, when the rights platform determines that the user's basic service package is in an effective state and the additional order submitted by the user with the additional service package identifier is completed (the order completion means that the user has obtained the goods in the order after the order payment is completed), the rights and interests items in the additional service package are determined by the additional service package identifier. Generally, the additional order can be created and submitted through a specific button set on the user terminal interface.

[0043] In actual applications, the mapping relationship between the basic service package and the additional service package can be pre-configured on the equity platform to indicate which additional service packages can be provided for any basic service package. Before or after the user submits an additional order, the equity platform can verify whether the additional service package indicated by the additional order and the user's basic service package conform to the above mapping relationship; if not, a prompt indicating that the additional service package and the basic service package do not match is returned to the user; if they do, the subsequent process is executed.

[0044] Step S102: Determine whether there are the same rights and interests items in the basic service package and the enhanced service package, merge the basic service package and the enhanced service package according to the determination result, and display the rights and interests items based on the merged service package.

[0045] In an embodiment of the present invention, the above basic service package and the additional service package can be combined into an aggregate service package, and the specific method of combining can be as follows:

[0046] In the case where any benefit item in the enhanced service package is the same as a benefit item in the basic service package (meaning that they have the same SKU identifier), the benefit platform will use the sum of the available times of the benefit item in the enhanced service package and the available times of the benefit item in the basic service package as the available times of the benefit item in the aggregated service package; in the case where any benefit item in the enhanced service package is different from the benefit items in the basic service package, the benefit item in the enhanced service package will be placed in the aggregated service package as a new benefit item, and the available times of the benefit item in the enhanced service package will be used as the available times of the new benefit item in the aggregated service package; in the case where any benefit item in the basic service package is different from the benefit items in the enhanced service package, the benefit item in the basic service package will be placed in the aggregated service package as a new benefit item, and the available times of the benefit item in the basic service package will be used as the available times of the new benefit item in the aggregated service package. In other words, the benefit platform adds the available times for the same benefit item in the basic service package and the enhanced service package, and directly uses the available times of different benefit items as the available times in the aggregated service package.

[0047] In actual applications, when obtaining an additional service package through an additional order, the additional service package can be limited to have the same service deadline as the mutually related basic service packages. The rights and interests platform will determine the service deadline of the aggregated service package as the service deadline of the basic service package associated with the aggregated service package, and the service effectiveness time of the aggregated service package as the service effectiveness time of the basic service package associated with the aggregated service package, thereby simplifying business logic and optimizing user experience.

[0048] In particular, in an embodiment of the present invention, 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 additional order, the rights and interests platform determines the detailed data of the additional service package indicated by the additional service package and the detailed data of the rights and interests items in the additional service package, and stores the detailed data of the additional service package in the first data table, and stores the detailed data of the rights and interests items in the additional service package in the second data table.

[0049] As a preferred solution, the detailed data of any basic service package may include: the user's identification, the identification of the basic service package, and the total number of times the benefit items in the basic service package are available; the detailed data of any enhanced service package may include: the user's identification, the identification of the enhanced service package, the total number of times the benefit items in the enhanced service package are available, and the identification of the basic service package associated with the enhanced service package (thereby enabling the association between the basic service package and the enhanced service package); the detailed data of any benefit item in any original service package may include: the identification of the benefit item, the number of times the benefit item is available in the original service package to which it belongs, and the identification of the original service package to which the benefit item belongs. 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.

[0050] 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 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 may include: the user's identifier, the identifier of the aggregated service package, the sum of the available times of each equity item in the aggregated service package obtained through the above merger, and the identifier of the basic service package or the additional service package corresponding to the aggregated service package; the aggregated data of any equity item in the aggregated service package includes: the identifier of the equity item, the available times of the equity item in the aggregated service package obtained through the above merger, and the identifier of the aggregated service package to which the equity item belongs. Exemplarily, the second database may be an elastic search ES database with strong search performance, thereby satisfying more general aggregated queries of service packages and equity items under the user's name. Exemplarily, 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, an additional service package, or an aggregated service package), name, equity usage status, and association status of the additional service package; the detailed data or aggregated data of any equity item may also include at least one of the following: the name and usage status of the equity item.

[0051] The logic of merging the basic service package and the incremental service package based on the above two databases is as follows: In response to monitoring the records of the incremental service package of the newly added user in the first data table (which can be achieved by monitoring the database log Binlog), the equity platform calculates the aggregated data of the aggregated service package based on the newly added records and the original service package records of the user in the first data table and stores it in the third data table, and calculates the aggregated data of the equity items in the aggregated service package based on the newly added records in the first data table (i.e., the newly added records of the triggered equity items) and the original equity item records of the user in the second data table, 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 incremental 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.

[0052] The following describes the process of using service packages and rights and interests items. In response to a user using any rights and interests item, the rights and interests platform determines the first service package from the original service package containing the rights and interests item according to a predetermined service package deduction order, deducts the available times of the rights and interests item in the first service package record by an equal amount in the first data table, and deducts the available times of the rights and interests item record under the first service package by an equal amount in the second data table. Among them, the above equal amount of deduction means that the amount of deduction of the available times of the rights and interests item is equal to the number of times the user uses the rights and interests item. The rights and interests platform can determine whether a deduction occurs in the first data table or the second data table by monitoring the database log. When a deduction occurs, an equal amount of deduction is made for the aggregated service package record corresponding to the first service package in the third data table and the available times of the rights and interests item in the rights and interests item record under the aggregated service package in the fourth data table, thereby achieving data synchronization of each database during the use of the rights and interests item.

[0053] Preferably, the steps of determining the first service package according to the above service package deduction order can be as follows. For the basic service package and each additional service package containing the benefit item, if the number of available times of the benefit item in the basic service package is not zero, the benefit platform determines the basic service package as the first service package; if the number of available times of the benefit item in the basic service package is zero, the additional service package with the earliest order time and containing the benefit item with a non-zero number of available times is determined as the first service package.

[0054] The following describes the query process of service packages and rights and interests. In response to a detailed query request 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 results based on the first data table or the second data table; in response to an aggregated query request issued by a user for a service package or rights and interests item under the user dimension, the rights and interests platform obtains and returns the query results based on the third data table or the fourth data table. Through the above settings, the embodiment of the present invention sets the 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 the 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 the third data table and the fourth data table can be the type type in ES. In this way, a more general aggregate query of service packages and rights and interests items under the name of a user is met, and the aggregated display of multiple service packages is realized 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.

[0055] The following describes the return process of service packages and equity items (i.e., reverse). In response to a return request issued by a user for a basic service package, the equity platform marks the basic service package record and the incremental service package record associated with the basic service package in the first data table as "returned", and marks the equity item records under the basic service package and the incremental 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 equity item record under the aggregated service package in the fourth data table as "returned". Records marked as "returned" can be used as invalid data. In response to a return request issued by a user for any incremental service package, the equity platform marks the incremental service package record in the first data table and the equity item record under the incremental service package in the second data table as "returned", and deducts the available number of equity items in the aggregated service package record corresponding to the incremental service package in the third data table and the equity item record under the incremental service package in the fourth data table by an equal amount, thereby realizing the data synchronization of each database in the reverse scenario.

[0056] 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, equity item use, and service package reversal, and can also provide users with queries on the equity group detailed data and aggregated data.

[0057] Figure 2 FIG. 1 is a flow chart of a method for processing service package data in a first embodiment of the present invention. Figure 2 As shown, the equity platform can provide general data processing and equity increase processing logic. The business end can call the equity platform to implement a certain business function. Before providing services, the equity platform can first configure the mapping relationship between the basic service package and the increase service package. After the business end executes the first order submission or the increase order submission, the equity platform can execute the order fulfillment based on the merger of the basic service package and the increase service package, and execute the aforementioned increase item and increase logic for each database and data table. When the business end executes information viewing, the equity platform selects the database and data table to perform data query. When the business end executes the use of equity items, the equity platform writes off the equity items and deducts the number of available equity items. When the business end executes the return of the service package, the equity platform executes the reverse processing logic, marks the relevant records in the database and executes the deduction of the number of available equity items.

[0058] Figure 3 is an interactive schematic diagram of the service package 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, limit the mapping relationship between basic service packages and additional 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 additional service, the equity platform issues the additional service package, verifies whether the basic service package and the additional service package conform to the mapping relationship, and binds the additional service package to the basic service package, obtains the data of other fields, executes the general additional item and additional logic, and stores the data in the database. When the business end executes the service use, the equity platform performs the equity deduction process. When the business end executes the service reverse, the equity platform invalidates the corresponding service package or additional package. In the above process, the equity platform will monitor the changes of the Mysql database and then synchronize the ES database, and can also synchronize the preset cache.

[0059] In the technical solution of the embodiment of the present invention, when the user's basic service package is in an effective state, after the server detects that the additional order is completed, it determines whether there are the same rights and interests in the basic service package and the additional service package under the user's name, and merges the basic service package and the additional service package according to the judgment result, and finally displays the rights and interests based on the merged service package. In this way, it is possible to realize the merging and querying of multiple service packages under the same user name based on the predetermined rights and interests merging logic between multiple service packages, avoiding the disadvantage of users having to frequently switch between different membership credentials in the prior art, thereby reducing the number of interactions and business complexity, and improving user experience. 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 the detailed information or usage records of a specific service package and a specific rights and interests item. The second database can adopt an ES database with higher query performance to meet the more general aggregate query 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, additional service package order fulfillment, additional items and times between basic service packages and additional service packages, rights and interests item usage, user query, and service package return based on the above dual database architecture, ensuring high availability of the system under the premise of meeting business needs.

[0060] 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.

[0061] For the convenience of description, the aforementioned method embodiments are described as a series of action combinations, but those skilled in the art should be aware 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 be aware 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.

[0062] 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.

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

[0064] Among them, the data preparation unit 401 is used to: when the user's basic service package is in an effective state, in response to the completion of the additional order submitted by the user and carrying the additional service package identifier, determine the rights and interests items in the additional service package; the merging unit 402 can be used to determine whether there are the same rights and interests items in the basic service package and the additional service package, merge the basic service package and the additional service package according to the judgment result, and display the rights and interests items based on the merged service package.

[0065] In an embodiment of the present invention, the benefit item has an available number of times, and the basic service package and the enhanced service package are merged into an aggregated service package; and the merging unit 402 can be further used to: when any benefit item in the enhanced service package is the same as a benefit item in the basic service package, the sum of the available number of times of the benefit item in the enhanced service package and the available number of times of the benefit item in the basic service package is used as the available number of times of the benefit item in the aggregated service package.

[0066] In a specific application, the merging unit 402 can be further used for: when any benefit item in the enhanced service package is different from each benefit item in the basic service package, the benefit item in the enhanced service package is placed in the aggregated service package as a new benefit item, and the available number of times of the benefit item in the enhanced service package is used as the available number of times of the new benefit item in the aggregated service package; when any benefit item in the basic service package is different from each benefit item in the enhanced service package, the benefit item in the basic service package is placed in the aggregated service package as a new benefit item, and the available number of times of the benefit item in the basic service package is used as the available number of times of the new benefit item in the aggregated service package.

[0067] In actual applications, any original service package has a service effective time and a service expiration time, and the original service package includes the basic service package and the enhanced service package, and the mutually associated basic service package and enhanced service package have the same service expiration time; and the merging unit 402 can be further used to: determine the service expiration time of the aggregate service package as the service expiration time of the basic service package associated with the aggregate service package.

[0068] Preferably, the device 400 may further include a data processing unit for: in response to the completion of the first order submitted by the user and containing the basic service package identifier, determining the detailed data of the basic service package and the detailed data of the benefits items in the basic service package; storing the detailed data of the basic service package in a first data table of the first database, and storing the detailed data of the benefits items in the basic service package in a second data table of the first database.

[0069] As a preferred scheme, the data processing unit can be further used to: in response to the completion of the additional order, determine the detailed data of the additional service package indicated by the additional service package, and the detailed data of the benefits items in the additional service package; store the detailed data of the additional service package in a first data table, and store the detailed data of the benefits items in the additional service package in a second data table.

[0070] In one embodiment, the detailed data of any basic service package includes: the identification of the user, the identification of the basic service package, and the total number of times the benefit items in the basic service package are available; the detailed data of any enhanced service package includes: the identification of the user, the identification of the enhanced service package, the total number of times the benefit items in the enhanced service package are available, and the identification of the basic service package associated with the enhanced service package; the detailed data of any benefit item in any original service package includes: the identification of the benefit item, the number of times the benefit item is available in the original service package to which it belongs, and the identification of the original service package to which the benefit item belongs.

[0071] In an optional technical solution, 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 sum of the available times of each rights and interests item in the aggregated service package obtained after the merger, and the identifier of the basic service package or the enhanced service package corresponding to 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 available times of the rights and interests item in the aggregated service package obtained after the merger, and the identifier of the aggregated service package to which the rights and interests item belongs.

[0072] In a specific scenario, the merging unit 402 can be further used for: in response to monitoring a record of the added service package of the user in the first data table, calculating the aggregated data of the aggregated service package based on the added record and the original service package record of the user in the first data table and storing it in the third data table; calculating the aggregated data of the equity items in the aggregated service package based on the association of the added record in the first data table with the added record in the second data table and the original equity item record of the user in the second data table, and storing the calculated aggregated data in the fourth data table.

[0073] In actual scenarios, the data processing unit can be further used to: in response to the user using any benefit item, determine the first service package from the original service package containing the benefit item according to a predetermined service package deduction order, deduct the available number of benefit items in the first service package record by an equal amount in the first data table, and deduct the available number of benefit item records under the first service package by an equal amount in the second data table; in response to monitoring the occurrence of the deduction in the first data table or the second data table, make an equal deduction on the available number of benefit items in the aggregated service package record corresponding to the first service package in the third data table and the benefit item record under the aggregated service package in the fourth data table.

[0074] In an optional implementation, the data processing unit may be further used to: respond to a detailed query request issued by the user for a specific original service package or a specific benefit item in the specific original service package, obtain and return the query result based on the first data table or the second data table; respond to an aggregate query request issued by the user for service packages or benefit items under the user dimension, obtain and return the query result based on the third data table or the fourth data table.

[0075] In some embodiments, the data processing unit may be further used to: in response to a return request issued by the user for the basic service package, mark the basic service package record in the first data table and the enhanced service package record associated with the basic service package as "returned" status, and mark the rights and interests item records under the basic service package and the enhanced 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 rights and interests item records under the aggregated service package in the fourth data table as "returned" status; in response to a return request issued by the user for any enhanced service package, mark the enhanced service package record in the first data table and the rights and interests item record under the enhanced service package in the second data table as "returned" status, and deduct the available number of rights and interests items in the aggregated service package record corresponding to the enhanced service package in the third data table and the rights and interests item record under the enhanced service package in the fourth data table by an equal amount.

[0076] In particular, the data processing unit can be further used for: for the basic service package and each additional service package containing the benefit item, if the number of available times of the benefit item in the basic service package is not zero, determining the basic service package as the first service package; if the number of available times of the benefit item in the basic service package is zero, determining the additional service package with the earliest order time and containing the benefit item with a non-zero number of available times as the first service package; and, pre-configuring the mapping relationship between the basic service package and the additional service package; before or after the user submits the additional order, verifying whether the additional service package indicated by the additional order and the basic service package of the user conform to the mapping relationship; if not, returning a prompt to the user that the additional service package and the basic service package do not match.

[0077] 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, rights usage status, and association status of the service package; the detailed data or aggregated data of any rights item further includes at least one of the following: the name and usage status of the rights item; wherein the service package includes the original service package and the aggregated service package; the rights items are divided into multiple rights groups according to the properties of the rights items, and the first database further includes a fifth data table for storing the detailed data of each rights group under the original service package, and the second database further includes a sixth data table for storing the aggregated data of each rights group under the aggregated service package; the first database is a relational database, and the second database is an Elastic Search ES database.

[0078] According to the technical solution of the embodiment of the present invention, when the user's basic service package is in an effective state, after the server monitors the completion of the additional order, it determines whether there are the same rights and interests in the basic service package and the additional service package under the user's name, and merges the basic service package and the additional service package according to the judgment result, and finally displays the rights and interests based on the merged service package. In this way, it is possible to realize the merging and querying of multiple service packages under the same user name based on the logic of merging rights and interests between multiple service packages, avoiding the disadvantage of users in the prior art that they need to frequently switch between different membership credentials, thereby reducing the number of interactions and business complexity, and improving user experience. 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 the detailed information or usage records of a specific service package and a specific rights and interests item. The second database can adopt an ES database with higher query performance to meet the more general aggregate query 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, additional service package order fulfillment, additional items and times between basic service packages and additional service packages, rights and interests item usage, user query, and service package return based on the above dual database architecture, ensuring high availability of the system under the premise of meeting business needs.

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

[0080] 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.

[0081] 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.

[0082] 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.

[0083] The server 505 may be a server that provides various services, such as a backend server (for example only) that supports Internet medical applications operated by users using terminal devices 501, 502, and 503. The backend server may process the received rights and interests query request and feed back the processing result (for example, the queried rights and interests item detailed data or aggregated data - for example only) to the terminal devices 501, 502, and 503.

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

[0085] 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.

[0086] 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 package data processing method provided by the present invention.

[0087] 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.

[0088] 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.

[0089] 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.

[0090] 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.

[0091] 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 conjunction 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, in which a computer-readable program code is carried. Such propagated data signals 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 that can 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.

[0092] 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.

[0093] The units involved in the embodiments of the present invention may be implemented by software or hardware. The units described may also be provided in a processor, for example, may be described as: a processor including a data preparation unit and a merging unit. The names of these units do not, in some cases, constitute limitations on the units themselves, for example, the data preparation unit may also be described as a "unit that provides information on rights and interests in an increased service package to the merging unit".

[0094] 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. When the above one or more programs are executed by the device, the steps executed by the device include: when the user's basic service package is in an effective state, in response to the completion of the additional order submitted by the user and carrying the additional service package identifier, determine the rights and interests in the additional service package; determine whether the basic service package and the additional service package have the same rights and interests, merge the basic service package and the additional service package according to the judgment result, and display the rights and interests based on the merged service package.

[0095] In the technical solution of the embodiment of the present invention, when the user's basic service package is in an effective state, after the server detects that the additional order is completed, it determines whether there are the same rights and interests in the basic service package and the additional service package under the user's name, and merges the basic service package and the additional service package according to the judgment result, and finally displays the rights and interests based on the merged service package. In this way, it is possible to realize the merging and querying of multiple service packages under the same user name based on the predetermined rights and interests merging logic between multiple service packages, avoiding the disadvantage of users having to frequently switch between different membership credentials in the prior art, thereby reducing the number of interactions and business complexity, and improving user experience. 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 service packages and rights and interests 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, additional service package order fulfillment, additional items and times between basic service packages and additional service packages, rights and interests item usage, user query, and service package return based on the above dual database architecture, ensuring high availability of the system under the premise of meeting business needs.

[0096] 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 package data processing method, characterized in that: include: In a case where the basic service package of the user is in an effective state, in response to completion of an additional order submitted by the user and carrying an additional service package identifier, determining the benefit items in the additional service package; Determine whether the basic service package and the enhanced service package have the same rights and interests items, merge the basic service package and the enhanced service package according to the determination result, and display the rights and interests items based on the merged service package.

2. The method according to claim 1, characterized in that The benefit item has an available number of times, and the basic service package and the enhanced service package are merged into an aggregated service package; and the determining whether the basic service package and the enhanced service package have the same benefit item, and merging the basic service package and the enhanced service package according to the determination result, comprises: If any benefit item in the enhanced service package is the same as a benefit item in the basic service package, the sum of the available times of the benefit item in the enhanced service package and the available times of the benefit item in the basic service package shall be taken as the available times of the benefit item in the aggregated service package.

3. The method according to claim 2, characterized in that The determining whether the basic service package and the enhanced service package have the same rights and interests, and merging the basic service package and the enhanced service package according to the determination result, includes: If any benefit item in the additional service package is different from any benefit item in the basic service package, the benefit item in the additional service package is placed in the aggregated service package as a new benefit item, and the available number of times of the benefit item in the additional service package is used as the available number of times of the new benefit item in the aggregated service package; If any benefit item in the basic service package is different from any benefit item in the enhanced service package, the benefit item in the basic service package shall be placed in the aggregate service package as a new benefit item, and the available number of times for the benefit item in the basic service package shall be used as the available number of times for the new benefit item in the aggregate service package.

4. The method according to claim 2, characterized in that: Any original service package has a service effective time and a service expiration time, the original service package includes the basic service package and the enhanced service package, and the mutually associated basic service package and enhanced service package have the same service expiration time; And, the method further comprises: The service deadline of the aggregate service package is determined as the service deadline of the basic service package associated with the aggregate service package.

5. The method according to claim 4, characterized in that The method further comprises: In response to the completion of the first order submitted by the user and including the basic service package identifier, determining detailed data of the basic service package and detailed data of the benefit items in the basic service package; The detailed data of the basic service package is stored in a first data table of the first database, and the detailed data of the benefit items in the basic service package is stored in a second data table of the first database.

6. The method according to claim 5, characterized in that The method further comprises: In response to the completion of the additional order, determining detailed data of the additional service package indicated by the additional service package and detailed data of the benefit items in the additional service package; The detailed data of the additional service package is stored in a first data table, and the detailed data of the benefit items in the additional service package is stored in a second data table.

7. The method according to claim 6, characterized in that The detailed data of any basic service package includes: the identifier of the user, the identifier of the basic service package, and the total number of times the benefit items in the basic service package can be used; The detailed data of any additional service package includes: the identifier of the user, the identifier of the additional service package, the total number of times the benefit items in the additional service package can be used, and the identifier of the basic service package associated with the additional service package; The detailed data of any benefit item in any original service package includes: the identifier of the benefit item, the number of times the benefit item can be used in the original service package to which it belongs, and the identifier of the original service package to which the benefit item belongs.

8. 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 sum of the available times of each benefit item obtained through the merger in the aggregated service package, and the identifier of the basic service package or the additional service package corresponding to the aggregated service package; The aggregated data of any benefit item in the aggregated service package includes: an identifier of the benefit item, a usable number of times the benefit item is combined in the aggregated service package, and an identifier of the aggregated service package to which the benefit item belongs.

9. The method according to claim 8, characterized in that The determining whether the basic service package and the enhanced service package have the same rights and interests, and merging the basic service package and the enhanced service package according to the determination result, includes: In response to monitoring a record of the additional service package of the user newly added in 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 storing the aggregated data in the third data table; The aggregate data of the equity items in the aggregate service package is calculated based on the newly added records in the first data table, the newly added records in the second data table, and the original equity item records of the user in the second data table, and the calculated aggregate data is stored in the fourth data table.

10. The method according to claim 8, characterized in that The method further comprises: In response to the user using any benefit item, a first service package is determined from the original service packages containing the benefit item according to a predetermined service package deduction order, the available number of benefit items in the first service package record is deducted by an equal amount in the first data table, and the available number of benefit items recorded under the first service package is deducted by an equal amount in the second data table; In response to monitoring the deduction in the first data table or the second data table, an equal amount of deduction is made for the available number of equity items in the aggregated service package record corresponding to the first service package in the third data table and the equity item record under the aggregated service package in the fourth data table.

11. The method according to claim 8, characterized in that The method further comprises: In response to a detailed query request for a specific original service package or a specific benefit item in the specific original service package issued by the user, obtaining and returning a query result based on the first data table or the second data table; In response to an aggregate query request for a service package or benefit item under a user dimension issued by the user, a query result is obtained based on the third data table or the fourth data table and returned.

12. The method according to claim 8, characterized in that The method further comprises: In response to a return request for the basic service package issued by the user, the basic service package record and the enhanced service package record associated with the basic service package in the first data table are marked as "returned" status, and the benefit item records under the basic service package and the enhanced 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 are marked as "returned" status; In response to a return request issued by the user for any incremental service package, the incremental service package record in the first data table and the benefit item record under the incremental service package in the second data table are marked as "returned" status, and the aggregate service package record corresponding to the incremental service package in the third data table and the available number of benefit items in the benefit item record under the incremental service package in the fourth data table are deducted by an equal amount.

13. The method according to claim 10, characterized in that The determining the first service package from the original service package containing the benefit item according to the predetermined service package deduction order includes: For the basic service package and each additional service package containing the benefit item, if the number of available times of the benefit item in the basic service package is not zero, the basic service package is determined as the first service package; if the number of available times of the benefit item in the basic service package is zero, the additional service package with the earliest order time and containing the benefit item with a non-zero number of available times is determined as the first service package; and the method further includes: Pre-configuring a mapping relationship between the basic service package and the additional service package; Before or after the user submits the additional order, check whether the additional service package indicated by the additional order and the basic service package of the user conform to the mapping relationship; if not, return a prompt to the user that the additional service package and the basic service package do not match.

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

15. A service package data processing device, characterized in that: include: The data preparation unit is used to: when the basic service package of the user is in an effective state, in response to the completion of the additional order submitted by the user and carrying the additional service package identifier, determine the rights and interests in the additional service package; The merging unit is used to determine whether the basic service package and the enhanced service package have the same rights and interests items, merge the basic service package and the enhanced service package according to the determination result, and display the rights and interests items based on the merged service package.

16. 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 14.

17. 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 14 is implemented.