Method and device for bill collection rule configuration and bill collection

By dynamically matching the detailed attributes of the set order rule and the set order rule attributes, the detailed set order rule details are generated, which solves the reusability and efficiency problems caused by the separate configuration of different set order rules, and realizes more efficient set order rule configuration and document collection.

CN119807241APending Publication Date: 2025-04-11BEIJING JINGDONG QIANSHITECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311308462.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-10
Publication Date
2025-04-11

AI Technical Summary

Technical Problem

The individual configuration of different set rules results in low reusability of the configuration method, high development and maintenance costs, and low document collection efficiency.

Method used

By responding to the received set rule details attributes, determine the document type, find the set rule corresponding to the document type, match the set rule details attributes and set rule attributes, and generate set rule details to improve the reusability of set rule configuration.

Benefits of technology

It improves the reusability of the set order rule configuration method, reduces development and maintenance costs, and improves document collection efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119807241A_ABST
    Figure CN119807241A_ABST
Patent Text Reader

Abstract

The invention discloses a bill collection rule configuration and bill collection method and device, and relates to the technical field of warehouse logistics. A specific embodiment of the method for configuring the order collection rule comprises the following steps: in response to a received order collection rule detail attribute, determining a corresponding document type; searching order gathering rules, and determining the attributes of the order gathering rules; and generating order collection rule details corresponding to the order collection rules. According to the embodiment, a unified process for configuring the order collection rule is provided, the reusability of the order collection rule configuration method is improved, and the development and maintenance cost is reduced. A specific embodiment of the document collection method comprises the following steps: in response to a received target document, determining a document type of the target document; and determining the bill collection rule details of the target bills, and adding the target bills into the corresponding bill sets under the condition that the target bills are matched with the bill collection rule details. According to the embodiment, the matched receipts are collected based on the receipt rule details, so that the receipt collection efficiency and accuracy can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of warehousing logistics, and in particular to a method and device for configuring order collection rules. Background Art

[0002] Before transporting or storing goods, in order to reduce costs and improve efficiency, documents are usually collected together according to the collection rules for unified transportation or storage of goods. For example, documents with the same delivery address are collected together, and then the goods corresponding to these documents are transported in a unified manner. As the business continues to develop, there are more and more collection rules. Usually, different types of collection rules have separate configuration pages and configuration processes. When configuring a new type of collection rule, new configuration pages and configuration processes need to be developed.

[0003] In the process of implementing the present invention, the inventors found that the prior art has at least the following problems:

[0004] Different collection rules are configured separately, resulting in low reusability of the collection rule configuration method, high development and maintenance costs, and low document collection efficiency. Summary of the invention

[0005] In view of this, the embodiments of the present invention provide a method and device for configuring collection rules and collecting documents, which can improve the reusability of the collection rule configuration method, reduce development and maintenance costs, and improve document collection efficiency.

[0006] To achieve the above object, according to a first aspect of an embodiment of the present invention, a method for configuring a set of rules is provided, comprising:

[0007] In response to receiving the detailed attributes of the document collection rule, determining a corresponding document type;

[0008] Find the document collection rule corresponding to the document type, and determine the document collection rule attribute of the document collection rule;

[0009] The set order rule detail attribute is matched with the set order rule attribute to generate the set order rule details corresponding to the set order rule.

[0010] Optionally, the method further comprises:

[0011] Before searching for a collection rule corresponding to the document type, in response to receiving a collection rule attribute, determining a corresponding document type, and generating a collection rule corresponding to the document type;

[0012] And / or before determining the corresponding document type, in response to receiving a document type update request, add a document type used for the set document rule configuration, or delete a document type used for the set document rule configuration, or modify the document type used for the set document rule configuration.

[0013] Optionally, the set order rule attributes include: a constraint attribute and an end attribute, the number of the constraint attribute and the end attribute are both greater than or equal to 1, and the method further includes:

[0014] In response to receiving the constraint attribute update request, adding the constraint attribute of the set order rule, or deleting the constraint attribute of the set order rule, or modifying the constraint attribute of the set order rule;

[0015] And / or in response to receiving an end attribute update request, adding the end attribute of the set rule, or deleting the end attribute of the set rule, or modifying the end attribute of the set rule.

[0016] Optionally, the method further comprises:

[0017] In response to receiving a request to update the set order rule details, modify the set order rule details or delete the set order rule details.

[0018] According to a second aspect of an embodiment of the present invention, a method for collecting documents is provided, comprising:

[0019] In response to receiving a target document, determining a document type of the target document;

[0020] Determine the document collection rule details of the target document according to the document type, and judge whether the target document matches the document collection rule details, wherein the document collection rule details are generated by using any method described in the first aspect of the embodiment of the present invention;

[0021] When the target document matches the document set rule details, the target document is added to the corresponding document set.

[0022] Optionally, there are multiple order collection rule details; judging whether the target document matches the order collection rule details includes:

[0023] According to the arrangement order of the collection order rule details, the constraint conditions of each collection order rule detail are compared with the document attribute value included in the target document in turn. When the document attribute value meets the constraint conditions, it is determined that the target document matches the corresponding collection order rule details.

[0024] Optionally, the method further comprises:

[0025] Determine whether the document set meets the end condition of the document set rule details; if the document set meets the end condition of the document set rule details, treat the document set as a document set batch, and update the batch information corresponding to the document set batch;

[0026] And / or in response to receiving a request to cancel a collection of documents, determining a corresponding document to be canceled; when the document status of the document to be canceled meets a preset condition for canceling a collection of documents, determining a document set including the document to be canceled, and removing the document to be canceled from the document set including the document to be canceled.

[0027] Optionally, judging whether the document set meets the end condition of the document set rule details includes:

[0028] Use a preset timed task loop to determine whether the document set meets the end condition of the document set rule details;

[0029] Alternatively, when the number of documents included in the document set changes, it is determined whether the document set meets the end condition of the document set rule details.

[0030] According to a third aspect of an embodiment of the present invention, there is provided a device for configuring a set of rules, including:

[0031] A determination module, configured to determine a corresponding document type in response to receiving a detailed attribute of a collection document rule;

[0032] A search module, used to search for a collection rule corresponding to the document type and determine a collection rule attribute of the collection rule;

[0033] A generation module is used to match the set order rule detail attributes with the set order rule attributes to generate the set order rule details corresponding to the set order rule.

[0034] Optionally, the device further comprises:

[0035] A collection order rule generation module is used to determine the corresponding document type in response to receiving the collection order rule attribute before searching for the collection order rule corresponding to the document type, and generate the collection order rule corresponding to the document type;

[0036] And / or a first update module, which is used to add a document type used for the configuration of the collection rule, delete a document type used for the configuration of the collection rule, or modify a document type used for the configuration of the collection rule in response to receiving a document type update request before determining the corresponding document type.

[0037] Optionally, the set order rule attributes include: a constraint attribute and an end attribute, the number of the constraint attribute and the end attribute are both greater than or equal to 1, and the device further includes:

