CN112101720B - Method and system for distributing group resources - Google Patents

Method and system for distributing group resources Download PDF

Info

Publication number
CN112101720B
CN112101720B CN202010796615.5A CN202010796615A CN112101720B CN 112101720 B CN112101720 B CN 112101720B CN 202010796615 A CN202010796615 A CN 202010796615A CN 112101720 B CN112101720 B CN 112101720B
Authority
CN
China
Prior art keywords
account
resources
allocated
group
accounts
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
CN202010796615.5A
Other languages
Chinese (zh)
Other versions
CN112101720A (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.)
Beijing Si Tech Information Technology Co Ltd
Original Assignee
Beijing Si Tech Information Technology Co 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 Beijing Si Tech Information Technology Co Ltd filed Critical Beijing Si Tech Information Technology Co Ltd
Priority to CN202010796615.5A priority Critical patent/CN112101720B/en
Publication of CN112101720A publication Critical patent/CN112101720A/en
Application granted granted Critical
Publication of CN112101720B publication Critical patent/CN112101720B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations

Abstract

The invention discloses a method and a system for distributing group resources, wherein the method comprises the following steps: acquiring an account and a resource to be allocated of each group member; acquiring a first account set with the same number of resources to be allocated; distributing resources for the first account set in batches; resources are allocated for unallocated accounts. When group resources are allocated, resources are allocated for the first account sets in batches, so that the account allocation in the first account sets one by one is avoided, the allocation efficiency is improved, and the calculation time of the server is reduced; in group resource allocation, resource allocation is centralized, and the calculated amount of a server is reduced by improving allocation efficiency; the account to be allocated resources of the first account set are the same in number, so that the calculation amount is reduced, the account to be allocated resources of the first account set can be calculated according to the account number and the single account to be allocated resources, batch allocation of group resources is facilitated, and meanwhile the allocation result is conveniently checked.

Description

