Order additional recording system based on SpringBoot service framework
The order re-recording system based on the SpringBoot service framework solves the problem that the public cloud platform cannot perform order re-recording, achieves stable billing and revenue summary of prepaid and post-paid orders, and improves the reliability and revenue accuracy of cloud products. sex.
Patent Information
- Application Number
- CN202410891202.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-09-20
AI Technical Summary
The public cloud platform cannot perform order re-recording after the instance is activated, resulting in incomplete bill splitting and delivery revenue statistics, affecting the reliability and revenue accuracy of cloud products.
Design an order replenishment system based on the SpringBoot service framework, including an order replenishment module, an accounting module and an order query module. It realizes prepayment and post-payment by creating replenishment orders, sending message queue notifications, scheduled accounting and query services. Stable re-recording and payment of paid orders.
It improves the cloud platform's control over instances, ensures the integrity and accuracy of revenue delivery, reduces financial losses, and solves the problems of instance omissions and illegal use.
Smart Images

Figure CN118674528A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of cloud products, and in particular to an order supplementary recording system based on a SpringBoot service framework. Background Art
[0002] Some users of the public cloud platform who need high reliability have temporary instance requirements. They open instances through the bottom layer of the product line without going through the public cloud backend management system, or the required instance configuration page cannot be opened temporarily. Therefore, it is necessary to re-enter the instance order within the time period after the activation. At the same time, for such re-entered orders, the bill splitting and delivery revenue statistics must be handled properly.
[0003] How to provide stable order re-entry for cloud product control is a technical problem that needs to be solved. Summary of the invention
[0004] The technical task of the present invention is to address the above shortcomings and provide an order re-recording system based on the SpringBoot service framework to solve the technical problem of how to provide stable order re-recording for cloud product control.
[0005] The present invention discloses an order supplementary recording system based on the SpringBoot service framework, comprising an order supplementary recording module, a billing module, an order query module and a database;
[0006] The order supplementary recording module is used to create a supplementary recording order and store the corresponding supplementary recording order information in a database, wherein the supplementary recording order includes a prepaid supplementary recording order and a postpaid supplementary recording order;
[0007] The billing module is used to bill the prepaid re-recording order based on the notification of the order re-recording module, and to bill the postpaid re-recording order regularly;
[0008] The order query module is used to provide query services for supplementary orders.
[0009] Preferably, the order supplementary recording module is used to create a supplementary recording order through the following steps: creating supplementary recording order information based on product instance information, creating an order instance required for the order placement process based on the supplementary recording order information, and storing the supplementary recording order information corresponding to the order instance in a database;
[0010] The product instance information includes the product instance ID, product instance activation time, and information required for normal ordering.
[0011] As a preferred embodiment, for a prepaid supplementary recording order, after storing the corresponding supplementary recording order information in a database, a notification is sent to a billing module through an MQ message queue, and the prepaid supplementary recording order is billed based on the notification and the billing module;
[0012] For post-paid re-recording orders, after the corresponding re-recording order information is stored in the database, the billing module periodically bills the post-paid re-recording orders.
[0013] Preferably, the billing of the prepaid supplementary recording order includes the first billing of the prepaid supplementary recording order and the scheduled task billing of the prepaid supplementary recording order;
[0014] The prepaid billing cycle is calculated on a daily basis;
[0015] The billing logic is: split the amount of each account of the prepaid supplementary order, the original total amount and the discounted price according to the service cycle days, retaining four decimal places, where the total amount is the sum of the amount of each account of the prepaid supplementary order;
[0016] The billing logic on the last day of the service cycle is: subtract the total amount of the prepaid supplementary order from the sum of the amounts of the prepaid supplementary order billed on other days. The calculation result of each amount is the amount of each account on the last day and the total amount, original price and discounted price;
[0017] The first billing of a prepaid re-recording order is as follows: the billing module performs billing based on the billing task notification. If the order end time is less than the current midnight, the bill for all cycles is issued. If the order end time is greater than or equal to the current midnight, it is determined whether the time of receiving the billing task to execute the first billing exceeds the execution time of the prepaid re-recording order scheduled task billing. If it is before the execution time, the billing days should be the integer days from the start time of the re-recording order service to the current time minus 1 day to ensure that there will be no repeated billing when the scheduled task is executed. If it is after the execution time, there is no need to subtract 1 day, and the time less than one day will be discarded.
[0018] The scheduled task for prepaid supplementary order issuance is as follows: at the execution time every day, it is determined that the service time range of the supplementary order includes yesterday's order and then the order is issued.
[0019] Preferably, for post-paid re-recording orders, the billing module is used to perform billing by the second on an hourly basis.
[0020] As a preferred embodiment, the order query module provides a query of the supplementary information of the supplementary order through the query service, and the supplementary information includes the order number, supplementary time, supplementary operator account, supplementary operator ID, order supplementary source, remarks information, and prepaid delivery income summary monthly record;
[0021] Among them, the sources of order re-entry include the platform side and the management side. The platform side corresponds to the orders re-entered in the public cloud console interface, and the management side corresponds to the orders re-entered in the order re-entry page of the public cloud backend management system;
[0022] The prepaid delivery revenue summary month record is used to record the month when the delivery revenue of the prepaid supplementary order is first summarized.
[0023] As a preferred embodiment, the prepaid supplementary recording order delivery revenue summary includes the prepaid supplementary recording order delivery revenue summary and the prepaid supplementary recording bill delivery revenue summary. The prepaid supplementary recording order delivery revenue summary is the order bill amount summary according to the selected time period every month, and the summary dimensions include user id and instance id, and the prepaid supplementary recording order delivery revenue summary needs to be summarized in three dimensions according to the natural month of the account period.
[0024] As a preferred option, the summary of prepaid supplementary recording bill delivery revenue includes two situations: the first summary and the normal summary. The prepaid supplementary recording order is obtained from the supplementary recording record, and the summary method is determined according to the summary month record field. If the record month is empty, it means that the prepaid supplementary recording order has not been summarized, and it is the first summary. All bills currently issued for the prepaid supplementary recording order are summarized according to the natural month of the account period. Otherwise, the recorded month is compared with the currently selected billing month. If they are consistent, it is the first summary. If they are inconsistent, the normal bill summary logic is followed.
[0025] The order supplementary recording system based on the SpringBoot service framework of the present invention has the following advantages:
[0026] 1. By re-entering orders for unrecorded instances, we strengthened the control over cloud platform product instances, thereby improving the integrity and accuracy of cloud platform delivery revenue;
[0027] 2. Realize the billing of prepaid re-recording and subsequent fee re-recording orders. Especially for prepaid re-recording, the re-recording notification is sent to the billing module through the message queue. The billing module provides the first billing of prepaid re-recording orders and the scheduled task billing of prepaid re-recording orders, realizing the billing requirements of prepaid re-recording. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0029] The present invention is further described below in conjunction with the accompanying drawings.
[0030] Figure 1 This is a structural block diagram of an order supplementary recording system based on the SpringBoot service framework in Example 1. DETAILED DESCRIPTION
[0031] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and implement it. However, the embodiments are not intended to limit the present invention. In the absence of conflict, the embodiments of the present invention and the technical features in the embodiments may be combined with each other.
[0032] The embodiment of the present invention provides an order re-recording system based on the SpringBoot service framework, which is used to solve the technical problem of how to provide stable order re-recording for cloud product control.
[0033] Example:
[0034] The present invention discloses an order supplementary recording system based on SpringBoot service framework, comprising an order supplementary recording module, a billing module, an order query module and a database.
[0035] The order supplementary recording module is used to create supplementary recording orders and store the corresponding supplementary recording order information in the database. The supplementary recording orders include prepaid supplementary recording orders and postpaid supplementary recording orders.
[0036] As a specific implementation of the order supplementary recording module, the module creates a supplementary recording order through the following steps: creating supplementary recording order information based on product instance information, creating an order instance required for the order placement process based on the supplementary recording order information, and storing the supplementary recording order information corresponding to the order instance in the database. Among them, the product instance information includes the product instance ID, the product instance activation time, and the information required for normal order placement.
[0037] The billing module is used to bill prepaid re-recording orders based on notifications from the order re-recording module, and to bill postpaid re-recording orders on a regular basis.
[0038] In this embodiment, for prepaid supplementary recording orders, after the corresponding supplementary recording order information is stored in the database, a notification is sent to the billing module through the MQ message queue, and the billing module bills the prepaid supplementary recording order based on the notification; for postpaid supplementary recording orders, after the corresponding supplementary recording order information is stored in the database, the billing module regularly bills the postpaid supplementary recording order.
[0039] Among them, the billing of prepaid re-recording orders includes the first billing of prepaid re-recording orders and the scheduled task billing of prepaid re-recording orders. The prepaid billing cycle is calculated on a day basis.
[0040] The billing logic is: split the amount of each account of the prepaid supplementary order and the original and discounted price of the total amount according to the number of days in the service cycle, retaining four decimal places, where the total amount is the sum of the amounts of each account of the prepaid supplementary order. The billing logic on the last day of the service cycle is: subtract the total amount of the prepaid supplementary order from the sum of the amounts of the bills issued on other days of the prepaid supplementary order, and the calculation result of each amount is the amount of each account on the last day and the original and discounted price of the total amount;
[0041] The first billing of a prepaid re-recording order is as follows: the billing module performs billing based on the billing task notification. If the order end time is less than the current midnight, the bill for the entire cycle is issued. If the order end time is greater than or equal to the current midnight, it is determined whether the time when the billing task is received to execute the first billing exceeds the execution time of the prepaid re-recording order scheduled task billing. If it is before the execution time, the billing days should be the integer days from the start time of the re-recording order service to the current time minus 1 day to ensure that there will be no repeated billing when the scheduled task is executed. If it is after the execution time, there is no need to subtract 1 day, and the time less than one day will be discarded.
[0042] The scheduled task for prepaid supplementary order issuance is as follows: at the execution time every day, it is determined that the service time range of the supplementary order includes yesterday's order and then the order is issued.
[0043] For post-paid re-entry orders, the billing module is used to perform billing by the second on an hourly basis.
[0044] The order query module is used to provide query services for supplementary orders.
[0045] In this embodiment, the order query module provides supplementary information query for supplementary orders through query services. The supplementary information includes order number, supplementary time, supplementary operator account, supplementary operator ID, order supplementary source, remarks information, and prepaid delivery income summary monthly record.
[0046] Among them, the sources of order re-entry include the platform side and the management side. The platform side corresponds to the orders re-entered in the public cloud console interface, and the management side corresponds to the orders re-entered in the order re-entry page of the public cloud background management system.
[0047] The prepaid delivery revenue summary month record is used to record the month when the delivery revenue of the prepaid supplementary order is first summarized.
[0048] Prepaid supplementary recording order delivery revenue summary The delivery revenue summary includes the prepaid supplementary recording order delivery revenue summary and the prepaid supplementary recording bill delivery revenue summary. The prepaid supplementary recording order delivery revenue summary is the order bill amount summary according to the selected time period every month. The summary dimensions include user id and instance id, and the prepaid supplementary recording order delivery revenue summary needs to be summarized in three dimensions according to the natural month of the billing period.
[0049] The prepaid supplementary recording bill delivery revenue summary includes two situations: the first summary and the normal summary. The prepaid supplementary recording order is obtained from the supplementary recording record, and the summary method is determined according to the summary month record field. If the record month is empty, it means that the prepaid supplementary recording order has not been summarized, which is the first summary. All the bills currently issued for the prepaid supplementary recording order are summarized by natural month of the billing period. Otherwise, the recorded month is compared with the currently selected billing month. If they are consistent, it is the first summary. If they are inconsistent, it is performed according to the normal bill summary logic.
[0050] The normal ordering process requires the public cloud backend management system to save the preliminary order instance data, and after the account deduction is completed, the instance information purchased by the user will be sent to the cloud platform product line for instance activation. After the cloud platform product line is activated, the public cloud backend management system will be notified, and the notification information will include the instance activation time and instance ID. The order supplementary recording is based on the existing order generation logic and can supplement the prepaid or postpaid new purchase orders. Compared with the normal order, the supplementary order cancels the logic of notifying the product line to activate the instance, and the operator, operation time and corresponding order number of the supplementary operation will be recorded in the database.
[0051] The system of this embodiment can realize order re-recording, re-recording record query, prepaid re-recording order billing, postpaid re-recording order billing, prepaid re-recording order bill delivery income summary, postpaid re-recording order bill delivery income summary.
[0052] The system of this embodiment solves the problems of long-term omission and illegal use of some cloud platform product instances, lack of cloud platform profits, etc., while improving the work efficiency of operators. The system provides an order re-recording function, which re-records orders for unrecorded instances to facilitate management and solve profit losses; the system provides a summary of delivery revenue of re-recorded orders, and summarizes the delivery revenue of re-recorded orders to improve revenue accuracy and reduce financial losses.
[0053] The present invention has been shown and described in detail above through the accompanying drawings and preferred embodiments. However, the present invention is not limited to these disclosed embodiments. Based on the above multiple embodiments, those skilled in the art can know that the means in the above different embodiments can be combined to obtain more embodiments of the present invention, and these embodiments are also within the protection scope of the present invention.
Claims
1. An order supplementary recording system based on SpringBoot service framework, characterized in that: Including order re-entry module, billing module, order query module and database; The order supplementary recording module is used to create a supplementary recording order and store the corresponding supplementary recording order information in a database, wherein the supplementary recording order includes a prepaid supplementary recording order and a postpaid supplementary recording order; The billing module is used to bill the prepaid re-recording order based on the notification of the order re-recording module, and to bill the postpaid re-recording order regularly; The order query module is used to provide query services for supplementary orders.
2. According to the order supplementary recording system based on the SpringBoot service framework according to claim 1, it is characterized in that: The order supplementary recording module is used to create a supplementary recording order through the following steps: creating supplementary recording order information based on product instance information, creating an order instance required for the order placement process based on the supplementary recording order information, and storing the supplementary recording order information corresponding to the order instance in the database; The product instance information includes the product instance ID, product instance activation time, and information required for normal ordering.
3. According to the order supplementary recording system based on SpringBoot service framework according to claim 1, it is characterized in that: For prepaid re-recording orders, after storing the corresponding re-recording order information in the database, a notification is sent to the billing module through the MQ message queue, and the prepaid re-recording order is billed based on the notification and the billing module; For post-paid re-recording orders, after the corresponding re-recording order information is stored in the database, the billing module periodically bills the post-paid re-recording orders.
4. The order supplementary recording system based on the SpringBoot service framework according to claim 1 is characterized in that: The billing of prepaid re-recording orders includes the first billing of prepaid re-recording orders and the scheduled billing of prepaid re-recording orders; The prepaid billing cycle is calculated on a daily basis; The billing logic is: split the amount of each account of the prepaid supplementary order, the original total amount and the discounted price according to the service cycle days, retaining four decimal places, where the total amount is the sum of the amount of each account of the prepaid supplementary order; The billing logic on the last day of the service cycle is: subtract the total amount of the prepaid supplementary order from the sum of the amounts of the prepaid supplementary order billed on other days. The calculation result of each amount is the amount of each account on the last day and the total amount, original price and discounted price; The first billing of a prepaid re-recording order is as follows: the billing module performs billing based on the billing task notification. If the order end time is less than the current midnight, the bill for all cycles is issued. If the order end time is greater than or equal to the current midnight, it is determined whether the time of receiving the billing task to execute the first billing exceeds the execution time of the prepaid re-recording order scheduled task billing. If it is before the execution time, the billing days should be the integer days from the start time of the re-recording order service to the current time minus 1 day to ensure that there will be no repeated billing when the scheduled task is executed. If it is after the execution time, there is no need to subtract 1 day, and the time less than one day will be discarded. The scheduled task for prepaid supplementary order issuance is as follows: at the execution time every day, it is determined that the service time range of the supplementary order includes yesterday's order and then the order is issued.
5. The order supplementary recording system based on the SpringBoot service framework according to claim 1 is characterized in that: For post-paid re-entry orders, the billing module is used to perform billing by the second on an hourly basis.
6. The order supplementary recording system based on the SpringBoot service framework according to claim 1 is characterized in that: The order query module provides the query of supplementary information of supplementary orders through the query service. The supplementary information includes order number, supplementary time, supplementary operator account, supplementary operator ID, order supplementary source, remarks information, and prepaid delivery income summary monthly record; Among them, the sources of order re-entry include the platform side and the management side. The platform side corresponds to the orders re-entered in the public cloud console interface, and the management side corresponds to the orders re-entered in the order re-entry page of the public cloud backend management system; The prepaid delivery revenue summary month record is used to record the month when the delivery revenue of the prepaid supplementary order is first summarized.
7. The order supplementary recording system based on the SpringBoot service framework according to claim 6 is characterized in that: Prepaid supplementary recording order delivery revenue summary The delivery revenue summary includes the prepaid supplementary recording order delivery revenue summary and the prepaid supplementary recording bill delivery revenue summary. The prepaid supplementary recording order delivery revenue summary is the order bill amount summary according to the selected time period every month. The summary dimensions include user id and instance id, and the prepaid supplementary recording order delivery revenue summary needs to be summarized in three dimensions according to the natural month of the billing period.
8. The order supplementary recording system based on the SpringBoot service framework according to claim 7 is characterized in that: The prepaid supplementary recording bill delivery revenue summary includes two situations: the first summary and the normal summary. The prepaid supplementary recording order is obtained from the supplementary recording record, and the summary method is determined according to the summary month record field. If the record month is empty, it means that the prepaid supplementary recording order has not been summarized, which is the first summary. All the bills currently issued for the prepaid supplementary recording order are summarized by natural month of the billing period. Otherwise, the recorded month is compared with the currently selected billing month. If they are consistent, it is the first summary. If they are inconsistent, it is performed according to the normal bill summary logic.
