CN113256877A - Paper money information management method, device, storage medium and computer equipment - Google Patents
Paper money information management method, device, storage medium and computer equipment Download PDFInfo
- Publication number
- CN113256877A CN113256877A CN202011637840.0A CN202011637840A CN113256877A CN 113256877 A CN113256877 A CN 113256877A CN 202011637840 A CN202011637840 A CN 202011637840A CN 113256877 A CN113256877 A CN 113256877A
- Authority
- CN
- China
- Prior art keywords
- paper money
- manager
- current node
- queue
- node
- 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.)
- Granted
Links
- 238000007726 management method Methods 0.000 title claims abstract description 32
- 230000001960 triggered effect Effects 0.000 claims abstract description 41
- 230000002159 abnormal effect Effects 0.000 claims description 33
- 238000000034 method Methods 0.000 claims description 24
- 230000033001 locomotion Effects 0.000 claims description 13
- 238000004590 computer program Methods 0.000 claims description 9
- 238000010276 construction Methods 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 5
- 238000001514 detection method Methods 0.000 description 4
- 230000005856 abnormality Effects 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000007405 data analysis Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000009347 mechanical transmission Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07D—HANDLING OF COINS OR VALUABLE PAPERS, e.g. TESTING, SORTING BY DENOMINATIONS, COUNTING, DISPENSING, CHANGING OR DEPOSITING
- G07D11/00—Devices accepting coins; Devices accepting, dispensing, sorting or counting valuable papers
- G07D11/10—Mechanical details
- G07D11/16—Handling of valuable papers
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07D—HANDLING OF COINS OR VALUABLE PAPERS, e.g. TESTING, SORTING BY DENOMINATIONS, COUNTING, DISPENSING, CHANGING OR DEPOSITING
- G07D11/00—Devices accepting coins; Devices accepting, dispensing, sorting or counting valuable papers
- G07D11/10—Mechanical details
- G07D11/16—Handling of valuable papers
- G07D11/18—Diverting into different paths or containers
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07D—HANDLING OF COINS OR VALUABLE PAPERS, e.g. TESTING, SORTING BY DENOMINATIONS, COUNTING, DISPENSING, CHANGING OR DEPOSITING
- G07D11/00—Devices accepting coins; Devices accepting, dispensing, sorting or counting valuable papers
- G07D11/20—Controlling or monitoring the operation of devices; Data handling
- G07D11/22—Means for sensing or detection
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
The invention relates to the technical field of financial information management, and discloses a paper money information management method, which comprises the following steps: acquiring a transaction path of the paper money at a financial terminal; constructing an independent manager corresponding to each node, wherein 3 queues are preset in the manager and are used for storing paper money objects, the paper money objects are used for associating sensor event information triggered by the paper money in the nodes, and the sensor event information is stored in the manager; and storing the paper money objects in different queues of the manager according to the state relationship between the paper money and the nodes on the transaction path. According to the scheme, the paper money objects passing through the nodes and the triggered sensor event information are stored in the managers corresponding to the nodes in a node manager mode, distributed management is carried out, the paper money objects can be simply added and deleted in the queue, the sensor event information can be inserted, and the problem that matching dislocation is caused when the conditions of paper money leakage, repeated opening and the like are faced in the common scheme is solved.
Description
Technical Field
The invention relates to the technical field of financial information management, in particular to a paper money information management method, a paper money information management device, a storage medium and computer equipment.
Background
When the cash processing equipment is used for accessing the businesses with the movement of the paper money, various sensors are arranged, and the information acquired by the sensors is used for calculating the paper money form indexes so as to evaluate the actual effects of paper money collection and digging of a paper money box, paper money passing through a channel and paper money collection and digging of a receiver.
In the traditional scheme, the information management of paper money and sensors adopts a form of queue independent storage, the paper money information is stored as one queue, the information of the sensors is stored as the other queue, and the sensor information corresponding to the paper money is obtained based on the sequence of the paper money passing through the sensors; when the banknote is missed or the banknote is pulled out again, the operations of inserting the sensor information and adding and deleting the banknote objects are difficult to be performed in the middle of the queue, and finally, the matching is misplaced.
Disclosure of Invention
In view of the above, it is necessary to provide a banknote information management method, apparatus, storage medium, and computer device.
A banknote information management method, the method comprising:
acquiring a transaction path of paper money at a financial terminal, wherein a plurality of nodes are preset on the transaction path;
constructing an individual manager corresponding to each node, wherein 3 queues are preset in the manager, the queues are used for storing paper money objects, the paper money objects are used for associating sensor event information triggered by the paper money in the node, and the sensor event information is stored in the manager;
when the paper money enters the last node, adding a paper money object corresponding to the paper money to the tail of a first queue of a manager of the current node;
when the paper money enters the current node, removing a first paper money object in a first queue of a manager of the current node, and adding the first paper money object to the tail of a second queue in the manager of the current node;
and when the paper money leaves the current node, removing the first paper money object in the second queue of the manager of the current node, and adding the first paper money object to the tail of the third queue in the manager of the current node.
A banknote information management apparatus, the apparatus comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a transaction path of paper money at a financial terminal, and a plurality of nodes are preset on the transaction path;
the construction module is used for constructing an individual manager corresponding to each node, 3 queues are preset in the manager and used for storing paper money objects, the paper money objects are used for associating sensor event information triggered by the paper money in the nodes, and the sensor event information is stored in the manager;
the first processing module is used for adding the paper money object corresponding to the paper money to the tail of a first queue of a manager of the current node when the paper money enters the last node;
the second processing module is used for removing the first paper money object in the first queue of the manager of the current node when the paper money enters the current node, and adding the first paper money object to the tail of the second queue in the manager of the current node;
and the third processing module is used for removing the first banknote object in the second queue of the manager of the current node and adding the first banknote object to the tail of the third queue in the manager of the current node when the banknote leaves the current node.
A computer-readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of:
acquiring a transaction path of paper money at a financial terminal, wherein a plurality of nodes are preset on the transaction path;
constructing an individual manager corresponding to each node, wherein 3 queues are preset in the manager, the queues are used for storing paper money objects, the paper money objects are used for associating sensor event information triggered by the paper money in the node, and the sensor event information is stored in the manager;
when the paper money enters the last node, adding a paper money object corresponding to the paper money to the tail of a first queue of a manager of the current node;
when the paper money enters the current node, removing a first paper money object in a first queue of a manager of the current node, and adding the first paper money object to the tail of a second queue in the manager of the current node;
and when the paper money leaves the current node, removing the first paper money object in the second queue of the manager of the current node, and adding the first paper money object to the tail of the third queue in the manager of the current node.
A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of:
acquiring a transaction path of paper money at a financial terminal, wherein a plurality of nodes are preset on the transaction path;
constructing an individual manager corresponding to each node, wherein 3 queues are preset in the manager, the queues are used for storing paper money objects, the paper money objects are used for associating sensor event information triggered by the paper money in the node, and the sensor event information is stored in the manager;
when the paper money enters the last node, adding a paper money object corresponding to the paper money to the tail of a first queue of a manager of the current node;
when the paper money enters the current node, removing a first paper money object in a first queue of a manager of the current node, and adding the first paper money object to the tail of a second queue in the manager of the current node;
and when the paper money leaves the current node, removing the first paper money object in the second queue of the manager of the current node, and adding the first paper money object to the tail of the third queue in the manager of the current node.
The embodiment of the invention has the following beneficial effects:
according to the paper money information management method, the device, the storage medium and the computer equipment, a transaction path of paper money at a financial terminal is firstly obtained, then an independent manager corresponding to each node is constructed, 3 queues are preset in the manager and used for storing paper money objects, the paper money objects are used for associating sensor event information triggered by the paper money in the nodes, and the sensor event information is stored in the manager; and finally, storing the paper money object in different queues of the manager according to the state relation between the paper money and the nodes on the transaction path. In the scheme, through the form of a node manager, the passing paper money objects and the triggered sensor event information in the nodes are stored in the manager corresponding to the nodes for distributed management; through a distributed management mode, the paper money objects can be simply added and deleted in the queue, the event information of the sensor is inserted, and the problem that matching dislocation is caused in the face of paper money leakage, repeated opening and the like in a common scheme is solved. Meanwhile, the scheme does not influence the subsequent paper money analysis, even deepens the correlation between the paper money and the nodes, and expands other operations on the basis of the scheme more easily.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Wherein:
FIG. 1 is a flowchart showing an embodiment of a banknote information management method;
FIG. 2 is a schematic illustration of banknote movement during a transaction in one embodiment;
FIG. 3 is a block diagram showing the structure of a bill information managing apparatus according to one embodiment;
FIG. 4 is a block diagram of a computer device in one embodiment.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, 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 invention.
As shown in fig. 1, there is proposed a banknote information management method including:
and 102, acquiring a transaction path of the paper money at the financial terminal, wherein a plurality of nodes are preset on the transaction path.
The transaction path refers to a channel through which the paper money needs to pass during transaction, for example, the channel through which the paper money needs to pass from the paper money inlet to the paper money box when deposit business is performed; the transaction path is provided with a plurality of sensors, and nodes are preset according to the distribution of the sensors, so that information triggered when paper money passes through the sensors can be stored in a manager corresponding to the nodes.
And 104, constructing an individual manager corresponding to each node, wherein 3 queues are preset in the manager, the queues are used for storing paper money objects, the paper money objects are used for associating sensor event information triggered by the paper money in the nodes, and the sensor event information is stored in the manager.
The manager is a virtual manager for storing relevant information of paper money, the relevant information of the paper money comprises a paper money object and sensor event information triggered by the paper money, the paper money object is a data object pointing to corresponding paper money and used for identifying the legal identity of the paper money in the transaction process, and the paper money object is constructed when the paper money enters a first node.
The banknote object is used for associating sensor event information triggered by the banknote object and associating currency detection information of corresponding banknotes.
Wherein the banknote objects and sensor event information are stored in the manager based on a passing or occurring order according to which the banknote objects and sensor event information are matched.
And 106, when the paper currency enters the last node, adding the paper currency object corresponding to the paper currency to the tail of the first queue of the manager of the current node.
Wherein, 3 queues for storing the paper money objects are preset in the manager, and the first queue is used for storing the paper money objects corresponding to the coming paper money; the second queue is used for storing the paper money objects corresponding to the passing paper money; the third queue is used for storing the paper money objects corresponding to the passed paper money.
In one embodiment, when the paper money enters the last node, the paper money is judged to be in an upcoming state, and a corresponding paper money object is added to the tail of the first queue of the current node; and when the paper money in the sequence before the paper money enters the current node, the paper money object corresponding to the paper money is the first paper money object of the first queue of the current node.
FIG. 2 is a schematic diagram illustrating the movement of a banknote during a transaction in one embodiment, the banknote moving from node 1 to node 4; taking node 2 as an example, the banknote objects corresponding to Bill1, Bill2, Bill3 and Bill4 which have passed through node 2 have been added to the third queue of the node 2 manager; the banknote object corresponding to Bill5 that is passing through node 2 has been added to the second queue of the node 2 manager; bill objects corresponding to Bill6 that are being determined by node 2 as being in an upcoming state by node 1 have been added to the first queue of the node 2 manager.
And 108, when the paper money enters the current node, removing the first paper money object in the first queue of the manager of the current node, and adding the first paper money object to the tail of the second queue in the manager of the current node.
When the paper currency enters the current node, the paper currency is judged to be in a passing state, and the paper currency object corresponding to the paper currency is removed from the first queue and added to the tail of the second queue.
And 110, when the paper money leaves the current node, removing the first paper money object in the second queue of the manager of the current node, and adding the first paper money object to the tail of the third queue in the manager of the current node.
When the paper currency leaves the current node, the paper currency is judged to be in a passing state, the paper currency object corresponding to the paper currency is removed from the second queue and added to the end of the third queue; and simultaneously storing the sensor event information triggered by the paper money at the current node into a manager of the current node, and associating the current node.
When sensor event information triggered by a certain paper currency in a transaction path needs to be extracted, a paper currency object corresponding to the paper currency is determined, and sensor event information related to the paper currency object in sequence is extracted from managers of all nodes of the transaction path so as to analyze the form of the paper currency at the current moment.
The paper money information management method comprises the steps of firstly obtaining a transaction path of paper money at a financial terminal, and then constructing an individual manager corresponding to each node, wherein 3 queues are preset in the manager and used for storing paper money objects, the paper money objects are used for associating sensor event information triggered by the paper money in the nodes, and the sensor event information is stored in the manager; and finally, storing the paper money object in different queues of the manager according to the state relation between the paper money and the nodes on the transaction path. In the scheme, through the form of a node manager, the passing paper money objects and the triggered sensor event information in the nodes are stored in the manager corresponding to the nodes for distributed management; through a distributed management mode, the paper money objects can be simply added and deleted in the queue, the event information of the sensor is inserted, and the problem that matching dislocation is caused in the face of paper money leakage, repeated opening and the like in a common scheme is solved. Meanwhile, the scheme does not influence the subsequent paper money analysis, even deepens the correlation between the paper money and the nodes, and expands other operations on the basis of the scheme more easily.
In one embodiment, said removing a first note object from a first queue of said current node manager and adding to an end of a second queue in said current node manager when said note enters said current node further comprises: and when the current node is the first node, acquiring the information of the paper money entering the current node, constructing a paper money object associated with the paper money information, and adding the paper money object to the tail of a second queue of a manager of the current node.
The first node is the first node of the transaction path, and currency detection information is obtained after currency detection is finished; and constructing a paper money object related to the paper money information by taking the currency detection information as the paper money information, and adding the paper money object to the tail of the second queue of the manager of the head node.
The first node constructs the paper money object when the paper money enters the transaction flow, and identifies the legal identity of the paper money in the transaction flow, so that the destination of the corresponding paper money can be conveniently found in the subsequent information management, and the corresponding data information is matched for data analysis and other operations.
In one embodiment, sensor event information triggered by banknote correspondence during a transaction is associated with a banknote by constructing a banknote object corresponding to the banknote at a first node; the method comprises the steps of acquiring sensor event information triggered by paper money currently in real time in a transaction process, analyzing the form of the paper money, feeding back a financial terminal to correspondingly adjust the paper money, ensuring the correctness of the form of the paper money, avoiding paper money clamping and reducing the fault rate of the financial terminal.
In one embodiment, said removing a first note object from a first queue of said current node manager and adding to an end of a second queue in said current node manager when said note enters said current node further comprises: when paper money enters a current node and the current node has a peer node, removing a first paper money object in a first queue in managers of the current node and all peer nodes thereof, and adding the paper money object to the tail of a second queue of the manager of the current node.
Wherein, the peer nodes are nodes with the same superior node; when paper money enters the previous node, a paper money object corresponding to the paper money is added at the tail of the first queue of the lower-level node manager, so that the first queues of the current node and all the same-level node managers of the current node have the same paper money object before the paper money enters the current node; in order to ensure the uniqueness of the transaction path where the paper money object is located, when paper money enters the current node, removing the first paper money object in the first queue in the managers of the current node and all peer nodes thereof, and adding the paper money object to the tail of the second queue of the manager of the current node.
It will be appreciated that the transaction path may have multiple branches when executing the same transaction. In one embodiment, the financial terminal receives banknotes from the banknote inlet into the two banknote cassettes through two partially overlapping channels corresponding to two branch paths of the transaction path when performing a deposit transaction.
In one embodiment, the method further comprises: when an abnormal condition is detected, acquiring related data of the abnormal condition; determining an object to be adjusted and a corresponding position according to the related data of the abnormal condition; and adjusting the adjusting object at the corresponding position so as to enable each paper money object to be matched with the sensor event information correspondingly triggered.
The abnormal condition refers to the condition that the banknote object is not matched with the sensor event information triggered by the banknote object due to various factors in the transaction process, and includes the condition that the number of the banknote object is inconsistent with the number of banknotes actually passing through the node due to banknote leakage, repeated opening and the like, and also includes the condition that the sensor event information is inconsistent with the number of the banknotes actually passing through the node due to sensor failure, covered sensor and the like.
And according to the judgment standard, the abnormal data meeting the judgment standard can be found in the related data of the abnormal conditions, so that the corresponding position to be adjusted is positioned, and the object to be adjusted is obtained.
It will be appreciated that the purpose of the adjustment is to match the banknote object with the corresponding triggered sensor event information, and thus the object of the adjustment is either the banknote object or the sensor event information.
In one embodiment, the determining the object and the corresponding position to be adjusted according to the relevant data of the abnormal condition further includes: when the condition that the overlapped paper is pulled open is detected, determining a paper money object needing to be newly added according to the abnormal paper money motion data, and determining the corresponding position of the newly detected paper money in the queue; the adjusting the adjustment object at the corresponding position further comprises: and constructing a new paper currency object at the corresponding position so as to enable the newly detected paper currency to be matched with the sensor event information correspondingly triggered by the newly detected paper currency.
The double-opening refers to the condition that two paper currencies are overlapped together to enter a transaction process and are separated into two paper currencies in the transaction process. In one embodiment, 10 nodes are preset on a transaction path, 9 banknote objects are created at the first node, the 5 th node is subjected to re-opening, the financial terminal detects an abnormality according to the motion data from the 5 th node to the 6 th node, positions the abnormality data to an abnormal position, and constructs a new banknote object at the abnormal position.
The abnormal paper money motion data refers to the abnormal motion speed of paper money, the distance between known nodes is fixed, the paper money motion speed driven by mechanical transmission has the maximum value, and when the paper money motion data detects that the time from the previous node to the current node is shorter than the theoretical shortest time, the abnormal condition of re-opening is judged to occur.
In one embodiment, when the sensor in the current node is detected to be shielded, the sensor event information stored in the current node manager is acquired, the position of the paper money object which does not trigger the sensor event information is determined, and the paper money object is deleted.
In one embodiment, the method further comprises: and when the paper money triggers a sensor event each time, extracting all sensor event information correspondingly triggered by the paper money, and analyzing the form of the paper money according to the sensor event information.
The method comprises the steps of acquiring a paper money object corresponding to paper money when the paper money triggers a sensor event each time, acquiring corresponding sensor event information currently stored in all nodes according to the paper money object, and analyzing the form of the paper money according to the sensor event information.
Under the condition that the paper currency object is matched with the triggered sensor event information, the data such as the inclination, the angle, the width and the paper currency interval of the paper currency are calculated according to the sensor event information, the advancing form of the paper currency is analyzed, so that the financial terminal can monitor and adjust the moving process of the paper currency according to the form of the paper currency, and the probability of paper currency jam caused by the form problems such as excessive inclination is reduced.
In one embodiment, the adding the banknote object corresponding to the banknote to the end of the first queue of the manager of the current node when the banknote enters the last node includes: and when the paper money enters the previous node and the current node has the same node, adding the paper money object corresponding to the paper money to the first queue tail of the managers of the current node and all the same nodes.
When the transaction path has branches and respectively corresponds to different tail nodes, the paper money enters one node, and the paper money object corresponding to the paper money is added at the tail of the first queue of the corresponding lower node manager, so that the paper money can selectively enter a channel corresponding to any lower node; when the paper currency is distributed into one of the lower nodes, the paper currency objects corresponding to the paper currency in the managers of other lower nodes are deleted so as to ensure the uniqueness of the paper currency transaction path.
As shown in fig. 3, there is proposed a banknote information management apparatus including:
the system comprises an acquisition module 10, a processing module and a processing module, wherein the acquisition module is used for acquiring a transaction path of paper money at a financial terminal, and a plurality of nodes are preset on the transaction path;
a building module 20, configured to build an individual manager corresponding to each node, where 3 queues are preset in the manager, where the queues are used to store banknote objects, the banknote objects are used to associate sensor event information triggered by the banknotes in the nodes, and the sensor event information is stored in the manager;
the first processing module 30 is configured to add a banknote object corresponding to the banknote to the end of the first queue of the manager of the current node when the banknote enters the previous node;
a second processing module 40, configured to remove a first banknote object in the first queue of the manager of the current node and add the first banknote object to the end of the second queue in the manager of the current node when the banknote enters the current node;
a third processing module 50, configured to remove the first banknote object in the second queue of the current node manager and add the first banknote object to the end of the third queue in the manager of the current node when the banknote leaves the current node.
In one embodiment, said removing a first note object from a first queue of said current node manager and adding to an end of a second queue in said current node manager when said note enters said current node further comprises: and when the current node is the first node, acquiring the information of the paper money entering the current node, constructing a paper money object associated with the paper money information, and adding the paper money object to the tail of a second queue of a manager of the current node.
In one embodiment, said removing a first note object from a first queue of said current node manager and adding to an end of a second queue in said current node manager when said note enters said current node further comprises: and when the paper money enters the current node and the current node has the same node, removing a first paper money object in a first queue in managers of the current node and all the same nodes, and adding the paper money object to the tail of a second queue of the manager of the current node.
In one embodiment, the method further comprises: when an abnormal condition is detected, acquiring related data of the abnormal condition; determining an object to be adjusted and a corresponding position according to the related data of the abnormal condition; and adjusting the adjusting object at the corresponding position so as to enable each paper money object to be matched with the sensor event information correspondingly triggered.
In one embodiment, the determining the object and the corresponding position to be adjusted according to the relevant data of the abnormal condition further includes: when the condition that the overlapped paper is pulled open is detected, determining a paper money object needing to be newly added according to the abnormal paper money motion data, and determining the corresponding position of the newly detected paper money in the queue; the adjusting the adjustment object at the corresponding position further comprises: and constructing a new paper currency object at the corresponding position so as to enable the newly detected paper currency to be matched with the sensor event information correspondingly triggered by the newly detected paper currency.
In one embodiment, the method further comprises: and when the paper money triggers a sensor event each time, extracting all sensor event information correspondingly triggered by the paper money, and analyzing the form of the paper money according to the sensor event information.
In one embodiment, the adding the banknote object corresponding to the banknote to the end of the first queue of the manager of the current node when the banknote enters the last node includes: and when the paper money enters the previous node and the current node has the same node, adding the paper money object corresponding to the paper money to the first queue end of the managers of the current node and all the same nodes.
FIG. 4 is a diagram illustrating an internal structure of a computer device in one embodiment. As shown in fig. 4, the computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer apparatus stores an operating system and may further store a computer program that, when executed by the processor, causes the processor to implement the bill information management method. The internal memory may also store a computer program that, when executed by the processor, causes the processor to perform the banknote information management method. Those skilled in the art will appreciate that the architecture shown in fig. 4 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is proposed, comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of:
acquiring a transaction path of paper money at a financial terminal, wherein a plurality of nodes are preset on the transaction path; constructing an individual manager corresponding to each node, wherein 3 queues are preset in the manager, the queues are used for storing paper money objects, the paper money objects are used for associating sensor event information triggered by the paper money in the node, and the sensor event information is stored in the manager; when the paper money enters the last node, adding a paper money object corresponding to the paper money to the tail of a first queue of a manager of the current node; when the paper money enters the current node, removing a first paper money object in a first queue of a manager of the current node, and adding the first paper money object to the tail of a second queue in the manager of the current node; and when the paper money leaves the current node, removing the first paper money object in the second queue of the manager of the current node, and adding the first paper money object to the tail of the third queue in the manager of the current node.
In one embodiment, said removing a first note object from a first queue of said current node manager and adding to an end of a second queue in said current node manager when said note enters said current node further comprises: and when the current node is the first node, acquiring the information of the paper money entering the current node, constructing a paper money object associated with the paper money information, and adding the paper money object to the tail of a second queue of a manager of the current node.
In one embodiment, said removing a first note object from a first queue of said current node manager and adding to an end of a second queue in said current node manager when said note enters said current node further comprises: and when the paper money enters the current node and the current node has the same node, removing a first paper money object in a first queue in managers of the current node and all the same nodes, and adding the paper money object to the tail of a second queue of the manager of the current node.
In one embodiment, the method further comprises: when an abnormal condition is detected, acquiring related data of the abnormal condition; determining an object to be adjusted and a corresponding position according to the related data of the abnormal condition; and adjusting the adjusting object at the corresponding position so as to enable each paper money object to be matched with the sensor event information correspondingly triggered.
In one embodiment, the determining the object and the corresponding position to be adjusted according to the relevant data of the abnormal condition further includes: when the condition that the overlapped paper is pulled open is detected, determining a paper money object needing to be newly added according to the abnormal paper money motion data, and determining the corresponding position of the newly detected paper money in the queue; the adjusting the adjustment object at the corresponding position further comprises: and constructing a new paper currency object at the corresponding position so as to enable the newly detected paper currency to be matched with the sensor event information correspondingly triggered by the newly detected paper currency.
In one embodiment, the method further comprises: and when the paper money triggers a sensor event each time, extracting all sensor event information correspondingly triggered by the paper money, and analyzing the form of the paper money according to the sensor event information.
In one embodiment, the adding the banknote object corresponding to the banknote to the end of the first queue of the manager of the current node when the banknote enters the last node includes: and when the paper money enters the previous node and the current node has the same node, adding the paper money object corresponding to the paper money to the first queue end of the managers of the current node and all the same nodes.
In one embodiment, a computer-readable storage medium is proposed, in which a computer program is stored which, when executed by a processor, causes the processor to carry out the steps of:
acquiring a transaction path of paper money at a financial terminal, wherein a plurality of nodes are preset on the transaction path; constructing an individual manager corresponding to each node, wherein 3 queues are preset in the manager, the queues are used for storing paper money objects, the paper money objects are used for associating sensor event information triggered by the paper money in the node, and the sensor event information is stored in the manager; when the paper money enters the last node, adding a paper money object corresponding to the paper money to the tail of a first queue of a manager of the current node; when the paper money enters the current node, removing a first paper money object in a first queue of a manager of the current node, and adding the first paper money object to the tail of a second queue in the manager of the current node; and when the paper money leaves the current node, removing the first paper money object in the second queue of the manager of the current node, and adding the first paper money object to the tail of the third queue in the manager of the current node.
In one embodiment, said removing a first note object from a first queue of said current node manager and adding to an end of a second queue in said current node manager when said note enters said current node further comprises: and when the current node is the first node, acquiring the information of the paper money entering the current node, constructing a paper money object associated with the paper money information, and adding the paper money object to the tail of a second queue of a manager of the current node.
In one embodiment, said removing a first note object from a first queue of said current node manager and adding to an end of a second queue in said current node manager when said note enters said current node further comprises: and when the paper money enters the current node and the current node has the same node, removing a first paper money object in a first queue in managers of the current node and all the same nodes, and adding the paper money object to the tail of a second queue of the manager of the current node.
In one embodiment, the method further comprises: when an abnormal condition is detected, acquiring related data of the abnormal condition; determining an object to be adjusted and a corresponding position according to the related data of the abnormal condition; and adjusting the adjusting object at the corresponding position so as to enable each paper money object to be matched with the sensor event information correspondingly triggered.
In one embodiment, the determining the object and the corresponding position to be adjusted according to the relevant data of the abnormal condition further includes: when the condition that the overlapped paper is pulled open is detected, determining a paper money object needing to be newly added according to the abnormal paper money motion data, and determining the corresponding position of the newly detected paper money in the queue; the adjusting the adjustment object at the corresponding position further comprises: and constructing a new paper currency object at the corresponding position so as to enable the newly detected paper currency to be matched with the sensor event information correspondingly triggered by the newly detected paper currency.
In one embodiment, the method further comprises: and when the paper money triggers a sensor event each time, extracting all sensor event information correspondingly triggered by the paper money, and analyzing the form of the paper money according to the sensor event information.
In one embodiment, the adding the banknote object corresponding to the banknote to the end of the first queue of the manager of the current node when the banknote enters the last node includes: and when the paper money enters the previous node and the current node has the same node, adding the paper money object corresponding to the paper money to the first queue end of the managers of the current node and all the same nodes.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (10)
1. A banknote information management method, the method comprising:
acquiring a transaction path of paper money at a financial terminal, wherein a plurality of nodes are preset on the transaction path;
constructing an individual manager corresponding to each node, wherein 3 queues are preset in the manager, the queues are used for storing paper money objects, the paper money objects are used for associating sensor event information triggered by the paper money in the node, and the sensor event information is stored in the manager;
when the paper money enters the last node, adding a paper money object corresponding to the paper money to the tail of a first queue of a manager of the current node;
when the paper money enters the current node, removing a first paper money object in a first queue of a manager of the current node, and adding the first paper money object to the tail of a second queue in the manager of the current node;
and when the paper money leaves the current node, removing the first paper money object in the second queue of the manager of the current node, and adding the first paper money object to the tail of the third queue in the manager of the current node.
2. The banknote information management method according to claim 1, wherein said removing a first banknote object of a first queue of said current node manager and adding it to an end of a second queue in said current node manager when said banknote enters said current node, further comprises:
and when the current node is the first node, acquiring the information of the paper money entering the current node, constructing a paper money object associated with the paper money information, and adding the paper money object to the tail of a second queue of a manager of the current node.
3. The banknote information management method according to claim 2, wherein said removing a first banknote object of a first queue of said current node manager and adding it to an end of a second queue in said current node manager when said banknote enters said current node, further comprises:
and when the paper money enters the current node and the current node has the same node, removing a first paper money object in a first queue in managers of the current node and all the same nodes, and adding the paper money object to the tail of a second queue of the manager of the current node.
4. The banknote information management method according to claim 1, further comprising:
when an abnormal condition is detected, acquiring related data of the abnormal condition;
determining an object to be adjusted and a corresponding position according to the related data of the abnormal condition;
and adjusting the adjusting object at the corresponding position so as to enable each paper money object to be matched with the sensor event information correspondingly triggered.
5. The banknote information management method according to claim 4, wherein the determining of the object and the corresponding position to be adjusted based on the data relating to the abnormal condition further comprises:
when the condition that the overlapped paper is pulled open is detected, determining a paper money object needing to be newly added according to the abnormal paper money motion data, and determining the corresponding position of the newly detected paper money in the queue;
the adjusting the adjustment object at the corresponding position further comprises:
and constructing a new paper currency object at the corresponding position so as to enable the newly detected paper currency to be matched with the sensor event information correspondingly triggered by the newly detected paper currency.
6. The banknote information management method according to claim 1, further comprising:
and when the paper money triggers a sensor event each time, extracting all sensor event information correspondingly triggered by the paper money, and analyzing the form of the paper money according to the sensor event information.
7. The banknote information management method according to claim 2, wherein the adding of the banknote object corresponding to the banknote to the end of the first queue of the manager of the current node when the banknote enters the previous node comprises:
and when the paper money enters the previous node and the current node has the same node, adding the paper money object corresponding to the paper money to the first queue end of the managers of the current node and all the same nodes.
8. A banknote information management apparatus, characterized in that the system/apparatus comprises:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a transaction path of paper money at a financial terminal, and a plurality of nodes are preset on the transaction path;
the construction module is used for constructing an individual manager corresponding to each node, 3 queues are preset in the manager and used for storing paper money objects, the paper money objects are used for associating sensor event information triggered by the paper money in the nodes, and the sensor event information is stored in the manager;
the first processing module is used for adding the paper money object corresponding to the paper money to the tail of a first queue of a manager of the current node when the paper money enters the last node;
the second processing module is used for removing the first paper money object in the first queue of the manager of the current node when the paper money enters the current node, and adding the first paper money object to the tail of the second queue in the manager of the current node;
and the third processing module is used for removing the first banknote object in the second queue of the manager of the current node and adding the first banknote object to the tail of the third queue in the manager of the current node when the banknote leaves the current node.
9. A computer-readable storage medium, storing a computer program which, when executed by a processor, causes the processor to carry out the steps of the method according to any one of claims 1 to 7.
10. A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011637840.0A CN113256877B (en) | 2020-12-31 | 2020-12-31 | Banknote information management method, banknote information management device, banknote information management storage medium, and computer device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011637840.0A CN113256877B (en) | 2020-12-31 | 2020-12-31 | Banknote information management method, banknote information management device, banknote information management storage medium, and computer device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113256877A true CN113256877A (en) | 2021-08-13 |
CN113256877B CN113256877B (en) | 2024-02-02 |
Family
ID=77180705
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011637840.0A Active CN113256877B (en) | 2020-12-31 | 2020-12-31 | Banknote information management method, banknote information management device, banknote information management storage medium, and computer device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113256877B (en) |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003067807A (en) * | 2001-08-29 | 2003-03-07 | Hitachi Ltd | Automatic machine |
CN1707999A (en) * | 2004-05-03 | 2005-12-14 | 汤姆森许可公司 | Distributed management of a certificate revocation list |
US20070110024A1 (en) * | 2005-11-14 | 2007-05-17 | Cisco Technology, Inc. | System and method for spanning tree cross routes |
CN101599190A (en) * | 2008-06-05 | 2009-12-09 | 日立欧姆龙金融***有限公司 | Bill handling device and method |
CN103942873A (en) * | 2013-01-21 | 2014-07-23 | 日立欧姆龙金融***有限公司 | Paper currency handling device and paper currency detection method |
CN105096444A (en) * | 2014-05-22 | 2015-11-25 | 浙江大学 | Banknote identification instrument image acquisition and data processing method and circuit |
CN105745675A (en) * | 2013-11-29 | 2016-07-06 | 联邦快递服务公司 | Methods and systems for managing shipment of an item using a wireless node network |
CN106484542A (en) * | 2016-09-06 | 2017-03-08 | 华为技术有限公司 | The method and apparatus of overlapping nodes event in a kind of process distributed system |
CN106779925A (en) * | 2016-12-01 | 2017-05-31 | 武汉票据交易中心有限公司 | A kind of many people's agreed-upon price mthods, systems and devices of bill |
CN109189595A (en) * | 2018-09-17 | 2019-01-11 | 深圳怡化电脑股份有限公司 | Event-handling method, device, equipment and medium based on server |
KR20190016289A (en) * | 2017-08-08 | 2019-02-18 | 기산전자 주식회사 | Method of remotely controlling bill counter |
CN110738497A (en) * | 2019-12-19 | 2020-01-31 | 腾讯科技(深圳)有限公司 | data processing method, device, node equipment and storage medium |
-
2020
- 2020-12-31 CN CN202011637840.0A patent/CN113256877B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003067807A (en) * | 2001-08-29 | 2003-03-07 | Hitachi Ltd | Automatic machine |
CN1707999A (en) * | 2004-05-03 | 2005-12-14 | 汤姆森许可公司 | Distributed management of a certificate revocation list |
US20070110024A1 (en) * | 2005-11-14 | 2007-05-17 | Cisco Technology, Inc. | System and method for spanning tree cross routes |
CN101599190A (en) * | 2008-06-05 | 2009-12-09 | 日立欧姆龙金融***有限公司 | Bill handling device and method |
CN103942873A (en) * | 2013-01-21 | 2014-07-23 | 日立欧姆龙金融***有限公司 | Paper currency handling device and paper currency detection method |
CN105745675A (en) * | 2013-11-29 | 2016-07-06 | 联邦快递服务公司 | Methods and systems for managing shipment of an item using a wireless node network |
CN105096444A (en) * | 2014-05-22 | 2015-11-25 | 浙江大学 | Banknote identification instrument image acquisition and data processing method and circuit |
CN106484542A (en) * | 2016-09-06 | 2017-03-08 | 华为技术有限公司 | The method and apparatus of overlapping nodes event in a kind of process distributed system |
CN106779925A (en) * | 2016-12-01 | 2017-05-31 | 武汉票据交易中心有限公司 | A kind of many people's agreed-upon price mthods, systems and devices of bill |
KR20190016289A (en) * | 2017-08-08 | 2019-02-18 | 기산전자 주식회사 | Method of remotely controlling bill counter |
CN109189595A (en) * | 2018-09-17 | 2019-01-11 | 深圳怡化电脑股份有限公司 | Event-handling method, device, equipment and medium based on server |
CN110738497A (en) * | 2019-12-19 | 2020-01-31 | 腾讯科技(深圳)有限公司 | data processing method, device, node equipment and storage medium |
Non-Patent Citations (1)
Title |
---|
江宇浩 等: "自动售票机纸币处理模块的设计与实现", 《计算机应用》, pages 230 - 233 * |
Also Published As
Publication number | Publication date |
---|---|
CN113256877B (en) | 2024-02-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108306864B (en) | Network data detection method and device, computer equipment and storage medium | |
CN109242740A (en) | Identity information risk assessment method, apparatus, computer equipment and storage medium | |
US9014419B2 (en) | Valuable document identification method and identification system thereof | |
CN110213357A (en) | Business datum backing method, device, computer equipment and storage medium | |
DE112008003900T5 (en) | Banknote recognition device, bill detection system and application program | |
CN109829640A (en) | Recognition methods, device, computer equipment and the storage medium of enterprise's default risk | |
CN113516661A (en) | Defect detection method and device based on feature fusion | |
CN107844714A (en) | A kind of verification method and device, computer installation, readable storage medium storing program for executing | |
CN108985741B (en) | Automatic query tracking method for capital flow of police platform | |
CN113689218A (en) | Risk account identification method and device, computer equipment and storage medium | |
CN114500099A (en) | Big data attack processing method and server for cloud service | |
CN109617755B (en) | Acceptance method and device of access system | |
CN113256877B (en) | Banknote information management method, banknote information management device, banknote information management storage medium, and computer device | |
CN113256904B (en) | Self-service financial terminal control method, device, terminal and readable medium | |
CN113435517B (en) | Abnormal data point output method, device, computer equipment and storage medium | |
CN110941543A (en) | Log processing method and device, computer equipment and storage medium | |
CN114510589A (en) | Enterprise financial data entry method and device and electronic equipment | |
CN113192252B (en) | Method, device, equipment and readable medium for detecting note duplicate | |
CN110889770B (en) | Data processing method, device, equipment and storage medium | |
CN113159793A (en) | Data processing method and device, electronic equipment and computer storage medium | |
CN112614283A (en) | Sheet medium data processing method, sheet medium data processing device, electronic device and storage medium | |
CN115587898B (en) | Financial data secure sharing method and system based on cloud service | |
CN108470404B (en) | Gate control method and device for card reader, financial equipment and storage medium | |
CN112465646A (en) | Security data monitoring method and device, computer equipment and storage medium | |
CN112288558A (en) | Financial self-service terminal account analysis method and system and financial self-service terminal |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |