Order information processing method and device

By determining the target order, obtaining order information and arrangement information, calculating the cost information of resource units, and generating deduction information, the problem of mixed deduction information in multi-fund type order payment is solved, and the efficiency and flexibility of order information processing are improved. Efficient and accurate data processing of the trading system is achieved.

CN118657583AInactive Publication Date: 2024-09-17BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410804826.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-09-17
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the order payment process of multiple fund types, after the transaction operation is changed, the fee information of the fund types in the deduction information will be mixed, resulting in the inability to accurately record the change process of the deduction information caused by each transaction operation change, affecting the order information. Processing efficiency and flexibility.

Method used

By determining the target order, the order information and arrangement information are obtained, the cost information of each resource unit is calculated based on the preset ratio, and the cost composition information of the billing segment is generated based on the timing information, and finally accurate deduction information is generated.

Benefits of technology

It achieves accurate recording and efficient processing of changes in deduction information caused by changes in order transaction operations, improves the efficiency and flexibility of order information processing, and assists the trading system in efficient and accurate data processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118657583A
    Figure CN118657583A
Patent Text Reader

Abstract

The invention provides an order information processing method and device, and relates to the technical field of data processing, in particular to the technical fields of artificial intelligence, big data and the like. The method comprises the steps of obtaining order information and arrangement information of a target order; based on the order information and a preset proportion, cost information of each resource unit of a target order is acquired, the target order comprises at least one order item, and the order item comprises at least one resource unit; obtaining time sequence information of each resource unit based on the arrangement information; according to the time sequence information of each resource unit and the cost information of each resource unit, generating cost composition information of the target order in one or more charging segments; and generating fee deduction information corresponding to the target order based on the fee composition information. According to the invention, the order information can be accurately processed, the efficiency and flexibility of generating the fee deduction information are improved, and a transaction system is assisted in efficient and accurate data processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of data processing technology, and in particular to technical fields such as big data and artificial intelligence. Background Art

[0002] In the related art, when a user pays for an order, multiple fund types are combined for the entire order (for example, A yuan in cash, B yuan in agency payment, C yuan in voucher, and D yuan in cash voucher). During the user's purchase process, when multiple fund types are used for payment and the transaction operation of the resource unit is changed, the fee information of the fund type in the deduction information will be mixed, and it is impossible to record the change process of the deduction information brought about by each transaction operation change. Therefore, how to accurately process the order information, improve the efficiency and flexibility of generating deduction information, accurately record the change process of the deduction information brought about by each order transaction operation change, and assist the transaction system in performing efficient and accurate data processing has become one of the important research directions. Summary of the invention

[0003] The present invention provides a method and device for processing order information.

[0004] According to one aspect of the present disclosure, a method for processing order information is provided, comprising:

[0005] Determine a target order based on an order transaction request of a target object;

[0006] Obtain order information and scheduling information of the target order;

[0007] Based on the order information and the preset ratio, obtaining cost information of each resource unit of the target order, where the target order includes at least one order item, and the order item includes at least one resource unit;

[0008] Acquire timing information of each resource unit based on the scheduling information;

[0009] Generate cost composition information of the target order in one or more billing segments according to the timing information of each resource unit and the cost information of each resource unit;

[0010] Based on the cost composition information, generate the deduction information corresponding to the target order.

[0011] In the disclosed embodiment, order information and scheduling information of a target order are obtained; based on the order information and a preset ratio, the cost information of each resource unit of the target order is obtained, so that the order information can be processed accurately and flexibly, and the flexibility of cost inference is improved. The cost composition information of the target order in one or more billing segments is generated according to the timing information of each resource unit and the cost information of each resource unit. Based on the cost composition information, the deduction information corresponding to the target order is generated. The generation process of the deduction information can be accurately recorded, thereby improving the processing efficiency of the order information and assisting the transaction system in performing efficient and accurate data processing.

[0012] According to another aspect of the present disclosure, there is provided a device for processing order information, comprising:

[0013] A determination module, used for determining a target order based on an order transaction request of a target object;

[0014] A first acquisition module, used to acquire order information and arrangement information of a target order;

[0015] A second acquisition module is used to acquire cost information of each resource unit of a target order based on the order information and a preset ratio, where the target order includes at least one order item, and the order item includes at least one resource unit;

[0016] A third acquisition module, used to acquire timing information of each resource unit based on the scheduling information;

[0017] A first generating module, used for generating cost composition information of a target order in one or more billing segments according to the timing information of each resource unit and the cost information of each resource unit;

[0018] The second generating module is used to generate the deduction information corresponding to the target order based on the cost composition information.

[0019] According to another aspect of the present disclosure, there is provided an electronic device, including at least one processor, and

[0020] a memory communicatively connected to at least one processor; wherein,

[0021] The memory stores instructions that can be executed by at least one processor, and the instructions are executed by at least one processor so that the at least one processor can execute the method for processing order information of the embodiment of the first aspect of the present disclosure.

[0022] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable a computer to execute the method for processing order information according to the embodiment of the first aspect of the present disclosure.

[0023] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, which implements the steps of the method for processing order information of the first aspect of the present disclosure when executed by a processor.

[0024] According to another aspect of the present disclosure, a trading system is provided, including an order information processing device according to the embodiment of the second aspect of the present disclosure as described above.

[0025] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0027] Figure 1 is a flowchart of a method for processing order information according to an embodiment of the present disclosure;

[0028] Figure 2 is a schematic diagram of an order structure according to an embodiment of the present disclosure;

[0029] Figure 3 is a schematic diagram of a combination type according to an embodiment of the present disclosure;

[0030] Figure 4 is a schematic diagram of a method for processing order information according to an embodiment of the present disclosure;

[0031] Figure 5 is a schematic diagram of a method for processing order information according to an embodiment of the present disclosure;

[0032] Figure 6 is a schematic diagram of a method for processing order information according to an embodiment of the present disclosure;

[0033] Figure 7 is a schematic diagram of a method for processing order information according to an embodiment of the present disclosure;

[0034] Figure 8 is a flowchart of a method for processing order information according to an embodiment of the present disclosure;

[0035] Fig. 9 is a flowchart of a method for processing order information according to an embodiment of the present disclosure;

[0036] Fig.10 is a structural diagram of a system for processing order information according to an embodiment of the present disclosure;

[0037] Fig.11is a structural diagram of an order information processing device according to an embodiment of the present disclosure;

[0038] Fig.12 The block diagram is a block diagram of an electronic device for implementing the method of the embodiment of the present disclosure. DETAILED DESCRIPTION

[0039] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0040] The embodiments of the present disclosure relate to technical fields such as data processing and artificial intelligence.

[0041] Data processing: Data is a form of expression of facts, concepts or instructions, which can be processed by manual or automated devices. After data is interpreted and given a certain meaning, it becomes information. Data processing is the collection, storage, retrieval, processing, transformation and transmission of data. The basic purpose of data processing is to extract and derive valuable and meaningful data for certain specific people from a large amount of data that may be chaotic and difficult to understand. Data processing is a basic link in system engineering and automatic control. Data processing runs through all areas of social production and social life. The development of data processing technology and the breadth and depth of its application have greatly affected the process of human social development.

[0042] Artificial Intelligence (AI) is a new technical science that studies and develops theories, methods, technologies and application systems for simulating, extending and expanding human intelligence.

[0043] Big data, or massive data, refers to the amount of data involved that is so large that it cannot be captured, managed, processed, and organized into information that helps companies make more proactive business decisions within a reasonable time through mainstream software tools. "Big data" requires new processing models to have stronger decision-making power, insight discovery, and process optimization capabilities to adapt to massive, high-growth, and diverse information assets.

[0044] The following are explanations of the terms used in this disclosure:

[0045] An order is a request or instruction from a customer to purchase goods or services.

[0046] An order item is a specific item of goods or services in an order. An order can contain one or more order items, each of which represents a specific item or service purchased by a customer. An order item usually contains a detailed description of the item or service, quantity, unit price, and other information.

[0047] In a billing system, a resource unit generally refers to various resources or service entities used by a customer, such as a server, storage space, bandwidth, etc. A resource unit may be a basic unit that a billing system needs to track and charge.

[0048] The type of funds refers to different currencies, and may include, for example, cash (agents pay cash, customers pay cash), cash equivalents, rebates, vouchers, cash coupons, etc.

[0049] "ceiling" and "floor" are two commonly used rounding functions, which are used to round a real number (or variable) to the nearest integer.

[0050] The following describes the order information processing method and device disclosed in the present invention in conjunction with the accompanying drawings.

[0051] Figure 1 is a flowchart of a method for processing order information according to an embodiment of the present disclosure. Figure 1 As shown, the method comprises the following steps:

[0052] S101, determining a target order based on an order transaction request of a target object.

[0053] In some implementations, the order transaction request of the target object can be determined based on the control triggered by the target object, and then the target order of the request can be determined based on the order transaction request. For example, the order transaction request can be parsed to obtain the order identifier order_id, and then the associated target order can be determined based on the order_id.

[0054] In some implementations, the order transaction request of the target object carries an order identifier, and the order transaction request can be directly received and the target order can be determined according to the order identifier.

[0055] S102, obtaining order information and scheduling information of the target order.

[0056] In some implementations, the order transaction request of the target object includes order information and scheduling information, and the order transaction request can be parsed to obtain the order information and scheduling information.

[0057] In some embodiments, the order information may include order structure and order fee information, a first funding type supported by each order item, and a second funding type supported by each resource unit, wherein an order is composed of order items and resource units, such as Figure 2As shown, each order includes one or more order items, and each order item includes one or more resource units. The scheduling information may include time information for which billing scheduling is required, combination type of billing segments, and the like.

[0058] S103, based on the order information and the preset ratio, obtaining the cost information of each resource unit of the target order.

[0059] In the disclosed embodiment, the order information is processed at different granularities from top to bottom according to the order structure, and finally the cost details at the resource unit granularity are obtained to obtain the cost information of each resource unit. The processing of order information includes two parts: information processing at the order item granularity and information processing at the resource unit granularity.

[0060] That is, the order items in the order are allocated in proportion based on the cost information of the order to obtain the cost information of the order items, and the resource units in the order items are allocated in proportion based on the cost information of the order items to obtain the cost information of each resource unit.

[0061] S104: Acquire timing information of each resource unit based on the scheduling information.

[0062] In some embodiments, the scheduling information includes a start time, an end time, and a time interval, and a time range is determined based on the start time and the end time; the time range is divided based on the time interval to obtain timing information of each resource unit, and the timing information includes at least one time segment. For example, the time range is determined based on the start time and the end time, and the time range is divided based on the time interval to obtain one or more time segments. For example, if the time range is 30 days and the time interval is one day, 30 time segments can be obtained. In some embodiments, the scheduling information can be pre-configured to change the time range and / or time interval of the allocation cost information.

