Order splitting method, device, electronic device and storage medium

By independently splitting orders by calculating the split benchmark matrix, the operational complexity and error risk problems caused by the coupling of order split dimensions are solved, and logic stability and simplification are achieved.

CN112862389BActive Publication Date: 2024-10-29CHINA CONSTRUCTION BANK
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110056979.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-15
Publication Date
2024-10-29
Estimated Expiration
2041-01-15

AI Technical Summary

Technical Problem

In the existing order splitting technology, the splitting dimensions are coupled, which leads to the need to significantly adjust the order splitting logic when the dimensions are changed, increased or decreased, which makes the operation complex and the risk of errors high.

Method used

By obtaining the information of the items to be split, extracting the split attribute values, calculating the split benchmark matrix, and splitting the order based on this matrix, ensure that the split attributes are not related to each other and are logically independent to avoid changes or additions to the split attributes. Minimize impact calculation logic.

Benefits of technology

It simplifies the order splitting process, reduces the risk of errors, avoids frequent adjustments to the original logic, and improves the simplicity and stability of the operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112862389B_ABST
    Figure CN112862389B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device, electronic device and storage medium for order splitting, and relates to the field of computer technology. A specific implementation of the method includes: obtaining item information of items to be split; extracting attribute values ​​of each split attribute corresponding to each item to be split from the item information according to preset split attributes; calculating at least one splitting reference matrix according to the attribute values, the splitting reference matrix includes an attribute value corresponding to each splitting attribute; splitting the items to be split according to the splitting reference matrix, and obtaining the order information after splitting. This implementation can solve the problem of coupling between the splitting dimensions when splitting an order, and when the splitting dimensions are changed or increased or decreased, the original order splitting logic needs to be adjusted significantly, the operation is complicated, and the risk of errors in order splitting is increased.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method, device, electronic device and storage medium for order splitting. Background Art

[0002] According to the requirements of enterprise procurement management, for purchased items, the order of purchased items needs to be split for the convenience of accounting management, and as the procurement management system is continuously adjusted and improved, the dimensions and attributes of order splitting will also increase or decrease accordingly. There are many splitting attributes that usually need to be considered for order splitting, and each splitting attribute can be split corresponding to one dimension. The method of order splitting in the prior art is usually to judge whether the items in the order belong to the same sub-order in the order of the splitting dimensions, and the judgment of the latter splitting dimension is based on the judgment result of the previous splitting dimension.

[0003] However, in the above-mentioned order splitting method, the splitting dimensions are coupled, and the judgment of the latter splitting dimension is related to the judgment result of its previous splitting dimension. Therefore, when the splitting dimension is changed or increased or decreased, the original order splitting logic needs to be adjusted significantly, which complicates the operation and increases the risk of order splitting errors. Summary of the invention

[0004] In view of this, the embodiments of the present invention provide a method, device, electronic device and storage medium for order splitting, which can solve the coupling between the splitting dimensions when splitting an order. When the splitting dimensions are changed or increased or decreased, the original order splitting logic needs to be adjusted significantly, the operation is complicated, and the risk of errors in order splitting is increased.

[0005] To achieve the above objective, according to one aspect of an embodiment of the present invention, a method for order splitting is provided.

[0006] A method for order splitting in an embodiment of the present invention includes: obtaining item information of items to be split; extracting attribute values ​​corresponding to each of the splitting attributes of the items to be split from the item information according to preset splitting attributes; calculating at least one splitting reference matrix according to the attribute values, the splitting reference matrix including an attribute value corresponding to each of the splitting attributes; splitting the items to be split according to the splitting reference matrix to obtain order information after splitting.

[0007] In one embodiment, the calculating at least one splitting reference matrix according to the attribute value includes:

[0008] Determine a value set of each split attribute according to the attribute value;

[0009] At least one splitting reference matrix is ​​calculated according to each value set of the splitting attribute.

[0010] In yet another embodiment, determining a value set of each split attribute according to the attribute value includes:

[0011] For each of the split attributes, attribute values ​​corresponding to the split attributes are deduplicated, and the deduplicated attribute values ​​are determined as the value set of the split attributes.

[0012] In yet another embodiment, calculating at least one of the splitting reference matrices according to the value set of each of the splitting attributes includes:

[0013] According to each of the value sets of the split attribute, N split reference matrices are calculated, wherein N is the product of the number of attribute values ​​included in each of the value sets of the split attribute.

[0014] In yet another embodiment, calculating at least one splitting reference matrix according to each set of values ​​of the splitting attribute includes:

[0015] The Cartesian product is calculated for each value set of the split attribute, and the Cartesian product is determined as the split reference matrix.

[0016] In yet another embodiment, splitting the to-be-split objects according to the splitting reference matrix includes:

[0017] For each of the items to be purchased, determining the splitting reference matrix to which the item to be purchased belongs according to the item information of the item to be purchased and the splitting reference matrix;

[0018] The items to be purchased that belong to the same split reference matrix are determined as one order, and the split order information is determined according to the order.

[0019] In yet another embodiment, determining the items to be purchased that belong to the same split reference matrix as one order includes:

[0020] For each of the split reference matrices, determine whether there are items to be purchased that belong to the split reference matrix; if so, determine that the items to be purchased that belong to the split reference matrix are an order; if not, do nothing.

[0021] In yet another embodiment, further comprising:

[0022] Receiving change information of the split attribute;

[0023] The split attribute is updated according to the change information.

[0024] In another embodiment, the split attributes include: the procurement agreement to which the item belongs, the agreement supplier corresponding to the item, the demand management department of the item, the expenditure type of the item, the type of item, business extension projects, and / or the purpose of employee education funds.

[0025] To achieve the above objective, according to another aspect of an embodiment of the present invention, a device for order splitting is provided.

[0026] An order splitting device according to an embodiment of the present invention includes: an acquisition unit, used to acquire item information of items to be split; an extraction unit, used to extract attribute values ​​corresponding to each of the splitting attributes of the items to be split from the item information according to preset splitting attributes; a calculation unit, used to calculate at least one splitting reference matrix according to the attribute values, the splitting reference matrix including one attribute value corresponding to each of the splitting attributes; and a splitting unit, used to split the items to be split according to the splitting reference matrix to obtain order information after splitting.

[0027] In one embodiment, the computing unit is specifically configured to:

[0028] Determine a value set of each split attribute according to the attribute value;

[0029] At least one splitting reference matrix is ​​calculated according to each value set of the splitting attribute.

[0030] In yet another embodiment, the computing unit is specifically configured to:

[0031] For each of the split attributes, the attribute values ​​corresponding to the split attributes are deduplicated, and the deduplicated attribute values ​​are determined as the value set of the split attributes.

[0032] In yet another embodiment, the computing unit is specifically configured to:

[0033] According to each of the value sets of the split attribute, N split reference matrices are calculated, wherein N is the product of the number of attribute values ​​included in each of the value sets of the split attribute.

[0034] In yet another embodiment, the computing unit is specifically configured to:

[0035] The Cartesian product is calculated for each value set of the split attribute, and the Cartesian product is determined as the split reference matrix.

[0036] In yet another embodiment, the splitting unit is specifically used for:

[0037] For each of the items to be purchased, determining the splitting reference matrix to which the item to be purchased belongs according to the item information of the item to be purchased and the splitting reference matrix;

[0038] The items to be purchased that belong to the same split reference matrix are determined as one order, and the split order information is determined according to the order.

[0039] In yet another embodiment, the splitting unit is specifically used for:

[0040] For each of the split reference matrices, determine whether there are items to be purchased that belong to the split reference matrix; if so, determine that the items to be purchased that belong to the split reference matrix are an order; if not, do nothing.

[0041] In yet another embodiment, the apparatus further comprises:

[0042] A receiving unit, configured to receive change information of the split attribute;

[0043] An updating unit is used to update the split attribute according to the change information.

[0044] In another embodiment, the split attributes include: the procurement agreement to which the item belongs, the agreement supplier corresponding to the item, the demand management department of the item, the expenditure type of the item, the type of item, business extension projects, and / or the purpose of employee education funds.

[0045] To achieve the above objective, according to another aspect of an embodiment of the present invention, an electronic device is provided.

[0046] An electronic device according to an embodiment of the present invention includes: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement the order splitting method provided by the embodiment of the present invention.

[0047] To achieve the above objective, according to another aspect of an embodiment of the present invention, a computer readable medium is provided.

[0048] A computer-readable medium according to an embodiment of the present invention stores a computer program, which, when executed by a processor, implements the order splitting method provided by the embodiment of the present invention.

[0049] One embodiment of the above invention has the following advantages or beneficial effects: in the embodiment of the present invention, after obtaining the item information of the item to be split, the attribute value of each split attribute corresponding to each of the items to be purchased is extracted from the item information based on the split attribute, and then the split reference matrix can be calculated, and the items to be split are split based on the split reference matrix. The split reference matrix includes an attribute value corresponding to each split attribute, which is equivalent to the split reference matrix being a combination of attribute values ​​corresponding to each split attribute. In the embodiment of the present invention, the attribute value corresponding to each split attribute is extracted from the item information, and the combination of attribute values ​​corresponding to each split attribute is calculated, that is, the split reference matrix. Therefore, in the embodiment of the present invention, the order is split based on the split reference matrix, and the split attributes are not associated with each other, and the split reference matrix calculation logic is also independent of the number of split attributes. In this way, even if the split attributes are changed or increased or decreased, it does not affect the logic of extracting the attribute values ​​corresponding to each split attribute and calculating the split reference matrix, and then the original order splitting logic will not be adjusted significantly, the operation is simple, and the risk of order splitting errors is reduced.

