CN113744058A - Transaction line processing method and device - Google Patents

Transaction line processing method and device Download PDF

Info

Publication number
CN113744058A
CN113744058A CN202111048763.XA CN202111048763A CN113744058A CN 113744058 A CN113744058 A CN 113744058A CN 202111048763 A CN202111048763 A CN 202111048763A CN 113744058 A CN113744058 A CN 113744058A
Authority
CN
China
Prior art keywords
transaction
transaction line
line
matched
substructure
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
CN202111048763.XA
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.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202111048763.XA priority Critical patent/CN113744058A/en
Publication of CN113744058A publication Critical patent/CN113744058A/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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • 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)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • General Physics & Mathematics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Evolutionary Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Computation (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application discloses a method and a device for processing a transaction line, wherein the method comprises the following steps: acquiring each transaction line in a design state and a production state; dividing each transaction line to be matched corresponding to each transaction line in a design state or a production state into a plurality of substructures; the transaction lines to be matched corresponding to the transaction lines are the transaction lines in different states; calculating the similarity score between each substructure of each transaction line to be matched and the transaction line corresponding to the transaction line based on the offset of the transaction line and the substructure of the corresponding transaction line to be matched for each transaction line; respectively calculating the sum of similarity scores of each substructure of each transaction line to be matched and the transaction line corresponding to each transaction line to obtain the similarity score of each transaction line and each transaction line to be matched corresponding to each transaction line; and respectively determining the transaction lines to be matched with each transaction line according to the similarity scores of each transaction line and each corresponding transaction line to be matched to obtain a matching result.

Description

Transaction line processing method and device
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method and an apparatus for processing a transaction line.
Background
At present, in order to facilitate management of a transaction system, a log is usually collected through transaction monitoring, and a call relation of each transaction path is displayed according to information such as a security node number and a global tracking number on the log, that is, a productive transaction in which a plurality of nodes are connected through directed line segments is constructed according to transaction path data. Meanwhile, on the architecture view system, there is a transaction line in a design state designed by an architect, that is, the architect considers that a transaction path has a corresponding calling relationship.
In order to ensure that emergency operation and maintenance can be carried out on the transaction line on the architecture view system, the transaction line in the design state is required to be consistent with the transaction line in the production state, so that the transaction line in the design state and the transaction line in the production state are matched manually, and then the matching condition is analyzed manually.
However, the manual matching method is not only inefficient, but also relatively low in accuracy, and cannot effectively ensure the consistency between the designed transaction line and the production transaction line.
Disclosure of Invention
Based on the defects of the prior art, the application provides a transaction line processing method and device, so as to solve the problem of low efficiency and accuracy of the prior art.
In order to achieve the above object, the present application provides the following technical solutions:
the first aspect of the present application provides a method for processing a transaction line, including:
acquiring each transaction line in a design state and a production state;
dividing each transaction line to be matched corresponding to each transaction line in a target state into a plurality of substructures; wherein the target state is a design state or a production state; the transaction lines to be matched corresponding to the transaction lines are all the transaction lines in different states with the transaction lines;
for each transaction line, respectively calculating the similarity score between each substructure of each transaction line to be matched and the transaction line corresponding to the transaction line based on the offset of the transaction line and the corresponding substructure of the transaction line to be matched;
respectively calculating the sum of similarity scores of each substructure of each transaction line to be matched corresponding to each transaction line and the transaction line to obtain the similarity score of each transaction line and each transaction line to be matched corresponding to the transaction line;
and respectively determining the transaction lines to be matched with each transaction line according to the similarity scores of each transaction line and each corresponding transaction line to be matched, so as to obtain a matching result.
Optionally, in the foregoing method, the splitting each to-be-matched transaction line corresponding to each transaction line in the target state into a plurality of substructures respectively includes:
and splitting each node in the transaction lines to be matched and the next node connected with the node into a substructure aiming at each transaction line to be matched corresponding to each transaction line in a target state, so as to obtain a plurality of substructures of the transaction lines to be matched.
Optionally, in the above method, the calculating, for each of the transaction lines, a similarity score between each substructure of each of the transaction lines to be matched corresponding to the transaction line and the transaction line based on an offset between the transaction line and the corresponding substructure of the transaction line to be matched respectively includes:
for each transaction line, respectively determining the sequence of the first node of each substructure of each transaction line to be matched, which corresponds to the transaction line, in the transaction line to be matched as the position information of the substructure in the transaction line to be matched;
determining the sequence of the first node of the substructure of each transaction line to be matched corresponding to the transaction line in the transaction line as the position information of the substructure in the transaction line;
respectively calculating the difference value of the position information of each substructure in the transaction line to be matched and the position information of each substructure in the transaction line to obtain the offset of each substructure;
calculating the reciprocal of the N power of a preset fixed coefficient aiming at each substructure to obtain a similarity score of the substructure and the transaction line; wherein N is an offset of the substructure.
Optionally, in the foregoing method, after the determining the transaction lines to be matched that are matched with each transaction line according to the similarity score between each transaction line and each corresponding transaction line to be matched, and obtaining a matching result, the method further includes:
for each service scene, determining the number of the transaction lines which belong to the service scene and are successfully matched as the matching number corresponding to the service scene;
dividing the matching number corresponding to each service scene by the total number of the transaction lines which belong to the service scene and are in the design state respectively to obtain the accuracy corresponding to each service scene;
dividing the matching number corresponding to each service scene by the total number of the transaction lines which belong to the service scene and are in the production state respectively to obtain the coverage rate corresponding to each service scene;
and for each service scene, if the accuracy corresponding to the service scene is greater than a first preset value and the corresponding coverage rate is greater than a second preset value, feeding back that the service scene meets the requirement.
Optionally, in the foregoing method, after the determining the transaction lines to be matched that are matched with each transaction line according to the similarity score between each transaction line and each corresponding transaction line to be matched, and obtaining a matching result, the method further includes:
determining each first transaction line only existing in the design state and determining each second transaction line only existing in the production state from the acquired transaction lines based on the matching result;
adding the first transaction line belonging to production aggregation error to a blacklist, and adding the second transaction line belonging to low frequency transaction to a whitelist.
Optionally, in the foregoing method, after the determining the transaction lines to be matched that are matched with each transaction line according to the similarity score between each transaction line and each corresponding transaction line to be matched, and obtaining a matching result, the method further includes:
determining each target transaction line which is not successfully matched based on the matching result;
judging whether the target transaction line only passes through a system initiator or does not pass through a target system;
if the target transaction line is judged to pass through the system initiator only or not pass through the target system, feeding back that the target transaction line has errors;
if the target transaction line is judged to pass through not only the system initiator but also the target system, judging whether the target transaction line does not pass through the main application of the business scene;
and if the target transaction line is judged not to pass through the main application of the service scene, feeding back that the target transaction line has a higher error probability.
A second aspect of the present application provides a processing apparatus for a transaction line, comprising:
the acquisition unit is used for acquiring each transaction line in a design state and a production state;
the splitting unit is used for splitting each transaction line to be matched corresponding to each transaction line in a target state into a plurality of substructures; wherein the target state is a design state or a production state; the transaction lines to be matched corresponding to the transaction lines are all the transaction lines in different states with the transaction lines;
the first calculation unit is used for calculating the similarity score between each substructure of each transaction line to be matched and the transaction line corresponding to the transaction line respectively according to the offset of the transaction line and the corresponding substructure of the transaction line to be matched;
the second calculation unit is used for calculating the sum of similarity scores of each substructure of each transaction line to be matched and the transaction line corresponding to each transaction line respectively to obtain the similarity score of each transaction line and each transaction line to be matched corresponding to the transaction line;
and the result determining unit is used for respectively determining the transaction lines to be matched with each transaction line according to the similarity scores of each transaction line and each corresponding transaction line to be matched, so as to obtain a matching result.
Optionally, in the above apparatus, the splitting unit includes:
and the splitting subunit is used for splitting each node in the transaction lines to be matched and the next node connected with the node into a substructure aiming at each transaction line to be matched corresponding to each transaction line in a target state, so as to obtain a plurality of substructures of the transaction lines to be matched.
Optionally, in the above apparatus, the first calculating unit includes:
the first position determining unit is used for respectively determining the first node of each substructure of each transaction line to be matched, which corresponds to each transaction line, in the sequence of the transaction line to be matched as the position information of the substructure in the transaction line to be matched;
the second position determining unit is used for determining the first node of the substructure of each transaction line to be matched, which corresponds to the transaction line, in the sequence of the transaction line as the position information of the substructure in the transaction line;
the offset calculation unit is used for respectively calculating the difference value between the position information of each substructure in the transaction line to be matched and the position information of each substructure in the transaction line to obtain the offset of each substructure;
the first similarity calculation unit is used for calculating the reciprocal of the N power of a preset fixed coefficient aiming at each substructure to obtain a similarity score between the substructure and the transaction line; wherein N is an offset of the substructure.
Optionally, in the above apparatus, further comprising:
the quantity determining unit is used for determining the quantity of the transaction lines which belong to the service scenes and are successfully matched as the matching quantity corresponding to the service scenes aiming at each service scene;
the accuracy calculation unit is used for dividing the matching number corresponding to each service scene by the total number of the transaction lines which belong to the service scene and are in the design state respectively to obtain the accuracy corresponding to each service scene;
the coverage rate calculation unit is used for dividing the matching number corresponding to each service scene by the total number of the transaction lines which belong to the service scene and are in the production state respectively to obtain the coverage rate corresponding to each service scene;
and the first feedback unit is used for feeding back that the service scenes meet the requirements if the accuracy corresponding to the service scenes is greater than a first preset value and the corresponding coverage rate is greater than a second preset value aiming at each service scene.
Optionally, in the above apparatus, further comprising:
the first transaction line determining unit is used for determining each first transaction line only existing in the design state and determining each second transaction line only existing in the production state from the acquired transaction lines based on the matching result;
the dividing unit is used for adding the first transaction line belonging to the production aggregation error to a blacklist and adding the second transaction line belonging to the low-frequency transaction to a whitelist.
Optionally, in the above apparatus, further comprising:
the second transaction line determining unit is used for determining each target transaction line which is not successfully matched based on the matching result;
the first judgment unit is used for judging whether the target transaction line only passes through a system initiator or does not pass through a target system;
the second feedback unit is used for feeding back that the target transaction line has errors if the target transaction line is judged to pass through the system initiator only or not pass through the target system;
the second judgment unit is used for judging whether the target transaction line passes through the main application of the business scene if the target transaction line passes through the target system instead of the system initiator;
and the third feedback unit is used for feeding back the target transaction line with a higher error probability if the target transaction line is judged not to pass through the main application of the service scene.
According to the processing method of the transaction line, the transaction lines in the design state and the production state are obtained, and then the transaction lines to be matched corresponding to the transaction lines in the target state are divided into a plurality of substructures. The target state is a design state or a production state, and the transaction lines to be matched corresponding to the transaction lines are all the transaction lines in different states with the transaction lines. And respectively calculating the similarity score of each substructure of each transaction line to be matched and the transaction line corresponding to the transaction line based on the offset of the transaction line and the corresponding substructure of the transaction line to be matched, and respectively calculating the sum of the similarity scores of each substructure of each transaction line to be matched and the transaction line corresponding to each transaction line to obtain the similarity score of each transaction line and each corresponding transaction line to be matched. And finally, according to the similarity score of each transaction line and each corresponding transaction line to be matched, the transaction line to be matched with each transaction line is respectively determined, and a matching result is obtained, so that the matching of the transaction lines in a design state and a production state is efficiently and accurately realized based on a mode of splitting the transaction lines and calculating the similarity score.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a processing method of a transaction line according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a split transaction line provided by an embodiment of the present application;
FIG. 3 is a flow chart of a method for calculating a similarity score between a substructure and a trade line according to another embodiment of the present application;
fig. 4 is a flowchart of a method for evaluating a service scenario according to another embodiment of the present application;
FIG. 5 is a flow chart of a method for processing transaction lines that have not been successfully matched according to another embodiment of the present application;
fig. 6 is a flowchart of a transaction line analysis method according to another embodiment of the present application;
fig. 7 is a schematic structural diagram of a processing device of a transaction line according to another embodiment of the present application;
fig. 8 is a schematic structural diagram of a first computing unit according to another embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In this application, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The embodiment of the application provides a processing method of a transaction line, as shown in fig. 1, comprising the following steps:
s101, obtaining each transaction line in a design state and a production state.
Specifically, the generated transaction lines in the design state and the production state are obtained.
S102, splitting each transaction line to be matched corresponding to each transaction line in the target state into a plurality of substructures.
The transaction lines to be matched corresponding to the transaction lines are all the transaction lines in different states from the transaction lines, that is, if the transaction lines are in a design state, the corresponding transaction lines to be matched are all the transaction lines in a production state, and if the transaction lines are in the production state, the corresponding transaction lines to be matched are all the transaction lines in the design state. And the target state is a design state or a production state, that is, the transaction line in the production state can be matched with the target state for each transaction line in the design state, or the transaction line in the design state can be matched with the target state for each transaction line in the production state, and the obtained results are the same, so that the matching condition and whether the design state and the production state of the transaction lines are consistent can be determined.
Geometrically, if two graphs G and H are to be defined that are very similar, they should be locally sufficiently similar. That is, if a relatively large piece is torn from G, then it should be possible to find a portion of H that is locally almost homogeneous with the portion of the picture that was torn. Based on this, the transaction line to be matched is split into a plurality of substructures, namely, the transaction line is split into a plurality of small sections, and then the substructures are matched with the transaction line, so that whether the transaction line to be matched is matched with the transaction line is determined.
S103, for each transaction line, respectively calculating the similarity score between each substructure of each transaction line to be matched and the transaction line corresponding to the transaction line based on the offset of the transaction line and the substructure of the corresponding transaction line to be matched.
The offset of the substructure refers to a position offset, that is, an offset of the substructure between the transaction line to be matched and the position in the transaction line.
Since, for similar or identical transaction lines, they should have the same substructure and the positions of the substructures should be the same or very close, the similarity score between the substructure and the transaction line can be calculated from the offset of the transaction line from the corresponding substructure of the transaction line to be matched.
Optionally, in another embodiment of the present application, a specific implementation manner of step S102 includes:
and respectively splitting each node in the transaction lines to be matched and the next node connected with the node into a substructure aiming at each transaction line to be matched corresponding to each transaction line in the target state, so as to obtain a plurality of substructures of the transaction lines to be matched.
That is, each sub-structure is made up of two sub-nodes connected by directed line segments. And for each node on the transaction line to be matched, except the first node and the last node, other nodes exist in two substructures, wherein one of the substructures is used as the second node, and the other substructures is used as the first node. For example, a transaction line as shown in fig. 2, which includes nodes from a to F, is then split into 5 word structures.
Accordingly, the implementation manner of step S103 in the embodiment of the present application, as shown in fig. 3, includes the following steps:
s301, aiming at each transaction line, respectively determining the sequence of the first node of each substructure of each transaction line to be matched, which corresponds to the transaction line, in the transaction line to be matched as the position information of the substructure in the transaction line to be matched.
The transaction line is a sequence formed by a plurality of nodes, so the sequence of the nodes on the transaction line is the position information of the nodes, and the sequence of the first node of the substructure in the transaction line to be matched is used as the position information of the substructure in the transaction line to be matched. For example, referring also to fig. 2, the position information of 5 substructures is 1, 2, 3, 4, 5, respectively.
S302, determining the sequence of the first node of the substructure of each transaction line to be matched corresponding to the transaction line in the transaction line as the position information of the substructure in the transaction line.
Optionally, if the first node of the substructure does not appear in the transaction line, it may be determined that the position information of the substructure in the transaction line is null, and when step S303 is executed, the offset of the substructure may not be calculated, and further, it is not necessary to calculate the similarity score between the substructure and the transaction line because it is not similar to the transaction line. Of course, the similarity score of the substructure to the transaction line may also be set to 0.
And S303, respectively calculating the difference value between the position information of each substructure in the transaction line to be matched and the position information of each substructure in the transaction line to obtain the offset of each substructure.
S304, calculating the reciprocal of the N power of a preset fixed coefficient aiming at each substructure to obtain the similarity score of the substructure and the transaction line, wherein N is the offset of the substructure.
Therefore, in the embodiment of the present application, the similarity score between the substructure and the transaction line can be expressed as:
Figure BDA0003252039780000091
where K represents a preset fixed coefficient.
It should be noted that the preset specified coefficient can be set according to the actual service requirement. When the preset fixed coefficient is greater than 1, the weight of the node is greater, and when the preset fixed coefficient is greater than 1, the position weight is more important.
And S104, respectively calculating the sum of the similarity scores of the substructures of the transaction lines to be matched corresponding to each transaction line and the transaction lines to obtain the similarity score of each transaction line and each transaction line to be matched corresponding to the transaction line.
And S105, respectively determining the transaction lines to be matched with each transaction line according to the similarity scores of each transaction line and each corresponding transaction line to be matched, and obtaining a matching result.
Optionally, when the similarity score between the transaction line and the transaction line to be matched is greater than a preset threshold, it is determined that the transaction line is matched with the transaction line to be matched.
The matching structure may include information such as a transaction line that is successfully matched, a transaction line that is not matched in a production state and a design state, and the like.
Optionally, in another embodiment of the present application, after the step S105 is executed, the service scenario may be further evaluated based on the obtained matching result. Optionally, as shown in fig. 4, the method for evaluating a service scenario provided in the embodiment of the present application includes the following steps:
s401, aiming at each service scene, determining the number of the transaction lines which belong to the service scene and are successfully matched as the matching number corresponding to the service scene.
S402, dividing the matching number corresponding to each service scene by the total number of the transaction lines which belong to the service scene and are in the design state respectively to obtain the accuracy corresponding to each service scene.
It should be noted that, since the frequency of occurrence of the production-state transaction lines corresponding to the transaction lines in the design state is too low, the transaction lines in the portion are not acquired, and therefore the total number of the transaction lines is usually the number of the acquired transaction lines and the number of the manually confirmed transaction lines.
Specifically, the accuracy corresponding to the service scenario may be represented as:
Figure BDA0003252039780000101
wherein n is the number of the acquired transaction lines in the design state, p is the total number of the transaction lines belonging to the service scene and in the design state, and q is the number of the manually confirmed transaction lines in the design state.
And S403, dividing the matching number corresponding to each service scene by the total number of the transaction lines which belong to the service scene and are in the production state respectively to obtain the coverage rate corresponding to each service scene.
Similarly, the coverage rate corresponding to the service scenario can be expressed as:
Figure BDA0003252039780000102
where m is the total number of transaction lines in production.
S404, feeding back the service scenes to meet the requirements if the accuracy rate corresponding to the service scenes is greater than a first preset value and the corresponding coverage rate is greater than a second preset value for each service scene.
Optionally, in order to facilitate associating the transaction lines that are not successfully matched, in another embodiment of the present application, after performing step S105, the transaction lines that are not successfully matched are further divided. As shown in fig. 5, the method for processing the transaction line that is not successfully matched according to the embodiment of the present application includes:
s501, based on the matching result, determining each first transaction line only existing in the design state and determining each second transaction line only existing in the production state from the obtained transaction lines.
S502, adding a first transaction line belonging to production aggregation error to a blacklist, and adding a second transaction line belonging to low-frequency transaction to a whitelist.
The production collection error refers to an error that production data should not be collected into a set to generate a production transaction line, which indicates that the production transaction line has a problem. The lines meeting these requirements are blacklisted for processing.
For low-frequency transactions, the problem does not exist, the low-frequency transactions are not accurately acquired due to low frequency, the matching fails, and the transaction lines need to be added into a white list so as to be further verified manually in the following process.
Optionally, in another embodiment of the present application, after step S105 is executed, further analyzing the transaction line that is not successfully matched, as shown in fig. 6, the method for analyzing the transaction line provided in the embodiment of the present application includes:
s601, determining each target transaction line which is not successfully matched based on the matching result.
S602, judging whether the target transaction line only passes through the system initiator or does not pass through the target system.
If the target transaction line is determined to pass only the system initiator or not pass the target system, step S603 is executed, otherwise step S604 is executed.
And S603, feeding back that the target transaction line has errors.
S604, judging whether the target transaction line does not pass through the main application of the business scene.
If it is determined that the target transaction line does not pass through the main application of the service scenario, step S605 is executed.
And S605, feeding back a target transaction line with a high error probability.
The reason for the failure of the transaction line matching is preliminarily judged, so that the reason can be conveniently and quickly found out by subsequent manual work, and the processing efficiency of the transaction line is improved.
The embodiment of the application provides a processing method of a transaction line, which comprises the steps of obtaining each transaction line in a design state and a production state, and then respectively splitting each transaction line to be matched corresponding to each transaction line in a target state into a plurality of substructures. The target state is a design state or a production state, and the transaction lines to be matched corresponding to the transaction lines are all the transaction lines in different states with the transaction lines. And respectively calculating the similarity score of each substructure of each transaction line to be matched and the transaction line corresponding to the transaction line based on the offset of the transaction line and the corresponding substructure of the transaction line to be matched, and respectively calculating the sum of the similarity scores of each substructure of each transaction line to be matched and the transaction line corresponding to each transaction line to obtain the similarity score of each transaction line and each corresponding transaction line to be matched. And finally, according to the similarity score of each transaction line and each corresponding transaction line to be matched, the transaction line to be matched with each transaction line is respectively determined, and a matching result is obtained, so that the matching of the transaction lines in a design state and a production state is efficiently and accurately realized based on a mode of splitting the transaction lines and calculating the similarity score.
Another embodiment of the present application provides a processing apparatus for a transaction line, as shown in fig. 7, including:
an obtaining unit 701 is configured to obtain each transaction line in a design state and a production state.
The splitting unit 702 is configured to split each transaction line to be matched, which corresponds to each transaction line in the target state, into a plurality of substructures.
Wherein the target state is a design state or a production state. The transaction lines to be matched corresponding to the transaction lines are all the transaction lines in different states with the transaction lines.
A first calculating unit 703, configured to calculate, for each transaction line, a similarity score between each substructure of each transaction line to be matched and the transaction line corresponding to the transaction line, based on an offset between the transaction line and the corresponding substructure of the transaction line to be matched.
A second calculating unit 704, configured to calculate a sum of similarity scores between each substructure of each transaction line to be matched and the transaction line corresponding to each transaction line, respectively, so as to obtain a similarity score between each transaction line and each transaction line to be matched corresponding to the transaction line.
The result determining unit 705 is configured to determine the transaction lines to be matched that are matched with each transaction line respectively according to the similarity score between each transaction line and each corresponding transaction line to be matched, so as to obtain a matching result.
Optionally, another embodiment of the present application provides a splitting unit in a processing apparatus of a transaction line, including:
and the splitting subunit is used for splitting each node in the transaction lines to be matched and the next node connected with the node into a substructure aiming at each transaction line to be matched corresponding to each transaction line in a target state, so as to obtain a plurality of substructures of the transaction lines to be matched.
Optionally, in a processing apparatus of a transaction line provided in another embodiment of the present application, a first computing unit, as shown in fig. 8, includes:
a first position determining unit 801, configured to determine, for each transaction line, a sequence of a first node of each substructure of each to-be-matched transaction line corresponding to the transaction line in the to-be-matched transaction line as position information of the substructure in the to-be-matched transaction line.
A second position determining unit 802, configured to determine, as the position information of the substructure in the trading line, an order of a first node of the substructure of each to-be-matched trading line in the trading line, which corresponds to the trading line.
An offset calculating unit 803, configured to calculate a difference between the position information of each sub-structure in the transaction line to be matched and the position information in the transaction line, respectively, to obtain an offset of each sub-structure.
The first similarity calculation unit 804 is configured to calculate, for each of the substructures, a reciprocal of an nth power of a preset fixed coefficient to obtain a similarity score between the substructures and the transaction line.
Wherein N is an offset of the substructure.
Optionally, in a processing apparatus of a transaction line provided in another embodiment of the present application, further including:
and the quantity determining unit is used for determining the quantity of the transaction lines which belong to the service scene and are successfully matched as the matching quantity corresponding to the service scene aiming at each service scene.
And the accuracy calculation unit is used for dividing the matching number corresponding to each service scene by the total number of the transaction lines which belong to the service scene and are in the design state to obtain the accuracy corresponding to each service scene.
And the coverage rate calculation unit is used for dividing the matching number corresponding to each service scene by the total number of the transaction lines which belong to the service scene and are in the production state to obtain the coverage rate corresponding to each service scene.
And the first feedback unit is used for feeding back that the service scenes meet the requirements if the accuracy corresponding to the service scenes is greater than a first preset value and the corresponding coverage rate is greater than a second preset value aiming at each service scene.
Optionally, in a processing apparatus of a transaction line provided in another embodiment of the present application, further including:
and the first transaction line determining unit is used for determining each first transaction line only existing in the design state and determining each second transaction line only existing in the production state from the acquired transaction lines based on the matching result.
The dividing unit is used for adding the first transaction line belonging to the production aggregation error to a blacklist and adding the second transaction line belonging to the low-frequency transaction to a whitelist.
Optionally, in a processing apparatus of a transaction line provided in another embodiment of the present application, further including:
and the second transaction line determining unit is used for determining each target transaction line which is not successfully matched based on the matching result.
And the first judgment unit is used for judging whether the target transaction line only passes through the system initiator or does not pass through the target system.
And the second feedback unit is used for feeding back that the target transaction line has errors if the target transaction line is judged to pass through the system initiator only or not to pass through the target system.
And the second judging unit is used for judging whether the target transaction line passes through the main application of the business scene if the target transaction line passes through the target system instead of the system initiator.
And the third feedback unit is used for feeding back the target transaction line with a higher error probability if the target transaction line is judged not to pass through the main application of the service scene.
It should be noted that, for the specific working processes of each unit provided in the foregoing embodiments of the present application, corresponding steps in the foregoing method embodiments may be referred to accordingly, and are not described herein again.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A transaction line processing method, comprising:
acquiring each transaction line in a design state and a production state;
dividing each transaction line to be matched corresponding to each transaction line in a target state into a plurality of substructures; wherein the target state is a design state or a production state; the transaction lines to be matched corresponding to the transaction lines are all the transaction lines in different states with the transaction lines;
for each transaction line, respectively calculating the similarity score between each substructure of each transaction line to be matched and the transaction line corresponding to the transaction line based on the offset of the transaction line and the corresponding substructure of the transaction line to be matched;
respectively calculating the sum of similarity scores of each substructure of each transaction line to be matched corresponding to each transaction line and the transaction line to obtain the similarity score of each transaction line and each transaction line to be matched corresponding to the transaction line;
and respectively determining the transaction lines to be matched with each transaction line according to the similarity scores of each transaction line and each corresponding transaction line to be matched, so as to obtain a matching result.
2. The method according to claim 1, wherein the splitting the transaction lines to be matched corresponding to each of the transaction lines in the target state into a plurality of substructures respectively comprises:
and splitting each node in the transaction lines to be matched and the next node connected with the node into a substructure aiming at each transaction line to be matched corresponding to each transaction line in a target state, so as to obtain a plurality of substructures of the transaction lines to be matched.
3. The method according to claim 2, wherein the calculating, for each of the transaction lines, a similarity score between each substructure of the transaction lines to be matched and the transaction line corresponding to the transaction line based on an offset of the transaction line and the corresponding substructure of the transaction line to be matched respectively comprises:
for each transaction line, respectively determining the sequence of the first node of each substructure of each transaction line to be matched, which corresponds to the transaction line, in the transaction line to be matched as the position information of the substructure in the transaction line to be matched;
determining the sequence of the first node of the substructure of each transaction line to be matched corresponding to the transaction line in the transaction line as the position information of the substructure in the transaction line;
respectively calculating the difference value of the position information of each substructure in the transaction line to be matched and the position information of each substructure in the transaction line to obtain the offset of each substructure;
calculating the reciprocal of the N power of a preset fixed coefficient aiming at each substructure to obtain a similarity score of the substructure and the transaction line; wherein N is an offset of the substructure.
4. The method according to claim 1, wherein the step of determining the transaction line to be matched with each transaction line according to the similarity score between each transaction line and each corresponding transaction line to be matched, and after obtaining the matching result, further comprises:
for each service scene, determining the number of the transaction lines which belong to the service scene and are successfully matched as the matching number corresponding to the service scene;
dividing the matching number corresponding to each service scene by the total number of the transaction lines which belong to the service scene and are in the design state respectively to obtain the accuracy corresponding to each service scene;
dividing the matching number corresponding to each service scene by the total number of the transaction lines which belong to the service scene and are in the production state respectively to obtain the coverage rate corresponding to each service scene;
and for each service scene, if the accuracy corresponding to the service scene is greater than a first preset value and the corresponding coverage rate is greater than a second preset value, feeding back that the service scene meets the requirement.
5. The method according to claim 1, wherein the step of determining the transaction line to be matched with each transaction line according to the similarity score between each transaction line and each corresponding transaction line to be matched, and after obtaining the matching result, further comprises:
determining each first transaction line only existing in the design state and determining each second transaction line only existing in the production state from the acquired transaction lines based on the matching result;
adding the first transaction line belonging to production aggregation error to a blacklist, and adding the second transaction line belonging to low frequency transaction to a whitelist.
6. The method according to claim 1, wherein the step of determining the transaction line to be matched with each transaction line according to the similarity score between each transaction line and each corresponding transaction line to be matched, and after obtaining the matching result, further comprises:
determining each target transaction line which is not successfully matched based on the matching result;
judging whether the target transaction line only passes through a system initiator or does not pass through a target system;
if the target transaction line is judged to pass through the system initiator only or not pass through the target system, feeding back that the target transaction line has errors;
if the target transaction line is judged to pass through not only the system initiator but also the target system, judging whether the target transaction line does not pass through the main application of the business scene;
and if the target transaction line is judged not to pass through the main application of the service scene, feeding back that the target transaction line has a higher error probability.
7. A transaction line processing apparatus, comprising:
the acquisition unit is used for acquiring each transaction line in a design state and a production state;
the splitting unit is used for splitting each transaction line to be matched corresponding to each transaction line in a target state into a plurality of substructures; wherein the target state is a design state or a production state; the transaction lines to be matched corresponding to the transaction lines are all the transaction lines in different states with the transaction lines;
the first calculation unit is used for calculating the similarity score between each substructure of each transaction line to be matched and the transaction line corresponding to the transaction line respectively according to the offset of the transaction line and the corresponding substructure of the transaction line to be matched;
the second calculation unit is used for calculating the sum of similarity scores of each substructure of each transaction line to be matched and the transaction line corresponding to each transaction line respectively to obtain the similarity score of each transaction line and each transaction line to be matched corresponding to the transaction line;
and the result determining unit is used for respectively determining the transaction lines to be matched with each transaction line according to the similarity scores of each transaction line and each corresponding transaction line to be matched, so as to obtain a matching result.
8. The apparatus of claim 7, wherein the splitting unit comprises:
and the splitting subunit is used for splitting each node in the transaction lines to be matched and the next node connected with the node into a substructure aiming at each transaction line to be matched corresponding to each transaction line in a target state, so as to obtain a plurality of substructures of the transaction lines to be matched.
9. The apparatus of claim 8, wherein the first computing unit comprises:
the first position determining unit is used for respectively determining the first node of each substructure of each transaction line to be matched, which corresponds to each transaction line, in the sequence of the transaction line to be matched as the position information of the substructure in the transaction line to be matched;
the second position determining unit is used for determining the first node of the substructure of each transaction line to be matched, which corresponds to the transaction line, in the sequence of the transaction line as the position information of the substructure in the transaction line;
the offset calculation unit is used for respectively calculating the difference value between the position information of each substructure in the transaction line to be matched and the position information of each substructure in the transaction line to obtain the offset of each substructure;
the first similarity calculation unit is used for calculating the reciprocal of the N power of a preset fixed coefficient aiming at each substructure to obtain a similarity score between the substructure and the transaction line; wherein N is an offset of the substructure.
10. The apparatus of claim 7, further comprising:
the quantity determining unit is used for determining the quantity of the transaction lines which belong to the service scenes and are successfully matched as the matching quantity corresponding to the service scenes aiming at each service scene;
the accuracy calculation unit is used for dividing the matching number corresponding to each service scene by the total number of the transaction lines which belong to the service scene and are in the design state respectively to obtain the accuracy corresponding to each service scene;
the coverage rate calculation unit is used for dividing the matching number corresponding to each service scene by the total number of the transaction lines which belong to the service scene and are in the production state respectively to obtain the coverage rate corresponding to each service scene;
and the first feedback unit is used for feeding back that the service scenes meet the requirements if the accuracy corresponding to the service scenes is greater than a first preset value and the corresponding coverage rate is greater than a second preset value aiming at each service scene.
CN202111048763.XA 2021-09-08 2021-09-08 Transaction line processing method and device Pending CN113744058A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111048763.XA CN113744058A (en) 2021-09-08 2021-09-08 Transaction line processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111048763.XA CN113744058A (en) 2021-09-08 2021-09-08 Transaction line processing method and device

Publications (1)

Publication Number Publication Date
CN113744058A true CN113744058A (en) 2021-12-03

Family

ID=78736905

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111048763.XA Pending CN113744058A (en) 2021-09-08 2021-09-08 Transaction line processing method and device

Country Status (1)

Country Link
CN (1) CN113744058A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130046603A1 (en) * 2011-08-17 2013-02-21 Bank Of America Corporation Method of providing an offer based on a projected path triggered by a point of sale transaction
US20140074689A1 (en) * 2012-09-12 2014-03-13 Kristian Lund Systems and Methods for Modifying Consumer Credit Data
CN111784516A (en) * 2020-06-15 2020-10-16 华青融天(北京)软件股份有限公司 Method and device for determining service path and electronic equipment
US10957204B1 (en) * 2018-05-17 2021-03-23 Fleetilla, LLC Systems and methods for tracking cargo assets

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130046603A1 (en) * 2011-08-17 2013-02-21 Bank Of America Corporation Method of providing an offer based on a projected path triggered by a point of sale transaction
US20140074689A1 (en) * 2012-09-12 2014-03-13 Kristian Lund Systems and Methods for Modifying Consumer Credit Data
US10957204B1 (en) * 2018-05-17 2021-03-23 Fleetilla, LLC Systems and methods for tracking cargo assets
CN111784516A (en) * 2020-06-15 2020-10-16 华青融天(北京)软件股份有限公司 Method and device for determining service path and electronic equipment

Similar Documents

Publication Publication Date Title
CN110704231A (en) Fault processing method and device
CN108964995A (en) Log correlation analysis method based on time shaft event
CN113032868A (en) Prefabricated part management method and device, electronic equipment and storage medium
WO2014091302A2 (en) System and method for quantified quality analysis and benchmarking for building information modeling
CN107276851B (en) Node abnormity detection method and device, network node and console
US11816885B1 (en) Systems and methods for assessing property development condition
KR20130142934A (en) Method and system for dynamic meeting detection using multiple physical features from mobile devices
CN111176953A (en) Anomaly detection and model training method thereof, computer equipment and storage medium
CN110555052A (en) Method, device and equipment for establishing relationship network
KR20180089479A (en) User data sharing method and device
WO2019019429A1 (en) Anomaly detection method, device and apparatus for virtual machine, and storage medium
CN112199850B (en) Method for researching system elastic distribution rule based on process characteristics
CN113744058A (en) Transaction line processing method and device
CN107247664B (en) Open-source software oriented cooperative behavior measurement method
CN113191676A (en) Method and system for managing engineering consultation quality in whole process
CN110427648B (en) Component attribute acquisition method and related product
CN108680897A (en) A kind of indoor orientation method, device, electronic equipment and storage medium
KR102512857B1 (en) Factory smart analysis system and method based on bigdata
WO2020000768A1 (en) Real estate appraisal method and apparatus, computer device and computer readable storage medium
CN110582091B (en) Method and apparatus for locating wireless quality problems
CN108040067B (en) Cloud platform intrusion detection method, device and system
CN114007188B (en) Target user positioning method, system and storage medium
CN113242305B (en) Cross-chain transaction processing method, device, computer equipment and medium
CN108229585A (en) The classifying method and system of a kind of daily record
CN114970495A (en) Name disambiguation method and device, electronic equipment and storage medium

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