[0038] A second updating module, configured to, in response to receiving a constraint attribute update request, add a constraint attribute of the set order rule, or delete a constraint attribute of the set order rule, or modify a constraint attribute of the set order rule;

[0039] And / or a third updating module, used to add the end attribute of the set rule, or delete the end attribute of the set rule, or modify the end attribute of the set rule in response to receiving an end attribute update request.

[0040] Optionally, the device further comprises:

[0041] The fourth updating module is used to modify the collection order rule details or delete the collection order rule details in response to receiving a collection order rule detail update request.

[0042] According to a fourth aspect of an embodiment of the present invention, there is provided a device for collecting documents, comprising:

[0043] a determination module, configured to determine the document type of the target document in response to receiving the target document;

[0044] a determination module, configured to determine the document collection rule details of the target document according to the document type, and to judge whether the target document matches the document collection rule details, wherein the document collection rule details are generated by using any method described in the first aspect of the embodiment of the present invention;

[0045] The collection module is used to add the target document to the corresponding document set when the target document matches the details of the collection rule.

[0046] Optionally, there are multiple order collection rule details; judging whether the target document matches the order collection rule details includes:

[0047] According to the arrangement order of the collection order rule details, the constraint conditions of each collection order rule detail are compared with the document attribute value included in the target document in turn. When the document attribute value meets the constraint conditions, it is determined that the target document matches the corresponding collection order rule details.

[0048] Optionally, the device further comprises:

[0049] A batch update module, used to determine whether the document set meets the end condition of the document set rule details; if the document set meets the end condition of the document set rule details, the document set is regarded as a document set batch, and the batch information corresponding to the document set batch is updated;

[0050] And / or a cancellation collection module, which is used to determine the corresponding document to be canceled in response to receiving a cancellation collection request; when the document status of the document to be canceled meets the preset cancellation collection conditions, determine the document set including the document to be canceled, and remove the document to be canceled from the document set including the document to be canceled.

[0051] Optionally, judging whether the document set meets the end condition of the document set rule details includes:

[0052] Use a preset timed task loop to determine whether the document set meets the end condition of the document set rule details;

[0053] Alternatively, when the number of documents included in the document set changes, it is determined whether the document set meets the end condition of the document set rule details.

[0054] According to a fifth aspect of an embodiment of the present invention, there is provided an electronic device, including:

[0055] one or more processors;

[0056] a storage device for storing one or more programs,

[0057] When the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any one of the above embodiments.

[0058] According to a sixth aspect of an embodiment of the present invention, there is provided a computer-readable medium on which a computer program is stored, and when the program is executed by a processor, the method described in any one of the above embodiments is implemented.

[0059] An embodiment of the above invention has the following advantages or beneficial effects: dynamically configuring the rules for collecting documents based on document type, collection rules and collection rule details, providing a unified way to configure collection rules, improving the reusability of collection rule configuration, reducing the development cost and maintenance cost of collection rule configuration, and facilitating the expansion of collection rules; updating document type, collection rules and collection rule details can more flexibly configure the rules for collecting documents, meet different document collection needs, and optimize user experience; updating constraint attributes and end attributes can decouple constraint conditions and end conditions, clarify the scope of constraint conditions and end conditions, and further improve the flexibility of collection rule configuration; using collection rule details to collect documents can improve the efficiency and accuracy of document collection; removing the corresponding document from the document collection according to the cancellation request can avoid collecting unnecessary documents and further improve the accuracy of document collection; providing multiple mechanisms to determine whether the document collection meets the technical conditions, and more flexibly determine the collection batch and update the batch information.

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

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

[0062] Figure 1 It is a schematic diagram of the main process of the method for configuring a set of single rules according to an embodiment of the present invention;

[0063] Figure 2 is a schematic diagram of the main process of the method for document collection according to an embodiment of the present invention;

[0064] Figure 3 It is a schematic diagram of the overall process of document collection rule configuration and document collection according to a reference embodiment of the present invention;

[0065] Figure 4 is a timing diagram of a method for collecting receipts according to a reference embodiment of the present invention;

[0066] Figure 5 It is a schematic diagram of a process of canceling a collection order according to a method for configuring collection order rules in a reference embodiment of the present invention;

[0067] Figure 6 is a timing diagram of a method for canceling a collection order according to a reference embodiment of the present invention;

[0068] Figure 7 It is a schematic diagram of a system architecture for configuring document collection rules and document collection according to a reference embodiment of the present invention;

[0069] Figure 8 is a schematic diagram of main modules of a device for configuring a set of single rules according to an embodiment of the present invention;

[0070] Fig. 9 is a schematic diagram of main modules of a device for document collection according to an embodiment of the present invention;

[0071] Fig.10 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;

[0072] Fig.11 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0073] 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.

[0074] It should be noted that in the technical solution of the present invention, the collection, use, storage, sharing and transfer of user personal information involved are in compliance with the provisions of relevant laws and regulations, and it is necessary to inform the user and obtain the user's consent or authorization. When applicable, the user's personal information is de-identified and / or anonymized and / or encrypted.

[0075] Before transporting or storing goods, in order to reduce costs and improve efficiency, documents are usually collected together according to the collection rules for unified transportation or storage of goods. For example, documents with the same delivery address are collected together, and then the goods corresponding to these documents are transported in a unified manner. As the business continues to develop, there are more and more collection rules. Usually, different types of collection rules have separate configuration pages and configuration processes. When configuring a new type of collection rule, new configuration pages and configuration processes need to be developed.

[0076] Different collection rules are configured separately, resulting in low reusability of the collection rule configuration method, high development and maintenance costs, and low document collection efficiency.

[0077] In view of this, according to a first aspect of an embodiment of the present invention, a method for configuring a set of single rules is provided.

[0078] Figure 1 FIG. 1 is a schematic diagram of the main process of the method for configuring a set of rules according to an embodiment of the present invention. Figure 1 As shown, the method for configuring set single rules according to an embodiment of the present invention mainly includes the following steps S101 to S103.

[0079] Step S101, in response to receiving the detailed attributes of the collection rule, determine the corresponding document type.

[0080] The detailed attributes of the collection rule are specific document data used to generate the details of the collection rule. The detailed attributes of the collection rule can be one or more. For example, the detailed attributes of the collection rule include: A1 type document, A2 city warehouse 1, A3 city warehouse 2, etc., where A1 type document is the document type, A2 city warehouse 1 is the origin warehouse of the goods corresponding to the document, and A3 city warehouse 2 is the destination warehouse of the goods corresponding to the document. The detailed attributes of the collection rule include document types. Each document has a corresponding document type. Document types include: personal documents, corporate documents, logistics documents, e-commerce documents, self-operated documents, third-party documents, etc.

[0081] The execution subject of the embodiment of the present invention generates corresponding collection rule details according to the document type. Therefore, after receiving the collection rule detail attributes, the document type is searched from the collection rule detail attributes, or the collection rule detail attributes are carried by the collection rule detail generation request. The execution subject of the embodiment of the present invention parses the received collection rule configuration request to determine the collection rule detail attributes and the corresponding document type.