[0050] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0052] Figure 1 is a schematic diagram of a main process of a method for order splitting according to an embodiment of the present invention;

[0053] Figure 2 is a schematic diagram of another main process of the method for order splitting according to an embodiment of the present invention;

[0054] Figure 3 is a schematic diagram of main units of an order splitting device according to an embodiment of the present invention;

[0055] Figure 4 is another exemplary system architecture diagram to which the embodiments of the present invention can be applied;

[0056] Figure 5 It is a schematic diagram of the structure of a computer system suitable for implementing the embodiment of the present invention. DETAILED DESCRIPTION

[0057] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention 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 invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0058] It should be pointed out that the embodiments of the present invention and the features in the embodiments may be combined with each other if there is no conflict.

[0059] The embodiment of the present invention provides an order splitting system, which can be used in the scenario of order splitting. Specifically, it can be used for order splitting in online shopping, and can also be used for order splitting when enterprises purchase. In the specific embodiment of the present invention, splitting of purchase orders for enterprise purchases is used as an example for explanation.

[0060] Enterprise procurement refers to the centralized procurement of goods, projects and services in the procurement catalog. Scientific procurement requires the procurement management department to sort out the procurement catalog, classify the procurement items uniformly, standardize the specifications and models of the purchased materials, formulate a unified basis for the purpose of procurement and subject categories, package and classify the items to be purchased, form an annual procurement plan in an intensive manner and implement it effectively. The procurement method can be specifically a combination of centralized procurement and e-commerce procurement, providing settled enterprises with services such as online selection of contracted goods, batch submission of purchase orders, and material acceptance management, so as to improve the procurement efficiency of enterprises and reduce procurement costs.

[0061] Each enterprise can also formulate a system of centralized procurement control according to standardization, and split the procurement requirements and generate specific orders in batches according to the implemented system. Specifically, in the embodiment of the present invention, the items to be split can be obtained first, and then the system based on order splitting can be used to split the items to be split, and the splitting results can be obtained.

[0062] The embodiment of the present invention provides a method for order splitting, which can be executed by an order splitting system, such as Figure 1 As shown, the method includes the following steps.

[0063] S101: Obtaining item information of items to be separated.

[0064] Among them, the items to be split are the items that need to be split in the order, which can be the items included in the order that needs to be split in online shopping or other methods, or the items that need to be purchased by enterprises. The item information can include the attribute information of the items, and the specific attribute information can also be determined according to the specific scenario. For example, the attribute information can include the name and logo of the item. Taking the example that the items to be split are the items that need to be purchased by the enterprise, the enterprise usually formulates a standardized centralized procurement control system, so the attribute information of each item to be purchased can include the corresponding attributes in the standardized centralized procurement control system. Specifically, the item information can include the procurement agreement to which the item belongs, the agreement supplier corresponding to the item, the demand management department of the item, the expenditure type of the item, the type of item, the business extension project and / or the purpose of employee education funds, etc.

[0065] S102: extracting attribute values ​​of each splitting attribute corresponding to each to-be-split object from the object information according to the preset splitting attributes.

[0066] The splitting attribute is an attribute used for order splitting, which can represent the dimension of order splitting. The specific splitting attribute can be set according to the application scenario and adjusted according to the needs, such as increase, decrease or modification, etc. The splitting attributes used to split the order usually include multiple ones, so that the items to be split can be split from multiple dimensions.

[0067] The item information includes the attribute information of the items to be split, so in this step, each split attribute can be extracted from the item information according to the split attributes, and the attribute value of each split attribute corresponding to each item to be split, that is, the attribute value corresponding to each split attribute is extracted from the item information of each item to be split.

[0068] Usually, there are multiple items to be split, so there will be multiple attribute values ​​corresponding to each split attribute extracted. At this time, the attribute value corresponding to each split attribute can be stored in an array or the like. Specifically, a hashset corresponding to each split attribute can be created to store the attribute value corresponding to the split attribute.

[0069] In an embodiment of the present invention, the split attributes may include the purchase agreement to which the item belongs, the agreement supplier corresponding to the item, the demand management department of the item, the expenditure type of the item, the type of the item, the business extension project, and the purpose of the employee education fund. For example, a corresponding hashset may be created for each of the seven split attributes, and then the corresponding attribute value may be extracted from the item information of each item to be split, and the attribute value may be stored in the corresponding hashset. Among them, since the attribute values ​​of the same split attribute corresponding to different items to be split may be the same or different, the number of attribute values ​​corresponding to each split attribute is at most the number of items to be split.

[0070] It should be noted that, in the embodiment of the present invention, the splitting attribute may be changed according to the requirements of the actual scene, that is, the following steps may be included: receiving change information of the splitting attribute; and updating the splitting attribute according to the change information.

[0071] When the split attribute needs to be changed, change information may be issued. The change information may include the changed split attribute or the changed content of the split attribute. Therefore, after receiving the change information, the stored split attribute may be updated according to the change information.

[0072] S103: Calculate at least one splitting reference matrix according to the attribute value.

[0073] Among them, the split reference matrix includes an attribute value corresponding to each split attribute, that is, the split reference matrix includes an element that is a combination of an attribute value corresponding to each split attribute, so in this step, the split reference matrix can be calculated according to the attribute value corresponding to each split attribute extracted, and the number of calculated split reference matrices is related to the number of attribute values ​​corresponding to each split attribute. The split reference matrix includes an attribute value corresponding to each split attribute, so the number of elements included in the split reference matrix is ​​the number of split attributes.

[0074] Specifically, this step can be performed as follows: determining a value set of each split attribute according to the attribute value; and calculating at least one split reference matrix according to the value set of each split attribute.

[0075] For each split attribute, a corresponding attribute value can be extracted from the item information of an item to be split. Since the attribute values ​​of the same split attribute corresponding to different items to be split may be the same, the attribute values ​​extracted from the item information of each item to be split for this split attribute are repeated. In order to avoid calculating repeated split reference matrices, the attribute values ​​corresponding to each split attribute can be deduplicated, and the deduplicated attribute values ​​are determined as the value set of the split attribute. Specifically, the following is performed: for each split attribute, the attribute values ​​corresponding to the split attribute are deduplicated, and the deduplicated attribute values ​​are determined as the value set of the split attribute.

[0076] In this step, the value set of each split attribute can be determined, and then at least one split reference matrix can be calculated with each value set as an input parameter. Specifically, in an embodiment of the present invention, the Cartesian product of the value set of each split attribute can be calculated, and the obtained Cartesian product can be determined as the split reference matrix. The calculation of the Cartesian product usually takes two sets as input, and the result includes two elements of the two sets respectively. Therefore, when the split attributes include multiple ones in this step, the split attributes can be sorted, and then the Cartesian product of the value sets corresponding to the first two split attributes is calculated in the order of arrangement, and then the Cartesian product of the value sets corresponding to the first two split attributes and the Cartesian product of the value set corresponding to the next split attribute are calculated, and the Cartesian product of the value sets of each split attribute is calculated in turn. Therefore, the split reference matrix is ​​a combination of one element in the value set corresponding to each split attribute, so the number of split reference matrices calculated is also related to the number of attribute values ​​included in the value set corresponding to each split attribute. Specifically, in this step, N split reference matrices can be calculated according to the value set of each split attribute, where N is the product of the number of attribute values ​​included in the value set of each split attribute.

[0077] In the embodiment of the present invention, the split attributes including the purchase agreement to which the item belongs, the agreement supplier corresponding to the item, the demand management department of the item, the expenditure type of the item, the type of the item, the business extension project, and the purpose of the employee education fund can be taken as an example. Suppose the corresponding value set of the purchase agreement to which the item belongs is A, the corresponding value set of the agreement supplier corresponding to the item is S, the corresponding value set of the demand management department of the item is D, the corresponding value set of the expenditure type of the item is E, and the corresponding value set of the type of the item is C. The corresponding value set for business extension projects is P, and the corresponding value set for the use of employee education funds is F. The Cartesian product calculated at this time can be expressed as AⅹSⅹDⅹEⅹCⅹPⅹF={(a,s,d,e,c,p,f)|a∈A∧s∈S∧d∈D∧e∈E∧c∈C∧p∈P∧f∈F}, where a represents an element in A, s represents an element in S, d represents an element in D, e represents an element in E, c represents an element in C, p represents an element in P, and f represents an element in F.

[0078] It should be noted that when calculating the splitting benchmark matrix in the embodiment of the present invention, the arrangement order of the splitting attributes has no effect on the result. Therefore, even if the splitting attributes are increased, decreased or modified in the embodiment of the present invention, it will only affect the specific result of the calculated splitting benchmark matrix, but will not affect the calculation logic of the splitting benchmark matrix.

[0079] S104: Split the items to be split according to the splitting reference matrix to obtain order information after splitting.

[0080] After calculating the splitting reference matrix, the items to be split can be split based on the splitting reference matrix, so as to obtain the order information after the splitting, that is, which items to be split belong to the same order after the splitting.

