CN110570135B - 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
CN110570135B
CN110570135B CN201910888563.1A CN201910888563A CN110570135B CN 110570135 B CN110570135 B CN 110570135B CN 201910888563 A CN201910888563 A CN 201910888563A CN 110570135 B CN110570135 B CN 110570135B
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.)
Active
Application number
CN201910888563.1A
Other languages
Chinese (zh)
Other versions
CN110570135A (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

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/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 bill 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 and 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 increase of the economic level, so that the cash stock of each financial website is sufficient, and related personnel are required to maintain the fund quota and the cash addition in order to ensure the sufficient cash stock of the financial website.
The inventor researches and discovers that the conventional method for distributing the banknotes for the financial website usually distributes the banknotes through manual work by means of personal experience, so that the banknotes are often distributed inaccurately, and further the user experience is poor.
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 network point bank note distribution device which is used for ensuring the realization and the 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 preset first threshold and a preset second threshold respectively, wherein the first threshold is larger than the second threshold;
if the amount of money of the target currency is larger than or equal to the first threshold value, summing the initial money distribution proportion of the target currency and a preset first money distribution proportion to obtain the target money distribution proportion of the target currency, and adjusting the initial money distribution proportion of each currency in the candidate currency set according to the money distribution priority of each currency based on the first money 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.
Optionally, in the method, 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 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 currency and the adjusted initial money distribution proportion of each currency in the candidate currency 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 mesh point cash dispensing device further includes a second determining unit, where 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 lower than that of the target currency, group each currency type whose dispensing priority is lower than that of the target currency into a first sub-candidate currency 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 first operation according to the sequence of the distribution priority 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 first operation according to the sequence of the distribution priority 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 higher than the dispensing priority of the target currency, group a currency type whose dispensing priority is higher than the dispensing priority 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 type whose dispensing priority is greater than the dispensing priority of the target currency, group a currency type whose dispensing priority is less than the dispensing priority of the target currency into a fourth set of candidate currency types;
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 currency amount, determining the sum as a new initial currency dispensing proportion of the currency, and determining that the sum of the currency amount 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 network point money distribution method, 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 appliances, 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 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, 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.
In the method provided by the embodiment of the invention, based on the first money distribution proportion, the initial money distribution proportion 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 proportion of each currency is matched with the first money distribution proportion.
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 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 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 money type information corresponding to the money distribution request.
In the method provided by the embodiment of the invention, the currency information can be Renminbi, dollars, japanese yuan, euro, french, british pound and the like.
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 a 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;
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 the currency types 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 an initial banknote distribution ratio of each currency in the set of candidate currencies according to the banknote distribution priority of each currency based on the second banknote distribution ratio includes:
judging whether the currency type 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 distribution priority higher than that of the target currency exists, the currency type with the distribution priority higher than that of the target currency is formed into 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; and if the amount of each currency in the third sub-candidate currency set is less than the amount of money corresponding to the second currency distribution ratio, judging whether a currency with a currency distribution priority lower than the currency distribution priority of the target currency exists, 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, sequentially executing second operations according to the sequence from small to large of the currency distribution priority of the currency in the third sub-candidate currency set, and sequentially executing the second operations according to the sequence from large to small of the currency distribution priority of the currency in the fourth sub-candidate currency set so as to adjust the initial proportion of each currency in the fourth sub-candidate currency set until the amount of the adjusted currency matches the amount of money corresponding to the second currency distribution ratio.
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 adjusted currency amount is equal to or exceeds the amount corresponding to the second money distribution proportion, determining that the adjusted currency amount is matched with the amount corresponding to the second money distribution proportion.
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 sum 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 maximum 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:
a receiving unit 301, configured to, when receiving a money dispensing request, obtain the amount of each currency corresponding to the money dispensing 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;
an executing unit 307, configured to perform a money dispensing operation according to the target money dispensing ratio of the target currency and the adjusted initial money dispensing ratio of each currency in the candidate currency set.
Optionally, in the money dispensing apparatus for network points 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 amount storage table according to the money type information to obtain the money amount of each money type corresponding to the money type information.
Optionally, in the dot dispensing apparatus 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 banknote dispensing ratio among the currencies;
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:
a fourth judging subunit, configured to judge whether there is a currency type whose banknote distribution priority is greater than the banknote distribution priority of the target currency, and determine a second update ratio according to the second banknote distribution ratio;
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 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, sequentially perform a second operation according to a sequence from a small one to a large one of money allocation priorities of the currencies 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 the currency matches the amount of the currency corresponding to the second money allocation ratio;
a fourth execution subunit configured to, when there is no currency type whose dispensing priority is greater than the dispensing priority of the target currency, group a currency type whose dispensing priority is less than the dispensing priority of the target currency into a fourth set of candidate currency types;
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 is distributed according to the amount of money 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 preset first threshold and a preset second threshold 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 this specification, each embodiment is described in a progressive manner, and each embodiment focuses on differences from other embodiments, and portions that are the same as and similar to each other in each embodiment may be referred to. 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 a … …" does not exclude the presence of another identical element 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 (6)

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;
performing a money distribution operation based on the target money distribution proportion of the target currency and the adjusted initial money distribution proportion of each currency in the candidate currency set;
wherein, the 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 comprises:
judging whether a 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;
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 the currency types 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; 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;
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 second banknote distribution proportion, including:
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 a 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 currency amount, determining the sum as a new initial currency dispensing proportion of the currency, and determining that the sum of the currency amount 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.
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. 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 currency based on the market circulation rate;
a second determining unit, configured to determine a banknote distribution priority of each of the currencies, and determine a set of candidate currencies and a target currency in each of the currencies according to each of the initial banknote distribution ratios;
the comparison unit is used for comparing the amount of money of the target currency with a preset first threshold and a preset second threshold respectively, wherein the first threshold is larger than the second threshold;
a first adjusting unit, configured to sum up the initial banknote distribution ratio of the target currency and a preset first banknote distribution ratio to obtain the target banknote distribution ratio of the target currency when the amount of money of the target currency is greater than or equal to the first threshold, and adjust the initial banknote distribution ratio of each currency in the candidate currency set according to the banknote distribution priority of each currency based on the first banknote distribution ratio;
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 the 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 candidate currency set according to the banknote distribution priority of each currency;
the execution unit is used for carrying out money distribution operation according to the target money distribution proportion of the target currency and the adjusted initial money distribution proportion of each currency in the candidate currency set;
the first adjusting unit that adjusts the 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:
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 a currency with an initial banknote distribution priority higher than the target currency exists in the candidate currency set;
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; 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;
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 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 a 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.
5. The apparatus of claim 4, 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.
6. The apparatus of claim 4, 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;
a first execution subunit, configured to combine currencies of the respective currencies except the target currency into a set of candidate currencies.
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 CN110570135A (en) 2019-12-13
CN110570135B true 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)