[0082] Exemplarily, the received detailed attributes of the document collection rule include "{'count':'50'; 'weight':'100'; 'type':'toB'}", wherein "'count':'50'" indicates that the quantity of goods corresponding to the document is 50 pieces, "'weight':'100'" indicates that the total weight of the goods corresponding to the document is 100 kilograms, and "'type':'toB'" indicates that the document type corresponding to the document is an enterprise document; the above detailed attributes of the document collection rule are encoded, and the attribute value with the attribute name "type" is searched, and the attribute value with the attribute name "type" is used as the document type, thereby determining that the document type corresponding to the detailed attributes of the document collection rule is an enterprise document.

[0083] Determining the corresponding document type based on the detailed attributes of the document collection rule is a document collection rule configuration process applicable to all documents. It is also convenient to distinguish different detailed attributes of the document collection rule based on the document type, and then generate the document collection rule details belonging to different document types.

[0084] Step S102, searching for the document collection rule corresponding to the document type, and determining the document collection rule attribute of the document collection rule.

[0085] Each document type corresponds to a collection rule. The collection rule represents a set of rules for collecting documents. The collection rule includes one or more collection rule attributes, and each collection rule attribute represents a rule for collecting documents. Exemplarily, the collection rule for the document type "personal document" is shown in Table 1. The collection rule includes five collection rule attributes, that is, each row represents a collection rule attribute. These five collection rule attributes respectively specify how to collect documents of the document type "personal document" from the aspects of merchants, originating warehouses, users, cargo volume, cargo weight, etc.; specifically, the collection rule attributes include: document type, rule, field code, rule type and other attributes, among which the field code represents the attribute code of the collection rule attribute, the rule type represents the function of the collection rule attribute, the collection rule attribute belonging to the "constraint attribute" is used to constrain which documents can be collected together, and the collection rule attribute belonging to the "end belonging to" is used to determine under what circumstances to stop collecting documents. Taking Table 1 as an example, when the document type is "personal document", documents with the same merchant code, originating warehouse and user code are collected together and put into the same set. When the total volume of goods corresponding to the documents in the set is equal to the upper limit of the volume of goods or the total weight, etc., no more documents will be added to the set.

[0086] Table 1

[0087] Serial number Document Type rule Field encoding Rule Type 1 Personal documents Same merchant ownerNo Constraint Properties 2 Personal documents Same origin warehouse wareHouseNo Constraint Properties 3 Personal documents Same user userNo Constraint Properties 4 Personal documents Maximum cargo volume volume End Attributes 5 Personal documents Maximum cargo weight weight End Attributes

[0088] After determining the document type, search for the collection rule corresponding to the document type. For example, use the document type as the search condition to search for the collection rule associated with the document type from the database, or use the document type as the key to search for the collection rule associated with the document type from the cache. When the collection rule is found, traverse the collection rule to determine the collection rule attributes included in the collection rule.

[0089] Exemplarily, the association between document type and order collection rule includes "{'logistics document':'order collection rule B1'; 'self-operated document':'order collection rule B2'; 'third-party document':'order collection rule B3'}". When the document type is determined to be "logistics document", the above association is queried to determine that the corresponding order collection rule is order collection rule C1. After traversing order collection rule C1, the attributes of the order collection rule include: the same originating warehouse, the same target warehouse, the same originating distribution center, the same target distribution center, the latest receipt time of the document, etc.

[0090] According to the document type, the document collection rule and its included document collection rule attributes are determined. Different document collection rules and document collection rule attributes can be configured for documents of different document types, thereby improving the flexibility of document collection rule configuration.

[0091] Step S103, matching the set order rule detail attributes with the set order rule attributes to generate the set order rule details corresponding to the set order rule.

[0092] After determining the collection order rule attributes, match each attribute included in the collection order rule detail attributes with each attribute included in the collection order rule attributes, and generate the collection order rule details corresponding to the collection order rule according to the matched collection order rule detail attributes. The collection order rule details are a collection of collection order rule detail attributes, so the collection order rule details include specific document data for collecting documents, and each collection order rule detail is a specific collection order rule.

[0093] For example, the order collection rule details include "{'ownerNo':'123'; 'wareHouseNo':'456'; 'userNo':'789'; 'volume':'10'; 'weight':'100'}", and the order collection rule attributes include "{'ownerNo':'same merchant'; 'wareHouseNo':'same originating warehouse'; 'userNo':'same user'; 'cargo volume limit':'10'; 'cargo Weight limit':'100'}"; According to the field code, the collection rule detail attributes and the collection rule attributes are matched to generate the corresponding collection rule details as shown in Table 2. The collection rule details indicate that "the documents with the document type of personal document, merchant code of "123", origin warehouse code of "456", and user code of "789" are collected. When the total volume of the goods corresponding to the collected documents is greater than or equal to 10 square meters or the total weight is greater than or equal to 100 kilograms, the documents that meet the above conditions will no longer be collected". It should be noted that each document type corresponds to an collection rule, and each collection order corresponds to one or more collection rule details, that is, the collection rule details including other merchant codes, origin warehouse codes and / or user codes, different volume limits and weight limits can be generated in Table 2.

[0094] Table 2

[0095]

[0096] Based on the matching results of the collection rule detail attributes and the collection rule attributes, the collection rule details are generated and applicable to all document types, avoiding the need to develop configuration pages and configuration processes separately for each document type, reducing development and maintenance costs. The collection rule configuration processes for different document types are the same, which can improve the efficiency of collection rule configuration and reduce the probability of configuration errors or omissions.

[0097] According to a reference embodiment of the present invention, the method further includes: before searching for the collection order rule corresponding to the document type, in response to receiving the collection order rule attribute, determining the corresponding document type, for example, after receiving the collection order rule attribute, traversing the collection order rule attribute, searching for the document type from the collection order rule attribute, or the collection order rule detail attribute is carried by the collection order rule generation request, and the execution subject of the embodiment of the present invention parses the received collection order rule generation request to determine the collection order rule attribute and the corresponding document type. After determining the document type, generate the collection order rule corresponding to the document type.

[0098] Exemplarily, the received collection rule attributes include "{'D1':'Enterprise document, same enterprise, coNo, limit'; 'D2':'Enterprise document, same destination city, cityNo, limit'; 'D3':'Enterprise document, upper limit of goods quantity, count, end'}", wherein "'D1':'Enterprise document, same enterprise, coNo, limit'" indicates that the collection rule attribute D1 includes "document type is enterprise document, rule is the same enterprise code, field code is coNo, rule type is constraint attribute", and the other collection rule attributes are similar. The above collection rule attributes are traversed to determine that the document type corresponding to the collection rule attributes is "enterprise document", and the collection rules corresponding to the enterprise documents are generated according to the above collection rule attributes as shown in Table 3. Specifically, the collection rule includes three collection rule attributes, and these three collection rule attributes respectively specify how to collect documents with the document type of "enterprise document" from aspects such as enterprise, destination city, and quantity of goods.