[0081] Specifically, when splitting an order, items with the same attributes are usually divided into the same order, and the splitting reference matrix includes an attribute value of each splitting attribute, so in the embodiment of the present invention, the items to be split can be split according to the splitting reference matrix. Specifically, it can be performed as follows: for each item to be purchased, according to the item information of the item to be purchased and the splitting reference matrix, determine the splitting reference matrix to which the item to be purchased belongs; determine the items to be purchased belonging to the same splitting reference matrix as one order, and determine the splitting result of the item to be split according to the order.

[0082] Each splitting reference matrix includes an attribute value of each splitting attribute, which represents a combination of attribute values ​​corresponding to the splitting attributes. The items to be split that belong to the same splitting reference matrix have the same attribute values ​​of each splitting attribute and can be divided into one order. Therefore, in an embodiment of the present invention, the splitting reference matrix to which each item to be purchased belongs can be determined based on the item information of the items to be purchased and the splitting reference matrix, and then the items to be purchased that belong to the same splitting reference matrix can be determined as one order, so that the splitting results of the items to be split can be determined based on the order.

[0083] It should be noted that after determining the split reference matrix to which each item to be purchased belongs, it is possible to determine in turn whether each split reference matrix has items to be purchased belonging to the split reference matrix. If yes, the items to be purchased belonging to the split reference matrix can be directly determined as an order; if not, it means that there are no items to be purchased belonging to the split reference matrix, and no operation is required.

[0084] In the embodiment of the present invention, the splitting reference matrix includes an attribute value corresponding to each splitting attribute, which is equivalent to the splitting reference matrix being a combination of attribute values ​​corresponding to each splitting attribute. In the embodiment of the present invention, the attribute value corresponding to each splitting attribute is extracted from the item information, and the combination of attribute values ​​corresponding to each splitting attribute is calculated, that is, the splitting reference matrix. Therefore, in the embodiment of the present invention, the order is split based on the splitting reference matrix, and the splitting attributes will not be associated with each other. In this way, even if the splitting attributes are changed or increased or decreased, it does not affect the logic of extracting the attribute values ​​corresponding to each splitting attribute and calculating the splitting reference matrix, and thus the original order splitting logic will not be adjusted significantly. The operation is simple, and the risk of order splitting errors is reduced.

[0085] Combine the following Figure 1The embodiment shown in the figure specifically illustrates the method of order splitting in the embodiment of the present invention. The embodiment of the present invention takes the case where the items to be split include 4 items, and the splitting attributes include the purchase agreement to which the items belong (agreement), the agreement supplier corresponding to the items (supplier), the demand management department of the items (depart), the expenditure type of the items (expense), the type of the items (commodity), the business extension project (project), and the purpose of the employee education funds (purpose) as an example. Suppose the corresponding value set of the purchase agreement to which the items belong is A, the corresponding value set of the agreement supplier corresponding to the items is S, the corresponding value set of the demand management department of the items is D, the corresponding value set of the expenditure type of the items is E, the corresponding value set of the type of the items is C, the corresponding value set of the business extension project is P, and the corresponding value set of the purpose of the employee education funds is F as an example for explanation. Figure 2 As shown, the method includes the following steps.

[0086] S201: extracting the attribute value of each splitting attribute corresponding to the object to be split.

[0087] The execution process of this step is the same as step 102, which will not be repeated here. The embodiment of the present invention takes the following result obtained in this step as an example:

[0088] Item 1 to be split: [Agreement A1, supplier S1, demand management department D1, expenditure type E1, commodity type C1, project P1, purpose of employee education funds F1]; Item 2 to be split: [Agreement A1, supplier S1, demand management department D1, expenditure type E1, commodity type C1, project P1, purpose of employee education funds F1]; Item 3 to be split: [Agreement A1, supplier S2, demand management department D2, expenditure type E1, commodity type C1, project P1, purpose of employee education funds F1]; Item 4 to be split: [Agreement A1, supplier S3, demand management department D2, expenditure type E1, commodity type C1, project P1, purpose of employee education funds F1].

[0089] From the above results, the attribute value corresponding to each split attribute can be obtained.

[0090] S202: Determine a value set corresponding to each split attribute according to the attribute value corresponding to each split attribute.

[0091] After obtaining the attribute value corresponding to each split attribute, the attribute value corresponding to each split attribute can be deduplicated, thereby obtaining the value set corresponding to each split attribute. For example, for the result obtained in step S201, the value set corresponding to each split attribute can be obtained in this step, as shown below: A = [Agreement A1], S = [Supplier S1, Supplier S2, Supplier S3], D = [Demand Management Department D1, Demand Management Department D2], E = [Expenditure Type E1], C = [Commodity Type C1], P = [Project P1], F = [Purpose of Employee Education Funds F1].

[0092] S203: Calculate the Cartesian product of the value sets corresponding to each split attribute to obtain a split reference matrix.