Method and system for distributing group resources
Technical Field
The invention relates to the technical field of computers, in particular to a method and a system for distributing group resources.
Background
In the current telecommunication accounting processing process, group business is accepted by small and medium enterprises more and more, and in the accounts of group members, a part of resources are born by the group accounts, so that on one hand, the step of the group accounting reimbursement processing is reduced, and the financial workload is reduced; on the other hand, experience of group members is improved. When settlement is carried out on group business, the group resources are required to be allocated, in the existing allocation method, the group members are placed in a table to be allocated, after the resources to be allocated are queried one by one, the group resources are allocated to the group members, after the group members are allocated to the resources, the group members in the table to be allocated are deleted, and the group members are added into the allocated table, wherein each group member is required to be subjected to a plurality of operations, and when the group members are more, for example, 20 ten thousand, the calculated amount is large, and a large amount of calculation is concentrated and processed at the same time, so that the pressure on a server is high, and even the server is crashed.
Disclosure of Invention
Aiming at the technical problems in the prior art, the invention provides a method and a system for distributing group resources, which reduce the calculated amount and improve the resource distribution efficiency through the batch distribution of the resources.
The invention discloses a method for distributing group resources, which comprises the following steps: acquiring an account and a resource to be allocated of each group member; acquiring a first account set with the same number of resources to be allocated; distributing resources for the first account set in batches; resources are allocated for unallocated accounts.
Preferably, the method for distributing group resources in batches comprises the following steps: setting accounts to be allocated in an unallocated account table; after resources are allocated for the first account set, the accounts of the first account set are moved to the allocated account table.
Preferably, the method of the present invention further comprises the method of allocating resources for the first account set by the first token: marking the accounts of the first account set with a first mark; group resources are allocated in batches to accounts provided with a first token.
Preferably, the method of the present invention further comprises a method of allocating resources for the second account set in bulk: setting a second account set, wherein the number of resources to be allocated of the second account set account is the same and different from the number of resources to be allocated of the first account set account; group resources are allocated to the first and second account sets, respectively.
Preferably, the method of the present invention further includes an allocation method of group resources smaller than resources to be allocated in the first account set:
calculating the number of accounts of the group resource which can be allocated in batches:
N=[(M/C)×k] (1)
wherein N is the account number distributed in batches, M is a group resource, and k is a resource availability coefficient to be distributed;
distributing resources for N accounts in batches;
the unassigned group resource is assigned to an unassigned account.
Preferably, the method of the present invention further includes an allocation method of group resources smaller than resources to be allocated in the first account set:
calculating the number of accounts of the group resource which can be allocated in batches:
N=[(M/C)×k] (1)
wherein N is the account number distributed in batches, M is a group resource, and k is a resource availability coefficient to be distributed;
distributing resources for N accounts in batches;
the unassigned group resource is assigned to an unassigned account.
Preferably, the method of the invention is applied to group payment: acquiring a bill paid by a group, wherein the bill comprises an account of a group member and a bill paid by the group member; acquiring a bill to be paid, which has the same charge, as a first bill set, wherein an account corresponding to the first bill set is a first account set; distributing resources for the first account set in batches; and allocating resources for the account without the resources according to the bill payment.
The invention also provides a system for distributing group resources, which comprises a first acquisition module, a second acquisition module, a first distribution module and a second distribution module,
the first acquisition module is used for acquiring the account of each group member and the resources to be allocated;
the second acquisition module is used for acquiring a first account set with the same number of resources to be allocated;
the first allocation module is used for allocating resources for the first account set in batches;
the second allocation module is used for allocating resources for the unallocated accounts.
Preferably, the system further comprises a first marking module, wherein the first marking module is used for marking the account of the first account set as the resource to be allocated according to the first marking.
Preferably, the system further comprises a second marking module and a third allocation module, wherein the second marking module is used for marking accounts of a second account set, and the resources to be allocated of the accounts of the second account set are the same and different from those of the accounts of the first account set; the third allocation module is used for allocating resources for the second account set.
Compared with the prior art, the invention has the beneficial effects that:
when the group resources are allocated, the resources are allocated for the first account set in batches, so that the account allocation of group members one by one is avoided, the allocation efficiency is improved, and the calculation amount and calculation time of a server are reduced; in group resource allocation, resource allocation is centralized, and the calculated amount of a server is reduced by improving allocation efficiency; the first account set has the same number of resources to be allocated, so that the calculation amount is reduced, the resources to be allocated of the first account set can be calculated according to the account number and the resources to be allocated of a single account, batch allocation of group resources is facilitated, meanwhile, the allocation result is checked conveniently, and errors are avoided.
Drawings
FIG. 1 is a flow chart of a method of group resource allocation of the present invention;
FIG. 2 is a flow chart of a method of allocating group resources through an unallocated account table and an allocated account table;
FIG. 3 is a flow chart of an allocation method in which a group resource is smaller than a resource to be allocated for a first account set to be allocated;
FIG. 4 is a flow chart of a method of allocating resources for a first set of accounts in a batch;
the method for allocating group resources in FIG. 5 is applied to a flow chart of a method for collecting group agents;
FIG. 6 is a logical block diagram of the group resource allocation system of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The invention is described in further detail below with reference to the attached drawing figures:
a method of group resource allocation, as shown in fig. 1, the method comprising:
step 101: and acquiring the account of each group member and the resources to be allocated. The account is used for receiving the allocated resources, and the resources to be allocated can be set or generated according to the requirements of actual services, can be set according to the monthly quota, and can also be set according to the actual practical quantity.
Step 102: and acquiring a first account set with the same number of resources to be allocated. In the group, each department or group member of each job level has different allocation rules, and accounts with the same number of resources to be allocated are taken as a first account set, wherein the first account set can comprise one or more accounts.
Step 103: and allocating resources for the first account set in batches.
Step 104: resources are allocated for unallocated accounts.
When the group resources are allocated, the resources are allocated for the first account set in batches, so that the account allocation of group members one by one is avoided, the allocation efficiency is improved, and the calculation time and the calculation amount of a server are reduced; in group resource allocation, resource allocation is centralized, and the calculation amount of a server is reduced by improving allocation efficiency. The first account set has the same number of resources to be allocated, so that the calculation amount is reduced, the resources to be allocated of the first account set can be calculated according to the account number and the resources to be allocated of a single account, batch allocation of group resources is facilitated, meanwhile, the allocation result is checked conveniently, and errors are avoided.
Example 1
As shown in fig. 2, the present embodiment provides a method for allocating group resources through an unallocated account table and an allocated account table:
step 201: the account to be allocated is set in the unallocated account table.
Step 202: after resources are allocated for the first account set, the accounts of the first account set are moved to the allocated account table.
Step 203: resources are allocated for accounts in the unassigned account table.
Each account needs to inquire the resources to be allocated from an unallocated account table in the allocation process, and after the resources are allocated, the account is deleted from the unallocated account table and transferred into the allocated account table; and inquiring the resources to be allocated of the first account set in batches through batch processing, deleting the first account set from the unallocated account table in batches, and transferring the first account set into the allocated account table in batches, so that the allocation efficiency is improved.
Specifically, resources may be allocated for the first account set by the first token:
marking the account of the first account set in the unassigned account table with a first mark;
group resources are allocated in batches to accounts provided with a first token.
Example 2
In this embodiment, a second account set is further provided, the number of resources to be allocated of the second account set account is the same, the number of resources to be allocated of the second account set account is different from that of the first account set, and resources are allocated to the first account set and the second account set in batches respectively.
But not limited to this, a plurality of account sets may be set according to actual needs, and resources may be allocated to different account sets in batches.
Different indicia may be set for accounts of different account sets, such as a second indicia set for accounts of a second account set.
Example 3
As shown in fig. 3, the present embodiment provides an allocation method for allocating resources to be allocated in a group smaller than the resources to be allocated in the first account set to be allocated:
step 301: calculating the number of accounts of the group resource which can be allocated in batches:
N=[(M/C)×k] (1)
wherein, N is the account number which can be allocated in batch, M is the group resource, k is the resource availability factor to be allocated, and is usually 1. For example, when a group purchases a resource, a gift or discount may be adjusted by k.
Step 302: resources are allocated for N accounts in batches.
Step 303: the unassigned group resource is assigned to an unassigned account that is a partially assigned account.
The number of resources to be allocated for the modified partially allocated account may be retained in the unassigned account table and removed from the first account set. The accounts in the first set of accounts are not fully allocated and the allocated accounts are transferred from the to-be-unallocated account table to the allocated account table. And when the resources are allocated for the second time, acquiring the account number of the first account set from the account table to be allocated.
Example 4
As shown in fig. 4, the method for allocating resources for the first account set in batches includes:
step 401: acquiring the total amount of resources to be allocated of a first account set;
step 402: judging whether the group resource (M) is larger than the total Amount (AC) of the resources to be allocated;
if yes, go to step 403: distributing group resources to A accounts in batches;
if not, go to step 404;
step 404: judging whether the group resource is larger than the resources to be allocated of the [ A/2] accounts or not;
if yes, execution 405: assigning the group resource to [ A/2] accounts in batches and executing step 406;
if not, execute 406: judging whether the group resource is larger than [ A/4] accounts to be allocated resources or not;
if yes, distributing group resources to the [ A/4] accounts in batches;
step 408: and allocating the group resource to the unallocated account until the group resource is smaller than the resource to be allocated by the single account.
Wherein A is the account number of the first account set, C is the number of resources to be allocated to the account, and M is the group resource. And distributing resources for the first account set in batches through a halving algorithm.
Example 5
The method for allocating the group resources is applied to group payment, as shown in fig. 5:
step 501: and acquiring a bill paid by the group, wherein the bill comprises an account of a member of the group and a bill paid by the group. In the group payment service, the group pays for the group members, and resources, such as telephone fee resources, are allocated for the corresponding group member accounts according to the payment bill, so that the payment is completed.
Step 502: and acquiring the bill to be paid, which is the same as the telephone fee to be paid, as a first bill set, wherein an account corresponding to the first bill set is the first account set.
Step 503: and allocating resources for the first account set in batches.
Step 504: and allocating resources for the account without the resources according to the bill payment.
And the efficiency of group payment is improved through batch processing.
Example 6
The present embodiment provides a system for group resource allocation, as shown in fig. 6, including a first acquisition module 1, a second acquisition module 2, a first allocation module 3 and a second allocation module 4,
the first acquisition module 1 is used for acquiring the account of each group member and the resources to be allocated;
the second acquisition module 2 is used for acquiring a first account set with the same number of resources to be allocated;
the first allocation module 3 is used for allocating resources for the first account set in batches;
the second allocation module 4 is configured to allocate resources for unallocated accounts.
The system may further comprise a first marking module 5, an unassigned account table 6 and an assigned account table 7, the first marking module 5 being configured to mark a first account of the first account set according to the resource to be assigned, the unassigned account table 6 being configured to store unassigned accounts, and the assigned account table 7 being configured to store assigned accounts.
The system may further comprise a second tagging module 8 and a third allocation module 9, the second tagging module 8 being configured to tag accounts of a second account set, wherein resources to be allocated of the account of the second account set are different from those of the account of the first account set; the third allocation module 9 is for allocating resources to accounts of the second set of accounts.
The above is only a preferred embodiment of the present invention, and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (9)