[0063] For example, you can also set the candidate time segments that need to be allocated, and allocate the cost information of each resource unit according to the time proportion. The time proportion is the ratio of the candidate time segment and the time range. In this way, you can get the cost composition information of the target order in the set billing segment.

[0064] In some embodiments, the scheduling information includes a start time, an end time, and a number of time segments, and a time range is determined based on the start time and the end time; the time range is evenly divided based on the number of time segments to obtain timing information of each resource unit, and the timing information includes at least one time segment.

[0065] S105 , generating cost composition information of the target order in one or more billing segments according to the timing information of each resource unit and the cost information of each resource unit.

[0066] Optionally, the cost information of each resource unit can be time-planned according to the timing information and allocated to one or more time segments in the same proportion, thereby generating the cost composition information of the target order in one or more billing segments, which is convenient for subsequent understanding of the cost composition of any time period.

[0067] S106: Generate deduction information corresponding to the target order based on the cost composition information.

[0068] In some implementations, the combination type of the billing segments is obtained, and the combination type includes one or more of a series combination, a parallel combination, and a total score combination. Based on the combination type, the cost component information of the target order in one or more billing segments is combined to obtain the deduction information corresponding to the target order. Figure 3 As shown, for example, the combination types include series combination, parallel combination and total-score combination. For example, for billing segment 1 and billing segment 2 of the series combination, billing segment 1 and billing segment 2 can be billed in order, such as billing vouchers first and then cash. For example, for billing segment 3 and billing segment 4 of the parallel combination, these two billing segments can be planned synchronously, with the same starting and ending points, and the planning within the segments is unrelated to each other, such as cash collection and agent rebate collection are carried out simultaneously, and multiple billing segments are billed simultaneously in the parallel billing method. In addition, the total-score combination is a special parallel combination. The total billing segment amount is the sum of the amounts of each branch billing segment. Taking daily planning as an example, the amount of the overall fund type per day is equal to the sum of the amounts of each branch segment fund type. In the embodiment of the present disclosure, the cost composition information of the target order in one or more billing segments is combined based on the combination type to obtain the deduction information corresponding to the target order, which can improve the flexibility and accuracy of processing order information and obtain high-quality deduction information data.

[0069] In some implementations, a preset deduction information template may be filled based on the cost composition information to obtain deduction information corresponding to the target order.

[0070] In some implementations, the deduction information may be stored in a preset database.

[0071] In the disclosed embodiment, order information and scheduling information of a target order are obtained; based on the order information and a preset ratio, the cost information of each resource unit of the target order is obtained, so that the order information can be processed accurately and flexibly, and the flexibility of cost inference is improved. The cost composition information of the target order in one or more billing segments is generated according to the timing information of each resource unit and the cost information of each resource unit. Based on the cost composition information, the deduction information corresponding to the target order is generated. The generation process of the deduction information can be accurately recorded, thereby improving the processing efficiency of the order information and assisting the transaction system in performing efficient and accurate data processing.

[0072] In some implementations, there are multiple target orders. After generating the deduction information corresponding to each target order based on the above steps, the order type of each target order is obtained. According to the order type of each target order, the deduction information corresponding to each target order is merged to obtain the target deduction information. For example, for an order type of upgrade request, such as Figure 4 As shown, for example, an order has an order item, and the order item has a resource unit. For case 1, the target object places an order to purchase, and the time range is set to January, with a total of 600 yuan, using cash (200 yuan), rebates (200 yuan), and vouchers (200 yuan), with a ratio of 1:1:1. The order is processed to obtain the first deduction information of a resource unit.

[0073] In some embodiments, Figure 5 As shown, 10 days after the target order of Case 1 was used, the target object triggered an order transaction request to upgrade the order (pay the difference of 400 yuan), including the use of cash (100 yuan), rebate (200 yuan), and voucher (100 yuan), with a ratio of 1:2:1. The order is processed to obtain the second deduction information, and the deduction information corresponding to each target order is added to obtain the target deduction information.

[0074] In some embodiments, Figure 6 As shown, after the target order of Case 1 was used for 30 days, the target object triggered an order transaction request to renew the order (600 yuan), using cash (100 yuan), rebates (200 yuan), and vouchers (300 yuan) in a ratio of 1:2:3. At this time, the new order information at the time of renewal is obtained for processing to obtain new deduction information.

[0075] In some implementations, for an order transaction request of a downgrade order type, such as Figure 7 As shown, after the target order of Case 1 has been used for 10 days, the target object triggers an order transaction request to downgrade the order. The deduction information corresponding to the original target order is subtracted from the deduction information corresponding to the new target order. After the fees are offset, the target deduction information is obtained.

[0076] Optionally, for each deduction information, the relationship between each fund type is upgraded from the original "first in, first out" to "all equal" to ensure the same proportion of consumption for each fund type. For example, if the order type is a refund, the order of generating the deduction information can be reversed, and according to the principle of last in, first out, the composition of the funds type for a specific refund can be obtained in proportion to the cost composition that needs to be refunded.

[0077] Each resource unit of the order corresponds to a deduction sub-information. In some implementations, when a resource unit undergoes operations such as upgrading, renewing, or downgrading, that is, when a new transaction request occurs, the order information changes. New deduction information can be generated based on the above steps. For complex transaction processes, the deduction information change process can be accurately recorded. In this way, the efficiency and flexibility of generating deduction information can be improved based on the inferred cost composition of any time period, and the transaction system can be assisted to perform efficient and accurate data processing.