[0099] Table 3

[0100] Serial number Document Type rule Field encoding Rule Type 1 Corporate documents Same company No Constraint Properties 2 Corporate documents Same destination city cityNo Constraint Properties 3 Corporate documents Maximum quantity of goods count End Attributes

[0101] Determine the document type according to the attributes of the collection rule, and generate the collection rule corresponding to the document type. Different collection rules can be generated for different document types, and collection rules can be generated more flexibly, which improves the reusability of collection rule configuration and avoids developing configuration pages and configuration processes separately for each document type, thereby reducing development and maintenance costs.

[0102] According to a reference embodiment of the present invention, the method further includes: before determining the corresponding document type, in response to receiving a document type update request, parsing the received document type update request to determine the target document type and the corresponding update operation. In the case where the update operation is to add a document type, the target document type is added to the pre-set document type set, and then the corresponding collection rule and collection rule details are generated according to the target document type; in the case where the update operation is to delete the document type, the target document type is deleted from the document type set. Specifically, in the case where the target document type is associated with the collection rule and the collection rule details, the corresponding collection rule and the collection rule details are also deleted; in the case where the update operation is to modify the document type, the document type name, document type code or document type status of the target document type is modified.

[0103] Exemplarily, the document type list is shown in Table 4, and each document type has a corresponding document type name, document type code, and document type status. The received document type update request is parsed. If "{'typeCode':'person'; 'typeName':'personal document'; 'operate':'delete'}" is obtained, it is determined that the document type is "personal document" and the update operation is "delete", then the document type corresponding to "personal document" in Table 4 is deleted; if "{'typeCode':'inner'; 'typeName':'internal document'; 'operate':'add'}" is obtained, it is determined that the document type is "internal document" and the update operation is "add", then the document type corresponding to "internal document" is added in Table 4, and the document type code of "internal document" is "inner", and the document type status of "internal document" is "in use".

[0104] Table 4

[0105] Serial number Document type code Document Type Name Document Type Status 1 person Personal documents In use 2 enterprice Corporate documents In use 3 self Self-operated documents In use 4 third Third-party documents Deactivate 5 eBusiness E-commerce documents In use 6 transport Logistics documents In use

[0106] Add, delete or modify document types according to document type update requests, which enables more flexible configuration of document types, improves the reusability of document set rule configuration, avoids developing configuration pages and configuration processes separately for each document type, and reduces development and maintenance costs.

[0107] According to another reference embodiment of the present invention, the attributes of the collection rule include: constraint attributes and end attributes, the number of constraint attributes and end attributes are both greater than or equal to 1, the constraint attributes are used to constrain which documents can be collected together, and the end attributes are used to determine under what circumstances the documents are no longer collected. The method also includes: in response to receiving a constraint attribute update request, adding the constraint attributes of the collection rule, or deleting the constraint attributes of the collection rule, or modifying the constraint attributes of the collection rule. Specifically, the received constraint attribute update request is parsed to determine the target constraint attribute and the corresponding update operation. When the update operation is to add the constraint attribute, the target constraint attribute is added to the corresponding collection rule; when the update operation is to delete the constraint attribute, the target constraint attribute is deleted from the corresponding collection rule; when the update operation is to modify the constraint attribute, the rule, field encoding, etc. of the target constraint attribute are modified.

[0108] The method also includes: in response to receiving an end attribute update request, adding an end attribute of a set rule, or deleting an end attribute of a set rule, or modifying an end attribute of a set rule. Specifically, the received end attribute update request is parsed to determine the target end attribute and the corresponding update operation. When the update operation is to add an end attribute, the target end attribute is added to the corresponding set rule; when the update operation is to delete the end attribute, the target end attribute is deleted from the corresponding set rule; when the update operation is to modify the end attribute, the rule, field encoding, etc. of the target end attribute are modified.

[0109] Exemplarily, the rule for determining the target constraint attribute is "same destination warehouse", the document type of the target constraint attribute is "personal document", the field code of the constraint attribute is "wareHouse2No", and the above target constraint attribute is added to the collection rule of "personal document" corresponding to Table 1.

[0110] By adding, deleting or modifying constraint attributes and / or end attributes according to update requests of constraint attributes and / or end attributes, it is possible to configure the document collection rules more flexibly, improve the reusability of the document collection rule configuration, avoid developing configuration pages and configuration processes separately for each document type, and reduce development and maintenance costs.

[0111] According to another reference embodiment of the present invention, the method further includes: in response to receiving a request to update the set order rule details, modifying the set order rule details or deleting the set order rule details. The set order rule details update request is parsed to obtain the target set order rule details and the corresponding update operation. When the update operation is to modify the set order rule details, the target set order rule details are used to replace the corresponding set order rule details. When the update operation is to delete the set order rule details, the corresponding set order rule details are deleted.

[0112] Exemplarily, the target order collection rule details are determined to include "{'type':'update'; 'Same merchant':'123'; 'Same origin warehouse':'456'; 'Same user':'789'; 'Upper limit of cargo volume':'10'; 'Upper limit of cargo weight':'50'}", wherein "'type':'update'" indicates that the update operation is "Modify order collection rule details", then according to the above target order collection rule details, the upper limit of cargo weight in Table 2 is modified to 50.

[0113] According to the update request of the collection rule details, the collection rule details can be deleted or modified, which can configure the collection rule details more flexibly, improve the reusability of the collection rule configuration, avoid developing configuration pages and configuration processes separately for each document type, and reduce development and maintenance costs.

[0114] According to a second aspect of an embodiment of the present invention, a method for collecting documents is provided.

[0115] Figure 2 FIG. 1 is a schematic diagram of the main process of the method for collecting receipts according to an embodiment of the present invention. Figure 2 As shown, the method for collecting documents according to an embodiment of the present invention mainly includes the following steps S201 to S203.

[0116] Step S201: in response to receiving a target document, determining the document type of the target document.

[0117] The target document is a document used to transport goods or store goods. The target document includes multiple document attribute values, such as: document code, document type, cargo name, cargo quantity, cargo weight, cargo volume, shipping address, receiving address, etc. After receiving the target document, the target document is parsed, and the document attribute values ​​included in the target document are traversed to determine the document type of the target document. Exemplarily, the document attribute values ​​of the received target document include "{'orderType':'self'; 'from':'wareHouseE1'; 'to':'streetE2'; 'itemName':'drinkingWater'}", wherein the document type of the target document is "self-operated document", the shipping address is "warehouse E1", the receiving address is "street E2", and the cargo name is "drinking water". By traversing the above document attribute values, the document type of the target document can be determined. Determine the document type of the target document to provide a data basis for subsequent acquisition of document collection rule details, facilitating accurate and efficient document collection.

[0118] Step S202, determining the collection rule details of the target document according to the document type, and judging whether the target document matches the collection rule details, wherein the collection rule details are generated by any method described in the first aspect of the embodiment of the present invention.