[0093] In this step, the Cartesian product of the value sets corresponding to each split attribute can be calculated in turn, and the calculation method can be: AⅹSⅹDⅹEⅹCⅹPⅹF={(a,s,d,e,c,p,f)|a∈A∧s∈S∧d∈D∧e∈E∧c∈C∧p∈P∧f∈F}, where a represents an element in A, s represents an element in S, d represents an element in D, e represents an element in E, c represents an element in C, p represents an element in P, and f represents an element in F.

[0094] The matrices included in the obtained Cartesian product can all be used as splitting reference matrices. The splitting reference matrix obtained in the embodiment of the present invention can be shown as follows:

[0095] Split benchmark matrix 1: [Agreement A1, supplier S1, demand management department D1, expenditure type E1, commodity type C1, project P1, purpose of employee education funds F1], Split benchmark matrix 2: [Agreement A1, supplier S1, demand management department D2, expenditure type E1, commodity type C1, project P1, purpose of employee education funds F1], Split benchmark matrix 3: [Agreement A1, supplier S2, demand management department D1, expenditure type E1, commodity type C1, project P1, purpose of employee education funds F1], Split benchmark matrix 4: [Agreement A1, supplier S2, demand management department D2, expenditure type E1, commodity type C1, project P1, purpose of employee education funds F1], Split benchmark matrix 5: [Agreement A1, supplier S3, demand management department D1, expenditure type E1, commodity type C1, project P1, purpose of employee education funds F1], Split benchmark matrix 6: [Agreement A1, supplier S3, demand management department D2, expenditure type E1, commodity type C1, project P1, purpose of employee education funds F1].

[0096] S204: Split the objects to be split according to the splitting reference matrix.

[0097] After obtaining the splitting reference matrix, the item information of each item to be split can be matched with the splitting reference matrix to determine the splitting reference matrix to which the item to be split belongs, and then the items to be split that belong to the same splitting reference matrix can be determined as one order.

[0098] In the embodiment of the present invention, the splitting reference matrix obtained according to step S204 can determine the items to be split belonging to each splitting reference matrix, and the results are as follows: items to be split belonging to splitting reference matrix 1: item 1 to be split, item 2 to be split, items to be split belonging to splitting reference matrix 2: none, items to be split belonging to splitting reference matrix 3: none, items to be split belonging to splitting reference matrix 4: item 3 to be split, items to be split belonging to splitting reference matrix 5: none, items to be split belonging to splitting reference matrix 6: item 4 to be split.

[0099] It can be seen from the above results that item 1 to be split and item 2 to be split belong to the same order, and item 3 to be split and item 4 to be split are taken as a separate order, so in this embodiment of the present invention, 4 items to be split are split into 3 orders.

[0100] The splitting reference matrix includes an attribute value corresponding to each splitting attribute, which is equivalent to the splitting reference matrix being a combination of attribute values ​​corresponding to each splitting attribute. In the embodiment of the present invention, the attribute value corresponding to each splitting attribute is extracted from the item information, and the combination of attribute values ​​corresponding to each splitting attribute is calculated, that is, the splitting reference matrix. Therefore, in the embodiment of the present invention, the order is split based on the splitting reference matrix, and the splitting attributes will not be associated with each other. In this way, even if the splitting attributes are changed or increased or decreased, it does not affect the logic of extracting the attribute values ​​corresponding to each splitting attribute and calculating the splitting reference matrix, and thus the original order splitting logic will not be adjusted significantly. The operation is simple and the risk of order splitting errors is reduced.

[0101] In order to solve the problems existing in the prior art, the embodiment of the present invention provides an order splitting device 300, such as Figure 3 As shown, the device 300 includes:

[0102] An acquisition unit 301 is used to acquire item information of an item to be separated;

[0103] An extraction unit 302 is used to extract attribute values ​​of each splitting attribute corresponding to each of the to-be-split items from the item information according to preset splitting attributes;

[0104] A calculation unit 303, configured to calculate at least one splitting reference matrix according to the attribute value, wherein the splitting reference matrix includes one attribute value corresponding to each splitting attribute;

[0105] The splitting unit 304 is used to split the items to be split according to the splitting reference matrix to obtain order information after the splitting.

[0106] It should be understood that the manner of implementing the embodiments of the present invention is different from the Figure 1 The method of the illustrated embodiment is the same and will not be repeated here.

[0107] In an implementation of the embodiment of the present invention, the calculation unit 303 is specifically used for:

[0108] Determine a value set of each split attribute according to the attribute value;

[0109] At least one splitting reference matrix is ​​calculated according to each value set of the splitting attribute.

[0110] In another implementation of the embodiment of the present invention, the calculation unit 303 is specifically used to:

[0111] For each of the split attributes, the attribute values ​​corresponding to the split attributes are deduplicated, and the deduplicated attribute values ​​are determined as the value set of the split attributes.