[0078] Figure 8 is a flowchart of a method for processing order information according to an embodiment of the present disclosure. Figure 8 As shown, the method comprises the following steps:

[0079] S801, determining a target order based on an order transaction request of a target object.

[0080] S802: Obtain order information and scheduling information of the target order.

[0081] For the introduction of step S801 to step S802, please refer to the content of the above embodiment, which will not be repeated here.

[0082] S803: Allocate the order cost information to each order item based on the first ratio to obtain cost information of each order item.

[0083] The order fee information may include the first fee of the order and payment details.

[0084] In some embodiments, the preset ratio includes a first ratio corresponding to each order item and a second ratio corresponding to each resource unit in the order item. For example, the first ratio is the price ratio of each order item, and the second ratio is the price ratio of each resource unit.

[0085] In some embodiments, the order information also includes the first funding type of each order item, and the cost information of the order is allocated to each order item according to a first ratio to obtain the first cost of each order item; for each order item, the first inference order and the first inference function of each first funding type in the order item are obtained; based on the first inference order and the first inference function, the first cost of the order item is allocated and calculated to obtain the second cost corresponding to each first funding type in the order item, and the first cost of each order item and the second cost corresponding to each first funding type in the order item are used as the cost information of the order item.

[0086] For example, the first inference order of the first fund type may be a discount amount, cash (agent pays cash, customer pays cash), cash equivalent, rebate, voucher, cash coupon, and the like.

[0087] It should be noted that in the disclosed embodiment, each order item node is allocated proportionally, the numerical value of the share share (first fee) of each order item has an error less than 1 point from the exact value, and the numerical error error of all shares is minimized, that is, sum(abs(error)) is minimized. First, the exact value of the double-precision floating point number double type of each first fee is calculated, and the initial value of the result amount is set to the exact value rounded down, and the error diff of each first fee rounded up and rounded down is listed, and sorted from small to large (diff is a negative number for a decrease in error, and diff is a positive number for an increase in error), and the diff value is arranged from small to large, processed in sequence, and the final value of the result amount is set. If there is a remainder, each first fee value is set to round up in sequence until the remainder is exhausted.

[0088] For example, the fund types include catalog price, actual cost, coupon, discount coupon, cash equivalents, agent cash, agent cash, rebateOut, etc. Figure 2 As shown, in the embodiment of the present application, the structure of the order can be represented as a tree diagram, that is, the order node is associated with at least one order item node, and each order item node is associated with at least one resource unit node. The processing process of the order information can be as follows:

[0089] (1) Catalog price: The cost of a child node is the cost of the order item to which it belongs. The cost of the parent node is calculated by summing the cost of the child nodes.

[0090] (2) Actual cost: The cost of the parent node is the total cost of the order, and the cost of the child node = the cost of the order item * the number of order items purchased. If there is a price change, these price-changed items must be calculated separately;

[0091] (3) Coupons and discount coupons: Based on the discount information on the order item, the parent node is summed;

[0092] First, calculate all the child nodes feeNodeList in each order item, and allocate them according to the proportion of the fund type based on the price, generate the fee list shareList of the fund type, which corresponds to the feeNodeList one by one, and then split the amount according to the node in proportion;

[0093] (4) For inferred cash equivalents, allocation can be performed based on an inferred function, where the inferred function is as follows: cash equivalents = price-coupon-discount amount; where discount amount represents the discount amount.

[0094] (5) Inferring the cash paid by the agent: First check how much cash equivalents have not been inferred. If the uninferred fee is 0, the inference ends and no cash has been paid. If the uninferred cash equivalents are greater than 0, continue to infer. The agent cash paid by the parent node is directly obtained from the fee information of the order. If the remaining cash equivalents at the order level are equal to the agentCash of the order, then the agentCash of the order item is also equal to the remaining cash equivalents. Otherwise, it is distributed according to the proportion of the remaining cash equivalents. It should be noted that the remaining cash equivalents are cash;

[0095] (7) Infer the rebateOut paid to the agent: First infer the rebateOut of each order item, obtain the rebate rate RebateRate from the OrderItem corresponding to each node, and then multiply it by the cash equivalent. The cost of the funding type at the order level = the sum of the costs of the funding type for each order item.

[0096] S804: For each order item, allocate each resource unit of the order item based on the second ratio of each resource unit in the order item to obtain cost information of each resource unit.

[0097] Since each order item can formulate multiple resource units with the same configuration, it is necessary to divide the cost of this order item into specific resource units. In some embodiments, for each order item, the cost information of the order item is allocated to each resource unit of the order item according to the second ratio, and the third cost of each resource unit is obtained; for each resource unit in the order item, the second inference order and the second inference function of each second fund type in the resource unit are determined; based on the second inference order and the second inference function, the third cost of the resource unit is allocated and calculated, and the fourth cost corresponding to each second fund type in the resource unit is obtained, and the third cost of each resource unit in the order item and the fourth cost corresponding to the second fund type in each resource unit are used as the cost information of each resource unit. It should be noted that due to the same configuration, the inference can be as equal as possible. Since it is accurate to the cent, the maximum difference in the amount between the resource units in the order item is 0.01 yuan. The cost allocation is carried out according to the principle of allocating as far forward as possible, and the amount will be allocated to the resource unit in front as much as possible. First, the third cost price (actual price) of the resource unit is calculated, and the price change of the order item should be taken into account here. For example, an order item has a total of 10 resource units, and there are 4 price change records with prices [1,2,3,4] respectively. The unit price of the order item is 5, so the prices of these resource units resource are [1,2,3,4,5,5,5,5,5,5].

