CN113962688A - Method and system for canceling account of telecommunication group business, electronic equipment and storage medium - Google Patents

Method and system for canceling account of telecommunication group business, electronic equipment and storage medium Download PDF

Info

Publication number
CN113962688A
CN113962688A CN202111061439.1A CN202111061439A CN113962688A CN 113962688 A CN113962688 A CN 113962688A CN 202111061439 A CN202111061439 A CN 202111061439A CN 113962688 A CN113962688 A CN 113962688A
Authority
CN
China
Prior art keywords
account
virtual
balance
accounts
virtual account
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.)
Pending
Application number
CN202111061439.1A
Other languages
Chinese (zh)
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 CN202111061439.1A priority Critical patent/CN113962688A/en
Publication of CN113962688A publication Critical patent/CN113962688A/en
Pending legal-status Critical Current

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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/22Payment schemes or models
    • G06Q20/227Payment schemes or models characterised in that multiple accounts are available, e.g. to the payer
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/52Program synchronisation; Mutual exclusion, e.g. by means of semaphores
    • G06F9/524Deadlock detection or avoidance
    • 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
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/60Business processes related to postal services

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Software Systems (AREA)
  • General Business, Economics & Management (AREA)
  • General Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Health & Medical Sciences (AREA)
  • Economics (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Tourism & Hospitality (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention discloses a method and a system for canceling account of telecommunication group business, electronic equipment and a storage medium, belonging to the technical field of telecommunication charging, and comprising the steps of establishing a unified payment account and M virtual accounts for N users of a group, wherein N and M are positive integers, and M is less than or equal to N; a virtual account for debiting one or more users; when the user consumes and triggers the account cancellation, locking the virtual account corresponding to the user; reading the balance of the virtual account, and judging whether the balance of the virtual account is sufficient; if sufficient, directly deducting the balance; if not, transferring part of the fee from the account to the virtual account. The invention solves the problem of real-time fee deduction and blocking in the large account cancellation calculation process by a balance transfer algorithm between virtual accounts, and improves the processing capacity of concurrent account cancellation calculation.

Description

Method and system for canceling account of telecommunication group business, electronic equipment and storage medium
Technical Field
The invention belongs to the technical field of telecommunication charging, and particularly relates to a method and a system for canceling accounts of telecommunication group services, electronic equipment and a storage medium.
Background
The group service of the telecommunication service market is characterized in that a group payment account is established for paying users under the account in the charging mode. The billing is simply the process of using the ledger balance on the payment account to deduct the bill of the paid user. A common cancellation algorithm is as follows: locking the system account, if the system account can not be acquired, waiting until the exclusive lock is acquired; acquiring available quota under the account, and stopping the account cancellation process if the available quota is unavailable; if the credit is available, acquiring the arrearage of the paid part of the account of the current user; using the available amount of the main payment account to reduce the arrearage of the payment part of the account until the arrearage is used up; updating the available limit of the payment account and the arrearage of the payment user; the system account is unlocked. The cancellation method has too many processing flow dependency waiting links and too long time, cannot effectively perform concurrent processing according to users, and has limited expansion processing capacity of the system.
Disclosure of Invention
In view of the above problems, the present invention provides a method and a system for canceling account of a telecommunication group service, an electronic device, and a storage medium, wherein the method comprises:
establishing a unified payment account and M virtual accounts for N users of a group, wherein N and M are positive integers and M is less than or equal to N;
the virtual account is used for canceling accounts for one or more users;
when the user consumes the triggered account cancellation, locking the virtual account corresponding to the user;
reading the balance of the virtual account, and judging whether the balance of the virtual account is sufficient or not; if sufficient, directly deducting the balance; if not, transferring part of the fee from the account to the virtual account.
Preferably, the method further comprises the following steps: if no balance exists in the payment account, directly deducting the balance on other virtual accounts;
and in the deduction process, locking the current virtual account and the deducted virtual account at the same time.
Preferably, directly subtracting from the balance on the other virtual accounts comprises:
reading the virtual accounts in sequence, judging whether the virtual accounts have balances, and reading the next virtual account in sequence if the virtual accounts do not have balances; if the balance exists, judging whether the balance is sufficient;
if sufficient, directly deducting the balance; and if the balance of the virtual account is insufficient, deducting the balance of the virtual account, and continuously reading the next virtual account until account cancellation is completed or no balance exists in all the virtual accounts.
Preferably, the amount of the transfer part of the fee is 30-50 times of the consumption amount of the user.
Preferably, the virtual account and the payment account are locked simultaneously during the process of transferring part of the fee from the payment account to the virtual account.
The system for canceling the account of the telecommunication group service provided by the embodiment of the invention comprises:
the account management module is used for establishing a unified payment account and M virtual accounts for N users of the group, wherein N and M are positive integers, M is less than or equal to N, and one virtual account is used for canceling one or more accounts of the users;
the account cancellation module is used for receiving the consumption of the user and locking the virtual account corresponding to the user;
the processing module is used for reading the balance of the virtual account and judging whether the balance of the virtual account is sufficient or not; if sufficient, directly deducting the balance; if not, transferring part of the fee from the account to the virtual account.
Preferably, the method further comprises the following steps: if no balance exists in the payment account, directly deducting the balance on other virtual accounts;
and in the deduction process, locking the current virtual account and the deducted virtual account at the same time.
Preferably, directly subtracting from the balance on the other virtual accounts comprises:
reading the virtual accounts in sequence, judging whether the virtual accounts have balances, and reading the next virtual account in sequence if the virtual accounts do not have balances; if the balance exists, judging whether the balance is sufficient;
if sufficient, directly deducting the balance; and if the balance of the virtual account is insufficient, deducting the balance of the virtual account, and continuously reading the next virtual account until account cancellation is completed or no balance exists in all the virtual accounts.
An embodiment of the present invention provides an electronic device, which includes at least one processing unit and at least one storage unit, where the storage unit stores a program, and when the program is executed by the processing unit, the processing unit is enabled to execute the method described above.
An embodiment of the present invention provides a computer-readable storage medium, which stores a computer program executable by an electronic device, and when the program runs on the electronic device, the program causes the electronic device to execute the method described above.
Compared with the prior art, the invention has the beneficial effects that:
the invention solves the problem of real-time fee deduction and blocking in the large account cancellation calculation process by a balance transfer algorithm between virtual accounts, and improves the processing capacity of concurrent account cancellation calculation.
Drawings
FIG. 1 is a flow chart of a method for canceling account of a telecom group service provided by the present invention;
fig. 2 is a structural diagram of a payment account in a specific scenario provided by the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, 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 some, but not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
Referring to fig. 1, the present invention provides a method for canceling a charge for a telecommunication group service, the method comprising:
establishing a unified payment account and M virtual accounts for N users of a group, wherein N and M are positive integers, M is less than or equal to N, and one virtual account is used for canceling accounts for one or more users;
when the user consumes and triggers the account cancellation, locking the virtual account corresponding to the user;
reading the balance of the virtual account, and judging whether the balance of the virtual account is sufficient; if sufficient, directly deducting the balance; if not, transferring part of the fee from the account to the virtual account, simultaneously locking the virtual account and the account in the process of transferring part of the fee from the account to the virtual account, wherein the amount of the transferred part of the fee is 30-50 times of the consumption amount of the user, and if the balance of the account is not enough, transferring all the balance.
Further, if no balance exists in the account of the general payment, directly deducting the balance from the balance of other virtual accounts;
and in the deduction process, locking the current virtual account and the deducted virtual account simultaneously.
Still further, directly deducting from balances on other of the virtual accounts comprises:
reading the virtual accounts in sequence, judging whether the virtual accounts have balances, and reading the next virtual account in sequence if the virtual accounts do not have balances; if the balance exists, judging whether the balance is sufficient;
if sufficient, directly deducting the balance; and if the balance of the virtual account is insufficient, deducting the balance of the virtual account, and continuously reading the next virtual account until account cancellation is completed or no balance exists in all the virtual accounts.
In this embodiment, as shown in fig. 2, it is assumed that there are 9 paying subscribers under the system payment account (the effect is more ideal as the number of subscribers is larger in an actual scene), the initial amount 400 is on the system payment account, each subscriber performs the account cancellation processing according to 20, 30, 40, and 50 yuan, and the system automatically generates 3 virtual accounts in order to improve the calculation efficiency. The calculation process and results are as follows:
TABLE 1
Figure BDA0003256749930000041
Figure BDA0003256749930000051
When the paying user does not belong to the same virtual account, consumption triggers account cancellation, and consumption of other members simultaneously does not affect the calculation process. In the process, only the virtual account data corresponding to the current user needs to be locked, and the virtual accounts corresponding to other users do not need to be locked, so that the accuracy of the account cancellation data is ensured, and the concurrent processing of other users is not influenced; the sequence numbers 3/4/5, 6/7/8 and 9/10/11 in the table are processed in parallel.
When the balance of the virtual account is sufficient, the balance on the account is directly deducted, and account cancellation of other users simultaneously does not affect the calculation process of the user. In the process, only the virtual account data corresponding to the current user needs to be locked;
when the balance of the virtual account is insufficient, partial fee needs to be transferred from the original account to the virtual account. In the process, the virtual account and the data of the account are locked, and if the virtual accounts of other users have no balance and the balance needs to be transferred to the account, a waiting process occurs. Step length control of balance transfer can be increased to reduce the frequent transfer of the virtual account; the sequence number 9 in the table is the process and result of the distribution of the system charge;
when the virtual account is charged, if the current virtual account limit is insufficient, and no allocatable balance exists on the payment account. Other virtual accounts need to be looked up and the balance on the other virtual accounts used for the charge deduction. At this time, the current user virtual account and the other user virtual accounts need to be locked simultaneously for waiting. The sequence numbers 10 and 11 in the table are the process and the result of virtual account fee redistribution.
In the above scenario, 14 time units are needed in the deduction process of the original scheme due to account locking and blocking, and after the parallel effect is achieved by adopting the scheme, only 8 time units are needed, so that the concurrent processing capacity of the system is improved. In different cases, the reduction amount of the time unit will have more obvious effect as the group system payment amount becomes larger and the amount of the system configuration virtual accounts becomes larger, and the following is that after 500 processes are started, the processing test results in different scenes are as shown in table 2 below.
TABLE 2
Figure BDA0003256749930000052
Figure BDA0003256749930000061
The system for canceling the account of the telecommunication group service provided by the embodiment of the invention comprises:
the account management module is used for establishing a unified payment account and M virtual accounts for N users of the group, wherein N and M are positive integers, M is less than or equal to N, and one virtual account is used for canceling accounts for one or more users;
the account cancellation module is used for receiving user consumption and locking a virtual account corresponding to the user;
the processing module is used for reading the balance of the virtual account and judging whether the balance of the virtual account is sufficient or not; if sufficient, directly deducting the balance; if not, transferring part of the fee from the account to the virtual account.
Further, still include: if no balance exists in the payment account, directly deducting the balance on other virtual accounts;
and in the deduction process, locking the current virtual account and the deducted virtual account at the same time.
Still further, directly deducting from balances on other of the virtual accounts comprises:
reading the virtual accounts in sequence, judging whether the virtual accounts have balances, and reading the next virtual account in sequence if the virtual accounts do not have balances; if the balance exists, judging whether the balance is sufficient;
if sufficient, directly deducting the balance; and if the balance of the virtual account is insufficient, deducting the balance of the virtual account, and continuously reading the next virtual account until account cancellation is completed or no balance exists in all the virtual accounts.
An embodiment of the present invention provides an electronic device, which includes at least one processing unit and at least one storage unit, where the storage unit stores a program, and when the program is executed by the processing unit, the processing unit is enabled to execute the method.
An embodiment of the present invention provides a computer-readable storage medium, which stores a computer program executable by an electronic device, and when the program runs on the electronic device, the electronic device is caused to execute the method described above.
The above is only a preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes will occur to those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for canceling account of telecommunication group service is characterized in that the method comprises the following steps:
establishing a unified payment account and M virtual accounts for N users of a group, wherein N and M are positive integers and M is less than or equal to N;
the virtual account is used for canceling accounts for one or more users;
when the user consumes the triggered account cancellation, locking the virtual account corresponding to the user;
reading the balance of the virtual account, and judging whether the balance of the virtual account is sufficient or not; if sufficient, directly deducting the balance; if not, transferring part of the fee from the account to the virtual account.
2. The method of claim 1, further comprising: if no balance exists in the payment account, directly deducting the balance on other virtual accounts;
and in the deduction process, locking the current virtual account and the deducted virtual account at the same time.
3. The method of claim 2, wherein directly deducting from the balance on the other virtual accounts comprises:
reading the virtual accounts in sequence, judging whether the virtual accounts have balances, and reading the next virtual account in sequence if the virtual accounts do not have balances; if the balance exists, judging whether the balance is sufficient;
if sufficient, directly deducting the balance; and if the balance of the virtual account is insufficient, deducting the balance of the virtual account, and continuously reading the next virtual account until account cancellation is completed or no balance exists in all the virtual accounts.
4. The method of claim 1, wherein the amount of the allocated portion of the charges is 30-50 times of the amount of the charges consumed by the subscriber.
5. The method of claim 1, wherein the virtual account and the consolidated account are locked simultaneously during the transfer of a portion of the charges from the consolidated account to the virtual account.
6. An account cancellation system for a telecommunication group service, comprising:
the account management module is used for establishing a unified payment account and M virtual accounts for N users of the group, wherein N and M are positive integers, M is less than or equal to N, and one virtual account is used for canceling one or more accounts of the users;
the account cancellation module is used for receiving the consumption of the user and locking the virtual account corresponding to the user;
the processing module is used for reading the balance of the virtual account and judging whether the balance of the virtual account is sufficient or not; if sufficient, directly deducting the balance; if not, transferring part of the fee from the account to the virtual account.
7. The cancellation system for telecommunication group services of claim 6, further comprising: if no balance exists in the payment account, directly deducting the balance on other virtual accounts;
and in the deduction process, locking the current virtual account and the deducted virtual account at the same time.
8. The system of claim 6, wherein the direct deduction from the balance on the other virtual accounts comprises:
reading the virtual accounts in sequence, judging whether the virtual accounts have balances, and reading the next virtual account in sequence if the virtual accounts do not have balances; if the balance exists, judging whether the balance is sufficient;
if sufficient, directly deducting the balance; and if the balance of the virtual account is insufficient, deducting the balance of the virtual account, and continuously reading the next virtual account until account cancellation is completed or no balance exists in all the virtual accounts.
9. An electronic device, comprising at least one processing unit and at least one memory unit, wherein the memory unit stores a computer program that, when executed by the processing unit, causes the processing unit to perform the method of any of claims 1 to 5.
10. A storage medium storing a computer program executable by an electronic device, the program, when run on the electronic device, causing the electronic device to perform the method of any one of claims 1 to 5.
CN202111061439.1A 2021-09-10 2021-09-10 Method and system for canceling account of telecommunication group business, electronic equipment and storage medium Pending CN113962688A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111061439.1A CN113962688A (en) 2021-09-10 2021-09-10 Method and system for canceling account of telecommunication group business, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111061439.1A CN113962688A (en) 2021-09-10 2021-09-10 Method and system for canceling account of telecommunication group business, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113962688A true CN113962688A (en) 2022-01-21

Family

ID=79461589

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111061439.1A Pending CN113962688A (en) 2021-09-10 2021-09-10 Method and system for canceling account of telecommunication group business, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113962688A (en)

Similar Documents

Publication Publication Date Title
CN1127844C (en) Method for handling parallel transactions on telephone pre-paid accounts
RU2003105160A (en) NUMEROUS VIRTUAL WALLETS IN WIRELESS DEVICES
JP2004070445A (en) Batch type billing method and system using distributed processing
CN109741043B (en) Fund management method, apparatus and storage medium
CN112270580B (en) Invoice issuing method, invoice issuing device, invoice issuing equipment and storage medium
US8341044B1 (en) System, method, and computer program product for rating and re-rating events
US7145995B2 (en) Method for server-assisted data processing for a plurality of clients
CN112712430A (en) High-frequency account management method and device for Internet bank
CN111901771A (en) Credit limit setting method, credit limit setting device, computer equipment and storage medium
CN109614263B (en) Disaster tolerance data processing method, device and system
CN110381222B (en) Method and device for determining mobile service state
CN112381537A (en) Hotspot account billing method
CN113962688A (en) Method and system for canceling account of telecommunication group business, electronic equipment and storage medium
CN109618070B (en) Call bill charging method, device, equipment and medium
CN112737796B (en) Cross-region user communication fee transfer method, device, equipment, medium and product
CN112153585B (en) Charging system, method, storage medium and electronic device
CN108809666B (en) Method, device and equipment for online charging of flow
CN101039365B (en) Method for realizing prepaid service for CDMA2000 packet data network group subscriber
CN110751552A (en) Financial account amount processing method and device and server
CN101778368A (en) Method and system for charging rent of prepaid service
CN114268915B (en) Charging service processing method, equipment, system and storage medium
CN110288347A (en) Access control apparatus and method
CN112101720B (en) Method and system for distributing group resources
KR102255572B1 (en) A deffered payment type prepaid card service providing method based on HCE
WO2015017265A1 (en) Billing transaction currency normalization

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