Processing method and device for counting and extracting
By obtaining the operation record set in the parcel data stream and distinguishing between effective and repeated operations, calculating the total amount of arrears and actual amount of arrears and withdrawals, solving the problems of waste of resources and missing records by manually checking, real-time and accurate packages and withdrawals .
Patent Information
- Application Number
- CN202310755536.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-25
- Publication Date
- 2024-12-27
AI Technical Summary
In the prior art, manual verification of package operation records has problems such as wasting resources and low accuracy, and only recording without repeated operations leads to missing repeated operations records, which affects the investigation and verification of the accrual results.
By obtaining the operation record set in the parcel data stream, determining the operation marks of the operation record, distinguishing between effective and repeated operations, calculating the total amount of the package data stream's acquisition task and the actual acquisition amount of the operator, and realizing the deduplication and acquisition result Build and showcase.
On the premise of ensuring the integrity of operation records, real-time package provision is realized, manual verification is eliminated, resources are saved, and the efficiency and accuracy of provisioning are improved.
Smart Images

Figure CN119201905A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method and device for processing accruals. Background Art
[0002] In the logistics industry, employee accruals are generally calculated by counting the packages handled by the employees. Employees use handheld mobile devices to scan packages, and the system server records the specific operations of employees on the packages by interacting with the handheld mobile devices. In actual business scenarios, repeated operations on packages are often inevitable. For example, when employees hand over their shifts, items that have been inspected are inspected again by the employees who take over, or individual employees deliberately repeat the inspection multiple times to increase their workload. The commonly used method is manual verification, or the server only records non-repeated operations and discards all repeated operations.
[0003] In the process of implementing the present invention, the inventors found that the prior art has the following problems:
[0004] The manual verification method is not only resource-consuming, but also inevitably prone to errors and low accuracy. Recording only non-repetitive operations will result in the non-persistence of all repeated package operation records and the lack of complete operation records, which is not conducive to the investigation and verification of accrual results. Summary of the invention
[0005] In view of this, an embodiment of the present invention provides a method and device for processing accruals, which realizes real-time package accruals while ensuring the integrity of operation records, eliminates manual verification, saves resources, and improves accrual efficiency and accuracy.
[0006] To achieve the above object, according to one aspect of an embodiment of the present invention, a method for processing accruals is provided, comprising:
[0007] For each package in the package data stream, obtaining an operation record set corresponding to each package, and determining an operation tag of each operation record in the operation record set;
[0008] The total amount of accounting tasks of the parcel data flow and the actual accounting amount of each parcel operator in the parcel data flow are determined according to the operation mark, and the deduplication accounting results of each parcel operator are determined according to the total amount of accounting tasks and the actual accounting amount of each parcel operator.
[0009] Optionally, obtaining the operation record set corresponding to each package includes: querying the operation record matching the package information of each package from a database to obtain the operation record set.
[0010] Optionally, the operation record set has business attributes, and the operation record has operation time information; determining the operation mark of each operation record in the operation record set includes: defining the operation mark of one of the operation records in the operation record set as a valid operation, and defining the operation marks of other operation records in the operation record set as repeated operations, based on the business attributes of the operation record set and the operation time information of each operation record in the operation record set.
[0011] Optionally, the business attribute is loading business or unloading business; the operation mark of one of the operation records in the operation record set is defined as a valid operation, and the operation marks of other operation records in the operation record set are defined as repeated operations, including: obtaining the earliest operation record and the latest operation record according to the operation time information of each operation record in the operation record set; when the business attribute is loading business, the operation mark of the latest operation record is defined as a valid operation, and the operation marks of other operation records in the operation record set are defined as repeated operations; when the business attribute is unloading business, the operation mark of the earliest operation record is defined as a valid operation, and the operation marks of other operation records in the operation record set are defined as repeated operations.
[0012] Optionally, the operation mark includes a valid operation; determining the total amount of accrual tasks of the package data stream and the actual accrual amount of each package operator in the package data stream according to the operation mark, including: determining the total amount of accrual tasks of the package data stream by counting the total number of operation records with the operation mark as a valid operation; taking each package operator in the package data stream as a dimension, grouping and summarizing the operation records with the operation mark as a valid operation corresponding to each package in the package data stream to obtain the actual accrual amount of each package operator.
[0013] Optionally, the method further includes: constructing a package detail list according to the operation tag of each operation record in the operation record set, the package detail list including each operation record and the corresponding operation tag; and / or, constructing an accrual detail list according to the deduplication accrual result, the accrual detail list including the workload of each operator corresponding to the package data flow.
[0014] Optionally, the method further includes: in response to a report query request, visually displaying the package details list and / or the provision details list.
[0015] According to a second aspect of an embodiment of the present invention, there is provided a device for processing accruals, including:
[0016] An operation mark determination module, configured to obtain, for each package in the package data stream, a set of operation records corresponding to each package; and determine an operation mark for each operation record in the set of operation records;
[0017] The accrual result determination module is used to determine the total amount of accrual tasks of the package data flow and the actual accrual amount of each package operator in the package data flow according to the operation mark, and determine the deduplication accrual result of each package operator according to the total amount of accrual tasks and the actual accrual amount of each package operator.
[0018] According to a third aspect of an embodiment of the present invention, there is provided an electronic device for processing accruals, including:
[0019] one or more processors;
[0020] a storage device for storing one or more programs,
[0021] When the one or more programs are executed by the one or more processors, the one or more processors implement the method provided in the first aspect of the embodiment of the present invention.
[0022] According to a fourth 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 is implemented.
[0023] An embodiment of the invention has the following advantages or beneficial effects: by obtaining the operation record set corresponding to each package in the package data stream, determining the operation mark of each operation record in the operation record set, determining the total amount of accounting tasks of the package data stream and the actual accounting amount of each package operator in the package data stream according to the operation mark, and determining the deduplication accounting result of each package operator according to the total amount of accounting tasks and the actual accounting amount of each package operator, the technical solution realizes the accounting of the package data stream by determining the operation mark of each operation record, and realizes real-time package accounting while ensuring the integrity of the operation record, eliminating manual verification, saving resources, and improving accounting efficiency and accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0025] Figure 1 is a schematic diagram of the main flow of the method for processing accrual according to an embodiment of the present invention;
[0026] Figure 2 1 is a schematic diagram of a header of a package details table according to an embodiment of the present invention;
[0027] Figure 3 It is a schematic diagram of the header of the loading and unloading package details table and the provision details table in an embodiment of the present invention;
[0028] Figure 4 It is a detailed flowchart of the processing method of the provision according to the embodiment of the present invention;
[0029] Figure 5 It is a complete flow chart of the method for processing the provision according to an embodiment of the present invention;
[0030] Figure 6 is a schematic diagram of main modules of a processing device for accrual according to an embodiment of the present invention;
[0031] Figure 7 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0032] Figure 8 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
[0033] It should be noted that in the technical solution of the present invention, the collection / collection, update, analysis, use, transmission, storage and other aspects of user personal information involved are in compliance with the provisions of relevant laws and regulations, are used for legal and reasonable purposes, are not shared, leaked or sold outside of these legal uses, and are subject to supervision and management by national regulatory authorities. Necessary measures should be taken for user personal information to selectively block the use or access to personal information data to prevent illegal access to such personal information data, ensure that persons who have access to personal information data comply with the provisions of relevant laws and regulations, and ensure the security of user personal information. In addition, once these user personal information data are no longer needed, the risks should be minimized by limiting or even prohibiting data collection and / or deleting data.
[0034] 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.
[0035] Among the current methods for processing package accruals, the manual verification method is not only resource-consuming, but also inevitably prone to errors and low accuracy; the method of only recording non-repetitive operations will result in the non-persistence of all repeated package operation records and the lack of complete operation records, which is not conducive to the investigation and verification of accrual results. Both methods cannot meet the actual application requirements well.
[0036] In order to solve the above problems existing in the prior art, the present invention proposes a processing method for accrual, which performs accrual of package data streams by determining the operation mark of each operation record. Under the premise of ensuring the integrity of the operation record, real-time package accrual is achieved, manual verification is eliminated, resources are saved, and the accrual efficiency and accuracy are improved.
[0037] In the introduction to the embodiments of the present invention, the terms and their meanings are as follows:
[0038] Operator: processes data, inputs one or more elements, and outputs the calculation of one or more elements;
[0039] binlog: is a binary file used to record SQL statement information updated by users on the database;
[0040] Flink: streaming computing engine;
[0041] Clickhouse: A high-performance open source column-based distributed search engine and storage.
[0042] Figure 1 is a schematic diagram of the main process of the method for processing the provision according to an embodiment of the present invention, such as Figure 1 As shown, the accrual processing method of the embodiment of the present invention includes the following steps S101 to S102.
[0043] Step S101: For each package in the package data stream, obtain an operation record set corresponding to each package, and determine an operation tag of each operation record in the operation record set.
[0044] Specifically, when the operator performs operations such as checking and accepting the package, he usually uses a handheld mobile device to scan the package to record the package operation information to the server and persist it in the MySQL database. In order to improve computing efficiency, the embodiment of the present invention adopts the streaming computing engine Flink. When there is a package operation log (binlog) in the database, the package operation log flows to the real-time streaming computing processing system in the form of a package data stream. For each package in the package data stream, the real-time streaming computing processing system queries and obtains the corresponding operation record set according to the package dimension. The operation record set includes all operation records under the package dimension, and then determines the operation mark of each operation record according to the preset deduplication rule.
[0045] According to an embodiment of the present invention, obtaining the operation record set corresponding to each package includes: querying the operation record matching the package information of each package from a database to obtain the operation record set.
[0046] Specifically, for each package in the received package data stream, the real-time streaming computing processing system uses a deduplication operator to obtain operation records identical to the package information from the MySQL database based on the operation site, i.e., the site when the package was scanned and entered, the corresponding logistics business, and the package number, and aggregates these operation records with the same package information together to form an operation record set.
[0047] According to another embodiment of the present invention, the operation record set has business attributes, and the operation record has operation time information; determining the operation mark of each operation record in the operation record set includes: defining the operation mark of one of the operation records in the operation record set as a valid operation, and defining the operation marks of other operation records in the operation record set as repeated operations, based on the business attributes of the operation record set and the operation time information of each operation record in the operation record set.
[0048] Specifically, the operation record set is a set of all operation records of the same package in the same logistics business and the same operation site. Ideally, a package should have only one operation record in an operation site of a logistics business. In reality, there are often multiple operation records. The embodiment of the present invention identifies each operation record in the operation record set, finds duplicate operation records, and identifies them by operation marks. The operation record set has business attributes, and the business attributes have a corresponding relationship with the logistics business. Different business attributes correspond to different logistics businesses. According to the business attributes and the operation time of each operation record, the operation mark of one of the operation records in the operation record set is determined to be a valid operation. Accordingly, the operation marks of other operation records in the set are repeated operations, so as to identify and distinguish valid operations from repeated operations in the operation record set.
[0049] According to another embodiment of the present invention, the business attribute is loading business or unloading business; the operation mark of one operation record in the operation record set is defined as a valid operation, and the operation marks of other operation records in the operation record set are defined as repeated operations, including: according to the operation time information of each operation record in the operation record set, obtaining the earliest operation record and the latest operation record; when the business attribute is loading business, the operation mark of the latest operation record is defined as a valid operation, and the operation marks of other operation records in the operation record set are defined as repeated operations; when the business attribute is unloading business, the operation mark of the earliest operation record is defined as a valid operation, and the operation marks of other operation records in the operation record set are defined as repeated operations.
[0050] Although in the above example, there is only one valid operation record in the operation record set corresponding to a package, those skilled in the art should understand that there may also be multiple valid operation records in the operation record set corresponding to a package. For example, package A is shipped from Beijing to Shanghai, and for some reason, package A is shipped from Beijing to Guangzhou, and then package A is returned from Guangzhou to Beijing, and then package A is shipped from Beijing to Shanghai again. In this scenario, package A has two shipping records in Beijing, which corresponds to two valid operations; more specific and fine-grained deduplication rules can also be set, and the operation mark is determined by the deduplication rules, so as to facilitate more accurate deduplication provision in the future.
[0051] Furthermore, the deduplication rules of the embodiment of the present invention support flexible settings and can be set according to the account permissions of the operator. For example, inspector A only has the permission to inspect the packages of brand C items. When determining the operation mark of each operation record in the operation record set corresponding to the package of brand C items, the operation mark of the operation record in which operator A is in the operation record is defined as a valid operation, and the other operation records in the operation record set are defined as repeated operations. Deduplication rules related to business attributes and valid time intervals can also be set. For example, deduplication rules are set: the valid time interval of the business is determined according to the business attributes, and the operation records within the valid time interval are valid operations. According to the business attributes corresponding to the operation record set, the current start time and end time of the business are determined, and then the valid time interval is obtained; then the operation time of each operation record in the operation record set is checked for the valid time interval, so that the operation records within the valid time interval are marked as valid operations, and the operation marks of other operation records in the set are marked as repeated operations. The deduplication rules can also be determined by comprehensively considering the above-mentioned multiple factors.
[0052] The main activities involved in the logistics industry are collection and delivery, which correspond to the operation of the package, namely, loading and unloading. In an optional embodiment of the present invention, according to the content and purpose of the loading and unloading business, the following deduplication rules can be set: for the loading business, for the same operation site, no matter how many times the loading and delivery are carried out, only the delivery is considered to be effective, so the loading business only takes the last operation record as a valid operation; for the unloading business, for the same operation site, no matter how many times the unloading and inspection are carried out, as long as the inspection is carried out, it is considered to be effective acceptance, so the unloading business only takes the first operation record. Exemplarily, the real-time streaming computing processing system of the embodiment of the present invention uses a deduplication operator based on the deduplication rule, and according to the operation time information of each operation record in the operation record set, the earliest operation record, that is, the first operation record, and the latest operation record, that is, the last operation record, can be obtained. In the case where the business attribute is the loading business, the latest operation record in the operation record set is taken as a valid operation, and the operation mark of the operation record is defined as a valid operation to be identified. Accordingly, the other operation records in the operation record set are repeated operations, and the operation marks of these operation records are defined as repeated operations. Similarly, when the business attribute is a truck unloading business, the earliest operation record in the operation record set is regarded as a valid operation, and the operation mark of the operation record is defined as a valid operation to identify it. Accordingly, the other operation records in the operation record set are repeated operations, and the operation marks of these operation records are defined as repeated operations. In addition, if there is only one operation record in the operation record set, then no judgment is required, that is, this operation record is regarded as a valid operation, and the operation mark of this operation record is defined as a valid operation.
[0053] It is understandable that, in addition to the above-mentioned method of determining the operation mark by determining the earliest operation record and the latest operation record, the operation records in the operation record set can also be sorted in ascending or descending order according to the operation time to obtain the first operation record and the last operation record. In the case where the business attribute is loading business, the operation mark of the last operation record in ascending order (the latest operation record) or the first operation record in descending order (the latest operation record) is defined as a valid operation, and the operation marks of other operation records are defined as repeated operations. Similarly, in the case where the business attribute is unloading business, the operation mark of the first operation record in ascending order (the earliest operation record) or the last operation record in descending order (the earliest operation record) is defined as a valid operation, and the operation marks of other operation records are defined as repeated operations.
[0054] Furthermore, by determining the operation mark of each operation record in the operation record set, valid operations and repeated operations in all operation records can be distinguished. According to the above method, the operation mark of each operation record in the operation record set corresponding to each package in the package data stream can be determined, and these operation records with operation marks continue to be transmitted in the form of package data stream.
[0055] By determining the operation mark of each operation record in the operation record set of the package as described above, the operation records can be marked under the premise of ensuring the integrity of the operation records, which not only provides basic data for subsequent deduplication and provision, but also does not affect the data composition of the original package data flow, avoiding affecting the processing logic of other businesses.
[0056] Step S102: determine the total amount of accounting tasks of the package data flow and the actual accounting amount of each package operator in the package data flow according to the operation mark, and determine the deduplication accounting result of each package operator according to the total amount of accounting tasks and the actual accounting amount of each package operator.
[0057] Specifically, the real-time streaming computing processing system also has an accounting operator. When the accounting operator receives a package data stream with an operation tag, it can distinguish between valid operations and repeated operations in the package data stream according to the operation tag. Through the operation tag of the valid operation, the total accounting task of the package flow and the actual accounting amount of each package operator therein can be calculated, and then the deduplication accounting result of each package operator without repeated operations can be obtained.
[0058] According to one embodiment of the present invention, the operation mark includes a valid operation; determining the total amount of accrual tasks of the package data flow and the actual accrual amount of each package operator in the package data flow according to the operation mark, including: determining the total amount of accrual tasks of the package data flow by counting the total number of operation records with the operation mark as a valid operation; taking each package operator in the package data flow as a dimension, grouping and summarizing the operation records with the operation mark as a valid operation corresponding to each package in the package data flow to obtain the actual accrual amount of each package operator.
[0059] Specifically, package accrual is a method for counting the workload of operators. In some embodiments of the present invention, according to the above-mentioned package data stream with operation marks, the number of operation records with operation marks as valid operations can be directly counted according to the operator dimension to obtain the workload of each operator, that is, the deduplication accrual result. In other embodiments of the present invention, the total amount of accrual tasks and the actual accrual amount of each package operator can be obtained according to the operation records with valid operations in the package data stream, and then the deduplication accrual result of each operator can be calculated. Specifically, the accrual operator can be used to count the number of operation records with operation marks as valid operations to obtain the total amount of accrual tasks of the package data stream, and then the operation records of valid operations of each package in the package data stream are grouped with each operator in the package data stream as the dimension to obtain the number of operation records of valid operations in each operator group, and the completion rate of each operator relative to the total amount of accrual tasks is calculated to obtain the deduplication accrual result of the operator. In some other embodiments of the present invention, the target task amount of each operator can also be determined according to the total amount of accrual tasks according to the preset accrual rules, and then the deduplication accrual result of the operator can be obtained in combination with the actual accrual amount of each operator. Specifically, the accrual operator can be used to count the number of operation records marked as valid operations to obtain the total accrual task of the parcel data stream. It can be understood that if the accrual dimension is the weight of the parcel or the volume of the parcel, or the weight and volume are considered together, then the total weight and volume of the parcels marked as valid operations are counted. Then, according to the preset accrual rules, such as average distribution or distribution according to attendance time, the target task volume of the operator is determined, and then the operation records marked as valid operations are extracted from the operation records of the parcel data stream according to the operator dimension. Combined with other accrual parameters in the accrual rules, the completion rate of each operator relative to their respective target task volume is calculated to obtain the deduplication accrual result of the operator.
[0060] In addition, package accrual can also provide data support for managers to assign operators' personal tasks. According to the package deduplication accrual results obtained based on historical data, the operators' future personal task allocation can be deployed more scientifically and reasonably to steadily increase the workload.
[0061] According to another embodiment of the present invention, the method further includes: constructing a package detail list according to the operation tag of each operation record in the operation record set, the package detail list including each operation record and the corresponding operation tag; and / or, constructing an accrual detail list according to the deduplication accrual result, the accrual detail list including the workload of each operator corresponding to the package data flow.
[0062] Specifically, in order to make the parcel accrual processing process public and transparent, the operation records with determined operation tags are constructed into a parcel detail table, which includes each operation record corresponding to loading and unloading and the corresponding operation tags. Furthermore, the deduplication accrual results can also be constructed into an accrual detail table, which uses the operator as the dimension and includes the workload of each operator corresponding to the parcel data flow. Of course, both the parcel detail table and the accrual detail table can be constructed to provide more complete data support.
[0063] Figure 2 : This is a schematic diagram of the header of the package details table of the embodiment of the present invention. The package details table mainly includes information such as package number, business attribute (loading or unloading), task number, operation mark, operation site, operator, operation time, package weight, package volume, etc., wherein the task number is used for accrual and settlement, and is the number that represents the task; the operation mark is used to identify whether the operation record is a valid operation or a repeated operation, and specifically, the field first can be used to indicate the earliest operation and last to indicate the latest operation, or valid can be directly used to indicate a valid operation, and invalid can be used to indicate a repeated operation, and the expression method is not specifically limited.
[0064] According to yet another embodiment of the present invention, the method further comprises: in response to a report query request, visually displaying the package details list and / or the provision details list.
[0065] Specifically, the embodiment of the present invention provides an operator-oriented report query system, which can display operation records including operation marks and accrual results, so that the operator can check them by himself. In order to facilitate the operator's query, secondary processing can be performed based on the above-mentioned construction of the package details table. According to the loading business and unloading business, the package details table is divided into a loading package details table and an unloading package details table, and the operation mark is adjusted to the tail of the header of the loading package details table and the unloading package details table, and finally stored persistently in the clickhouse column storage database. The clickhouse column storage database is not only fast, but also suitable for the scenario of frequent data increments and variables such as the package accrual of the embodiment of the present invention. When the report query system receives the report query request, the loading and unloading package details table and / or the accrual details table are visually displayed at the front end. The operator can perform a global check based on the fact that the sum of the workload of all operators under the same task should be equal to the sum of the packages of the operation records marked as valid operations in the loading and unloading package details table. After the global check is correct, the individual accrual results are checked.
[0066] Figure 3It is a schematic diagram of the header of the loading and unloading package details table and the provision details table of the embodiment of the present invention. According to the secondary processing of the package details table, the loading and unloading package details table is obtained. The loading and unloading package details table mainly includes the package number, task number, operation site, operator, operation time, package weight, package volume, operation mark, etc.; the provision details table mainly includes the operation site, task number, operator, operation volume, statistical time, etc.
[0067] Figure 4 It is a detailed flow chart of the processing method of the provision in the embodiment of the present invention. The real-time streaming computing processing system receives the package data stream, uses the deduplication operator query for each package in the package data stream to obtain the corresponding operation record set; determines the operation mark in the operation record set according to the business attribute of the operation record set and the operation time information of each operation record in the operation record set; these operation records with operation marks continue to be transmitted in the form of package data stream; on the one hand, the real-time streaming computing processing system uses the package data stream with operation marks to construct package details and stores them in the clickhouse big data repository; on the other hand, the provision operator is used to perform deduplication provision on the package data stream, obtain deduplication provision results, and construct a provision detail table and store it in the clickhouse big data repository, so that the front-end display system can query and display the package details and provision details through the report query system.
[0068] Figure 5 It is a complete flow chart of the processing method of the provision in the embodiment of the present invention. The package data stream is persisted in the MySQL database; the real-time stream computing processing system obtains the operation record set of the received package data stream, uses the deduplication operator to determine the operation mark of each operation record in the operation record set according to the preset deduplication rule, builds a package detail table, and uses the provision operator to perform deduplication provision on the package data stream with the operation mark, obtains the deduplication provision result, and builds the provision detail table; then the package detail table and the provision detail table are stored in the clickhouse big data storage library; finally, the package detail table and the provision detail table are displayed through the front-end display system.
[0069] Figure 6 Schematic diagram of the main modules of the processing device for accrual according to an embodiment of the present invention. Figure 6 As shown, the accrual processing device 600 mainly includes an operation mark determination module 601 and an accrual result determination module 602.
[0070] The operation mark determination module 601 is used to obtain, for each package in the package data stream, a set of operation records corresponding to each package; and determine an operation mark of each operation record in the set of operation records;
[0071] The accrual result determination module 602 is used to determine the total amount of accrual tasks of the package data flow and the actual accrual amount of each package operator in the package data flow according to the operation mark, and determine the deduplication accrual result of each package operator according to the total amount of accrual tasks and the actual accrual amount of each package operator.
[0072] According to an embodiment of the present invention, the operation mark determination module 601 is further used to: query the operation record matching the package information of each package from the database to obtain the operation record set
[0073] According to another embodiment of the present invention, the operation record set has business attributes, and the operation record has operation time information; the operation mark determination module 601 is also used to: define the operation mark of one of the operation records in the operation record set as a valid operation, and define the operation marks of other operation records in the operation record set as repeated operations, based on the business attributes of the operation record set and the operation time information of each operation record in the operation record set.
[0074] According to another embodiment of the present invention, the business attribute is loading business or unloading business; the operation mark determination module 601 is further used to: obtain the earliest operation record and the latest operation record according to the operation time information of each operation record in the operation record set; when the business attribute is loading business, the operation mark of the latest operation record is defined as a valid operation, and the operation marks of other operation records in the operation record set are defined as repeated operations; when the business attribute is unloading business, the operation mark of the earliest operation record is defined as a valid operation, and the operation marks of other operation records in the operation record set are defined as repeated operations.
[0075] According to another embodiment of the present invention, the operation mark includes a valid operation; the accrual result determination module 602 is further used to: determine the total accrual task amount of the parcel data flow and the actual accrual amount of each parcel operator in the parcel data flow according to the operation mark, including: determining the total accrual task amount of the parcel data flow by counting the total number of operation records with the operation mark as a valid operation; taking each parcel operator in the parcel data flow as a dimension, grouping and summarizing the operation records with the operation mark as a valid operation corresponding to each parcel in the parcel data flow to obtain the actual accrual amount of each parcel operator.
[0076] According to another embodiment of the present invention, the accrual processing device 600 also includes a detailed list construction module (not shown in the figure), which is used to: construct a package detailed list according to the operation tag of each operation record in the operation record set, and the package detailed list includes each operation record and the corresponding operation tag; and / or, construct an accrual detailed list according to the deduplication accrual result, and the accrual detailed list includes the workload of each operator corresponding to the package data flow.
[0077] According to another embodiment of the present invention, the provision processing device 600 also includes a report query module (not shown in the figure), which is used to: respond to a report query request, visually display the package details list and / or the provision details list.
[0078] Figure 7 is an exemplary system architecture diagram to which embodiments of the present invention can be applied.
[0079] like Figure 7 As shown, system architecture 700 may include terminal devices 701, 702, 703, network 704 and server 705. Network 704 is used to provide a medium for communication links between terminal devices 701, 702, 703 and server 705. Network 704 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0080] Users can use terminal devices 701, 702, 703 to interact with server 705 through network 704 to receive or send messages, etc. Various communication client applications, such as accounting applications, etc., can be installed on terminal devices 701, 702, 703 (only as an example).
[0081] The terminal devices 701 , 702 , and 703 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.
[0082] The server 705 may be a server that provides various services, such as a background management server that supports the accrual performed by the user using the terminal devices 701, 702, and 703 (for example only). The background management server may obtain the operation record set corresponding to each package in the package data stream, and determine the operation mark of each operation record in the operation record set; determine the total amount of accrual tasks of the package data stream and the actual accrual amount of each package operator in the package data stream according to the operation mark; determine the deduplication accrual result of each package operator according to the total amount of accrual tasks and the actual accrual amount of each package operator, and feed back the processing result (such as deduplication accrual result, etc. - for example only) to the terminal device.
[0083] It should be noted that the accrual processing method provided in the embodiment of the present invention is generally executed by the server 705 , and accordingly, the accrual processing device is generally set in the server 705 .
[0084] It should be understood that Figure 7 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.
[0085] Reference below Figure 8 , which shows a schematic diagram of the structure of a computer system 800 of a terminal device or server suitable for implementing an embodiment of the present invention. Figure 8 The terminal device or server 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.
[0086] like Figure 8 As shown, the computer system 800 includes a central processing unit (CPU) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage part 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the system 800 are also stored. The CPU 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0087] The following components are connected to the I / O interface 805: an input section 806 including a keyboard, a mouse, etc.; an output section 807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a LAN card, a modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the I / O interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as needed, so that a computer program read therefrom is installed into the storage section 808 as needed.
[0088] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 809, and / or installed from the removable medium 811. When the computer program is executed by the central processing unit (CPU) 801, the above-mentioned functions defined in the system of the present invention are executed.
[0089] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination thereof.
[0090] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, program segment or a part of the 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 sequence different from that 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 the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0091] The units involved in the embodiments of the present invention may be implemented by software or hardware. The units described may also be arranged in a processor, for example, it may be described as follows: a processor includes: an operation mark determination module and an accrual result determination module.
[0092] Among them, the names of these modules do not constitute a limitation on the modules themselves in certain cases. For example, the operation tag determination module can also be described as "a module used to obtain, for each package in the package data stream, a set of operation records corresponding to each package, and determine the operation tag of each operation record in the set of operation records."
[0093] On the other hand, the present invention also provides a computer-readable medium, which may be included in the device described in the embodiment; or may exist independently without being assembled into the device. The computer-readable medium carries one or more programs, and when the one or more programs are executed by a device, the device includes: for each package in the package data stream, obtaining the operation record set corresponding to each package, and determining the operation mark of each operation record in the operation record set; determining the total amount of accounting tasks of the package data stream and the actual accounting amount of each package operator in the package data stream according to the operation mark, and determining the deduplication accounting result of each package operator according to the total amount of accounting tasks and the actual accounting amount of each package operator.
[0094] The technical solution according to the embodiment of the present invention has the following advantages or beneficial effects: by obtaining the operation record set corresponding to each package in the package data stream, determining the operation mark of each operation record in the operation record set, determining the total amount of accounting tasks of the package data stream and the actual accounting amount of each package operator in the package data stream according to the operation mark, and determining the deduplication accounting result of each package operator according to the total amount of accounting tasks and the actual accounting amount of each package operator, the technical solution realizes the accounting of the package data stream by determining the operation mark of each operation record, and realizes real-time package accounting under the premise of ensuring the integrity of the operation record, eliminating manual verification, saving resources, and improving accounting efficiency and accuracy.
[0095] The specific implementation methods described herein do not constitute limitations on the scope of protection 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 present invention shall be included in the scope of protection of the present invention.
Claims
1. A method for processing accruals, characterized in that: include: For each package in the package data stream, obtaining an operation record set corresponding to each package, and determining an operation tag of each operation record in the operation record set; The total amount of accounting tasks of the parcel data flow and the actual accounting amount of each parcel operator in the parcel data flow are determined according to the operation mark, and the deduplication accounting results of each parcel operator are determined according to the total amount of accounting tasks and the actual accounting amount of each parcel operator.
2. The method according to claim 1, characterized in that Get the operation record set corresponding to each package, including: The operation record matching the package information of each package is queried from the database to obtain an operation record set.
3. The method according to claim 1, characterized in that The operation record set has business attributes, and the operation record has operation time information; Determining an operation tag of each operation record in the operation record set includes: According to the business attributes of the operation record set and the operation time information of each operation record in the operation record set, an operation mark of one operation record in the operation record set is defined as a valid operation, and the operation marks of other operation records in the operation record set are defined as repeated operations.
4. The method according to claim 3, characterized in that The business attribute is loading business or unloading business; Defining an operation mark of one operation record in the operation record set as a valid operation, and defining the operation marks of other operation records in the operation record set as repeated operations, including: According to the operation time information of each operation record in the operation record set, obtaining the earliest operation record and the latest operation record; In the case where the service attribute is a loading service, the operation mark of the latest operation record is defined as a valid operation, and the operation marks of other operation records in the operation record set are defined as repeated operations; In the case where the business attribute is the unloading business, the operation mark of the earliest operation record is defined as a valid operation, and the operation marks of other operation records in the operation record set are defined as repeated operations.
5. The method according to claim 1, characterized in that: The operation mark includes a valid operation; Determining the total amount of the accounting tasks of the parcel data flow and the actual accounting amount of each parcel operator in the parcel data flow according to the operation mark includes: Determine the total amount of the accrual task of the package data flow by counting the total number of operation records marked as valid operations; Taking each parcel operator in the parcel data stream as a dimension, the operation records corresponding to each parcel in the parcel data stream and marked as valid operations are grouped and summarized to obtain the actual accrual amount of each parcel operator.
6. The method according to claim 1, characterized in that The method further comprises: Constructing a package detail list according to the operation tag of each operation record in the operation record set, wherein the package detail list includes each operation record and the corresponding operation tag; And / or, constructing a detailed accrual table according to the deduplication accrual result, wherein the detailed accrual table includes the workload of each operator corresponding to the package data flow.
7. The method according to claim 6, characterized in that The method further comprises: In response to a report query request, the package details list and / or the provision details list are visually displayed.
8. A device for processing accruals, characterized in that: include: An operation mark determination module, configured to obtain, for each package in the package data stream, a set of operation records corresponding to each package; and determining an operation tag of each operation record in the operation record set; The accrual result determination module is used to determine the total amount of accrual tasks of the package data flow and the actual accrual amount of each package operator in the package data flow according to the operation mark, and determine the deduplication accrual result of each package operator according to the total amount of accrual tasks and the actual accrual amount of each package operator.
9. A mobile electronic device terminal, 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 7.
10. 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 7 is implemented.