[0098] Optionally, the second inference order and the second inference function of the second fund type of the resource unit may be obtained from a preset database. For example, the processing of the order information may be as follows:

[0099] (1) Allocate catalogPrice: Get the catalog price total of the order item, divide it by an integer to get the average price, and amortize the remainder over a preset number m, where m is the number of resource units included in the order item;

[0100] (2) Allocate coupons and discount coupons in proportion: Get the catalog price amount at the order item level, first allocate the cost of each resource unit in proportion to obtain the cost value with double precision; round down all these cost values ​​to obtain a sequence List of rounded values <floor>, subtract all the rounded values ​​from the catalog price total to calculate the rounded difference left. Then sort these fee values ​​by the difference of the ceiling-floor function, set each allocation amount to the exact amount and round up until the remainder is exhausted, and get the fourth fee of this funding type.

[0101] (3) Allocate discountAmount in proportion. Unlike coupons, it is allocated according to the remaining unallocated fee leftShare. First, the leftShare is calculated by subtracting the allocated fee from the fee of the resource unit. The unallocated fee is used as the basis for allocation based on the preset second inference formula. Similarly, the fourth fee of the second fund type, such as the rebate paid to the agent and the cash paid by the agent on behalf of the agent, can be inferred based on this method.

[0102] (4) For second fund types such as cash equivalents and actual expenses, allocation is based on a second inference formula preset for each second fund type.

[0103] The inference formula in this disclosure is used to express the relationship between the fees of the funding types.

[0104] S805: Acquire timing information of each resource unit based on the scheduling information.

[0105] S806: Generate cost composition information of the target order in one or more billing segments according to the timing information of each resource unit and the cost information of each resource unit.

[0106] S807, generating the deduction information corresponding to the target order based on the cost composition information.

[0107] For the introduction of steps S805 to S807, reference may be made to the relevant contents in the above embodiment, which will not be repeated here.

[0108] In the disclosed embodiment, order cost information is allocated to each order item based on a first ratio to obtain cost information for each order item. For each order item, each resource unit of the order item is allocated based on a second ratio for each resource unit in the order item to obtain cost information for each resource unit. Processing is performed layer by layer at the granularity of order-order item-resource unit. A complete billing history record can be provided for each resource unit, and each resource unit can be accurately deducted to avoid excessive or insufficient billing. This can assist the transaction system in performing efficient and accurate data processing.

[0109] Fig. 9 is a flowchart of a method for processing order information according to an embodiment of the present disclosure. Fig. 9 As shown, the method comprises the following steps:

[0110] S901, determining a target order based on an order transaction request of a target object.

[0111] S902, obtaining target order parameters and target resource unit parameters of a target order;

[0112] The target order parameters include at least one or more of the following: whether the order exists, whether it is a postpaid order, whether there is an empty order item, whether the order creation time is empty, whether the payment time is empty, and whether the resource unit exists. In some embodiments, the target order parameters also include whether there is a priceless product, or whether the product price exceeds a preset fee range.

[0113] The target resource unit parameters include at least one or more of the following: whether the resource unit exists, and whether it is a prepaid resource unit.

[0114] S903, verify the target order parameters and the target resource unit parameters, and in response to the target order parameters being the same as the preset reference order parameters, and the target resource unit parameters being the same as the preset reference resource unit parameters, determine that the verification has passed.

[0115] For example, the reference order parameters and the reference resource unit parameters may be parameters obtained from a preset database or may be pre-configured parameters.

[0116] In some implementations, before processing the order information, it is necessary to verify the outer parameters based on the reference order parameters and the reference resource unit parameters, and process the order information after the verification is passed, thereby improving the processing efficiency and accuracy of the order information.

[0117] In some embodiments, in response to the target order parameters being different from the preset reference order parameters, or the target resource unit parameters being different from the preset reference resource unit parameters, it is determined that verification has not passed, and a reminder message can be generated and sent to a preset terminal device.

[0118] S904, obtaining order information and scheduling information of the target order.

[0119] S905, based on the order information and the preset ratio, obtain the cost information of each resource unit of the target order, the target order includes at least one order item, and the order item includes at least one resource unit.

[0120] S906: Acquire timing information of each resource unit based on the scheduling information.

[0121] S907, generating cost composition information of the target order in one or more billing segments according to the timing information of each resource unit and the cost information of each resource unit.

[0122] S908: Generate the deduction information corresponding to the target order based on the cost composition information.

[0123] The present invention verifies the target order parameters and the target resource unit parameters, and in response to the target order parameters being the same as the preset reference order parameters, and the target resource unit parameters being the same as the preset reference resource unit parameters, it is determined that the verification has passed, and the order information can be accurately processed, thereby improving the efficiency and flexibility of generating deduction information, and assisting the transaction system in performing efficient and accurate data processing.

[0124] Fig.10 is a structural diagram of an order information processing system according to an embodiment of the present disclosure, such as Fig.10 As shown, in the embodiment of the present disclosure, the order information processing system includes an information processing model, a billing segment arrangement model and a deduction information generation model, wherein:

[0125] The information processing model includes an order item processing module and a resource unit processing module. The order item processing module is used to allocate information order cost information to each information order item based on a first information ratio to obtain cost information for each information order item. The resource unit processing module is used to allocate each information resource unit of the information order item based on a second ratio of each information resource unit in the information order item to obtain cost information for each information resource unit.

