CN116384854A - Method, device, equipment and storage medium for managing bill of material flow distribution - Google Patents

Method, device, equipment and storage medium for managing bill of material flow distribution Download PDF

Info

Publication number
CN116384854A
CN116384854A CN202310287418.4A CN202310287418A CN116384854A CN 116384854 A CN116384854 A CN 116384854A CN 202310287418 A CN202310287418 A CN 202310287418A CN 116384854 A CN116384854 A CN 116384854A
Authority
CN
China
Prior art keywords
bill
change
logistics distribution
distribution
settlement
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310287418.4A
Other languages
Chinese (zh)
Inventor
赖志杰
杨周龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dongpu Software Co Ltd
Original Assignee
Dongpu Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dongpu Software Co Ltd filed Critical Dongpu Software Co Ltd
Priority to CN202310287418.4A priority Critical patent/CN116384854A/en
Publication of CN116384854A publication Critical patent/CN116384854A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/083Shipping
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • General Engineering & Computer Science (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Development Economics (AREA)
  • Tourism & Hospitality (AREA)
  • Quality & Reliability (AREA)
  • Operations Research (AREA)
  • Marketing (AREA)
  • Human Resources & Organizations (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Databases & Information Systems (AREA)
  • Strategic Management (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to the field of logistics and discloses a method, a device, equipment and a storage medium for managing logistics distribution fee bills. The method comprises the following steps: acquiring a logistics distribution bill, and checking the validity of the logistics distribution bill; after the logistics distribution bill passes the verification, analyzing the logistics distribution bill to obtain target bill information and bill change details; when the bill change details have effective contents, analyzing and processing the bill change details to acquire bill change factors; judging whether the change factors of the bill have change factors influencing the distribution cost, and updating the target bill information according to the corresponding change factors after judging that the change factors of the bill have change factors influencing the distribution cost.

Description

Method, device, equipment and storage medium for managing bill of material flow distribution
Technical Field
The present invention relates to the field of logistics technologies, and in particular, to a method, an apparatus, a device, and a storage medium for managing a bill of a logistics distribution fee.
Background
The distribution fee of the express in the logistics field refers to the fee generated when the express is sorted or dispatched, in the settlement process, the distribution fee bill is particularly important, the distribution fee bill records the fee when sorted or dispatched each time, and the website or the distribution center sends the distribution fee bill to the headquarter, so that the headquarter performs fee settlement according to the distribution fee bill. In the prior art, there are some drawbacks in the processing of the bill of the distribution fee by the logistic settlement system, for example, after the bill of the distribution fee is changed, the data affecting the bill of the distribution fee is not automatically updated, and related data needs to be manually updated before settlement.
Accordingly, there is a need for improvement and development in the art.
Disclosure of Invention
The invention provides a method, a device, equipment and a storage medium for managing bill of a material flow distribution fee, which are used for automatically updating target bill information according to corresponding change factors after determining that the change factors of the bill have the change factors influencing the distribution fee, so that bill change details can be fed back to the target bill information to be settled in real time.
The first aspect of the present invention provides a method for managing a bill for logistics distribution fee, the method for managing bill for logistics distribution fee comprising: acquiring a logistics distribution bill, and checking the validity of the logistics distribution bill; after the logistics distribution bill passes the verification, analyzing the logistics distribution bill to obtain target bill information and bill change details; when the bill change details have effective contents, analyzing and processing the bill change details to acquire bill change factors; judging whether the change factors of the bill have change factors influencing the distribution cost, and updating the target bill information according to the corresponding change factors after judging that the change factors of the bill have change factors influencing the distribution cost.
Optionally, in a first implementation manner of the first aspect of the present invention, the obtaining a logistics distribution bill and verifying validity of the logistics distribution bill includes: acquiring a logistics distribution bill; calling a first verification script to verify the bill period of the logistics distribution bill to obtain a first verification result; invoking a second check script to check the integrity of the logistics distribution bill to obtain a second check result; and if the first check result and the second check result are both qualified, judging that the logistics distribution fee bill passes the check.
Optionally, in a second implementation manner of the first aspect of the present invention, after the checking of the bill of the logistics distribution fee, analyzing the bill of the logistics distribution fee to obtain the target bill information and bill change details, including: after the logistics distribution fee bill passes the verification, generating a bill file in a preset format according to the logistics distribution fee bill; analyzing the bill file according to a preset analysis rule to obtain candidate bill information and bill change details; and acquiring matching parameters of the candidate bill information and the target bill information according to a preset matching feature set, and determining the target bill information from the candidate bill information according to the matching parameters, wherein the target bill information comprises an order number, a settlement object code, a destination, settlement expense and a settlement rate.
Optionally, in a third implementation manner of the first aspect of the present invention, when the bill change details have valid contents, analyzing and processing the bill change details to obtain a change factor of a bill, including: when the bill change details have valid contents, carrying out semantic analysis on the bill change details to generate at least one bill change item; if the number of the bill change matters in the same category is one, acquiring a change factor of a bill according to the bill change matters; if the number of the bill change matters in the same category is more than two, acquiring the change time of the bill change matters, and sequencing the bill change matters according to the change time; and acquiring the change factors of the bill according to the bill change matters with the later change time.
Optionally, in a fourth implementation manner of the first aspect of the present invention, when the bill change details have valid contents, performing semantic analysis on the bill change details to generate at least one bill change item, including: when a data storage instruction is received, writing the target bill information and the bill change detail into a cluster of a card message queue; the written target bill information and bill change details are summarized and stored by taking the title as a unit; and when the bill change details have valid contents, invoking the bill change details in the Kaff card message queue to carry out semantic analysis, and generating at least one bill change item.
Optionally, in a fifth implementation manner of the first aspect of the present invention, the determining whether a variation factor affecting distribution cost exists in the variation factor of the bill, and after determining that the variation factor affecting distribution cost exists in the variation factor of the bill, updating the target bill information according to the corresponding variation factor includes: extracting character features of the change factors of the bill; calling a preset character matching algorithm to match the extracted character features, if the matching is successful, judging that the change factor of the bill is a change factor affecting the distribution cost, and outputting a matching result; and acquiring a change factor influencing the distribution cost according to the matching result, and updating the target bill information according to the corresponding change factor.
Optionally, in a sixth implementation manner of the first aspect of the present invention, the obtaining, according to the matching result, a change factor that affects distribution cost, and updating the target bill information according to the corresponding change factor, includes: acquiring a change factor influencing distribution cost according to the matching result; if the corresponding change factors are the settlement object and the settlement object code, updating the settlement object and the settlement object code in the target bill information; if the corresponding change factors are settlement weight, settlement volume and destination, calculating settlement cost again according to the settlement weight, a preset charging rule or the settlement volume, a preset charging rule or the destination and a preset charging rule, and updating the settlement cost in the target bill information; and if the corresponding change factor is the settlement rate, updating the settlement rate in the target bill information.
The invention provides a logistics distribution fee bill management device, which comprises a verification module, a verification module and a management module, wherein the verification module is used for acquiring a logistics distribution fee bill and verifying the validity of the logistics distribution fee bill; the analysis module is used for analyzing the logistics distribution bill after the logistics distribution bill passes the verification to obtain target bill information and bill change details; the analysis module is used for analyzing and processing the bill change details to acquire the change factors of the bill when the bill change details have effective contents; and the updating module is used for judging whether the change factors of the bill have the change factors influencing the distribution cost or not, and updating the target bill information according to the corresponding change factors after judging that the change factors of the bill have the change factors influencing the distribution cost.
Optionally, in a first implementation manner of the second aspect of the present invention, the verification module includes: the first acquisition unit is used for acquiring a logistics distribution bill; the first calling unit is used for calling a first verification script to verify the bill period of the logistics distribution bill to obtain a first verification result; the second calling unit is used for calling a second check script to check the integrity of the logistics distribution bill to obtain a second check result; and the judging unit is used for judging that the bill of the logistics distribution fee passes the verification when the first verification result and the second verification result are both qualified.
Optionally, in a second implementation manner of the second aspect of the present invention, the parsing module includes: the generation unit is used for generating bill files in a preset format according to the logistics distribution bill after the logistics distribution bill passes the verification; the analysis unit is used for analyzing the bill file according to a preset analysis rule to obtain candidate bill information and bill change details; the determining unit is used for acquiring matching parameters of the candidate bill information and the target bill information according to a preset matching feature set, and determining the target bill information from the candidate bill information according to the matching parameters, wherein the target bill information comprises an order number, a settlement object code, a destination, settlement expense and a settlement rate.
Optionally, in a third implementation manner of the second aspect of the present invention, the analysis module includes: the analysis unit is used for carrying out semantic analysis on the bill change details when judging that the bill change details have effective contents, and generating at least one bill change item; the second obtaining unit is used for obtaining the change factors of the bill according to the bill change matters after judging that the number of the bill change matters in the same category is one; the third acquisition unit is used for acquiring the change time of more than two bill change matters after judging that the number of the bill change matters in the same category is more than two, and sequencing the more than two bill change matters according to the change time; and acquiring the change factors of the bill according to the bill change matters with the later change time.
Optionally, in a fourth implementation manner of the second aspect of the present invention, the updating module includes: the extracting unit is used for extracting character features of the change factors of the bill; the matching unit is used for calling a preset character matching algorithm to match the extracted character features, judging that the change factor of the bill is a change factor affecting the distribution cost if the matching is successful, and outputting a matching result; and the updating unit is used for acquiring the change factors influencing the distribution cost according to the matching result and updating the target bill information according to the corresponding change factors.
A third aspect of the present invention provides a logistics distribution fee bill management apparatus comprising: a memory and at least one processor, the memory having computer readable instructions stored therein, the memory and the at least one processor being interconnected by a line; the at least one processor invokes the computer readable instructions in the memory to cause the logistics distribution fee bill management apparatus to perform the steps of the logistics distribution fee bill management method as described above.
A fourth aspect of the present invention provides a computer readable storage medium having stored therein computer readable instructions which when run on a computer cause the computer to perform the steps of the method of logistics distribution fee bill management as described above.
According to the technical scheme provided by the invention, when the effective content of the bill change detail is judged, the bill change detail is analyzed and processed to obtain the bill change factor, and after the bill change factor is judged to have the change factor influencing the distribution cost, the target bill information is automatically updated according to the corresponding change factor, so that the bill change detail can be fed back to the target bill information to be settled in real time.
Drawings
FIG. 1 is a first flowchart of a method for managing a bill for delivering a bill of a material flow according to an embodiment of the present invention;
FIG. 2 is a second flowchart of a method for managing bill of material flow distribution fee according to an embodiment of the present invention;
FIG. 3 is a third flowchart of a method for managing a bill for delivering a bill of a material flow according to an embodiment of the present invention;
FIG. 4 is a fourth flowchart of a method for managing a bill for delivering a bill of a material flow according to an embodiment of the present invention;
FIG. 5 is a fifth flowchart of a method for managing a bill for delivering a bill of a material flow according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of a bill management device for delivering bills in a stream according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a bill management device for delivering a bill for delivering a material flow according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a method, a device, equipment and a storage medium for managing bill of a logistics distribution fee, wherein the method is used for automatically updating target bill information according to corresponding change factors after determining that the change factors of the bill have the change factors influencing the distribution fee, so that bill change details can be fed back on the target bill information to be settled in real time. The method comprises the following steps: acquiring a logistics distribution bill, and checking the validity of the logistics distribution bill; after the logistics distribution bill passes the verification, analyzing the logistics distribution bill to obtain target bill information and bill change details; when the bill change details have effective contents, analyzing and processing the bill change details to acquire bill change factors; judging whether the change factors of the bill have change factors influencing the distribution cost, and updating the target bill information according to the corresponding change factors after judging that the change factors of the bill have change factors influencing the distribution cost.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments described herein may be implemented in other sequences than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or apparatus.
For ease of understanding, a specific flow of an embodiment of the present invention is described below with reference to fig. 1, where a first embodiment of a method for managing a bill for delivering a stream according to the embodiment of the present invention includes:
s101, acquiring a logistics distribution fee bill, and checking the validity of the logistics distribution fee bill.
It will be appreciated that the execution subject of the present invention may be a bill management device for a material flow distribution, and may also be a terminal or a server, which is not limited herein. The embodiment of the invention is described by taking a server as an execution main body as an example.
It will be appreciated that the logistics order costs generally include packaging costs, sorting costs, shipping costs, logistics costs and distribution costs. The logistics distribution fee in the logistics field refers to the fee generated when the express is sorted or dispatched.
In this embodiment, if there is a separate bill for distributing the logistics distribution fee in the logistics bill, the logistics distribution fee bill may be directly obtained. If no separate logistics distribution fee bill exists in the logistics bill, the logistics bill can be obtained, and the logistics bill is screened to obtain the logistics distribution fee bill.
In this embodiment, verifying validity of the bill of the logistics distribution fee refers to verifying billing cycle and integrity of the bill of the logistics distribution fee.
S102, after the logistics distribution fee bill passes verification, analyzing the logistics distribution fee bill to obtain target bill information and bill change details.
In this embodiment, if the verification result of the bill period of the logistics distribution fee and the verification result of the integrity are both qualified, it is determined that the logistics distribution fee bill passes the verification.
In this embodiment, the target billing information includes an order number, a settlement object code, a settlement fee, and a settlement rate.
It will be appreciated that the target billing information may also include a shipping number, a package number, a billing calendar, a billing type, a calculation style, a charge to be received, a distribution fee, a float fee, a prepaid face bill fee, a bid object code, a customer name, a customer code, a package person number, an item type, a destination province, a destination city, a destination website, a shipping style, a product type, a label type, a settlement weight, a headquarter settlement weight, a website weight, a center weight, a volume weight, a first center weight, a last center weight, a full scale maximum weight, a check-in website, a check-in status, a check-in time, a barcode customer, a barcode allocation website, a pay-in type, a return website, a question website, a transaction number, an order weight, an order source, a merchant ID, a sender name, a sender phone, and the like.
In this embodiment, the bill change details include change matters occurring in the bill from creation to end. Bill change details can be recorded on the bill by means of scan recording, headquarter adjustment, manual editing, and the like.
And S103, when the bill change details have effective contents, analyzing and processing the bill change details to acquire the change factors of the bill.
In this embodiment, when valid contents exist in the bill change detail, it means that the contents of the bill change detail are not null values.
It can be understood that after the bill is modified by the scanning mode, the headquarter adjustment mode and the manual editing mode, bill change matters are formed, the bill change matters can be analyzed to obtain change factors, the bill change factors include settlement objects, quotation objects, settlement weight, destinations, transportation modes, distribution fees, floating fees, prepaid surface fees, chargeable fees, change amounts and the like, notes can be generated when the bill is modified, and operation objects can be displayed. Bill change items, change times of bill change items, and other change content together form bill change details.
S104, judging whether the change factors of the bill have change factors influencing the distribution cost, and updating the target bill information according to the corresponding change factors after judging that the change factors of the bill have change factors influencing the distribution cost.
It will be appreciated that the distribution costs may or may not be affected by the changing factors of the bill, for example, the distribution costs may be affected by the changing factors of the bill being settlement objects. As another example, if the bill is changed by a prepaid bill fee, the distribution fee is not affected. Therefore, it is necessary to determine whether a change factor of the bill has a change factor affecting the distribution cost, and if so, update the target bill information according to the corresponding change factor.
The embodiment provides a logistics distribution fee bill management method, which is used for analyzing and processing bill change details when judging that the bill change details have effective contents, obtaining bill change factors, automatically updating target bill information according to corresponding change factors after judging that the bill change factors have change factors influencing distribution fees, and feeding back the bill change details on the target bill information to be settled in real time.
Referring to fig. 2, a second embodiment of a method for managing a bill for delivering a bill according to an embodiment of the present invention includes:
s201, acquiring a logistics distribution fee bill.
In this embodiment, if there is a separate bill for distributing the logistics distribution fee in the logistics bill, the logistics distribution fee bill may be directly obtained.
S202, a first verification script is called to verify the bill period of the logistics distribution bill to obtain a first verification result.
In this embodiment, the first verification script may be preset in the system, where the first verification script is configured to check whether the billing period of the bill meets a preset condition, for example, the preset condition of the billing period is the first 10 days of the current date, for example, the current date is 2023.03.12, the billing period is 2023.03.02-2023.03.11, when verifying the billing period of the bill for the logistics distribution, if the time 2023.03.02-2023.03.11 of the billing period is acceptable, and if the time of the billing period exceeds the range of 2023.03.02-2023.03.11, the obtained first verification result is unacceptable.
S203, invoking a second check script to check the integrity of the logistics distribution fee bill, and obtaining a second check result.
In this embodiment, the second checking script may be preset in the system, where the second checking script is used to check whether the corresponding content of the bill detail data is a null value, and whether there is a character abnormality in the bill detail data.
In this embodiment, the second checking script checks the detail data of the bill by using a traversal method, and determines whether there are abnormal characters or missing characters, if not, it indicates that the integrity of the bill for the logistics distribution is qualified.
For example, if the corresponding content of the bill settlement object is null, that is, the bill is truly character, the bill is incomplete, that is, the bill is unqualified
S204, if the first check result and the second check result are both qualified, determining that the bill of the logistics distribution fee passes the check.
In this embodiment, only if the billing period and the integrity are both qualified, it is determined that the logistics distribution bill passes the verification, and if either the billing period or the integrity is not qualified, it is determined that the logistics distribution bill passes the verification, and it is necessary to re-acquire the logistics distribution bill.
In this embodiment, the first calibration script is invoked to calibrate the bill period of the logistics distribution bill to obtain a first calibration result, the second calibration script is invoked to calibrate the integrity of the logistics distribution bill to obtain a second calibration result, if both the first calibration result and the second calibration result are qualified, the logistics distribution bill is judged to pass the calibration, and after the logistics distribution bill passes the calibration, the bill is processed, so that the bill processing efficiency can be avoided being improved, and the situation that the bill needs to be repeatedly processed due to incomplete content or the bill period is avoided.
Referring to fig. 3, a third embodiment of a method for managing a bill for delivering a stream according to an embodiment of the present invention includes:
s301, after the logistics distribution fee bill passes verification, generating a bill file in a preset format according to the logistics distribution fee bill.
In this embodiment, a bill file with a preset format may be generated according to the bill of the logistics distribution fee, so as to improve the subsequent analysis speed and improve the analysis accuracy.
S302, analyzing the bill file according to a preset analysis rule to obtain candidate bill information and bill change details.
In this embodiment, the preset parsing rule may be preconfigured according to the parsing requirement, where the parsing requirement in this embodiment is to obtain the candidate bill information and bill change details.
The candidate bill includes, but is not limited to, an order number, a settlement object code, a destination, a settlement fee, a settlement rate, and the like.
Bill change details include all the contents of the change recorded after bill creation.
S303, acquiring matching parameters of the candidate bill information and the target bill information according to a preset matching feature set, and determining the target bill information from the candidate bill information according to the matching parameters, wherein the target bill information comprises an order number, a settlement object code, a destination, settlement expense and a settlement rate.
In this embodiment, the preset matching feature set may be preconfigured according to the requirement of the target bill information.
It will be appreciated that the requirement of the target billing information may be set according to the actual situation, and in this embodiment, the target billing information includes an order number, a settlement object code, a destination, a settlement fee, and a settlement rate, and thus, the preset matching feature set includes the order number, the settlement object code, the destination, the settlement fee, and the settlement rate.
Referring to fig. 4, a fourth embodiment of a method for managing a bill for delivering a stream according to an embodiment of the present invention includes:
s401, when the bill change details have effective contents, carrying out semantic analysis on the bill change details to generate at least one bill change item.
In this embodiment, when the bill change details have valid contents, performing semantic analysis on the bill change details to generate at least one bill change item, including: when a data storage instruction is received, writing the target bill information and bill change details into a cluster of a card message queue; the written target bill information and bill change details are summarized and stored by taking the title as a unit; and when the bill change details have valid contents, invoking the bill change details in the Kaff card message queue to carry out semantic analysis, and generating at least one bill change item.
In this embodiment, semantic analysis refers to learning and understanding semantic content represented by a text segment by using various methods, and any understanding of language can be categorized as semantic analysis. A piece of text is typically composed of words, sentences and paragraphs, and semantic analysis can be further decomposed into vocabulary-level semantic analysis, sentence-level semantic analysis and chapter-level semantic analysis according to the language units of the understanding objects. Generally speaking, lexical level semantic analysis focuses on how to acquire or distinguish the semantics of words, sentence level semantic analysis attempts to analyze the semantics expressed by an entire sentence, while chapter semantic analysis aims at studying the internal structure of natural language text and understanding the semantic relationships between text units (which may be sentence clauses or paragraphs). In short, the objective of semantic analysis is to implement automatic semantic analysis in each language unit (including vocabulary, sentences, chapters, etc.) by building efficient models and systems, thereby implementing understanding of the true semantics of the entire text expression.
In this embodiment, for example, the bill change details include "2023.03.12, order number 1200878623037, and settlement weight is changed from 10kg to 12kg", and settlement weight for change item order number 1200878623037 is changed from 10kg to 12kg.
For another example, where the original destination is bergamot, the bill change details include "2023.03.12, order number 1600330803428, where the destination is modified from guangzhou to bergamot", and where the change is modified from guangzhou to bergamot.
In this embodiment, the kafka message queue is a common technology for exchanging data between distributed applications, where data may be stored in a memory or a hard disk, and the messages stored in the message queue may be stored until the messages are read by the applications. Through the card information queue, each application program can independently and asynchronously execute, the enqueuing and dequeuing speeds of the card information queue can reach millisecond level, and the information queue buffers data in the stream data peak period. The Kafka includes a Producer and a Consumer, the sender of the message is called Producer, the Producer stores data into the Kafka cluster, the Consumer obtains the message to process the service, one topic (header) stores the same type of message, which corresponds to the classification of the message, and each Producer sends the message into the Kafka, which needs to be indicated, namely, which type the message belongs to.
That is, for each message, the card partitions its log, each partition consisting of an ordered series of immutable messages that are appended consecutively to the partition. Each message in a partition has a continuous sequence number called offset. The partitioning purpose is: each log is small, can be saved on a single service, and each partition can be issued and consumed separately.
S402, if the number of the bill change matters in the same category is one, acquiring the change factors of the bill according to the bill change matters.
In this embodiment, the bill change factor corresponding to each bill change item may be obtained through the bill change item, where the bill change factor mainly includes a settlement object, a settlement object code, a bid object, a settlement weight, a settlement volume, a destination, a transportation mode, a distribution fee, a floating fee, a prepaid fee, a chargeable fee, a change amount, a settlement rate, and the like.
In the present embodiment, the change factors such as the settlement object, settlement object code, settlement weight, settlement volume, and settlement rate are mainly focused.
S403, if the number of bill change matters in the same category is more than two, acquiring the change time of the bill change matters, and sequencing the bill change matters according to the change time; and acquiring the change factors of the bill according to the bill change matters with the later change time.
In this embodiment, since the same order is likely to be modified twice or more for the same modification object, for example, the bill change details include "2023.03.12, order number 1200878623037, and settlement weight is modified from 10kg to 12kg;2023.03.13 order of 1200878623037, the settlement weight is changed from 12kg to 11kg ", the settlement weight of change order 1200878623037 is changed from 10kg to 12kg and the settlement weight of change order 1200878623037 is changed from 12kg to 11kg to the same category of bill change, and the two bill change items are ordered first, i.e. the change item with the change time 2023.03.12 (the settlement weight of order 1200878623037 is changed from 10kg to 12 kg) is preceded and the change item with the change time 2023.03.13 (the settlement weight of order 1200878623037 is changed from 12kg to 11 kg) is followed when the change factor of the bill is obtained. And then obtaining the change factor of the bill according to the change matters of the bill after the change time, for example, the bill change detail comprises the change matters with the change time of 2023.03.12 (the settlement weight of the order number 1200878623037 is modified by 10kg to 12 kg) and the change matters with the change time of 2023.03.13 (the settlement weight of the order number 1200878623037 is modified by 12kg to 11 kg), and obtaining the change factor from the change matters with the change time of 2023.03.13, namely, the final result of the settlement weight is 11kg.
Referring to fig. 5, a fifth embodiment of a method for managing a bill for delivering a stream according to an embodiment of the present invention includes:
s501, extracting character features of a change factor of the bill.
In this embodiment, character features corresponding to different variation factors may be preset in the system, and when the variation factors of the bill are known, the character features of each variation factor may be extracted. Character features may consist of numbers and special symbols, with different varying factors, and character features.
S502, calling a preset character matching algorithm to match the extracted character features, if the matching is successful, judging that the change factor of the bill is the change factor affecting the distribution cost, and outputting a matching result.
It will be appreciated that the predetermined character matching algorithm employs a general pattern matching algorithm. The algorithm idea is as follows: matching the first character of the target string S with the first character of the pattern string T, and if the first character of the target string S is equal to the first character of the pattern string T, continuously comparing the second character of the target string S with the second character of the pattern string T; if not, comparing the second character of S with the first character of T, and sequentially comparing until the final matching result is obtained.
S503, obtaining a change factor influencing the distribution cost according to the matching result, and updating the target bill information according to the corresponding change factor.
In this embodiment, after outputting the matching result, the matching result is converted into a corresponding change factor, and the target bill information is updated according to the corresponding change factor, which specifically includes: acquiring a change factor influencing distribution cost according to the matching result; if the corresponding change factors are the settlement object and the settlement object code, updating the settlement object and the settlement object code in the target bill information; if the corresponding change factors are settlement weight, settlement volume and destination, calculating settlement cost again according to the settlement weight and a preset charging rule or the settlement volume, the preset charging rule or the destination and the preset charging rule, and updating the settlement cost in the target bill information; and if the corresponding change factor is the settlement rate, updating the settlement rate in the target bill information.
It can be understood that the preset charging rule may be an existing charging rule about distribution cost of a headquarter, and may be pre-stored in the system, and when the charging rule needs to be updated, the preset charging rule existing in the system may be directly covered by the updated charging rule.
The embodiment provides a logistics distribution fee bill management method, which automatically updates target bill information according to corresponding change factors after determining that the change factors of bills have the change factors influencing distribution fees, so that bill change details can be fed back to the target bill information to be settled in real time.
The method for managing the bill of the material flow distribution fee in the embodiment of the invention is described above, the device in the embodiment of the invention is described below, referring to fig. 6, an embodiment of a bill management device for delivering a bill according to an embodiment of the present invention includes:
the verification module 601 is configured to obtain a logistics distribution bill, and perform validity verification on the logistics distribution bill;
the analysis module 602 is configured to analyze the logistics distribution bill after the logistics distribution bill passes the verification, so as to obtain target bill information and bill change details;
the analysis module 603 is configured to analyze the bill change details when the bill change details have valid contents, and obtain a change factor of a bill;
and the updating module 604 is configured to determine whether a change factor affecting the distribution cost exists in the change factor of the bill, and update the target bill information according to the corresponding change factor after determining that the change factor affecting the distribution cost exists in the change factor of the bill.
In this embodiment, the verification module 601 includes: a first acquiring unit 6011 configured to acquire a logistics distribution bill; the first calling unit 6012 is configured to call a first verification script to verify a billing period of the logistics distribution bill, so as to obtain a first verification result; the second calling unit 6013 is configured to call a second check script to check the integrity of the logistics distribution bill, so as to obtain a second check result; and a determining unit 6014 configured to determine that the bill for delivering the logistics distribution passes the verification when both the first verification result and the second verification result are qualified.
In this embodiment, the parsing module 602 includes: the generation unit 6021 is configured to generate a bill file in a preset format according to the logistics distribution bill after the logistics distribution bill passes the verification; the parsing unit 6022 is configured to parse the bill file according to a preset parsing rule to obtain candidate bill information and bill change details; the determining unit 6023 is configured to obtain matching parameters of the candidate bill information and the target bill information according to a preset matching feature set, and determine the target bill information from the candidate bill information according to the matching parameters, where the target bill information includes an order number, a settlement object code, a destination, a settlement fee, and a settlement rate.
In this embodiment, the analysis module 603 includes: an analysis unit 6031 for performing semantic analysis on the bill change details to generate at least one bill change item when it is determined that the bill change details have valid contents; a second obtaining unit 6032, configured to obtain a change factor of the bill according to the bill change item after determining that the number of the bill change items of the same category is one; the third obtaining unit 6033 is configured to obtain a change time of the two or more bill change items after determining that the number of bill change items in the same category is two or more, and sequentially order the two or more bill change items according to the change time; and acquiring the change factors of the bill according to the bill change matters with the later change time.
In this embodiment, the update module 604 includes: an extracting unit 6041 for extracting character features of a variation factor of the bill; the matching unit 6042 is configured to invoke a preset character matching algorithm to match the extracted character features, and if the matching is successful, determine that a change factor of the bill is a change factor affecting the distribution cost, and output a matching result; and an updating unit 6043 for acquiring a change factor affecting the distribution cost according to the matching result, and updating the target bill information according to the corresponding change factor.
In this embodiment, when it is determined that the bill change details have valid contents, the bill change details are analyzed and processed to obtain a change factor of the bill, and after it is determined that the change factor of the bill has a change factor affecting distribution cost, the target bill information is automatically updated according to the corresponding change factor, so that the bill change details can be fed back to the target bill information to be settled in real time.
The above detailed description of the flow distribution fee bill management device in the embodiment of the present invention is given in fig. 6 from the point of view of the modularized functional entity, and the detailed description of the flow distribution fee bill management apparatus in the embodiment of the present invention is given in the point of view of the hardware processing.
Fig. 7 is a schematic structural diagram of a bill management device for logistics distribution according to an embodiment of the present invention, where the device 700 may have a relatively large difference due to different configurations or performances, and may include one or more processors (central processing units, CPU) 710 (e.g., one or more processors) and a memory 720, and one or more storage media 730 (e.g., one or more mass storage devices) storing application programs 733 or data 732. Wherein memory 720 and storage medium 730 may be transitory or persistent. The program stored on the storage medium 730 may include one or more modules (not shown), each of which may include a series of instruction operations in the device 700. Still further, the processor 710 may be configured to communicate with a storage medium 730 in which a series of instruction operations are performed on the device 700.
The device 700 may also include one or more power supplies 740, one or more wired or wireless network interfaces 750, one or more input/output interfaces 760, and/or one or more operating systems 731, such as Windows Serves, mac OS X, unix, linux, freeBSD, etc.
The embodiment of the invention also provides a computer readable storage medium, which can be a nonvolatile computer readable storage medium, and can also be a volatile computer readable storage medium, wherein instructions are stored in the computer readable storage medium, and when the instructions run on a computer, the instructions cause the computer to execute the steps of the logistics distribution bill management method.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the system or apparatus and unit described above may refer to the corresponding process in the foregoing method embodiment, which is not repeated herein.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for managing a bill for a distribution of a stream, the method comprising:
acquiring a logistics distribution bill, and checking the validity of the logistics distribution bill;
after the logistics distribution bill passes the verification, analyzing the logistics distribution bill to obtain target bill information and bill change details;
when the bill change details have effective contents, analyzing and processing the bill change details to acquire bill change factors;
judging whether the change factors of the bill have change factors influencing the distribution cost, and updating the target bill information according to the corresponding change factors after judging that the change factors of the bill have change factors influencing the distribution cost.
2. The method for managing a bill for distribution of a commodity circulation according to claim 1, wherein said obtaining a bill for distribution of a commodity circulation and verifying the validity of said bill for distribution of a commodity circulation comprise:
acquiring a logistics distribution bill;
calling a first verification script to verify the bill period of the logistics distribution bill to obtain a first verification result;
invoking a second check script to check the integrity of the logistics distribution bill to obtain a second check result;
and if the first check result and the second check result are both qualified, judging that the logistics distribution fee bill passes the check.
3. The method for managing a bill for logistics distribution according to claim 1, wherein after the bill for logistics distribution passes the verification, the bill for logistics distribution is analyzed to obtain the target bill information and bill change details, comprising:
after the logistics distribution fee bill passes the verification, generating a bill file in a preset format according to the logistics distribution fee bill;
analyzing the bill file according to a preset analysis rule to obtain candidate bill information and bill change details;
And acquiring matching parameters of the candidate bill information and the target bill information according to a preset matching feature set, and determining the target bill information from the candidate bill information according to the matching parameters, wherein the target bill information comprises an order number, a settlement object code, a destination, settlement expense and a settlement rate.
4. The method for managing bill of logistics distribution fee according to claim 1, wherein when the bill change details have valid contents, analyzing and processing the bill change details to obtain a change factor of a bill, comprising:
when the bill change details have valid contents, carrying out semantic analysis on the bill change details to generate at least one bill change item;
if the number of the bill change matters in the same category is one, acquiring a change factor of a bill according to the bill change matters;
if the number of the bill change matters in the same category is more than two, acquiring the change time of the bill change matters, and sequencing the bill change matters according to the change time; and acquiring the change factors of the bill according to the bill change matters with the later change time.
5. The method for managing logistics distribution fees and bills according to claim 4, wherein when the bill change details have valid contents, performing semantic analysis on the bill change details to generate at least one bill change item, comprising:
when a data storage instruction is received, writing the target bill information and the bill change detail into a cluster of a card message queue;
the written target bill information and bill change details are summarized and stored by taking the title as a unit;
and when the bill change details have valid contents, invoking the bill change details in the Kaff card message queue to carry out semantic analysis, and generating at least one bill change item.
6. The method for managing a bill for a logistics distribution fee according to claim 1, wherein the determining whether the variation factor of the bill has a variation factor affecting the distribution fee, and updating the target bill information according to the corresponding variation factor after determining that the variation factor of the bill has a variation factor affecting the distribution fee, comprises:
extracting character features of the change factors of the bill;
calling a preset character matching algorithm to match the extracted character features, if the matching is successful, judging that the change factor of the bill is a change factor affecting the distribution cost, and outputting a matching result;
And acquiring a change factor influencing the distribution cost according to the matching result, and updating the target bill information according to the corresponding change factor.
7. The method for managing bill of logistics distribution fees according to claim 6, wherein said obtaining a change factor affecting the distribution fees according to the matching result and updating the target bill information according to the corresponding change factor comprises:
acquiring a change factor influencing distribution cost according to the matching result;
if the corresponding change factors are the settlement object and the settlement object code, updating the settlement object and the settlement object code in the target bill information;
if the corresponding change factors are settlement weight, settlement volume and destination, calculating settlement cost again according to the settlement weight, a preset charging rule or the settlement volume, a preset charging rule or the destination and a preset charging rule, and updating the settlement cost in the target bill information;
and if the corresponding change factor is the settlement rate, updating the settlement rate in the target bill information.
8. A logistics distribution fee bill management apparatus, comprising:
The verification module is used for acquiring a logistics distribution bill and verifying the validity of the logistics distribution bill;
the analysis module is used for analyzing the logistics distribution bill after the logistics distribution bill passes the verification to obtain target bill information and bill change details;
the analysis module is used for analyzing and processing the bill change details to acquire the change factors of the bill when the bill change details have effective contents;
and the updating module is used for judging whether the change factors of the bill have the change factors influencing the distribution cost or not, and updating the target bill information according to the corresponding change factors after judging that the change factors of the bill have the change factors influencing the distribution cost.
9. A logistics distribution fee bill management apparatus comprising a memory and at least one processor, said memory having computer readable instructions stored therein;
the at least one processor invoking the computer readable instructions in the memory to perform the steps of the logistics distribution fee bill management method of any one of claims 1-7.
10. A computer readable storage medium having computer readable instructions stored thereon, which when executed by a processor, implement the steps of the method of logistics distribution fee bill management of any one of claims 1-7.
CN202310287418.4A 2023-03-21 2023-03-21 Method, device, equipment and storage medium for managing bill of material flow distribution Pending CN116384854A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310287418.4A CN116384854A (en) 2023-03-21 2023-03-21 Method, device, equipment and storage medium for managing bill of material flow distribution

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310287418.4A CN116384854A (en) 2023-03-21 2023-03-21 Method, device, equipment and storage medium for managing bill of material flow distribution

Publications (1)

Publication Number Publication Date
CN116384854A true CN116384854A (en) 2023-07-04

Family

ID=86974274

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310287418.4A Pending CN116384854A (en) 2023-03-21 2023-03-21 Method, device, equipment and storage medium for managing bill of material flow distribution

Country Status (1)

Country Link
CN (1) CN116384854A (en)

Similar Documents

Publication Publication Date Title
CN111274782B (en) Text auditing method and device, computer equipment and readable storage medium
US11195008B2 (en) Electronic document data extraction
US20120330971A1 (en) Itemized receipt extraction using machine learning
US20130110686A1 (en) Automatic report generation system and method therefor
CN114998920B (en) Supply chain financial file management method and system based on NLP semantic recognition
CN106610932A (en) Corpus processing method and device and corpus analyzing method and device
CN110163683B (en) Value user key index determination method, advertisement delivery method and device
CN112037039A (en) Loan assessment method and device
US8719007B2 (en) Determining offer terms from text
CN116228265A (en) Invoice risk identification method, device and equipment
CN116384854A (en) Method, device, equipment and storage medium for managing bill of material flow distribution
CN111597813A (en) Method and device for extracting text abstract of short message based on named entity identification
CN115170017A (en) Waybill processing method and device and storage medium
US11507864B2 (en) Computerized method of training a computer executed model for recognizing numerical quantities
CN112380321A (en) Primary and secondary database distribution method based on bill knowledge graph and related equipment
CN113537964A (en) Application form processing method, device, storage medium and device
CN113962205A (en) Method and device for pasting spreadsheet contents, electronic equipment and storage medium
CN115705506A (en) Method, device, equipment and computer storage medium for predicting package transportation risk
CN115082179A (en) Data processing method, device, equipment and storage medium
CN116028620B (en) Method and system for generating patent abstract based on multi-task feature cooperation
CN113590841B (en) Intelligent rapid examination and intelligent early warning system and method based on knowledge graph
TWI768744B (en) Reference document generation method and system
CN113723881A (en) Freight note separate-moistening settlement method, device, equipment and storage medium
CN115600973A (en) Method, device, equipment, storage medium and program product for generating service application
CN116644067A (en) Method and related device for determining change content of data warehouse supervision message

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination