CN116258556A - Method, device, electronic equipment and storage medium for processing business data - Google Patents

Method, device, electronic equipment and storage medium for processing business data Download PDF

Info

Publication number
CN116258556A
CN116258556A CN202310261023.7A CN202310261023A CN116258556A CN 116258556 A CN116258556 A CN 116258556A CN 202310261023 A CN202310261023 A CN 202310261023A CN 116258556 A CN116258556 A CN 116258556A
Authority
CN
China
Prior art keywords
order
refund
service
sub
service item
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
CN202310261023.7A
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.)
China Construction Bank Corp
CCB Finetech Co Ltd
Original Assignee
China Construction Bank Corp
CCB Finetech 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 China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202310261023.7A priority Critical patent/CN116258556A/en
Publication of CN116258556A publication Critical patent/CN116258556A/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/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing
    • G06Q30/0635Processing of requisition or of purchase orders
    • 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/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/407Cancellation of a transaction

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Computer Security & Cryptography (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a method, a device, electronic equipment and a storage medium for processing business data, and relates to the technical field of computers. One embodiment of the method comprises the following steps: responding to a refund request of an order, and acquiring a corresponding order identifier to split the order into sub-orders; inquiring a service identifier corresponding to the sub-order to acquire each service item of the corresponding service account in a preset time period, so as to be matched with a preset service item set, and determining the corresponding amount of the successfully matched service item; obtaining refund information of the sub order, and executing refund verification of the service account based on the amount and refund information corresponding to the successfully matched service item; and executing the refund program of the sub-order through the business account in response to the verification result being that the verification is passed. According to the method and the system for processing the business data, the problems that after the main order is paid, when some sub orders need refund, payment is needed through payment of other businesses, business data processing is responsible and the processing efficiency of the business data is reduced can be solved.

Description

Method, device, electronic equipment and storage medium for processing business data
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, an electronic device, and a storage medium for processing service data.
Background
In the service processing, parallel payment is a common payment mode, and the mode usually combines a plurality of sub orders into a main order to carry out payment processing, so the parallel payment of the service order is carried out on an account corresponding to the dimension of the main order, and then after the payment is completed, the payment of the main order can be divided into the accounts of the dimension of each sub order through a clear distribution mode. However, in some scenarios, after the payment of the main order is completed, when some sub orders need refund, the payment of the main order is not divided into accounts of sub order dimensions through the clearing mode, so that refund needs to be paid through the payment of other services, thereby easily leading to responsible service data processing and reducing the processing efficiency of service data.
Disclosure of Invention
In view of this, the embodiments of the present invention provide a method, an apparatus, an electronic device, and a storage medium for processing service data, which can solve the problem that after a main order finishes paying, when some sub orders need refund, payment needs to be performed through paying of other services, which easily results in responsible service data processing and reduces service data processing efficiency.
To achieve the above object, according to one aspect of the embodiments of the present invention, there is provided a method for processing service data.
The method for processing the service data comprises the following steps: responding to a refund request of an order, and acquiring a corresponding order identifier to split the order into sub-orders;
inquiring a service identifier corresponding to the sub-order to acquire each service item of a corresponding service account in a preset time period, so as to be matched with a preset service item set, and determining the amount corresponding to the successfully matched service item;
obtaining refund information of the sub order, and executing refund verification of the service account based on the amount corresponding to the successfully matched service item and the refund information;
and responding to the verification result as verification passing, and executing the refund program of the sub-order through the service account.
In one embodiment, the preset service item set includes a service item standard array;
the determining the amount corresponding to the successfully matched service item according to the matching with the preset service item set comprises the following steps:
acquiring each service item in the preset time period, calling a preset template to generate a service item array so as to be matched with the service item standard array, and determining the successfully matched service item;
and acquiring the amount type and the amount value of the successfully matched service item to calculate the amount corresponding to the successfully matched service item.
In yet another embodiment, performing refund verification of the business account based on the account information and the refund information includes:
determining refund amount of the sub order based on the refund information to compare with the amount corresponding to the matching successful service item;
responding to the fact that the amount corresponding to the successful service item is larger than or equal to the refund amount, and determining that the verification result of the service account is verification passing; and determining that the verification result of the service account is that the verification is not passed in response to that the amount corresponding to the successfully matched service item is smaller than the refund amount.
In yet another embodiment, the obtaining the corresponding order identifier to split into sub-orders includes:
and obtaining refund order information from the refund request to extract a corresponding order identification set, and identifying sub-order identifications from the order identification set based on preset identification keywords to determine corresponding sub-orders.
In yet another embodiment, before querying the service item of the service account for a preset period of time based on the account information, the method further includes:
inquiring the balance of a corresponding service account based on the service identifier, and acquiring refund amount of the sub-order;
and executing a refund procedure of the sub-order through the service account in response to the balance being greater than or equal to the refund amount.
In yet another embodiment, after executing the refund procedure of the sub-order through the business account, further comprising:
and in response to successful refund of the sub-order, obtaining refund detail data of the sub-order to generate a refund detail list, and synchronizing the refund detail list to a clearing system.
In yet another embodiment, the method further comprises:
receiving an order payment processing instruction, acquiring a corresponding order identifier and payment information, executing a payment program corresponding to the order identifier, and triggering a clearing instruction of the order;
and responding to the clearing instruction of the order, acquiring a sub order included in the order, and inquiring a corresponding service account and a service item to execute a clearing procedure.
To achieve the above object, according to another aspect of an embodiment of the present invention, there is provided an apparatus for processing service data.
The device for processing the service data comprises the following components: the obtaining unit is used for responding to the refund request of the order, obtaining a corresponding order mark and splitting the corresponding order mark into at least one sub order;
the determining unit is used for inquiring the service identifier corresponding to the sub-order to acquire each service item of the corresponding service account in a preset time period so as to be matched with a preset service item set, and determining the amount corresponding to the successfully matched service item;
the checking unit is used for acquiring refund information of the sub order so as to execute refund checking of the service account based on the amount corresponding to the successful service item and the refund information;
and the refund unit is used for executing the refund program of the sub-order through the service account in response to the verification result being that the verification is passed.
In one embodiment, the preset service item set includes a service item standard array;
the determining unit is specifically configured to:
acquiring each service item in the preset time period, calling a preset template to generate a service item array so as to be matched with the service item standard array, and determining the successfully matched service item;
and acquiring the amount type and the amount value of the successfully matched service item to calculate the amount corresponding to the successfully matched service item.
In a further embodiment, the verification unit is specifically configured to:
determining refund amount of the sub order based on the refund information to compare with the amount corresponding to the matching successful service item;
responding to the fact that the amount corresponding to the successful service item is larger than or equal to the refund amount, and determining that the verification result of the service account is verification passing; and determining that the verification result of the service account is that the verification is not passed in response to that the amount corresponding to the successfully matched service item is smaller than the refund amount.
In a further embodiment, the acquiring unit is specifically configured to:
and obtaining refund order information from the refund request to extract a corresponding order identification set, and identifying sub-order identifications from the order identification set based on preset identification keywords to determine corresponding sub-orders.
In yet another embodiment, the obtaining unit is further configured to query a balance of a corresponding service account based on the service identifier, and obtain a refund amount of the sub-order;
and the refund unit is further used for executing the refund program of the sub-order through the service account in response to the balance being greater than or equal to the refund amount.
In yet another embodiment, the apparatus further comprises:
and the generation unit is used for responding to successful refund of the sub order, acquiring refund detail data of the sub order to generate a refund detail list, and synchronizing the refund detail list to a clearing system.
In yet another embodiment, the apparatus further comprises:
the triggering unit is used for receiving an order payment processing instruction, acquiring a corresponding order identifier and payment information, executing a payment program corresponding to the order identifier, and triggering a clearing instruction of the order;
and the clearing unit is used for responding to the clearing instruction of the order, acquiring the sub-order included in the order, and inquiring the corresponding service account and service item so as to execute the clearing process.
To achieve the above object, according to still another aspect of an embodiment of the present invention, there is provided an electronic apparatus.
An electronic device according to an embodiment of the present invention includes: one or more processors; and the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors are enabled to realize the method for processing the service data provided by the embodiment of the invention.
To achieve the above object, according to still another aspect of an embodiment of the present invention, a computer-readable medium is provided.
A computer readable medium of an embodiment of the present invention stores a computer program thereon, which when executed by a processor implements a method for processing service data provided by the embodiment of the present invention.
To achieve the above object, according to still another aspect of an embodiment of the present invention, there is provided a computer program product.
A computer program product of an embodiment of the present invention includes a computer program that, when executed by a processor, implements a method for processing service data provided by the embodiment of the present invention.
One embodiment of the above invention has the following advantages or benefits: in the embodiment of the invention, when receiving a refund request of an order, a corresponding order mark can be acquired firstly to split a sub order needing refund, then each service item of a corresponding service account in a preset time period can be acquired to be matched with a preset service item set, and the successfully matched service item is determined, namely, the service item with the change of the amount of the service account is determined, so that the available amount corresponding to the service account can be determined; the service account can be checked through the available amount and refund information, and if the check passes, the refund can be carried out on the sub-order, namely, the refund program of the sub-order is executed. In the embodiment of the invention, for the refund sub-order, the amount of the corresponding service account can be predetermined through the service item, refund verification is carried out by combining refund information, and after refund can be carried out on the sub-order, the refund flow is carried out on the sub-order, so that refund can be carried out through the service account of the sub-order, the problem of responsible service data processing caused by refund payment carried out through other service payment is avoided, and the processing efficiency of service data is improved.
Further effects of the above-described non-conventional alternatives are described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is a schematic diagram of one main flow of a method of traffic data processing according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of yet another main flow of a method of traffic data processing according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of yet another main flow of a method of traffic data processing according to an embodiment of the present invention;
fig. 4 is a schematic diagram of main units of an apparatus for service data processing according to an embodiment of the present invention;
FIG. 5 is an exemplary system architecture diagram in which embodiments of the present invention may be applied;
FIG. 6 is a schematic diagram of a computer system suitable for use in implementing embodiments of the present invention.
Detailed Description
Exemplary embodiments of the present invention will now be described with reference to the accompanying drawings, in which various details of the embodiments of the present invention are included to facilitate understanding, and are to be considered merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
It is noted that embodiments of the invention and features of the embodiments may be combined with each other without conflict. The data acquisition, storage, use, processing and the like in the technical scheme meet the relevant regulations of national laws and regulations.
The embodiment of the invention provides a service data processing system which can be used for processing service payment and refund data.
An embodiment of the present invention provides a method for processing service data, which may be performed by a service data processing system, as shown in fig. 1, and includes:
s101: and responding to the refund request of the order, and acquiring a corresponding order identifier to split the order into sub-orders.
The refund request of the order may be input by an external system, and refund information may be included in the refund request. Because the embodiment of the invention can pay the service order through a parallel payment mode, the proposed method can also return the order through a parallel mode, and therefore, the list for requesting refund can comprise one or more sub-orders.
Specifically, in the embodiment of the present invention, refund information is included in the refund request, and order information needing refund, such as refund order identifier, refund amount, refund service item, etc., may be reported in the refund information. If the refund is a sub-order, the refund order identification can comprise the sub-order identification required to refund, and the sub-order identification can be identified based on the identification keyword of the sub-order in the step, so as to determine the sub-order required to refund; if the refund order is a complete main order, that is, all the sub orders included in the main order are refund, the refund identifier may include a main order identifier, and in this step, identification may be performed based on the identifier keyword of the main order, so that the sub orders included in the main order are queried after the main order is identified, so as to determine the sub orders that need refund.
It should be noted that, in the embodiment of the present invention, the order identifier may be generated based on a preset keyword, that is, corresponding identifier keywords are set for the main order and the sub order, so the identifier keywords preset in this step may include the identifier keywords of the main order and the identifier keywords of the sub order, and further, the order identifier in the order identifier set may be identified. In this step
S102: inquiring the service identifier corresponding to the sub-order to acquire each service item of the corresponding service account in a preset time period, so as to be matched with a preset service item set, and determining the corresponding amount of the successfully matched service item.
In the embodiment of the invention, each business order can be thinned to the dimensions of a merchant and a merchant counter, and corresponding accounts are set for each merchant counter, so that when payment is performed, the dimension of the merchant can be determined as a main order, the dimension of the merchant counter can be determined as a sub-order, each sub-order can correspond to one account, corresponding business identifications can be set for the sub-orders based on the merchant counter, and a mapping relation between the business identifications and the merchant counter is established, and therefore, the business identifications corresponding to the orders can be queried in the step, and the corresponding business accounts can be obtained.
In the embodiment of the invention, corresponding location items can be set for different business processes of the account so as to represent the types of the business processes, for example, the business items for order payment can be payment, the business items for order refund can be refund and the like. Since the amount of the account can be processed based on the preset period in general, this step can acquire service items in the preset period to represent each service item processed on the account in the current preset period. Because some business items for account processing have no influence on the account amount, in the step, the business item which has influence on the account amount can be determined from all business items in a preset time period based on a preset business item set, namely, all business items in the preset time period are matched with the preset business item set, and the preset business item set can comprise the business item which has influence on the account amount, so that the business item which has successful matching in the step can be expressed as the business item which has influence on the account amount of the sub-order. Therefore, after the successfully matched service items are determined, the corresponding amount of the successfully matched service items can be calculated to represent the current amount of the account corresponding to the sub-order.
Specifically, the preset service item set includes a service item standard array, that is, elements in the service item standard array represent service items processed on an account, where each service item corresponds to an element in the service item standard array one by one according to a preset sequence, a value of serious correspondence of a service item affecting an account amount may be a first value, and a value of serious correspondence of a service item not affecting the account amount may be a second value, for example, the first value may be 1, and the second value may be 0. In this step, a preset template is called to generate a service item array, the preset template is determined based on a service item standard array, the number of elements included in the preset template is the same, when the service volume array is generated, according to the arrangement sequence of each service item corresponding to each element in the service item standard array, the value of each element corresponding to each service item in a preset time period is determined to be 1, and the value of the remaining elements is determined to be 0, so that the successfully matched service item can be determined by intersecting the service item standard array with the service item array.
For each service item in the preset time period, a corresponding amount type and a corresponding amount value can be acquired, the amount type can comprise an increased amount and a decreased amount, the increased amount represents the service item for increasing the amount in the account, the decreased amount represents the service item for decreasing the amount in the account, and then the preset template can be called to generate a service item array. The preset template is preset, wherein "+" can be used for indicating the type of the added amount, "-" can be used for indicating the type of the reduced amount, the business-oriented credit limit value indicates the credit limit value of the business-oriented processing to the account, and the corresponding amount of the business item successfully matched can be calculated based on the type of the amount and the credit limit value.
S103: and obtaining refund information of the sub order so as to execute refund verification of the service account based on the amount and refund information corresponding to the successfully matched service item.
The refund information of each sub order can be determined through the refund request, and then the refund amount can be determined, so that refund verification of the service account can be executed based on the refund amount and the amount corresponding to the successfully matched service item in the step.
In order to avoid using other business to pay when processing the refund of the sub-order, therefore check the refund of the business account in this step, namely confirm whether the amount in the account corresponding to the sub-order can meet the refund amount of this sub-order, if can meet, can confirm that checks are successful; if not, a verification failure may be determined. The present step can be specifically performed as: determining refund amount of the sub-order based on the refund information to compare with an amount corresponding to the matched successful business item; responding to the fact that the amount corresponding to the successfully matched service item is larger than or equal to the refund amount, and determining that the verification result of the service account is verification passing; and determining that the verification result of the service account is that the verification is not passed in response to that the amount corresponding to the successfully matched service item is smaller than the refund amount.
S104: and executing the refund program of the sub-order through the business account in response to the verification result being that the verification is passed.
The checking result is that checking is passed, which means that the account of the sub-order can meet the refund requirement of the sub-order, so in this step, in response to the checking result being that checking is passed, the refund program of the sub-order is executed through the service account, that is, refund is performed on the sub-order. When the verification result is that verification is passed, the account compensation of the sub order can meet the refund requirement of the sub order, so that refund failure of the sub order can be determined.
It should be noted that, in the embodiment of the present invention, under the condition that the balance of the account corresponding to the sub-order can be updated in time, the account can be checked directly based on the balance and refund amount of the account, that is, after the service identifier is obtained in step S10, the balance of the corresponding service account can be queried based on the service identifier, and the refund amount of the sub-order is obtained, so that the balance and refund amount are compared. If the balance is smaller than the refund amount, the account verification is not passed, and refund of the sub-order fails; if the balance is greater than or equal to the refund amount, the account verification is passed, and the refund procedure of the sub-order can be executed through the service account.
In the embodiment of the invention, after the refund of the sub-order is successful, the refund detail list can be generated based on the refund detail data of the sub-order, and then the refund detail list can be synchronized to the clearing system, so that the clearing system can conveniently conduct business data archiving and other processing on the sub-order and the account of the sub-order. The refund statement may be generated in a pre-configured manner.
In the embodiment of the present invention, before executing step S101, a processing instruction of order payment, that is, executing order payment, may be further received, so after receiving the processing instruction of order payment, an order identifier and payment information corresponding to the processing instruction may be obtained, where the order identifier indicates which order is to be paid, and the payment information indicates information required for executing payment, such as a payment account, a payment amount, etc., so that the order identifier and payment information are used to execute a payment program corresponding to the order identifier, and at the same time, a clearing instruction of the order may be triggered after the payment is completed. The clearing instruction may be triggered after the payment is successful, or may be triggered at a fixed time, which is not limited in the embodiment of the present invention. After the clearing instruction of the order is triggered, the sub-order included in the order can be obtained, and then the clearing process is executed based on the service account and the service item corresponding to the sub-order.
In the embodiment of the invention, for the refund sub-order, the amount of the corresponding service account can be predetermined through the service item, refund verification is carried out by combining refund information, and after refund can be carried out on the sub-order, the refund flow is carried out on the sub-order, so that refund can be carried out through the service account of the sub-order, the problem of responsible service data processing caused by refund payment carried out through other service payment is avoided, and the processing efficiency of service data is improved.
The method for processing service data in the embodiment of the present invention is specifically described below with reference to the embodiment shown in fig. 1, and as shown in fig. 2, the method includes:
s201: and responding to the refund request of the order, and acquiring a corresponding order identifier to split the order into sub-orders.
S202: inquiring the service identifier corresponding to the sub-order to acquire each service item of the corresponding service account in a preset time period.
S203: and calling a preset template to generate a service item array so as to be matched with the service item standard array, and determining the successfully matched service item.
S204: and acquiring the amount type and the amount value of the successfully matched service item to calculate the amount corresponding to the successfully matched service item.
S205: and obtaining refund information of the sub order so as to execute refund verification of the service account based on the amount and refund information corresponding to the successfully matched service item.
S206: and executing the refund program of the sub-order through the business account in response to the verification result being that the verification is passed.
S207: and responding to the verification result that the verification is not passed, and determining refund failure of the sub order.
It should be noted that the principle of data processing in the embodiment of the present invention is the same as the corresponding principle of data processing in the embodiment shown in fig. 1, and will not be described herein.
The method for processing service data in the embodiment of the present invention is specifically described below with reference to the embodiment shown in fig. 1, and as shown in fig. 3, the method includes:
s301: and responding to the refund request of the order, and acquiring a corresponding order identifier to split the order into sub-orders.
S302: inquiring service identifiers corresponding to the sub orders, inquiring balance of corresponding service accounts based on the service identifiers, and obtaining refund amount of the sub orders.
S303: the refund amount of the child order is obtained.
S304: judging whether the balance is smaller than the refund amount, if yes, executing step S306; if not, step S305 is performed.
S305: and executing the refund program of the sub-order through the business account.
S306: a refund failure for the sub-order is determined.
It should be noted that the principle of data processing in the embodiment of the present invention is the same as the corresponding principle of data processing in the embodiment shown in fig. 1, and will not be described herein.
In order to solve the problems existing in the prior art, an embodiment of the present invention provides a device 400 for processing service data, as shown in fig. 4, the device 400 includes:
an obtaining unit 401, configured to obtain a corresponding order identifier in response to a refund request of an order, so as to split the order into sub-orders;
a determining unit 402, configured to query a service identifier corresponding to the sub-order, so as to obtain each service item of the corresponding service account in a preset time period, to match with a preset service item set, and determine an amount corresponding to the successfully matched service item;
a verification unit 403, configured to obtain refund information of the sub-order, so as to perform refund verification of the service account based on an amount corresponding to the successfully matched service item and the refund information;
and the refund unit 404 is configured to execute a refund procedure of the sub-order through the service account in response to the verification result being that the verification passes.
It should be understood that the manner of implementing the embodiment of the present invention is the same as that of implementing the embodiment shown in fig. 1, and will not be described herein.
In one embodiment, the preset service item set includes a service item standard array;
the determining unit 402 is specifically configured to:
acquiring each service item in the preset time period, calling a preset template to generate a service item array so as to be matched with the service item standard array, and determining the successfully matched service item;
and acquiring the amount type and the amount value of the successfully matched service item to calculate the amount corresponding to the successfully matched service item.
In yet another embodiment, the verification unit 403 is specifically configured to:
determining refund amount of the sub order based on the refund information to compare with the amount corresponding to the matching successful service item;
responding to the fact that the amount corresponding to the successful service item is larger than or equal to the refund amount, and determining that the verification result of the service account is verification passing; and determining that the verification result of the service account is that the verification is not passed in response to that the amount corresponding to the successfully matched service item is smaller than the refund amount.
In yet another embodiment, the obtaining unit 401 is specifically configured to:
and obtaining refund order information from the refund request to extract a corresponding order identification set, and identifying sub-order identifications from the order identification set based on preset identification keywords to determine corresponding sub-orders.
In yet another embodiment, the obtaining unit 401 is further configured to query a balance of a corresponding service account based on the service identifier, and obtain a refund amount of the sub-order;
and the refund unit is further used for executing the refund program of the sub-order through the service account in response to the balance being greater than or equal to the refund amount.
In yet another embodiment, the apparatus 400 further comprises:
and the generation unit is used for responding to successful refund of the sub order, acquiring refund detail data of the sub order to generate a refund detail list, and synchronizing the refund detail list to a clearing system.
In yet another embodiment, the apparatus 400 further comprises:
the triggering unit is used for receiving an order payment processing instruction, acquiring a corresponding order identifier and payment information, executing a payment program corresponding to the order identifier, and triggering a clearing instruction of the order;
and the clearing unit is used for responding to the clearing instruction of the order, acquiring the sub-order included in the order, and inquiring the corresponding service account and service item so as to execute the clearing process.
It should be understood that the manner of implementing the embodiments of the present invention is the same as that of implementing the embodiments shown in fig. 1, 2 or 3, and will not be described herein.
In the embodiment of the invention, for the refund sub-order, the amount of the corresponding service account can be predetermined through the service item, refund verification is carried out by combining refund information, and after refund can be carried out on the sub-order, the refund flow is carried out on the sub-order, so that refund can be carried out through the service account of the sub-order, the problem of responsible service data processing caused by refund payment carried out through other service payment is avoided, and the processing efficiency of service data is improved.
According to an embodiment of the present invention, an electronic device and a readable storage medium are also provided.
The electronic equipment of the embodiment of the invention comprises: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the one processor, and the instructions are executed by the at least one processor, so that the at least one processor performs the method for processing service data provided by the embodiment of the present invention.
Fig. 5 illustrates an exemplary system architecture 500 of a business data processing method or apparatus to which embodiments of the present invention may be applied.
As shown in fig. 5, the system architecture 500 may include terminal devices 501, 502, 503, a network 504, and a server 505. The network 504 is used as a medium to provide communication links between the terminal devices 501, 502, 503 and the server 505. The network 504 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
A user may interact with the server 505 via the network 504 using the terminal devices 501, 502, 503 to receive or send messages or the like. Various client applications may be installed on the terminal devices 501, 502, 503.
The terminal devices 501, 502, 503 may be, but are not limited to, smartphones, tablets, laptop and desktop computers, and the like.
The server 505 may be a server providing various services, and may perform processing such as analysis on received data such as a product information query request, and feed back processing results (e.g., product information—merely by way of example) to the terminal device.
It should be noted that, the method for processing service data provided in the embodiment of the present invention is generally executed by the server 505, and accordingly, the device for processing service data is generally disposed in the server 505.
It should be understood that the number of terminal devices, networks and servers in fig. 5 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 6, there is illustrated a schematic diagram of a computer system 600 suitable for use in implementing embodiments of the present invention. The computer system shown in fig. 6 is merely an example, and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other through a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, mouse, etc.; an output portion 607 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The drive 610 is also connected to the I/O interface 605 as needed. Removable media 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed as needed on drive 610 so that a computer program read therefrom is installed as needed into storage section 608.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication portion 609, and/or installed from the removable medium 611. The above-described functions defined in the system of the present invention are performed when the computer program is executed by a Central Processing Unit (CPU) 601.
The computer readable medium shown in the present invention may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a unit, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present invention may be implemented in software or in hardware. The described units may also be provided in a processor, for example, described as: a processor includes an acquisition unit, a determination unit, a verification unit, and a refund unit. The names of these units do not constitute a limitation on the unit itself in some cases, and the acquisition unit may also be described as "a unit that identifies an acquisition function", for example.
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be present alone without being fitted into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to perform the method of business data processing provided by the present invention.
As another aspect, the present invention also provides a computer program product, including a computer program, where the program when executed by a processor implements a method for processing service data provided by an embodiment of the present invention.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives can occur depending upon design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (15)

1. A method of traffic data processing, comprising:
responding to a refund request of an order, and acquiring a corresponding order identifier to split the order into sub-orders;
inquiring a service identifier corresponding to the sub-order to acquire each service item of a corresponding service account in a preset time period, so as to be matched with a preset service item set, and determining the amount corresponding to the successfully matched service item;
obtaining refund information of the sub order, and executing refund verification of the service account based on the amount corresponding to the successfully matched service item and the refund information;
and responding to the verification result as verification passing, and executing the refund program of the sub-order through the service account.
2. The method of claim 1, wherein the predetermined set of service items comprises an array of service item criteria;
the determining the amount corresponding to the successfully matched service item according to the matching with the preset service item set comprises the following steps:
acquiring each service item in the preset time period, calling a preset template to generate a service item array so as to be matched with the service item standard array, and determining the successfully matched service item;
and acquiring the amount type and the amount value of the successfully matched service item to calculate the amount corresponding to the successfully matched service item.
3. The method of claim 1, wherein performing refund verification of the business account based on the account information and the refund information comprises:
determining refund amount of the sub order based on the refund information to compare with the amount corresponding to the matching successful service item;
responding to the fact that the amount corresponding to the successful service item is larger than or equal to the refund amount, and determining that the verification result of the service account is verification passing; and determining that the verification result of the service account is that the verification is not passed in response to that the amount corresponding to the successfully matched service item is smaller than the refund amount.
4. The method of claim 1, wherein the obtaining the corresponding order identification to split into sub-orders comprises:
and obtaining refund order information from the refund request to extract a corresponding order identification set, and identifying sub-order identifications from the order identification set based on preset identification keywords to determine corresponding sub-orders.
5. The method of claim 1, further comprising, prior to querying the business account for a business item within a preset period of time based on the account information:
inquiring the balance of a corresponding service account based on the service identifier, and acquiring refund amount of the sub-order;
and executing a refund procedure of the sub-order through the service account in response to the balance being greater than or equal to the refund amount.
6. The method of claim 1, further comprising, after executing the refund procedure for the sub-order through the business account:
and in response to successful refund of the sub-order, obtaining refund detail data of the sub-order to generate a refund detail list, and synchronizing the refund detail list to a clearing system.
7. The method according to claim 1, wherein the method further comprises:
receiving an order payment processing instruction, acquiring a corresponding order identifier and payment information, executing a payment program corresponding to the order identifier, and triggering a clearing instruction of the order;
and responding to the clearing instruction of the order, acquiring a sub order included in the order, and inquiring a corresponding service account and a service item to execute a clearing procedure.
8. An apparatus for processing service data, comprising:
the obtaining unit is used for responding to the refund request of the order, obtaining the corresponding order mark and splitting the order mark into sub-orders;
the determining unit is used for inquiring the service identifier corresponding to the sub-order to acquire each service item of the corresponding service account in a preset time period so as to be matched with a preset service item set, and determining the amount corresponding to the successfully matched service item;
the checking unit is used for acquiring refund information of the sub order so as to execute refund checking of the service account based on the amount corresponding to the successful service item and the refund information;
and the refund unit is used for executing the refund program of the sub-order through the service account in response to the verification result being that the verification is passed.
9. The apparatus of claim 8, wherein the predetermined set of service items comprises an array of service item criteria;
the determining unit is specifically configured to:
acquiring each service item in the preset time period, calling a preset template to generate a service item array so as to be matched with the service item standard array, and determining the successfully matched service item;
and acquiring the amount type and the amount value of the successfully matched service item to calculate the amount corresponding to the successfully matched service item.
10. The apparatus according to claim 9, wherein the verification unit is specifically configured to:
determining refund amount of the sub order based on the refund information to compare with the amount corresponding to the matching successful service item;
responding to the fact that the amount corresponding to the successful service item is larger than or equal to the refund amount, and determining that the verification result of the service account is verification passing; and determining that the verification result of the service account is that the verification is not passed in response to that the amount corresponding to the successfully matched service item is smaller than the refund amount.
11. The apparatus according to claim 8, wherein the acquisition unit is specifically configured to:
and obtaining refund order information from the refund request to extract a corresponding order identification set, and identifying sub-order identifications from the order identification set based on preset identification keywords to determine corresponding sub-orders.
12. The apparatus of claim 8, wherein the obtaining unit is further configured to query a balance of a corresponding service account based on the service identifier, and obtain a refund amount of the sub-order;
and the refund unit is further used for executing the refund program of the sub-order through the service account in response to the balance being greater than or equal to the refund amount.
13. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs,
when executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-7.
14. A computer readable medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any of claims 1-7.
15. A computer program product comprising a computer program, characterized in that the program, when executed by a processor, implements the method according to any of claims 1-7.
CN202310261023.7A 2023-03-17 2023-03-17 Method, device, electronic equipment and storage medium for processing business data Pending CN116258556A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310261023.7A CN116258556A (en) 2023-03-17 2023-03-17 Method, device, electronic equipment and storage medium for processing business data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310261023.7A CN116258556A (en) 2023-03-17 2023-03-17 Method, device, electronic equipment and storage medium for processing business data

Publications (1)

Publication Number Publication Date
CN116258556A true CN116258556A (en) 2023-06-13

Family

ID=86687917

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310261023.7A Pending CN116258556A (en) 2023-03-17 2023-03-17 Method, device, electronic equipment and storage medium for processing business data

Country Status (1)

Country Link
CN (1) CN116258556A (en)

Similar Documents

Publication Publication Date Title
CN107302597B (en) Message file pushing method and device
CN112527649A (en) Test case generation method and device
CN109873863B (en) Asynchronous calling method and device of service
CN108933695B (en) Method and apparatus for processing information
CN110706093A (en) Accounting processing method and device
CN111460129A (en) Method and device for generating identification, electronic equipment and storage medium
CN111861745B (en) Service wind control method and device
CN114281663A (en) Test processing method, test processing device, electronic equipment and storage medium
CN111159211A (en) Order information generation method, device and system, computer equipment and storage medium
CN111126935A (en) Processing method and device of security data, electronic equipment and storage medium
CN116258556A (en) Method, device, electronic equipment and storage medium for processing business data
CN114722108A (en) Customer service data processing method and device, electronic equipment and storage medium
CN112131257B (en) Data query method and device
CN114817347A (en) Business approval method and device, electronic equipment and storage medium
CN113704222A (en) Method and device for processing service request
CN111210349A (en) Virtual asset transfer hosting method and device, electronic equipment and storage medium
CN113268417B (en) Task execution method and device
CN109376023B (en) Method and equipment for generating calling information and issuing return code group
CN110661792B (en) Service ordered calling method and device, electronic equipment and storage medium
CN110688295A (en) Data testing method and device
CN117333170A (en) Service processing method, device, electronic equipment and storage medium
CN117041352A (en) Message processing method, device, electronic equipment and storage medium
CN115619337A (en) Method and device for processing signed report data, electronic equipment and storage medium
CN115630836A (en) Service processing method and device, electronic equipment and storage medium
CN114022296A (en) Service processing method and device, electronic equipment and storage medium

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