[0126] The billing segment arrangement model is used to obtain the timing information of each information resource unit based on the information arrangement information, and generate the cost composition information of the information target order in one or more billing segments according to the information timing information of each information resource unit and the cost information of each information resource unit;

[0127] The charge information generation model is used to generate the charge information corresponding to the information target order based on the information cost composition information.

[0128] The present disclosure can accurately process information, generate deduction information, clearly record the change process of deduction information caused by each transaction operation change, and assist the transaction system to perform efficient and accurate information processing.

[0129] Fig.11 is a structural diagram of an order information processing device according to an embodiment of the present disclosure, such as Fig.11 As shown, the order information processing device 1100 includes:

[0130] A determination module 1110, configured to determine a target order based on an order transaction request of a target object;

[0131] A first acquisition module 1120 is used to acquire order information and scheduling information of a target order;

[0132] The second acquisition module 1130 is used to acquire the cost information of each resource unit of the target order based on the order information and the preset ratio, where the target order includes at least one order item, and the order item includes at least one resource unit;

[0133] A third acquisition module 1140, configured to acquire timing information of each resource unit based on the scheduling information;

[0134] A first generating module 1150 is used to generate cost composition information of a target order in one or more billing segments according to the timing information of each resource unit and the cost information of each resource unit;

[0135] The second generating module 1160 is used to generate the deduction information corresponding to the target order based on the cost composition information.

[0136] In some implementations, the order information includes cost information of the order, the preset ratio includes a first ratio corresponding to each order item and a second ratio corresponding to each resource unit, and the second acquisition module 1130 is further used to:

[0137] Allocate the order cost information to each order item based on the first ratio to obtain cost information of each order item;

[0138] For each order item, each resource unit of the order item is allocated based on the second ratio of each resource unit in the order item to obtain cost information of each resource unit.

[0139] In some implementations, the order information further includes the first funding type of each order item. The second acquisition module 1130 is further configured to:

[0140] Allocate the cost information of the order to each order item according to a first ratio, and obtain a first cost of each order item;

[0141] For each order item, obtain a first inference order and a first inference function for each first funding type in the order item;

[0142] Based on the first inference order and the first inference function, the first fee of the order item is allocated and calculated, the second fee corresponding to each first fund type in the order item is obtained, and the first fee of each order item and the second fee corresponding to each first fund type in the order item are used as the fee information of the order item.

[0143] In some implementations, the order information further includes the second funding type of each resource unit, and the second acquisition module 1130 is further configured to:

[0144] For each order item, allocating the cost information of the order item to each resource unit of the order item according to the second ratio, and obtaining a third cost of each resource unit;

[0145] For each resource unit in the order item, determining a second inference order and a second inference function for each second fund type in the resource unit;

[0146] Based on the second inference order and the second inference function, the third fee of the resource unit is allocated and calculated, the fourth fee corresponding to each second fund type in the resource unit is obtained, and the third fee of each resource unit in the order item and the fourth fee corresponding to the second fund type in each resource unit are used as the fee information of each resource unit.

[0147] In some implementations, the scheduling information includes a start time, an end time, and a time interval. The third acquisition module 1140 is further configured to:

[0148] Determine the time range based on the start and end times;

[0149] The time range is divided based on the time interval to obtain the timing information of each resource unit, where the timing information includes at least one time segment.

[0150] In some implementations, the first generating module 1150 is further configured to:

[0151] Allocate the cost information of each resource unit to the time segments in the same proportion to obtain the cost composition information of the target order in one or more billing segments.

[0152] In some implementations, the number of target orders is multiple, and the second generating module 1160 is further used to:

[0153] Get the order type of each target order;

[0154] According to the order type of each target order, the deduction information corresponding to each target order is merged to obtain the target deduction information.

[0155] In some implementations, the determination module 1110 is further configured to:

[0156] Get the target order parameters and target resource unit parameters of the target order;

[0157] The target order parameters and the target resource unit parameters are verified, and in response to the target order parameters being the same as the preset reference order parameters, and the target resource unit parameters being the same as the preset reference resource unit parameters, it is determined that the verification has passed.

[0158] In some embodiments, the target order parameters include at least one or more of the following: whether an order exists, whether it is a post-paid order, whether an order item is empty, whether the order creation time is empty, whether the payment time is empty, and whether a resource unit exists;

[0159] The target resource unit parameters include at least one or more of the following: whether the resource unit exists, and whether it is a prepaid resource unit.

[0160] In some implementations, the second generating module 1160 is further configured to:

[0161] Acquire the combination type of the billing fragments, where the combination type includes one or more of a series combination, a parallel combination, and a total score combination;

[0162] Based on the combination type, the cost composition information of the target order in one or more billing segments is combined to obtain the deduction information corresponding to the target order.

[0163] In the disclosed embodiment, order information and scheduling information of a target order are obtained; based on the order information and a preset ratio, the cost information of each resource unit of the target order is obtained, so that the order information can be processed accurately and flexibly, and the flexibility of cost inference is improved. The cost composition information of the target order in one or more billing segments is generated according to the timing information of each resource unit and the cost information of each resource unit. Based on the cost composition information, the deduction information corresponding to the target order is generated. The generation process of the deduction information can be accurately recorded, thereby improving the processing efficiency of the order information and assisting the transaction system in performing efficient and accurate data processing.

[0164] According to another aspect of the present disclosure, a trading system is provided, including an order information processing device according to the embodiment of the second aspect of the present disclosure as described above.