[0119] After determining the document type, determine the corresponding collection rule according to the document type, and one document type corresponds to one collection rule. After determining the collection rule, find the collection rule details used to judge the target document. One collection rule includes one or more collection rule details. For example, each collection rule detail has a corresponding collection rule detail code. The target document includes a target collection rule detail code. Find the collection rule details with the same collection rule detail code as the target collection rule detail code, and use the collection rule details as the collection rule details used to judge the target document to judge whether the target document meets the constraint attributes included in the target collection rule details; for another example, each collection rule detail has a corresponding status (for example, effective, invalid, suspended, etc.), select the collection rule details with the status of "effective", and then match each collection rule detail in the "effective" status with the target document in turn to judge whether the target document meets the constraint attributes included in the collection rule details.

[0120] Exemplarily, the document attribute values ​​of the target document include "{'owner':'123';'wareHouse':'456';'user':'789';'volume':'5';'weight':'30'}", and the set document rule details used to match the target document are shown in Table 2. Since the target document meets the constraints included in the set document rule details, it is determined that the target document matches the set document rule details.

[0121] The collection rule details can be quickly determined based on the document type, and the target document can be quickly and accurately matched with the collection rule details, making it easier to determine whether to collect the target document.

[0122] According to a reference embodiment of the present invention, there are multiple set order rule details, and the set order rule details include one or more constraints, that is, the constraint attributes included in the set order rule details. When judging whether the target document matches the set order rule details, according to the arrangement order of the set order rule details (for example, sorting according to the generation time of the set order rule details, sorting according to the number of constraints of the set order rule details from small to large, etc.), the constraints of each set order rule detail are compared with the document attribute values ​​included in the target document in turn. When the document attribute values ​​of the target document all meet the corresponding constraints, it is determined that the target document matches the corresponding set order rule details.

[0123] For example, the document attribute values ​​of the target document include "{'owner':'123'; 'wareHouse':'456'; 'weight':'30'}", where the first two document attribute values ​​are constraint attributes, i.e., the merchant code of the target document is "123", the originating warehouse code of the target document is "456", and the latter document attribute value is the end attribute; the collection rule detail F1 is "{'owner':'123'; 'wareHouse':'654'; 'weight':'40'}", and the collection rule detail F2 is "{ 'owner':'321';'wareHouse':'456';'weight':'50'}", the order collection rule detail F3 is "{'owner':'123';'wareHouse':'456';'weight':'60'}"; compare the target document with the order collection rule detail F1, the originating warehouse code is different, and it is determined to be mismatched. Compare the target document with the order collection rule detail F2, the merchant code is different, and it is determined to be mismatched. Compare the target document with the order collection rule detail F3, the constraints are the same, so it is determined to be a match.

[0124] Matching multiple document collection rule details with the target document can quickly and accurately determine the document collection rule details that match the target document, improve the efficiency of document collection rule detail matching, and meet different matching requirements.

[0125] Step S203, when the target document matches the document collection rule details, the target document is added to the corresponding document collection.

[0126] Each document collection rule detail corresponds to a document set. The document set is a set for collecting documents. The documents in the same document set are all documents that match the corresponding document collection rule details. Each document set has a corresponding set code. When the target document and the document rule details match, determine the document set corresponding to the document rule details that match the target document, and add the target document to the document set. Exemplarily, the document collection rule detail G1 corresponds to the document set H1, the document collection rule detail G2 corresponds to the document set H2, and the document collection rule detail G3 corresponds to the document set H3. When the target document matches the document rule detail G1, that is, when the target document meets all the constraint attributes included in the document rule detail G1, the target document is added to the document set H1 corresponding to the document collection rule detail G1, and the documents in the document set H1 meet all the constraint attributes included in the document rule detail G1.

[0127] The use of document collection can distinguish documents that match the details of different collection rules, so that documents can be collected and concentrated quickly and accurately, improving the efficiency and accuracy of document collection.

[0128] According to a reference embodiment of the present invention, the method further includes: determining whether the document set meets the end condition of the document set rule details, the end condition is the end attribute included in the document set rule details, each document set rule detail has one or more end conditions, wherein the logical relationship of multiple end conditions can be "and" or "or". For example, the end condition is that the quantity of goods is equal to the upper limit of the quantity of goods, the weight of goods is equal to the upper limit of the weight of goods, the volume of goods is equal to the upper limit of the volume of goods, the current time is equal to the deadline for the document set, the generation time of the document is less than or equal to the preset generation time, and so on. In the case that the document set meets the end condition of the document set rule details, no more documents will be added to the document set, and the document set will be used as a document set batch, which is used for batch transportation or batch storage of goods, and so on, and the batch information corresponding to the document set batch is updated. Specifically, the batch information includes: batch generation time, batch number, total quantity of goods, total weight of goods, total volume of goods, and so on.

[0129] Exemplarily, when the weight of goods corresponding to the documents in document set J1 is greater than or equal to 50 kilograms, or the quantity of goods is greater than or equal to 100 pieces, or the volume of goods is greater than or equal to 10 cubic meters, a collection batch corresponding to document set J1 is generated; when the current time is greater than or equal to 23:00 on Monday, a collection batch corresponding to document set J2 is generated.

[0130] Generate document batches corresponding to the document set based on the end conditions, and be able to accurately and flexibly generate document batches according to needs to meet different document collection needs.

[0131] According to a reference embodiment of the present invention, the method further includes: in response to receiving a request to cancel a collection of documents, parsing the request to cancel a collection of documents, determining information such as the document code of the document to be canceled, and then determining the corresponding document to be canceled; judging whether the document status of the document to be canceled meets the conditions for canceling the collection, and the document status includes: successful collection, waiting for collection, collection in progress, etc., wherein successful collection means that the document has been packaged into a collection batch, for example, when the document status is "waiting for collection" or "collection in progress", it is determined that the document status meets the conditions for canceling the collection of documents. When the document status of the document to be canceled meets the conditions for canceling the collection of documents, determine the document set that includes the document to be canceled, and remove the document to be canceled from the document set that includes the document to be canceled.

[0132] Exemplarily, the request to cancel a collection of documents is parsed, and it is determined that the document code of the document to be canceled is "bill357", and it is determined that the status of the document to be canceled with the document code "bill357" is "in the process of being collected". Then, the document to be canceled meets the conditions for canceling the collection of documents. According to the document type, collection rules, and collection rule details, the corresponding document set is determined, and the document to be canceled with the document code "bill357" is removed from the document set.

[0133] Removing the documents to be canceled from the document collection according to the cancellation collection request can avoid collecting unnecessary documents and further improve the accuracy of document collection.

[0134] According to another reference embodiment of the present invention, when judging whether a document set meets the end condition of the set rule details, a pre-set timed task loop is used to judge whether the document set meets the end condition of the set rule details. When the document set meets the end condition of the set rule details, the loop is stopped to generate a set batch corresponding to the document set. Exemplarily, a timed task is set using the Quartz timing framework to asynchronously judge whether the document set meets the end condition of the set rule details.

