Business data processing method and device, electronic equipment and storage medium
By configuring target calculation rules and expressions, the problems of hard coding and logical duplication in the billing system of ride-hailing platforms are solved, enabling flexible business data management and rapid adaptation to changes in billing rules, thereby improving system scalability and efficiency.
Patent Information
- Application Number
- CN202511217249.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-28
- Publication Date
- 2026-01-06
AI Technical Summary
The existing billing systems of ride-hailing platforms suffer from problems such as hard-coded implementation, repetitive logic, and poor scalability, resulting in complex and costly calculations of revenue for each entity and difficulty in flexibly adjusting billing rules.
By determining the type and scenario of the target business data and configuring the target calculation rules and expressions, unified management and flexible configuration of business data can be achieved, avoiding hard coding and deep code coupling, and supporting rapid adaptation to changes in business needs.
It improves the flexibility and scalability of business data processing, reduces development cycle and cost, and enables flexible billing logic configuration and unified business data management.
Smart Images

Figure CN121280101A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of data processing, and in particular to a business data processing method and device, electronic equipment and storage medium. BACKGROUND
[0002] With the rise of the sharing economy, the market competition of the online car-hailing industry is becoming increasingly fierce, and more and more online car-hailing platforms adopt the SaaS (Software as a Service) mode. Under the online car-hailing saas operation mode, multiple subjects such as drivers, platforms, passengers and third-party service providers are involved, and the income of the driver usually comes from the fees paid by the passengers, and the income of the platform or the third-party service provider comes from the commission of the driver's income. Different platforms will provide diversified billing rules, such as billing methods of multiple fee types, including starting price, mileage fee and time length fee, etc., in addition, the platform will also issue various coupons and subsidies to drivers and passengers. The diversified billing rules greatly increase the complexity of the billing logic, especially when the fees are adjusted, such as multiple refunds, platform commission exemption and other mixed scenarios, the calculation of the income of each subject becomes extremely complex.
[0003] The current method for calculating the income of each subject has the following problems: (1) hard-coded implementation: the billing system usually implements the billing logic in a hard-coded manner, and the code is deeply coupled with the business scenario; (2) logic duplication: the logic of different billing scenarios such as order payment or order deduction is repeated, and the code redundancy is high; (3) poor scalability: when adding a fee item or adjusting the billing rules, the code needs to be modified and redeployed, the development cycle is long, and the cost is high.
[0004] Therefore, it is necessary to provide a business data processing method, device, electronic equipment and storage medium capable of realizing unified management and flexible configuration of business data. SUMMARY
[0005] Therefore, it is necessary to provide a business data processing method, device, electronic equipment and storage medium capable of realizing unified management and flexible configuration of business data.
[0006] In a first aspect, a business data processing method is provided, and the business data processing method comprises:
[0007] In response to receiving a data processing request, determining a target business data, a target business scenario and a target business subject set according to the data processing request, wherein the target business subject set at least includes a first business subject;
[0008] acquire a type of the target business data, and determine a target calculation rule according to the type of the target business data and the target business scenario, wherein the target calculation rule at least includes a calculation rule corresponding to a relevant business subject set, and the target business subject set is a subset of the relevant business subject set;
[0009] determine a target calculation expression set according to the target calculation rule and the target business subject set, wherein a calculation expression in the target calculation expression set corresponds to a business subject in the target business subject set in a one-to-one manner;
[0010] acquire a value of the target business data, and obtain a target calculation result set according to the value of the target business data and the target calculation expression set, wherein a calculation result in the target calculation result set corresponds to a calculation expression in the target calculation expression set in a one-to-one manner.
[0011] In a second aspect, a business data processing apparatus is provided, and the business data processing apparatus comprises:
[0012] A first determination module is configured to, in response to receiving a data processing request, determine target business data, a target business scenario and a target business subject set according to the data processing request, wherein the target business subject set includes at least one of a first business subject, a second business subject and a third business subject;
[0013] A first acquisition module is configured to acquire a type of the target business data;
[0014] A second determination module is configured to determine a target calculation rule according to the type of the target business data and the target business scenario, wherein the target calculation rule at least includes a calculation rule corresponding to a relevant business subject set, and the target business subject set is a subset of the relevant business subject set;
[0015] A third determination module is configured to determine a target calculation expression set according to the target calculation rule and the target business subject set, wherein a calculation expression in the target calculation expression set corresponds to a business subject in the target business subject set in a one-to-one manner;
[0016] A second acquisition module is configured to acquire a value of the target business data;
[0017] A calculation module is configured to obtain a target calculation result set according to the value of the target business data and the target calculation expression set, wherein a calculation result in the target calculation result set corresponds to a calculation expression in the target calculation expression set in a one-to-one manner.
[0018] In a third aspect, an electronic device is provided, which includes one or more processors; and a memory associated with the one or more processors, the memory being configured to store program instructions that, when executed by the one or more processors, perform steps of the business data processing method according to the first aspect.
[0019] In a fourth aspect, a computer-readable storage medium is provided, which stores a computer program. When the computer program is executed by a processor, the steps of the business data processing method according to the first aspect are performed.
[0020] In a fifth aspect, a computer program product is provided, which includes a computer program. When the computer program is executed by a processor, the steps of the business data processing method according to the first aspect are implemented.
[0021] The business data processing method, device, electronic device and storage medium described above first determine a target calculation rule according to a type of target business data and a target business scenario, then determine a target calculation expression set according to the target calculation rule and a target business subject set, and finally obtain a target calculation result set according to a value of the target business data and the target calculation expression set. This avoids the invasion of calculation logic into business code, eliminates the hard coding of business code, breaks the deep coupling relationship between business code and business scenarios, and improves the flexibility of business data processing. BRIEF DESCRIPTION OF DRAWINGS
[0022] Figure 1 A flowchart of a business data processing method in an embodiment is shown;
[0023] Figure 2 A block diagram of a business data processing device in an embodiment is shown;
[0024] Figure 3 An internal structure diagram of an electronic device in an embodiment is shown. DETAILED DESCRIPTION
[0025] In order to make the purposes, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and should not be used to limit the present application.
[0026] In a first embodiment, as shown in Figure 1 a business data processing method is provided, which includes:
[0027] In response to receiving a data processing request, target business data, a target business scenario and a target business subject set are determined according to the data processing request, wherein the target business subject set at least includes a first business subject;
[0028] Obtain the type of target business data, and determine the target calculation rules based on the type of target business data and the target business scenario. The target calculation rules include at least the calculation rules corresponding to the relevant business subject set, and the target business subject set is a subset of the relevant business subject set.
[0029] Based on the target calculation rules and the target business entity set, a target calculation expression set is determined, wherein the calculation expressions in the target calculation expression set correspond one-to-one with the business entities in the target business entity set.
[0030] Obtain the values of the target business data, and based on the values of the target business data and the target calculation expression set, obtain the target calculation result set, wherein the calculation results in the target calculation result set correspond one-to-one with the calculation expressions in the target calculation expression set.
[0031] Specifically, the target calculation rules are first determined based on the type of target business data and the target business scenario; then, the target calculation expression set is determined based on the target calculation rules and the target business subject set; finally, the values of the target business data are substituted into the target calculation expression set to obtain the target calculation result set. This avoids the intrusion of calculation logic into business code, eliminates hard coding of business code, and decouples the deep coupling between business code and business scenario.
[0032] In practical implementation, taking ride-hailing as an example, when the type of target business data is trip fees and the target business scenario is a payment scenario, the trip fees need to be allocated to drivers, the platform, and service providers. That is, the relevant business entity set includes drivers, the platform, and service providers. Based on business needs, only the trip fees received by the target business entity need to be calculated. That is, the target business entity can be any one entity in the relevant business entity set, any two entities in the relevant business entity set, or all entities in the relevant business entity set.
[0033] Furthermore, before receiving a data processing request, the business data processing method also includes:
[0034] Obtain multiple sets of calculation samples, wherein each set of calculation samples includes at least a set of business data samples, a set of business scenarios, a set of business entities, and a set of calculation formulas, and the calculation formula samples in the set of calculation formulas correspond one-to-one with the business entities in the set of business entities.
[0035] Obtain the type of business data sample, and divide multiple sets of calculation samples into rule configuration sample sets of corresponding types according to the type of business data sample and business scenario sample. The type of the rule configuration sample set includes at least the first type.
[0036] According to the rule configuration sample set corresponding to each type, a plurality of business subject set samples are configured to determine the corresponding related business subject set, wherein the plurality of business subject set samples are all subsets of the related business subject set;
[0037] According to the rule configuration sample set corresponding to each type, a plurality of calculation formula set samples are configured to determine the calculation expression corresponding to each business subject in the corresponding related business subject set;
[0038] According to the calculation expression corresponding to each business subject in the related business subject set, the calculation rule corresponding to the rule configuration sample set of the corresponding type is determined.
[0039] Specifically, according to the business data sample, the business scene sample, the business subject set sample and the calculation formula set sample, the calculation expression corresponding to each business subject in the related business subject set corresponding to each type of rule configuration sample set and the calculation rule corresponding to each type of rule configuration sample set are configured in advance, which provides productized configuration capability. The system behavior is adjusted by configuring the calculation rule and the calculation expression to achieve the technical effect of quickly adapting to the change of business demand. Moreover, the system can support new business logic processing by sensing the change of the calculation rule without recompiling and deploying new business code. When configuring the calculation rule and the calculation expression, the version management of the calculation rule and the calculation expression can be performed at the same time without modifying the original business code. In addition, the target calculation result is encapsulated and returned to the data structure common to the plurality of business subjects.
[0040] In a specific implementation, according to the type of target business data and the target business scene, the rule configuration sample set of the target type is determined, and then the target calculation rule is determined. Then, according to the target calculation rule and the target business subject set, the corresponding target calculation expression set is determined.
[0041] In a specific implementation, taking online car hailing as an example, the first calculation sample set includes a trip fare of 100 yuan, a payment scenario, a driver, and driver income = 100*0.6 = 60 yuan; the second calculation sample set includes a trip fare of 250 yuan, a payment scenario, a driver and a platform, driver income = 250*0.6 = 150 yuan and platform income = 250*0.2 = 50 yuan; the third calculation sample set includes a trip fare of 300 yuan, a payment scenario, a driver, a platform and a service provider, driver income = 300*0.6 = 180 yuan, platform income = 300*0.2 = 60 yuan and service provider income = 300*0.2 = 60 yuan; the fourth calculation sample set includes a trip fare of 300 yuan, a deduction scenario, a driver and a platform, driver income = (300-20)*0.6 = 168 yuan and platform income = (300-20)*0.2 = 56 yuan; and the fifth calculation sample set includes a trip fare of 300 yuan, a deduction scenario, a driver, a platform and a service provider, driver income = (300-20)*0.6 = 168 yuan, platform income = (300-20)*0.2 = 56 yuan and service provider income = (300-20)*0.2 = 56 yuan.
[0042] According to the type of the business data sample and the business scenario sample, the first calculation sample set, the second calculation sample set and the third calculation sample set are determined as a first-type rule configuration sample set, and the fourth calculation sample set and the fifth calculation sample set are determined as a second-type rule configuration sample set.
[0043] According to the driver, the driver and the platform, and the driver, the platform and the service provider in the first-type rule configuration sample set, it is determined that the first related business subject set includes the driver, the platform and the service provider; according to the driver income = 100*0.6 = 60 yuan, the driver income = 250*0.6 = 150 yuan and the platform income = 250*0.2 = 50 yuan, the driver income = 300*0.6 = 180 yuan, the platform income = 300*0.2 = 60 yuan and the service provider income = 300*0.2 = 60 yuan in the first-type rule configuration sample set, it is determined that the calculation expression corresponding to the driver in the first-type rule configuration sample set is driver income = 0.6*trip fare, the calculation expression corresponding to the platform is platform income = 0.2*trip fare, and the calculation expression corresponding to the service provider is service provider income = 0.2*trip fare; and it is further determined that the calculation rule corresponding to the first-type rule configuration sample set is driver income = first coefficient*trip fare, platform income = second coefficient*trip fare and service provider income = third coefficient*trip fare, wherein the sum of the first coefficient, the second coefficient and the third coefficient is 1.
[0044] Similarly, according to the second type of rule configuration sample set, the driver and the platform, the driver, the platform and the service provider are configured, and it is determined that the second related business subject set includes the driver, the platform and the service provider; according to the second type of rule configuration sample set, the driver income = (300-20) * 0.6 = 168 yuan and the platform income = (300-20) * 0.2 = 56 yuan, the driver income = (300-20) * 0.6 = 168 yuan, the platform income = (300-20) * 0.2 = 56 yuan and the service provider income = (300-20) * 0.2 = 56 yuan, it is determined that the calculation expression corresponding to the driver in the second type of rule configuration sample set is driver income = (trip fare-20) * 0.6, the calculation expression corresponding to the platform is platform income = (trip fare-20) * 0.2, and the calculation expression corresponding to the service provider is service provider income = (trip fare-20) * 0.2; Further, the calculation rule corresponding to the second type of rule configuration sample set is determined as driver income = (trip fare-fixed value) * fourth coefficient, platform income = (trip fare-fixed value) * fifth coefficient, and service provider income = (trip fare-fixed value) * sixth coefficient, wherein the sum of the fourth coefficient, the fifth coefficient and the sixth coefficient is 1.
[0045] Further, according to the type of business data sample and the business scene sample, the plurality of calculation sample sets are divided into rule configuration sample sets of corresponding types, including:
[0046] In response to the type of business data sample being the first type and the business scene sample being the first business scene, the corresponding calculation sample set is divided into the first type of rule configuration sample set;
[0047] In response to the type of business data sample being the first type and the business scene sample being the second business scene, the corresponding calculation sample set is divided into the second type of rule configuration sample set;
[0048] In response to the type of business data sample being the first type and the business scene sample being the third business scene, the corresponding calculation sample set is divided into the third type of rule configuration sample set;
[0049] In response to the type of business data sample being the first type and the business scene sample being the fourth business scene, the corresponding calculation sample set is divided into the fourth type of rule configuration sample set;
[0050] In response to the type of business data sample being the second type and the business scene sample being the first business scene, the corresponding calculation sample set is divided into the fifth type of rule configuration sample set;
[0051] In response to the type of business data sample being the third type and the business scene sample being the first business scene, the corresponding calculation sample set is divided into the sixth type of rule configuration sample set.
[0052] In specific implementation, taking online car hailing as an example, the trip fee belongs to the first type of business data sample, the additional fee belongs to the second type of business data sample, the long-distance dispatch fee belongs to the third type of business data sample, the first business scenario is a payment scenario, the second business scenario is a deduction scenario, the third business scenario is a refund scenario, and the fourth business scenario is a commission-free scenario.
[0053] Further, the multiple business subject set samples corresponding to each type of rule configuration sample set are obtained, and the corresponding relevant business subject set is determined, including:
[0054] Obtaining the multiple business subject set samples corresponding to each type of rule configuration sample set;
[0055] Taking the union of the multiple business subject set samples corresponding to each type of rule configuration sample set to obtain the relevant business subject set corresponding to each type of rule configuration sample set;
[0056] The first type of rule configuration sample set, the second type of rule configuration sample set, and the third type of rule configuration sample set all correspond to the first relevant business subject set, the first relevant business subject set at least includes the first business subject, the second business subject, and the third business subject, the fourth type of rule configuration sample set corresponds to the second relevant business subject set, the second relevant business subject set at least includes the first business subject and the second business subject, the fifth type of rule configuration sample set and the sixth type of rule configuration sample set all correspond to the third relevant business subject set, and the third relevant business subject set at least includes the first business subject.
[0057] In specific implementation, taking online car hailing as an example, the first relevant business subject set includes a driver, a platform, and a service provider, the second relevant business subject set includes the driver and the platform, and the third relevant business subject set includes the driver.
[0058] Further, the multiple calculation formula set samples corresponding to each type of rule configuration sample set are obtained, and the calculation expression corresponding to each business subject in the corresponding relevant business subject set is determined, including:
[0059] Obtaining the multiple calculation formula set samples corresponding to each type of rule configuration sample set,
[0060] According to the relevant business subject set corresponding to each type of rule configuration sample set, the multiple calculation formula set samples corresponding to each type of rule configuration sample set are divided into calculation formula sample sets of the corresponding type, wherein the type of the calculation formula sample set in each type of rule configuration sample set corresponds to the business subject in the corresponding relevant business subject set one by one;
[0061] According to each type of rule configuration sample set corresponding to the relevant business subject set, determine the calculation expression corresponding to each business subject in the corresponding type of rule configuration sample set.
[0062] Further, according to each type of rule configuration sample set corresponding to the relevant business subject set, divide each type of rule configuration sample set corresponding to the multiple calculation formula set samples into the corresponding type of calculation formula sample set, including:
[0063] In response to the type of the rule configuration sample set being a first type, divide the multiple calculation formula set samples corresponding to the rule configuration sample set of the first type into a first type of calculation formula sample set, a second type of calculation formula sample set, and a third type of calculation formula sample set;
[0064] In response to the type of the rule configuration sample set being a second type, divide the multiple calculation formula set samples corresponding to the rule configuration sample set of the second type into a first type of calculation formula sample set, a second type of calculation formula sample set, and a third type of calculation formula sample set;
[0065] In response to the type of the rule configuration sample set being a third type, divide the multiple calculation formula set samples corresponding to the rule configuration sample set of the third type into a first type of calculation formula sample set, a second type of calculation formula sample set, and a third type of calculation formula sample set;
[0066] In response to the type of the rule configuration sample set being a fourth type, divide the multiple calculation formula set samples corresponding to the rule configuration sample set of the fourth type into the first type of calculation formula sample set and the second type of calculation formula sample set;
[0067] In response to the type of the rule configuration sample set being a fifth type, divide the multiple calculation formula set samples corresponding to the rule configuration sample set of the fifth type into the first type of calculation formula sample set;
[0068] In response to the type of the rule configuration sample set being a sixth type, divide the multiple calculation formula set samples corresponding to the rule configuration sample set of the sixth type into the first type of calculation formula sample set;
[0069] Wherein, the first type of calculation formula sample set corresponds to the first business subject, the second type of calculation formula sample set corresponds to the second business subject, and the third type of calculation formula sample set corresponds to the third business subject.
[0070] In a specific embodiment, taking ride-hailing as an example, the first type of calculation formula sample set is used to represent the calculation formula sample set for driver income, the second type of calculation formula sample set is used to represent the calculation formula sample set for platform income, and the third type of calculation formula sample set is used to represent the calculation formula sample set for service provider income.
[0071] Furthermore, based on the calculation formula sample set for each type, the calculation expression corresponding to each business entity in the relevant business entity set corresponding to the rule configuration sample set for that type is determined, including:
[0072] Determine the calculation coefficients, calculation variables, and operation methods in the first type of calculation formula sample set corresponding to each type of rule configuration sample set, and determine the calculation expression corresponding to the first business entity corresponding to the rule configuration sample set of the corresponding type based on the calculation coefficients, calculation variables, and operation methods in the first type of calculation formula sample set;
[0073] Determine the calculation coefficients, calculation variables, and operation methods in the second type of calculation formula sample set corresponding to each type of rule configuration sample set, and determine the calculation expression corresponding to the second business entity corresponding to the rule configuration sample set of the corresponding type based on the calculation coefficients, calculation variables, and operation methods in the second type of calculation formula sample set;
[0074] Determine the calculation coefficients, calculation variables, and operation methods in the third type of calculation formula sample set corresponding to each type of rule configuration sample set, and determine the calculation expression corresponding to the third business entity corresponding to the rule configuration sample set of the corresponding type based on the calculation coefficients, calculation variables, and operation methods in the third type of calculation formula sample set.
[0075] In specific implementation, taking ride-hailing as an example, according to the calculation formula sample set corresponding to the rule configuration sample set of the first type: driver income = 100 * 0.6 = 60 yuan, driver income = 250 * 0.6 = 150 yuan, driver income = 300 * 0.6 = 180 yuan, the calculation coefficient of the calculation formula sample set corresponding to the rule configuration sample set of the first type is determined to be 0.6, the calculation variable is the trip fee, and the operation method is multiplication. Therefore, the calculation expression corresponding to the first business entity corresponding to the rule configuration sample set of the first type is: driver income = 0.6 * trip fee. By further abstracting the calculation coefficients in the calculation expressions corresponding to the first, second, and third business entities, and placing the three abstracted calculation expressions in the same statement, the calculation rules corresponding to the first type of rule configuration sample set are obtained. For example, 0.6 is abstracted as the first coefficient, 0.2 is abstracted as the second and third coefficients, and the sum of the first, second, and third coefficients is limited to 1. The calculation rules corresponding to the first type of rule configuration sample set are: Driver income = First coefficient * Trip fee, Platform income = Second coefficient * Trip fee, Service provider income = Third coefficient * Trip fee, where the sum of the first, second, and third coefficients is 1.
[0076] The above simple calculations refer to the operation symbols. If complex calculations are involved, such as adding and subtracting before multiplying and dividing, the above calculations also include the order of operations. For example, the driver's income = (300-20)*0.6 = 168 yuan can be abstracted into driver's income = (trip fee - 20)*0.6, and the calculation rule is driver's income = (trip fee - fixed value)*fourth coefficient.
[0077] It should be understood that, although Figure 1 The steps in the flowchart are shown sequentially as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order in which these steps are executed, and they can be performed in other orders. Figure 1 At least some of the steps in the process may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
[0078] In the second embodiment, as Figure 2 As shown, a business data processing apparatus is provided, comprising:
[0079] The first determining module is used to respond to receiving a data processing request and determine the target business data, the target business scenario, and the target business entity set according to the data processing request, wherein the target business entity set includes at least one of the first business entity, the second business entity, and the third business entity;
[0080] The first acquisition module is used to acquire the type of the target business data;
[0081] The second determining module is used to determine the target calculation rules based on the type of the target business data and the target business scenario. The target calculation rules include at least the calculation rules corresponding to the relevant business subject set, and the target business subject set is a subset of the relevant business subject set.
[0082] The third determination module is used to determine the target calculation expression set based on the target calculation rules and the target business entity set, wherein the calculation expressions in the target calculation expression set correspond one-to-one with the business entities in the target business entity set;
[0083] The second acquisition module is used to acquire the values of the target business data;
[0084] The calculation module is used to obtain the target calculation result set based on the value of the target business data and the target calculation expression set, wherein the calculation results in the target calculation result set correspond one-to-one with the calculation expressions in the target calculation expression set.
[0085] Specific limitations regarding the business data processing device can be found in the limitations regarding the business data processing method described above, and will not be repeated here. Each module in the aforementioned business data processing device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in the electronic device in hardware form, or stored in the memory of the electronic device in software form, so that the processor can call and execute the operations corresponding to each module.
[0086] In a third embodiment, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it performs the following steps:
[0087] In response to receiving a data processing request, the target business data, target business scenario, and target business entity set are determined based on the data processing request, wherein the target business entity set includes at least one of a first business entity, a second business entity, and a third business entity;
[0088] Obtain the type of target business data, and determine the target calculation rules based on the type of target business data and the target business scenario. The target calculation rules include at least the calculation rules corresponding to the relevant business subject set, and the target business subject set is a subset of the relevant business subject set.
[0089] Based on the target calculation rules and the target business entity set, a target calculation expression set is determined, wherein the calculation expressions in the target calculation expression set correspond one-to-one with the business entities in the target business entity set.
[0090] Obtain the values of the target business data, and based on the values of the target business data and the target calculation expression set, obtain the target calculation result set, wherein the calculation results in the target calculation result set correspond one-to-one with the calculation expressions in the target calculation expression set.
[0091] When the program instructions are read and executed by one or more processors, they can also perform operations corresponding to the steps in the above method embodiments, as described above, and will not be repeated here. Reference Figure 3 This example illustrates the architecture of an electronic device, which may include a processor 310, a video display adapter 311, a disk drive 312, an input / output interface 313, a network interface 314, and a memory 320. The processor 310, video display adapter 311, disk drive 312, input / output interface 313, network interface 314, and memory 320 can communicate with each other via a communication bus 330.
[0092] The processor 310 can be implemented using a general-purpose central processing unit (CPU), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to achieve the technical solution provided in this application.
[0093] The memory 320 can be implemented as a read-only memory (ROM), random access memory (RAM), static storage device, dynamic storage device, etc. The memory 320 can store the operating system 321 for controlling the operation of the electronic device 300, and the basic input / output system (BIOS) 322 for controlling the low-level operations of the electronic device 300. Additionally, it can store a web browser 323, data storage management 324, and an icon / font processing system 325, etc. The aforementioned icon / font processing system 325 can be the application program that specifically implements the aforementioned steps in this embodiment. In summary, when implementing the technical solution provided in this application through software or firmware, the relevant program code is stored in the memory 320 and executed by the processor 310.
[0094] Input / output interface 313 is used to connect input / output modules to realize information input and output. Input / output modules can be configured as components in the device (not shown in the figure) or externally connected to the device to provide corresponding functions. Input devices may include keyboards, mice, touch screens, microphones, various sensors, etc., and output devices may include displays, speakers, vibrators, indicator lights, etc.
[0095] Network interface 314 is used to connect a communication module (not shown in the figure) to enable communication between this device and other devices. The communication module can communicate via wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).
[0096] Bus 330 includes a pathway for transmitting information between various components of the device, such as processor 310, video display adapter 311, disk drive 312, input / output interface 313, network interface 314, and memory 320.
[0097] In addition, the electronic device 300 can also obtain information on specific claim conditions from a virtual resource object claim condition information database (not shown in the figure) for use in condition judgment, etc.
[0098] It should be noted that although the above-described electronic device 300 only shows a processor 310, a video display adapter 311, a disk drive 312, an input / output interface 313, a network interface 314, a memory 320, and a bus 330, in specific implementations, the electronic device may also include other components necessary for normal operation. Furthermore, those skilled in the art will understand that the above-described device may only include the components necessary for implementing the solution of this application, and does not necessarily include all the components shown in the figures.
[0099] As can be seen from the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause an electronic device (which may be a personal computer, cloud server, or network device, etc.) to execute the methods of various embodiments or some parts of the embodiments of this application.
[0100] In a fourth embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, performs the following steps:
[0101] In response to receiving a data processing request, the target business data, target business scenario, and target business entity set are determined based on the data processing request, wherein the target business entity set includes at least one of a first business entity, a second business entity, and a third business entity;
[0102] Obtain the type of target business data, and determine the target calculation rules based on the type of target business data and the target business scenario. The target calculation rules include at least the calculation rules corresponding to the relevant business subject set, and the target business subject set is a subset of the relevant business subject set.
[0103] Based on the target calculation rules and the target business entity set, a target calculation expression set is determined, wherein the calculation expressions in the target calculation expression set correspond one-to-one with the business entities in the target business entity set.
[0104] Obtain the values of the target business data, and based on the values of the target business data and the target calculation expression set, obtain the target calculation result set, wherein the calculation results in the target calculation result set correspond one-to-one with the calculation expressions in the target calculation expression set.
[0105] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.
[0106] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0107] The above embodiments are merely illustrative of several implementation methods of this application, and their descriptions are relatively specific and detailed. However, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application.
[0108] In a fifth embodiment, a computer program product is provided, on which a computer program is stored, and when the computer program is executed by a processor, it performs the following steps:
[0109] In response to receiving a data processing request, the target business data, target business scenario, and target business entity set are determined based on the data processing request, wherein the target business entity set includes at least one of a first business entity, a second business entity, and a third business entity;
[0110] Obtain the type of target business data, and determine the target calculation rules based on the type of target business data and the target business scenario. The target calculation rules include at least the calculation rules corresponding to the relevant business subject set, and the target business subject set is a subset of the relevant business subject set.
[0111] Based on the target calculation rules and the target business entity set, a target calculation expression set is determined, wherein the calculation expressions in the target calculation expression set correspond one-to-one with the business entities in the target business entity set.
[0112] Obtain the values of the target business data, and based on the values of the target business data and the target calculation expression set, obtain the target calculation result set, wherein the calculation results in the target calculation result set correspond one-to-one with the calculation expressions in the target calculation expression set.
[0113] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer program product, and when the computer program is executed, it can include the processes of the embodiments of the methods described above.
[0114] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0115] The above embodiments are merely illustrative of several implementation methods of this application, and their descriptions are relatively specific and detailed. However, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application.
Claims
1. A service data processing method characterized by, The method comprises: in response to receiving a data processing request, determining target business data, a target business scenario, and a target business subject set according to the data processing request, wherein the target business subject set at least includes a first business subject; acquiring the type of the target business data, and determining a target calculation rule according to the type of the target business data and the target business scenario, wherein the target calculation rule at least includes a calculation rule corresponding to a relevant business subject set, and the target business subject set is a subset of the relevant business subject set; determining a target calculation expression set according to the target calculation rule and the target business subject set, wherein a calculation expression in the target calculation expression set corresponds to a business subject in the target business subject set in a one-to-one manner; acquiring the value of the target business data, and obtaining a target calculation result set according to the value of the target business data and the target calculation expression set, wherein a calculation result in the target calculation result set corresponds to a calculation expression in the target calculation expression set in a one-to-one manner.
2. The method of claim 1, wherein, Before receiving the data processing request, the method further comprises: acquiring a plurality of calculation sample sets, wherein the calculation sample set at least includes a business data sample, a business scenario sample, a business subject set sample, and a calculation formula set sample, and a calculation formula sample in the calculation formula set sample corresponds to a business subject in the business subject set sample in a one-to-one manner; acquiring the type of the business data sample, and dividing the plurality of calculation sample sets into rule configuration sample sets of corresponding types according to the type of the business data sample and the business scenario sample, wherein the type of the rule configuration sample set at least includes a first type; determining a corresponding relevant business subject set according to a plurality of business subject set samples corresponding to each type of rule configuration sample set, wherein the plurality of business subject set samples are all subsets of the relevant business subject set; determining a calculation expression corresponding to each business subject in the corresponding relevant business subject set according to a plurality of calculation formula set samples corresponding to each type of rule configuration sample set; determining a calculation rule corresponding to a rule configuration sample set of the corresponding type according to the calculation expression corresponding to each business subject in the relevant business subject set.
3. The method of claim 2, wherein, The dividing of the plurality of calculation sample sets into rule configuration sample sets of corresponding types according to the type of the business data sample and the business scenario sample comprises: in response to the type of the business data sample being a first type and the business scenario sample being a first business scenario, dividing the corresponding calculation sample set into a rule configuration sample set of a first type; in response to the type of the business data sample being a first type and the business scenario sample being a second business scenario, dividing the corresponding calculation sample set into a rule configuration sample set of a second type; in response to the type of the business data sample being a first type and the business scenario sample being a third business scenario, dividing the corresponding calculation sample set into a rule configuration sample set of a third type; In response to the type of the service data sample being the first type and the service scene sample being the fourth service scene, the corresponding calculation sample set is divided into a rule configuration sample set of a fourth type; In response to the type of the service data sample being the second type and the service scene sample being the first service scene, the corresponding calculation sample set is divided into a rule configuration sample set of a fifth type; In response to the type of the service data sample being the third type and the service scene sample being the first service scene, the corresponding calculation sample set is divided into a rule configuration sample set of a sixth type.
4. The method of claim 3, wherein, The corresponding related business subject set is determined according to a plurality of business subject set samples corresponding to each type of rule configuration sample set, including: A plurality of business subject set samples corresponding to each type of rule configuration sample set are obtained; A union set of the plurality of business subject set samples corresponding to each type of rule configuration sample set is obtained to obtain a related business subject set corresponding to each type of rule configuration sample set; The first type of rule configuration sample set, the second type of rule configuration sample set, and the third type of rule configuration sample set all correspond to a first related business subject set, the first related business subject set at least includes a first business subject, a second business subject, and a third business subject, the fourth type of rule configuration sample set corresponds to a second related business subject set, the second related business subject set at least includes the first business subject and the second business subject, the fifth type of rule configuration sample set and the sixth type of rule configuration sample set all correspond to a third related business subject set, and the third related business subject set at least includes the first business subject.
5. The method of claim 4, wherein, The corresponding calculation expression of each business subject in the corresponding related business subject set is determined according to a plurality of calculation formula set samples corresponding to each type of rule configuration sample set, including: A plurality of calculation formula set samples corresponding to each type of rule configuration sample set are obtained, The plurality of calculation formula set samples corresponding to each type of rule configuration sample set are divided into a calculation formula sample set of a corresponding type according to the related business subject set corresponding to each type of rule configuration sample set, wherein the type of the calculation formula sample set in each type of rule configuration sample set corresponds to a business subject in the corresponding related business subject set in one-to-one correspondence; The corresponding calculation expression of each business subject in the corresponding related business subject set corresponding to each type of rule configuration sample set is determined according to each type of calculation formula sample set.
6. The method of claim 5, wherein, The plurality of calculation formula set samples corresponding to each type of rule configuration sample set are divided into a calculation formula sample set of a corresponding type according to the related business subject set corresponding to each type of rule configuration sample set, including: In response to the type of the rule configuration sample set being the first type, the multiple calculation formula set samples corresponding to the rule configuration sample set of the first type are divided into a calculation formula sample set of a first type, a calculation formula sample set of a second type, and a calculation formula sample set of a third type; In response to the type of the rule configuration sample set being the second type, the multiple calculation formula set samples corresponding to the rule configuration sample set of the second type are divided into a calculation formula sample set of a first type, a calculation formula sample set of a second type, and a calculation formula sample set of a third type; In response to the type of the rule configuration sample set being the third type, the multiple calculation formula set samples corresponding to the rule configuration sample set of the third type are divided into a calculation formula sample set of a first type, a calculation formula sample set of a second type, and a calculation formula sample set of a third type; In response to the type of the rule configuration sample set being the fourth type, the multiple calculation formula set samples corresponding to the rule configuration sample set of the fourth type are divided into the calculation formula sample set of the first type and the calculation formula sample set of the second type; In response to the type of the rule configuration sample set being the fifth type, the multiple calculation formula set samples corresponding to the rule configuration sample set of the fifth type are divided into the calculation formula sample set of the first type; In response to the type of the rule configuration sample set being the sixth type, the multiple calculation formula set samples corresponding to the rule configuration sample set of the sixth type are divided into the calculation formula sample set of the first type; The calculation formula sample set of the first type corresponds to the first business subject, the calculation formula sample set of the second type corresponds to the second business subject, and the calculation formula sample set of the third type corresponds to the third business subject.
7. The method of claim 5, wherein, The calculation formula sample set of the first type corresponds to the first business subject, the calculation formula sample set of the second type corresponds to the second business subject, and the calculation formula sample set of the third type corresponds to the third business subject. The calculation formula sample set of the first type corresponds to the first business subject, the calculation formula sample set of the second type corresponds to the second business subject, and the calculation formula sample set of the third type corresponds to the third business subject. The calculation formula sample set of the first type corresponds to the first business subject, the calculation formula sample set of the second type corresponds to the second business subject, and the calculation formula sample set of the third type corresponds to the third business subject. Determine the calculation coefficient, calculation variable and operation mode in the third type of calculation formula sample set corresponding to each type of rule configuration sample set, and determine the calculation expression corresponding to the third business subject corresponding to the type of rule configuration sample set according to the calculation coefficient, calculation variable and operation mode in the third type of calculation formula sample set.
8. A service data processing apparatus characterized by comprising: The apparatus comprises: A first determination module configured to determine target business data, a target business scenario and a target business subject set in response to receiving a data processing request, wherein the target business subject set comprises at least one of a first business subject, a second business subject and a third business subject; A first acquisition module configured to acquire the type of the target business data; A second determination module configured to determine a target calculation rule according to the type of the target business data and the target business scenario, wherein the target calculation rule comprises at least a calculation rule corresponding to a related business subject set, and the target business subject set is a subset of the related business subject set; A third determination module configured to determine a target calculation expression set according to the target calculation rule and the target business subject set, wherein each calculation expression in the target calculation expression set corresponds to a business subject in the target business subject set; A second acquisition module configured to acquire the value of the target business data; A calculation module configured to obtain a target calculation result set according to the value of the target business data and the target calculation expression set, wherein each calculation result in the target calculation result set corresponds to a calculation expression in the target calculation expression set.
9. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, The processor executes the computer program to implement the steps of the business data processing method in any one of claims 1 to 7.
10. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement the steps of the business data processing method in any one of claims 1 to 7.