[0165] The acquisition, transmission, storage, use, and processing of data in the technical solution disclosed in this disclosure are in compliance with the relevant provisions of national laws and regulations. It should be noted that in the embodiments of this disclosure, some existing solutions in the industry such as certain software, components, and models may be mentioned, which should be considered as exemplary, and their purpose is only to illustrate the feasibility of implementing the technical solution of this application, but it does not mean that the applicant has or will necessarily use the solution.

[0166] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0167] Fig.12 It is a block diagram of an electronic device for implementing an embodiment of the present disclosure. The electronic device can implement the method for processing order information of an embodiment of the present disclosure, and the electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0168] like Fig.12 As shown, the device 1200 includes a computing unit 1201, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 1202 or a computer program loaded from a storage unit 1208 into a random access memory (RAM) 1203. In the RAM 1203, various programs and data required for the operation of the device 1200 can also be stored. The computing unit 1201, the ROM 1202, and the RAM 1203 are connected to each other via a bus 1204. An input / output (I / O) interface 1205 is also connected to the bus 1204.

[0169] A number of components in the device 1200 are connected to the I / O interface 1205, including: an input unit 1206, such as a keyboard, a mouse, etc.; an output unit 1207, such as various types of displays, speakers, etc.; a storage unit 1208, such as a disk, an optical disk, etc.; and a communication unit 1209, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 1209 allows the device 1200 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0170] The computing unit 1201 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 1201 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 1201 performs the various methods and processes described above, such as a method for processing order information. For example, in some embodiments, the method for processing order information may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 1208. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 1200 via the ROM 1202 and / or the communication unit 1209. When the computer program is loaded into the RAM 1203 and executed by the computing unit 1201, one or more steps of the method for processing order information described above may be performed. Alternatively, in other embodiments, the computing unit 1201 may be configured to execute the method for processing order information in any other appropriate manner (eg, by means of firmware).

[0171] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0172] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0173] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0174] To provide interaction with a target object, the systems and techniques described herein may be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the target object; and a keyboard and pointing device (e.g., a mouse or trackball) through which the target object can provide input to the computer. Other types of devices may also be used to provide interaction with the target object; for example, the feedback provided to the target object may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the target object may be received in any form (including acoustic input, voice input, or tactile input).

[0175] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a target object computer with a graphical target object interface or a web browser through which the target object can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0176] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0177] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0178] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.< / floor>

Claims

1. A method for processing order information, in, include: Determine a target order based on an order transaction request of a target object; Obtaining order information and scheduling information of the target order; Based on the order information and a preset ratio, obtaining cost information of each resource unit of the target order, the target order includes at least one order item, and the order item includes at least one resource unit; Acquire timing information of each resource unit based on the scheduling information; Generate cost composition information of the target order in one or more billing segments according to the timing information of each resource unit and the cost information of each resource unit; Based on the cost composition information, generate the deduction information corresponding to the target order.

2. The method according to claim 1, in, The order information includes cost information of the order, the preset ratio includes a first ratio corresponding to each of the order items and a second ratio corresponding to each of the resource units, and acquiring the cost information of each resource unit of the target order based on the order information and the preset ratio includes: Based on the first ratio, the order cost information is allocated to each of the order items to obtain cost information of each of the order items; For each of the order items, each of the resource units in the order item is allocated based on the second ratio of each of the resource units in the order item to obtain cost information of each of the resource units.

3. The method according to claim 2, in, The order information further includes a first funding type for each of the order items. Based on the first ratio, the order fee information is allocated to each of the order items to obtain the fee information for each of the order items, including: Allocate the cost information of the order to each of the order items according to a first ratio, and obtain a first cost of each of the order items; For each of the order items, obtaining a first inference order and a first inference function of each of the first funding types in the order item; Based on the first inference order and the first inference function, the first fee of the order item is allocated and calculated, the second fee corresponding to each of the first funding types in the order item is obtained, and the first fee of each of the order item and the second fee corresponding to each of the first funding types in the order item are used as the fee information of the order item.

4. The method according to claim 2, in, The order information further includes a second funding type for each resource unit, and the allocation of each resource unit of the order item based on the second ratio of each resource unit in the order item to obtain cost information of each resource unit includes: For each of the order items, allocating the cost information of the order item to each of the resource units of the order item according to the second ratio, and obtaining a third cost of each of the resource units; For each of the resource units in the order item, determining a second inference order and a second inference function of each of the second fund types in the resource unit; Based on the second inference order and the second inference function, the third fee of the resource unit is allocated and calculated, the fourth fee corresponding to each of the second funding type in the resource unit is obtained, and the third fee of each of the resource unit in the order item and the fourth fee corresponding to the second funding type in each of the resource unit are used as the fee information of each of the resource units.

5. The method according to any one of claims 1 to 4, in, The scheduling information includes a start time, an end time, and a time interval, and acquiring the timing information of each resource unit based on the scheduling information includes: determining a time range based on the start time and the end time; The time range is divided based on the time interval to obtain timing information of each resource unit, where the timing information includes at least one time segment.

6. The method according to any one of claims 1 to 4, in, The generating the cost composition information of the target order in one or more billing segments according to the timing information of each resource unit and the cost information of each resource unit includes: The cost information of each resource unit is distributed to the time segments in the same proportion to obtain the cost composition information of the target order in one or more billing segments.

7. The method according to any one of claims 1 to 4, in, The number of the target orders is multiple, and after generating the deduction information corresponding to the target orders, the method further includes: Obtaining the order type of each target order; According to the order type of each of the target orders, the deduction information corresponding to each of the target orders is merged to obtain the target deduction information.

