A method and system for solving the problem of data inconsistency before and after data flushing
By distinguishing the status of online ride-hailing orders and performing detailed amount processing, the problem of excessive order change cycle and inconsistent data is solved, and the integrity of financial statistics and the reduction of manual accounting adjustment costs are achieved.
Patent Information
- Application Number
- CN202411779571.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-05
- Publication Date
- 2025-04-04
AI Technical Summary
When handling online ride-hailing orders, the order change cycle is too long, so that the actual income cannot be fully counted into the accounts, and the order status changes cause inconsistencies before and after the completion of the order data.
By distinguishing between service completion orders and service cancellation orders, recording the order number, completion date and order fee total, generating an order identification, entering the state to be paid, and processing of complaint reduction, discount reduction and re-complaint amount in different states to ensure the accuracy and completeness of the data.
It solves the problem of incomplete revenue statistics and inconsistency in the order status changes when the order change cycle is too long. It records the process of order amount changes, ensures the integrity of financial statistics, and reduces the cost of manual financial accounting adjustments.
Smart Images

Figure CN119762174A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of order data processing, and in particular relates to a method and system for solving the problem of data inconsistency before and after data flushing. Background Art
[0002] Online ride-hailing orders involve multiple technical modules such as orders, dispatching, and billing. Most data is stored at the smallest granularity of orders. When the order status or data changes, the latest data is retained, which does not reflect the data changes and only displays the final result of the order. Currently, the completed order data is counted according to the status of order completion or order post-payment, but because the final status standards of canceled orders are not unified among various partners, the completed order data of the same date will be different on different days.
[0003] Therefore, the existing technology has the following defects: (1) when the order change cycle is too long, the actual order revenue cannot be fully counted in the account; (2) the order status changes, resulting in inconsistency in the order completion data. Summary of the invention
[0004] The purpose of the embodiments of the present invention is to provide a method and system for solving the problem of data inconsistency before and after data flushing, aiming to solve the technical problems existing in the prior art mentioned in the background technology.
[0005] The embodiment of the present invention is implemented as follows:
[0006] A method for solving the problem of data inconsistency before and after data flushing, the method specifically comprises the following steps:
[0007] For driver services, differentiate between completed service orders and cancelled service orders, record the order number, order completion date and total order fee, generate an order ID, and enter the payment pending state;
[0008] In the pending payment state, the amount reduction judgment and date update processing of the complaint reduction are performed;
[0009] When the passenger pays, the amount of discount or exemption is determined and the date is updated;
[0010] After the passenger completes the payment, the refund amount for the second complaint will be determined and the date will be updated.
[0011] As a further limitation of the technical solution of the embodiment of the present invention, for the driver service, distinguishing between service completion orders and service cancellation orders, recording the order number, order completion date and total order fee, generating an order identifier, and entering the payment pending state specifically include the following steps:
[0012] For driver services, a distinction is made between service completion orders and service cancellation orders;
[0013] When the driver service completes the order for the service, the order number, order completion date and total order fee are directly recorded, an order identifier is generated, and the order enters a pending payment state;
[0014] When the driver service cancels an order for a service, determining whether a cancellation fee is incurred;
[0015] When cancellation fees are incurred, the order number, order completion date and total order fees are recorded in combination with the cancellation fees, an order ID is generated, and the order enters the pending payment state.
[0016] As a further limitation of the technical solution of the embodiment of the present invention, the total order fee includes: order flow and settlement amount.
[0017] As a further limitation of the technical solution of the embodiment of the present invention, in the pending payment state, the amount reduction judgment and date update processing of the complaint reduction specifically include the following steps:
[0018] In the pending payment state, determining whether there is a passenger complaint;
[0019] When there is a passenger complaint, the complaint exemption amount is determined and the customer service will perform the exemption operation;
[0020] In the order identification, the customer service operation date is updated.
[0021] As a further limitation of the technical solution of the embodiment of the present invention, the determination of the amount of preferential exemption and the date update processing when the passenger pays specifically include the following steps:
[0022] When the passenger pays, determine whether there are any preferential exemptions;
[0023] When preferential exemptions are available, determine the preferential exemption amount and process preferential payment;
[0024] In the order identification, the passenger payment date is updated.
[0025] As a further limitation of the technical solution of the embodiment of the present invention, after the passenger completes the payment, the refund judgment and date update processing of the re-complaint amount specifically include the following steps:
[0026] After the passenger completes the payment, it is determined whether there is another complaint;
[0027] When there is a second complaint, the customer will enter the customer complaint link and receive the judgment result from the customer service;
[0028] According to the judgment result, when a reduction or exemption is required, determine the amount of the reduction or exemption;
[0029] In the order identification, the customer service operation date is updated.
[0030] A system for solving the problem of inconsistent data before and after data flushing, the system includes a driver service processing module, a complaint exemption processing module, a preferential exemption processing module and a second complaint processing module, wherein:
[0031] The driver service processing module is used to distinguish between completed service orders and cancelled service orders for driver services, record the order number, order completion date and total order cost, generate an order ID, and enter the payment waiting state;
[0032] A complaint exemption processing module, used for determining the amount exemption and updating the date of complaint exemption in the pending payment state;
[0033] The preferential reduction and exemption processing module is used to determine the preferential reduction and exemption amount and update the date when the passenger pays;
[0034] The second complaint processing module is used to determine the refund amount and update the date of the second complaint after the passenger completes the payment.
[0035] Compared with the prior art, the present invention has the following beneficial effects:
[0036] The embodiment of the present invention distinguishes between service completion orders and service cancellation orders, records the order number, order completion date and total order fee, generates an order identifier, and enters the pending payment state; in the pending payment state, the amount reduction judgment and date update processing of complaint exemption are performed; when the passenger pays, the amount reduction judgment and date update processing of preferential exemption are performed; after the passenger completes the payment, the amount refund judgment and date update processing of the re-complaint are performed. It can solve the problem that when the order change cycle is too long, the actual order income cannot be fully counted in the account and the order status changes, resulting in inconsistency before and after the order data, and can record the order amount change process, ensure the integrity of financial statistics, and reduce the cost of manual financial adjustment. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 A flow chart of a method for solving the problem of data inconsistency before and after data flushing provided by an embodiment of the present invention is shown;
[0038] Figure 2 The application architecture diagram of the system for solving the problem of data inconsistency before and after data flushing provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0040] It is understandable that the existing technology has the following defects: (1) when the order change cycle is too long, the actual order revenue cannot be fully counted in the account; (2) the order status changes, resulting in inconsistency in the order completion data.
[0041] To solve the above problems, the embodiment of the present invention discloses a method and system for solving the problem of inconsistent data before and after data flushing, which distinguishes between service completion orders and service cancellation orders, records the order number, order completion date and total order cost, generates an order identifier, and enters the pending payment state; in the pending payment state, the amount reduction judgment and date update processing for complaint exemption are performed; when the passenger pays, the amount reduction judgment and date update processing for preferential exemption are performed; after the passenger completes the payment, the amount refund judgment and date update processing for the re-complaint are performed. It can solve the problem that when the order change cycle is too long, the actual income of the order cannot be fully counted in the account and the order status changes, resulting in inconsistency before and after the order is completed. It can record the order amount change process, ensure the integrity of financial statistics, and reduce the cost of manual financial adjustment.
[0042] Specifically, Figure 1 A flow chart of a method for solving the problem of data inconsistency before and after data flushing provided by an embodiment of the present invention is shown.
[0043] In a preferred embodiment of the present invention, a method for solving the problem of data inconsistency before and after data flushing is provided, characterized in that the method specifically comprises the following steps.
[0044] Step S101: For driver services, differentiate between service completion orders and service cancellation orders, record the order number, order completion date and total order fee, generate an order ID, and enter the payment pending state.
[0045] In an embodiment of the present invention, for driver services, a distinction is made between service completion orders and service cancellation orders. When the driver service completes an order for a service, the order number, completion date and total order cost are directly recorded, an order identification is generated, and the order enters a pending payment state. When the driver service cancels an order for a service, it is necessary to determine whether a cancellation fee is generated, and if a cancellation fee is generated, the order number, completion date and total order cost are recorded in combination with the cancellation fee, an order identification is generated, and the order enters a pending payment state. Specifically, the total order cost includes: order flow and settlement amount.
[0046] Step S102: In the pending payment state, the amount reduction judgment and date update processing of the complaint reduction are performed.
[0047] In an embodiment of the present invention, when the payment is pending, it is necessary to determine whether there is a passenger complaint, and if there is a passenger complaint, determine the complaint exemption amount, and have the customer service perform the exemption operation, and then update the corresponding customer service operation date in the order identification.
[0048] Step S103: When the passenger pays, the amount of the discount is determined and the date is updated.
[0049] In an embodiment of the present invention, when a passenger pays, it is determined whether there are any preferential exemptions, and if so, the amount of the preferential exemption is determined, and then preferential payment processing is performed according to the preferential exemption amount, and the passenger payment date is updated in the order identification.
[0050] Step S104: After the passenger completes payment, the refund amount for the second complaint is determined and the date is updated.
[0051] In an embodiment of the present invention, after the passenger completes payment, it is determined whether there is another complaint. If there is a second complaint, the customer complaint stage is entered. At this time, the customer service determines whether to reduce or waive the refund. The judgment result of the customer service is received, and based on the judgment result, when a refund is required, the refund amount is determined, and the corresponding customer service operation date is updated in the order identification.
[0052] Furthermore, Figure 2 The application architecture diagram of the system for solving the problem of data inconsistency before and after data flushing provided by an embodiment of the present invention is shown.
[0053] Among them, in another preferred embodiment provided by the present invention, a system for solving the problem of data inconsistency before and after data flushing includes:
[0054] The driver service processing module 101 is used to distinguish between service completion orders and service cancellation orders for driver services, record the order number, order completion date and total order cost, generate an order identifier, and enter a payment waiting state.
[0055] In an embodiment of the present invention, for driver services, the driver service processing module 101 distinguishes between service completion orders and service cancellation orders. When the driver service completes an order for a service, the order number, completion date and total order cost are directly recorded, an order identifier is generated, and the order enters a pending payment state. When the driver service cancels an order for a service, it is necessary to determine whether a cancellation fee is generated, and if a cancellation fee is generated, the order number, completion date and total order cost are recorded in combination with the cancellation fee, an order identifier is generated, and the order enters a pending payment state. Specifically, the total order cost includes: order flow and settlement amount.
[0056] The complaint exemption processing module 102 is used to determine the amount of complaint exemption and update the date when the payment is pending.
[0057] In an embodiment of the present invention, when in the payment waiting state, the complaint reduction processing module 102 needs to determine whether there is a passenger complaint, and if there is a passenger complaint, determine the complaint reduction amount, and the customer service performs the reduction operation, and then updates the corresponding customer service operation date in the order identification.
[0058] The preferential reduction and exemption processing module 103 is used to determine the preferential reduction and exemption amount and update the date when the passenger pays.
[0059] In an embodiment of the present invention, when a passenger pays, the preferential exemption processing module 103 determines whether there are preferential exemptions, and if so, determines the preferential exemption amount, and then performs preferential payment processing according to the preferential exemption amount, and then updates the passenger payment date in the order identification.
[0060] The second complaint processing module 104 is used to determine the refund amount and update the date of the second complaint after the passenger completes the payment.
[0061] In an embodiment of the present invention, after the passenger completes payment, the second complaint processing module 104 determines whether there is a second complaint. In the case of a second complaint, the customer complaint link is entered. At this time, the customer service determines whether to reduce or waive the refund. The judgment result of the customer service is received, and based on the judgment result, when a reduction or waiver is required, the refund amount is determined, and the corresponding customer service operation date is updated in the order identification.
[0062] It should be understood that, although each step in the flow chart of each embodiment of the present invention is shown in sequence according to the indication of the arrow, these steps are not necessarily performed in sequence according to the order indicated by the arrow. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be performed in other orders. Moreover, at least a portion of the steps in each embodiment may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these sub-steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.
[0063] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0064] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
Claims
1. A method for solving the problem of data inconsistency before and after data flushing, characterized in that: The method specifically comprises the following steps: For driver services, differentiate between completed service orders and cancelled service orders, record the order number, order completion date and total order fee, generate an order ID, and enter the payment pending state; In the pending payment state, the amount reduction judgment and date update processing of the complaint reduction are performed; When the passenger pays, the amount of discount or exemption is determined and the date is updated; After the passenger completes the payment, the refund amount for the second complaint will be determined and the date will be updated.
2. The method for solving the problem of data inconsistency before and after data flushing according to claim 1 is characterized in that: For the driver service, distinguishing between service completion orders and service cancellation orders, recording the order number, order completion date and total order fee, generating an order identifier, and entering the pending payment state specifically includes the following steps: For driver services, a distinction is made between service completion orders and service cancellation orders; When the driver service completes the order for the service, the order number, order completion date and total order fee are directly recorded, an order identifier is generated, and the order enters a pending payment state; When the driver service cancels an order for a service, determining whether a cancellation fee is incurred; When cancellation fees are incurred, the order number, order completion date and total order fees are recorded in combination with the cancellation fees, an order ID is generated, and the order enters the pending payment state.
3. The method for solving the problem of data inconsistency before and after data flushing according to claim 2 is characterized in that: The total order fee includes: order flow and settlement amount.
4. The method for solving the problem of data inconsistency before and after data flushing according to claim 1 is characterized in that: In the pending payment state, the amount reduction judgment and date update processing of the complaint reduction specifically include the following steps: In the pending payment state, determining whether there is a passenger complaint; When there is a passenger complaint, the complaint exemption amount is determined and the customer service will perform the exemption operation; In the order identification, the customer service operation date is updated.
5. The method for solving the problem of data inconsistency before and after data flushing according to claim 1 is characterized in that: When the passenger pays, the determination of the amount of the preferential exemption and the date update process specifically include the following steps: When the passenger pays, determine whether there are any preferential exemptions; When preferential exemptions are available, determine the preferential exemption amount and process preferential payment; In the order identification, the passenger payment date is updated.
6. The method for solving the problem of data inconsistency before and after data flushing according to claim 1 is characterized in that: After the passenger completes the payment, the refund judgment and date update process for the second complaint specifically includes the following steps: After the passenger completes the payment, it is determined whether there is another complaint; When there is a second complaint, the customer will enter the customer complaint link and receive the judgment result from the customer service; According to the judgment result, when a reduction or exemption is required, determine the amount of the reduction or exemption; In the order identification, the customer service operation date is updated.
7. A system for solving the problem of data inconsistency before and after data flushing, characterized in that: The system includes a driver service processing module, a complaint exemption processing module, a preferential exemption processing module and a second complaint processing module, wherein: The driver service processing module is used to distinguish between completed service orders and cancelled service orders for driver services, record the order number, order completion date and total order cost, generate an order ID, and enter the payment waiting state; A complaint exemption processing module, used for determining the amount exemption and updating the date of complaint exemption in the pending payment state; The preferential reduction and exemption processing module is used to determine the preferential reduction and exemption amount and update the date when the passenger pays; The second complaint processing module is used to determine the refund amount and update the date of the second complaint after the passenger completes the payment.