CN110570135A - method and device for distributing bank notes at network points - Google Patents

method and device for distributing bank notes at network points Download PDF

Info

Publication number
CN110570135A
CN110570135A CN201910888563.1A CN201910888563A CN110570135A CN 110570135 A CN110570135 A CN 110570135A CN 201910888563 A CN201910888563 A CN 201910888563A CN 110570135 A CN110570135 A CN 110570135A
Authority
CN
China
Prior art keywords
currency
distribution
proportion
initial
target
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
Application number
CN201910888563.1A
Other languages
Chinese (zh)
Other versions
CN110570135B (en
Inventor
黄文强
张懂
易念
胡传杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bank of China Ltd
Original Assignee
Bank of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN201910888563.1A priority Critical patent/CN110570135B/en
Publication of CN110570135A publication Critical patent/CN110570135A/en
Application granted granted Critical
Publication of CN110570135B publication Critical patent/CN110570135B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06312Adjustment or analysis of established resource schedule, e.g. resource or task levelling, or dynamic rescheduling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/087Inventory or stock management, e.g. order filling, procurement or balancing against orders
    • G06Q10/0875Itemisation or classification of parts, supplies or services, e.g. bill of materials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/02Banking, e.g. interest calculation or account maintenance

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Human Resources & Organizations (AREA)
  • Economics (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Marketing (AREA)
  • Development Economics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Operations Research (AREA)
  • Tourism & Hospitality (AREA)
  • Quality & Reliability (AREA)
  • Game Theory and Decision Science (AREA)
  • Educational Administration (AREA)
  • Technology Law (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention provides a method and a device for distributing bank notes at a network site, which are characterized in that when a bank note distribution request is received, the amount of each currency corresponding to the bank note distribution request and the market circulation rate of each currency are obtained; determining the initial currency dispensing proportion of each currency according to the market circulation rate; determining the currency distribution priority of each currency based on the denomination of each currency; and adjusting the initial banknote distribution proportion of each currency according to the initial banknote distribution proportion, the amount of money and the banknote distribution priority, and performing banknote distribution operation according to the adjusted initial banknote distribution proportion. By applying the method provided by the embodiment of the invention, the money can be distributed according to the amount and the market circulation rate, the money distribution proportion can be reasonably distributed, the money distribution accuracy is greatly improved, and the money distribution efficiency is also improved.

Description

Method and device for distributing bank notes at network points
Technical Field
the invention relates to the field of currency circulation, in particular to a method and a device for distributing currency by using a network.
Background
The money has a long history, plays an ever-important role in the development process of human beings, and the quantity and types of money required by people in daily life are increased along with the improvement of economic level, so that the cash stock of each financial website is sufficient, and related personnel are often required to maintain the fund quota and the cash adding for ensuring the sufficient cash stock of the financial website.
the inventor researches and discovers that the conventional method for dispensing the bank notes for the financial network often dispenses the bank notes manually by virtue of personal experience, so that the inaccurate dispensing of the bank notes is often caused, and further the poor user experience is caused.
Disclosure of Invention
The invention aims to solve the technical problem of providing a distribution method of the money at the network points, which distributes the money according to the amount of each currency and the market circulation rate of each currency, can reasonably distribute the proportion of the money, greatly improves the accuracy of the money distribution and also improves the money distribution efficiency.
the invention also provides a bank note distribution device for ensuring the realization and application of the method in practice.
a method of dispensing banknotes at a network, comprising:
when a money distribution request is received, acquiring the amount of each currency corresponding to the money distribution request and the market circulation rate of each currency;
determining an initial dispensing proportion for each of the currencies based on the market circulation rate;
determining the distribution priority of each currency, and determining a candidate currency set and a target currency in each currency according to each initial distribution proportion;
comparing the amount of the target currency with a first threshold and a second threshold which are preset respectively, wherein the first threshold is larger than the second threshold;
If the amount of the target currency is larger than or equal to the first threshold value, summing the initial currency distribution proportion of the target currency and a preset first currency distribution proportion to obtain the target currency distribution proportion of the target currency, and adjusting the initial currency distribution proportion of each currency in the candidate currency set according to the currency distribution priority of each currency based on the first currency distribution proportion;
If the amount of the target currency is less than or equal to the second threshold, determining a difference value between the initial currency distribution proportion of the target currency and a preset second currency distribution proportion as the target currency distribution proportion of the target currency, and adjusting the initial currency distribution proportion of each currency in the candidate currency set according to the currency distribution priority of each currency based on the second currency distribution proportion;
And carrying out money distribution operation based on the target money distribution proportion of the target money type and the adjusted initial money distribution proportion of each money type in the candidate money type set.
optionally, in the method, when the banknote distribution request is received, acquiring the amount of each currency corresponding to the banknote distribution request and the market circulation rate of the currency, where the method includes:
analyzing the money distribution request to obtain currency information corresponding to the money distribution request;
and traversing a pre-established money storage table based on the money information to obtain the money amount of each money corresponding to the money information.
in the above method, optionally, the determining a set of candidate currencies and a target currency in each currency according to each initial currency dispensing ratio includes:
In each currency, determining the currency with the largest initial currency distribution ratio as a target currency;
and forming a candidate currency set by the currencies except the target currency in each currency.
in the above method, optionally, the adjusting an initial banknote distribution ratio of each currency in the set of candidate currency types according to the banknote distribution priority of each currency based on the first banknote distribution ratio includes:
Judging whether the currency type with the currency distribution priority lower than the currency distribution priority of the target currency exists in the candidate currency type set or not, and determining a first updating proportion according to the first currency distribution proportion;
if the currency type with the currency distribution priority lower than the currency distribution priority of the target currency exists, forming a first sub-candidate currency set by each currency type with the currency distribution priority lower than the currency distribution priority of the target currency;
judging whether the sum of the initial banknote distribution ratios of all the currencies in the first sub-candidate currency type set is larger than or equal to the first banknote distribution ratio;
if the sum of the initial banknote distribution ratios of the currencies in the first sub-candidate currency set is greater than or equal to the first banknote distribution ratio, sequentially executing a first operation according to the sequence that the banknote distribution priorities of the currencies in the first sub-candidate currency set are from large to small so as to adjust the initial banknote distribution ratios of the currencies in the first sub-candidate currency set until the adjusted initial banknote distribution ratios of the currencies are matched with the first banknote distribution ratio;
if the sum of the initial banknote distribution ratios of all the currencies in the first sub-candidate currency type set is smaller than the first banknote distribution ratio, judging whether the currency types with the initial banknote distribution priorities larger than the target currency type exist in the candidate currency type set or not;
if the currency type with the initial currency distribution proportion larger than the currency distribution priority of the target currency exists, forming a second sub-candidate currency set by each currency type with the currency distribution priority larger than the currency distribution priority of the target currency; sequentially executing a first operation according to the sequence of the distribution priorities of the currencies in the first sub-candidate currency set from large to small so as to adjust the initial distribution proportion of each currency in the first sub-candidate currency set, and sequentially executing a first operation according to the sequence of the distribution priorities of the currencies in the second sub-candidate currency set from small to large so as to adjust the initial distribution proportion of each currency in the second sub-candidate currency set until the adjusted initial distribution proportion of each currency is matched with the first distribution proportion;
the first operation includes: judging whether the initial banknote distribution proportion of the currency is larger than the first updating proportion or not, if so, determining that the initial banknote distribution proportion of the currency is matched with the first banknote distribution proportion, and determining the difference value between the initial banknote distribution proportion of the currency and the first updating proportion as the new initial banknote distribution proportion of the currency; and if the initial banknote distribution proportion of the currency is smaller than the first updating proportion, determining the difference value between the first updating proportion and the initial banknote distribution proportion of the currency as a new first updating proportion, and adjusting the initial banknote distribution proportion of the currency to be zero.
Optionally, the adjusting, based on the second banknote distribution ratio, the initial banknote distribution ratio of each currency in the set of candidate currency according to the banknote distribution priority of each currency includes:
judging whether the currency with the currency distribution priority higher than that of the target currency exists or not, and determining a second updating proportion according to the second currency distribution proportion;
if the currency type with the currency distribution priority higher than the currency distribution priority of the target currency exists, the currency type with the currency distribution priority higher than the currency distribution priority of the target currency forms a third sub-candidate currency set;
judging whether the amount of each currency in the third sub-candidate currency set is greater than or equal to the amount of the currency corresponding to the second currency distribution proportion;
If the sum of each currency in the third sub-candidate currency set is greater than or equal to the sum of the corresponding currency of the second currency distribution ratio, sequentially executing a second operation according to the sequence that the currency distribution priority of the currency in the third sub-candidate currency set is from small to large so as to adjust the initial currency distribution ratio of each currency in the third sub-candidate currency set until the adjusted sum of the currency is matched with the sum of the corresponding currency of the second currency distribution ratio;
If the currency type with the currency distribution priority higher than the currency distribution priority of the target currency does not exist, the currency type with the currency distribution priority lower than the currency distribution priority of the target currency is formed into a fourth candidate currency set;
sequentially executing the second operation according to the sequence that the distribution priority of the currencies in the fourth sub-candidate currency set is from large to small so as to adjust the initial distribution proportion of each currency in the fourth sub-candidate currency set until the amount of the adjusted currencies is matched with the amount of the currencies corresponding to the second distribution proportion;
the second operation includes: judging whether the amount of the currency is larger than the target amount; if the sum of the initial currency dispensing proportion of the currency and the second updating proportion is larger than or equal to the target sum, determining the sum as a new initial currency dispensing proportion of the currency, and determining that the sum of the currency and the second updating proportion is matched with the sum corresponding to the second currency dispensing proportion; the target amount is the sum of the amount corresponding to the initial money distribution proportion of the currency and the amount corresponding to the second updating proportion; and if the amount of the currency is less than the target amount, adjusting the initial currency dispensing proportion and the second updating proportion of the currency based on the amount of the currency.
a cash dispensing device for a network, comprising:
The receiving unit is used for acquiring the amount of each currency corresponding to the money distribution request and the market circulation rate of each currency when receiving the money distribution request;
A first determination unit for determining an initial dispensing ratio of each of the currencies based on the market circulation rate;
a second determining unit, configured to determine a dispensing priority of each currency, and determine a set of candidate currencies and a target currency in each currency according to each initial dispensing ratio;
the comparison unit is used for comparing the amount of money of the target currency with a first threshold and a second threshold which are preset respectively, wherein the first threshold is larger than the second threshold;
the first adjusting unit is used for summing the initial banknote distribution proportion of the target currency and a preset first banknote distribution proportion to obtain the target banknote distribution proportion of the target currency when the amount of the target currency is larger than or equal to the first threshold value, and adjusting the initial banknote distribution proportion of each currency in the candidate currency set according to the banknote distribution priority of each currency based on the first banknote distribution proportion;
a second adjusting unit, configured to determine, when the amount of money of the target currency is less than or equal to the second threshold, a difference between an initial banknote distribution ratio of the target currency and a preset second banknote distribution ratio as a target banknote distribution ratio of the target currency, and adjust, based on the second banknote distribution ratio, the initial banknote distribution ratio of each currency in the set of candidate currency according to a banknote distribution priority of each currency;
and the execution unit is used for carrying out money distribution operation according to the target money distribution proportion of the target money type and the adjusted initial money distribution proportion of each money type in the candidate money type set.
optionally, the above network point banknote dispensing device includes:
The analysis subunit is used for analyzing the money distribution request to obtain currency information corresponding to the money distribution request;
and the indexing subunit is used for traversing the pre-established money storage table according to the money information to obtain the money amount of each money corresponding to the money information.
optionally, the above dispensing apparatus for network nodes, wherein the second determining unit includes:
a first determining subunit, configured to determine, as a target currency, a currency type having a largest initial currency allocation ratio among the currency types;
and the first execution subunit is used for forming the currency types except the target currency type into a candidate currency type set.
in the above-mentioned money distribution device for a branch point, optionally, the first adjusting unit that adjusts an initial money distribution ratio of each currency in the set of candidate currency types according to a money distribution priority of each currency based on the first money distribution ratio includes:
the first judging subunit is used for judging whether the currency with the currency distribution priority lower than that of the target currency exists in the candidate currency set or not, and determining a first updating proportion according to the first currency distribution proportion;
A second execution subunit, configured to, when there is a currency type whose dispensing priority is smaller than that of the target currency, group each currency type whose dispensing priority is smaller than that of the target currency into a first sub-candidate currency type set;
a second judging subunit, configured to judge whether a sum of initial banknote distribution ratios of the respective currencies in the first sub-candidate currency type set is greater than or equal to the first banknote distribution ratio;
a first adjusting subunit, configured to, when a sum of initial banknote distribution ratios of the currencies in the first sub-candidate currency set is greater than or equal to the first banknote distribution ratio, sequentially perform a first operation according to a descending order of banknote distribution priorities of the currencies in the first sub-candidate currency set, so as to adjust the initial banknote distribution ratios of the currencies in the first sub-candidate currency set until the adjusted initial banknote distribution ratios of the currencies are matched with the first banknote distribution ratio;
A third judging subunit, configured to, when a sum of initial banknote distribution ratios of the respective currencies in the first sub-candidate currency set is smaller than the first banknote distribution ratio, judge whether there is a currency in the candidate currency set whose initial banknote distribution priority is greater than the target currency;
a second adjusting subunit, configured to, when there is a currency type in which the initial currency dispensing ratio is greater than the currency dispensing priority of the target currency, form a second sub-candidate currency set for each currency type in which the currency dispensing priority is greater than the currency dispensing priority of the target currency; sequentially executing a first operation according to the sequence of the distribution priorities of the currencies in the first sub-candidate currency set from large to small so as to adjust the initial distribution proportion of each currency in the first sub-candidate currency set, and sequentially executing a first operation according to the sequence of the distribution priorities of the currencies in the second sub-candidate currency set from small to large so as to adjust the initial distribution proportion of each currency in the second sub-candidate currency set until the adjusted initial distribution proportion of each currency is matched with the first distribution proportion;
The first operation includes: judging whether the initial banknote distribution proportion of the currency is larger than the first updating proportion or not, if so, determining that the initial banknote distribution proportion of the currency is matched with the first banknote distribution proportion, and determining the difference value between the initial banknote distribution proportion of the currency and the first updating proportion as the new initial banknote distribution proportion of the currency; and if the initial banknote distribution proportion of the currency is smaller than the first updating proportion, determining the difference value between the first updating proportion and the initial banknote distribution proportion of the currency as a new first updating proportion, and adjusting the initial banknote distribution proportion of the currency to be zero.
in the foregoing banknote distribution apparatus, optionally, the second adjusting unit that adjusts an initial banknote distribution ratio of each currency in the set of candidate currency types according to the banknote distribution priority of each currency based on the second banknote distribution ratio includes:
The fourth judging subunit is used for judging whether the currency with the currency distribution priority higher than that of the target currency exists or not and determining a second updating proportion according to the second currency distribution proportion;
a third execution subunit, configured to, when there is a currency type whose dispensing priority is greater than that of the target currency, group the currency type whose dispensing priority is greater than that of the target currency into a third sub-candidate currency set;
a fifth judging subunit, configured to judge whether the amount of each currency in the third sub-candidate currency set is greater than or equal to the amount of the currency corresponding to the second money allocation ratio;
a third adjusting subunit, configured to, when the amount of money of each currency in the third sub-candidate currency set is greater than or equal to the amount of money corresponding to the second money allocation ratio, sequentially perform a second operation according to a descending order of the money allocation priority of the currency in the third sub-candidate currency set, so as to adjust an initial money allocation ratio of each currency in the third sub-candidate currency set until the adjusted amount of money of the currency matches the amount of money corresponding to the second money allocation ratio;
a fourth execution subunit configured to, when there is no currency of which the dispensing priority is greater than the dispensing priority of the target currency, group the currency of which the dispensing priority is less than the dispensing priority of the target currency into a fourth set of candidate currency;
a fourth adjusting subunit, configured to sequentially execute the second operation according to a descending order of the banknote distribution priority of the currencies in the fourth sub-candidate currency set, so as to adjust an initial banknote distribution ratio of each currency in the fourth sub-candidate currency set until the adjusted amount of the currencies matches the amount of the currencies corresponding to the second banknote distribution ratio;
The second operation includes: judging whether the amount of the currency is larger than the target amount; if the sum of the initial currency dispensing proportion of the currency and the second updating proportion is larger than or equal to the target sum, determining the sum as a new initial currency dispensing proportion of the currency, and determining that the sum of the currency and the second updating proportion is matched with the sum corresponding to the second currency dispensing proportion; the target amount is the sum of the amount corresponding to the initial money distribution proportion of the currency and the amount corresponding to the second updating proportion; and if the amount of the currency is less than the target amount, adjusting the initial currency dispensing proportion and the second updating proportion of the currency based on the amount of the currency.
compared with the prior art, the invention has the following advantages:
the invention provides a bank note distribution method for a network, which comprises the following steps: when a money distribution request is received, acquiring the amount of each currency corresponding to the money distribution request and the market circulation rate of each currency; determining an initial dispensing proportion for each of the currencies based on the market circulation rate; determining the distribution priority of each currency, and determining a candidate currency set and a target currency in each currency according to each initial distribution proportion; comparing the amount of the target currency with a first threshold and a second threshold which are preset respectively, wherein the first threshold is larger than the second threshold; if the amount of the target currency is larger than or equal to the first threshold value, summing the initial currency distribution proportion of the target currency and a preset first currency distribution proportion to obtain the target currency distribution proportion of the target currency, and adjusting the initial currency distribution proportion of each currency in the candidate currency set according to the currency distribution priority of each currency based on the first currency distribution proportion; if the amount of the target currency is less than or equal to the second threshold, determining a difference value between the initial currency distribution proportion of the target currency and a preset second currency distribution proportion as the target currency distribution proportion of the target currency, and adjusting the initial currency distribution proportion of each currency in the candidate currency set according to the currency distribution priority of each currency based on the second currency distribution proportion; and carrying out money distribution operation based on the target money distribution proportion of the target money type and the adjusted initial money distribution proportion of each money type in the candidate money type set. By applying the method provided by the embodiment of the invention, the money is distributed according to the amount of each currency and the market circulation rate of each currency, the money distribution proportion can be reasonably distributed, the money distribution accuracy is greatly improved, and the money distribution efficiency is also improved.
Drawings
in order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
fig. 1 is a flowchart of a method for distributing money at a network site according to the present invention;
fig. 2 is a flowchart of another method of a money distribution method of a network node according to the present invention;
fig. 3 is a schematic structural diagram of a cash dispensing device for a network node according to the present invention;
fig. 4 is a schematic structural diagram of a dot electronic device according to the present invention.
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.
the invention is operational with numerous general purpose or special purpose computing device environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multi-processor apparatus, distributed computing environments that include any of the above devices or equipment, and the like.
the embodiment of the invention provides a bank note distribution method for a network, which can be applied to various system platforms, wherein an execution main body of the method can be a computer terminal or a processor of various mobile devices, and a flow chart of the method is shown in fig. 1 and specifically comprises the following steps:
S101: and when a money distribution request is received, acquiring the amount of each currency corresponding to the money distribution request and the market circulation rate of each currency.
in the method provided by the embodiment of the invention, the amount of the currency can be the stock amount of the currency in the vault.
in the method provided by the embodiment of the invention, the regional information corresponding to the money distribution request can be obtained by analyzing the money distribution request, the market circulation rate set corresponding to the regional information can be obtained by traversing the pre-established market circulation rate storage table according to the regional information, and the market circulation rate of each currency is determined in the market circulation rate set. The pre-established market rate table includes market rates for each currency type for each zone.
in the method provided by the embodiment of the invention, the currency types can be 1 yuan, 5 yuan, 10 yuan, 50 yuan, 100 yuan and the like.
S102: determining an initial dispensing proportion for each of the currencies based on the market circulation rate.
in the method provided by the embodiment of the invention, the market circulation rate of each currency corresponds to the initial currency allocation proportion of the currency; if the market circulation for that currency is 20%, this determines that the initial dispensing rate for that currency is 20%.
S103: and determining the distribution priority of each currency, and determining a candidate currency set and a target currency in each currency according to each initial distribution proportion.
in the method provided by the embodiment of the invention, the larger the denomination corresponding to the currency, the higher the dispensing priority.
s104: and comparing the amount of the target currency with a first threshold and a second threshold which are preset respectively, wherein the first threshold is larger than the second threshold.
In the method provided by the embodiment of the invention, the first threshold value can be an upper limit of the amount of the currency amount stored in the vault, and the second threshold value can be a lower limit of the amount of the currency amount stored in the vault.
s105: and if the amount of the target currency is larger than or equal to the first threshold value, summing the initial currency distribution proportion of the target currency and a preset first currency distribution proportion to obtain the target currency distribution proportion of the target currency, and adjusting the initial currency distribution proportion of each currency in the candidate currency set according to the currency distribution priority of each currency based on the first currency distribution proportion.
in the method provided by the embodiment of the present invention, based on the first money distribution ratio, the initial money distribution ratio of each currency in the candidate currency set is sequentially adjusted according to the money distribution priority of each currency, so that the adjusted initial money distribution ratio of each currency is matched with the first money distribution ratio.
S106: and if the amount of the target currency is less than or equal to the second threshold, determining the difference value between the initial currency distribution proportion of the target currency and a preset second currency distribution proportion as the target currency distribution proportion of the target currency, and adjusting the initial currency distribution proportion of each currency in the candidate currency set according to the currency distribution priority of each currency based on the second currency distribution proportion.
in the method provided by the embodiment of the present invention, based on the second money allocation proportion, the initial money allocation proportion of each currency in the candidate currency set is adjusted according to the money allocation priority of each currency, so that the amount of money of the adjusted currency is matched with the amount of money corresponding to the second money allocation proportion.
s107: and carrying out money distribution operation based on the target money distribution proportion of the target money type and the adjusted initial money distribution proportion of each money type in the candidate money type set.
in the method provided by the embodiment of the present invention, the banknote dispensing operation may include: sending money distribution information to a user, wherein the money distribution information comprises a target money distribution proportion of a target money type and an adjusted initial money distribution proportion corresponding to each money type set in the candidate money type set, analyzing the change instruction when receiving a change instruction corresponding to the money distribution information, obtaining a change money distribution proportion of the target money type and a change money distribution proportion of each money type in the candidate money type set, determining a money distribution amount according to the change money distribution proportion of the target money type and the change money distribution proportion of each money type in the candidate money type set, which are contained in the change instruction, and determining the money distribution amount according to the target money distribution proportion of the target money type and the adjusted initial money distribution proportion of each money type in the candidate money type set when receiving a determination instruction corresponding to the money distribution information.
in the method provided by the embodiment of the present invention, the process of determining the money dispensing amount may include: determining the total amount of money distribution amount corresponding to the money distribution request, and determining the money distribution amount of the target currency and the money distribution amount of each currency in the candidate currency set based on the total amount of money distribution, the target money distribution ratio and the adjusted initial money distribution ratio of each currency in the candidate currency set; based on the dispensed amount of the target currency and the dispensed amounts of each currency in the set of candidate currencies.
in the method provided by the embodiment of the invention, when a money distribution request is received, the amount of each currency corresponding to the money distribution request and the market circulation rate of each currency are obtained; determining the initial currency dispensing proportion of each currency according to the market circulation rate; determining the currency distribution priority of each currency based on the denomination of each currency; and adjusting the initial banknote distribution proportion of each currency according to the initial banknote distribution proportion, the amount of money and the banknote distribution priority, and performing banknote distribution operation according to the adjusted initial banknote distribution proportion. By applying the method provided by the embodiment of the invention, the money is distributed according to the amount of each currency and the market circulation rate of each currency, the money distribution proportion can be reasonably distributed, the money distribution accuracy is greatly improved, and the money distribution efficiency is also improved.
In the method provided in the embodiment of the present invention, based on the foregoing implementation process, specifically, when receiving a banknote dispensing request, the method obtains the amount of each currency corresponding to the banknote dispensing request and the market circulation rate of the currency, as shown in fig. 2, specifically includes:
s201: and analyzing the money distribution request to obtain the currency information corresponding to the money distribution request.
in the method provided by the embodiment of the invention, the currency information can be RMB, USD, Japanese Yuan, Euro, French and British pound.
S202: and traversing a pre-established money storage table based on the money information to obtain the money amount of each money corresponding to the money information.
in the method provided by the embodiment of the present invention, the amount storage table includes the amount of each currency corresponding to each currency information, for example, the rmb includes a stock amount of 100 yuan, a stock amount of 50 yuan, a stock amount of 10 yuan, and the like.
in the method provided in the embodiment of the present invention, based on the above implementation process, specifically, the determining a set of candidate currencies and a target currency in each currency according to each initial banknote dispensing ratio includes:
in each currency, determining the currency with the largest initial currency distribution ratio as a target currency;
And forming a candidate currency set by the currencies except the target currency in each currency.
in the method provided by the embodiment of the invention, the target currency can be determined according to the market circulation rate of each currency, namely, the currency with the largest market circulation rate is used as the target currency.
in the method provided in the embodiment of the present invention, based on the foregoing implementation process, specifically, the adjusting an initial banknote distribution ratio of each currency in the set of candidate currency types according to the banknote distribution priority of each currency type based on the first banknote distribution ratio includes:
Judging whether the currency type with the currency distribution priority lower than the currency distribution priority of the target currency exists in the candidate currency type set or not, and determining a first updating proportion according to the first currency distribution proportion;
if the currency type with the currency distribution priority lower than the currency distribution priority of the target currency exists, forming a first sub-candidate currency set by each currency type with the currency distribution priority lower than the currency distribution priority of the target currency;
judging whether the sum of the initial banknote distribution ratios of all the currencies in the first sub-candidate currency type set is larger than or equal to the first banknote distribution ratio;
If the sum of the initial banknote distribution ratios of the currencies in the first sub-candidate currency set is greater than or equal to the first banknote distribution ratio, sequentially executing a first operation according to the sequence that the banknote distribution priorities of the currencies in the first sub-candidate currency set are from large to small so as to adjust the initial banknote distribution ratios of the currencies in the first sub-candidate currency set until the adjusted initial banknote distribution ratios of the currencies are matched with the first banknote distribution ratio;
if the sum of the initial banknote distribution ratios of all the currencies in the first sub-candidate currency type set is smaller than the first banknote distribution ratio, judging whether the currency types with the initial banknote distribution priorities larger than the target currency type exist in the candidate currency type set or not;
if the currency type with the initial currency distribution proportion larger than the currency distribution priority of the target currency exists, forming a second sub-candidate currency set by each currency type with the currency distribution priority larger than the currency distribution priority of the target currency; sequentially executing a first operation according to the sequence of the distribution priorities of the currencies in the first sub-candidate currency set from large to small so as to adjust the initial distribution proportion of each currency in the first sub-candidate currency set, and sequentially executing a first operation according to the sequence of the distribution priorities of the currencies in the second sub-candidate currency set from small to large so as to adjust the initial distribution proportion of each currency in the second sub-candidate currency set until the adjusted initial distribution proportion of each currency is matched with the first distribution proportion;
the first operation includes: judging whether the initial banknote distribution proportion of the currency is larger than the first updating proportion or not, if so, determining that the initial banknote distribution proportion of the currency is matched with the first banknote distribution proportion, and determining the difference value between the banknote distribution proportion of the currency and the first updating proportion as the new initial banknote distribution proportion of the currency; and if the initial banknote distribution proportion of the currency is smaller than the first updating proportion, determining the difference value between the first updating proportion and the initial banknote distribution proportion of the currency as a new first updating proportion, and adjusting the initial banknote distribution proportion of the currency to be zero.
in the method provided by the embodiment of the present invention, the process of determining the first update proportion according to the first banknote distribution proportion may be that the size of the first banknote distribution proportion is determined, the first update proportion is determined based on the size of the first banknote distribution proportion, and the size of the first banknote distribution proportion is consistent with the size of the first update proportion. That is, if the first dispensing ratio is 20%, the first updating ratio may be 20%.
in the method provided by the embodiment of the present invention, in the process of executing the first operation, the difference between the initial banknote dispensing ratio of the currency and the first update ratio is determined as the new initial banknote dispensing ratio of the currency, which can be understood as subtracting the first update ratio from the initial banknote dispensing ratio of the currency to obtain the difference between the initial banknote dispensing ratio of the currency and the first update ratio, and determining the difference as the new initial banknote dispensing ratio of the currency.
in the method provided in the embodiment of the present invention, based on the foregoing implementation process, specifically, the adjusting, based on the second banknote distribution ratio and according to the banknote distribution priority of each banknote type, the initial banknote distribution ratio of each banknote type in the candidate banknote type set includes:
Judging whether the currency with the currency distribution priority higher than that of the target currency exists or not, and determining a second updating proportion according to the second currency distribution proportion;
if the currency type with the currency distribution priority higher than the currency distribution priority of the target currency exists, the currency type with the currency distribution priority higher than the currency distribution priority of the target currency forms a third sub-candidate currency set;
judging whether the amount of each currency in the third sub-candidate currency set is greater than or equal to the amount of the currency corresponding to the second currency distribution proportion;
If the sum of each currency in the third sub-candidate currency set is greater than or equal to the sum of the corresponding currency of the second currency distribution ratio, sequentially executing a second operation according to the sequence that the currency distribution priority of the currency in the third sub-candidate currency set is from small to large so as to adjust the initial currency distribution ratio of each currency in the third sub-candidate currency set until the adjusted sum of the currency is matched with the sum of the corresponding currency of the second currency distribution ratio;
If the currency type with the currency distribution priority higher than the currency distribution priority of the target currency does not exist, the currency type with the currency distribution priority lower than the currency distribution priority of the target currency is formed into a fourth candidate currency set;
sequentially executing the second operation according to the sequence that the distribution priority of the currencies in the fourth sub-candidate currency set is from large to small so as to adjust the initial distribution proportion of each currency in the fourth sub-candidate currency set until the amount of the adjusted currencies is matched with the amount of the currencies corresponding to the second distribution proportion;
The second operation includes: judging whether the amount of the currency is larger than the target amount; if the sum of the initial currency dispensing proportion of the currency and the second updating proportion is larger than or equal to the target sum, determining the sum as a new initial currency dispensing proportion of the currency, and determining that the sum of the currency and the second updating proportion is matched with the sum corresponding to the second currency dispensing proportion; the target amount is the sum of the amount corresponding to the initial money distribution proportion of the currency and the amount corresponding to the second updating proportion; and if the amount of the currency is less than the target amount, adjusting the initial currency dispensing proportion and the second updating proportion of the currency based on the amount of the currency.
in the method provided by the embodiment of the present invention, it is determined whether the amount of each currency in the third sub-candidate currency set is greater than or equal to the amount of the currency corresponding to the second money allocation ratio; if the amount of each currency in the third sub-candidate currency set is less than the amount of the currency corresponding to the second money distribution proportion, judging whether the currency with the currency distribution priority lower than the currency distribution priority of the target currency exists or not, if the currency with the currency distribution priority lower than the currency distribution priority of the target currency exists, forming a fourth sub-candidate currency set by currency types with the currency distribution priority lower than that of the target currency, sequentially executing second operations according to the sequence of the currency distribution priority of the third sub-candidate currency set from small to large, and sequentially executing the second operations according to the sequence of the currency distribution priority of the fourth sub-candidate currency set from large to small, and adjusting the initial money distribution proportion of each currency in the fourth sub-candidate currency set until the amount of the adjusted currency is matched with the amount of money corresponding to the second money distribution proportion.
In the method provided by the embodiment of the present invention, the amount corresponding to the second money allocation ratio may be determined by the total amount of money allocated and the second money allocation ratio. And when the amount of the adjusted currency is equal to or exceeds the amount of the currency corresponding to the second currency dispensing ratio, determining that the amount of the adjusted currency is matched with the amount of the currency corresponding to the second currency dispensing ratio.
based on the method provided by the embodiment of the present invention, in the practical application process, specifically, the following example is taken to illustrate the banknote dispensing of rmb: when a money distribution request is received, the amount of each currency of the RMB in the bank, a first threshold value and a second threshold value of each currency are firstly obtained, then the market circulation rate of each currency of the RMB is determined, the initial money distribution proportion of each currency is determined according to the market circulation rate, and the currency with the largest initial money distribution proportion is determined as the target currency for money distribution. For example, one hundred units has a market circulation rate of 40%, fifty units has a market circulation rate of 15%, ten units has a market circulation rate of 20%, and 1 unit has a market circulation rate of 25%, if the amount of one hundred units in the stock is less than the first threshold and greater than the second threshold, the money allocation one hundred units accounts for 40%, if the amount of one hundred units is greater than or equal to the first threshold, the 100 unit occupancy is increased by 20%, and the fifty unit occupancy is decreased by 20%, because the fifty unit circulation rate is only 15%, so the ten unit occupancy needs to be decreased by 5%. If the amount of one hundred units in the bank is less than or equal to a second threshold value, the one hundred unit proportion of the bank money distribution is reduced by 20 percent, and the actual proportion is 20 percent; the ratio of the last dispensing priority currency of the dispensing priority of the currency needs to be increased by 20%, but because the 100 Yuan currency is the currency with the highest dispensing priority of the RMB currency, the ratio of the next dispensing priority currency of the currency needs to be increased by 20%, at this time, whether the amount of the next dispensing priority currency of the currency meets the amount corresponding to the increased ratio needs to be judged, if not, the next dispensing priority currency of the 50 Yuan currency needs to be increased by a certain dispensing ratio, and so on, and a complete dispensing process is realized.
the above specific implementations and the derivation processes of the implementations are all within the scope of the present invention.
corresponding to the method described in fig. 1, an embodiment of the present invention further provides a cash dispensing apparatus for a network node, which is used to implement the method in fig. 1 specifically, and the cash dispensing apparatus for a network node provided in the embodiment of the present invention may be applied to a computer terminal or various mobile devices, and a schematic structural diagram of the cash dispensing apparatus is shown in fig. 3, and specifically includes:
The receiving unit 301 is configured to, when receiving a money distribution request, obtain the amount of each currency corresponding to the money distribution request and the market circulation rate of each currency;
A first determination unit 302 for determining an initial dispensing ratio of each currency based on the market circulation rate;
A second determining unit 303, configured to determine a dispensing priority of each currency, and determine a set of candidate currencies and a target currency in each currency according to each initial dispensing ratio;
a comparing unit 304, configured to compare the amount of money of the target currency with a first threshold and a second threshold that are preset, respectively, where the first threshold is greater than the second threshold;
A first adjusting unit 305, configured to, when the amount of money of the target currency is greater than or equal to the first threshold, perform summation operation on an initial banknote distribution ratio of the target currency and a preset first banknote distribution ratio to obtain a target banknote distribution ratio of the target currency, and adjust the initial banknote distribution ratio of each currency in the set of candidate currency according to the banknote distribution priority of each currency based on the first banknote distribution ratio;
a second adjusting unit 306, configured to determine, as a target dispensing proportion of the target currency, a difference between an initial dispensing proportion of the target currency and a preset second dispensing proportion when the amount of the target currency is less than or equal to the second threshold, and adjust, based on the second dispensing proportion, the initial dispensing proportion of each currency in the set of candidate currency according to a dispensing priority of each currency;
the execution unit 307 is configured to perform a dispensing operation according to the target dispensing ratio of the target currency and the adjusted initial dispensing ratio of each currency in the set of candidate currencies.
Optionally, in the money dispensing apparatus for outlets provided in the embodiment of the present invention, the receiving unit 301 includes:
The analysis subunit is used for analyzing the money distribution request to obtain currency information corresponding to the money distribution request;
And the indexing subunit is used for traversing the pre-established money storage table according to the money information to obtain the money amount of each money corresponding to the money information.
optionally, in the money dispensing apparatus for outlets provided in the embodiment of the present invention, the second determining unit 303 includes:
A first determining subunit, configured to determine, as a target currency, a currency type having a largest initial currency allocation ratio among the currency types;
And the first execution subunit is used for forming the currency types except the target currency type into a candidate currency type set.
Optionally, in the money distribution device for outlets provided in the embodiment of the present invention, the first adjusting unit 305 that adjusts an initial money distribution ratio of each currency in the set of candidate currency types according to the money distribution priority of each currency based on the first money distribution ratio includes:
The first judging subunit is used for judging whether the currency with the currency distribution priority lower than that of the target currency exists in the candidate currency set or not, and determining a first updating proportion according to the first currency distribution proportion;
A second execution subunit, configured to, when there is a currency type whose dispensing priority is smaller than that of the target currency, group each currency type whose dispensing priority is smaller than that of the target currency into a first sub-candidate currency type set;
A second judging subunit, configured to judge whether a sum of initial banknote distribution ratios of the respective currencies in the first sub-candidate currency type set is greater than or equal to the first banknote distribution ratio;
a first adjusting subunit, configured to, when a sum of initial banknote distribution ratios of the currencies in the first sub-candidate currency set is greater than or equal to the first banknote distribution ratio, sequentially perform a first operation according to a descending order of banknote distribution priorities of the currencies in the first sub-candidate currency set, so as to adjust the initial banknote distribution ratios of the currencies in the first sub-candidate currency set until the adjusted initial banknote distribution ratios of the currencies are matched with the first banknote distribution ratio;
A third judging subunit, configured to, when a sum of initial banknote distribution ratios of the respective currencies in the first sub-candidate currency set is smaller than the first banknote distribution ratio, judge whether there is a currency in the candidate currency set whose initial banknote distribution priority is greater than the target currency;
A second adjusting subunit, configured to, when there is a currency type in which the initial currency dispensing ratio is greater than the currency dispensing priority of the target currency, form a second sub-candidate currency set for each currency type in which the currency dispensing priority is greater than the currency dispensing priority of the target currency; sequentially executing a first operation according to the sequence of the distribution priorities of the currencies in the first sub-candidate currency set from large to small so as to adjust the initial distribution proportion of each currency in the first sub-candidate currency set, and sequentially executing a first operation according to the sequence of the distribution priorities of the currencies in the second sub-candidate currency set from small to large so as to adjust the initial distribution proportion of each currency in the second sub-candidate currency set until the adjusted initial distribution proportion of each currency is matched with the first distribution proportion;
The first operation includes: judging whether the initial banknote distribution proportion of the currency is larger than the first updating proportion or not, if so, determining that the initial banknote distribution proportion of the currency is matched with the first banknote distribution proportion, and determining the difference value between the initial banknote distribution proportion of the currency and the first updating proportion as the new initial banknote distribution proportion of the currency; and if the initial banknote distribution proportion of the currency is smaller than the first updating proportion, determining the difference value between the first updating proportion and the initial banknote distribution proportion of the currency as a new first updating proportion, and adjusting the initial banknote distribution proportion of the currency to be zero.
Optionally, in the money distribution apparatus for outlets provided in the embodiment of the present invention, the second adjusting unit 306, which adjusts an initial money distribution ratio of each currency in the set of candidate currency types according to the money distribution priority of each currency based on the second money distribution ratio, includes:
the fourth judging subunit is used for judging whether the currency with the currency distribution priority higher than that of the target currency exists or not and determining a second updating proportion according to the second currency distribution proportion;
a third execution subunit, configured to, when there is a currency type whose dispensing priority is greater than that of the target currency, group the currency type whose dispensing priority is greater than that of the target currency into a third sub-candidate currency set;
a fifth judging subunit, configured to judge whether the amount of each currency in the third sub-candidate currency set is greater than or equal to the amount of the currency corresponding to the second money allocation ratio;
A third adjusting subunit, configured to, when the amount of money of each currency in the third sub-candidate currency set is greater than or equal to the amount of money corresponding to the second money allocation ratio, sequentially perform a second operation according to a descending order of the money allocation priority of the currency in the third sub-candidate currency set, so as to adjust an initial money allocation ratio of each currency in the third sub-candidate currency set until the adjusted amount of money of the currency matches the amount of money corresponding to the second money allocation ratio;
a fourth execution subunit configured to, when there is no currency of which the dispensing priority is greater than the dispensing priority of the target currency, group the currency of which the dispensing priority is less than the dispensing priority of the target currency into a fourth set of candidate currency;
a fourth adjusting subunit, configured to sequentially execute the second operation according to a descending order of the banknote distribution priority of the currencies in the fourth sub-candidate currency set, so as to adjust an initial banknote distribution ratio of each currency in the fourth sub-candidate currency set until the adjusted amount of the currencies matches the amount of the currencies corresponding to the second banknote distribution ratio;
The second operation includes: judging whether the amount of the currency is larger than the target amount; if the sum of the initial currency dispensing proportion of the currency and the second updating proportion is larger than or equal to the target sum, determining the sum as a new initial currency dispensing proportion of the currency, and determining that the sum of the currency and the second updating proportion is matched with the sum corresponding to the second currency dispensing proportion; the target amount is the sum of the amount corresponding to the initial money distribution proportion of the currency and the amount corresponding to the second updating proportion; and if the amount of the currency is less than the target amount, adjusting the initial currency dispensing proportion and the second updating proportion of the currency based on the amount of the currency.
The money distribution device provided by the embodiment of the invention obtains the amount of each currency corresponding to the money distribution request and the market circulation rate of each currency by receiving the money distribution request; determining the initial currency dispensing proportion of each currency according to the market circulation rate; determining the currency distribution priority of each currency based on the denomination of each currency; and adjusting the initial banknote distribution proportion of each currency according to the initial banknote distribution proportion, the amount of money and the banknote distribution priority, and performing banknote distribution operation according to the adjusted initial banknote distribution proportion. By applying the method provided by the embodiment of the invention, the money can be distributed according to the amount and the market circulation rate, the money distribution proportion can be reasonably distributed, the money distribution accuracy is greatly improved, and the money distribution efficiency is also improved.
the embodiment of the invention also provides a storage medium, which comprises a stored instruction, wherein when the instruction runs, the equipment where the storage medium is located is controlled to execute the money distribution method of the network.
an electronic device is provided in an embodiment of the present invention, and the structural diagram of the electronic device is shown in fig. 4, which specifically includes a memory 401 and one or more instructions 402, where the one or more instructions 402 are stored in the memory 401 and configured to be executed by one or more processors 403 to perform the following operations for executing the one or more instructions 402:
when a money distribution request is received, acquiring the amount of each currency corresponding to the money distribution request and the market circulation rate of each currency;
determining an initial dispensing proportion for each of the currencies based on the market circulation rate;
determining the distribution priority of each currency, and determining a candidate currency set and a target currency in each currency according to each initial distribution proportion;
Comparing the amount of the target currency with a first threshold and a second threshold which are preset respectively, wherein the first threshold is larger than the second threshold;
If the amount of the target currency is larger than or equal to the first threshold value, summing the initial currency distribution proportion of the target currency and a preset first currency distribution proportion to obtain the target currency distribution proportion of the target currency, and adjusting the initial currency distribution proportion of each currency in the candidate currency set according to the currency distribution priority of each currency based on the first currency distribution proportion;
If the amount of the target currency is less than or equal to the second threshold, determining a difference value between the initial currency distribution proportion of the target currency and a preset second currency distribution proportion as the target currency distribution proportion of the target currency, and adjusting the initial currency distribution proportion of each currency in the candidate currency set according to the currency distribution priority of each currency based on the second currency distribution proportion;
and carrying out money distribution operation based on the target money distribution proportion of the target money type and the adjusted initial money distribution proportion of each money type in the candidate money type set.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device-like embodiment, since it is basically 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.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
for convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functions of the units may be implemented in the same software and/or hardware or in a plurality of software and/or hardware when implementing the invention.
from the above description of the embodiments, it is clear to those skilled in the art that the present invention can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
The method and the device for dispensing the banknotes at the outlet provided by the invention are described in detail above, a specific example is applied in the text to explain the principle and the implementation mode of the invention, and the description of the above embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method for dispensing bank notes at a network, comprising:
When a money distribution request is received, acquiring the amount of each currency corresponding to the money distribution request and the market circulation rate of each currency;
determining an initial dispensing proportion for each of the currencies based on the market circulation rate;
determining the distribution priority of each currency, and determining a candidate currency set and a target currency in each currency according to each initial distribution proportion;
comparing the amount of the target currency with a first threshold and a second threshold which are preset respectively, wherein the first threshold is larger than the second threshold;
If the amount of the target currency is larger than or equal to the first threshold value, summing the initial currency distribution proportion of the target currency and a preset first currency distribution proportion to obtain the target currency distribution proportion of the target currency, and adjusting the initial currency distribution proportion of each currency in the candidate currency set according to the currency distribution priority of each currency based on the first currency distribution proportion;
if the amount of the target currency is less than or equal to the second threshold, determining a difference value between the initial currency distribution proportion of the target currency and a preset second currency distribution proportion as the target currency distribution proportion of the target currency, and adjusting the initial currency distribution proportion of each currency in the candidate currency set according to the currency distribution priority of each currency based on the second currency distribution proportion;
and carrying out money distribution operation based on the target money distribution proportion of the target money type and the adjusted initial money distribution proportion of each money type in the candidate money type set.
2. the method of claim 1, wherein obtaining the amount of each currency corresponding to the dispensing request and the market circulation rate of the currency upon receiving the dispensing request comprises:
Analyzing the money distribution request to obtain currency information corresponding to the money distribution request;
and traversing a pre-established money storage table based on the money information to obtain the money amount of each money corresponding to the money information.
3. The method of claim 1, wherein said determining a set of candidate currencies and a target currency among each of said currencies in accordance with each of said initial dispensing ratios comprises:
in each currency, determining the currency with the largest initial currency distribution ratio as a target currency;
and forming a candidate currency set by the currencies except the target currency in each currency.
4. the method of claim 1, wherein said adjusting an initial dispensing proportion for each currency in said set of candidate currency types based on said first dispensing proportion by a dispensing priority for each said currency comprises:
Judging whether the currency type with the currency distribution priority lower than the currency distribution priority of the target currency exists in the candidate currency type set or not, and determining a first updating proportion according to the first currency distribution proportion;
If the currency type with the currency distribution priority lower than the currency distribution priority of the target currency exists, forming a first sub-candidate currency set by each currency type with the currency distribution priority lower than the currency distribution priority of the target currency;
judging whether the sum of the initial banknote distribution ratios of all the currencies in the first sub-candidate currency type set is larger than or equal to the first banknote distribution ratio;
if the sum of the initial banknote distribution ratios of the currencies in the first sub-candidate currency set is greater than or equal to the first banknote distribution ratio, sequentially executing a first operation according to the sequence that the banknote distribution priorities of the currencies in the first sub-candidate currency set are from large to small so as to adjust the initial banknote distribution ratios of the currencies in the first sub-candidate currency set until the adjusted initial banknote distribution ratios of the currencies are matched with the first banknote distribution ratio;
if the sum of the initial banknote distribution ratios of all the currencies in the first sub-candidate currency type set is smaller than the first banknote distribution ratio, judging whether the currency types with the initial banknote distribution priorities larger than the target currency type exist in the candidate currency type set or not;
If the currency type with the initial currency distribution proportion larger than the currency distribution priority of the target currency exists, forming a second sub-candidate currency set by each currency type with the currency distribution priority larger than the currency distribution priority of the target currency; sequentially executing a first operation according to the sequence of the distribution priorities of the currencies in the first sub-candidate currency set from large to small so as to adjust the initial distribution proportion of each currency in the first sub-candidate currency set, and sequentially executing a first operation according to the sequence of the distribution priorities of the currencies in the second sub-candidate currency set from small to large so as to adjust the initial distribution proportion of each currency in the second sub-candidate currency set until the adjusted initial distribution proportion of each currency is matched with the first distribution proportion;
the first operation includes: judging whether the initial banknote distribution proportion of the currency is larger than the first updating proportion or not, if so, determining that the initial banknote distribution proportion of the currency is matched with the first banknote distribution proportion, and determining the difference value between the initial banknote distribution proportion of the currency and the first updating proportion as the new initial banknote distribution proportion of the currency; and if the initial banknote distribution proportion of the currency is smaller than the first updating proportion, determining the difference value between the first updating proportion and the initial banknote distribution proportion of the currency as a new first updating proportion, and adjusting the initial banknote distribution proportion of the currency to be zero.
5. the method of claim 1, wherein said adjusting an initial dispensing proportion for each currency in said set of candidate currency types based on said second dispensing proportion by a dispensing priority for each said currency comprises:
Judging whether the currency with the currency distribution priority higher than that of the target currency exists or not, and determining a second updating proportion according to the second currency distribution proportion;
if the currency type with the currency distribution priority higher than the currency distribution priority of the target currency exists, the currency type with the currency distribution priority higher than the currency distribution priority of the target currency forms a third sub-candidate currency set;
Judging whether the amount of each currency in the third sub-candidate currency set is greater than or equal to the amount of the currency corresponding to the second currency distribution proportion;
If the sum of each currency in the third sub-candidate currency set is greater than or equal to the sum of the corresponding currency of the second currency distribution ratio, sequentially executing a second operation according to the sequence that the currency distribution priority of the currency in the third sub-candidate currency set is from small to large so as to adjust the initial currency distribution ratio of each currency in the third sub-candidate currency set until the adjusted sum of the currency is matched with the sum of the corresponding currency of the second currency distribution ratio;
If the currency type with the currency distribution priority higher than the currency distribution priority of the target currency does not exist, the currency type with the currency distribution priority lower than the currency distribution priority of the target currency is formed into a fourth candidate currency set;
sequentially executing the second operation according to the sequence that the distribution priority of the currencies in the fourth sub-candidate currency set is from large to small so as to adjust the initial distribution proportion of each currency in the fourth sub-candidate currency set until the amount of the adjusted currencies is matched with the amount of the currencies corresponding to the second distribution proportion;
the second operation includes: judging whether the amount of the currency is larger than the target amount; if the sum of the initial currency dispensing proportion of the currency and the second updating proportion is larger than or equal to the target sum, determining the sum as a new initial currency dispensing proportion of the currency, and determining that the sum of the currency and the second updating proportion is matched with the sum corresponding to the second currency dispensing proportion; the target amount is the sum of the amount corresponding to the initial money distribution proportion of the currency and the amount corresponding to the second updating proportion; and if the amount of the currency is less than the target amount, adjusting the initial currency dispensing proportion and the second updating proportion of the currency based on the amount of the currency.
6. a money distribution device for a network, comprising:
the receiving unit is used for acquiring the amount of each currency corresponding to the money distribution request and the market circulation rate of each currency when receiving the money distribution request;
a first determination unit for determining an initial dispensing ratio of each of the currencies based on the market circulation rate;
a second determining unit, configured to determine a dispensing priority of each currency, and determine a set of candidate currencies and a target currency in each currency according to each initial dispensing ratio;
the comparison unit is used for comparing the amount of money of the target currency with a first threshold and a second threshold which are preset respectively, wherein the first threshold is larger than the second threshold;
the first adjusting unit is used for summing the initial banknote distribution proportion of the target currency and a preset first banknote distribution proportion to obtain the target banknote distribution proportion of the target currency when the amount of the target currency is larger than or equal to the first threshold value, and adjusting the initial banknote distribution proportion of each currency in the candidate currency set according to the banknote distribution priority of each currency based on the first banknote distribution proportion;
a second adjusting unit, configured to determine, when the amount of money of the target currency is less than or equal to the second threshold, a difference between an initial banknote distribution ratio of the target currency and a preset second banknote distribution ratio as a target banknote distribution ratio of the target currency, and adjust, based on the second banknote distribution ratio, the initial banknote distribution ratio of each currency in the set of candidate currency according to a banknote distribution priority of each currency;
and the execution unit is used for carrying out money distribution operation according to the target money distribution proportion of the target money type and the adjusted initial money distribution proportion of each money type in the candidate money type set.
7. the apparatus of claim 6, wherein the receiving unit comprises:
the analysis subunit is used for analyzing the money distribution request to obtain currency information corresponding to the money distribution request;
And the indexing subunit is used for traversing the pre-established money storage table according to the money information to obtain the money amount of each money corresponding to the money information.
8. the apparatus of claim 6, wherein the second determining unit comprises:
a first determining subunit, configured to determine, as a target currency, a currency type having a largest initial currency allocation ratio among the currency types;
And the first execution subunit is used for forming the currency types except the target currency type into a candidate currency type set.
9. The apparatus of claim 6, wherein the first adjusting unit that adjusts the initial dispensing proportion for each currency in the set of candidate currency types according to the dispensing priority for each currency type based on the first dispensing proportion comprises:
the first judging subunit is used for judging whether the currency with the currency distribution priority lower than that of the target currency exists in the candidate currency set or not, and determining a first updating proportion according to the first currency distribution proportion;
a second execution subunit, configured to, when there is a currency type whose dispensing priority is smaller than that of the target currency, group each currency type whose dispensing priority is smaller than that of the target currency into a first sub-candidate currency type set;
a second judging subunit, configured to judge whether a sum of initial banknote distribution ratios of the respective currencies in the first sub-candidate currency type set is greater than or equal to the first banknote distribution ratio;
a first adjusting subunit, configured to, when a sum of initial banknote distribution ratios of the currencies in the first sub-candidate currency set is greater than or equal to the first banknote distribution ratio, sequentially perform a first operation according to a descending order of banknote distribution priorities of the currencies in the first sub-candidate currency set, so as to adjust the initial banknote distribution ratios of the currencies in the first sub-candidate currency set until the adjusted initial banknote distribution ratios of the currencies are matched with the first banknote distribution ratio;
A third judging subunit, configured to, when a sum of initial banknote distribution ratios of the respective currencies in the first sub-candidate currency set is smaller than the first banknote distribution ratio, judge whether there is a currency in the candidate currency set whose initial banknote distribution priority is greater than the target currency;
a second adjusting subunit, configured to, when there is a currency type in which the initial currency dispensing ratio is greater than the currency dispensing priority of the target currency, form a second sub-candidate currency set for each currency type in which the currency dispensing priority is greater than the currency dispensing priority of the target currency; sequentially executing a first operation according to the sequence of the distribution priorities of the currencies in the first sub-candidate currency set from large to small so as to adjust the initial distribution proportion of each currency in the first sub-candidate currency set, and sequentially executing a first operation according to the sequence of the distribution priorities of the currencies in the second sub-candidate currency set from small to large so as to adjust the initial distribution proportion of each currency in the second sub-candidate currency set until the adjusted initial distribution proportion of each currency is matched with the first distribution proportion;
The first operation includes: judging whether the initial banknote distribution proportion of the currency is larger than the first updating proportion or not, if so, determining that the initial banknote distribution proportion of the currency is matched with the first banknote distribution proportion, and determining the difference value between the initial banknote distribution proportion of the currency and the first updating proportion as the new initial banknote distribution proportion of the currency; and if the initial banknote distribution proportion of the currency is smaller than the first updating proportion, determining the difference value between the first updating proportion and the initial banknote distribution proportion of the currency as a new first updating proportion, and adjusting the initial banknote distribution proportion of the currency to be zero.
10. The apparatus of claim 6, wherein the second adjusting unit that adjusts the initial dispensing proportion of each currency in the set of candidate currency types according to the dispensing priority of each currency based on the second dispensing proportion comprises:
The fourth judging subunit is used for judging whether the currency with the currency distribution priority higher than that of the target currency exists or not and determining a second updating proportion according to the second currency distribution proportion;
a third execution subunit, configured to, when there is a currency type whose dispensing priority is greater than that of the target currency, group the currency type whose dispensing priority is greater than that of the target currency into a third sub-candidate currency set;
a fifth judging subunit, configured to judge whether the amount of each currency in the third sub-candidate currency set is greater than or equal to the amount of the currency corresponding to the second money allocation ratio;
a third adjusting subunit, configured to, when the amount of money of each currency in the third sub-candidate currency set is greater than or equal to the amount of money corresponding to the second money allocation ratio, sequentially perform a second operation according to a descending order of the money allocation priority of the currency in the third sub-candidate currency set, so as to adjust an initial money allocation ratio of each currency in the third sub-candidate currency set until the adjusted amount of money of the currency matches the amount of money corresponding to the second money allocation ratio;
a fourth execution subunit configured to, when there is no currency of which the dispensing priority is greater than the dispensing priority of the target currency, group the currency of which the dispensing priority is less than the dispensing priority of the target currency into a fourth set of candidate currency;
a fourth adjusting subunit, configured to sequentially execute the second operation according to a descending order of the banknote distribution priority of the currencies in the fourth sub-candidate currency set, so as to adjust an initial banknote distribution ratio of each currency in the fourth sub-candidate currency set until the adjusted amount of the currencies matches the amount of the currencies corresponding to the second banknote distribution ratio;
the second operation includes: judging whether the amount of the currency is larger than the target amount; if the sum of the initial currency dispensing proportion of the currency and the second updating proportion is larger than or equal to the target sum, determining the sum as a new initial currency dispensing proportion of the currency, and determining that the sum of the currency and the second updating proportion is matched with the sum corresponding to the second currency dispensing proportion; the target amount is the sum of the amount corresponding to the initial money distribution proportion of the currency and the amount corresponding to the second updating proportion; and if the amount of the currency is less than the target amount, adjusting the initial currency dispensing proportion and the second updating proportion of the currency based on the amount of the currency.
CN201910888563.1A 2019-09-19 2019-09-19 Method and device for distributing bank notes at network points Active CN110570135B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910888563.1A CN110570135B (en) 2019-09-19 2019-09-19 Method and device for distributing bank notes at network points

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910888563.1A CN110570135B (en) 2019-09-19 2019-09-19 Method and device for distributing bank notes at network points

Publications (2)

Publication Number Publication Date
CN110570135A true CN110570135A (en) 2019-12-13
CN110570135B CN110570135B (en) 2023-02-21

Family

ID=68781312

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910888563.1A Active CN110570135B (en) 2019-09-19 2019-09-19 Method and device for distributing bank notes at network points

Country Status (1)

Country Link
CN (1) CN110570135B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111105550A (en) * 2019-12-31 2020-05-05 中国银行股份有限公司 Vault management method and related equipment
CN112037047A (en) * 2020-09-03 2020-12-04 中国银行股份有限公司 Network point money distribution method and device and electronic equipment
CN112053229A (en) * 2020-09-02 2020-12-08 中国银行股份有限公司 Data processing method and device applied to distribution of bank notes at network points

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102011108482A1 (en) * 2011-07-25 2013-01-31 Matthias Steubing Automated teller machine is equipped with bill-selection-function, where bank customer only selects within menu and receives currency notes from automatic teller machine in determined amount through selection
CN107633594A (en) * 2017-09-27 2018-01-26 深圳怡化电脑股份有限公司 A kind of bank note distribution method, device, financial self-service equipment and storage medium
CN109118641A (en) * 2018-07-09 2019-01-01 北京磁云唐泉金服科技有限公司 Accurate bank note distribution method and device based on serial number
CN109447354A (en) * 2018-10-31 2019-03-08 中国银行股份有限公司 A kind of intelligent bank note distribution method and device based on GA-BP neural network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102011108482A1 (en) * 2011-07-25 2013-01-31 Matthias Steubing Automated teller machine is equipped with bill-selection-function, where bank customer only selects within menu and receives currency notes from automatic teller machine in determined amount through selection
CN107633594A (en) * 2017-09-27 2018-01-26 深圳怡化电脑股份有限公司 A kind of bank note distribution method, device, financial self-service equipment and storage medium
CN109118641A (en) * 2018-07-09 2019-01-01 北京磁云唐泉金服科技有限公司 Accurate bank note distribution method and device based on serial number
CN109447354A (en) * 2018-10-31 2019-03-08 中国银行股份有限公司 A kind of intelligent bank note distribution method and device based on GA-BP neural network

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111105550A (en) * 2019-12-31 2020-05-05 中国银行股份有限公司 Vault management method and related equipment
CN112053229A (en) * 2020-09-02 2020-12-08 中国银行股份有限公司 Data processing method and device applied to distribution of bank notes at network points
CN112053229B (en) * 2020-09-02 2023-09-19 中国银行股份有限公司 Data processing method and device applied to net point banknote distribution
CN112037047A (en) * 2020-09-03 2020-12-04 中国银行股份有限公司 Network point money distribution method and device and electronic equipment
CN112037047B (en) * 2020-09-03 2023-09-26 中国银行股份有限公司 Method and device for distributing cash at net points and electronic equipment

Also Published As

Publication number Publication date
CN110570135B (en) 2023-02-21

Similar Documents

Publication Publication Date Title
CN110570135B (en) Method and device for distributing bank notes at network points
CN110619701A (en) Queuing channel recommendation method and device, storage medium and electronic equipment
CN109598495A (en) Data processing method, device, server and computer readable storage medium
CN110599674A (en) Method and device for displaying money distribution information
CN111311398A (en) Expense processing method and device
CN110910240A (en) Cash application method and device
CN108205525B (en) Method and device for determining user intention based on user voice information
CN110019774A (en) Label distribution method, device, storage medium and electronic device
CN109685293A (en) A kind of target object recognition method, apparatus, medium and computing device
CN116361542A (en) Product recommendation method, device, computer equipment and storage medium
CN106156185A (en) A kind of service request performs the querying method of state, Apparatus and system
CN114254883A (en) Slow release splitting method, device, equipment and readable storage medium
US10235719B2 (en) Centralized GAAP approach for multidimensional accounting to reduce data volume and data reconciliation processing costs
CN113886692A (en) Account identification method and device, electronic equipment and storage medium
CN113807947A (en) Method and device for allocating bank outlets
CN109472454B (en) Activity evaluation method, activity evaluation device, electronic equipment and storage medium
CN111754327A (en) Queuing prompting method and device
CN110689339A (en) Payment mode setting method and device
CN111626730A (en) Credit card joint name method and device
CN112396266A (en) Order distribution method, device, server and storage medium
CN110688584A (en) User matching method, electronic equipment and computer program product
CN112308583A (en) Medical platform management method and system based on virtual integration
CN110889636A (en) Bank physical resource scheduling method and device
CN113869620B (en) Event distribution method and device, electronic equipment and readable storage medium
KR20190140374A (en) Method for Evaluating Prospects for Cryptocurrency Treading

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