1. A method of group resource allocation, the method comprising:
acquiring an account and a resource to be allocated of each group member;
acquiring a first account set with the same number of resources to be allocated;
distributing resources for the first account set in batches;
allocating resources for the unassigned account;
the method for distributing resources for the first account set in batches comprises the following steps:
step 401: acquiring the total amount of resources to be allocated of a first account set;
step 402: judging whether the group resource is larger than the total amount of the resources to be allocated;
if yes, go to step 403: distributing group resources to A accounts in batches;
if not, go to step 404;
step 404: judging whether the group resource is larger than the resources to be allocated of the A/2 accounts or not;
if yes, execution 405: assigning the group resource to A/2 accounts in batches and executing step 406;
if not, execute 406: judging whether the group resource is larger than A/4 account number to-be-allocated resources or not;
if yes, distributing group resources to A/4 accounts in batches;
step 408: until the group resource is smaller than the resource to be allocated of the single account, allocating the group resource to the unallocated account;
wherein A is the account number of the first account set.
2. The method of group resource allocation according to claim 1, wherein the method of group resource batch allocation comprises:
setting accounts to be allocated in an unallocated account table;
after resources are allocated for the first account set, the accounts of the first account set are moved to the allocated account table.
3. The method of group resource allocation according to claim 1 or 2, further comprising the step of allocating resources for the first set of accounts by a first token:
marking the accounts of the first account set with a first mark;
group resources are allocated in batches to accounts provided with a first token.
4. The method of group resource allocation according to claim 1, further comprising the step of allocating resources for the second set of accounts in batches:
setting a second account set, wherein the number of resources to be allocated of the second account set account is the same and different from the number of resources to be allocated of the first account set account;
group resources are allocated to the first and second account sets, respectively.
5. The method of group resource allocation according to claim 1, further comprising an allocation method of group resources smaller than resources to be allocated for the first account set:
calculating the number of accounts of the group resource which can be allocated in batches:
N=[(M/C)× k] (1)
wherein N is the account number allocated in batches, M is a group resource, k is a resource availability coefficient to be allocated, and C is the account number to be allocated;
distributing resources for N accounts in batches;
the unassigned group resource is assigned to an unassigned account.
6. The method for group resource allocation according to claim 1, wherein the method is applied to group payment:
acquiring a bill paid by a group, wherein the bill comprises an account of a group member and a bill paid by the group member;
acquiring a bill to be paid, which has the same charge, as a first bill set, wherein an account corresponding to the first bill set is a first account set;
distributing resources for the first account set in batches;
and allocating resources for the account without the resources according to the bill payment.
7. A system for group resource allocation, characterized in that it comprises a first acquisition module, a second acquisition module, a first allocation module and a second allocation module,
the first acquisition module is used for acquiring the account of each group member and the resources to be allocated;
the second acquisition module is used for acquiring a first account set with the same number of resources to be allocated;
the first allocation module is used for allocating resources for the first account set in batches;
the second allocation module is used for allocating resources for the unallocated accounts.
8. The system for group resource allocation according to claim 7, further comprising a first tagging module for first tagging accounts of the first account set with resources to be allocated.
9. The system for group resource allocation according to claim 8, further comprising a second tagging module and a third allocation module, the second tagging module configured to tag accounts of a second account set, the second account set accounts having the same resources to be allocated and different from the first account set accounts; the third allocation module is used for allocating resources for the second account set.
CN202010796615.5A 2020-08-10 2020-08-10 Method and system for distributing group resources Active CN112101720B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010796615.5A CN112101720B (en) 2020-08-10 2020-08-10 Method and system for distributing group resources

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010796615.5A CN112101720B (en) 2020-08-10 2020-08-10 Method and system for distributing group resources

Publications (2)

Publication Number Publication Date
CN112101720A CN112101720A (en) 2020-12-18
CN112101720B true CN112101720B (en) 2024-04-02

Family

ID=73754444

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010796615.5A Active CN112101720B (en) 2020-08-10 2020-08-10 Method and system for distributing group resources

Country Status (1)

Country Link
CN (1) CN112101720B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110704485A (en) * 2019-09-12 2020-01-17 北京达佳互联信息技术有限公司 Virtual resource processing method, device and storage medium
CN110764902A (en) * 2019-09-18 2020-02-07 平安银行股份有限公司 Virtual resource allocation method and device based on AI (Artificial Intelligence), computer equipment and storage medium
CN111105146A (en) * 2019-12-02 2020-05-05 网联清算有限公司 Method, device and equipment for allocating resources to multiple accounts
CN111367660A (en) * 2020-02-25 2020-07-03 北京思特奇信息技术股份有限公司 Method and system for sharing group shared resources

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2929802C (en) * 2015-05-12 2022-06-07 The Toronto-Dominion Bank Resource allocation control based on connected devices
US20180032933A1 (en) * 2016-07-29 2018-02-01 Accenture Global Solutions Limited Adaptive resource allocation

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110704485A (en) * 2019-09-12 2020-01-17 北京达佳互联信息技术有限公司 Virtual resource processing method, device and storage medium
CN110764902A (en) * 2019-09-18 2020-02-07 平安银行股份有限公司 Virtual resource allocation method and device based on AI (Artificial Intelligence), computer equipment and storage medium
CN111105146A (en) * 2019-12-02 2020-05-05 网联清算有限公司 Method, device and equipment for allocating resources to multiple accounts
CN111367660A (en) * 2020-02-25 2020-07-03 北京思特奇信息技术股份有限公司 Method and system for sharing group shared resources

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘宏海.《商业银行经济资本管理与价值创造》.中国金融出版社,2019,第34-35页. *

Also Published As

Publication number Publication date
CN112101720A (en) 2020-12-18

Similar Documents

Publication Publication Date Title
CN108509164B (en) Printing management method, system, equipment and storage medium for air ticket reimbursement voucher
CN110659110B (en) Block chain based distributed computing method and system
CN110910230A (en) Accounting method, accounting system and storage medium
CN108269182B (en) Balance calculation method and calculation equipment based on fund collection
CN110246014B (en) Bill verification and cancellation scheduling method and device and server
CN105528682A (en) Payment method and system for enterprise multi-payment orders
CN111461763A (en) Resource allocation method and device
CN113627922A (en) Logistics data processing method and device, storage medium and electronic equipment
CN112101720B (en) Method and system for distributing group resources
CN110489705B (en) Method, device, terminal equipment and storage medium for calculating brokerage fee
CN112465628A (en) Data verification method and device, electronic equipment and storage medium
CN111429135A (en) Case management method, system and storage medium based on charge notice
CN106651557A (en) Account processing method for multilevel merchants
CN112884382B (en) Resource quota management method, device and equipment of cloud platform and storage medium
CN112737796A (en) Cross-region user communication charge transfer method, device, equipment, medium and product
CN113935821A (en) Method, device, electronic equipment and medium for settling commission charge in banking business
CN113268347A (en) Virtual resource allocation method, device, storage medium and electronic device
CN109801044A (en) It insures creation method, device and the storage medium of product
CN115965367A (en) Abnormal bill processing method, device, equipment and storage medium
CN111176588A (en) Business document issuing method, device, medium and electronic equipment
CN113766442B (en) Telephone traffic resource sharing method and device, computing equipment and storage medium
CN111429125B (en) Account management method and device, storage medium and electronic equipment
KR102166094B1 (en) Near Real Time Escrow System
JP4908911B2 (en) Withdrawal processing system and withdrawal processing method
CN108629679B (en) Bank account interest counting method and system based on personal account interest counting system

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