Data synchronization method and device
By automatically synchronizing the target contract information in the contract system to the user discount system or billing system, the data accuracy risks caused by manual entry are solved, business processing efficiency is improved, and the accuracy of the billing system is ensured.
Patent Information
- Application Number
- CN202011052811.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-29
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2040-09-29
AI Technical Summary
In the enterprise's sales ecosystem, the gap between the contract system and the user discount system causes the entry of billing rules to rely on manual operations, which poses a risk of data accuracy and affects business processing efficiency.
Provide a data synchronization method, by obtaining the information of the target contract from the contract system, judging its review status, and extracting user identification, product identification and discount information when it is passed, and automatically synchronizing it to the user discount system or billing system, including deletion Operations such as historical non-standard discount rates, updating discount information, etc. to ensure data accuracy.
It realizes automatic data docking, avoids manual intervention, improves business processing efficiency, and ensures that the billing system can accurately calculate bills.
Smart Images

Figure CN112132550B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a data synchronization method and device. Background Art
[0002] In the entire sales ecosystem of the enterprise, sales staff report the customer's billing rules through the contract system, the user discount system records the customer's billing rules, and the billing system issues product orders based on the discount and product unit price in the user discount system. However, there is a gap between the contract system and the user discount system, and it is necessary to rely on manual operation to enter the billing rules reported in the contract system into the user discount system. The accuracy of the entered discount time and billing rules depends entirely on manual control, which poses great risks. Summary of the invention
[0003] In view of this, an embodiment of the present application provides a data synchronization method and device to achieve automatic data docking and ensure data accuracy.
[0004] To solve the above problems, the technical solutions provided in the embodiments of the present application are as follows:
[0005] In a first aspect of an embodiment of the present application, a data synchronization method is provided, which may include:
[0006] Acquire a target contract from a contract system, where the target contract is a newly added contract;
[0007] Determine whether the target contract has been approved;
[0008] When the target contract is approved, extracting the contract information of the target contract, the contract information including the user identifier, the product identifier and the discount information, the discount information including at least the discount rate;
[0009] The user discount system or the billing system is synchronized according to the contract information.
[0010] In a possible implementation, synchronizing the user discount system or the billing system according to the contract information includes:
[0011] Determining whether the discount rate corresponding to the discount information in the contract information is a standard discount rate;
[0012] When the discount rate is a standard discount rate, determining whether there is a historical non-standard discount rate in the user discount system or the billing system;
[0013] When there is a historical non-standard discount rate, a deletion instruction is sent to the user discount system or the billing system to delete the historical non-standard discount rate.
[0014] In a possible implementation, when there is a historical non-standard discount rate, sending a deletion instruction to the user discount system or the billing system to delete the historical non-standard discount rate includes:
[0015] Determine whether the effective time corresponding to the discount rate is greater than the current time;
[0016] If so, a deletion instruction is sent to the user discount system or the billing system at a predetermined time to delete the historical non-standard discount rate.
[0017] In a possible implementation, synchronizing the user discount system or the billing system according to the contract information includes:
[0018] Determining whether the discount rate corresponding to the discount information in the contract information is a standard discount rate;
[0019] When the discount rate is a non-standard discount rate, determining whether the user discount system or the billing system has a historical non-standard discount rate;
[0020] When there is no historical non-standard discount rate, the discount information is sent to the user discount system or the billing system.
[0021] In a possible implementation, when there is no historical non-standard discount rate, sending the discount information to the user discount system or the billing system includes:
[0022] Determine whether the effective time corresponding to the discount rate is greater than the current time;
[0023] If yes, the discount information is sent to the user discount system or the billing system at a predetermined time.
[0024] In a possible implementation, the method further includes:
[0025] When there is a historical non-standard discount rate, determining whether the discount information is consistent with the historical discount information, wherein the historical discount information includes the historical non-standard discount rate;
[0026] When the discount information is inconsistent with the historical discount information, the discount information is sent to a user discount system or a billing system.
[0027] In a possible implementation, when the discount information is inconsistent with the historical discount information, sending the discount information to the user discount system or the billing system includes:
[0028] Determine whether the effective time corresponding to the discount rate is greater than the current time;
[0029] If yes, the discount information is sent to the user discount system or the billing system at a predetermined time.
[0030] In a possible implementation, the discount information further includes a billing method and / or a discount type, the billing method includes a prepaid billing method and a real-time payment billing method, and the discount type includes a fixed discount and a tiered discount.
[0031] In a possible implementation, determining whether the target contract is approved includes:
[0032] Obtaining a classification label corresponding to the target contract, wherein the classification label is used to indicate whether the target contract has passed the review, failed the review, or has not been reviewed;
[0033] Determine whether the target contract has been approved based on the classification label.
[0034] In a possible implementation, when the classification label is not passed or not reviewed, the method further includes:
[0035] Send reminder messages to prompt review or correction.
[0036] In a second aspect of an embodiment of the present application, a data synchronization device is provided, the device comprising:
[0037] An acquisition unit, used for acquiring a target contract from a contract system, wherein the target contract is a newly added contract;
[0038] A determination unit, used to determine whether the target contract has been approved;
[0039] an extracting unit, configured to extract contract information of the target contract when the determining unit determines that the audit is passed, the contract information including a user identifier, a product identifier, and discount information, the discount information including at least a discount rate;
[0040] A synchronization unit is used to synchronize the user discount system or the billing system according to the contract information.
[0041] In a possible implementation, the synchronization unit includes:
[0042] A first judging subunit is used to judge whether the discount rate corresponding to the discount information in the contract information is a standard discount rate;
[0043] A second judgment subunit is used to judge whether there is a historical non-standard discount rate in the user discount system or the billing system when the discount rate is a standard discount rate;
[0044] The sending subunit is used to send a deletion instruction to the user discount system or the billing system to delete the historical non-standard discount rate when the discount rate is a standard discount rate and when there is a historical non-standard discount rate.
[0045] In one possible implementation, the sending subunit is specifically used to determine whether the effective time corresponding to the discount rate is greater than the current time when the discount rate is a standard discount rate and when there is a historical non-standard discount rate; if so, a deletion instruction is sent to the user discount system or the billing system at a predetermined time to delete the historical non-standard discount rate.
[0046] In a possible implementation, the synchronization unit includes:
[0047] A first judging subunit is used to judge whether the discount rate corresponding to the discount information in the contract information is a standard discount rate;
[0048] A second judgment subunit is used for judging whether there is a historical non-standard discount rate in the user discount system or the billing system when the discount rate is a non-standard discount rate;
[0049] The sending subunit is used to send the discount information to the user discount system or the billing system when the discount rate is a non-standard discount rate and there is no historical non-standard discount rate.
[0050] In a possible implementation, the sending subunit is specifically used to determine whether the effective time corresponding to the discount rate is greater than the current time; if so, the discount information is sent to the user discount system or the billing system at a predetermined time.
[0051] In a possible implementation, when there is a historical non-standard discount rate, the synchronization unit further includes: a third judgment subunit;
[0052] The third judgment subunit is used to judge whether the discount information is consistent with the historical discount information, and the historical discount information includes the historical non-standard discount rate;
[0053] The sending subunit is used to send the discount information to the user discount system or the billing system when the judgment result of the third judgment subunit is inconsistent.
[0054] In one possible implementation, when the discount information is inconsistent with the historical discount information, the sending subunit is specifically used to determine whether the effective time corresponding to the discount rate is greater than the current time; if so, the discount information is sent to the user discount system or billing system at a predetermined time.
[0055] In a possible implementation, the discount information further includes a billing method and / or a discount type, the billing method includes a prepaid billing method and a real-time payment billing method, and the discount type includes a fixed discount and a tiered discount.
[0056] In a possible implementation manner, the determining unit includes:
[0057] An acquisition subunit, used to acquire a classification label corresponding to the target contract, wherein the classification label is used to indicate whether the target contract has been reviewed, has not been reviewed, or has not been reviewed;
[0058] A determination subunit is used to determine whether the target contract has been reviewed and approved based on the classification label.
[0059] In a possible implementation, when the classification label is not passed or not reviewed, the device further includes:
[0060] The sending unit is used to send prompt information to prompt review or correction.
[0061] In a third aspect of an embodiment of the present application, a data synchronization system is provided, characterized in that the system includes the data synchronization device described in the second aspect.
[0062] In a fourth aspect of the embodiments of the present application, a computer-readable storage medium is provided, comprising instructions, which, when executed on a computer, enable the computer to execute the method described in the first aspect.
[0063] It can be seen that the embodiments of the present application have the following beneficial effects:
[0064] The data synchronization method of the embodiment of the present application can obtain a newly added target contract from the contract system and determine whether the target contract has been reviewed and approved. When the review is passed, the contract information is extracted from the target contract, and the contract information includes a user identifier, a product identifier, and discount information. Among them, the discount information can indicate the corresponding discount when the user purchases the product. When the contract information is extracted, the user discount system or the billing system is synchronized according to the contract information, thereby realizing the synchronization of the discount information, avoiding manual intervention, ensuring the accuracy of the data, and improving the efficiency of business processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, 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 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.
[0066] Figure 1A flow chart of a data synchronization method provided in an embodiment of the present application;
[0067] Figure 2 A flowchart of another data synchronization method provided in an embodiment of the present application;
[0068] Figure 3 A structural diagram of a data synchronization device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0069] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the embodiments of the present application are further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0070] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0071] In its research on traditional sales systems, the applicant found that due to the disconnection between the contract system and the user discount system or between the contract system and the billing system, the data in the contract system could not be synchronized to the user discount system or the billing system in a timely manner, and had to rely on manual input. Manual input requires entering information such as customer name, product line name, and corresponding product discounts. Manual operation is very likely to cause input errors, resulting in errors in the final bill, affecting business processing efficiency.
[0072] Based on this, an embodiment of the present application provides a data synchronization method, which is applied to a synchronization system. When a target contract is added to a contract system, the synchronization system will obtain the target contract from the contract system and determine whether the target contract has been approved. When the target contract is approved, contract information is extracted from the target contract, and the contract information includes a user ID, a product ID, and discount information, and the data of the user discount system or the billing system is synchronized based on the contract information. That is, the embodiment of the present application can automatically extract contract information from a newly added contract, and determine whether to directly synchronize the discount information in the contract information to the user discount system or the billing system based on the contract information, so that the billing system can accurately calculate based on the synchronized data when calculating the bill, thereby ensuring the accuracy of the data and improving the efficiency of business operations.
[0073] To facilitate understanding of a data synchronization method provided in an embodiment of the present application, the method will be described below with reference to the accompanying drawings.
[0074] See also Figure 1 , which is a flow chart of a data synchronization method provided by an embodiment of the present application, such as Figure 1As shown, the method may include:
[0075] S101: Obtain a target contract from a contract system.
[0076] In this embodiment, the synchronization system can monitor in real time whether there is a new contract in the contract system. If there is a new contract, the new contract, i.e., the target contract, is obtained from the contract system. The target contract includes information negotiated between the customer and the merchant, such as the purchased product identification, discount effective date, discount rate, discount type, and billing method, etc.
[0077] Specifically, the synchronization system may extract new contracts added within a preset time period from the contract system according to a preset cycle, or, when the synchronization system detects that there are new contracts in the contract system, it obtains the new contracts from the contract system.
[0078] S102: Determine whether the target contract has been reviewed and approved. If so, execute S103; otherwise, execute S105.
[0079] In this embodiment, after the synchronization system obtains the target contract, it will determine whether the target contract has been reviewed and approved. If it has been reviewed and approved, S103 will be executed to perform subsequent synchronization operations; if the target contract has not been reviewed or has not been reviewed, S105 will be executed to prompt relevant personnel to perform review operations or modify the contract.
[0080] In a possible implementation, it is possible to determine whether the target contract has been reviewed and approved by the following method: specifically, obtain the classification label corresponding to the target contract, which is used to indicate whether the target contract has been reviewed and approved, failed to be reviewed, or not reviewed; determine whether the target contract has been reviewed and approved based on the classification label. That is, when a new contract is added to the contract system, the classification label of the contract is not reviewed; if it is reviewed and approved, the classification label is updated to reviewed and approved; if it is reviewed and failed to be reviewed, the classification label is updated to reviewed and failed. In this case, when the synchronization system obtains the newly added contract, the status of the contract can be determined by the above classification label.
[0081] Specifically, the review of the target contract mainly reviews the product price, discount information, billing method and other information set for the user. Among them, the discount information may include the specific discount rate, billing method and discount type for the product, and the discount type may include fixed discount and tiered discount. The billing method identifies the settlement method when the purchaser (user) purchases the product from the sales enterprise, including prepaid billing method and real-time payment billing method.
[0082] S103: Extracting contract information from the target contract.
[0083] When it is determined that the target contract has been approved, the synchronization system extracts the contract information from the target contract, which includes the user ID, product ID, and discount information. The user ID is used to indicate the purchaser, and the product ID is used to indicate the specific product purchased by the purchaser. That is, the synchronization system obtains the discount rate and discount type provided by the supplier to the purchaser for a certain product from the target contract. The discount information may also include the billing method and the discount effective time. The discount effective time refers to the time from the effective time when the discount rate in the target contract is used to calculate the purchaser's bill.
[0084] S104: Synchronize the user discount system or the billing system according to the contract information.
[0085] In this embodiment, after the synchronization system obtains the contract information, it will synchronize the user discount system or the billing system according to the contract information, that is, it determines whether to update and synchronize the discount rate in the user discount system or the billing system according to the contract information.
[0086] Specifically, when the sales system includes a user discount system, the synchronization system will synchronize the user discount system according to the contract information, so that the synchronized user discount system can directly record the user ID, product ID and discount information. When the billing system is settling accounts, relevant discount information can be extracted from the user discount system for settlement. When the sales system does not include a user discount system, the synchronization system directly updates the billing system according to the contract information, and the billing system saves the user ID, product ID and discount information, so that when settling accounts, calculations can be made directly based on the stored information. It can be seen that the automatic docking of data such as discount information ensures the accuracy of the data without manual intervention. At the same time, it saves manpower and improves business processing efficiency.
[0087] In actual applications, when storing contract information, the user discount system or billing system can build a discount list corresponding to different users based on the user dimension. The discount list records the discount information of different products purchased by the user from the supplier. As shown in Table 1:
[0088] Table 1 User A discount list
[0089] User ID Product Identification Discount Rate Discount Type A a 1% Fixed discount A b 1.5% Fixed discount A c 1% Fixed discount
[0090] Of course, you can also build a discount table for the same product for different users based on the product dimension. The discount table records the discount information for different users when they purchase a product from the supplier. It is understandable that in actual applications, suppliers can give different discount rates based on the quantity of goods purchased by buyers. As shown in Table 2:
[0091] Table 2 Product discount table
[0092] User ID Product Identification Discount Rate Discount Type A a 1% Fixed discount B a 1.5% Fixed discount C a 1% Fixed discount
[0093] It should be noted that when the synchronization system synchronizes the user discount system or billing system according to the contract information, it is also necessary to determine whether there is a historical discount rate for the target user and target product, so as to perform different synchronizations according to the historical discount rate. The specific implementation will be described in subsequent embodiments.
[0094] S105: Send prompt information.
[0095] In this embodiment, when the synchronization system determines that the target contract has not been reviewed or has not passed the review, a prompt message can be sent so that relevant personnel can review the contract or modify the relevant content of the contract, and finally pass the review of the target contract.
[0096] Through the above method, it can be seen that the synchronization system can obtain the newly added target contract from the contract system and determine whether the target contract has been reviewed and approved. When the review is passed, the contract information is extracted from the target contract, and the contract information includes user identification, product identification and discount information. Among them, the discount information can indicate the corresponding discount when the user purchases the product. When the contract information is extracted, it will be determined whether to synchronize the user discount system or the billing system based on the contract information, thereby realizing automatic synchronization of discount information, avoiding manual intervention, ensuring data accuracy, and improving business processing efficiency.
[0097] See also Figure 2 , which is a flow chart of another data synchronization method provided in an embodiment of the present application. Specifically, the method is a specific implementation of S104 and may include:
[0098] S201: Obtain the discount rate in the target contract.
[0099] In this embodiment, when performing a synchronization operation, the discount rate in the target contract is first obtained. The discount rate can be a standard discount rate or a non-standard discount rate. Among them, the standard discount rate is the same discount rate for each purchaser under certain conditions, for example, the standard discount rate is the official discount rate. The discount type opposite to the standard discount rate is the user discount, and the discount rate corresponding to the user discount is the non-standard discount rate. The non-standard discount rate refers to another discount rate configured for the user when the user meets the preset conditions. It should be noted that the discount rate stored in the user discount system or the billing system is a non-standard discount rate, and the standard discount rate is stored in the promotion system.
[0100] S202: Determine whether there is a historical non-standard discount rate in the user discount system or the billing system. If so, execute S203 or S204; if not, when the discount rate in the target contract is a non-standard discount rate, execute S205.
[0101] That is, after the synchronization system obtains the contract information, it determines whether there is a historical non-standard discount rate for the user and the product based on the user identifier and the product identifier in the contract information.
[0102] S203: When the discount rate in the target contract is a standard discount rate, a deletion instruction is sent to the user discount system or the billing system to delete the historical non-standard discount rate.
[0103] In this embodiment, when the discount rate in the target contract is a standard discount rate and there is a historical non-standard discount rate in the user discount system or the billing system, since the user discount system has a higher priority, in order to avoid using the historical non-standard discount rate in subsequent billing, the synchronization system sends a deletion instruction to the user discount system or the billing system to delete the historical non-standard discount rate, thereby achieving data synchronization.
[0104] Specifically, when sending a deletion instruction, the synchronization system also needs to determine the relationship between the effective time of the discount rate in the target contract and the current time. If the effective time of the discount rate in the target contract is greater than the current time, it indicates that the non-standard discount rate in the user discount system or the billing system can still be used. Then the synchronization system formulates a timed task and sends a deletion instruction to the user discount system or the billing system at a predetermined time, so that the user discount system or the billing system deletes the historical non-standard discount rate at the preset time. If the effective time is less than or equal to the current time, the synchronization system immediately sends a deletion instruction to the user discount system or the billing system to immediately delete the historical non-standard discount rate.
[0105] S204: When the discount rate in the target contract is a non-standard discount rate, determine whether the discount information is consistent with the historical discount information. If not, execute S205; otherwise, no operation is required.
[0106] In this embodiment, when the discount rate in the target contract is a non-standard discount rate and there is a historical non-standard discount rate, it is determined whether the current discount information is consistent with the historical discount information. Specifically, it is determined whether the discount rate, discount type, and billing method included in the discount information in the target contract are consistent with the discount rate, discount type, and billing method included in the historical discount information. If they are consistent, no operation is required, that is, the discount information stored in the current user discount system or billing system is maintained. If they are inconsistent, S205 is executed to update the user discount system or billing system.
[0107] S205: Use the discount information to update the user discount system or the billing system.
[0108] That is, when the historical discount information stored in the user discount system or the billing system is inconsistent with the current discount information, the discount information is sent to the user discount system or the billing system to achieve data update.
[0109] Specifically, to ensure that the effective time of the discount rate in the target contract can be implemented according to the pre-negotiated time, the synchronization system first determines whether the effective time in the target contract is greater than the current time before sending the discount information to the user discount system or the billing system. If so, the synchronization system sets a scheduled task to send the discount information to the user discount system or the billing system at the scheduled time. If the effective time is less than the current time, the synchronization system directly sends the discount information to the user discount system or the billing system for update.
[0110] In this embodiment, when the discount rate in the target contract is a non-standard discount rate, there is no historical discount information, or there is historical discount information and the current discount information is inconsistent with the historical discount information, the discount information is sent to the user discount system or the billing system so that the user discount system or the billing system can record the discount rate and billing method of a certain user for a certain product, thereby realizing the synchronization of discount information.
[0111] It should be noted that when the synchronization system synchronizes the user discount system or the billing system according to the contract information, it can perform two-step judgment operations, namely, judging whether the discount rate corresponding to the discount information in the contract information is a standard discount rate, and judging whether there is a historical non-standard discount rate in the user discount system or the billing system. When the discount rate is a standard discount rate and there is a historical non-standard discount rate, execute S203 to send a deletion instruction to the user discount system or the billing system. When the discount rate is a standard discount rate and there is no historical non-standard discount rate, no operation is performed. When the discount rate is a non-standard discount rate and there is a historical non-standard discount rate, execute S204 to judge whether the discount information is consistent with the historical discount information and other subsequent operations. When the discount rate is a non-standard discount rate and there is no historical non-standard discount rate, execute S205 to update the user discount system or the billing system using the discount information.
[0112] In actual applications, there is no execution order requirement for the above two-step judgment operation. The synchronization system can first determine whether the discount rate corresponding to the discount information is a standard discount rate, and then determine whether there is a historical non-standard discount rate in the user discount system or the billing system. Alternatively, the synchronization system first determines whether there is a historical non-standard discount rate in the user discount system or the billing system, and then determines whether the discount rate corresponding to the discount information is a standard discount rate. Alternatively, the synchronization system performs the above two judgment operations at the same time.
[0113] Based on the above method embodiment, the embodiment of the present application also provides a data synchronization device, which will be described below in conjunction with the accompanying drawings.
[0114] See also Figure 3 , which is a structural diagram of a data synchronization device provided in an embodiment of the present application, such as Figure 3 As shown, the device 300 may include:
[0115] An acquisition unit 301 is used to acquire a target contract from a contract system, where the target contract is a newly added contract;
[0116] A determination unit 302 is used to determine whether the target contract has been approved;
[0117] An extracting unit 303 is configured to extract contract information of the target contract when the determining unit determines that the audit is passed, wherein the contract information includes a user identifier, a product identifier, and discount information, and the discount information includes at least a discount rate;
[0118] The synchronization unit 304 is used to synchronize the user discount system or the billing system according to the contract information.
[0119] In a possible implementation, the synchronization unit includes:
[0120] A first judging subunit is used to judge whether the discount rate corresponding to the discount information in the contract information is a standard discount rate;
[0121] A second judgment subunit is used to judge whether there is a historical non-standard discount rate in the user discount system or the billing system when the discount rate is a standard discount rate;
[0122] The sending subunit is used to send a deletion instruction to the user discount system or the billing system to delete the historical non-standard discount rate when the discount rate is a standard discount rate and when there is a historical non-standard discount rate.
[0123] In one possible implementation, the sending subunit is specifically used to determine whether the effective time corresponding to the discount rate is greater than the current time when the discount rate is a standard discount rate and when there is a historical non-standard discount rate; if so, a deletion instruction is sent to the user discount system or the billing system at a predetermined time to delete the historical non-standard discount rate.
[0124] In a possible implementation, the synchronization unit includes:
[0125] A first judging subunit is used to judge whether the discount rate corresponding to the discount information in the contract information is a standard discount rate;
[0126] A second judgment subunit is used for judging whether there is a historical non-standard discount rate in the user discount system or the billing system when the discount rate is a non-standard discount rate;
[0127] The sending subunit is used to send the discount information to the user discount system or the billing system when the discount rate is a non-standard discount rate and there is no historical non-standard discount rate.
[0128] In a possible implementation, the sending subunit is specifically used to determine whether the effective time corresponding to the discount rate is greater than the current time; if so, the discount information is sent to the user discount system or the billing system at a predetermined time.
[0129] In a possible implementation, when there is a historical non-standard discount rate, the synchronization unit further includes: a third judgment subunit;
[0130] The third judgment subunit is used to judge whether the discount information is consistent with the historical discount information, and the historical discount information includes the historical non-standard discount rate;
[0131] The sending subunit is used to send the discount information to the user discount system or the billing system when the judgment result of the third judgment subunit is inconsistent.
[0132] In one possible implementation, when the discount information is inconsistent with the historical discount information, the sending subunit is specifically used to determine whether the effective time corresponding to the discount rate is greater than the current time; if so, the discount information is sent to the user discount system or billing system at a predetermined time.
[0133] In a possible implementation, the discount information further includes a billing method and / or a discount type, the billing method includes a prepaid billing method and a real-time payment billing method, and the discount type includes a fixed discount and a tiered discount.
[0134] In a possible implementation manner, the determining unit includes:
[0135] An acquisition subunit, used to acquire a classification label corresponding to the target contract, wherein the classification label is used to indicate whether the target contract has been reviewed, has not been reviewed, or has not been reviewed;
[0136] A determination subunit is used to determine whether the target contract has been reviewed and approved based on the classification label.
[0137] In a possible implementation, when the classification label is not passed or not reviewed, the device further includes:
[0138] The sending unit is used to send prompt information to prompt review or correction.
[0139] It should be noted that the implementation of each unit in this embodiment can refer to the above method embodiment, and this embodiment will not be repeated here.
[0140] The present application also provides a data synchronization system, which may include Figure 3 The device 300 in the embodiment is used to implement Figure 1 or Figure 2 The function of the synchronization system.
[0141] In addition, an embodiment of the present application further provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on a terminal device, the terminal device executes the data synchronization method.
[0142] An embodiment of the present application provides a device for implementing data synchronization, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the data synchronization method is implemented.
[0143] Through the embodiment of the present application, the synchronization system can obtain the newly added target contract from the contract system and determine whether the target contract has been reviewed and approved. When the review is passed, the contract information is extracted from the target contract, and the contract information includes the user ID, product ID and discount information. Among them, the discount information can indicate the corresponding discount when the user purchases the product. When the contract information is extracted, the user discount system or billing system is synchronized according to the contract information, thereby realizing the synchronization of discount information, avoiding manual intervention, ensuring the accuracy of data, and improving business processing efficiency.
[0144] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referred to each other. For the system or device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0145] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0146] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0147] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0148] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A data synchronization method, characterized in that: The method is applied to a synchronization system, and the method comprises: Extracting a target contract within a preset time period from a contract system according to a preset cycle, or acquiring the target contract from the contract system when a new contract is detected in the contract system, wherein the target contract is a new contract; Determine whether the target contract has been approved; When the target contract is approved, the contract information of the target contract is extracted, the contract information includes a user identifier, a product identifier and discount information, the discount information includes at least a discount rate, the discount rate includes a standard discount rate or a non-standard discount rate, wherein the standard discount rate is the same for each purchaser under certain conditions; the discount rate corresponding to the user discount is the non-standard discount rate, the non-standard discount rate is a discount rate configured for the user when the user meets a preset condition, the non-standard discount rate is stored in a user discount system or a billing system, and the standard discount rate is stored in a promotion system; Synchronizing the user discount system or the billing system according to the contract information includes: Get the discount rate in the target contract, Determining whether the discount rate corresponding to the discount information in the contract information is a standard discount rate; When the discount rate is a standard discount rate, determining whether there is a historical non-standard discount rate in the user discount system or the billing system; when there is a historical non-standard discount rate, sending a deletion instruction to the user discount system or the billing system to delete the historical non-standard discount rate; When the discount rate is a non-standard discount rate, determine whether there is a historical non-standard discount rate in the user discount system or the billing system; when there is no historical non-standard discount rate, send the discount information to the user discount system or the billing system.
2. The method according to claim 1, characterized in that: When there is a historical non-standard discount rate, sending a deletion instruction to the user discount system or the billing system to delete the historical non-standard discount rate includes: Determine whether the effective time corresponding to the discount rate is greater than the current time; If so, a deletion instruction is sent to the user discount system or the billing system at a predetermined time to delete the historical non-standard discount rate.
3. The method according to claim 1, characterized in that When there is no historical non-standard discount rate, sending the discount information to the user discount system or the billing system includes: Determine whether the effective time corresponding to the discount rate is greater than the current time; If yes, the discount information is sent to the user discount system or the billing system at a predetermined time.
4. The method according to claim 1, characterized in that: The method further comprises: When there is a historical non-standard discount rate, determining whether the discount information is consistent with the historical discount information, wherein the historical discount information includes the historical non-standard discount rate; When the discount information is inconsistent with the historical discount information, the discount information is sent to the user discount system or the billing system.
5. The method according to claim 4, characterized in that When the discount information is inconsistent with the historical discount information, sending the discount information to the user discount system or the billing system includes: Determine whether the effective time corresponding to the discount rate is greater than the current time; If yes, the discount information is sent to the user discount system or the billing system at a predetermined time.
6. The method according to any one of claims 1 to 5, characterized in that: The discount information also includes a billing method and / or a discount type. The billing method includes a prepaid billing method and a real-time payment billing method. The discount type includes a fixed discount and a tiered discount.
7. The method according to any one of claims 1 to 5, characterized in that: The step of determining whether the target contract is approved includes: Obtaining a classification label corresponding to the target contract, wherein the classification label is used to indicate whether the target contract has passed the review, failed the review, or has not been reviewed; Determine whether the target contract has been approved based on the classification label.
8. The method according to claim 7, characterized in that When the classification label is not passed or not reviewed, the method further includes: Send reminder messages to prompt review or correction.
9. A data synchronization device, characterized in that: The device is applied to a synchronization system, and comprises: an acquisition unit, configured to extract a target contract within a preset time period from the contract system according to a preset cycle, or, when a new contract is detected in the contract system, acquire the target contract from the contract system, wherein the target contract is a new contract; A determination unit, used to determine whether the target contract has been approved; an extracting unit, configured to extract the contract information of the target contract when the determining unit determines that the audit is passed, the contract information including the user identification, the product identification and the discount information, the discount information including at least the discount rate, the discount rate including the standard discount rate or the non-standard discount rate, wherein the standard discount rate is the same for each purchaser under certain conditions; the discount rate corresponding to the user discount is the non-standard discount rate, the non-standard discount rate is the discount rate configured for the user when the user meets the preset conditions, the non-standard discount rate is stored in the user discount system or the billing system, and the standard discount rate is stored in the promotion system; A synchronization unit, used for synchronizing a user discount system or a billing system according to the contract information; The synchronization unit comprises: A first judging subunit is used to judge whether the discount rate corresponding to the discount information in the contract information is a standard discount rate; A second judgment subunit is used to judge whether there is a historical non-standard discount rate in the user discount system or the billing system when the discount rate is a standard discount rate; a sending subunit, configured to send a deletion instruction to the user discount system or the billing system to delete the historical non-standard discount rate when there is a historical non-standard discount rate; The second judgment subunit is further used to judge whether there is a historical non-standard discount rate in the user discount system or the billing system when the discount rate is a non-standard discount rate; The sending subunit is further configured to send the discount information to a user discount system or a billing system when the discount rate is a non-standard discount rate and there is no historical non-standard discount rate.
10. The device according to claim 9, characterized in that The sending subunit is specifically used to determine whether the effective time corresponding to the discount rate is greater than the current time when the discount rate is a standard discount rate and when there is a historical non-standard discount rate; If so, a deletion instruction is sent to the user discount system or the billing system at a predetermined time to delete the historical non-standard discount rate.
11. The device according to claim 9, characterized in that The sending subunit is specifically used to determine whether the effective time corresponding to the discount rate is greater than the current time when the discount rate is a non-standard discount rate and when there is no historical non-standard discount rate; if so, the discount information is sent to the user discount system or billing system at a predetermined time.
12. The device according to claim 9, characterized in that When there is a historical non-standard discount rate, the synchronization unit further includes: a third judgment subunit; The third judgment subunit is used to judge whether the discount information is consistent with the historical discount information, wherein the historical discount information includes the historical non-standard discount rate; The sending subunit is used to send the discount information to the user discount system or the billing system when the judgment result of the third judgment subunit is inconsistent.
13. The device according to claim 12, characterized in that When the discount information is inconsistent with the historical discount information, the sending subunit is specifically used to determine whether the effective time corresponding to the discount rate is greater than the current time; if so, the discount information is sent to the user discount system or billing system at a predetermined time.
14. The device according to any one of claims 9 to 13, characterized in that: The discount information also includes a billing method and / or a discount type. The billing method includes a prepaid billing method and a real-time payment billing method. The discount type includes a fixed discount and a tiered discount.
15. A data synchronization system, characterized in that: The system includes the data synchronization device described in any one of claims 9-14.
16. A computer-readable storage medium comprising instructions, which, when executed on a computer, enables the computer to execute the method according to any one of claims 1 to 8.