[0112] In another implementation of the embodiment of the present invention, the calculation unit 303 is specifically used to:

[0113] According to each of the value sets of the split attribute, N split reference matrices are calculated, wherein N is the product of the number of attribute values ​​included in each of the value sets of the split attribute.

[0114] In another implementation of the embodiment of the present invention, the calculation unit 303 is specifically used to:

[0115] The Cartesian product is calculated for each value set of the split attribute, and the Cartesian product is determined as the split reference matrix.

[0116] In another implementation of the embodiment of the present invention, the splitting unit 304 is specifically used for:

[0117] For each of the items to be purchased, determining the splitting reference matrix to which the item to be purchased belongs according to the item information of the item to be purchased and the splitting reference matrix;

[0118] The items to be purchased that belong to the same splitting reference matrix are determined as one order, and the splitting results of the items to be split are determined according to the order.

[0119] In another implementation of the embodiment of the present invention, the splitting unit 304 is specifically used for:

[0120] For each of the split reference matrices, determine whether there are items to be purchased that belong to the split reference matrix; if so, determine that the items to be purchased that belong to the split reference matrix are an order; if not, do nothing.

[0121] In another implementation of the embodiment of the present invention, the device 300 further includes:

[0122] A receiving unit, configured to receive change information of the split attribute;

[0123] An updating unit is used to update the split attribute according to the change information.

[0124] In another implementation of the embodiment of the present invention, the split attributes include: the procurement agreement to which the item belongs, the agreement supplier corresponding to the item, the demand management department of the item, the expenditure type of the item, the type of item, business extension projects, and / or the purpose of employee education funds.

[0125] It should be understood that the manner of implementing the embodiments of the present invention is different from the Figure 1 or Figure 2 The method of the illustrated embodiment is the same and will not be repeated here.

[0126] The splitting reference matrix includes an attribute value corresponding to each splitting attribute, which is equivalent to the splitting reference matrix being a combination of attribute values ​​corresponding to each splitting attribute. In the embodiment of the present invention, the attribute value corresponding to each splitting attribute is extracted from the item information, and the combination of attribute values ​​corresponding to each splitting attribute is calculated, that is, the splitting reference matrix. Therefore, in the embodiment of the present invention, the order is split based on the splitting reference matrix, and the splitting attributes will not be associated with each other. In this way, even if the splitting attributes are changed or increased or decreased, it does not affect the logic of extracting the attribute values ​​corresponding to each splitting attribute and calculating the splitting reference matrix, and thus the original order splitting logic will not be adjusted significantly. The operation is simple and the risk of order splitting errors is reduced.

[0127] According to an embodiment of the present invention, the embodiment of the present invention further provides an electronic device and a readable storage medium.

[0128] The electronic device of an embodiment of the present invention includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the one processor, and the instructions are executed by the at least one processor so that the at least one processor executes the order splitting method provided in the embodiment of the present invention.

[0129] Figure 4 An exemplary system architecture 400 is shown to which the method or apparatus for order splitting according to an embodiment of the present invention may be applied.

[0130] like Figure 4As shown, system architecture 400 may include terminal devices 401, 402, 403, network 404 and server 405. Network 404 is used to provide a medium for communication links between terminal devices 401, 402, 403 and server 405. Network 404 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0131] The user can use the terminal devices 401, 402, 403 to interact with the server 405 through the network 404 to receive or send messages, etc. Various client applications can be installed on the terminal devices 401, 402, 403.

[0132] The terminal devices 401 , 402 , 403 may be, but are not limited to, smart phones, tablet computers, laptop computers, desktop computers, and the like.

[0133] The server 405 may be a server that provides various services, and may analyze and process the received data such as the product information query request, and feed back the processing result (such as product information - just an example) to the terminal device.

[0134] It should be noted that the order splitting method provided in the embodiment of the present invention is generally executed by the server 405 , and accordingly, the order splitting device is generally set in the server 405 .

[0135] It should be understood that Figure 4 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0136] Reference below Figure 5 , which shows a schematic diagram of the structure of a computer system 500 suitable for implementing an embodiment of the present invention. Figure 5 The computer system shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0137] like Figure 5 As shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage part 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the system 500 are also stored. The CPU 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0138] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed, so that a computer program read therefrom is installed into the storage section 508 as needed.

[0139] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 809, and / or installed from the removable medium 511. When the computer program is executed by the central processing unit (CPU) 501, the above-mentioned functions defined in the system of the present invention are executed.

[0140] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, 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 above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0141] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a unit, a program segment, or a part of a code, and the above-mentioned unit, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0142] The units involved in the embodiments of the present invention may be implemented by software or hardware. The units described may also be set in a processor, for example, it may be described as: a processor includes an acquisition unit, an extraction unit, a calculation unit, and a splitting unit. The names of these units do not constitute a limitation on the units themselves in some cases, for example, the acquisition unit may also be described as a "unit of the function of the acquisition unit".