[0135] Alternatively, when judging whether a document set meets the end condition of the document set rule details, judge whether the document set meets the end condition of the document set rule details when the number of documents included in the document set changes. For example, after a new document is added to the document set, judge whether the data such as the weight of goods, the quantity of goods, the volume of goods, the current time, etc. corresponding to the document set meet the end condition. If the end condition is met, stop judging and generate the document set batch corresponding to the document set. If the end condition is not met, continue to wait for new documents to be added to the document set. Exemplarily, the weight of goods corresponding to the document set is 8 kilograms, and the end condition of the document set rule details is that the weight of goods is greater than or equal to 10 kilograms. After the new document is added to the document set, the weight of goods corresponding to the new document is 3 kilograms, so that the weight of goods corresponding to the document set is 11 kilograms, which meets the end condition of the document set rule details. Therefore, stop judging and generate the document set batch corresponding to the document set.

[0136] By using scheduled tasks or when the document set changes, judging whether the document set meets the end conditions can avoid occupying too many resources and improve the efficiency of document set batch generation.

[0137] Figure 3 FIG. 1 is a schematic diagram of the overall process of configuring document collection rules and document collection according to a reference embodiment of the present invention. Figure 3As shown, in the order collection rule detail process, first configure the document type according to the document request, then configure the order collection rule corresponding to the document type according to the order collection rule configuration request, and then configure the order collection rule details included in the order collection rule according to the order collection rule detail configuration request, and store the configured document type, order collection rule and order collection rule details. In the document collection process, the target document is received, and the collection rule details of the target document are determined according to the document type of the target document. It is judged whether the target document complies with the collection rule details. If the target document does not comply with the collection rule details, the target document and other collection rule details are continued to be matched. If the target document complies with the collection rule details, the document set corresponding to the collection rule details is determined. If the document set corresponding to the collection rule details is not found, the corresponding document set is generated; the target document is added to the corresponding document set, and it is judged whether the document set complies with the end condition. If the document set does not comply with the end condition, other target documents are continued to be received. If the document set complies with the end condition, a corresponding collection batch is generated, the corresponding batch information is updated, and the next round of document collection process of the collection rule details is executed. For example, in the current document collection process, the collection rule details are used to collect documents from 6:00 to 23:00 on Monday, and in the next round of document collection process, the collection rule details are used to collect documents from 6:00 to 23:00 on Tuesday.

[0138] Figure 4 FIG. 1 is a timing diagram of a method for collecting receipts according to a reference embodiment of the present invention. Figure 4 As shown, the document collection method is completed by the collaboration of multiple modules such as the document receiving module, the document collection module, the document collection rule query module, the document collection rule detail query module and the end condition judgment module. Specifically, the document receiving module receives the target document and then transmits the target document to the document collection module; the document collection module sends a request to the document collection rule query module to query the document collection rule corresponding to the target document, the document collection module sends a request to the document collection rule detail query module to query the document collection rule details corresponding to the target document, the document collection rule query module determines the target document collection rule details that match the target document, and adds the target document to the document set corresponding to the target document collection rule details, and then the document collection module sends a request to the end condition judgment module to determine whether the document set meets the end condition. If the document set meets the end condition, the document collection module determines the document collection batch corresponding to the document set and updates the batch information corresponding to the document collection batch.

[0139] Figure 5 FIG. 1 is a schematic diagram of a process of canceling a set of orders according to a method for configuring set of order rules in a reference embodiment of the present invention. Figure 5As shown, firstly, a request for cancelling order collection is received, and the request for cancelling order collection is parsed to determine the corresponding document to be canceled and the corresponding document status, and to judge whether the document status meets the conditions for cancelling order collection. If the document status does not meet the conditions for cancelling order collection, the process of cancelling order collection is terminated; if the document status meets the conditions for cancelling order collection, the document type, order collection rules, and order collection rule details of the document to be canceled are determined, and then the document set for storing the document to be canceled is determined according to the order collection rule details, and the document to be canceled is removed from the document set.

[0140] Figure 6 FIG. 1 is a timing diagram of a method for canceling a collection order according to a reference embodiment of the present invention. Figure 6 As shown, the method for canceling the collection of orders is completed by the cooperation of multiple modules such as the request receiving module, the document collection module, the collection order rule query module, the collection order rule detail query module and the cancellation document collection module. Specifically, the request receiving module receives the cancellation collection order request, and then transmits the request parameters carried by the cancellation collection order request to the document collection module; the document collection module sends a request to the collection order rule query module to query the collection order rule corresponding to the target document, the document collection module sends a request to the collection order rule detail query module to query the collection order rule details corresponding to the target document, the collection order rule query module determines that the document to be canceled meets the conditions for canceling the collection of orders, determines the document set corresponding to the collection order rule details, and then the document collection module sends a request to the cancellation document collection module to remove the document to be canceled from the document set, and then the document collection module updates the document information included in the document set.

[0141] Figure 7 FIG. 1 is a schematic diagram of a system architecture for configuring document collection rules and document collection according to a reference embodiment of the present invention. Figure 7 As shown, the system architecture includes: document collection configuration service, document collection service, data storage service and operation and maintenance service, etc., among which, the document collection configuration service is used to configure document types, collection rules, collection rule details, etc.; the document collection service is used to generate document collections, match target documents, collect target documents, determine whether the end conditions are met, provide different judgment mechanisms, query document status, cancel document collection, etc.; the data storage service is used to store the configured document types, collection rules and collection rule details, as well as the target documents, document status, document collections, batch information and other data generated during the document collection service. The data storage service provides data support for the document collection service to meet various data query requirements; the operation and maintenance service is used to generate collection reports, debug operation and maintenance tools, output monitoring logs, manage service permissions, etc., to ensure the normal operation of the document collection configuration service, document collection service and data storage service.

[0142] According to a third aspect of an embodiment of the present invention, a device for configuring a set of rules is provided.

[0143] Figure 8 is a schematic diagram of the main modules of the device for configuring a set of single rules according to an embodiment of the present invention, such as Figure 8 As shown, the device 800 for configuring the set of rules mainly includes:

[0144] Determination module 801, for determining a corresponding document type in response to receiving a detailed attribute of a collection document rule;

[0145] A search module 802 is used to search for a collection rule corresponding to the document type and determine a collection rule attribute of the collection rule;

[0146] The generation module 803 is used to match the set order rule detail attributes with the set order rule attributes to generate the set order rule details corresponding to the set order rule.

[0147] According to a reference embodiment of the present invention, the device 800 for configuring a set of rules further includes:

[0148] A collection order rule generation module is used to determine the corresponding document type in response to receiving the collection order rule attribute before searching for the collection order rule corresponding to the document type, and generate the collection order rule corresponding to the document type;

[0149] And / or a first update module, which is used to add a document type used for the configuration of the collection rule, delete a document type used for the configuration of the collection rule, or modify a document type used for the configuration of the collection rule in response to receiving a document type update request before determining the corresponding document type.

[0150] According to another reference embodiment of the present invention, the set order rule attributes include: a constraint attribute and an end attribute, the number of the constraint attribute and the end attribute are both greater than or equal to 1, and the set order rule configuration device 800 also includes:

[0151] A second updating module, configured to, in response to receiving a constraint attribute update request, add a constraint attribute of the set order rule, or delete a constraint attribute of the set order rule, or modify a constraint attribute of the set order rule;

[0152] And / or a third updating module, used to add the end attribute of the set rule, or delete the end attribute of the set rule, or modify the end attribute of the set rule in response to receiving an end attribute update request.

[0153] According to another reference embodiment of the present invention, the device 800 for configuring a set of rules further includes:

[0154] The fourth updating module is used to modify the collection order rule details or delete the collection order rule details in response to receiving a collection order rule detail update request.

[0155] It should be noted that the specific implementation content of the device for configuring the set of rules in the embodiment of the present invention has been described in detail in the method for configuring the set of rules described above, so the repeated content will not be described here.

[0156] According to a fourth aspect of an embodiment of the present invention, a device for collecting documents is provided.

[0157] Fig. 9 is a schematic diagram of the main modules of the device for document collection according to an embodiment of the present invention, such as Fig. 9 As shown, the document collection device 900 mainly includes:

[0158] A determination module 901, configured to determine the document type of the target document in response to receiving the target document;

[0159] A determination module 902 is used to determine the collection rule details of the target document according to the document type, and judge whether the target document matches the collection rule details, wherein the collection rule details are generated by using any method described in the first aspect of the embodiment of the present invention;

[0160] The collection module 903 is used to add the target document to the corresponding document set when the target document matches the details of the collection rule.

[0161] According to a reference embodiment of the present invention, there are multiple order collection rule details; judging whether the target document matches the order collection rule details includes:

[0162] According to the arrangement order of the collection order rule details, the constraint conditions of each collection order rule detail are compared with the document attribute value included in the target document in turn. When the document attribute value meets the constraint conditions, it is determined that the target document matches the corresponding collection order rule details.

[0163] According to another reference embodiment of the present invention, the document collection device 900 further includes:

[0164] A batch update module, used to determine whether the document set meets the end condition of the document set rule details; if the document set meets the end condition of the document set rule details, the document set is regarded as a document set batch, and the batch information corresponding to the document set batch is updated;

[0165] And / or a cancellation collection module, which is used to determine the corresponding document to be canceled in response to receiving a cancellation collection request; when the document status of the document to be canceled meets the preset cancellation collection conditions, determine the document set including the document to be canceled, and remove the document to be canceled from the document set including the document to be canceled.

[0166] According to another reference embodiment of the present invention, judging whether the document set meets the end condition of the document set rule details includes:

[0167] Use a preset timed task loop to determine whether the document set meets the end condition of the document set rule details;

[0168] Alternatively, when the number of documents included in the document set changes, it is determined whether the document set meets the end condition of the document set rule details.

[0169] It should be noted that the specific implementation content of the document collection device in the embodiment of the present invention has been described in detail in the document collection method described above, so the repeated content will not be described again here.

[0170] According to the technical solution of the embodiment of the present invention, the rules for collecting documents are dynamically configured based on the document type, collection rules and collection rule details, a unified way of configuring collection rules is provided, the reusability of collection rule configuration is improved, the development cost and maintenance cost of collection rule configuration are reduced, and the expansion of collection rules is facilitated; the document type, collection rules and collection rule details are updated, so that the rules for collecting documents can be configured more flexibly to meet different document collection requirements and optimize user experience; the constraint attributes and end attributes are updated, so that the constraint conditions and end conditions can be decoupled, the scope of the constraint conditions and end conditions can be clarified, and the flexibility of the collection rule configuration can be further improved; collecting documents using collection rule details can improve the efficiency and accuracy of document collection; removing the corresponding document from the document collection according to the cancellation request of the collection can avoid collecting unnecessary documents and further improve the accuracy of document collection; providing multiple mechanisms to determine whether the document collection meets the technical conditions, and more flexibly determine the collection batch and update the batch information.

[0171] According to a fifth aspect of an embodiment of the present invention, there is provided an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method provided by the first aspect of the embodiment of the present invention and / or the second aspect of the embodiment of the present invention.

[0172] According to a sixth aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method provided by the first aspect of the embodiment of the present invention and / or the second aspect of the embodiment of the present invention is implemented.

[0173] Fig.10 An exemplary system architecture 1000 is shown to which the method or apparatus for configuring aggregating order rules or the method or apparatus for collecting invoices according to an embodiment of the present invention may be applied.

[0174] like Fig.10 As shown, the system architecture 1000 may include terminal devices 1001, 1002, 1003, a network 1004, and a server 1005. The network 1004 is used to provide a medium for communication links between the terminal devices 1001, 1002, 1003 and the server 1005. The network 1004 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.

[0175] Users can use terminal devices 1001, 1002, 1003 to interact with server 1005 through network 1004 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 1001, 1002, 1003, such as: order collection rule configuration applications, document collection applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).

[0176] The terminal devices 1001 , 1002 , and 1003 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers, etc.

[0177] Server 1005 may be a server that provides various services, such as a background management server that provides support for requests for configuration of order collection rules or requests for document collection sent by upstream terminal devices 1001, 1002, and 1003 (for example only). The background management server may determine the corresponding document type in response to receiving the order collection rule detail attributes; search for the order collection rule corresponding to the document type and determine the order collection rule attributes of the order collection rule; match the order collection rule detail attributes with the order collection rule attributes to generate the order collection rule details corresponding to the order collection rule; and feed back the order collection rule configuration situation (for example only) to the terminal device. The backend management server may also determine the document type of the target document in response to receiving the target document; determine the document collection rule details of the target document according to the document type, and judge whether the target document matches the document collection rule details, wherein the document collection rule details are generated by using any method described in the first aspect of the embodiment of the present invention; if the target document matches the document collection rule details, the target document is added to the corresponding document set; and the document collection situation (only as an example) is fed back to the terminal device.

[0178] It should be noted that the method for configuring the set of rules provided in the embodiment of the present invention is generally executed by the server 1005, and accordingly, the device for configuring the set of rules is generally set in the server 1005. The method for configuring the set of rules provided in the embodiment of the present invention can also be executed by the terminal devices 1001, 1002, and 1003, and accordingly, the device for configuring the set of rules can be set in the terminal devices 1001, 1002, and 1003.

[0179] It should be noted that the document collection method provided in the embodiment of the present invention is generally executed by the server 1005, and accordingly, the document collection device is generally set in the server 1005. The document collection method provided in the embodiment of the present invention can also be executed by the terminal devices 1001, 1002, and 1003, and accordingly, the document collection device can be set in the terminal devices 1001, 1002, and 1003.

