Disclosure of Invention
The invention aims to provide an exception handling method for a circulator, which can save time and cost, has higher transparency and high reaction speed and improves the use efficiency of the circulator. Another object of the present invention is to provide a cycler exception handling apparatus. It is yet another object of the present invention to provide a computer readable medium. It is a further object of this invention to provide a computer apparatus.
In order to achieve the above object, in one aspect, the present invention discloses a method for processing exception of a cycle machine, including:
if the circulator is abnormal, analyzing the generated database updating table and the obtained banknote box data message to obtain a banknote classification banknote quantity comparison table;
generating a secondary note-spitting message according to the number of the notes under each note in the note-sorting note number comparison table;
and sending the secondary banknote-dispensing message to a circulator so that the circulator can automatically dispense banknotes according to the secondary banknote-dispensing message.
Preferably, if the cycle machine is abnormal, before analyzing the stored database update table and the obtained banknote box data message to obtain the banknote quantity comparison table, the method further comprises:
sending a pre-generated banknote operation request message to the circulating machine;
receiving a banknote operation message returned by the circulating machine in response to the banknote operation request message, wherein the banknote operation message comprises an abnormal value field and a banknote information field;
if the abnormal value field is a preset abnormal value, the circular machine is abnormal, and the stored database initial table is updated according to the actual banknote operation information input by the user;
and if the abnormal value field is not the abnormal value, the circulating machine is normal, and the stored database initial table is updated according to the banknote information field.
Preferably, the banknote operation request message is a banknote swallowing message; the actual banknote operation information comprises at least one security classification and the number of banknotes corresponding to each security classification; the database initial table stores at least one security classification and the number of the banknotes corresponding to each security classification;
updating the stored database initial table according to the actual banknote operation information input by the user, wherein the updating comprises the following steps:
matching the security classification in the actual banknote operation information with the security classification in the initial table of the database;
adding the number of the banknotes in the actual banknote operation information and the number of the banknotes in the initial table of the database according to the matched banknote classification to obtain an updated banknote number corresponding to the banknote classification;
and updating the quantity of the banknotes corresponding to the security classification in the initial table of the database into the updated quantity of the banknotes to obtain an updated table of the database.
Preferably, the banknote operation request message is a banknote receiving message; the actual banknote operation information comprises at least one banknote classification and the number of banknotes corresponding to each banknote classification; the database initial table stores at least one security classification and the number of the banknotes corresponding to each security classification;
updating the stored database initial table according to the actual banknote operation information input by the user, wherein the updating comprises the following steps:
matching the security classification in the actual banknote operation information with the security classification in the initial table of the database;
subtracting the number of the banknotes in the actual banknote operation information from the number of the banknotes in the initial table of the database according to the matched banknote classification to obtain an updated banknote number corresponding to the banknote classification;
and updating the banknote quantity corresponding to the security classification in the initial table of the database into the updated banknote quantity to obtain an updated table of the database.
Preferably, the banknote operation request message is a banknote swallowing message; the banknote information field comprises at least one security classification and the number of banknotes corresponding to each security classification; the database initial table stores at least one security classification and the number of the banknotes corresponding to each security classification;
updating the stored database initial table according to the banknote information field, wherein the updating comprises the following steps:
matching the security classification in the banknote information field with the security classification in the initial table of the database;
adding the number of the banknotes in the banknote information field and the number of the banknotes in the initial table of the database according to the matched banknote classification to obtain the updated number of the banknotes corresponding to the banknote classification;
and updating the banknote quantity corresponding to the security classification in the initial table of the database into the updated banknote quantity to obtain an updated table of the database.
Preferably, the banknote operation request message is a banknote receiving message; the banknote information field comprises at least one security classification and the number of banknotes corresponding to each security classification; the database initial table stores at least one security classification and the number of banknotes corresponding to each security classification;
updating the stored database initial table according to the banknote information field, wherein the updating comprises the following steps:
matching the security classification in the banknote information field with the security classification in the initial table of the database;
subtracting the number of the banknotes in the banknote information field from the number of the banknotes in the initial table of the database according to the matched banknote classification to obtain an updated banknote number corresponding to the banknote classification;
and updating the banknote quantity corresponding to the security classification in the initial table of the database into the updated banknote quantity to obtain an updated table of the database.
Preferably, the database update table stores at least one classification and the number of the banknotes corresponding to each classification;
analyzing the generated database updating table and the obtained banknote box data message to obtain a banknote classification banknote quantity comparison table, comprising the following steps of:
analyzing the data message of the banknote box to obtain the number of banknotes corresponding to each security in the banknote box;
according to the number of the banknotes corresponding to each security classification in the database updating table and the number of the banknotes corresponding to each security classification in the banknote box, a security classification banknote number comparison table is generated, wherein the security classification banknote number comparison table comprises a plurality of security classifications and each security classification banknote number in the database updating table and the banknote number in the banknote box.
Preferably, according to the bank note quantity that each security in the security bank note quantity comparison table was classified, generate the secondary and tell the paper money message, include:
calculating the quantity difference corresponding to each security classification according to the number of the banknotes classified in each security classification banknote number comparison table;
and generating a secondary cash-out message according to a preset cash-out message format and the quantity difference.
Preferably, after sending the secondary banknote receiving message to the recycling machine for the recycling machine to automatically receive banknotes according to the secondary banknote receiving message, the method further includes:
if the circulator is abnormal, sending a reset instruction to the circulator so as to allow the circulator to reset hardware;
and when the circulator completes hardware reset, sending the secondary banknote-telling message to the circulator so that the circulator can tell banknotes automatically according to the secondary banknote-telling message.
The invention also discloses a circulator exception handling device, which comprises:
the analysis unit is used for analyzing the generated database updating table and the obtained banknote box data message to obtain a banknote classification banknote quantity comparison table if the circulator is abnormal;
the generation unit is used for generating a secondary banknote spitting message according to the number of the banknotes under each security classification in the security classification banknote number comparison table;
and the sending unit is used for sending the secondary banknote-telling message to the circulating machine so that the circulating machine can tell banknotes automatically according to the secondary banknote-telling message.
The invention also discloses a computer-readable medium, on which a computer program is stored which, when executed by a processor, implements a method as described above.
The invention also discloses a computer device comprising a memory for storing information comprising program instructions and a processor for controlling the execution of the program instructions, the processor implementing the method as described above when executing the program.
The invention also discloses a computer program product comprising computer programs/instructions which, when executed by a processor, implement the method as described above.
If the circulator is abnormal, analyzing a generated database updating table and the obtained money box data message to obtain a money classification money quantity comparison table; generating a secondary note-spitting message according to the number of the notes under each note in the note-sorting note number comparison table; the secondary note-telling message is sent to the circulating machine, so that the circulating machine can tell notes automatically according to the secondary note-telling message, time and cost can be saved, transparency is high, reaction speed is high, and use efficiency of the circulating machine is improved.
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.
It should be noted that the method and the device for processing the exception of the cycle machine disclosed by the present application can be used in the technical field of artificial intelligence, and can also be used in any field except the technical field of artificial intelligence.
In order to facilitate understanding of the technical solutions provided in the present application, the following first describes relevant contents of the technical solutions in the present application. A teller cash recycling machine (TCR) is a cash recycling device provided to a bank customer service manager for processing transactions involving cash. Be equipped with the cash circulation case of a plurality of storages cash in the TCR, can realize that a plurality of securities are distinguished and are swallowed the cash circulation function of paper money, telling paper money. TCRs provide integrated device instructions such as: the bank note taking and telling instructions and the like can be interacted with the TCR through the equipment instructions at the terminal, so that the requirement of staff for rapidly storing and taking bank notes can be met. Meanwhile, the system of the TCR records the value classification count of each current circulating box of the TCR, and the current real-time inventory condition of the TCR can be obtained through a TCR interface.
The following describes an implementation procedure of the method for handling exception of the circulator provided by the embodiment of the present invention, taking the circulator exception handling apparatus as an execution subject. It can be understood that the execution subject of the method for processing the exception of the cycle machine provided by the embodiment of the invention includes, but is not limited to, the exception processing device of the cycle machine.
Fig. 1 is a flowchart of an exception handling method for a cycle machine according to an embodiment of the present invention, as shown in fig. 1, the method includes:
and step 101, if the circulator is abnormal, analyzing the generated database updating table and the obtained banknote box data message to obtain a banknote classification quantity comparison table.
And 102, generating a secondary banknote spitting message according to the number of the banknotes of each classification in the classification banknote number comparison table.
And 103, sending the secondary banknote-telling message to a circulator so that the circulator can tell banknotes automatically according to the secondary banknote-telling message.
In the technical scheme provided by the embodiment of the invention, when the circulator is abnormal, the generated database updating table and the obtained data message of the paper money box are analyzed to obtain a paper money classification banknote number comparison table; generating a secondary note-spitting message according to the number of the notes under each note in the note-sorting note number comparison table; the secondary note-telling message is sent to the circulating machine, so that the circulating machine can tell notes automatically according to the secondary note-telling message, time and cost can be saved, transparency is high, reaction speed is high, and use efficiency of the circulating machine is improved.
Fig. 2 is a flowchart of another method for processing exception of a cycle machine according to an embodiment of the present invention, as shown in fig. 2, the method includes:
step 201, a banknote operation request message generated in advance is sent to a circulating machine (TCR).
In the embodiment of the invention, each step is executed by the abnormal processing device of the circulating machine, the abnormal processing device of the circulating machine can be a terminal platform, and the terminal platform is used for recording the cash stock condition of each currency in the circulating machine and providing data support for the subsequent processing of abnormal cash-out.
In the embodiment of the invention, the banknote operation request message comprises a banknote swallowing message and a banknote spitting message. The recycling machine provides a device instruction for a user to carry out banknote operation through the device instruction, the device instruction comprises a banknote swallowing instruction and a banknote spitting instruction, the banknote swallowing instruction corresponds to the banknote swallowing message, and the banknote spitting instruction corresponds to the banknote spitting message.
Taking the json format as an example of the format of the request message, the user initiates a money-swallowing message through a money-swallowing instruction (EndDepositCash), and the generated money-swallowing message is as follows:
{
"commandID":5
}
wherein, the command code (commandID) is 5 to indicate the paper money swallowing request.
Taking the json format as an example of the request message, the user initiates a cash-out message through a cash-out instruction (drawCash), and the generated cash-out message is as follows:
wherein, command code (commandID) is 6 and shows the request of telling paper money, and the bank note information includes: the currency is renminbi, the total sum is 10000 yuan (the units of the two counted digits in the message are respectively angles and scores), the number of the banknotes with the classification of 100 yuan is 99, and the number of the banknotes with the classification of 50 yuan is 2. The banknote information may also include other security information, which is not described in detail herein. It is worth noting that the units of the last two digits of the number relating to the amount in the message are respectively the angle and the point.
And 202, receiving a banknote operation message returned by the circulating machine in response to the banknote operation request message, wherein the banknote operation message comprises an abnormal value field and a banknote information field.
In the embodiment of the invention, if the bill operation request message is a bill swallowing message, the corresponding returned bill operation message is a bill swallowing return message; and if the bill operation request message is a bill spitting message, the corresponding returned bill operation message is a bill spitting return message.
Taking the json format as an example of the banknote operation message, if the banknote operation request message is a banknote swallowing message, the returned banknote swallowing return message is:
wherein, the instruction code (commandID) is 5, the abnormal value field (resultID) is 1, the circulator is normal, the banknote information field (info) describes the banknote information, the banknote information is the counting information of the circulator for swallowing banknotes, and the banknote information comprises: the currency type is renminbi, the total sum is 1250 yuan (the units of the counted two digits in the message are respectively angles and scores), the number of the banknotes with the classification of 100 yuan is 10, and the number of the banknotes with the classification of 50 yuan is 5. The banknote information may also include other currency information and will not be described in detail herein. It is worth noting that the units of the last two digits of the number relating to the amount in the message are respectively the angle and the point.
Taking the json format as an example of the request message, if the banknote operation request message is a banknote-dispensing message, the returned banknote-dispensing return message is:
wherein, the command code (commandID) is 6, the abnormal value field (resultID) is 1, the cycle machine is normal, the banknote information field (info) describes the banknote information, the banknote information is the counting information of the cycle machine for the banknote, and the banknote information comprises: the currency type is Renminbi, the total sum is 10000 Yuan (the units of the two counted digits in the message are respectively angle and branch), the number of the banknotes with the classification of 100 Yuan is 99, and the number of the banknotes with the classification of 50 Yuan is 2. The banknote information may also include other security information, which is not described in detail herein. It is worth noting that the units of the last two digits of the number relating to the amount in the message are respectively the angle and the point.
Step 203, judging whether the abnormal value field is a preset abnormal value, if so, executingstep 205; if not, go to step 204.
In the embodiment of the present invention, the abnormal value is set in advance, and as an alternative, the abnormal value is set to 1. It should be noted that the abnormal value may be set according to an actual situation, and a specific value of the abnormal value is not limited in the embodiment of the present invention.
Specifically, if the abnormal value field is a preset abnormal value, which indicates that the loop engine is abnormal, thestep 205 is continuously executed; if the outlier field is not a predetermined outlier, indicating that the cycler is normal, proceed to step 204.
According to the embodiment of the invention, the scene that the cash dispenser is abnormal can be monitored in real time, whether the cash dispenser is abnormal can be found without manually calculating the cash dispenser amount by a user, and the abnormal response speed of the cash dispenser is effectively increased.
And step 204, updating the stored database initial table according to the banknote information field, and ending the process.
In the embodiment of the invention, if the circulator is normal, the initial table of the database stored in the terminal is updated.
As an alternative, the banknote operation request message is a banknote swallowing message; the banknote information field comprises at least one security classification and the number of banknotes corresponding to each security classification; the database initial table stores at least one classification and the number of banknotes corresponding to each classification. Step 204 specifically includes:
step 2041, the categories in the banknote information fields are matched with the categories in the database initial tables.
For example: the classification of value 100 in the banknote information field is matched with the classification of value 100 in the database initial table.
Step 2042, adding the number of the banknotes in the banknote information field to the number of the banknotes in the initial table of the database according to the matched banknote classification, so as to obtain the updated number of the banknotes corresponding to the banknote classification.
In the embodiment of the present invention, if the number of the banknotes with the classification of 100 in the banknote information field is 10 and the number of the banknotes with the classification of 100 in the initial table of the database is 100, the updated number of the banknotes with the classification of 100 is 110 after the addition.
And step 2043, updating the quantity of the banknotes corresponding to the securities in the initial table of the database into the updated quantity of the banknotes to obtain an updated table of the database.
In the embodiment of the invention, if the number of the updated banknotes with the classification of 100 is 110, the number of the banknotes corresponding to the classification of 100 in the initial table of the database is updated to 110, and the updated database update table is obtained after the update.
In the embodiment of the invention, the initial table of the database is updated to obtain the updated table of the database, so that the counting of cash in the database can be equal to the counting in the circulating machine equipment.
As another alternative, the banknote operation request message is a banknote spitting message; the banknote information field comprises at least one security classification and the number of banknotes corresponding to each security classification; the database initial table stores at least one security classification and the number of the banknotes corresponding to each security classification;step 204 specifically includes:
step 3041, matching the categories in the banknote information fields with the categories in the database initial tables.
For example: the classification of value 100 in the banknote information field is matched with the classification of value 100 in the database initial table.
Step 3042, subtracting the banknote number in the banknote information field from the banknote number in the database initial table according to the matching security, so as to obtain an updated banknote number corresponding to the security.
In the embodiment of the present invention, if the number of the banknotes with the classification of 100 in the banknote information field is 10 and the number of the banknotes with the classification of 100 in the initial table of the database is 100, the updated number of the banknotes with the classification of 100 obtained by subtraction is 90.
Step 3043, update the number of the banknotes corresponding to the security classification in the database initial table to the updated number of the banknotes, so as to obtain a database update table.
In the embodiment of the invention, if the number of the updated banknotes with the classification of 100 is 90, the number of the banknotes corresponding to the classification of 100 in the initial table of the database is updated to 90, and the updated database update table is obtained after the update.
In the embodiment of the invention, the initial table of the database is updated to obtain the updated table of the database, so that the counting of cash in the database can be equal to the counting in the circulating machine equipment.
Step 205, updating the stored database initial table according to the actual banknote operation information input by the user.
In the embodiment of the invention, if the circulator is abnormal, the initial table of the database stored in the terminal is updated.
In the embodiment of the invention, the actual banknote operation information is input by the user according to the actual situation.
As an alternative, the banknote operation request message is a banknote swallowing message; the actual banknote operation information comprises at least one security classification and the number of banknotes corresponding to each security classification; the database initial table stores at least one classification and the number of banknotes corresponding to each classification. Step 205 specifically includes:
and step 2051, matching the classification in the actual banknote operation information with the classification in the initial table of the database.
For example: and matching the classification with the median of 100 in the actual banknote operation information with the classification with the median of 100 in the initial table of the database.
And step 2052, adding the number of the banknotes in the actual banknote operation information and the number of the banknotes in the initial table of the database according to the matched banknote classification to obtain an updated banknote number corresponding to the banknote classification.
In the embodiment of the present invention, if the number of the banknotes with the classification of 100 in the actual banknote operation information is 10 and the number of the banknotes with the classification of 100 in the initial table of the database is 100, the updated number of the banknotes with the classification of 100 is 110 after the addition.
And step 2053, updating the number of the banknotes corresponding to the security classification in the initial table of the database into the updated number of the banknotes to obtain an updated table of the database.
In the embodiment of the invention, if the number of the updated banknotes with the classification of 100 is 110, the number of the banknotes corresponding to the classification of 100 in the initial table of the database is updated to 110, and the updated database update table is obtained after the update.
In the embodiment of the invention, the initial table of the database is updated to obtain the updated table of the database, so that the counting of cash in the database can be equal to the counting in the circulating machine equipment.
As another alternative, the banknote operation request message is a banknote spitting message; the actual banknote operation information comprises at least one security classification and the number of banknotes corresponding to each security classification; the database initial table stores at least one classification and the number of banknotes corresponding to each classification. Step 205 specifically includes:
step 3051, matching the classification in the actual banknote operation information with the classification in the initial table of the database.
For example: the classification of the value 100 in the actual banknote operation information is matched with the classification of the value 100 in the initial table of the database.
And step 3052, subtracting the banknote quantity in the actual banknote operation information from the banknote quantity in the initial table of the database according to the matched banknote classification to obtain the updated banknote quantity corresponding to the banknote classification.
In the embodiment of the present invention, if the number of the banknotes with the classification of 100 in the actual banknote operation information is 10 and the number of the banknotes with the classification of 100 in the initial table of the database is 100, the updated number of the banknotes with the classification of 100 obtained by subtraction is 90.
Step 3053, updating the number of the banknotes corresponding to the security classification in the initial table of the database into the updated number of the banknotes, and obtaining an updated table of the database.
In the embodiment of the invention, if the number of the updated banknotes with the classification of 100 is 90, the number of the banknotes corresponding to the classification of 100 in the initial table of the database is updated to 90, and the updated database update table is obtained after the update.
In the embodiment of the invention, the initial table of the database is updated to obtain the updated table of the database, so that the counting of cash in the database can be equal to the counting in the circulating machine equipment.
And step 206, analyzing the generated database updating table and the obtained banknote box data message to obtain a banknote classification quantity comparison table.
Specifically, step 206 specifically includes:
step 2061, analyzing the banknote box data message to obtain the number of banknotes corresponding to each banknote in the banknote box.
In the embodiment of the invention, the circulator provides a device instruction for a user to perform banknote query operation in the circulator through the device instruction, and the device instruction further comprises a physical banknote box data acquisition instruction which corresponds to the data acquisition message. It should be noted that the obtained physical banknote box data is a banknote and does not include coins.
Taking the format of the message as json format as an example, a user physical bank note box data instruction (gethycashunitdtl) initiates a data acquisition message, and the generated data acquisition message is as follows:
{
"commandID":18
}
wherein, the instruction code (commandID) is 18, which indicates a request for acquiring the data of the physical cash box.
In the embodiment of the invention, if the data acquisition message is initiated, the data message of the cash box is correspondingly returned. Taking the format of the message as json format as an example, the returned banknote box data message is as follows:
wherein, the instruction code (commandID) is 18 to indicate a request for acquiring data of the physical banknote box, the value of the abnormal value field (resultID) is 1 to indicate that the circulating machine is normal, the banknote information field (info) describes the banknote information of the physical banknote box, the banknote information includes the physical banknote box status of each physical banknote box, and the physical banknote box status includes: the physical number (phCassetteID) of the money box is 1, the currency (currenty) is Renminbi (CNY), the classification (value) is 100 yuan, the number (count) of the money is 99, the type (type) of the money box is 1, and the maximum number (max) of the money box is 3000. The physical banknote cassette status also includes other banknote cassette data, which are not described in detail herein. It is worth noting that the units of the last two digits of the number relating to the amount in the message are respectively the angle and the point.
Specifically, the banknote box data message is analyzed to obtain the banknote number corresponding to each banknote classification in the banknote box. For example: the paper money case security paper money is 100 yuan's bank note quantity respectively and is 99, and security paper money is 50 yuan's bank note quantity respectively and is 60, and security paper money is 20 yuan's bank note quantity respectively and is 30, and security paper money is 10 yuan's bank note quantity respectively and is 50, and security paper money is 5 yuan's bank note quantity respectively and is 60, and security paper money is 2 yuan's bank note quantity respectively and is 0, and security paper money is 1 yuan's bank note quantity respectively and is 200.
Step 2062, generating a paper money classifying quantity comparison table according to the quantity of the paper money corresponding to each paper money classifying in the database update table and the quantity of the paper money corresponding to each paper money classifying in the paper money box, wherein the paper money classifying quantity comparison table comprises a plurality of paper money classifying and each paper money classifying respectively the quantity of the paper money in the database update table and the quantity of the paper money in the paper money box.
For example, the database update table generated is shown in table 1:
TABLE 1
| Security paper clamp | Cycle built-in counting | Terminal in-platform counting |
| 100 yuan | PieceA1 | PieceB1 |
| 50 yuan | PieceA2 | PieceB2 |
| 20 Yuan | PieceA3 | PieceB3 |
| 10 Yuan | PieceA4 | PieceB4 |
| 5 yuan | PieceA5 | PieceB5 |
| 2 Yuan | PieceA6 | PieceB6 |
| 1 Yuan | PieceA7 | PieceB7 |
Wherein, the quantity of 100 yuan of bank notes in the circulating machine is the PieceA1 respectively, and the count is the PieceB1 in the terminal platform, and the quantity of the bank notes of other securities in the circulating machine and count in the terminal platform are analogized according to database update table in proper order, and no longer repeated here.
Further, the comparison table of the number of the banknotes classified by the securities is visually displayed on a terminal interface, so that a user can conveniently check the banknote data of each banknote box in the circulating machine and the banknote number in a terminal platform.
And step 207, generating a secondary banknote spitting message according to the number of the banknotes of each classification in the classification banknote number comparison table.
Specifically, according to the number of the banknotes of each classification in the classification banknote number comparison table, calculating a number difference (PieceB-PieceA) corresponding to each classification; and generating a secondary cash-out message according to a preset cash-out message format and the quantity difference. The number difference corresponding to each security classification is the number of the banknotes which are not discharged due to the current abnormity, the number difference corresponding to each security classification is reassembled according to a preset banknote-discharging message format, a secondary banknote-discharging message is generated, the format of the secondary banknote-discharging message is consistent with that of the banknote-discharging message, and the secondary banknote-discharging message is only limited to the security classification and the difference to be set according to actual conditions.
And step 208, sending the secondary banknote-telling message to a circulator so that the circulator can tell banknotes automatically according to the secondary banknote-telling message.
Specifically, the user sends a secondary banknote-dispensing message to the circulator through the banknote-dispensing instruction, so that the circulator can automatically dispense banknotes according to the categories and the number corresponding to the categories in the secondary banknote-dispensing message.
In the embodiment of the invention, the circulator responds to the secondary cash-out message to accurately spit out the number of abnormal un-cash-out sheets, thereby achieving the aim of fast and autonomously cash-out
Further, if the circulator is still abnormal, a reset instruction is sent to the circulator so that the circulator can perform hardware reset; and when the circulator completes hardware reset, sending the secondary cash-out message to the circulator so that the circulator can automatically unload the cash according to the secondary cash-out message.
In the embodiment of the invention, the original technical fort depending on the instruction limitation of a third-party circulator is broken, and the exception scene can be processed more quickly by adding exception processing on the system level; the hand-held cash of the user can be digitalized in real time, so that the consistency of the data in the terminal platform and the circulating machine is realized, the data in the terminal platform and the circulating machine are transparent to the user, and the reliability is higher.
In the technical scheme of the method for processing the abnormity of the circulating machine, when the circulating machine is abnormal, a generated database updating table and an obtained banknote box data message are analyzed to obtain a security classification banknote quantity comparison table; generating a secondary note-spitting message according to the number of the notes under each note in the note-sorting note number comparison table; the secondary note-telling message is sent to the circulator, so that the circulator can tell notes automatically according to the secondary note-telling message, time and cost can be saved, transparency is high, reaction speed is high, and use efficiency of the circulator is improved.
Fig. 3 is a schematic structural diagram of an exception handling apparatus for a cycle machine according to an embodiment of the present invention, the apparatus is configured to execute the exception handling method for the cycle machine, and as shown in fig. 3, the apparatus includes:analysis section 11,generation section 12, andtransmission section 13.
Theanalysis unit 11 is configured to, if an abnormality occurs in the circulator, analyze the generated database update table and the obtained banknote box data message to obtain a banknote classification banknote quantity comparison table.
The generatingunit 12 is configured to generate a secondary banknote spitting message according to the number of banknotes of each classification in the classification banknote number comparison table.
The sendingunit 13 is configured to send the secondary banknote dispensing message to the recycling machine, so that the recycling machine can automatically dispense banknotes according to the secondary banknote dispensing message.
In the embodiment of the present invention, the apparatus further includes: a receivingunit 14, afirst updating unit 15 and asecond updating unit 16.
The sendingunit 13 is also configured to send a banknote operation request message generated in advance to the circulation machine.
The receivingunit 14 is used for receiving a banknote operation message returned by the circulating machine in response to the banknote operation request message, wherein the banknote operation message comprises an abnormal value field and a banknote information field.
Thefirst updating unit 15 is used for updating the stored database initial table according to the actual banknote operation information input by the user when the abnormal value field is a preset abnormal value and the circular machine is abnormal.
Thesecond updating unit 16 is used for updating the stored database initial table according to the banknote information field if the abnormal value field is not an abnormal value, and the circulating machine is normal.
In the embodiment of the invention, the bill operation request message is a bill swallowing message; the actual banknote operation information comprises at least one security classification and the number of banknotes corresponding to each security classification; the database initial table stores at least one security classification and the number of the banknotes corresponding to each security classification; thefirst updating unit 15 is specifically configured to match the classification in the actual banknote operation information with the classification in the initial table of the database; adding the number of the banknotes in the actual banknote operation information and the number of the banknotes in the initial table of the database according to the matched banknote classification to obtain an updated banknote number corresponding to the banknote classification; and updating the quantity of the banknotes corresponding to the security classification in the initial table of the database into the updated quantity of the banknotes to obtain an updated table of the database.
In the embodiment of the invention, the bill operation request message is a bill spitting message; the actual banknote operation information comprises at least one security classification and the number of banknotes corresponding to each security classification; the database initial table stores at least one security classification and the number of the banknotes corresponding to each security classification; thefirst updating unit 15 is specifically configured to match the classification in the actual banknote operation information with the classification in the initial table of the database; subtracting the number of the banknotes in the actual banknote operation information from the number of the banknotes in the initial table of the database according to the matched banknote classification to obtain an updated banknote number corresponding to the banknote classification; and updating the banknote quantity corresponding to the security classification in the initial table of the database into the updated banknote quantity to obtain an updated table of the database.
In the embodiment of the invention, the bill operation request message is a bill swallowing message; the banknote information field comprises at least one security classification and the number of banknotes corresponding to each security classification; the database initial table stores at least one security classification and the number of the banknotes corresponding to each security classification; thesecond updating unit 16 is specifically configured to match the classification in the banknote information field with the classification in the database initial table; adding the number of the banknotes in the banknote information field and the number of the banknotes in the initial table of the database according to the matched banknote classification to obtain the updated number of the banknotes corresponding to the banknote classification; and updating the banknote quantity corresponding to the security classification in the initial table of the database into the updated banknote quantity to obtain an updated table of the database.
In the embodiment of the invention, the banknote operation request message is a banknote receiving message; the banknote information field comprises at least one security classification and the number of banknotes corresponding to each security classification; the database initial table stores at least one security classification and the number of the banknotes corresponding to each security classification; thesecond updating unit 16 is specifically configured to match the classification in the banknote information field with the classification in the database initial table; subtracting the number of the banknotes in the banknote information field from the number of the banknotes in the initial table of the database according to the matched banknote classification to obtain an updated banknote number corresponding to the banknote classification; and updating the banknote quantity corresponding to the security classification in the initial table of the database into the updated banknote quantity to obtain an updated table of the database.
In the embodiment of the invention, the database updating table stores at least one security classification and the number of banknotes corresponding to each security classification; the analyzingunit 11 is specifically configured to analyze the data message of the banknote box to obtain the number of banknotes corresponding to each security classification in the banknote box; according to the number of the banknotes corresponding to each security classification in the database updating table and the number of the banknotes corresponding to each security classification in the banknote box, a security classification banknote number comparison table is generated, wherein the security classification banknote number comparison table comprises a plurality of security classifications and each security classification banknote number in the database updating table and the banknote number in the banknote box.
In the embodiment of the present invention, the generatingunit 12 is specifically configured to calculate a quantity balance corresponding to each classification according to the number of banknotes in each classification in the classification banknote number comparison table; and generating a secondary cash-out message according to a preset cash-out message format and the quantity difference.
In this embodiment of the present invention, the sendingunit 13 is further configured to send a reset instruction to the circulation machine if the circulation machine is abnormal, so as to allow the circulation machine to perform hardware reset.
The sendingunit 13 is further configured to send the secondary banknote-dispensing message to the circulator when the circulator completes hardware reset, so that the circulator can automatically dispense banknotes according to the secondary banknote-dispensing message.
In the scheme of the embodiment of the invention, when the circulator is abnormal, the generated database updating table and the obtained data message of the paper money box are analyzed to obtain a security classification paper money number comparison table; generating a secondary note-spitting message according to the number of the notes under each note in the note-sorting note number comparison table; the secondary note-telling message is sent to the circulator, so that the circulator can tell notes automatically according to the secondary note-telling message, time and cost can be saved, transparency is high, reaction speed is high, and use efficiency of the circulator is improved.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer device, which may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
The embodiment of the present invention provides a computer device, which includes a memory and a processor, where the memory is used to store information including program instructions, and the processor is used to control execution of the program instructions, and the program instructions are loaded by the processor and executed to implement the steps of the above-mentioned embodiment of the method for processing an exception of a cycle machine.
Referring now to FIG. 4, shown is a schematic block diagram of acomputer device 600 suitable for use in implementing embodiments of the present application.
As shown in fig. 4, thecomputer apparatus 600 includes a Central Processing Unit (CPU) 601 which can perform various appropriate works and processes according to a program stored in a Read Only Memory (ROM) 602 or a program loaded from astorage section 608 into a Random Access Memory (RAM)) 603. In the RAM603, various programs and data necessary for the operation of thecomputer apparatus 600 are also stored. The CPU601, ROM602, and RAM603 are connected to each other via abus 604. An input/output (I/O)interface 605 is also connected tobus 604.
The following components are connected to the I/O interface 605: aninput portion 606 including a keyboard, a mouse, and the like; anoutput portion 607 including a Cathode Ray Tube (CRT), a liquid crystal feedback (LCD), and the like, and a speaker and the like; astorage section 608 including a hard disk and the like; and acommunication section 609 including a network interface card such as a LAN card, a modem, or the like. Thecommunication section 609 performs communication processing via a network such as the internet. Thedriver 610 is also connected to the I/O interface 605 as needed. Aremovable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on thedrive 610 as necessary, so that the computer program read out therefrom is mounted as necessary in thestorage section 608.
In particular, according to an embodiment of the present invention, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the invention include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through thecommunication section 609, and/or installed from theremovable medium 611.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should also be noted that 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 a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
According to the technical scheme, the data acquisition, storage, use, processing and the like meet the relevant regulations of national laws and regulations.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.