[0143] As another aspect, the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device executes the order splitting method provided by the present invention.

[0144] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for order splitting, characterized in that: include: Get the item information of the item to be split; According to the preset splitting attributes, extracting the attribute value of each splitting attribute corresponding to each of the to-be-split items from the item information; According to the attribute value, at least one splitting reference matrix is ​​calculated, wherein the splitting reference matrix includes one attribute value corresponding to each splitting attribute, that is, the splitting reference matrix includes an element that is a combination of one attribute value corresponding to each splitting attribute; Splitting the items to be split according to the splitting reference matrix to obtain order information after splitting; The step of calculating at least one splitting reference matrix according to the attribute value comprises: Determine a value set of each split attribute according to the attribute value; According to each value set of the splitting attribute, at least one splitting reference matrix is ​​calculated, wherein the splitting attributes are sorted, and then the Cartesian product of the value sets corresponding to the first two splitting attributes is calculated in the order of arrangement, and then the Cartesian product of the value sets corresponding to the first two splitting attributes and the Cartesian product of the value set corresponding to the last splitting attribute is calculated, and the Cartesian product of the value sets of each splitting attribute is calculated in turn, and the obtained Cartesian product is determined as the splitting reference matrix; The step of splitting the items to be split according to the splitting reference matrix to obtain order information after splitting includes: For each item to be purchased, determining the splitting reference matrix to which the item to be purchased belongs according to the item information of the item to be purchased and the splitting reference matrix; Determine the items to be purchased that belong to the same split reference matrix as one order, and determine the split order information according to the order; The calculating at least one splitting reference matrix according to each value set of the splitting attribute includes: According to each of the split attribute value sets, N split reference matrices are calculated, wherein N is the product of the number of attribute values ​​included in each of the split attribute value sets; The step of determining a value set of each split attribute according to the attribute value includes: For each of the split attributes, attribute values ​​corresponding to the split attributes are deduplicated, and the deduplicated attribute values ​​are determined as the value set of the split attributes.

2. The method according to claim 1, characterized in that The step of determining the items to be purchased that belong to the same split reference matrix as one order includes: For each of the split reference matrices, determine whether there are items to be purchased that belong to the split reference matrix; if so, determine that the items to be purchased that belong to the split reference matrix are an order; if not, do nothing.

3. The method according to claim 1, characterized in that Also includes: Receiving change information of the split attribute; The split attribute is updated according to the change information.

4. The method according to claim 1, characterized in that: The split attributes include: the purchase agreement to which the item belongs, the agreement supplier corresponding to the item, the demand management department of the item, the expenditure type of the item, the type of the item, the business extension project, and / or the purpose of employee education funds.

5. A device for splitting orders, characterized in that: include: An acquisition unit, used for acquiring item information of the item to be separated; An extraction unit, configured to extract, from the item information, an attribute value of each splitting attribute corresponding to each of the items to be split according to a preset splitting attribute; A calculation unit, configured to calculate at least one splitting reference matrix according to the attribute value, wherein the splitting reference matrix includes one attribute value corresponding to each splitting attribute, that is, the splitting reference matrix includes an element that is a combination of one attribute value corresponding to each splitting attribute; A splitting unit, used for splitting the items to be split according to the splitting reference matrix to obtain order information after splitting; The computing unit is specifically used for: Determine a value set of each split attribute according to the attribute value; According to each value set of the splitting attribute, at least one splitting reference matrix is ​​calculated, wherein the splitting attributes are sorted, and then the Cartesian product of the value sets corresponding to the first two splitting attributes is calculated in the order of arrangement, and then the Cartesian product of the value sets corresponding to the first two splitting attributes and the Cartesian product of the value set corresponding to the last splitting attribute is calculated, and the Cartesian product of the value sets of each splitting attribute is calculated in turn, and the obtained Cartesian product is determined as the splitting reference matrix; The splitting unit is specifically used for: For each item to be purchased, determining the splitting reference matrix to which the item to be purchased belongs according to the item information of the item to be purchased and the splitting reference matrix; Determine the items to be purchased that belong to the same split reference matrix as one order, and determine the split order information according to the order; The computing unit is specifically used for: According to each of the split attribute value sets, N split reference matrices are calculated, wherein N is the product of the number of attribute values ​​included in each of the split attribute value sets; The computing unit is specifically used for: For each of the split attributes, attribute values ​​corresponding to the split attributes are deduplicated, and the deduplicated attribute values ​​are determined as the value set of the split attributes.

6. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 4.

7. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • Order splitting method and device

    CN104537515A

  • Handling purchase orders

    US20130317940A1