CN113450160A - Active budget updating method and device - Google Patents

Active budget updating method and device Download PDF

Info

Publication number
CN113450160A
CN113450160A CN202110789513.5A CN202110789513A CN113450160A CN 113450160 A CN113450160 A CN 113450160A CN 202110789513 A CN202110789513 A CN 202110789513A CN 113450160 A CN113450160 A CN 113450160A
Authority
CN
China
Prior art keywords
refund
transaction
activity
time
budget
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
CN202110789513.5A
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.)
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 CN202110789513.5A priority Critical patent/CN113450160A/en
Publication of CN113450160A publication Critical patent/CN113450160A/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
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0208Trade or exchange of goods or services in exchange for incentives or rewards
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • Development Economics (AREA)
  • Game Theory and Decision Science (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides an activity budget updating method and device, wherein the method comprises the following steps: when a transaction refund request sent by a terminal to a refund system is detected, determining business activities participated by a target transaction business; acquiring a transaction code corresponding to a target transaction service; setting a delayed update time based on the transaction code; detecting whether the refund correction system executes refund correction operation corresponding to the target transaction service within the delay updating time or not; if not, not updating the activity budget of the business activity; if so, acquiring a target activity budget corresponding to the business activity contained in the transaction refund request, and updating a total activity budget corresponding to the business activity in a preset database based on the target activity budget. The method provided by the invention can effectively control the active budget and prevent the excess of the active budget.

Description

Active budget updating method and device
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for updating an active budget.
Background
With the rapid development of computer technology, online payment becomes the mainstream payment method of mass consumers. In order to improve the consumption experience of consumers, each large e-commerce platform and each off-line merchant can cooperate with each payment platform and bank, and the application programs of the payment platforms or the banks are applied to transaction payment.
In order to promote the active consumption of the consumers, each payment platform and each bank usually set an activity budget corresponding to a certain business activity, and set a corresponding coupon and an activity denomination according to the activity budget. After the consumer successfully obtains the activity name and the coupon, the consumer can use the coupon to perform consumption operation, and the consumer withholds the corresponding activity budget when consuming. When the consumer is consuming, a refund transaction may be performed, and in the refund transaction, the activity budget needs to be synchronously added back for better serving the mass customers. After the refund transaction is executed, a refund reversal operation may occur, i.e., a refund error occurs, and the originally added active budget needs to be returned to the original account. Since the refund flushing operation is the reverse operation of the refund transaction, it is also necessary to restore the active budget to the pre-update active budget when the refund flushing occurs. However, in the actual operation process, after the refund transaction occurs and the activity budget is updated, there may be other consumers performing consumption operations and deducting the originally added activity budget, and if the refund is performed again, the activity budget is easily exceeded. Thus, the active budget in the prior art cannot be effectively controlled.
Disclosure of Invention
In view of the above, the present invention provides an active budget updating method, by which active budgets can be effectively controlled and excess of the active budgets can be prevented.
The invention also provides an active budget updating device, which is used for ensuring the realization and the application of the method in practice.
An active budget updating method, comprising:
when a transaction refund request corresponding to a target transaction service sent to a refund system by a terminal is detected, determining a service activity participated by the target transaction service;
acquiring a transaction code corresponding to the target transaction service in the transaction refund request;
setting a delay updating time of an activity budget corresponding to the business activity based on the transaction code;
detecting whether a preset refund correction system executes refund correction operation corresponding to the target transaction service within the delay updating time or not;
if the refund correcting system executes the refund correcting operation corresponding to the transaction code within the delay updating time, the activity budget of the business activity is not updated;
if the refund correcting system does not execute the refund correcting operation corresponding to the transaction code within the delay updating time, acquiring a target activity budget corresponding to the business activity contained in the transaction refund request, and updating a total activity budget corresponding to the business activity in a preset database based on the target activity budget.
Optionally, the method further includes, before detecting a transaction refund request corresponding to a target transaction service sent by a terminal to a refund system, that:
acquiring transaction information corresponding to the target transaction service;
generating a transaction code corresponding to the target transaction service based on the transaction information;
sending the transaction information and the transaction code to the refund system, and triggering each refund server in the refund system to generate the maximum refund time corresponding to the target transaction service based on the transaction information and the transaction code; the refund system comprises a plurality of refund servers, wherein different refund service operations are executed among the refund servers, the maximum refund time corresponding to each server is the longest operation time required by the refund server to execute the refund service operation corresponding to the refund server based on the transaction information and the transaction code;
and receiving each maximum refund time sent by the refund system, and associating and storing each maximum refund time and the transaction code.
Optionally, in the foregoing method, the setting, based on the transaction code, a delay update time of an activity budget corresponding to the business activity includes:
acquiring each maximum refund time associated with the transaction code;
and calculating the time difference between the maximum refund times, and setting the time difference as the delay updating time of the activity budget corresponding to the business activity.
Optionally, in the method, the detecting whether a preset refund correcting system executes refund correcting corresponding to the target transaction service within the delay updating time includes:
monitoring a system log of the refund reversal system;
in the delay updating time, inquiring whether the system log contains a transaction code corresponding to the target transaction service in real time;
if the system log is inquired to contain the transaction code corresponding to the target transaction service within the delay updating time, determining that the refund reimbursement system executes the refund reimbursement operation corresponding to the target transaction service within the delay updating time;
if the system log does not contain the transaction code corresponding to the target transaction service in the delayed updating time, determining that the refund reimbursement system does not execute the refund reimbursement operation corresponding to the target transaction service in the delayed updating time.
The above method, optionally, further includes:
detecting whether the total activity budget corresponding to the business activity in the database reaches a preset budget threshold in real time, and closing the business activity when the total activity budget reaches the preset budget threshold.
An active budget updating apparatus, comprising:
the system comprises a determining unit, a refund processing unit and a refund processing unit, wherein the determining unit is used for determining business activities participated by a target transaction business when a transaction refund request corresponding to the target transaction business sent to a refund system by a terminal is detected;
the first acquisition unit is used for acquiring a transaction code corresponding to the target transaction service in the transaction refund request;
the setting unit is used for setting the delay updating time of the activity budget corresponding to the business activity based on the transaction code;
the detection unit is used for detecting whether a preset refund correction system executes refund correction operation corresponding to the target transaction service within the delay updating time or not;
a cancellation operation unit, configured to not update the activity budget of the business activity if the refund reversal system executes the refund reversal operation corresponding to the transaction code within the delay update time;
and the updating unit is used for acquiring a target activity budget corresponding to the business activity contained in the transaction refund request if the refund reversal system does not execute the refund reversal operation corresponding to the transaction code within the delay updating time, and updating a total activity budget corresponding to the business activity in a preset database based on the target activity budget.
The above apparatus, optionally, further comprises:
the second acquisition unit is used for acquiring the transaction information corresponding to the target transaction service;
the generating unit is used for generating a transaction code corresponding to the target transaction service based on the transaction information;
the triggering unit is used for sending the transaction information and the transaction code to the refund system and triggering each refund server in the refund system to generate the maximum refund time corresponding to the target transaction service based on the transaction information and the transaction code; the refund system comprises a plurality of refund servers, wherein different refund service operations are executed among the refund servers, the maximum refund time corresponding to each server is the longest operation time required by the refund server to execute the refund service operation corresponding to the refund server based on the transaction information and the transaction code;
and the storage unit is used for receiving each maximum refund time sent by the refund system, and associating and storing each maximum refund time and the transaction code.
The above apparatus, optionally, the setting unit includes:
the acquisition subunit is used for acquiring each maximum refund time associated with the transaction code;
and the calculating subunit is used for calculating the time difference between the maximum refund times and setting the time difference as the delay updating time of the activity budget corresponding to the business activity.
The above apparatus, optionally, the detection unit includes:
the monitoring subunit is used for monitoring the system log of the refund reversal system;
the inquiring subunit is used for inquiring whether the system log contains a transaction code corresponding to the target transaction service in real time within the delay updating time;
a first determining subunit, configured to determine that the refund reimbursement system has executed the refund reimbursement operation corresponding to the target transaction service within the delayed update time if the system log is queried to include the transaction code corresponding to the target transaction service within the delayed update time;
and a second determining subunit, configured to determine that the refund reimbursement system does not execute the refund reimbursement operation corresponding to the target transaction service within the delayed update time if the system log does not contain the transaction code corresponding to the target transaction service within the delayed update time.
The above apparatus, optionally, further comprises:
and the closing unit is used for detecting whether the total activity budget corresponding to the business activity in the database reaches a preset budget threshold in real time, and closing the business activity when the total activity budget reaches the preset budget threshold.
A storage medium comprising stored instructions, wherein the instructions, when executed, control a device on which the storage medium resides to perform the above-mentioned active budget updating method.
An electronic device comprising a memory, and one or more instructions, wherein the one or more instructions are stored in the memory and configured to be executed by the one or more processors to perform the above active budget updating method.
Compared with the prior art, the invention has the following advantages:
the invention provides an active budget updating method, which comprises the following steps: when a transaction refund request corresponding to a target transaction service sent to a refund system by a terminal is detected, determining a service activity participated by the target transaction service; acquiring a transaction code corresponding to the target transaction service in the transaction refund request; setting a delay updating time of an activity budget corresponding to the business activity based on the transaction code; detecting whether a preset refund correction system executes refund correction operation corresponding to the target transaction service within the delay updating time or not; if the refund correcting system executes the refund correcting operation corresponding to the transaction code within the delay updating time, the activity budget of the business activity is not updated; if the refund correcting system does not execute the refund correcting operation corresponding to the transaction code within the delay updating time, acquiring a target activity budget corresponding to the business activity contained in the transaction refund request, and updating a total activity budget corresponding to the business activity in a preset database based on the target activity budget. The method provided by the invention can effectively control the active budget and prevent the excess of the active budget.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flowchart of a method for updating an active budget according to an embodiment of the present invention;
FIG. 2 is a system diagram of an active budget updating system according to an embodiment of the present invention;
FIG. 3 is a flowchart of another method for updating an active budget according to an embodiment of the present invention;
FIG. 4 is a flowchart of another method for updating an active budget according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating an apparatus structure of an active budget updating apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of 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.
In this application, relational terms such as first and second, and the like are 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, and the terms "comprises", "comprising", or any other variation thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The invention is operational with numerous general purpose or special purpose computing device environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multi-processor apparatus, distributed computing environments that include any of the above devices or equipment, and the like.
The embodiment of the present invention provides an activity budget updating method, which can be applied to various system platforms, wherein an execution main body of the method can be a background system of a bank, the background system is a bank background system and is used for managing and controlling relevant activity data of all business activities of the bank, and a flow chart of the method is shown in fig. 1, and specifically includes:
s101: when a transaction refund request corresponding to a target transaction service sent to a refund system by a terminal is detected, determining the service activity participated by the target transaction service.
In the embodiment of the invention, when a consumer applies for refund or the terminal triggers the refund operation by mistake, the terminal sends a transaction refund request corresponding to a target transaction service to the refund system, and the refund system executes the corresponding refund operation according to the transaction refund request. And when the background system detects that the terminal sends a transaction refund request corresponding to the target transaction service to the refund system, determining the service activity participated by the target transaction service. The target transaction service is a transaction service that is transacted by a consumer when performing a transaction operation, such as: offline supermarket consumption or online commodity transaction, etc. When detecting that the refund system has a refund transaction, the background system detects whether a target transaction service corresponding to the refund transaction participates in a certain service activity, for example, a full deactivation of a certain commodity or a coupon deduction activity. And if the target transaction service participates in a certain service activity, determining that the target transaction service participates in the service activity.
It should be noted that the terminal may be a mobile terminal, a computer device, or an ATM machine, etc. which may initiate a transaction refund request.
S102: and acquiring a transaction code corresponding to the target transaction service in the transaction refund request.
In the embodiment of the invention, after the consumer successfully consumes the target transaction service, the background system configures the transaction code corresponding to the target transaction service, and the transaction code is the unique authentication code corresponding to the target transaction activity.
S103: and setting the delay updating time of the activity budget corresponding to the business activity based on the transaction code.
It should be noted that, for different transaction services, the delay update time of the activity budget corresponding to the correspondingly set update service activity is different. And checking the time of the refund system needing to execute the refund operation on the target transaction service and the time of the refund correcting system needing to execute the refund correcting operation on the target transaction service through the transaction code so as to determine the delay updating time.
S104: and detecting whether a preset refund correction system executes refund correction operation corresponding to the target transaction service within the delay updating time.
In the embodiments of the present invention. And detecting whether the refund correction system generates refund correction corresponding to the target transaction service within the delay updating time.
If the refund correction system executes the refund correction operation corresponding to the transaction code within the delay updating time, executing S105; if the refund correction system does not execute the refund correction operation corresponding to the transaction code within the delay updating time, executing S106.
S105: the activity budget for the business activity is not updated.
In the implementation of the present invention, if the refund reversal system executes the refund reversal operation corresponding to the transaction code within the delay updating time, the original refund operation is cancelled, so that the activity budget of the business activity does not need to be updated.
S106: and acquiring a target activity budget corresponding to the business activity contained in the transaction refund request, and updating a total activity budget corresponding to the business activity in a preset database based on the target activity budget.
In the embodiment of the present invention, if the refund reversal system does not execute the refund reversal operation corresponding to the transaction code within the delay updating time, the refund operation is successful, and the activity budget of the business activity needs to be updated.
It should be noted that the database stores activity data of all business activities, and the activity data includes activity budgets of the business data.
In the activity budget updating method provided by the embodiment of the invention, when a transaction refund request corresponding to a target transaction service sent by a terminal to a refund system is detected, a service activity participated by the target transaction service is determined, and a transaction code corresponding to the target transaction service is acquired. And when the refund system receives the transaction refund request, executing corresponding refund operation according to the request. And in order to prevent refund and correction in subsequent needs, the background system sets the delay updating time of the activity budget corresponding to the business activity according to the transaction code. And after the delay updating time, determining whether the activity budget corresponding to the service interaction needs to be updated, specifically, detecting whether a refund correction system executes refund correction operation corresponding to the target transaction service within the delay updating time. If not, the activity budget does not need to be updated; if so, acquiring a target activity budget corresponding to the business activity contained in the refund transaction request, and updating the total activity budget of the business activity according to the target activity budget.
The refund system includes a plurality of refund servers, each of which is configured to perform different refund service operations including service operations such as cash refund, coupon refund denomination and refund overlap amount. For example, when a consumer of the terminal participates in a 200-element payment of a total payment of full deduction and coupon superposition, the user actually pays 150 elements, the coupon pays 30 elements, and the full deduction is 20 elements, the refund system executes corresponding refund service operation by three refund servers when executing the refund operation; the refund server A executes 150 yuan refund service, the refund server B executes 30 yuan coupon refund service, and the server C executes 20 yuan deduction service. And when each refund server executes corresponding refund service operation, monitoring whether the operation is successful in real time, and if any refund server fails in the refund service operation, requesting the refund correction server to initiate the refund correction operation. The refund correction system is used for receiving a refund correction request of the refund system and executing the refund correction operation.
It can be understood that the background system detects whether the refund system receives a transaction refund request in real time, and when the terminal sends the transaction refund request corresponding to the target service to the refund system, the refund system executes the refund operation according to the request. When detecting a transaction refund request, a background system determines the business activity participated by a target transaction business according to the request and acquires a transaction code corresponding to the target transaction business so as to set delay updating time; and detecting whether the refund positive system executes the refund positive operation within the delay updating time. And in the delay updating time, if the refund system fails in refund operation, requesting the refund correction system to execute the refund correction operation, and executing the refund correction operation when the refund correction system receives the request. The background system detects whether the refund positive system executes the refund positive operation within the delay updating time, and if so, the activity budget of the business activity is updated; otherwise, the active budget is not updated.
By applying the method provided by the embodiment of the invention, the delay updating time for updating the active budget is set so as to ensure the delay of the updating of the active budget, effectively control the active budget and prevent the excess of the active budget.
Based on the method provided by the foregoing embodiment, referring to fig. 2, the present invention provides an active budget updating system, which specifically includes: the terminal 201, the refund system 202, the refund reversal system 203 and the background system 204. The terminal 201 is configured to send a transaction refund request corresponding to the target transaction service to the refund system. The refund system 202 is configured to execute a corresponding refund operation when receiving a transaction refund request corresponding to the target transaction service, and send a refund correction request to the refund correction system after the refund operation fails. The refund correction system 203 is configured to execute a refund correction operation corresponding to the refund correction request when receiving the refund correction request sent by the refund system. The background system is configured to perform the processes from S101 to S106, which will not be described herein again.
In the method provided by the embodiment of the invention, before the terminal sends the transaction refund request corresponding to the target transaction service to the refund, the consumer of the terminal needs to execute the consumption operation corresponding to the target transaction service. Therefore, after the consumer of the terminal executes the consuming operation corresponding to the target transaction service, before detecting a transaction refund request corresponding to the target transaction service sent by the terminal to the refund system, the background system executes the process shown in fig. 3, which may specifically include:
s301: and acquiring the transaction information corresponding to the target transaction service.
In the embodiment of the invention, the transaction information comprises the transaction time, the transaction place, the transaction type, the transaction commodity and the like corresponding to the target transaction service.
S302: and generating a transaction code corresponding to the target transaction service based on the transaction information.
In the implementation of the invention, the information of the transaction time, the transaction place, the transaction type, the transaction commodity and the like in the transaction information is obtained, and the transaction code corresponding to the target transaction service is generated.
S303: and sending the transaction information and the transaction code to the refund system, and triggering each refund server in the refund system to generate the maximum refund time corresponding to the target transaction service based on the transaction information and the transaction code.
The refund system comprises a plurality of refund servers, wherein different refund service operations are executed between the refund servers, the maximum refund time corresponding to each refund server is the longest operation time required by the refund server to execute the refund service operation corresponding to the refund server based on the transaction information and the transaction code.
In the embodiment of the invention, after the refund system receives the transaction information and the transaction code, each refund server in the refund system budgets according to the transaction information and the transaction code, the maximum operation time which is required to be consumed when the refund server executes the corresponding refund service operation is executed, and the maximum operation time is taken as the maximum refund time and is sent to the background system through the refund system.
S304: and receiving each maximum refund time sent by the refund system, and associating and storing each maximum refund time and the transaction code.
In the embodiment of the invention, after receiving each maximum refund time, the background system binds each maximum refund time with the transaction code, that is, stores each maximum refund time and the transaction code in a correlation manner, so as to ensure that the delayed update time for delaying the update of the activity budget corresponding to the business activity participated by the target transaction business is calculated when the target transaction business generates the refund operation.
Specifically, based on the method provided in the foregoing embodiment, after the transaction code is stored in association with each maximum refund time, and after the background system detects a transaction refund request corresponding to the target transaction service, the transaction code corresponding to the target transaction service is acquired to calculate a delayed update time for updating an activity budget corresponding to a service activity in which the target transaction service participates, which may specifically include:
acquiring each maximum refund time associated with the transaction code;
and calculating the time difference between the maximum refund times, and setting the time difference as the delay updating time of the activity budget corresponding to the business activity.
It can be understood that, based on the method provided in the foregoing embodiment, after the consumer of the terminal executes the consuming operation corresponding to the target transaction service, the transaction information corresponding to the target transaction service is acquired, the unique transaction code corresponding to the target transaction service is generated based on the transaction information, and the transaction information and the transaction code are sent to the refund system. After receiving the transaction information and the transaction code, each refund server in the refund system calculates the maximum operation time required by the corresponding refund server to execute the operation of the refund server, and sends the maximum operation time serving as the maximum refund time to the background system through the refund system. And after receiving each maximum refund time sent by the refund system, associating and storing the transaction code and each maximum refund time. And when the terminal sends a transaction refund request corresponding to the target transaction service to the refund system, each refund server in the refund system executes each refund service operation corresponding to the target transaction service according to the transaction refund request. And when the background system detects the transaction refund request, determining the business activity participated by the target transaction business, acquiring a transaction code corresponding to the target transaction business, further acquiring each maximum refund time associated with the transaction code, calculating the time difference of each maximum refund time, and setting the time difference as delay updating time.
It should be noted that, when a refund service operation fails in any refund server in the refund system, a refund correction request is immediately sent to the refund correction system, and the refund correction system immediately executes a corresponding refund correction operation and writes an operation process into a system log.
By applying the method provided by the embodiment of the invention, after the target transaction service occurs, each maximum refund time sent by the refund system is received and stored, so that the activity budget corresponding to the service activity participated by the target transaction service is delayed and updated when the refund operation corresponding to the target transaction service occurs, and the excess of the activity budget is prevented.
Based on the method provided in the foregoing embodiment, after the delayed update time of the activity budget corresponding to the business activity is set, it needs to further detect whether the refund correction system executes the refund correction corresponding to the target transaction business within the delayed update time. Therefore, the process of detecting whether the preset refund correction system executes the refund correction corresponding to the target transaction service within the delay update time is shown in fig. 4, and may specifically include:
s401: and monitoring the system log of the refund correcting system.
In the embodiment of the invention, the system log of the refund correction system is used for recording the operation process of the refund correction operation performed by the system every day. When the refund correcting system executes the refund correcting operation corresponding to any transaction service, the information of the specific process, the details and the like of the refund correcting operation is filled in a system log, and the transaction code corresponding to the transaction service is used as the index of the information of the refund correcting operation corresponding to the transaction service.
S402: and inquiring whether the system log contains a transaction code corresponding to the target transaction service within the delay updating time.
In the embodiment of the present invention, if the system log is queried to include the transaction code corresponding to the target transaction service within the delay update time, S403; if the system log does not contain the transaction code corresponding to the target transaction service in the delayed updating time, executing S404.
S403: and determining that the refund correction system executes the refund correction operation corresponding to the target transaction service within the delay updating time.
S404: and determining that the refund correction system does not execute the refund correction operation corresponding to the target transaction service within the delay updating time.
In the active budget updating method provided by the embodiment of the invention, after the refund correction system executes refund correction, the relevant information of the refund correction operation process is recorded into a system log. When the background system needs to verify whether refund correction operation occurs to a certain transaction service, acquiring a system log of a refund correction system, inquiring whether the system log contains a transaction code corresponding to the transaction service, and if so, representing that the refund correction system executes the refund correction operation corresponding to the transaction service; otherwise, the refund correcting system is characterized not to execute the refund correcting operation corresponding to the transaction service.
Optionally, the refund system also includes a system log corresponding to the refund system, and is configured to record refund operation information related to each transaction service that has executed the refund operation, and use a transaction code corresponding to the transaction information as an index for querying the refund operation information.
By applying the method provided by the embodiment of the invention, whether the refund correcting system executes the refund correcting operation corresponding to the target transaction service is inquired through the transaction code so as to determine whether the activity budget of the service activity needs to be updated or not, and the excess of the activity budget is avoided.
In the method provided by the embodiment of the invention, in the process of executing the business activity, the total activity budget corresponding to the business activity in the database may be consumed, and the business activity can be temporarily closed in order to avoid the continuous application of the consumer for participating in the activity. Specifically, the process of closing the service activity may include:
detecting whether the total activity budget corresponding to the business activity in the database reaches a preset budget threshold in real time, and closing the business activity when the total activity budget reaches the preset budget threshold.
It will be appreciated that when the activity budget reaches an upper limit, the business activity is shut down.
Furthermore, if the activity budget reaches the budget threshold, the refund system executes the refund operation, and the refund correction system does not execute the refund correction operation within the corresponding delay updating time, the original activity budget needs to be added back, so as to update the database. The business activity may be started after the database is updated to add back the activity budget.
Still further, an activity deadline corresponding to the business activity may be set. Upon reaching the activity deadline, the business activity may be closed.
The specific implementation procedures and derivatives thereof of the above embodiments are within the scope of the present invention.
Corresponding to the method described in fig. 1, an embodiment of the present invention further provides an active budget updating apparatus, which is used for implementing the method in fig. 1 specifically, the active budget updating apparatus 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 active budget updating apparatus is shown in fig. 5, and specifically includes:
the determining unit 501 is configured to determine a business activity involved by a target transaction service when a transaction refund request corresponding to the target transaction service sent by a terminal to a refund system is detected;
a first obtaining unit 502, configured to obtain a transaction code corresponding to the target transaction service in the transaction refund request;
a setting unit 503, configured to set a delay updating time of an activity budget corresponding to the business activity based on the transaction code;
a detecting unit 504, configured to detect whether a preset refund correcting system executes a refund correcting operation corresponding to the target transaction service within the delay updating time;
a cancellation operation unit 505, configured to not update the activity budget of the business activity if the refund reversal system executes the refund reversal operation corresponding to the transaction code within the delay updating time;
an updating unit 506, configured to, if the refund reversal system does not execute the refund reversal operation corresponding to the transaction code within the delay updating time, obtain a target activity budget corresponding to the business activity included in the transaction refund request, and update a total activity budget corresponding to the business activity in a preset database based on the target activity budget.
In the activity budget updating device provided by the embodiment of the invention, when a transaction refund request corresponding to a target transaction service sent by a terminal to a refund system is detected, the service activity participated by the target transaction service is determined, and a transaction code corresponding to the target transaction service is acquired. And when the refund system receives the transaction refund request, executing corresponding refund operation according to the request. And in order to prevent refund and correction in subsequent needs, the background system sets the delay updating time of the activity budget corresponding to the business activity according to the transaction code. And after the delay updating time, determining whether the activity budget corresponding to the service interaction needs to be updated, specifically, detecting whether a refund correction system executes refund correction operation corresponding to the target transaction service within the delay updating time. If not, the activity budget does not need to be updated; if so, acquiring a target activity budget corresponding to the business activity contained in the refund transaction request, and updating the total activity budget of the business activity according to the target activity budget.
By applying the device provided by the embodiment of the invention, the active budget can be effectively controlled, and the excess of the active budget can be prevented.
The device provided by the embodiment of the invention further comprises:
the second acquisition unit is used for acquiring the transaction information corresponding to the target transaction service;
the generating unit is used for generating a transaction code corresponding to the target transaction service based on the transaction information;
the sending unit is used for sending the transaction information and the transaction code to the refund system and triggering each refund server in the refund system to generate the maximum refund time corresponding to the target transaction service based on the transaction information and the transaction code; the refund system comprises a plurality of refund servers, wherein different refund service operations are executed among the refund servers, the maximum refund time corresponding to each server is the longest operation time required by the refund server to execute the refund service operation corresponding to the refund server based on the transaction information and the transaction code;
and the storage unit is used for receiving each maximum refund time sent by the refund system, and associating and storing each maximum refund time and the transaction code. In the apparatus provided in the embodiment of the present invention, the setting unit 503 includes:
the acquisition subunit is used for acquiring each maximum refund time associated with the transaction code;
and the calculating subunit is used for calculating the time difference between the maximum refund times and setting the time difference as the delay updating time of the activity budget corresponding to the business activity.
In the apparatus provided in the embodiment of the present invention, the detecting unit 504 includes:
the monitoring subunit is used for monitoring the system log of the refund reversal system;
the inquiring subunit is used for inquiring whether the system log contains a transaction code corresponding to the target transaction service in real time within the delay updating time;
a first determining subunit, configured to determine that the refund reimbursement system has executed the refund reimbursement operation corresponding to the target transaction service within the delayed update time if the system log is queried to include the transaction code corresponding to the target transaction service within the delayed update time;
and a second determining subunit, configured to determine that the refund reimbursement system does not execute the refund reimbursement operation corresponding to the target transaction service within the delayed update time if the system log does not contain the transaction code corresponding to the target transaction service within the delayed update time.
The device provided by the embodiment of the invention further comprises:
and the closing unit is used for detecting whether the total activity budget corresponding to the business activity in the database reaches a preset budget threshold in real time, and closing the business activity when the total activity budget reaches the preset budget threshold.
The specific working processes of each unit and sub-unit in the active budget updating apparatus disclosed in the above embodiment of the present invention may refer to corresponding contents in the active budget updating method disclosed in the above embodiment of the present invention, and are not described herein again.
The embodiment of the present invention further provides a storage medium, where the storage medium includes a stored instruction, and when the instruction runs, the device where the storage medium is located is controlled to execute the active budget updating method.
An electronic device is provided in an embodiment of the present invention, and the structural diagram of the electronic device is shown in fig. 6, which specifically includes a memory 601 and one or more instructions 602, where the one or more instructions 602 are stored in the memory 601 and configured to be executed by one or more processors 603 to perform the following operations on the one or more instructions 602:
when a transaction refund request corresponding to a target transaction service sent to a refund system by a terminal is detected, determining a service activity participated by the target transaction service;
acquiring a transaction code corresponding to the target transaction service in the transaction refund request;
setting a delay updating time of an activity budget corresponding to the business activity based on the transaction code;
detecting whether a preset refund correction system executes refund correction operation corresponding to the target transaction service within the delay updating time or not;
if the refund correcting system executes the refund correcting operation corresponding to the transaction code within the delay updating time, the activity budget of the business activity is not updated;
if the refund correcting system does not execute the refund correcting operation corresponding to the transaction code within the delay updating time, acquiring a target activity budget corresponding to the business activity contained in the transaction refund request, and updating a total activity budget corresponding to the business activity in a preset database based on the target activity budget.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the system or system embodiments are substantially similar to the method embodiments and therefore are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described system and system embodiments are only illustrative, wherein the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both.
To clearly illustrate this interchangeability of hardware and software, various illustrative components and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. An activity budget updating method, comprising:
when a transaction refund request corresponding to a target transaction service sent to a refund system by a terminal is detected, determining a service activity participated by the target transaction service;
acquiring a transaction code corresponding to the target transaction service in the transaction refund request;
setting a delay updating time of an activity budget corresponding to the business activity based on the transaction code;
detecting whether a preset refund correction system executes refund correction operation corresponding to the target transaction service within the delay updating time or not;
if the refund correcting system executes the refund correcting operation corresponding to the transaction code within the delay updating time, the activity budget of the business activity is not updated;
if the refund correcting system does not execute the refund correcting operation corresponding to the transaction code within the delay updating time, acquiring a target activity budget corresponding to the business activity contained in the transaction refund request, and updating a total activity budget corresponding to the business activity in a preset database based on the target activity budget.
2. The method of claim 1, wherein before detecting a transaction refund request corresponding to a target transaction service sent by the terminal to the refund system, further comprising:
acquiring transaction information corresponding to the target transaction service;
generating a transaction code corresponding to the target transaction service based on the transaction information;
sending the transaction information and the transaction code to the refund system, and triggering each refund server in the refund system to generate the maximum refund time corresponding to the target transaction service based on the transaction information and the transaction code; the refund system comprises a plurality of refund servers, wherein different refund service operations are executed among the refund servers, the maximum refund time corresponding to each server is the longest operation time required by the refund server to execute the refund service operation corresponding to the refund server based on the transaction information and the transaction code;
and receiving each maximum refund time sent by the refund system, and associating and storing each maximum refund time and the transaction code.
3. The method of claim 2, wherein setting a delayed update time of an activity budget corresponding to the business activity based on the transaction code comprises:
acquiring each maximum refund time associated with the transaction code;
and calculating the time difference between the maximum refund times, and setting the time difference as the delay updating time of the activity budget corresponding to the business activity.
4. The method according to claim 3, wherein the detecting whether the preset refund reimbursement system executes the refund reimbursement for the target transaction service within the delay updating time comprises:
monitoring a system log of the refund reversal system;
in the delay updating time, inquiring whether the system log contains a transaction code corresponding to the target transaction service in real time;
if the system log is inquired to contain the transaction code corresponding to the target transaction service within the delay updating time, determining that the refund reimbursement system executes the refund reimbursement operation corresponding to the target transaction service within the delay updating time;
if the system log does not contain the transaction code corresponding to the target transaction service in the delayed updating time, determining that the refund reimbursement system does not execute the refund reimbursement operation corresponding to the target transaction service in the delayed updating time.
5. The method of claim 1, further comprising:
detecting whether the total activity budget corresponding to the business activity in the database reaches a preset budget threshold in real time, and closing the business activity when the total activity budget reaches the preset budget threshold.
6. An active budget updating apparatus, comprising:
the system comprises a determining unit, a refund processing unit and a refund processing unit, wherein the determining unit is used for determining business activities participated by a target transaction business when a transaction refund request corresponding to the target transaction business sent to a refund system by a terminal is detected;
the first acquisition unit is used for acquiring a transaction code corresponding to the target transaction service in the transaction refund request;
the setting unit is used for setting the delay updating time of the activity budget corresponding to the business activity based on the transaction code;
the detection unit is used for detecting whether a preset refund correction system executes refund correction operation corresponding to the target transaction service within the delay updating time or not;
a cancellation operation unit, configured to not update the activity budget of the business activity if the refund reversal system executes the refund reversal operation corresponding to the transaction code within the delay update time;
and the updating unit is used for acquiring a target activity budget corresponding to the business activity contained in the transaction refund request if the refund reversal system does not execute the refund reversal operation corresponding to the transaction code within the delay updating time, and updating a total activity budget corresponding to the business activity in a preset database based on the target activity budget.
7. The apparatus of claim 6, further comprising:
the second acquisition unit is used for acquiring the transaction information corresponding to the target transaction service;
the generating unit is used for generating a transaction code corresponding to the target transaction service based on the transaction information;
the triggering unit is used for sending the transaction information and the transaction code to the refund system and triggering each refund server in the refund system to generate the maximum refund time corresponding to the target transaction service based on the transaction information and the transaction code; the refund system comprises a plurality of refund servers, wherein different refund service operations are executed among the refund servers, the maximum refund time corresponding to each server is the longest operation time required by the refund server to execute the refund service operation corresponding to the refund server based on the transaction information and the transaction code;
and the storage unit is used for receiving each maximum refund time sent by the refund system, and associating and storing each maximum refund time and the transaction code.
8. The apparatus of claim 7, wherein the setting unit comprises:
the acquisition subunit is used for acquiring each maximum refund time associated with the transaction code;
and the calculating subunit is used for calculating the time difference between the maximum refund times and setting the time difference as the delay updating time of the activity budget corresponding to the business activity.
9. The apparatus of claim 8, wherein the detection unit comprises:
the monitoring subunit is used for monitoring the system log of the refund reversal system;
the inquiring subunit is used for inquiring whether the system log contains a transaction code corresponding to the target transaction service in real time within the delay updating time;
a first determining subunit, configured to determine that the refund reimbursement system has executed the refund reimbursement operation corresponding to the target transaction service within the delayed update time if the system log is queried to include the transaction code corresponding to the target transaction service within the delayed update time;
and a second determining subunit, configured to determine that the refund reimbursement system does not execute the refund reimbursement operation corresponding to the target transaction service within the delayed update time if the system log does not contain the transaction code corresponding to the target transaction service within the delayed update time.
10. The apparatus of claim 6, further comprising:
and the closing unit is used for detecting whether the total activity budget corresponding to the business activity in the database reaches a preset budget threshold in real time, and closing the business activity when the total activity budget reaches the preset budget threshold.
CN202110789513.5A 2021-07-13 2021-07-13 Active budget updating method and device Pending CN113450160A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110789513.5A CN113450160A (en) 2021-07-13 2021-07-13 Active budget updating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110789513.5A CN113450160A (en) 2021-07-13 2021-07-13 Active budget updating method and device

Publications (1)

Publication Number Publication Date
CN113450160A true CN113450160A (en) 2021-09-28

Family

ID=77815997

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110789513.5A Pending CN113450160A (en) 2021-07-13 2021-07-13 Active budget updating method and device

Country Status (1)

Country Link
CN (1) CN113450160A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI797875B (en) * 2021-12-07 2023-04-01 玉山商業銀行股份有限公司 System and method for account management

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102529A (en) * 2007-07-25 2008-01-09 中国移动通信集团福建有限公司 Receiving and transmitting method and device for electronic return receipt
US20140297488A1 (en) * 2012-09-11 2014-10-02 MonyDesktop, Inc. Method for handling refunds in a budgeting system
CN108108438A (en) * 2017-12-20 2018-06-01 深圳市恒腾网络有限公司 The recognition methods of behavioral data and device
JP2018190204A (en) * 2017-05-08 2018-11-29 ノーステックテレコム株式会社 Electronic coupon system
CN109784991A (en) * 2019-01-04 2019-05-21 深圳壹账通智能科技有限公司 Electronic ticket settlement method, system, computer equipment and storage medium
CN110852866A (en) * 2019-08-05 2020-02-28 中国银联股份有限公司 Method, apparatus, and storage medium for managing a plurality of resources
CN112465528A (en) * 2020-12-14 2021-03-09 马卓 Digital commodity unsubscribe processing method, device, equipment and storage medium
CN113077256A (en) * 2021-03-31 2021-07-06 中国建设银行股份有限公司 Transaction processing method and device, computer equipment and computer-readable storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102529A (en) * 2007-07-25 2008-01-09 中国移动通信集团福建有限公司 Receiving and transmitting method and device for electronic return receipt
US20140297488A1 (en) * 2012-09-11 2014-10-02 MonyDesktop, Inc. Method for handling refunds in a budgeting system
JP2018190204A (en) * 2017-05-08 2018-11-29 ノーステックテレコム株式会社 Electronic coupon system
CN108108438A (en) * 2017-12-20 2018-06-01 深圳市恒腾网络有限公司 The recognition methods of behavioral data and device
CN109784991A (en) * 2019-01-04 2019-05-21 深圳壹账通智能科技有限公司 Electronic ticket settlement method, system, computer equipment and storage medium
CN110852866A (en) * 2019-08-05 2020-02-28 中国银联股份有限公司 Method, apparatus, and storage medium for managing a plurality of resources
CN112465528A (en) * 2020-12-14 2021-03-09 马卓 Digital commodity unsubscribe processing method, device, equipment and storage medium
CN113077256A (en) * 2021-03-31 2021-07-06 中国建设银行股份有限公司 Transaction processing method and device, computer equipment and computer-readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI797875B (en) * 2021-12-07 2023-04-01 玉山商業銀行股份有限公司 System and method for account management

Similar Documents

Publication Publication Date Title
US11436603B2 (en) Decision making for on-line transactions
US8051007B2 (en) Method and system to facilitate a payment in satisfaction of accumulated micropayment commitments to a vendor
JP5673902B1 (en) Payment system, server device, terminal device, method, and program
CN109509081A (en) Accrediting amount data processing method, device, computer equipment and storage medium
CA2796583A1 (en) Mobile device rebate system
CN109285069B (en) Resource transfer method, device and server
AU2020201684B2 (en) Method of processing a transaction request
US9652752B2 (en) Dynamic network timeout tuning
US10275812B2 (en) Method and apparatus for denying a transaction detected to be initiated outside of a required application on an endpoint device
CN109472574A (en) Method of payment, device, computer equipment and storage medium
TW201601082A (en) Processing electronic payments using at least two payment tools for a transaction
US9996600B1 (en) Asynchronous communication of transaction data to clients
CN110942393B (en) Transaction processing method and device based on main account and sub account, and electronic equipment
CN113450160A (en) Active budget updating method and device
CN111415146A (en) Resource data processing method, device and equipment
CN115423480A (en) Payment method and system based on financial products
CN111640022A (en) Counter transaction authorization method, device and system
US11887143B2 (en) Record management system for enabling access to a record
US11750465B2 (en) Message management system for adjusting a transmission of a scheduled message
US20230259533A1 (en) Resource distribution instruments comprising logical digital resource components linked with processing of distribution requests
US20210049702A1 (en) Retirement plan creation and guarantee
Halim et al. Estimation of Reserve Funds for E-Banking Transactions using Operational Value-at-Risks
CN114331657A (en) Resource transfer method, system, computer device and storage medium
US20170236207A1 (en) Systems and methods for operating a physical model simulating a comparative assessment of resources
US12002076B1 (en) Method, computer-readable media, and system for transaction data generation with varying fidelity

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