8. The method according to any one of claims 1 to 4, in, After determining the target order based on the order transaction request of the target object, the method further includes: Obtaining target order parameters and target resource unit parameters of the target order; The target order parameters and the target resource unit parameters are verified, and in response to the target order parameters being the same as the preset reference order parameters, and the target resource unit parameters being the same as the preset reference resource unit parameters, it is determined that the verification has passed.

9. The method according to claim 8, in, The target order parameters include at least one or more of the following: whether the order exists, whether it is a postpaid order, whether the order item is empty, whether the order creation time is empty, whether the payment time is empty, and whether the resource unit exists; The target resource unit parameters include at least one or more of the following: whether the resource unit exists, and whether it is a prepaid resource unit.

10. The method according to any one of claims 1 to 4, in, The generating, based on the fee composition information, fee deduction information corresponding to the target order includes: Acquire a combination type of the billing segments, where the combination type includes one or more of a series combination, a parallel combination, and a total-score combination; The cost composition information of the target order in one or more billing segments is combined based on the combination type to obtain the deduction information corresponding to the target order.

11. A device for processing order information, in, include: A determination module, used for determining a target order based on an order transaction request of a target object; A first acquisition module, used to acquire order information and arrangement information of the target order; A second acquisition module is used to acquire cost information of each resource unit of the target order based on the order information and a preset ratio, wherein the target order includes at least one order item, and the order item includes at least one resource unit; A third acquisition module, configured to acquire timing information of each resource unit based on the scheduling information; A first generating module, configured to generate cost composition information of the target order in one or more billing segments according to the timing information of each resource unit and the cost information of each resource unit; The second generating module is used to generate the deduction information corresponding to the target order based on the cost composition information.

12. The device according to claim 11, in, The order information includes order fee information, the preset ratio includes a first ratio corresponding to each order item and a second ratio corresponding to each resource unit, and the second acquisition module is further used to: Based on the first ratio, the order cost information is allocated to each of the order items to obtain cost information of each of the order items; For each of the order items, each of the resource units in the order item is allocated based on the second ratio of each of the resource units in the order item to obtain cost information of each of the resource units.

13. The device according to claim 12, in, The order information further includes a first fund type of each order item, and the second acquisition module is further used to: Allocate the cost information of the order to each of the order items according to a first ratio, and obtain a first cost of each of the order items; For each of the order items, obtaining a first inference order and a first inference function of each of the first funding types in the order item; Based on the first inference order and the first inference function, the first fee of the order item is allocated and calculated, the second fee corresponding to each of the first funding types in the order item is obtained, and the first fee of each of the order item and the second fee corresponding to each of the first funding types in the order item are used as the fee information of the order item.

14. The device according to claim 12, in, The order information also includes a second fund type of each resource unit, and the second acquisition module is further used to: For each of the order items, allocating the cost information of the order item to each of the resource units of the order item according to the second ratio, and obtaining a third cost of each of the resource units; For each of the resource units in the order item, determining a second inference order and a second inference function of each of the second fund types in the resource unit; Based on the second inference order and the second inference function, the third fee of the resource unit is allocated and calculated, the fourth fee corresponding to each of the second funding type in the resource unit is obtained, and the third fee of each of the resource unit in the order item and the fourth fee corresponding to the second funding type in each of the resource unit are used as the fee information of each of the resource units.

15. The device according to any one of claims 11 to 14, in, The arrangement information includes a start time, an end time and a time interval. The third acquisition module is further used to: determining a time range based on the start time and the end time; The time range is divided based on the time interval to obtain timing information of each resource unit, where the timing information includes at least one time segment.

16. The device according to any one of claims 11 to 14, in, The first generating module is further used for: The cost information of each resource unit is distributed to the time segments in the same proportion to obtain the cost composition information of the target order in one or more billing segments.

17. The device according to any one of claims 11 to 14, in, The number of the target orders is multiple, and the second generating module is further used to: Obtaining the order type of each target order; According to the order type of each of the target orders, the deduction information corresponding to each of the target orders is merged to obtain the target deduction information.

18. The device according to any one of claims 11 to 14, in, The determining module is further used for: Obtaining target order parameters and target resource unit parameters of the target order; The target order parameters and the target resource unit parameters are verified, and in response to the target order parameters being the same as the preset reference order parameters, and the target resource unit parameters being the same as the preset reference resource unit parameters, it is determined that the verification has passed.

19. The device according to claim 18, in, The target order parameters include at least one or more of the following: whether the order exists, whether it is a postpaid order, whether the order item is empty, whether the order creation time is empty, whether the payment time is empty, and whether the resource unit exists; The target resource unit parameters include at least one or more of the following: whether the resource unit exists, and whether it is a prepaid resource unit.

20. The device according to any one of claims 11 to 14, in, The second generating module is further used for: Acquire a combination type of the billing segments, where the combination type includes one or more of a series combination, a parallel combination, and a total-score combination; The cost composition information of the target order in one or more billing segments is combined based on the combination type to obtain the deduction information corresponding to the target order.

21. An electronic device, include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method according to any one of claims 1 to 10.

22. A non-transitory computer-readable storage medium storing computer instructions, in, The computer instructions are used to cause the computer to execute the method according to any one of claims 1-10.

23. A computer program product comprising a computer program, which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 10.

24. A transaction system, comprising the device according to any one of claims 11-20.