[0180] It should be understood that Fig.10 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.

[0181] Reference below Fig.11 , which shows a schematic diagram of the structure of a computer system 1100 of a terminal device suitable for implementing an embodiment of the present invention. Fig.11 The terminal device 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.

[0182] like Fig.11 As shown, the computer system 1100 includes a central processing unit (CPU) 1101, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1102 or a program loaded from a storage part 1108 into a random access memory (RAM) 1103. In the RAM 1103, various programs and data required for the operation of the system 1100 are also stored. The CPU 1101, the ROM 1102, and the RAM 1103 are connected to each other via a bus 1104. An input / output (I / O) interface 1105 is also connected to the bus 1104.

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

[0184] 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, 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 1109, and / or installed from the removable medium 1111. When the computer program is executed by the central processing unit (CPU) 1101, the above-mentioned functions defined in the system of the embodiment of the present invention are executed.

[0185] It should be noted that the computer-readable medium shown in the embodiment of 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 an embodiment of 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 an embodiment of 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.

[0186] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, 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.

[0187] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor, for example, they may be described as: a processor including a determination module, a search module, a generation module, or a processor including a determination module, a judgment module, and a collection module, wherein the names of these modules do not constitute a limitation on the modules themselves in certain cases, for example, the search module may also be described as a "module for searching for document rules and determining the attributes of the collection document rules."

[0188] As another aspect, an embodiment of the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently and not be assembled into the device. The above computer-readable medium carries one or more programs. When the above one or more programs are executed by a device, the device implements the following method: in response to receiving the collection order rule detail attribute, determine the corresponding document type; search for the collection order rule corresponding to the document type, determine the collection order rule attribute of the collection order rule; match the collection order rule detail attribute with the collection order rule attribute, and generate the collection order rule details corresponding to the collection order rule. Alternatively, the device implements the following method: in response to receiving the target document, determine the document type of the target document; determine the collection order rule details of the target document according to the document type, and judge whether the target document matches the collection order rule details, and the collection order rule details are generated by any method described in the first aspect of the embodiment of the present invention; if the target document matches the collection order rule details, add the target document to the corresponding document set.

[0189] According to the technical solution of the embodiment of the present invention, the rules for collecting documents are dynamically configured based on the document type, collection rules and collection rule details, a unified way of configuring collection rules is provided, the reusability of collection rule configuration is improved, the development cost and maintenance cost of collection rule configuration are reduced, and the expansion of collection rules is facilitated; the document type, collection rules and collection rule details are updated, so that the rules for collecting documents can be configured more flexibly to meet different document collection requirements and optimize user experience; the constraint attributes and end attributes are updated, so that the constraint conditions and end conditions can be decoupled, the scope of the constraint conditions and end conditions can be clarified, and the flexibility of the collection rule configuration can be further improved; collecting documents using collection rule details can improve the efficiency and accuracy of document collection; removing the corresponding document from the document collection according to the cancellation request of the collection can avoid collecting unnecessary documents and further improve the accuracy of document collection; providing multiple mechanisms to determine whether the document collection meets the technical conditions, and more flexibly determine the collection batch and update the batch information.

[0190] The above specific implementations do not constitute a limitation on the protection scope of the embodiments 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 modifications, equivalent substitutions and improvements made within the spirit and principles of the embodiments of the present invention should be included in the protection scope of the embodiments of the present invention.

Claims

1. A method for configuring a set of single rules, characterized in that: include: In response to receiving the detailed attributes of the document collection rule, determining a corresponding document type; Find the document collection rule corresponding to the document type, and determine the document collection rule attribute of the document collection rule; The set order rule detail attribute is matched with the set order rule attribute to generate the set order rule details corresponding to the set order rule.

2. The method according to claim 1, characterized in that The method further comprises: Before searching for a collection rule corresponding to the document type, in response to receiving a collection rule attribute, determining a corresponding document type, and generating a collection rule corresponding to the document type; And / or before determining the corresponding document type, in response to receiving a document type update request, add a document type used for the set document rule configuration, or delete a document type used for the set document rule configuration, or modify the document type used for the set document rule configuration.

3. The method according to claim 1, characterized in that The set order rule attributes include: a constraint attribute and an end attribute, the number of the constraint attribute and the end attribute are both greater than or equal to 1, and the method further includes: In response to receiving the constraint attribute update request, adding the constraint attribute of the set order rule, or deleting the constraint attribute of the set order rule, or modifying the constraint attribute of the set order rule; And / or in response to receiving an end attribute update request, adding the end attribute of the set rule, or deleting the end attribute of the set rule, or modifying the end attribute of the set rule.

4. The method according to claim 1, characterized in that: The method further comprises: In response to receiving a request to update the set order rule details, modify the set order rule details or delete the set order rule details.

5. A method for document collection, characterized in that: include: In response to receiving a target document, determining a document type of the target document; Determine the collection rule details of the target document according to the document type, and judge whether the target document matches the collection rule details, wherein the collection rule details are generated by using any one of the methods described in claims 1 to 4; When the target document matches the document set rule details, the target document is added to the corresponding document set.

6. The method according to claim 5, characterized in that There are multiple order collection rule details; judging whether the target document matches the order collection rule details includes: According to the arrangement order of the collection order rule details, the constraint conditions of each collection order rule detail are compared with the document attribute value included in the target document in turn. When the document attribute value meets the constraint conditions, it is determined that the target document matches the corresponding collection order rule details.

7. The method according to claim 5, characterized in that The method further comprises: Determine whether the document set meets the end condition of the document set rule details; if the document set meets the end condition of the document set rule details, treat the document set as a document set batch, and update the batch information corresponding to the document set batch; And / or in response to receiving a request to cancel a collection of documents, determining a corresponding document to be canceled; when the document status of the document to be canceled meets a preset condition for canceling a collection of documents, determining a document set including the document to be canceled, and removing the document to be canceled from the document set including the document to be canceled.

8. The method according to claim 7, characterized in that Determining whether the document set meets the end condition of the document set rule details includes: Use a preset timed task loop to determine whether the document set meets the end condition of the document set rule details; Alternatively, when the number of documents included in the document set changes, it is determined whether the document set meets the end condition of the document set rule details.

9. A device for configuring a set of rules, characterized in that: include: A determination module, configured to determine a corresponding document type in response to receiving a detailed attribute of a collection document rule; A search module, used to search for a collection rule corresponding to the document type and determine a collection rule attribute of the collection rule; A generation module is used to match the set order rule detail attributes with the set order rule attributes to generate the set order rule details corresponding to the set order rule.

10. A device for collecting receipts, characterized in that: include: a determination module, configured to determine the document type of the target document in response to receiving the target document; A determination module, used to determine the collection rule details of the target document according to the document type, and judge whether the target document matches the collection rule details, wherein the collection rule details are generated by using any method described in claims 1 to 4; The collection module is used to add the target document to the corresponding document set when the target document matches the details of the collection rule.

11. 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 8.

12. 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 8 is implemented.