Families Citing this family (3)

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

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

Also Published As

Publication number Publication date
CN110570135A (en) 2019-12-13

Similar Documents

Publication Publication Date Title
CN110570135B (en) Method and device for distributing bank notes at network points
CN108960822B (en) Block chain-based available resource quota exchange method and device
CN107292741B (en) Resource allocation method and device
CN110619701A (en) Queuing channel recommendation method and device, storage medium and electronic equipment
CN106022759A (en) Electronic payment method supporting multiple accounts
CN107430749A (en) Settlement processing device, method and computer program
CN109598495A (en) Data processing method, device, server and computer readable storage medium
CN111311398A (en) Expense processing method and device
CN109919588A (en) A kind of method and apparatus for preventing from repeating to pay
CN110910240A (en) Cash application method and device
Cheung et al. The evolution of offshore renminbi trading: 2016 to 2019
CN109685293A (en) A kind of target object recognition method, apparatus, medium and computing device
CN109118359B (en) Block chain-based available resource quota pre-exchange method and device
CN106557921A (en) On-line payment method and device
CN111028075B (en) Virtual resource transfer method, device and equipment
CN109544158B (en) Block data processing method and computer storage medium
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
CN111626730A (en) Credit card joint name method and device
CN110689339A (en) Payment mode setting method and device
CN113807947A (en) Method and device for allocating bank outlets
CN111815307A (en) Asset management method of block chain, electronic device and storage medium
CN113869620A (en) Event distribution method and device, electronic equipment and readable storage medium
CN110688584A (en) User matching method, electronic equipment and computer program product
CN110889636A (en) Bank physical resource scheduling method and device

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