WO2021139522A1 - Data processing method and apparatus - Google Patents

Data processing method and apparatus Download PDF

Info

Publication number
WO2021139522A1
WO2021139522A1 PCT/CN2020/138222 CN2020138222W WO2021139522A1 WO 2021139522 A1 WO2021139522 A1 WO 2021139522A1 CN 2020138222 W CN2020138222 W CN 2020138222W WO 2021139522 A1 WO2021139522 A1 WO 2021139522A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
transaction
payment
execution
target
Prior art date
Application number
PCT/CN2020/138222
Other languages
French (fr)
Chinese (zh)
Inventor
施春艳
池晨
吴丹丹
石岩
方腾飞
Original Assignee
支付宝(杭州)信息技术有限公司
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 支付宝(杭州)信息技术有限公司 filed Critical 支付宝(杭州)信息技术有限公司
Publication of WO2021139522A1 publication Critical patent/WO2021139522A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/22Payment schemes or models
    • G06Q20/28Pre-payment schemes, e.g. "pay before"
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/22Payment schemes or models
    • G06Q20/24Credit schemes, i.e. "pay after"

Definitions

  • the embodiments of this specification relate to the field of data processing technology, and in particular to data processing methods and devices.
  • the amount of data consumed by the processing process is usually a balanced amount of data relative to the data outflow object, and the data outflow object is executed for different data transactions of the business to be processed
  • the consumption value of the data volume may also be different, and when the consumption value of the data volume reaches the numerical threshold, the amount of data provided for the data outflow object in the data account space of the data outflow object may not be the same.
  • the execution processing requirements of the data outflow object cannot be met, and the available data in the data account space of the data outflow object is called too much in a short time, it will cause pressure on the data outflow object to execute data transactions for other pending services. , And affect the efficiency of data transaction execution processing of other services to be processed, so a data processing method is urgently needed to solve the above problems.
  • the embodiments of this specification provide data processing methods and devices, transaction processing methods and devices, and involve six types of computing devices and six types of computer-readable storage media.
  • the first data processing method provided by the embodiment of this specification includes: obtaining metadata of a service to be processed; creating a segment data transaction of the service to be processed according to the metadata; The data execution information and data link of the execution segment; based on the execution mode submitted for at least one execution segment of the segment data transaction, analyze the segment data transaction to obtain the target data transaction corresponding to the execution mode Execute processing of the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction.
  • the data processing method further includes: determining the recommended number of execution segments pushed to the data outflow object according to the historical data log of the data outflow object of the segmented data transaction, and according to the data outflow object
  • the execution instructions submitted by the object with respect to the recommended number determine the number of execution stages of the segmented data transaction; or, according to the data record of the data inflow of the segmented data transaction, predict the data inflow time of the data into the object
  • the interval is to determine the duration and/or the number of execution stages of the segmented data transaction according to the data inflow time interval.
  • the analyzing the segmented data transaction based on the execution mode submitted for at least one execution segment of the segmented data transaction to obtain the target data transaction corresponding to the execution mode includes: When the execution condition of the execution segment of the segmented data transaction is triggered, the segmented data transaction is decomposed according to the segmented execution mode corresponding to the triggering of the execution condition of the segmented data transaction to obtain the The target data transaction corresponding to the execution mode; or, receiving the segment execution request submitted by the data outflow object of the segment data transaction for the at least one execution segment; based on the segment execution mode carried in the segment execution request, Decompose the segmented data transaction to obtain a target data transaction corresponding to the segmented execution mode; wherein, in the target data transaction corresponding to the segmented execution mode, the at least one execution segment is recorded
  • the target data execution information is determined based on the data execution information of the at least one execution segment, and the target data link is determined based on the data link of the at least one execution segment.
  • the performing execution processing on the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction includes: reading the target data The data flow value corresponding to the at least one execution segment included in the execution information; according to the target data link, the data quota of the data account space of the data outflow object is deducted by the deduction quota corresponding to the data flow value , And, transferring the data resource corresponding to the data flow value from the actual data account corresponding to the data account space of the data outflow object to the data account of the segmented data transaction data inflow object; wherein, the target data The data node of the link corresponds to at least the data account space of the data outflow object and the data account of the data inflow object; the duration of the data settlement cycle of the data account space and the execution of the execution stage of the segmented data transaction The duration of the processing cycle is equal, the data quota of the data account space in the previous data settlement cycle is deducted from the deduction quota, and after the data settlement
  • the performing execution processing on the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction includes: reading the target data The data flow value corresponding to the at least one execution segment included in the execution information; according to the target data link, the data resource corresponding to the data flow value is transferred from the data account of the data outflow object to the data inflow The data account of the object; wherein the start data node of the target data link corresponds to the data account of the data outflow object, and the terminating data node corresponds to the data account of the data inflow object.
  • the sub-step of reading the data flow value corresponding to the at least one execution stage contained in the target data execution information it further includes: according to the data flow value and the at least one execution stage correspondence Calculate the first execution additional data value corresponding to the at least one execution segment; perform the data settlement processing of the first execution additional data value on the data inflow object; wherein, the first execution additional data value A percentage of execution additional data, including the processing fee generated by performing processing of the segmented data transaction in the at least one execution segment, and the first execution additional calculated based on the proportion of the first execution additional data
  • the data value is borne by the data inflow object.
  • the analyzing the segmented data transaction based on the execution mode submitted for at least one execution segment of the segmented data transaction to obtain the target data transaction corresponding to the execution mode includes: receiving The pre-execution request submitted by the data inflow object of the segmented data transaction for the at least one execution segment; based on the pre-execution mode carried in the pre-execution request, the data execution information and data link corresponding to the at least one execution segment The path is assembled to obtain the target data transaction corresponding to the pre-execution mode.
  • the data execution information and data link corresponding to the at least one execution segment are assembled based on the pre-execution mode carried in the pre-execution request to obtain the target data transaction corresponding to the pre-execution mode , Including: calculating the total data flow value corresponding to the pre-execution request according to the target data execution information of the at least one execution segment corresponding to the pre-execution request; data flow objects and intermediate data based on the segmented data transaction The account path of the data accounts of the two objects determines the target data link; an intermediate data transaction is established based on the total data flow value and the target data link as the target data transaction; wherein the start of the target data link The initial data node corresponds to the data account of the intermediate data object, and the ending data node corresponds to the data account of the data inflow object.
  • the performing execution processing on the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction includes: from the intermediate data object The data account applies for the data resource corresponding to the total data flow value to the data account of the data inflow object; according to the account path of the data account of both the data outflow object of the segmented data transaction and the intermediate data object, it is determined A segmented data link from the data outflow object to the intermediate data object; according to the segmented data link and the data execution information of the execution segment to be executed in the segmented data transaction, the segment is constructed The first segment data transaction of the execution segment to be executed in the data transaction; wherein the start data node of the segment data link corresponds to the data account of the data outflow object, and the end data node corresponds to the intermediate data The data account of the subject.
  • the step of performing execution processing on the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction includes: When the execution condition of the execution segment of the first segment data transaction is triggered, read the first segment data flow value corresponding to the triggered execution segment in the first segment data transaction; according to the segment data Link, deducting the deduction amount corresponding to the first segment data flow value from the data quota of the data account space of the data outflow object, and the actual data account corresponding to the data account space of the data outflow object
  • the data resource corresponding to the first segment data flow value is transferred to the data account of the intermediate data object; wherein the duration of the data settlement cycle of the data account space is the same as the execution segment of the first segment data transaction The duration of the execution processing cycle is the same.
  • the data quota of the data account space is deducted from the deduction quota.
  • the deduction quota is The deduction of the data quota is updated
  • the sub-step of applying for the data resource corresponding to the total data flow value from the data account of the intermediate data object to the data account of the data inflow object it further includes: according to the total data flow value And the corresponding proportion of the second execution additional data, calculate the second execution additional data value; perform the data settlement processing of the second execution additional data value on the data inflow object; wherein, the proportion of the second execution additional data , Including the processing fee generated by performing the processing of the intermediate data transaction, and the second additional data value obtained by calculating the proportion of the second additional data to be executed is borne by the data inflow object.
  • the data processing method further includes: calculating the first execution additional data corresponding to the execution segment according to the first segment data flow value and the proportion of the first execution additional data corresponding to the execution segment Value; for the data inflow object to perform the data settlement processing of the first execution additional data value; wherein, the proportion of the first execution additional data includes performing the first segment data transaction in the execution segment
  • the processing fee rate generated by the execution of the processing is borne by the data inflow object based on the first execution additional data value obtained by calculating the proportion of the first execution additional data.
  • the step of performing execution processing on the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction further includes: receiving the target data transaction.
  • the method further includes: When the execution condition of at least one of the remaining execution segments of the second segmented data transaction is triggered, read the second segment data flow value corresponding to the triggered remaining execution segment of the second segmented data transaction According to the second segmented data link, the data quota of the data account space of the data outflow object is deducted by the deduction quota corresponding to the second segmented data flow value, and, from the data outflow object
  • the actual data account corresponding to the data account space transfers the data resource corresponding to the second segmented data flow value to the data account of the intermediate data object; wherein the duration of the data settlement period of the data account space is the same as that of the The duration of the execution processing cycle of the remaining execution stages of the second segment data transaction is equal, the data quota of the data account space in the previous data settlement cycle is deducted from the deduction quota,
  • the step includes: judging the metadata contained in the metadata Whether the processing value of the to-be-processed data is less than or equal to the available data quota of the data account space of the data outflow object of the segmented data transaction; if so, execute the step of creating the segmented data transaction of the to-be-processed service based on the metadata ; If not, push a notification of processing failure to the data outflow object.
  • the to-be-processed services include: transaction services, data stream processing services, and payment services; correspondingly, the segmented data transactions of the to-be-processed services include: segmentation in which the transaction services are executed in a phased transaction mode.
  • a staged transaction transaction, the data stream processing business adopts a staged data stream processing transaction executed by a staged processing method, and the payment business adopts a staged payment transaction executed by a staged payment method; the execution of the segmented data transaction
  • the segments include: each transaction stage in the staged transaction process of the staged transaction transaction, each data processing stage of the staged data flow processing transaction in the staged processing process, the staged payment transaction in the staged payment The various payment stages in the process.
  • the first data processing device includes: an acquisition module configured to acquire metadata of a service to be processed; a creation module configured to create a segment of the service to be processed according to the metadata Data transaction; the data execution information and data link of each execution segment are recorded in the segmented data transaction; the parsing module is configured to perform the execution based on the execution mode submitted for at least one execution segment of the segmented data transaction The segmented data transaction is analyzed to obtain the target data transaction corresponding to the execution mode; the processing module is configured to execute the target data according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction Way to perform execution processing on the target data transaction.
  • a transaction processing method provided by an embodiment of this specification includes: obtaining transaction metadata of a transaction to be processed;
  • the installment payment transaction records transaction payment information and payment links for each payment stage; submit based on at least one payment stage for the installment payment transaction Analyze the installment payment transaction to obtain the target payment transaction corresponding to the payment method; according to the target transaction payment information and target payment link of the at least one payment stage recorded in the target payment transaction , Perform payment processing on the target payment transaction.
  • the transaction processing method further includes: determining the recommended installment number of the payment stage pushed to the payer according to the historical transaction payment log of the payer of the installment payment transaction, and according to the payer’s target
  • the payment instruction submitted by the recommended number of installments determines the number of installments in the payment phase of the installment transaction; or, based on the transaction record of the payee of the installment transaction, predicts the payment time interval of the payee, Determine the installment duration and/or the number of installments of the payment phase of the installment payment transaction according to the collection time interval.
  • the analyzing the instalment transaction based on the payment method submitted for at least one payment phase of the instalment transaction to obtain the target payment transaction corresponding to the payment method includes: When the payment condition of the payment phase of the payment transaction is triggered, the payment phase is triggered in accordance with the instalment payment method corresponding to the trigger of the payment phase, the instalment transaction is decomposed, and the target payment corresponding to the instalment payment method is obtained Transaction; or, the installment payment request submitted by the payer who receives the installment payment transaction for the at least one payment stage; based on the installment payment method carried in the installment payment request, the installment payment transaction is decomposed to obtain the The target payment transaction corresponding to the installment payment method; wherein, in the target payment transaction corresponding to the installment payment method, the target transaction payment information and target payment link of the at least one payment stage are recorded, and the target Transaction payment information is determined based on the transaction payment information of the at least one payment stage, and the target payment link is determined based on the payment link of the at least one payment stage.
  • the performing payment processing on the target payment transaction according to the target transaction payment information and target payment link of the at least one payment phase recorded in the target payment transaction includes: reading the target transaction The payment value corresponding to the at least one payment stage included in the payment information; according to the target payment link, the data amount of the data account space of the payer is deducted by the deduction amount corresponding to the payment value, and, The payment resource corresponding to the payment value is transferred from the actual data account corresponding to the data account space of the payer to the data account of the payee of the installment transaction; wherein, the payment node of the target payment link is at least Corresponding to the data account space of the paying party and the data account of the paid party; the duration of the data settlement cycle of the data account space is equal to the duration of the payment processing cycle in the payment phase of the installment transaction, the first A data settlement cycle deducts the deduction quota from the data quota of the data account space, and after the data settlement processing of the subsequent data settlement cycle, the deduction of the data quota by the deduction quota is
  • the performing payment processing on the target payment transaction according to the target transaction payment information and target payment link of the at least one payment phase recorded in the target payment transaction includes: reading the target transaction The payment value corresponding to the at least one payment phase contained in the delivery information; according to the target payment link, the payment resource corresponding to the payment value is transferred from the payment account of the paying party to the paid party Account; wherein, the initial payment node of the target payment link corresponds to the payment account of the payer, and the termination payment node corresponds to the payment account of the payee.
  • the method further includes: according to the payment value and the first payment value corresponding to the at least one payment phase A payment rate, calculating the first payment surcharge corresponding to the at least one payment stage; performing the settlement processing of the first payment fee on the paid party; wherein, the first payment rate includes the For the payment rate generated by the payment processing of the installment payment transaction in the at least one payment stage, the first payment surcharge calculated according to the first payment rate is borne by the payee.
  • the analyzing the installment payment transaction based on the payment method submitted for at least one payment phase of the installment payment transaction to obtain the target payment transaction corresponding to the payment method includes: receiving the installment payment transaction A prepayment request submitted by the paid party of a payment transaction for the at least one payment stage; based on the prepayment method carried in the prepayment request, the transaction payment information and payment link corresponding to the at least one payment stage are assembled To obtain the target payment transaction corresponding to the pre-payment method.
  • the transaction payment information and payment link corresponding to the at least one payment stage are assembled to obtain the target payment transaction corresponding to the prepayment method , Including: calculating the total payment value corresponding to the pre-payment request according to the target transaction payment information of the at least one payment phase corresponding to the pre-payment request; the paid party and the transaction agency based on the installment payment transaction
  • the account path of the user’s payment account determines the target payment link; an intermediate payment transaction is established based on the total payment value and the target payment link as the target payment transaction; wherein the initial payment node of the target payment link Corresponding to the payment account of the transaction agency, the termination payment node corresponds to the payment account of the transaction agency.
  • the performing payment processing on the target payment transaction according to the target transaction payment information and target payment link of the at least one payment stage recorded in the target payment transaction includes: from the transaction agency The payment account applies for the payment resource corresponding to the total payment value to the payment account of the paid party; according to the account path of the payment account of both the payer and the transaction agency, it is determined from the payer to the The installment payment link of the transaction agency; according to the installment link and the data execution information of the execution stage to be executed in the installment payment transaction, the first installment of the payment stage to be paid in the installment transaction is formed Payment transaction; wherein the initial payment node of the installment payment link corresponds to the payment account of the payer, and the termination payment node corresponds to the payment account of the transaction agency.
  • the step of performing payment processing on the target payment transaction according to the target transaction payment information and target payment link of the at least one payment phase recorded in the target payment transaction includes: When the payment conditions of the payment phase of the first installment transaction are triggered, read the first installment value corresponding to the triggered payment phase in the first installment transaction;
  • the data limit of the data account space of the payer deducts the deduction limit corresponding to the first instalment value, and the first instalment value is transferred from the actual data account corresponding to the data account space of the payer Corresponding payment resources to the payment account of the transaction agency; wherein the duration of the data settlement cycle of the data account space is equal to the duration of the payment processing cycle in the execution phase of the first installment transaction, and the previous data
  • the settlement cycle deducts the deduction quota from the data quota of the data account space, and after the data settlement processing of the subsequent data settlement cycle, the deduction of the deduction quota to the data quota is updated.
  • the sub-step of applying for the payment resource corresponding to the total payment value from the payment account of the transaction agency to the payment account of the payee it further includes: according to the total payment value and the corresponding Calculate the second payment surcharge at the second payment rate; perform the settlement processing of the second payment surcharge on the payee; wherein the second payment rate includes the payment to the transaction agency
  • the transaction fee rate generated by the transaction processing, and the second payment surcharge calculated based on the second payment fee rate shall be borne by the paid party.
  • the transaction processing method further includes: calculating a first payment surcharge corresponding to the payment stage according to the first payment value of the installment and the first payment rate corresponding to the payment stage; The payee performs the settlement processing of the first payment surcharge; wherein, the first payment rate includes the payment rate generated by the payment processing of the first installment transaction in the payment stage, according to the The first payment surcharge obtained by calculating the first payment rate is borne by the paid.
  • the step of performing payment processing on the target payment transaction according to the target transaction payment information and target payment link of the at least one payment phase recorded in the target payment transaction further includes: receiving The second prepayment request submitted by the paid party of the installment payment transaction for the remaining payment stage; based on the second prepayment method carried in the second prepayment request, the transaction payment information and payment corresponding to the remaining payment segment
  • the link is assembled to obtain a second intermediate payment transaction corresponding to the second prepayment method;
  • the second intermediate payment transaction records the second total payment value corresponding to the second prepayment request;
  • the payment account of the transaction agency of the installment payment transaction applies for the payment resource corresponding to the second total payment value to the payment account of the payee, and the payment processing is performed on the second intermediate payment transaction;
  • the account path of the data accounts of both the payer of the installment payment transaction and the transaction agency determines the second installment payment link from the payer to the transaction agency; according to the second installment link and
  • the transaction payment information of the remaining payment stage forms a second installment payment transaction corresponding to the remaining payment stage;
  • the method further includes: When the payment condition of at least one of the remaining execution phases of the two installment transaction is triggered, read the second installment value corresponding to the triggered remaining payment phase in the second installment transaction; according to the second installment transaction;
  • the installment payment link deducts the deduction amount corresponding to the second installment payment value from the data amount of the data account space of the payer, and transfers out from the actual data account corresponding to the data account space of the payer
  • the payment resource corresponding to the second installment payment value is sent to the payment account of the transaction agency; wherein the duration of the data settlement cycle of the data account space is equal to the payment processing period of the remaining payment phase of the second installment transaction
  • the duration of the deduction is the same, the data quota of the data account space in the previous data settlement cycle is deducted from the deduction quota, and after the data settlement processing in the subsequent data settlement cycle, the deduction quota is less than the amount of
  • the method includes: determining whether the transaction metadata is Whether the included value to be traded is less than or equal to the available data quota of the data account space of the payer of the installment payment transaction; if so, execute the step of creating the installment payment transaction of the pending transaction based on the transaction metadata; if No, push notification of processing failure to the payer.
  • a transaction processing device includes: a data acquisition module configured to acquire transaction metadata of a transaction to be processed; a transaction creation module configured to create the transaction to be processed based on the transaction metadata The installment payment transaction; the transaction payment information and payment link of each payment stage are recorded in the installment payment transaction; the transaction analysis module is configured to be based on the payment method submitted for at least one payment stage of the installment payment transaction, The installment payment transaction is analyzed to obtain the target payment transaction corresponding to the payment method; the transaction processing module is configured to be based on the target transaction payment information and target payment of the at least one payment stage recorded in the target payment transaction Link to perform payment processing on the target payment transaction.
  • the second data processing method provided by the embodiment of this specification is applied to the server, and includes: receiving a service processing request of the service to be processed submitted by the first client; the service processing request carries the service identifier and the number of segments;
  • segment data transaction corresponding to the service processing request according to the number of segments and the metadata corresponding to the service identifier; the segment data transaction records data execution information and data links of each execution segment; Deliver the segmented data transaction to the first client; analyze the segmented data transaction according to the segmented execution mode submitted by the first client for the segmented data transaction, and obtain the The target data transaction corresponding to the segmented execution mode; perform execution processing on the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction; The first client pushes the execution processing result of the target data transaction.
  • the segmented data transaction is analyzed according to the segmented execution mode submitted by the first client for the segmented data transaction to obtain the target data transaction corresponding to the segmented execution mode , Including: receiving the segmented execution mode submitted by the first client for the at least one execution segment; and decomposing the segmented data transaction according to the segmented execution mode to obtain the same as the segmented execution mode Corresponding target data transaction; wherein, in the target data transaction corresponding to the segmented execution mode, the target data execution information and target data link of the at least one execution segment are recorded, and the target data execution information is based on The data execution information of the at least one execution segment is determined, and the target data link is determined based on the data link of the at least one execution segment.
  • the performing execution processing on the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction includes: reading the target data The data flow value corresponding to the at least one execution segment included in the execution information; according to the target data link, the data flow is deducted from the data quota of the data account space of the data outflow object corresponding to the first client The deduction amount corresponding to the value, and transferring the data resource corresponding to the data flow value from the actual data account corresponding to the data account space of the data outflow object to the data account of the data inflow object corresponding to the second client; where , The data node of the target data link at least corresponds to the data account space of the data outflow object and the data account of the data inflow object; the duration of the data settlement cycle of the data account space is related to the segmented data transaction The duration of the execution processing cycle of the execution section of the execution section is equal, and the deduction amount is deducted from the data quota of the data account space in the previous data settlement cycle
  • the sub-step of reading the data flow value corresponding to the at least one execution stage contained in the target data execution information it further includes: according to the data flow value and the at least one execution stage correspondence Calculate the first execution additional data value corresponding to the at least one execution segment; perform the data settlement processing of the first execution additional data value on the data inflow object; wherein, the first execution additional data value A percentage of execution additional data, including the processing fee generated by performing processing of the segmented data transaction in the at least one execution segment, and the first execution additional calculated based on the proportion of the first execution additional data
  • the data value is borne by the data inflow object.
  • the step of performing execution processing on the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction further includes: receiving the first 2.
  • the link is assembled to obtain the second intermediate data transaction corresponding to the second pre-execution mode;
  • the second intermediate data transaction records the second total data flow value corresponding to the second pre-execution request;
  • the data account of the intermediate data object of the segmented data transaction applies for the data resource corresponding to the second total data flow value to the data account of the data inflow object to perform processing on the second intermediate data transaction;
  • the method further includes: When the execution condition of at least one of the remaining execution segments of the second segmented data transaction is triggered, read the second segment data flow value corresponding to the triggered remaining execution segment of the second segmented data transaction According to the second segmented data link, the data quota of the data account space of the data outflow object is deducted by the deduction quota corresponding to the second segmented data flow value, and, from the data outflow object
  • the actual data account corresponding to the data account space transfers the data resource corresponding to the second segmented data flow value to the data account of the intermediate data object; wherein the duration of the data settlement period of the data account space is the same as that of the The duration of the execution processing cycle of the remaining execution stages of the second segment data transaction is equal, the data quota of the data account space in the previous data settlement cycle is deducted from the deduction quota,
  • the creating a segment data transaction corresponding to the service processing request according to the number of segments and the metadata corresponding to the service identifier includes: determining the processing value of the data to be processed contained in the metadata Whether it is less than or equal to the available data quota of the data account space of the data outflow object corresponding to the first client; if so, create the segmented data transaction of the to-be-processed service based on the metadata; if not, send the data to the first client A notification that the client has failed to push the processing.
  • the to-be-processed services include: transaction services, data stream processing services, and payment services; correspondingly, the segmented data transactions of the to-be-processed services include: segmentation in which the transaction services are executed in a phased transaction mode.
  • a staged transaction transaction, the data stream processing business adopts a staged data stream processing transaction executed by a staged processing method, and the payment business adopts a staged payment transaction executed by a staged payment method; the execution of the segmented data transaction
  • the segments include: each transaction stage in the staged transaction process of the staged transaction transaction, each data processing stage of the staged data flow processing transaction in the staged processing process, the staged payment transaction in the staged payment The various payment stages in the process.
  • the second data processing device is applied to the server and includes: a request receiving module configured to receive a service processing request for a service to be processed submitted by a first client; the service processing request carries a service ID and the number of segments; a segment data transaction creation module configured to create a segment data transaction corresponding to the service processing request according to the number of segments and the metadata corresponding to the service identifier; the segment data The data execution information and data link of each execution segment are recorded in the transaction; the transaction sending module is configured to send the segmented data transaction to the first client; the segmented data transaction analysis module is configured to The first client parses the segmented data transaction for the segmented execution mode submitted by the segmented data transaction to obtain the target data transaction corresponding to the segmented execution mode; the transaction processing module is configured In order to perform execution processing on the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction; the result push module is configured to send to the first client The terminal pushes the
  • the third data processing method provided by the embodiment of this specification is applied to the first client and includes: receiving a service processing instruction submitted for the service to be processed; and submitting a port to the server according to the number of segments corresponding to the service processing instruction The number of segments and the service processing request of the service identifier of the service to be processed; receiving and displaying the segmented data transaction issued by the server for the service processing request; according to the segmentation for the segmented data transaction Segment execution input, submit the segment execution mode to the server; receive the execution processing result of the target data transaction corresponding to the segment execution mode returned by the server.
  • the third data processing device is applied to the first client and includes: an instruction receiving module configured to receive a service processing instruction submitted for a service to be processed; and a request submission module configured to The number of segments corresponding to the service processing instruction is submitted to the server to carry the number of segments and the service identification of the service to be processed; the transaction receiving module is configured to receive the service processing for the service The segmented data transaction requested to be issued and displayed; the segmented execution mode submission module is configured to submit the segmented execution mode to the server according to the segmented execution input for the segmented data transaction; the processing result receiving module And configured to receive the execution processing result of the target data transaction corresponding to the segmented execution mode returned by the server.
  • the fourth data processing method provided by the embodiment of this specification, applied to the server includes: receiving a service processing request carrying a service identifier submitted by a second client; creating the service processing according to the metadata corresponding to the service identifier Request a corresponding segmented data transaction; the segmented data transaction records the data execution information and data link of each execution segment; and deliver the segmented data transaction to the first client and the second client; According to the pre-execution mode submitted by the second client for the segmented data transaction, analyze the segmented data transaction to obtain the target data transaction corresponding to the pre-executed mode; according to the target data transaction The recorded target data execution information and target data link of the at least one execution segment perform execution processing on the target data transaction; and push the execution processing result of the target data transaction to the second client.
  • the parsing the segmented data transaction according to the pre-execution mode submitted by the second client for the segmented data transaction to obtain the target data transaction corresponding to the pre-execution mode includes : Receive the pre-execution mode submitted by the data inflow object corresponding to the second client for the at least one execution section; perform data execution information and data link corresponding to the at least one execution section according to the pre-execution mode Assemble to obtain the target data transaction corresponding to the pre-execution mode.
  • the assembling the data execution information and the data link corresponding to the at least one execution segment according to the pre-execution mode to obtain the target data transaction corresponding to the pre-execution mode includes: according to the The target data execution information of the at least one execution segment corresponding to the pre-execution mode is calculated, and the total data flow value corresponding to the pre-execution mode is calculated; based on the data account of both the data inflow object and the intermediate data object corresponding to the second client The account path of the target data link is determined; an intermediate data transaction is established based on the total data flow value and the target data link as the target data transaction; wherein, the start data node of the target data link corresponds to For the data account of the intermediate data object, the terminating data node corresponds to the data account of the data inflow object.
  • the performing execution processing on the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction includes: obtaining data from the segment data
  • the data account of the intermediate data object of the transaction applies for the data resource corresponding to the total data flow value to the data account of the data inflow object; according to the data corresponding to the first client, the data flows out of both the object and the intermediate data object.
  • the account path of the account determines the segment data link from the data outflow object to the intermediate data object; according to the segment data link and the data execution information of the execution segment to be executed in the segment data transaction , Forming the first segment data transaction of the execution segment to be executed in the segment data transaction; wherein the start data node of the segment data link corresponds to the data account of the data outflow object, and the data node is terminated The data account corresponding to the intermediate data object.
  • the step of performing execution processing on the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction includes: When the execution condition of the execution segment of the first segment data transaction is triggered, read the first segment data flow value corresponding to the triggered execution segment in the first segment data transaction; according to the segment data Link, deducting the deduction amount corresponding to the first segment data flow value from the data quota of the data account space of the data outflow object, and the actual data account corresponding to the data account space of the data outflow object
  • the data resource corresponding to the first segment data flow value is transferred to the data account of the intermediate data object; wherein the duration of the data settlement cycle of the data account space is the same as the execution segment of the first segment data transaction The duration of the execution processing cycle is the same.
  • the data quota of the data account space is deducted from the deduction quota.
  • the deduction quota is The deduction of the data quota is updated
  • the to-be-processed services include: transaction services, data stream processing services, and payment services; correspondingly, the segmented data transactions of the to-be-processed services include: segmentation in which the transaction services are executed in a phased transaction mode.
  • a staged transaction transaction, the data stream processing business adopts a staged data stream processing transaction executed by a staged processing method, and the payment business adopts a staged payment transaction executed by a staged payment method; the execution of the segmented data transaction
  • the segments include: each transaction stage in the staged transaction process of the staged transaction transaction, each data processing stage of the staged data flow processing transaction in the staged processing process, the staged payment transaction in the staged payment The various payment stages in the process.
  • the fourth data processing device is applied to the server and includes: a request receiving module configured to receive a service processing request carrying a service identifier submitted by a second client; and a transaction creation module configured to The metadata corresponding to the service identifier creates a segmented data transaction corresponding to the service processing request; the segmented data transaction records the data execution information and data links of each execution segment; the transaction sending module is configured to The segmented data transaction is issued to the first client and the second client; the parsing module is configured to perform the pre-execution mode for the segmented data transaction submitted by the second client to the The segmented data transaction is analyzed to obtain the target data transaction corresponding to the pre-execution mode; the processing module is configured to execute information and target data link according to the target data of the at least one execution segment recorded in the target data transaction Road, perform execution processing on the target data transaction; the result push module is configured to push the execution processing result of the target data transaction to the second client.
  • the fifth data processing method provided by the embodiment of this specification, applied to the second client includes: collecting the service identification code of the service to be processed displayed by the terminal device corresponding to the first client; decoding the service identification code, Submit a service processing request carrying the service identifier to the server according to the service identifier obtained by decoding; receive and display the segmented data transaction issued by the server in response to the service processing request; Pre-execution input, submit a pre-execution mode to the server; receive the execution processing result of the target data transaction corresponding to the pre-execution mode returned by the server.
  • the fifth data processing device is applied to the second client and includes: a collection module configured to collect the service identification code of the service to be processed displayed by the terminal device corresponding to the first client; and a decoding module, Is configured to decode the service identification code, and submit a service processing request carrying the service identification to the server according to the decoded service identification;
  • the receiving module is configured to receive the service processing request from the server The segmented data transaction is sent and displayed;
  • the submission module is configured to submit the pre-execution mode to the server according to the pre-execution input for the segmented data transaction;
  • the processing result receiving module is configured to receive the service The execution processing result of the target data transaction corresponding to the pre-execution mode returned by the terminal.
  • the first computing device includes: a memory and a processor; the memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions: to obtain elements of services to be processed Data; create a segmented data transaction of the to-be-processed service based on the metadata; the segmented data transaction records the data execution information and data links of each execution segment; based on at least the segmented data transaction An execution mode submitted by an execution segment, analyzing the segmented data transaction to obtain the target data transaction corresponding to the execution mode; according to the target data execution information of the at least one execution segment recorded in the target data transaction And the target data link to perform execution processing on the target data transaction.
  • the second computing device includes: a memory and a processor; the memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions: obtain transactions of pending transactions Metadata; create an installment payment transaction for the pending transaction based on the transaction metadata; the installment payment transaction records transaction payment information and payment links for each payment stage; based on at least one of the installment payment transactions
  • the payment method submitted in the payment stage analyzes the installment payment transaction to obtain the target payment transaction corresponding to the payment method; according to the target transaction payment information and target of the at least one payment stage recorded in the target payment transaction
  • the payment link performs payment processing on the target payment transaction.
  • the third computing device includes: a memory and a processor; the memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions: receiving a submission from the first client The service processing request of the service to be processed; the service processing request carries the service identifier and the number of segments; the segment data corresponding to the service processing request is created according to the number of segments and the metadata corresponding to the service identifier Transaction; the segmented data transaction records the data execution information and data link of each execution segment; sends the segmented data transaction to the first client; according to the first client for the segment The segmented execution mode of segment data transaction submission is to analyze the segmented data transaction to obtain the target data transaction corresponding to the segmented execution mode; according to the at least one execution segment recorded in the target data transaction The target data execution information and the target data link perform execution processing on the target data transaction; and push the execution processing result of the target data transaction to the first client.
  • the fourth computing device includes: a memory and a processor; the memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions: receiving submissions for services to be processed According to the number of segments corresponding to the service processing instruction, submit a service processing request carrying the number of segments and the service identifier of the service to be processed to the server; receive the service from the server for the service Process and display the segmented data transaction issued by the request; submit the segmented execution mode to the server according to the segmented execution input for the segmented data transaction; receive the segmented execution mode returned by the server The execution processing result of the corresponding target data transaction.
  • the fifth computing device includes: a memory and a processor; the memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions: receiving a submission from a second client
  • the service processing request carrying the service ID
  • the segment data transaction corresponding to the service processing request is created according to the metadata corresponding to the service ID
  • the data execution information and data of each execution segment are recorded in the segment data transaction Link
  • the transaction is analyzed to obtain the target data transaction corresponding to the pre-execution mode
  • the target data transaction is performed according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction Execute processing; push the execution processing result of the target data transaction to the second client.
  • the sixth computing device includes: a memory and a processor; the memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions: collect the corresponding information of the first client The service identification code of the service to be processed displayed by the terminal device; decodes the service identification code, and submits a service processing request carrying the service identification to the server according to the service identification obtained by the decoding; The segmented data transaction issued by the business processing request and display; according to the pre-execution input for the segmented data transaction, submit the pre-execution mode to the server; receive the pre-execution mode returned by the server The execution processing result of the target data transaction.
  • a first computer-readable storage medium which stores computer-executable instructions, and when the instructions are executed by a processor, the steps of the first data processing method are implemented.
  • a second computer-readable storage medium which stores computer-executable instructions, which, when executed by a processor, implement the steps of the transaction processing method.
  • a third type of computer-readable storage medium which stores computer-executable instructions that, when executed by a processor, implement the steps of the second data processing method.
  • a fourth computer-readable storage medium which stores computer-executable instructions, which, when executed by a processor, implement the steps of the third data processing method.
  • a fifth computer-readable storage medium which stores computer-executable instructions, and when the instructions are executed by a processor, the steps of the fourth data processing method are implemented.
  • a sixth computer-readable storage medium which stores computer-executable instructions that, when executed by a processor, implement the steps of the fifth data processing method.
  • the metadata of the service to be processed is obtained, and the segmented data transaction of the service to be processed is created based on the metadata, and then based on at least the segmented data transaction
  • An execution mode of execution stage submission is to analyze the segment data transaction, and the target data execution information of the at least one execution stage recorded in the target data transaction obtained according to the analysis result and the target data link to the target data
  • the transaction is executed, and the corresponding execution segment is processed more flexibly according to the submitted execution mode.
  • the to-be-processed business is executed in the form of data transaction, which improves the processing efficiency and processing consistency of the business execution processing.
  • Fig. 1 is a processing flowchart of a first data processing method provided by an embodiment of this specification
  • FIG. 2 is a processing flowchart of a data processing method applied to transaction services according to an embodiment of this specification
  • FIG. 3 is a processing flowchart of a data processing method applied to payment services according to an embodiment of this specification
  • FIG. 4 is a processing flowchart of a second data processing method applied to payment services according to an embodiment of this specification
  • Fig. 5 is a schematic diagram of a first data processing device provided by an embodiment of this specification.
  • FIG. 6 is a processing flowchart of a transaction processing method provided by an embodiment of this specification.
  • FIG. 7 is a processing flowchart of a second transaction processing method provided by an embodiment of this specification.
  • FIG. 8 is a schematic diagram of a transaction processing device provided by an embodiment of this specification.
  • FIG. 9 is a processing flowchart of a second data processing method provided by an embodiment of this specification.
  • FIG. 10 is a schematic diagram of a second data processing device provided by an embodiment of this specification.
  • FIG. 11 is a processing flowchart of a third data processing method provided by an embodiment of this specification.
  • FIG. 12 is a schematic diagram of a third data processing device provided by an embodiment of this specification.
  • FIG. 13 is a processing flowchart of a fourth data processing method provided by an embodiment of this specification.
  • FIG. 14 is a schematic diagram of a fourth data processing device provided by an embodiment of this specification.
  • FIG. 16 is a schematic diagram of a fifth data processing device provided by an embodiment of this specification.
  • FIG. 17 is a structural block diagram of a first computing device provided by an embodiment of this specification.
  • FIG. 18 is a structural block diagram of a second type of computing device provided by an embodiment of this specification.
  • FIG. 19 is a structural block diagram of a third computing device provided by an embodiment of this specification.
  • FIG. 20 is a structural block diagram of a fourth computing device provided by an embodiment of this specification.
  • FIG. 21 is a structural block diagram of a fifth computing device provided by an embodiment of this specification.
  • Fig. 22 is a structural block diagram of a sixth computing device provided by an embodiment of this specification.
  • first, second, etc. may be used to describe various information in one or more embodiments of this specification, the information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other.
  • the first may also be referred to as the second, and similarly, the second may also be referred to as the first.
  • word “if” as used herein can be interpreted as "when” or “when” or "in response to determination”.
  • An embodiment of this specification provides a data processing method and device, a transaction processing method and device, and also involves six types of computing devices and six types of computer-readable storage media. The following is a detailed description one by one in conjunction with the accompanying drawings of the embodiments provided in this specification, and each step of the method is described.
  • the implementation example of the first data processing method provided in this specification is as follows.
  • FIG. 1 shows a processing flowchart of a data processing method provided by an embodiment of this specification, which specifically includes the following steps S102 to S108.
  • Step S102 Obtain metadata of the service to be processed.
  • the business to be processed in the process of processing the business to be processed, is first executed in the form of a data transaction, so as to improve the efficiency of data processing and reduce the impact of data occupation in the process of data processing. , And divide the execution process of the business to be processed in the manner of execution segment, so as to reduce the amount of data occupied by the execution process of the business to be processed, and at the same time, it can also improve the processing efficiency and processing consistency of the business execution processing.
  • the execution of processing requires data support involving multiple processing platforms.
  • the data processing method can be implemented on the basis of a distributed system. Specifically, by creating a distributed transaction corresponding to the business to be processed, and based on the distributed system The coordination among transaction-supporting servers, resource servers, and transaction managers deployed on different nodes enables the creation of distributed transactions on the basis of metadata, and the execution of distributed transactions according to the submitted execution mode , So as to further improve the processing efficiency and processing consistency of the business execution processing of the business to be processed.
  • the pending services include: transaction services, data stream processing services, and payment services; correspondingly, the transaction services specifically refer to transactions related to transaction processing related to item transactions, resource transactions, or data transactions;
  • the data stream processing business specifically refers to a related business related to data stream invocation processing;
  • the payment business specifically refers to a related business related to commodity payment processing.
  • the corresponding metadata refers to the calling task that needs to be performed on the data stream processing service; when the service to be processed is a transaction service, corresponding The metadata refers to the total transaction amount required for the transaction business; when the business to be processed is a payment business, the corresponding metadata refers to the total payment funds that need to be paid for the payment business.
  • the data processing method will be described with the service to be processed as a data stream processing service.
  • the data outflow object and the data inflow object are in the process of invoking the data stream for the invoking task.
  • the data outflow object needs to provide part of the data flow for the invocation task to complete the invocation task, and the data flow involved in the completion of the invocation task is relatively large.
  • the data outflow object is prone to fail to provide the full amount at one time
  • the intermediate data object can provide a certain amount of data flow to the data outflow object so that the data outflow object can be executed for the calling task, and to The data stream provided by the data outflow object can be invoked in a phased processing manner.
  • the intermediate data object that provides the data stream can send the full data stream for the invoking task to the data inflow object at one time, and the data outflow object is for the intermediate data object.
  • the provided data stream is processed in stages to realize that the data outflow object can complete the calling task.
  • the intermediate data object that provides the data stream can also deliver the data stream to the data inflow object according to the phased processing mode of the data outflow object.
  • the specific implementation method of the admission restriction verification process is as follows: Determine whether the processing value of the data to be processed contained in the metadata is less than or equal to the available data in the data account space of the data outflow object of the segmented data transaction Quota; if yes, perform the following step S104; if no, push a notification of processing failure to the data outflow object.
  • the processing value of the data to be processed contained in the metadata, and then determine whether the processing value of the data to be processed is less than or equal to the available data quota of the account space of the data outflow object of the segmented data transaction, if yes , Indicating that the data outflow object meets the access restriction at this time, and you can create a segmented data transaction for metadata, just perform the following step S104; if not, it indicates that the data outflow object does not meet the access restriction at this time, and you can flow out to the data A reminder that the object push processing fails, the reminder is related information that the data outflow object cannot perform processing for the segmented data transaction.
  • the data outflow object is checked for admission, which not only improves the security of the business scenario to be processed, but also has a certain restrictive effect on the data outflow object to avoid non-disclosure.
  • the normal data outflow object has an abnormal impact on the business to be processed.
  • Step S104 Create a segmented data transaction of the service to be processed according to the metadata.
  • the data execution information and data links of each execution segment are recorded in the segmented data transaction.
  • the execution process of the business to be processed is first divided according to the business processing node, and the execution process of the business to be processed is divided into one or more execution stages (execution sections), and then the business to be processed is executed.
  • the transaction that needs to be processed in each execution stage is called a data transaction, and the whole of the data transactions in all execution stages of the business to be processed is called a segmented data transaction.
  • the data transactions of each execution stage in the segmented data transaction are sequentially sorted according to the time sequence of the execution processing.
  • the data of each execution stage Transactions are also processed in sequence in order of sorting. Specifically, in the segmented data transaction, various data execution information and data links are also recorded.
  • the paying user purchases a product at the merchant through the payment line provided by the payment platform.
  • the price of the product is 1,000 yuan
  • the paying user repays the payment line to the payment platform in installments.
  • the total number of installments It is 10 periods, and the repayment limit of each period is 100.
  • the user needs to pay the payment platform to repay the payment platform with a payment amount equal to 100 yuan, and the payment platform will transfer the 100 yuan fund provided by the financial institution to the merchant.
  • This payment process can be referred to as a payment transaction in the payment phase, and the payment transactions corresponding to the ten payment phases in the payment business constitute a phased payment transaction in the payment business.
  • the transactional business when the pending business is a transactional business, the transactional business will use a staged transaction method to execute a staged transactional transaction; when the pending business is a data stream processing business, The data volume processing service will adopt a phased processing method to execute a phased data flow processing transaction; in the case that the to-be-processed service is a payment service, the payment service adopts a phased payment method to execute a phased payment transaction.
  • a segment data transaction of the service to be processed may be created according to the metadata, wherein the segment data
  • the transaction specifically refers to the transaction to be processed after the task to be processed is divided according to each execution segment, and the data execution information and data link of each execution segment are recorded in the segmented data transaction.
  • phased data flow processing transaction is created according to the calling task of the data flow processing business, that is, the data flow can be called in stages to complete the calling task for the calling task.
  • the phased data flow processing transaction The data flow calling information and data flow calling links of each data processing stage are recorded.
  • the recommended number of execution segments will be determined according to the historical data log of the data outflow object. The determination is made according to the execution instruction of the data outflow object.
  • the specific implementation for determining the number of execution segments is as follows: according to the data outflow object of the segmented data transaction The historical data log determines the recommended number of execution segments pushed to the data outflow object, and determines the number of execution segments of the segmented data transaction according to the execution instructions submitted by the data outflow object for the recommended number.
  • the recommended number of data processing stages pushed to the data outflow object is determined, which is the data outflow object It is recommended that the phased data flow processing transaction is divided into M data processing stages for subsequent execution and processing, and the recommended number is pushed to the data outflow object; based on this, the data outflow object can accept the recommended number according to the selection, and the recommended number will be
  • the phased data flow processing transaction is divided into M data processing phases, and the execution instructions can also be submitted for the phased data flow processing transaction according to the execution requirements, and the phased data flow processing transaction is divided into N data processing phases. Based on the divided data In the processing stage, the target data transaction corresponding to the data processing stage can be executed subsequently.
  • the duration and/or number of the execution stages of the segmented data transaction can also be determined according to the data record of the data inflow object.
  • the segment is determined according to the data inflow object.
  • the process of the execution segment of the data transaction is as follows: predict the data inflow time interval of the data inflow object based on the data record of the data inflow object, and determine the duration of the execution segment of the segmented data transaction according to the time interval And/or number.
  • the data records of the data flow object can be combined to predict the data flow processing of the data flow object Time interval, and then determine the duration and/or number of the data processing stages of the staged data stream processing transaction according to the time interval.
  • the duration of the data processing stage specifically refers to the length of time for processing the data stream in each time period.
  • Data processing The number of stages specifically refers to the number of data stream processing stages included in a staged data processing transaction.
  • the number of execution segments of segmented data transactions can be determined according to the execution instructions of the data outflow object, and the duration and duration of the execution segments can also be determined according to the data inflow time interval of the data inflow object. / Or the number, it is possible to determine the number of execution stages in combination with the execution processing status of the data outflow object and the data inflow object, which improves the personalized processing of the data outflow object and the data inflow object for the business to be processed.
  • Step S106 Analyze the segmented data transaction based on the execution mode submitted for at least one execution segment of the segmented data transaction to obtain a target data transaction corresponding to the execution mode.
  • the execution mode specifically refers to the processing mode submitted in the process of processing the at least one execution segment, and the segmented data transaction will be analyzed based on the execution mode submitted for the at least one execution segment ,
  • the obtained target data transaction specifically refers to a transaction corresponding to the at least one execution segment.
  • the segmented invocation transaction record determines the invocation task, namely the initial data processing stage, the intermediate data processing stage and the end data processing stage.
  • the method is that the data stream provided by the intermediate data object is executed for the intermediate data processing stage.
  • the segmented call transaction is analyzed based on the execution method, and the target data transaction corresponding to the execution method is obtained, that is, the intermediate data is required.
  • the data stream provided by the object completes the sub-call tasks corresponding to the intermediate data processing stage.
  • the corresponding execution stage includes each transaction stage in the staged transaction process; in the case that the segmented data transaction is a staged data flow processing transaction, the corresponding execution stage includes each data processing stage in the staged processing process; In the case that the segmented data transaction is a phased payment transaction, the corresponding execution segment includes each payment phase in the phased payment process.
  • the target data transaction in order to avoid missing the best execution processing time, can be determined by an automatic trigger method, and then the subsequent execution processing process is performed.
  • the specific implementation is as follows: in the case where the execution condition of the execution segment of the segment data transaction is triggered, the corresponding segment is triggered according to the execution condition of the execution segment.
  • the segment execution mode decomposes the segmented data transaction to obtain the target data transaction corresponding to the segmented execution mode.
  • the segmented data transaction is decomposed according to the segmented execution mode corresponding to the execution segment, and the target data transaction corresponding to the segmented execution mode is determined according to the decomposition result; wherein, it corresponds to the segmented execution mode
  • the target data execution information of the at least one execution segment and the target data link are recorded, the target data execution information is determined based on the data execution information of the at least one execution segment, and the target data link Based on the data link determination of the at least one execution segment, the target data execution information and the target data link are used for subsequent execution processing of the target data transaction.
  • the process of determining the target data transaction corresponding to the segmented execution mode it can be determined whether the execution condition of the execution segment of the segmented data transaction is triggered, and the execution condition is not triggered. In the case that the current time node has not reached the time node for executing the processing for the segmented data transaction, no processing is required; when the execution condition is triggered, it indicates that the current time node has reached the time node for the execution of the segmented data transaction. For the time node at which the segmented data transaction is executed, it is necessary to determine the target data transaction corresponding to the execution segment that needs to be executed in the segmented data transaction;
  • the staged data flow processing transaction created based on the data flow M is each of the three data processing stages
  • the data processing stage processes the data flow in accordance with M/3
  • the data execution information of the three data processing stages recorded in the data flow processing transaction in stages is the data flow processing in accordance with M/3 every set time;
  • the data stream can be automatically processed by automatically deducting the data stream M/3 from the database, that is, whether the data outflow object is detected at the set time
  • the data flow M/3 is processed. If not, it will be determined that the execution condition of the data processing stage of the data flow processing transaction in stages is triggered. It can be determined that the data flow M/3 needs to be deducted for the subsequent data processing stage.
  • Data flow processing operations, and in this process it is necessary to analyze the phased data flow processing transaction according to the phased processing method, and determine the target data flow processing transaction corresponding to the phased processing method.
  • the segmented data transaction is decomposed to determine the target data transaction, and the target data transaction can be executed and processed in a timely manner, which effectively improves the efficiency of executing the target data transaction.
  • the target data transaction is determined.
  • the specific implementation method for determining the target data transaction according to the segment execution request is as follows: Receive the segment data
  • the data outflow object of the transaction is for the segmented execution request submitted by the at least one execution segment; based on the segmented execution mode carried in the segmented execution request, the segmented data transaction is decomposed to obtain the same The target data transaction corresponding to the execution mode.
  • target data execution information and target data link of the at least one execution segment are recorded, and the target data execution information is based on the at least one execution segment
  • the target data link is determined based on the data link of the at least one execution segment, and the target data execution information and the target data link are used for subsequent execution of the target data transaction Processing process.
  • the data outflow object actively follows up the target data transaction corresponding to the at least one execution segment at this time
  • the data outflow object can perform subsequent execution processing for the target data transaction corresponding to one execution segment, or perform subsequent execution processing for the target data transaction corresponding to multiple execution segments at the same time; based on this, in the receiving
  • the segmented data transaction is decomposed based on the segmented execution mode carried in the segmented execution request, and the corresponding segmented execution mode can be determined according to the decomposition result.
  • the target data transaction is decomposed based on the segmented execution mode carried in the segmented execution request, and the corresponding segmented execution mode can be determined according to the decomposition result.
  • the segment execution method decomposes the segmented data transaction to obtain the target data transaction, which improves the arbitrariness of the data outflow object, and can propose subsequent execution processing for the target data transaction at any time, and in the data outflow object
  • the target data transaction that has not been processed in the segmented data transaction can be executed in advance, so that the data outflow object can perform the processing for the pending business in advance.
  • Step S108 Perform execution processing on the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction.
  • the target data execution information of the at least one execution segment and the target data transaction will be determined according to the target data transaction.
  • For the target data link it is only necessary to perform execution processing for the target data transaction based on the target data execution information and the target data link.
  • the execution information for the intermediate data processing stage is to call the data flow M to complete the sub-calling task, and for the data link of the intermediate data processing stage
  • the data volume provider provides the number of completed sub-call tasks, and then based on the execution information and data link of the intermediate data processing stage, the target data transaction corresponding to the intermediate data processing stage can be executed.
  • the data stream M provided by the provider completes the sub-calling task.
  • the specific implementation manner is as follows: Read the target data execution information Contains the data flow value corresponding to the at least one execution stage; according to the target data link, deduct the deduction amount corresponding to the data flow value from the data quota of the data account space of the data outflow object, and, The data resource corresponding to the data flow value is transferred from the actual data account corresponding to the data account space of the data outflow object to the data account of the segmented data transaction data inflow object; wherein, the target data link
  • the data node corresponds to at least the data account space of the data outflow object and the data account of the data inflow object; the duration of the data settlement cycle of the data account space is equal to the execution processing cycle of the execution segment of the segmented data transaction If the duration is the same, the data quota of the data account space is deducted from the deduction amount in the previous data settlement cycle. After the data settlement processing in the subsequent data settlement cycle, the deduction amount is deducted from the data quota. The minus is updated.
  • the data account space is the storage space for the data stream provided by the intermediate data object to the data outflow object
  • the data quota in the data account space is the available data provided by the intermediate data object to the data outflow object
  • the available data stream needs to be processed by the data outflow object at a set time node.
  • the actual data account is the account of the data stream resource corresponding to the available data stream provided to the intermediate data object.
  • the target data stream processing transaction needs to be executed at this time, and the data stream is determined to be M/3. At this time, it will be deducted from the data stream storage space of the data outflow object
  • the available data stream equal to the data stream M/3, and the account of the party providing the available data stream will transfer the data stream resources equal to the data stream M/3 to the data inflow object, and the data outflow object and data inflow object can be determined
  • the data stream resource equal to the data stream M/3 will be transferred from the account of the data stream resource storage of the data outflow object.
  • the execution segment in order to avoid occupying too much data quota in the data account space, the execution segment can be used to execute processing for the segmented data transaction, so as to achieve the data quota.
  • the deduction is performed according to the data flow data of the execution section, so that the to-be-processed business can also be completed in the case that the data outflow object performs the call pressure for the data resource.
  • the data resource corresponding to the data flow value can also be directly transferred to the data inflow object through the data account of the data outflow object Data account to avoid the intermediary from causing excessive additional data resources and affecting the experience effect of the data outflow object participating in the pending service.
  • the data outflow object directly
  • the specific implementation of the data account transfer to the data account data resource of the data inflow object is as follows: read the data flow value corresponding to the at least one execution segment contained in the target data execution information; according to the target data Link, transferring data resources corresponding to the data flow value from the data account of the data outflow object to the data account of the data inflow object; wherein, the start data node of the target data link corresponds to the Data flows out of the data account of the object, and the terminating data node corresponds to the data account of the data inflow object.
  • the data outflow object can directly transfer the data resource to the data.
  • Inflow objects on the basis of reducing the cost of data flow, further improve the execution and processing efficiency of the target data transaction.
  • the data flow data calculates the first execution additional data value.
  • the specific implementation is as follows: according to the data flow value and the first execution additional data corresponding to the at least one execution segment Data accounting, calculating the first execution additional data value corresponding to the at least one execution segment; performing the data settlement processing of the first execution additional data value on the data inflow object; wherein, the first execution additional data accounting
  • the ratio includes the processing fee rate generated by the execution processing of the segmented data transaction in the at least one execution segment, and the first execution additional data value obtained by calculating the proportion of the first execution additional data is determined by the The data flows into the subject.
  • the data flow value is proportional to the proportion of the first execution attached data.
  • the data flow from the object to the data flow in the process of the object processing data flow M/3 the actual data account
  • the intermediate data object to which it belongs will receive a certain additional data stream for the data stream M/3.
  • the additional data stream can be calculated based on the 2% of the additional data stream in each data processing stage, that is, the data flowing into the object needs to be sent to the intermediate data object.
  • the data inflow object needs to process the data that has not yet been called by the data outflow object.
  • the data inflow object can submit a second execution request
  • the data transaction corresponding to the remaining execution segment is executed according to the second execution request, so that the data inflow object can be executed in the execution segment of the segmented data transaction.
  • the data transaction corresponding to the remaining execution segment is directly executed and completed.
  • the specific implementation is as follows: the data inflow object of the segmented data transaction is received and submitted for the remaining execution segment The second pre-execution request; based on the second pre-execution mode carried in the second pre-execution request, the data execution information and the data link corresponding to the remaining execution segments are assembled to obtain the second pre-execution
  • the second intermediate data transaction corresponding to the mode; the second total data flow value corresponding to the second pre-execution request is recorded in the second intermediate data transaction; through the data account of the intermediate data object from the segmented data transaction
  • the method of applying for the data resource corresponding to the second total data flow value to the data account of the data inflow object is to perform processing on the second intermediate data transaction; according to the data outflow object and the data outflow object of the segmented data transaction
  • the account path of the two data accounts of the intermediate data object determines the second segment data link from the data outflow object to the intermediate data object; according to the second segment data link and the remaining execution segment
  • the two-segment data transaction is the total data transaction of the data transaction corresponding to the remaining execution segment; based on this, first, according to the second pre-execution mode carried in the second pre-execution request, all the data execution information corresponding to the remaining execution segment and All the data links are assembled to obtain the second intermediate data transaction corresponding to the second pre-execution mode, and the second total data flow value corresponding to the second pre-execution request is recorded in the second intermediate data transaction; and then through The data account of the intermediate data object of the segmented data transaction applies for the data resource corresponding to the second total data flow data to the data account of the data inflow object to perform execution processing on the second intermediate data transaction, Finally, according to the account path of the data accounts of both the data outflow object and the intermediate data object, the second segment data link from the data
  • the second pre-execution request carried in the second pre-execution request submitted by the data inflow object will be used at this time.
  • the execution mode is to construct the data flow execution information and the data flow execution link corresponding to the remaining data flow processing stage to obtain the second intermediate data transaction.
  • the second intermediate data transaction is the intermediate data object provided and not provided to the data inflow object.
  • the data resource with the same value of the called data stream will be applied to the data stream account of the data inflow object through the data stream account of the intermediate data object.
  • the data flow of the transaction performs processing.
  • the data outflow object needs to provide data resources to the intermediate data object at this time, and a second segmented data transaction of the intermediate data object and the data outflow object will be established.
  • the method of deducting the data quota from the data account space of the data outflow object, transferring the data resources corresponding to the part of the data quota from the actual data account to the data account of the intermediate data object one or more implementations of this embodiment , The specific implementation is as follows: in the case where the execution condition of at least one of the remaining execution segments of the second segmented data transaction is triggered, read the triggered remaining segment of the second segmented data transaction The second segment data flow value corresponding to the execution segment; according to the second segment data link, the data limit of the data account space of the data outflow object is deducted by the deduction corresponding to the second segment data flow value Deduction, and transferring the data resource corresponding to the second segmented data flow value from the actual data account corresponding to the data account space of
  • the data outflow object also needs to call the data stream provided by the intermediate data object for the data inflow object.
  • the data outflow object and the intermediate data need to be established.
  • data stream call processing is performed on the second segment data transaction to realize the data stream value deduction from the data account space of the data out of the object.
  • the value of the data stream is called, and at the same time, the data resource equal to the value of the total called data stream is transferred from the actual data account of the data account space of the data outflow object to the data account space of the intermediate data object.
  • the data transaction corresponding to the execution segment that has not been processed can be performed in advance according to the execution request of the data inflow object.
  • the execution processing realizes the improvement of the efficiency of the execution processing of the data flow object.
  • the data processing method provided in this specification obtains metadata of the service to be processed, and creates a segmented data transaction of the service to be processed based on the metadata, and then based on at least one execution segment of the segmented data transaction
  • the submitted execution mode is to analyze the segmented data transaction, and execute the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction obtained by the analysis result Processing, the corresponding execution segment is processed more flexibly according to the submitted execution mode, and at the same time, the pending business is executed in the form of data transaction, which improves the processing efficiency and processing consistency of business data processing.
  • FIG. 2 shows a processing flowchart of a data processing method applied to a transaction service provided by an embodiment of this specification, which specifically includes the following steps S202 to S214.
  • Step S202 Obtain metadata of the service to be processed.
  • the data processing method will be described with the business to be processed as a transaction business, where the metadata refers to the total transaction amount required for the transaction business; in the transaction business scenario, the transaction party and In the process of the transaction for the transaction item, the transaction party needs to provide the transaction amount for the transaction item to obtain the ownership of the transaction item, and often the transaction amount involved in the transaction item is a relatively large number.
  • the transaction party cannot provide the full transaction amount at one time, it is easy to happen.
  • a certain transaction amount can be provided to the transaction party so that the transaction party can target the transaction item Normal transactions are carried out, and the transaction amount provided to the transaction party can be settled in a phased settlement.
  • the transaction platform that provides the transaction quota can provide the full transaction quota for the transaction item to the transaction party at one time, and the transaction party can target the transaction provided by the transaction platform
  • the quota is cleared in stages to realize that the transaction party can obtain the required transaction items, and the transactionee can also make the transaction items be traded, and the trading platform can promote the activity of the transaction, so as to achieve a situation of mutual benefit.
  • the execution of processing requires data support involving multiple processing platforms.
  • the data processing method can be implemented on the basis of a distributed system. Specifically, by creating a distributed transaction corresponding to the business to be processed, and based on the distributed system The coordination among transaction-supporting servers, resource servers, and transaction managers deployed on different nodes enables the creation of distributed transactions on the basis of metadata, and the execution of distributed transactions according to the submitted execution mode , So as to further improve the processing efficiency and processing consistency of the business execution processing of the business to be processed.
  • the specific implementation method of the admission restriction verification process is as follows: Determine whether the processing value of the data to be processed contained in the metadata is less than or equal to the available data in the data account space of the data outflow object of the segmented data transaction Quota; if yes, perform the following step S204; if no, push a notification of processing failure to the data outflow object.
  • step S204 first determine the processing value of the to-be-processed data contained in the metadata, and then determine whether the processing value of the to-be-processed data is less than or equal to the available data quota of the account space of the data outflow object that the segmented data refers to, If yes, it indicates that the data outflow object meets the access restriction at this time, and subsequent segmented data transactions can be created for the metadata, and the following step S204 can be performed; if not, it indicates that the data outflow object does not meet the access restriction at this time, and you can A reminder of processing failure is pushed to the data outflow object, and the reminder is related information that the data outflow object cannot perform processing for the segmented data transaction.
  • the data outflow object is checked for admission, which not only improves the security of the business scenario to be processed, but also has a certain restrictive effect on the data outflow object to avoid non-disclosure.
  • the normal data outflow object has an abnormal impact on the business to be processed.
  • Step S204 Create a segmented data transaction of the service to be processed according to the metadata.
  • the data execution information and data links of each execution segment are recorded in the segmented data transaction.
  • a segmented data transaction of the service to be processed can be created according to the metadata, wherein the segmented data
  • the transaction specifically refers to the transaction to be processed after the transaction to be processed is divided according to each execution segment, and the data execution information and data link of each execution segment are recorded in the segmented data transaction.
  • a staged transaction transaction is created based on the total transaction amount of the transaction business, that is, the transaction amount can be provided in stages for the total transaction amount, and the transaction items are traded. Accordingly, each transaction stage is recorded in the staged transaction transaction.
  • the transaction amount information and the transaction link are included in a staged transaction transaction.
  • the recommended number of execution segments will be determined according to the historical data log of the data outflow object. The determination is made according to the execution instruction of the data outflow object.
  • the specific implementation of determining the data of the execution segment is as follows: according to the data outflow object of the segmented data transaction The historical data log determines the recommended number of execution segments pushed to the data outflow object, and determines the number of execution segments of the segmented data transaction according to the execution instructions submitted by the data outflow object for the recommended number.
  • the data outflow object in the transaction business is the transaction party.
  • the number of transaction stage recommendations pushed to the transaction party will be determined based on the historical data log of the transaction party in the staged transaction transaction, which is the transaction party. It is recommended to divide the staged transaction transaction into N transaction stages for subsequent transaction processing, and push the recommended number to the transaction party; based on this, the transaction party can accept the recommended number according to the selection, and divide the staged transaction transaction according to the recommended number
  • the execution requirements can also be submitted for execution instructions for staged transaction transactions, and the staged transaction transactions are divided into P transaction stages. In the transaction stage based on the division, the target transaction transaction corresponding to the transaction stage is subsequently processed. That's it.
  • the duration and/or number of the execution stages of the segmented data transaction can also be determined according to the data record of the data inflow object.
  • the segment is determined according to the data inflow object.
  • the process of the execution segment of the data transaction is as follows: predict the data inflow time interval of the data inflow object based on the data record of the data inflow object, and determine the duration of the execution segment of the segmented data transaction according to the time interval And/or number.
  • the data inflow object in the transaction business is the transacted party.
  • the data records of the transacted party can be combined to predict the transacted party.
  • the duration and/or number of the transaction phases of the phased transaction transaction can be determined according to the time interval.
  • the duration of the transaction phase specifically refers to the length of time for the transaction to process the transaction amount in each time period.
  • the transaction phase The number specifically refers to the value of the transaction amount processed in each time period.
  • the transaction phases of a phased transaction can be divided according to the respective intentions of the transaction party or the counterparty, so as to be more suitable for the transaction party or the counterparty.
  • the transaction processing intention of the transaction is to provide a better experience effect for the transaction party and the transacted party.
  • Step S206 in the case that the execution condition of the execution segment of the segmented data transaction is triggered, the segmented data transaction is decomposed according to the segmented execution mode corresponding to the triggered execution condition of the segmented data transaction to obtain The target data transaction corresponding to the segmented execution mode.
  • the segmented data transaction will be performed according to the segmented execution mode corresponding to the execution segment.
  • the execution condition of the execution segment of the segmented data transaction it can be determined whether the execution condition of the execution segment of the segmented data transaction is triggered, and the execution condition is not triggered. In the case that the current time node has not reached the time node for executing the processing for the segmented data transaction, no processing is required; when the execution condition is triggered, it indicates that the current time node has reached the time node for the execution of the segmented data transaction.
  • the target data transaction corresponding to the execution segment that needs to be executed in the segmented data transaction For the time node at which the segmented data transaction is executed, it is necessary to determine the target data transaction corresponding to the execution segment that needs to be executed in the segmented data transaction; based on this, first determine the execution segment that is triggered by the execution condition According to the corresponding segmented execution mode, the segmented data transaction is decomposed according to the segmented execution mode, and finally the target data transaction corresponding to the segmented execution mode is obtained.
  • the transaction party needs to pay the transaction amount N to the trading platform for the transaction item.
  • the staged transaction created based on the transaction amount N is that in each of the four transaction stages, the transaction amount is calculated according to N/4.
  • the data execution information of the four transaction stages recorded in the staged transaction transaction is the amount of the settlement transaction per month according to N/4, and the transaction link is deducted through the transaction account of the transaction party;
  • the transaction amount can be automatically deducted by automatically deducting the N/4 transaction amount from the trading account, that is, the transaction is detected at the settlement time of each month Whether the party pays off the N/4 transaction amount, if not, it will be determined at this time that the execution conditions of the transaction stage of the staged transaction transaction are triggered, and then the transaction amount that needs to be deducted in this transaction stage can be determined, and the subsequent transaction amount will be deducted In this process, it is first necessary to analyze the phased transaction transaction according to the phased transaction method of this transaction stage, and determine that the target transaction transaction corresponding to the phased transaction method is N for the second transaction stage through the trading account. /4 The amount of the transaction is the business of repayment.
  • the corresponding phased transaction method can be automatically triggered according to the execution conditions.
  • the transaction transaction is decomposed to determine the target transaction transaction, and the target transaction transaction can be processed in a timely manner in the follow-up, which effectively improves the efficiency of the target transaction transaction processing.
  • the target data transaction is determined.
  • the specific implementation method for determining the target data transaction according to the segment execution request is as follows: Receive the segment data
  • the data outflow object of the transaction is for the segmented execution request submitted by the at least one execution segment; based on the segmented execution mode carried in the segmented execution request, the segmented data transaction is decomposed to obtain the same The target data transaction corresponding to the execution mode.
  • target data execution information and target data link of the at least one execution segment are recorded, and the target data execution information is based on the at least one execution segment
  • the target data link is determined based on the data link of the at least one execution segment, and the target data execution information and the target data link are used for subsequent execution of the target data transaction Processing process.
  • the data outflow object actively follows up the target data transaction corresponding to the at least one execution segment at this time
  • the data outflow object can perform subsequent execution processing for the target data transaction corresponding to one execution segment, or perform subsequent execution processing for the target data transaction corresponding to multiple execution segments at the same time; based on this, in the receiving
  • the segmented data transaction is decomposed based on the segmented execution mode carried in the segmented execution request, and the corresponding segmented execution mode can be determined according to the decomposition result.
  • the target data transaction is decomposed based on the segmented execution mode carried in the segmented execution request, and the corresponding segmented execution mode can be determined according to the decomposition result.
  • the transaction party needs to pay the transaction amount N to the trading platform for the transaction item.
  • the staged transaction created based on the transaction amount N is that in each of the four transaction stages, the transaction amount is calculated according to N/4.
  • the data execution information of the four transaction stages recorded in the staged transaction transaction is the amount of the transaction to be settled in accordance with N/4 each month.
  • the transaction link is deducted through the transaction account of the transaction party; and the transaction party in order to be able to Perform settlement processing for the unsettled transaction amount in a timely manner.
  • the phase-by-phase transaction method for the fourth transaction phase breaks down the phased transaction transaction, and determines the target corresponding to the phased transaction method of the third transaction stage and the phased transaction method of the fourth transaction stage
  • the transaction transaction is a transaction that settles the N/2 transaction amount of the third transaction stage and the fourth transaction stage through the transaction account.
  • the transaction party in the case of receiving a segmented execution request, it means that the transaction party has the intention to actively carry out subsequent transaction processing for the target transaction at this time, and the phased transaction can be processed based on the phased transaction method carried in the segmented execution request. Decompose to obtain the target transaction transaction, which improves the arbitrariness of the transaction party.
  • the subsequent transaction processing can be proposed for the target transaction transaction at any time, and when the transaction amount of the transaction party is sufficient, the transaction transaction can be checked in advance. Transaction processing is performed on the target transaction transaction of transaction processing, so that the transaction party can complete the transaction processing for the transaction business in advance.
  • Step S208 Read the data flow value corresponding to the at least one execution segment included in the target data execution information.
  • the at least one execution contained in the target data execution information recorded in the target data transaction will be read
  • the data flow value corresponding to the segment where the data flow value specifically refers to a value corresponding to the amount of data that needs to be used for processing the target data transaction.
  • the data flow value in the transaction business is the settlement transaction amount corresponding to the transaction stage; following the above example, the data flow value in the third transaction stage is the transaction amount of N/4, and the fourth transaction The data flow value of the stage is the transaction amount of N/4.
  • Step S210 According to the target data link, deduct the deduction amount corresponding to the data flow value from the data quota of the data account space of the data outflow object, and the deduction amount corresponding to the data account space of the data outflow object.
  • the actual data account transfers the data resource corresponding to the data flow value to the data account of the data inflow object of the segmented data transaction.
  • the data node of the target data link corresponds to at least the data account space of the data outflow object and the data account of the data inflow object; the duration of the data settlement period of the data account space is related to the segment The duration of the execution processing cycle of the execution section of the data transaction is the same.
  • the data quota of the data account space is deducted from the data quota of the data account space in the previous data settlement cycle. After the data settlement processing of the latter data settlement cycle, the said deduction quota is deducted from the data quota of the data account space. Deduction amount The deduction of the data amount is updated.
  • the data account space is the storage space for the transaction quota provided by the trading platform to the transaction party, and the data quota in the data account space is the transaction platform’s transfer to the transaction party.
  • the amount of expenditure provided, and the amount of expenditure needs to be repaid by the transaction party at the set time node.
  • the actual data account is the account of the party that provides the trading platform with funds corresponding to the amount of expenditure, and the data flows into the object It is the transacted party, and the data account is the account of the transacted party's storage quota.
  • the target transaction transaction needs to be executed at this time, and the transaction amount is determined to be N/2.
  • the transaction amount will be deducted from the transaction account of the transaction party.
  • Equivalent spending limit, and the account of the party providing the spending limit will transfer resources equal to the N/2 transaction amount to the counterparty. It can be determined that the transaction process between the transaction party and the counterparty for the transaction item is over, and the follow-up The transaction party only needs to pay off the resources equal to the transaction amount N/2 to the transaction account.
  • the transaction processing in order to avoid occupying the excessive transaction quota in the transaction account of the transaction party, the transaction processing can be performed for the phased transaction transaction in the designated segment method, so as to achieve the transaction quota. Deductions are made in accordance with the transaction quota at the transaction stage, and the transaction business can also be completed while reducing the pressure on the transaction party to deal with the transaction quota.
  • the data resource corresponding to the data flow value can also be directly transferred to the data inflow object through the data account of the data outflow object Data account to avoid excessive additional data resources caused by intermediary parties and affect the experience effect of data outflow objects participating in the pending service.
  • the data outflow is directly used
  • the specific implementation manner of transferring the corresponding data account to the data account data resource of the data inflow object is as follows: read the data flow value corresponding to the at least one execution segment contained in the target data execution information;
  • the target data link transfers the data resource corresponding to the data flow value from the data account of the data outflow object to the data account of the data inflow object; wherein, the start data node of the target data link corresponds to When the data flows out of the data account of the object, the terminating data node corresponds to the data account of the data inflow object.
  • the transaction corresponding to the third transaction stage is determined based on the target data execution information recorded in the target transaction transaction. Amount N/4.
  • the transaction resource corresponding to the transaction amount N/4 is transferred from the transaction account of the transaction party, and this part of the transaction resource is transferred to the transactional party’s transaction account.
  • the transaction party in order to facilitate the flow of transaction quotas during the process of transaction processing for the target transaction, and to prevent the intermediate party from receiving additional transaction quotas, the transaction party can directly transfer the transaction quota to the counterparty, thereby reducing the transaction Based on the flow cost of the quota, the transaction processing efficiency of the target transaction transaction is further improved.
  • Step S212 Calculate the first execution additional data value corresponding to the at least one execution stage according to the data flow value and the proportion of the first execution additional data corresponding to the at least one execution stage.
  • the first execution additional data value can be calculated according to the data flow data, and then the first execution additional data value can be calculated according to the first execution additional data value. Data flows into the object for settlement.
  • the data flow value is proportional to the proportion of the first execution attached data.
  • the actual data account belongs to The trading platform will charge a certain additional transaction limit for the transaction limit N/4.
  • Y represents the first execution additional data value
  • X represents the data flow value
  • am represents the proportion of the first execution additional data
  • Step S214 Perform data settlement processing of the first execution additional data value on the data inflow object.
  • the data settlement processing will be performed for the data inflow object, wherein the proportion of the first execution additional data is Including the processing fee rate generated by the execution processing of the segmented data transaction in the at least one execution segment, and the first execution additional data value obtained by calculating the proportion of the first execution additional data is flowed from the data Subject to bear.
  • the data inflow object needs to process the data that has not yet been called by the data outflow object.
  • the data inflow object can submit a second execution request
  • the data transaction corresponding to the remaining execution segment is executed according to the second execution request, so that the data inflow object can be executed in the execution segment of the segmented data transaction.
  • the data transaction corresponding to the remaining execution segment is directly executed and completed.
  • the specific implementation is as follows: the data inflow object of the segmented data transaction is received and submitted for the remaining execution segment The second pre-execution request; based on the second pre-execution mode carried in the second pre-execution request, the data execution information and the data link corresponding to the remaining execution segments are assembled to obtain the second pre-execution
  • the second intermediate data transaction corresponding to the mode; the second total data flow value corresponding to the second pre-execution request is recorded in the second intermediate data transaction; through the data account of the intermediate data object from the segmented data transaction
  • the method of applying for the data resource corresponding to the second total data flow value to the data account of the data inflow object is to perform processing on the second intermediate data transaction; according to the data outflow object and the data outflow object of the segmented data transaction
  • the account path of the two data accounts of the intermediate data object determines the second segment data link from the data outflow object to the intermediate data object; according to the second segment data link and the remaining execution segment
  • the two-segment data transaction is the total data transaction of the data transaction corresponding to the remaining execution segment; based on this, first, according to the second pre-execution mode carried in the second pre-execution request, all the data execution information corresponding to the remaining execution segment and All data links are assembled to obtain a second intermediate data transaction corresponding to a second pre-execution mode, where a second total data flow value corresponding to the second pre-execution request is recorded in the second intermediate data transaction;
  • the second intermediate data transaction is executed by applying for the data resource corresponding to the second total data flow data to the data account of the data inflow object through the data account of the intermediate data object of the segmented data transaction Processing, and finally, according to the account paths of the data accounts of the data outflow object and the intermediate data object, determine the second segmented data link from the data outflow object to the intermediate data object; according to the first
  • the second-segment data link and the data execution information of the remaining execution stage form a second-segment data transaction corresponding to the remaining execution stage.
  • the data outflow object needs to provide data resources to the intermediate data object at this time, and a second segmented data transaction of the intermediate data object and the data outflow object will be established.
  • the method of deducting the data quota from the data account space of the data outflow object, transferring the data resources corresponding to the part of the data quota from the actual data account to the data account of the intermediate data object one or more implementations of this embodiment , The specific implementation is as follows: in the case where the execution condition of at least one of the remaining execution segments of the second segmented data transaction is triggered, read the triggered remaining segment of the second segmented data transaction The second segment data flow value corresponding to the execution segment; according to the second segment data link, the data limit of the data account space of the data outflow object is deducted by the deduction corresponding to the second segment data flow value Deduction, and transferring the data resource corresponding to the second segmented data flow value from the actual data account corresponding to the data account space of
  • the execution processing realizes the improvement of the convenience of the execution processing of the data inflow object.
  • the data processing method used in the transaction business realizes that the transaction processing can be carried out in a phased transaction manner for the transaction business, so that only a small transaction amount can be provided in each transaction stage to complete the transaction business , And the transaction party does not need to provide the full amount of transaction quota at one time, nor will it occupy all the spending quota of the transaction party’s trading account.
  • the transaction party only needs to perform transaction processing in accordance with the various transaction stages of the phased transaction transaction to achieve the transaction
  • the transaction processing of the business not only improves the experience of the transaction party, but also makes the transaction business scene more active.
  • FIG. 3 shows a processing flowchart of a data processing method applied to a payment service provided by an embodiment of this specification, which specifically includes the following steps S302 to S316.
  • Step S302 Obtain metadata of the service to be processed.
  • the data processing method will be described as well as that the service to be processed is a payment service, where the metadata specifically refers to the total payment funds that the payment user needs to pay to the merchant in the payment service; in the payment service scenario , In the process of the transaction between the paying user and the merchant, the user needs to pay a certain amount to the merchant to obtain the ownership of the product, and the amount that needs to be paid for the product is often a large amount of money.
  • the payment platform will provide the user with a payment line, through which the payment line can also be paid for the funds, but a one-time Occupying too much payment limit will cause difficulty in the process of paying users to settle the payment limit, so solving the above problems will bring a better quality transaction environment for payment users.
  • the payment method is that the payment user has paid for the product by choosing installment payment on the payment platform, that is, the payment user uses the payment limit provided by the payment platform to pay for the product.
  • Payment is made in a phased payment method, and the payment platform will transfer funds equal to the payment limit of each phase to the merchant at the payment time each month, and will freeze the payment equal to the part of the funds in the payment account of the paying user For the payment limit, the paying user only needs to repay the same amount of funds for this part of the payment limit.
  • the payment platform that provides the payment line can transfer the funds corresponding to the full payment line for the product to the merchant at one time, and the paying user can pay for the payment line provided by the payment platform
  • the payment is settled in stages, and the fund provider who provides payment funds equal to the payment amount issues the funds, and when the payment user pays the payment platform according to the settlement funds of each payment stage, the payment platform will pay the fund provider according to the payment amount. Replenish this part of funds equal to the number of times in each payment stage, so that payment users can obtain the goods they need, merchants can obtain funds immediately after the goods are sold, and payment platforms and fund providers can promote the flow of funds to achieve multi-party access Profitable situation.
  • the execution of processing requires data support involving multiple processing platforms.
  • the data processing method can be implemented on the basis of a distributed system. Specifically, by creating a distributed transaction corresponding to the business to be processed, and based on the distributed system The coordination among transaction-supporting servers, resource servers, and transaction managers deployed on different nodes enables the creation of distributed transactions on the basis of metadata, and the execution of distributed transactions according to the submitted execution mode , So as to further improve the processing efficiency and processing consistency of the business execution processing of the business to be processed.
  • the specific implementation method of the admission restriction verification process is as follows: Determine whether the processing value of the data to be processed contained in the metadata is less than or equal to the available data in the data account space of the data outflow object of the segmented data transaction Quota; if yes, execute the following step S304; if no, push a notification of processing failure to the data outflow object.
  • step S304 first determine the processing value of the to-be-processed data contained in the metadata, and then determine whether the processing value of the to-be-processed data is less than or equal to the available data quota of the account space of the data outflow object that the segmented data refers to, If yes, it indicates that the data outflow object meets the access restriction at this time, and subsequent segmented data transactions can be created for the metadata, and the following step S304 can be performed; if not, it indicates that the data outflow object does not meet the access restriction at this time, and you can A reminder of processing failure is pushed to the data outflow object, and the reminder is related information that the data outflow object cannot perform processing for the segmented data transaction.
  • the data outflow object is checked for admission, which not only improves the security of the business scenario to be processed, but also has a certain restrictive effect on the data outflow object to avoid non-disclosure.
  • the normal data outflow object has an abnormal impact on the business to be processed.
  • Step S304 Create a segmented data transaction of the service to be processed according to the metadata.
  • the data execution information and data links of each execution segment are recorded in the segmented data transaction.
  • a segmented data transaction of the service to be processed can be created according to the metadata, wherein the segmented data
  • the transaction specifically refers to the transaction to be processed after the transaction to be processed is divided according to each execution segment, and the data execution information and data link of each execution segment are recorded in the segmented data transaction.
  • each phased transaction transaction records each Payment limit information and payment links in the payment phase, where the payment limit information specifically refers to the funds corresponding to the payment limit that the payment user needs to pay to the payment platform for each payment phase, and the payment platform needs to pay the merchant corresponding to the payment limit
  • the payment link specifically refers to the payment path used by the payment user to pay the funds corresponding to the payment amount.
  • Step S306 Determine the recommended number of execution segments pushed to the data outflow object according to the historical data log of the data outflow object of the segmented data transaction, and according to the execution instructions submitted by the data outflow object for the recommended number Determine the number of execution stages of the segmented data transaction.
  • the direction can be determined according to the historical data log of the data outflow object.
  • the recommended number of execution segments pushed by the data outflow object, and the number of execution segments of the segmented data transaction may be determined according to the execution instructions submitted by the data outflow object for the recommended number.
  • the phased payment transaction for the goods needs to be divided according to the payment stage, and the division of the payment stage can be based on the payment user's historical payment
  • the data recorded in the log confirms that the process of determining that the paying user pays off the payment limit usually chooses to pay in 10 stages.
  • the number of recommendations in the payment stage pushed by the payment platform to the paying user is 10; or the paying user can also follow Customize the number of payment stages for your own needs.
  • the payment user when the execution instruction submitted by the payment user for the phased payment transaction is to divide the phased payment transaction into 5 payment phases, the payment user needs to pay 5 times the payment limit for the commodity.
  • the duration and/or number of the execution stages of the segmented data transaction can also be determined according to the data record of the data inflow object.
  • the segment is determined according to the data inflow object.
  • the process of the execution segment of the data transaction is as follows: predict the data inflow time interval of the data inflow object based on the data record of the data inflow object, and determine the duration of the execution segment of the segmented data transaction according to the time interval And/or number.
  • the data inflow object is the merchant in the payment business.
  • the process of determining the duration and/or number of the payment phase of a phased payment transaction it is to determine the number of payment phases and the time corresponding to each payment phase
  • the historical data of the merchant’s funds used can be used to determine the settlement time for the payment line. If the merchant needs to use funds for purchases on the 5th of each month, the settlement time can be set from the 1st to the 1st of each month. Between the 4th, so that the merchant can have funds available during the purchase process, the number of payment stages can also be determined based on the merchant’s historical data.
  • phased payment transaction will be divided into fewer payment phases. Conversely, if the amount of funds required by the merchant on the 5th is small, the phased payment transaction of the paying user will be divided into more payment phases; and the number of payment phases can also be It is set by the merchant, and this manual does not make any restrictions here.
  • the payment phases of the phased payment transaction can be divided according to the respective intentions of the paying user or the merchant, so that the paying user can settle the payment amount according to their own intentions.
  • merchants can obtain funds corresponding to the payment limit according to their own intentions, thereby improving the experience of payment users and merchants.
  • Step S308 in the case that the execution condition of the execution segment of the segmented data transaction is triggered, decompose the segmented data transaction according to the segmented execution mode corresponding to the triggered execution condition of the segmented data transaction to obtain The target data transaction corresponding to the segmented execution mode.
  • the segmented data transaction will be performed according to the segmented execution mode corresponding to the execution segment.
  • the process of determining the target data transaction corresponding to the segmented execution mode it can be determined whether the execution condition of the execution segment of the segmented data transaction is triggered, and the execution condition is not triggered. In the case that the current time node has not reached the time node for executing the processing for the segmented data transaction, no processing is required; when the execution condition is triggered, it indicates that the current time node has reached the time node for the execution of the segmented data transaction. For the time node at which the segmented data transaction is executed, it is necessary to determine the target data transaction corresponding to the execution segment that needs to be executed in the segmented data transaction;
  • the paying user performs 10 payment stages for the goods, and the price of the paid goods is 1,000 yuan, so each payment stage needs to pay the payment platform 100 yuan corresponding to the payment limit of 100, and in the payment In the fifth payment stage of the payment process for the product, the paying user needs to pay 100 yuan to the payment platform at this time;
  • the fifth phased payment method of decomposes the phased payment transaction to obtain the target payment transaction, and the target payment transaction is the transaction that clears the payment line of 100 for the fifth payment stage.
  • the target payment transaction corresponding to the payment stage of the payment user can be automatically determined, so as to facilitate the reminding the payment user that the target payment transaction is required.
  • the payment transaction is processed to settle the payment quota, which effectively promotes the enthusiasm of payment users.
  • the target data transaction is determined.
  • the specific implementation method for determining the target data transaction according to the segment execution request is as follows: Receive the segment data
  • the data outflow object of the transaction is for the segmented execution request submitted by the at least one execution segment; based on the segmented execution mode carried in the segmented execution request, the segmented data transaction is decomposed to obtain the same The target data transaction corresponding to the execution mode.
  • target data execution information and target data link of the at least one execution segment are recorded, and the target data execution information is based on the at least one execution segment
  • the target data link is determined based on the data link of the at least one execution segment, and the target data execution information and the target data link are used for subsequent execution of the target data transaction Processing process.
  • the data outflow object actively follows up the target data transaction corresponding to the at least one execution segment at this time
  • the data outflow object can perform subsequent execution processing for the target data transaction corresponding to one execution segment, or perform subsequent execution processing for the target data transaction corresponding to multiple execution segments at the same time; based on this, in the receiving
  • the segmented data transaction is decomposed based on the segmented execution mode carried in the segmented execution request, and the corresponding segmented execution mode can be determined according to the decomposition result.
  • the target data transaction is decomposed based on the segmented execution mode carried in the segmented execution request, and the corresponding segmented execution mode can be determined according to the decomposition result.
  • the paying user performs 10 payment stages for the product, and the price of the paid product is 1,000 yuan, so each payment stage needs to pay the payment platform 100 yuan corresponding to the payment limit of 100, and In the payment process of the fifth payment stage of the payment user for the goods, the payment user needs to pay 100 yuan to the payment platform at this time; and the payment user can settle the outstanding payment limit in time, and the payment user can Proactively submit a staged execution request for the fifth payment stage.
  • the staged payment transaction is decomposed based on the staged payment method for the fifth payment stage carried in the staged execution request, and the target payment corresponding to the fifth payment stage is determined
  • the transaction is a transaction for repaying the payment limit 100 in the fifth payment stage through the payment account of the payment user.
  • the payment method can be based on the staged payment method carried in the staged execution request.
  • the payment transaction is decomposed in stages to obtain the target payment transaction, which improves the arbitrariness of the payment user to pay off the payment line, and can pay off the payment line in advance at any time, which makes it more convenient for the merchant to receive the funds corresponding to the payment line in advance.
  • Step S310 Read the data flow value corresponding to the at least one execution segment included in the target data execution information.
  • the at least one execution contained in the target data execution information recorded in the target data transaction will be read
  • the data flow value corresponding to the segment where the data flow value specifically refers to a value corresponding to the amount of data that needs to be used for processing the target data transaction.
  • the data flow value in the payment service is the payment limit of 100 for the fifth payment stage.
  • Step S312 According to the target data link, deduct the deduction amount corresponding to the data flow value from the data quota of the data account space of the data outflow object, and the deduction amount corresponding to the data account space of the data outflow object.
  • the actual data account transfers the data resource corresponding to the data flow value to the data account of the data inflow object of the segmented data transaction.
  • the data node of the target data link at least corresponds to the data account space of the data outflow object and the data account of the data inflow object; the duration of the data settlement period of the data account space is related to the segment The duration of the execution processing cycle of the execution section of the data transaction is equal, and the data quota of the data account space is deducted from the data quota of the data account space in the previous data settlement cycle. Deduction amount The deduction of the data amount is updated.
  • the data account space is the account space for the payment platform to provide the payment user with a payment limit
  • the data account space in the data account space is the payment platform provides to the payment user If the payment limit is used by the paying user again, the corresponding funds need to be repaid in a certain proportion.
  • the actual data account is the financial institution that provides the payment platform with funds corresponding to the payment limit
  • the account to which the data flows into is the merchant, and the data account is the merchant’s account for storing funds.
  • the total cost is 1,000 yuan
  • the payment method is to make the purchase through the payment line provided to the user by the payment platform, and the 1,000 yuan user has made installments for the payment platform
  • the total number of periods is 10, and the monthly payment is 100 yuan, that is, the payment platform only freezes the payment limit of 100 in the user’s account each month, and will not directly freeze the payment limit of 1000 corresponding to 1,000 yuan, of which 1 amount corresponds to 1 Yuan;
  • the payment limit of 100 will be frozen in the user's account at this time, and at the same time, 100 yuan of funds will be paid to the merchant through the financial institution corresponding to the payment platform, and the funds will be transferred
  • the payment user only needs to repay the 100 yuan corresponding to the payment limit of 100 to the payment platform within the set time.
  • the payment platform will pay the financial institution according to the 100 yuan repaid by the user. The agency makes reimbursements.
  • a phased payment method can be used to clear the payment process for the phased payment transaction, so that the payment line can be made according to the payment stage.
  • the payment limit is reduced to reduce the pressure of payment users to pay the payment platform to settle the payment limit, and the payment business can also be completed.
  • the data resource corresponding to the data flow value can also be directly transferred to the data inflow object through the data account of the data outflow object Data account to avoid excessive additional data resources caused by intermediary parties and affect the experience effect of data outflow objects participating in the pending service.
  • the data outflow is directly used
  • the specific implementation manner of transferring the corresponding data account to the data account data resource of the data inflow object is as follows: read the data flow value corresponding to the at least one execution segment contained in the target data execution information;
  • the target data link transfers the data resource corresponding to the data flow value from the data account of the data outflow object to the data account of the data inflow object; wherein, the start data node of the target data link corresponds to When the data flows out of the data account of the object, the terminating data node corresponds to the data account of the data inflow object.
  • the payment corresponding to the fifth payment stage is determined based on the target data execution information recorded in the target payment transaction.
  • the limit is 100.
  • 100 yuan of funds corresponding to the payment limit of 100 are transferred from the payment user's payment account, and this part of the funds is transferred to the merchant's payment account.
  • Step S314 Calculate the first execution additional data value corresponding to the at least one execution stage according to the data flow value and the proportion of the first execution additional data corresponding to the at least one execution stage.
  • the first execution additional data value can be calculated according to the data flow data, and then the first execution additional data value can be calculated according to the first execution additional data value. Data flows into the object for settlement.
  • the data flow value is proportional to the proportion of the first execution attached data.
  • the payment platform will issue a payment to the payment limit of 100.
  • Step S316 Perform data settlement processing of the first execution additional data value on the data inflow object.
  • the data settlement processing will be performed for the data inflow object, wherein the proportion of the first execution additional data is Including the processing fee rate generated by the execution processing of the segmented data transaction in the at least one execution segment, and the first execution additional data value obtained by calculating the proportion of the first execution additional data is flowed from the data Subject to bear.
  • the management fee borne by the merchant is 1.2 yuan
  • 0.4 yuan in the 1.2 yuan is the management fee that needs to be paid to the financial institution that provides the funds corresponding to the payment limit
  • the merchant will pay A management fee of 1.2 yuan is paid to the payment platform in the account, and the payment platform will pay a management fee of 0.4 yuan to the financial institution for this phased payment transaction.
  • the merchant can bear this part of the management fee, so that the paying user can still obtain the product without paying the management fee, which greatly improves the experience of the payment user, and the merchant can use this method to pay
  • the sale of unsalable goods can promote the sale of unsalable goods without bearing a loss.
  • the payment user can also obtain goods through a lower payment amount, thereby realizing multi-party profit.
  • the data inflow object needs to process the data that has not yet been called by the data outflow object.
  • the data inflow object can submit a second execution request
  • the data transaction corresponding to the remaining execution segment is executed according to the second execution request, so that the data inflow object can be executed in the execution segment of the segmented data transaction.
  • the data transaction corresponding to the remaining execution segment is directly executed and completed.
  • the specific implementation is as follows: the data inflow object of the segmented data transaction is received and submitted for the remaining execution segment The second pre-execution request; based on the second pre-execution mode carried in the second pre-execution request, the data execution information and the data link corresponding to the remaining execution segments are assembled to obtain the second pre-execution
  • the second intermediate data transaction corresponding to the mode; the second total data flow value corresponding to the second pre-execution request is recorded in the second intermediate data transaction; through the data account of the intermediate data object from the segmented data transaction
  • the method of applying for the data resource corresponding to the second total data flow value to the data account of the data inflow object is to perform processing on the second intermediate data transaction; according to the data outflow object and the data outflow object of the segmented data transaction
  • the account path of the two data accounts of the intermediate data object determines the second segment data link from the data outflow object to the intermediate data object; according to the second segment data link and the remaining execution segment
  • the two-segment data transaction is the total data transaction of the data transaction corresponding to the remaining execution segment; based on this, first, according to the second pre-execution mode carried in the second pre-execution request, all the data execution information corresponding to the remaining execution segment and All the data links are assembled to obtain the second intermediate data transaction corresponding to the second pre-execution mode, and the second total data flow value corresponding to the second pre-execution request is recorded in the second intermediate data transaction; and then through The data account of the intermediate data object of the segmented data transaction applies for the data resource corresponding to the second total data flow data to the data account of the data inflow object to perform execution processing on the second intermediate data transaction, Finally, according to the account path of the data accounts of both the data outflow object and the intermediate data object, the second segmented data link from
  • the data outflow object needs to provide data resources to the intermediate data object at this time, and a second segmented data transaction of the intermediate data object and the data outflow object will be established.
  • the method of deducting the data quota from the data account space of the data outflow object, transferring the data resources corresponding to the part of the data quota from the actual data account to the data account of the intermediate data object one or more implementations of this embodiment , The specific implementation is as follows: in the case where the execution condition of at least one of the remaining execution segments of the second segmented data transaction is triggered, read the triggered remaining segment of the second segmented data transaction The second segment data flow value corresponding to the execution segment; according to the second segment data link, the data limit of the data account space of the data outflow object is deducted by the deduction corresponding to the second segment data flow value Deduction, and transferring the data resource corresponding to the second segment data flow value from the actual data account corresponding to the data account space of the data
  • the unpaid funds of the paying user are 500 yuan, and at this time The financial institution that provides funds to the payment receipt will be able to pay the 500 yuan of funds to the merchant at the request of the merchant.
  • the 500 yuan of funds will eventually need to be paid to the user for payment, so 500 needs to be directly deducted from the payment limit of the user.
  • the amount is used to indicate that the paying user needs to repay the 500 yuan fund corresponding to the payment amount of 500 in the subsequent process of repaying the funds corresponding to the payment amount.
  • the payment can be withdrawn for the goods with installments.
  • the financial institution will pay the corresponding funds to the merchant after verification according to the request made by the merchant, and the payment platform will pay at this time
  • the user’s payment limit freezes the amount corresponding to the remaining funds that the payment user needs to repay, so that the merchant can collect the payment in advance without the payment user’s repayment, which greatly improves the convenience of the merchant’s collection.
  • the data processing method used in the payment business provided in this manual realizes that the payment user can repay the payment limit for the purchase of goods in a phased payment method for the payment business, and the payment user does not need to pay the full amount of payment funds at once. It does not occupy the entire payment line of the payment user’s payment account.
  • the payment user only needs to perform payment processing in accordance with the payment stages of the payment transaction in stages to complete the payment processing of the payment business. While improving the payment user’s experience effect, The payment business scenario still has to become more active.
  • FIG. 4 shows a processing flowchart of the second data processing method applied to payment services provided by the embodiment of this specification, which specifically includes the following steps S402 to S430.
  • Step S402 Obtain metadata of the service to be processed.
  • the data processing method will be described with the service to be processed as a payment service, where the metadata specifically refers to the total payment funds that the payment user needs to pay to the merchant in the payment service; in the payment service scenario , In the process of the transaction between the paying user and the merchant, the user needs to pay a certain amount to the merchant to obtain the ownership of the product, and the amount that needs to be paid for the product is often a large amount of money.
  • the payment platform will provide the user with a payment limit, through which the payment can also be made for the funds, but a one-time Occupying too much payment limit will cause difficulty in the process of paying users to settle the payment limit, so solving the above problems will bring a better quality transaction environment for payment users.
  • the payment method is that the payment user has paid for the product by choosing installment payment on the payment platform, that is, the payment user uses the payment limit provided by the payment platform to pay for the product.
  • Payment is made in a phased payment method, and the payment platform will transfer funds equal to the payment limit of each phase to the merchant at the payment time each month, and will freeze the payment equal to the part of the funds in the payment account of the paying user For the payment limit, the paying user only needs to repay the same amount of funds for this part of the payment limit.
  • the payment platform that provides the payment line can transfer the funds corresponding to the full payment line for the product to the merchant at one time, and the paying user can pay for the payment line provided by the payment platform
  • the payment is settled in stages, and the fund provider who provides payment funds equal to the payment amount issues the funds, and when the payment user pays the payment platform according to the settlement funds of each payment stage, the payment platform will pay the fund provider according to the payment amount. Replenish this part of funds equal to the number of times in each payment stage, so that payment users can obtain the goods they need, merchants can obtain funds immediately after the goods are sold, and payment platforms and fund providers can promote the flow of funds to achieve multi-party access Profitable situation.
  • the execution of processing requires data support involving multiple processing platforms.
  • the data processing method can be implemented on the basis of a distributed system. Specifically, by creating a distributed transaction corresponding to the business to be processed, and based on the distributed system The coordination among transaction-supporting servers, resource servers, and transaction managers deployed on different nodes enables the creation of distributed transactions on the basis of metadata, and the execution of distributed transactions according to the submitted execution mode , So as to further improve the processing efficiency and processing consistency of the business execution processing of the business to be processed.
  • the specific implementation method of the admission restriction verification process is as follows: Determine whether the processing value of the data to be processed contained in the metadata is less than or equal to the available data in the data account space of the data outflow object of the segmented data transaction Quota; if yes, execute the following step S404; if no, push a notification of processing failure to the data outflow object.
  • step S404 first determine the processing value of the to-be-processed data contained in the metadata, and then determine whether the processing value of the to-be-processed data is less than or equal to the available data quota of the account space of the data outflow object that the segmented data refers to, If yes, it indicates that the data outflow object meets the access restriction at this time, and subsequent segmented data transactions can be created for the metadata, and the following step S404 can be performed; if not, it indicates that the data outflow object does not meet the access restriction at this time, and you can A reminder of processing failure is pushed to the data outflow object, and the reminder is related information that the data outflow object cannot perform processing for the segmented data transaction.
  • the data outflow object is checked for admission, which not only improves the security of the business scenario to be processed, but also has a certain restrictive effect on the data outflow object to avoid non-disclosure.
  • the normal data outflow object has an abnormal impact on the business to be processed.
  • Step S404 Create a segmented data transaction of the service to be processed according to the metadata.
  • the data execution information and data links of each execution segment are recorded in the segmented data transaction.
  • a segmented data transaction of the service to be processed can be created according to the metadata, wherein the segmented data
  • the transaction specifically refers to the transaction to be processed after the transaction to be processed is divided according to each execution segment, and the data execution information and data link of each execution segment are recorded in the segmented data transaction.
  • each phased transaction transaction records each Payment limit information and payment links in the payment phase, where the payment limit information specifically refers to the funds corresponding to the payment limit that the payment user needs to pay to the payment platform for each payment phase, and the payment platform needs to pay the merchant corresponding to the payment limit
  • the payment link specifically refers to the payment path used by the payment user to pay the funds corresponding to the payment amount.
  • Step S406 Receive a pre-execution request submitted by the data inflow object of the segmented data transaction for the at least one execution segment.
  • segmented data transactions of the service to be processed based on the metadata further, at this time, it is determined that the segmented data transactions can be processed in a phased manner for the target data transactions of each execution segment Perform execution processing, and before performing processing for the target data transaction, there may be data inflow objects that perform execution processing on the data transactions corresponding to each execution segment of the segmented data transaction in advance. At this time, follow-ups will be performed according to the execution request of the data inflow object The process of performing processing in advance; and, when the data inflow object submits an execution request, it may be a pre-execution request submitted by the data inflow object for an execution segment.
  • the data inflow object needs to perform early execution processing for an execution segment ; It may also be a pre-execution request submitted for multiple execution stages. At this time, it indicates that the data inflow object needs to be processed in advance for multiple execution stages; among them, multiple execution stages may be all execution stages that have not yet been processed. corresponding.
  • a payment user purchases a product at a merchant, and pays for the product using a payment platform payment line through a phased payment method.
  • the number of payment phases is 10, and the price of the product is 1,000 yuan.
  • Payment users in two stages need to pay 100 yuan for the product, that is, the payment limit of 100 needs to be frozen in the payment user's payment account. If the user to pay for the frozen payment limit of 100 is repaid to the payment platform, the payment limit of 100 will be unfrozen Based on this, in the case that the merchant needs a sum of funds to purchase new goods, the merchant will submit a pre-execution request to the payment platform, that is, the merchant needs the payment that has not been completed. The user will pay the remaining unpaid funds so that the merchant can Procurement of new goods as normal; in addition, the merchant can also require users to pay for part of the remaining unpaid funds.
  • the data execution information and data link corresponding to the at least one execution segment need to be subsequently executed according to the execution mode carried in the pre-execution request. Assemble to obtain the target data transaction corresponding to the pre-execution mode.
  • the target data transaction at this time is the composition of the data inflow object for the data transaction that needs to be executed in advance, and the target data transaction is determined.
  • Step S408 Calculate the total data flow value corresponding to the pre-execution request according to the target data execution information of the at least one execution segment corresponding to the pre-execution request.
  • the total data flow value corresponding to the pre-execution request where the total data flow value specifically refers to the amount of data that needs to be processed in the execution process of the data flow object.
  • the funds corresponding to the total payment limit are calculated at this time according to the pre-execution request submitted by the merchant is 500 Since the payment for the commodity is paid by the payment platform in the form of payment quota, the intermediate relationship is that the payment platform pays the merchant at each payment stage, and the financial institution will provide the payment platform to the payment platform. Funds, the payment platform will freeze the same payment limit as the funds in the payment account of the payment user in combination with the funds, and the payment user needs to pay the payment platform the funds corresponding to the payment limit in each payment stage.
  • Step S410 Determine the target data link based on the account paths of the data accounts of both the data inflow object and the intermediate data object of the segmented data transaction.
  • the target data link refers to the path corresponding to the flow of data resources during the execution of the target data transaction between the data inflow object and the intermediate data object, that is, both the data inflow object and the intermediate data object based on the segmented data transaction
  • the account path of the data account determines the target data link.
  • the data inflow object is the merchant
  • the intermediate data object is the financial institution and payment platform. Therefore, the target payment link is determined according to the fund transfer path between the financial institution and the merchant, and the subsequent process of establishing the target data transaction can be carried out.
  • step S412 an intermediate data transaction is established based on the total data flow value and the target data link as the target data transaction.
  • the starting data node of the target data link corresponds to the data account of the intermediate data object
  • the terminating data node corresponds to the data account of the data inflow object.
  • Data resources are transferred from the data account of the intermediate data object to the data account of the data inflow object; based on this, the target data transaction is formed by combining the total data flow value and the target data link.
  • the target data transaction is 500 yuan for the merchant's collection of funds
  • the financial institution needs to pay the merchant 500 yuan for the collection of funds
  • the payment method can be transferred through the account of the financial institution storing funds. Into the merchant’s account where the funds are stored.
  • Step S414 Apply for the data resource corresponding to the total data flow value from the data account of the intermediate data object to the data account of the data flow object.
  • the payment fund that the merchant needs to collect for the payment user is 500 yuan.
  • the financial institution will transfer 500 yuan to the merchant according to the merchant’s pre-execution request, and transfer to the account through the financial institution’s depository funds.
  • the account where the merchant stores the funds is fine.
  • Step S416 Determine the segmented data link from the data outflow object to the intermediate data object according to the account path of the data outflow object of the segmented data transaction and the data account of the intermediate data object.
  • the data resource flow between the data outflow object and the intermediate data object needs to be processed, and the data resource flow between the data outflow object and the intermediate data object will be processed according to the segment
  • the account paths of both the data outflow object and the intermediate data object of the data transaction determine the segmented data link from the data outflow object to the intermediate data object.
  • the financial institution has paid the merchant 500 yuan in payment funds, it is determined that the payment user owes the payment platform 500 yuan, and the payment platform owes the financial institution 500 yuan. Compared with the payment user only need to pay 500 yuan to the payment platform Yuan of payment funds can unfreeze the payment limit of 500.
  • the segment payment link is determined to be the payment user’s
  • the fund storage account points to the fund storage account of the payment platform, and the fund storage account of the payment platform points to the fund storage account of the financial institution, that is, the flow of funds can flow according to the direction of each fund storage account.
  • Step S418, according to the segment data link and the data execution information of the execution segment to be executed in the segment data transaction, construct the first segment data transaction of the execution segment to be executed in the segment data transaction.
  • the starting data node of the segmented data link corresponds to the data account of the data outflow object
  • the terminating data node corresponds to the data account of the intermediate data object
  • the segmented data link can Realize the transfer of data resources from the data account of the data outflow object to the data account of the intermediate data object; based on this, at this time, it needs to be based on the segmented data path and the data of the execution segment to be executed in the segmented data transaction
  • the execution information constitutes the first segment data transaction of the execution segment to be executed in the segment data transaction.
  • the merchant completes the collection task.
  • the payment user defaults on the payment platform 500 yuan, and the payment platform owes 500 yuan to the financial institution.
  • Step S420 when the execution condition of the execution segment of the first segment data transaction is triggered, read the first segment data flow value corresponding to the triggered execution segment in the first segment data transaction.
  • the first segment data transaction may be performed at a set time node. Whether the execution condition of the execution section of is triggered for detection, if not, it means that the time node for subsequent execution processing for the first segment data transaction has not been reached at this time, and no processing is required; if it is, it means that At this time, it is necessary to perform a subsequent execution process for the first segmented data transaction, and read the first segmented data flow value corresponding to the triggered execution segment in the first segmented data transaction.
  • the platform can directly freeze the payment user’s 500 payment limit, then the first payment fund corresponding to the triggered payment stage in the first payment transaction is 500 yuan; or the payment platform can only freeze the payment user’s 100
  • the payment limit corresponds to 100 yuan for the first segment payment fund corresponding to the triggered payment stage in the first segment payment transaction.
  • the first segment data flow value can be determined according to actual application scenarios, and this embodiment does not make any limitation here.
  • Step S422 According to the segmented data link, deduct the deduction amount corresponding to the first segmented data flow value from the data quota of the data account space of the data outflow object, and, from the data outflow object The actual data account corresponding to the data account space transfers the data resource corresponding to the first segmented data flow value to the data account of the intermediate data object.
  • the duration of the data settlement cycle of the data account space is equal to the duration of the execution processing cycle of the execution stage of the first segmented data transaction, and the data quota of the data account space is deducted in the previous data settlement cycle.
  • the deduction quota is subtracted, and after the data settlement processing of the subsequent data settlement cycle, the deduction of the deduction quota to the data quota is updated.
  • the process specifically refers to deducting the deduction amount corresponding to the first segment data flow value from the data quota of the data account space of the data outflow object, and at the same time, it also needs to correspond to the data account space of the data outflow object
  • the data resource corresponding to the first segmented data flow value is transferred from the actual data account to the data account of the intermediate data object.
  • the payment account of the payment user will deduct the amount corresponding to the first tranche payment fund based on the first tranche payment fund. If the first tranche payment is If the fund is 500 yuan, the payment limit will be deducted by 500 in the payment user’s payment account; if the first segment payment fund is 100 yuan, the payment limit will be deducted by 100 in the payment user’s payment account; at this time, the payment limit will be deducted from the payment user’s payment account. On the basis of deducting the amount corresponding to the first-stage payment funds in the payment account, it is also necessary to transfer the funds corresponding to the first-stage payment funds from the payment user’s fund storage account to the financial institution. The financial institution transfers 500 yuan of funds or 100 yuan of funds.
  • the payment limit when the payment user’s payment limit is used, the payment limit will be updated every settlement time.
  • the payment user’s payment limit is 5000, and the payment user’s payment limit is 100.
  • the available payment limit of the paying user is 4900, and when the settlement period is reached, and the paying user repays the payment limit of 100, the payment limit after the settlement period is restored to 5000.
  • Step S424 Calculate the second execution additional data value according to the total data flow value and the corresponding second execution additional data proportion.
  • Step S426 Perform the data settlement processing of the second execution additional data value on the data inflow object.
  • the proportion of the second execution additional data includes the processing fee rate generated by the execution processing of the intermediate data transaction, and the second execution additional data value obtained by calculation based on the proportion of the second execution additional data It is assumed by the data inflow object.
  • the data inflow object In practical applications, after the above-mentioned processing is performed for the first segment data transaction, at this time, because the data inflow object actively extracts the data transactions for the remaining execution segments for execution processing, the data inflow object is required to target the total data at this time.
  • the flow value provides a certain additional data value, and the second execution additional data value needs to be calculated and determined according to the total data flow value and the proportion of the second execution additional data to perform the settlement process.
  • Step S428 Calculate the first execution additional data value corresponding to the execution segment according to the first segment data flow value and the proportion of the first execution additional data corresponding to the execution segment.
  • Step S430 Perform data settlement processing of the first execution additional data value on the data inflow object.
  • the proportion of the first execution additional data includes the processing fee rate generated by the execution processing of the first segmented data transaction in the execution segment, which is calculated based on the proportion of the first execution additional data
  • the first execution additional data value is borne by the data inflow object.
  • the data resource used by the data outflow object belongs to the intermediate data object provided to the data outflow object, at this time, it is necessary to provide part of the first execution additional data value for the first segmented data flow value , And the first execution additional data value needs to be calculated according to the first segmented data flow value and the proportion of the first execution additional data corresponding to the execution section, and finally the first execution additional data value is calculated according to the first execution additional data value.
  • the data inflow object can be processed for data settlement.
  • the payment business when a paying user purchases a product using the payment limit, the product is purchased using the funds of a financial institution, and this part of the fund will generate a certain amount of interest.
  • the proportion of the first execution additional data and the proportion of the second execution additional data can be set according to actual application scenarios, and can be 1%, 1.2%, 0.1%, etc., which are not described in this embodiment. Any restrictions.
  • the data processing method used in the payment business provided in this manual realizes that when the merchant collects the payment funds of the paying user in advance, the payment platform can transfer the payment from the financial institution to the merchant and the payment user has not paid.
  • the remaining payment funds are equal to the funds, so that the merchant can collect payment for the unreceived payment funds at any time, so that the merchant can be filled with funds in the absence of funds, and the merchant does not receive the payment amount. It will have an impact on payment users.
  • the payment users only need to repay the payment amount according to the original installment method, without having to bear service fees and capital interest costs, which greatly improves the experience of the payment users.
  • the implementation example of the first data processing device provided in this specification is as follows.
  • FIG. 5 shows a schematic diagram of the first data processing apparatus provided by this embodiment, it includes: an obtaining module 502 configured to obtain metadata of a service to be processed; and a creating module 504 configured to obtain metadata according to the Metadata creates a segmented data transaction of the service to be processed; the segmented data transaction records the data execution information and data links of each execution segment; the parsing module 506 is configured to be based on the segmented data transaction The execution mode submitted by at least one execution stage of the execution section is analyzed, and the segmented data transaction is analyzed to obtain the target data transaction corresponding to the execution mode; the processing module 508 is configured to perform according to the recorded data in the target data transaction. The target data execution information and target data link of at least one execution segment perform execution processing on the target data transaction.
  • the data processing device further includes: a determining module configured to determine the recommended number of execution segments pushed to the data outflow object according to the historical data log of the data outflow object of the segmented data transaction, And determine the number of execution stages of the segmented data transaction according to the execution instructions submitted by the data outflow object for the recommended number; or, predict the data according to the data record of the segmented data transaction's data inflow object
  • the data inflow time interval of the inflow object is determined according to the data inflow time interval to determine the duration and/or the number of execution segments of the segmented data transaction.
  • the parsing module 506 includes: a decomposition sub-module configured to trigger the corresponding execution condition of the execution segment when the execution condition of the execution segment of the segmented data transaction is triggered.
  • the segmented execution mode decomposes the segmented data transaction to obtain the target data transaction corresponding to the segmented execution mode; or, the data outflow object of the received segmented data transaction is submitted for the at least one execution segment
  • the segmented execution request based on the segmented execution mode carried in the segmented execution request, the segmented data transaction is decomposed to obtain the target data transaction corresponding to the segmented execution mode; wherein, the and In the target data transaction corresponding to the segmented execution mode, the target data execution information and target data link of the at least one execution segment are recorded, and the target data execution information is determined based on the data execution information of the at least one execution segment , The target data link is determined based on the data link of the at least one execution section.
  • the processing module 508 includes: a first reading sub-module configured to read the data flow value corresponding to the at least one execution segment contained in the target data execution information; the first resource transfer sub-module The module is configured to deduct the deduction amount corresponding to the data flow value from the data quota of the data account space of the data outflow object according to the target data link, and to deduct the data account from the data outflow object
  • the actual data account corresponding to the space transfers the data resource corresponding to the data flow value to the data account of the data inflow object of the segmented data transaction; wherein, the data node of the target data link at least corresponds to the data outflow
  • the duration of the data settlement cycle of the data account space is equal to the duration of the execution processing cycle of the execution section of the segmented data transaction, which is in the previous data settlement cycle
  • the deduction quota is deducted from the data quota of the data account space, and the deduction of the data quota by the
  • the processing module 508 further includes: a second reading sub-module configured to read the data flow value corresponding to the at least one execution segment contained in the target data execution information; second resource transfer A sub-module configured to transfer data resources corresponding to the data flow value from the data account of the data outflow object to the data account of the data inflow object according to the target data link; wherein, the target data The start data node of the link corresponds to the data account of the data outflow object, and the end data node corresponds to the data account of the data inflow object.
  • the processing module 508 further includes: a calculation sub-module configured to calculate the at least one execution segment based on the data flow value and the proportion of the first execution additional data corresponding to the at least one execution segment Corresponding first execution additional data value; settlement processing sub-module configured to perform data settlement processing of the first execution additional data value on the data inflow object; wherein the proportion of the first execution additional data includes The processing fee rate generated by the execution processing of the segmented data transaction in the at least one execution segment, the first execution additional data value obtained by calculating the proportion of the first execution additional data is flowed into the object by the data bear.
  • the parsing module 506 further includes: a request receiving sub-module configured to receive a pre-execution request submitted by the data inflow object of the segmented data transaction for the at least one execution segment; an assembling sub-module, It is configured to assemble the data execution information and the data link corresponding to the at least one execution segment based on the pre-execution mode carried in the pre-execution request to obtain the target data transaction corresponding to the pre-execution mode.
  • a request receiving sub-module configured to receive a pre-execution request submitted by the data inflow object of the segmented data transaction for the at least one execution segment
  • an assembling sub-module It is configured to assemble the data execution information and the data link corresponding to the at least one execution segment based on the pre-execution mode carried in the pre-execution request to obtain the target data transaction corresponding to the pre-execution mode.
  • the assembly sub-module includes: a calculation unit configured to calculate the total data flow value corresponding to the pre-execution request according to the target data execution information of the at least one execution segment corresponding to the pre-execution request
  • the data link determining unit is configured to determine the target data link based on the account paths of the data accounts of both the data inflow object and the intermediate data object of the segmented data transaction; the transaction determining unit is configured to determine the target data link based on the total data
  • the flow value and the target data link form an intermediate data transaction as the target data transaction; wherein the starting data node of the target data link corresponds to the data account of the intermediate data object, and the terminating data node corresponds to The data flows into the data account of the object.
  • the processing module 508 further includes: a data resource transfer sub-module configured to apply for the data resource corresponding to the total data flow value from the data account of the intermediate data object to the data of the data inflow object Account; a segmented data link determination sub-module configured to determine from the data outflow object to the intermediate data account according to the account path of the data outflow object of the segmented data transaction and the intermediate data object The segmented data link of the data object; the transaction building submodule is configured to form the segmented data transaction according to the segmented data link and the data execution information of the execution segment to be executed in the segmented data transaction The first segment data transaction of the execution segment to be executed in the segment data link; wherein the start data node of the segment data link corresponds to the data account of the data outflow object, and the terminating data node corresponds to the intermediate data object Data account.
  • a data resource transfer sub-module configured to apply for the data resource corresponding to the total data flow value from the data account of the intermediate data object to the data of
  • the data processing device further includes: a flow value reading module configured to read the first segment when the execution condition of the execution segment of the first segment data transaction is triggered The first segment data flow value corresponding to the execution segment triggered in the segment data transaction; the quota deduction module is configured to deduct the data quota of the data account space of the data outflow object according to the segment data link Subtract the deduction amount corresponding to the first segment data flow value, and transfer the data resource corresponding to the first segment data flow value from the actual data account corresponding to the data account space of the data outflow object to all The data account of the intermediate data object; wherein the duration of the data settlement cycle of the data account space is equal to the duration of the execution processing cycle of the execution section of the first segmented data transaction, and the data settlement cycle is The data quota of the data account space deducts the deduction quota, and the deduction of the data quota by the deduction quota is updated after the data settlement processing in the subsequent data settlement cycle.
  • a flow value reading module configured to read the first segment when
  • the processing module 508 further includes: a data value calculation sub-module configured to calculate the second execution additional data value according to the total data flow value and the corresponding second execution additional data proportion; data settlement A sub-module configured to perform the data settlement processing of the second execution additional data value on the data inflow object; wherein the second execution additional data accounted for, including those generated by performing processing on the intermediate data transaction The processing fee rate, the second execution additional data value calculated according to the proportion of the second execution additional data is borne by the data inflow object.
  • a data value calculation sub-module configured to calculate the second execution additional data value according to the total data flow value and the corresponding second execution additional data proportion
  • data settlement A sub-module configured to perform the data settlement processing of the second execution additional data value on the data inflow object
  • the second execution additional data accounted for including those generated by performing processing on the intermediate data transaction
  • the processing fee rate, the second execution additional data value calculated according to the proportion of the second execution additional data is borne by the data inflow object.
  • the data processing device further includes: a calculation module configured to calculate the execution segment corresponding to the execution segment based on the first segment data flow value and the proportion of the first execution additional data corresponding to the execution segment
  • the data settlement module is configured to perform the data settlement processing of the first execution additional data value on the data inflow object; wherein the proportion of the first execution additional data includes the The processing fee generated by the execution processing of the first segmented data transaction in the execution segment is borne by the data inflow object, and the first additional data value obtained by calculation based on the proportion of the first additional data to be executed.
  • the data processing device further includes: a pre-execution request receiving module configured to receive a second pre-execution request submitted by the data inflow object of the segmented data transaction for the remaining execution segment; an assembly module, configured In order to assemble the data execution information and data link corresponding to the remaining execution segments based on the second pre-execution mode carried in the second pre-execution request, to obtain the second intermediate corresponding to the second pre-execution mode Data transaction; the second intermediate data transaction records the second total data flow value corresponding to the second pre-execution request; the transaction execution processing module is configured to pass from the intermediate data object of the segmented data transaction The data account applies for the data resource corresponding to the second total data flow value to the data account of the data inflow object, and executes the second intermediate data transaction; the link determination module is configured to perform processing according to the The account path of both the data outflow object of the segmented data transaction and the data account of the intermediate data object determines the second segmented data link from the data outflow object to the intermediate
  • the data processing device further includes: a value reading module configured to read the data when the execution condition of at least one of the remaining execution segments of the second segmented data transaction is triggered.
  • the resource transfer module is configured to perform data flow of the data out of the object according to the second segment data link.
  • the data quota of the account space deducts the deduction quota corresponding to the data flow value of the second segment, and transfers the data flow value of the second segment from the actual data account corresponding to the data account space of the data outflow object
  • the data processing device further includes: a judging module configured to judge whether the processing value of the data to be processed contained in the metadata is less than or equal to the data account space of the data outflow object of the segmented data transaction If the execution result of the judgment module is yes, run the creation module 504; if the execution result of the judgment module is no, then run the reminder push module; the reminder push module is configured to Push a notification of processing failure to the data outflow object.
  • a judging module configured to judge whether the processing value of the data to be processed contained in the metadata is less than or equal to the data account space of the data outflow object of the segmented data transaction If the execution result of the judgment module is yes, run the creation module 504; if the execution result of the judgment module is no, then run the reminder push module; the reminder push module is configured to Push a notification of processing failure to the data outflow object.
  • the to-be-processed services include: transaction services, data stream processing services, and payment services; correspondingly, the segmented data transactions of the to-be-processed services include: segmentation in which the transaction services are executed in a phased transaction mode.
  • a staged transaction transaction, the data stream processing business adopts a staged data stream processing transaction executed by a staged processing method, and the payment business adopts a staged payment transaction executed by a staged payment method; the execution of the segmented data transaction
  • the segments include: each transaction stage in the staged transaction process of the staged transaction transaction, each data processing stage of the staged data flow processing transaction in the staged processing process, the staged payment transaction in the staged payment The various payment stages in the process.
  • FIG. 6 shows a processing flowchart of a transaction processing method provided by an embodiment of this specification, which specifically includes the following steps S602 to S608.
  • Step S602 Obtain transaction metadata of the transaction to be processed.
  • the paying party in the process of payment processing between the paying party and the paid party for the payment demand, the paying party usually needs to pay all the funds to the paid party for the payment demand to obtain the ownership of the item corresponding to the payment demand.
  • the payer will pay all the funds at this time, which may cause the payer’s funds to flow unsmoothly.
  • the payment platform provides the payer with a sum that can be used for payment needs. The payer can pay for the payment demand through the payment line, and only needs to repay the payment platform corresponding to the payment line at the time of the payment line repayment.
  • the transaction processing method provided in this embodiment realizes that the payment platform can manage the payment limit in installments in the process of the payer’s payment of the payment demand. That is, after the payer purchases the goods, the payment platform can manage the payment by installments. The price of the purchased goods is paid in installments through the payment line, and the amount to be repaid in each period is borne by the transaction agency of the payment platform. The payment line corresponding to the amount to be repaid in each period will be in the payment account of the payer After freezing, the subsequent payment platform repays the funds to the payment platform, and then the payment platform repays the funds to the transaction agency, and the corresponding frozen payment quota will be unfrozen until the payment of the corresponding quota for all periods is completed, and the payment business ends.
  • the transaction processing requires data support involving multiple processing platforms.
  • the transaction processing method can be implemented on the basis of a distributed system. Specifically, by creating a distributed transaction corresponding to the transaction to be processed, and based on the distributed system The coordination among transaction-supporting servers, resource servers, and transaction managers deployed on different nodes enables the creation of distributed transactions based on transaction metadata, and the execution of distributed transactions according to the submitted execution mode. Processing, thereby further improving the processing efficiency and processing consistency of the transaction processing of the transaction to be processed.
  • This embodiment will be described in terms of the process of performing payment processing for payment transactions corresponding to each payment stage.
  • the payer purchases a product from the payee, and the payer pays in installments through the payment platform.
  • the price of the product is 1,000 yuan, and the number of installments is 10 times, so the payer needs to repay each time
  • the payer pays in installments through the payment line of the payment platform, that is, each month the payment platform will deduct the 100 line corresponding to the 100 yuan fund from the payment line held by the payer.
  • the amount held by the party is 5000, so after the payer purchases the product, 100 will be deducted from the amount held every month.
  • the amount held by the payer is 4900, and the payment platform is provided with a payment limit transaction
  • the agency will repay the 100 yuan of funds corresponding to the 100 amount to the payee, and when the payment institution repays the 100 yuan of the 100 yuan corresponding to the payment amount of 100 to the payment institution, the payment platform will return the 100 yuan of funds to the transaction agency.
  • the verification of access qualification is specifically implemented as follows: Determine whether the value to be traded contained in the transaction metadata is less than or equal to the installment The available data quota of the data account space of the payer of the payment transaction; if yes, execute the following step S604; if not, push a notification of processing failure to the payer.
  • the payer’s available quota in the payment account of the payment platform is 1,000 yuan, and the payer’s required installment amount is 1500 yuan, it can be determined that the payer is not eligible for payment installment, and the payer is sent to the payer because of the available quota. If it is too small, it is not possible to install installments for the goods; the payer has an available amount of 2,000 yuan in the payment account of the payment platform. At this time, it can be determined that the payer can open the payment installment and perform subsequent payment installment processing for the goods.
  • Step S604 Create an installment payment transaction of the transaction to be processed according to the transaction metadata.
  • transaction payment information and payment links of each payment stage are recorded in the installment payment transaction.
  • an installment payment transaction of the pending transaction will be created based on the metadata, and the installment payment transaction specifically refers to the pending transaction.
  • the payment processing process of processing transactions is divided into one or more payment stages, and then the transaction to be processed is transactionized.
  • the transaction that requires payment processing in each payment stage is called a payment transaction, and the data of all payment stages of the transaction to be processed The whole of the transaction constitutes the installment transaction.
  • the transaction payment information of each payment stage recorded in the installment transaction specifically refers to the information that the payer needs to pay for each payment stage, the information that the paid party needs to collect payment funds, and the payment link specifically refers to the direction of payment. The path through which payment funds flow during payment processing by the payee.
  • the number of installments of the payment phase included in the installment payment firm can be selected by the payer, or the payer can recommend the number of installments, one of this embodiment
  • the specific implementation method for determining the number of installments is as follows: according to the historical transaction payment log of the payer of the installment transaction, determine the recommended installment number of the payment stage pushed to the payer, and according to The payment instruction submitted by the payer for the recommended installment number determines the installment number of the payment phase of the installment transaction.
  • the number of installments frequently used by the payer is four installments
  • the recommended installment number of the recommended payment stage pushed to the payer is determined to be four installments.
  • the user submits a payment instruction If it is equal to the recommended installment number, it can be determined that the installment transaction includes four payment stages. If the payment instruction submitted by the user determines that the installment data of the payment stage of the installment transaction is five installments, it can be determined that the installment transaction includes five payment stages. .
  • the installment duration and/or the number of installments of the installment payment transaction can also be determined according to the payment collection time interval of the payee.
  • the specific implementation is as follows:
  • the transaction records of the paid party of the installment payment transaction predict the payment time interval of the paid party, and determine the installment duration and/or the number of installments of the payment phase of the installment payment transaction according to the payment time interval .
  • the number of installments can be determined to be shorter.
  • the number of installments of the payment stage pushed to the payer can be determined according to the payment log of the payer, or the number of installments and/or the length of the installment can be determined according to the payment time interval of the payee, so that the payer The completion of pending transactions in the custom payment phase further improves the experience of the payer and the paid party.
  • Step S606 Analyze the installment payment transaction based on the payment method submitted for at least one payment phase of the installment payment transaction to obtain a target payment transaction corresponding to the payment method.
  • the payer purchases the goods in 10 payment stages, at this time, it is determined that the payment method submitted for the fifth payment stage is analyzed to analyze the installment payment transaction, and the target payment transaction corresponding to the payment method is determined to be the payment The party needs to perform payment processing for the payment transaction corresponding to the fifth payment stage.
  • the specific implementation manner is as follows:
  • the installment payment transaction is decomposed according to the installment payment method corresponding to the triggering of the payment conditions of the payment phase to obtain the same payment method as the installment payment method. Corresponding target payment transaction.
  • the payment limit will be automatically deducted from the payer.
  • the payment method of the payer needs to be determined, and the installment payment transaction must be broken down according to the payment method, and it is determined that the fifth payment stage needs to be instalmented Payment, the payment transaction corresponding to the fifth payment stage is determined as the target payment transaction.
  • the process of determining the target payment transaction can also be determined when the payer actively executes it.
  • the specific implementation is as follows: An installment payment request submitted by the paying party for the at least one payment stage; based on the installment payment method carried in the installment payment request, the installment payment transaction is decomposed, and the target payment transaction corresponding to the installment payment method is obtained.
  • the target transaction payment information and target payment link of the at least one payment stage are recorded, and the target transaction payment information is based on the at least one payment stage
  • the payment information of the transaction is determined, and the target payment link is determined based on the payment link of the at least one payment stage.
  • the payer when the payer submits an installment payment request for the fifth payment stage, it can be determined that the payer has the intention of actively processing the payment transaction in the fifth stage at this time. At this time, it can be based on the payment
  • the installment payment method carried in the installment payment request submitted by the party analyzes the installment payment transaction and determines that the target payment transaction corresponding to the installment payment method is the payment transaction corresponding to the fifth payment stage.
  • Step S608 Perform payment processing on the target payment transaction according to the target transaction payment information and target payment link of the at least one payment stage recorded in the target payment transaction.
  • the target payment transaction may be processed according to the target transaction payment information and target payment link of the at least one payment stage recorded in the target payment transaction.
  • the target payment transaction is the payment transaction for the fifth payment stage
  • it is determined that the transaction payment information of the fifth payment stage is 100 amount deducted from the payment amount of the transaction party, and the payment platform sends the paid
  • the party transfers 100 yuan of funds, and the funds are provided by the transaction agency, and the payer needs to repay the 100 yuan of funds corresponding to the payment limit of 100 to the payment platform within this month.
  • the corresponding amount can be deducted from the data account space of the paying party, and at the same time, the payment resources can be transferred to the paid party to realize the payment processing of the target payment transaction.
  • the payment processing process for the target payment transaction is as follows:
  • the target payment link deduct the deduction amount corresponding to the payment value from the data amount of the payer’s data account space, and transfer from the actual data account corresponding to the payer’s data account space
  • the payment resource corresponding to the payment value goes to the data account of the payee of the installment payment transaction.
  • the payment node of the target payment link corresponds to at least the data account space of the paying party and the data account of the payee; the duration of the data settlement cycle of the data account space is related to the installment payment transaction The duration of the payment processing cycle of the payment phase is equal, the data amount of the data account space is deducted from the data amount of the data account space in the previous data settlement cycle, and after the data settlement processing of the subsequent data settlement cycle, the deduction The deduction of the quota to the data quota is updated.
  • 100 credits can be deducted from the payment account of the payer, and then the payment is made from the fund account of the transaction agency of the payment platform.
  • the party transfers out 100 yuan of funds, and the payer needs to repay the 100 yuan of funds corresponding to the 100 amount to the payment platform within a set time, and the payment platform repays the funds to the transaction agency.
  • the payment resource can also be directly transferred to the paid party through the transaction.
  • the specific implementation manner is as follows: read all the information contained in the target transaction delivery information The payment value corresponding to the at least one payment stage; according to the target payment link, the payment resource corresponding to the payment value is transferred from the payment account of the paying party to the payment account of the payee.
  • the initial payment node of the target payment link corresponds to the payment account of the paying party
  • the termination payment node corresponds to the payment account of the payee.
  • the first payment additional fee needs to be calculated, and the first payment additional fee can be understood as a charge to the payee Management fees or service fees.
  • the process of settlement processing for the payee is as follows: According to the payment value and the first payment rate corresponding to the at least one payment stage Calculate the first payment surcharge corresponding to the at least one payment stage; perform settlement processing of the first payment surcharge on the paid party.
  • the first payment rate includes the payment rate generated by the payment processing of the installment transaction in the at least one payment stage, and the first payment obtained by calculating according to the first payment rate
  • the surcharge shall be borne by the paid party.
  • the payment platform transfers 100 yuan of funds to the payee, and the payer’s payment limit is deducted by 100
  • a management fee of 0.1 yuan will be charged to the payee, and this part of the management fee also includes the transaction agency’s payment to the payment platform Part of the administrative expenses of providing funds.
  • the paid party can make a pre-payment request as needed.
  • the payment resources will flow back to the paid party, and subsequent payments
  • the payment resources repaid by the party will flow into the transaction agency structure.
  • the specific implementation is as follows: the paid party that receives the installment transaction submits the second prepayment for the remaining payment phase Request; based on the second prepayment method carried in the second prepayment request, assemble the transaction payment information and payment link corresponding to the remaining payment segment to obtain the second prepayment method corresponding to the second prepayment method Intermediate payment transaction; the second intermediate payment transaction records the second total payment value corresponding to the second prepayment request; applying for the second total payment from the payment account of the transaction agency of the installment payment transaction The payment resource corresponding to the value is transferred to the payment account of the payee, and the second intermediate payment transaction is processed; according to the account of the data account of both the payer of the installment payment transaction and the transaction agency Path, determining the second installment payment link from the paying party to the transaction agency; according to the second installment payment link and the transaction payment information of the remaining payment stage, constructing the corresponding to the remaining payment stage The second installment payment transaction.
  • a second intermediate payment link is recorded in the second intermediate payment transaction, the initial payment node of the second intermediate payment link corresponds to the payment account of the transaction agency, and the termination payment node corresponds to the payment account of the transaction agency. State the payment account of the paid party.
  • the specific implementation manner is as follows: When the payment condition of at least one of the remaining execution phases of the two installment transaction is triggered, read the second installment value corresponding to the triggered remaining payment phase in the second installment transaction; according to the second installment transaction; The installment payment link deducts the deduction amount corresponding to the second installment payment value from the data amount of the data account space of the payer, and transfers out from the actual data account corresponding to the data account space of the payer The payment resource corresponding to the second installment payment value is sent to the payment account of the transaction agency.
  • the duration of the data settlement cycle of the data account space is equal to the duration of the payment processing cycle in the remaining payment phase of the second installment payment transaction, and the data quota of the data account space is deducted in the previous data settlement cycle.
  • the deduction quota is subtracted, and after the data settlement processing of the subsequent data settlement cycle, the deduction of the deduction quota to the data quota is updated.
  • the second intermediate payment transaction corresponding to the remaining payment stage is determined, and the second intermediate payment transaction is paid
  • the process of processing is to transfer the remaining funds to the paid party through the fund account of the transaction agency, and this is equivalent to the payment platform defaulting on the transaction agency’s funds, and the payer defaulting on the payment platform’s funds, through While freezing the payment amount corresponding to the funds in the payment account of the payer, transfer funds equivalent to the funds from the fund account of the payer to the fund account of the transaction agency.
  • the transaction processing method provided in this manual realizes the payment processing for pending transactions in a phased payment manner, so that the pending transaction can be completed by paying less payment resources in each payment stage, and the payer does not need to pay once Provide full payment funds, and will not occupy a large amount of payment lines in the payer’s data account space.
  • the payer only needs to perform payment processing in accordance with the payment transactions corresponding to each payment stage of the installment transaction to realize the pending transaction.
  • the payment processing method can not only improve the experience of the payer, but also avoid the situation that the transaction party pays additional payment resources, which effectively guarantees the interests of the payer.
  • FIG. 7 shows a processing flowchart of the second transaction processing method provided by the embodiment of this specification, which specifically includes the following steps S702 to S730.
  • Step S702 Obtain transaction metadata of the transaction to be processed.
  • the paying party in the process of payment processing between the paying party and the paid party for the payment demand, the paying party usually needs to pay all the funds to the paid party for the payment demand to obtain the ownership of the item corresponding to the payment demand.
  • the payer will pay all the funds at this time, which may cause the payer’s funds to flow unsmoothly.
  • the payment platform provides the payer with a sum that can be used for payment needs. The payer can pay for the payment demand through the payment line, and only needs to repay the payment platform corresponding to the payment line at the time of the payment line repayment.
  • the payment limit may not be available in the next period of time when too many payment limits are used for payment needs. Satisfying the payer’s other payment intentions, and the payer needs to bear the full payment line at one time during the process of repaying the payment line. This may reduce the frequency of the payer’s use of the payment line and cause the loss of payment service users.
  • the transaction processing method provided in this embodiment realizes that the payment platform can manage the payment limit in installments in the process of the payer’s payment of the payment demand. That is, after the payer purchases the goods, the payment platform can manage the payment by installments. The price of the purchased goods is paid in installments through the payment line, and the amount to be repaid in each period is borne by the transaction agency of the payment platform. The payment line corresponding to the amount to be repaid in each period will be in the payment account of the payer After freezing, the subsequent payment platform repays the funds to the payment platform, and then the payment platform repays the funds to the transaction agency, and the corresponding frozen payment quota will be unfrozen until the payment of the corresponding quota for all periods is completed, and the payment business ends.
  • the transaction processing requires data support involving multiple processing platforms.
  • the transaction processing method can be implemented on the basis of a distributed system. Specifically, by creating a distributed transaction corresponding to the transaction to be processed, and based on the distributed system The coordination among transaction-supporting servers, resource servers, and transaction managers deployed on different nodes enables the creation of distributed transactions based on transaction metadata, and the execution of distributed transactions according to the submitted execution mode. Processing, thereby further improving the processing efficiency and processing consistency of the transaction processing of the transaction to be processed.
  • This embodiment will be described as a process in which the payee actively performs payment processing for payment transactions in each payment stage.
  • Step S704 Create an installment payment transaction for the transaction to be processed according to the transaction metadata.
  • transaction payment information and payment links of each payment stage are recorded in the installment payment transaction.
  • an installment payment transaction of the pending transaction will be created based on the metadata, and the installment payment transaction specifically refers to the pending transaction.
  • the payment processing process of processing transactions is divided into one or more payment stages, and then the transaction to be processed is transactionized.
  • the transaction that requires payment processing in each payment stage is called a payment transaction, and the data of all payment stages of the transaction to be processed The whole of the transaction constitutes the installment transaction.
  • the transaction payment information of each payment stage recorded in the installment transaction specifically refers to the information that the payer needs to pay for each payment stage, the information that the paid party needs to collect payment funds, and the payment link specifically refers to the direction of payment. The path through which payment funds flow during payment processing by the payee.
  • Step S706 Receive a prepayment request submitted by the payee of the installment payment transaction for the at least one payment phase.
  • the paid party needs to recover the unpaid funds of the goods that are in installment. That is, the paid party needs to have the unpaid payer remaining unpaid. The paid funds are recovered so that the paid party can purchase new goods. In practical applications, the paid party can also recover part of the funds that the payer has not paid.
  • the target payment transaction at this time is the payment transaction composition for the payment transaction that needs to be processed in advance by the payee, and the process of determining the target payment transaction can be through step S708 to step S708.
  • S712 is implemented.
  • Step S708 Calculate the total payment value corresponding to the pre-payment request according to the target transaction payment information of the at least one payment stage corresponding to the pre-payment request.
  • the total amount of funds received for the prepayment request is calculated according to the payment requirements of the payee for payment information of multiple payment stages.
  • Step S710 Determine the target payment link based on the account path of the payment account of both the payee and the transaction agency of the installment payment transaction.
  • determining the target payment link is to determine the account path of the payment account of both the payee and the transaction agency. For example, in the process of the payee's application for collection, because the payee is to avoid paying too much at one time At this time, the transaction agency can provide the funds corresponding to the payment limit, so the account path of the payment account between the payee and the transaction agency is determined to facilitate subsequent payment.
  • step S712 an intermediate payment transaction is established based on the total payment value and the target payment link as the target payment transaction.
  • the initial payment node of the target payment link corresponds to the payment account of the transaction agency
  • the termination payment node corresponds to the payment account of the transaction agency
  • the total amount of funds paid by the payee to the payer is 500 yuan.
  • the transaction agency should provide the payee with 500 yuan of funds for the payment. This is based on the total payment funds and the difference between the payee and the transaction agency.
  • the account path of the inter-payment account determines the target payment transaction.
  • Step S714 Apply for the payment resource corresponding to the total payment value from the payment account of the transaction agency to the payment account of the payee.
  • Step S716 Determine the installment payment link from the payer to the transaction agency according to the account path of the payment account of both the payer and the transaction agency.
  • the account path of the payment account determines the installment payment link from the payer to the transaction agency.
  • the transaction agency transfers 500 yuan of funds to the paid party
  • the payer needs to repay the 500 yuan of funds at this time, and for the payer, it is equivalent to defaulting on the payment platform 500 payment limit, and The payment platform owes 500 yuan to the transaction agency.
  • the installment payment link is determined based on the account path between the payer and the transaction agency.
  • Step S718, according to the installment payment link and the data execution information of the execution section to be executed in the installment payment transaction, construct the first installment payment transaction of the payment stage to be paid in the installment payment transaction.
  • the initial payment node of the installment payment link corresponds to the payment account of the payer
  • the termination payment node corresponds to the payment account of the transaction agency. That is, the payment can be realized through the installment payment link.
  • Resources are transferred from the data account space of the payer to the payment account of the transaction agency; based on this, the first installment payment transaction of the payment stage to be paid in the segmented payment transaction needs to be established at this time.
  • the first installment payment transaction specifically refers to a payment transaction established between the payer and the transaction agency for the payment phase to be paid.
  • Step S720 in the case that the payment condition of the payment phase of the first installment payment transaction is triggered, read the first installment payment value corresponding to the triggered payment phase in the first installment transaction.
  • the payment stage of the first installment transaction can be performed at a set time node. Whether the payment condition is triggered for detection, if not, it means that the time node for payment processing for the first installment transaction has not been reached at this time, and nothing needs to be done; if it is, it means that the first installment transaction needs to be processed at this time Perform payment processing and read the first installment payment value corresponding to the triggered payment stage in the first installment transaction.
  • the first installment fund corresponding to the triggered payment stage in the first installment transaction is 500 yuan.
  • Step S722 According to the installment payment link, deduct the deduction amount corresponding to the first installment payment value from the data quota of the payer’s data account space, and correspond to the payer’s data account space The actual data account transfers the payment resource corresponding to the first installment value to the payment account of the transaction agency.
  • the duration of the data settlement cycle of the data account space is equal to the duration of the payment processing cycle in the execution phase of the first installment payment transaction, and the data quota of the data account space is deducted in the previous data settlement cycle
  • the deduction amount is updated after the data settlement processing of the subsequent data settlement cycle, the deduction amount of the deduction amount to the data amount.
  • the payment line corresponding to 500 yuan of funds needs to be deducted in the payment account of the payer.
  • the payer’s available payment line in the month will be short of 500.
  • the transfer of 500 yuan of funds from the payment amount account corresponding to the data account space of the payer to the transaction agency indicates that the 500 yuan fund between the payment platform and the transaction agency has been settled at this time.
  • the payment limit when the payer’s payment limit is used, the payment limit will be updated every settlement time. For example, the payer’s payment limit is 1000. When the payer uses the payment limit of 100, the payment will be made at this time.
  • the available payment limit of the party is 900, and when the settlement period is reached, and the payer repays the payment limit of 100, the payment limit of the payer after the settlement period is 1000.
  • Step S724 Calculate the second payment surcharge according to the total payment value and the corresponding second payment rate.
  • Step S726 Perform settlement processing of the second payment surcharge on the paid party.
  • the second payment rate includes the transaction rate generated by the transaction processing of the transaction agency, and the second payment surcharge calculated based on the second payment rate is paid by the paid Party bears.
  • the paid party needs to provide a certain amount for the total payment value.
  • the second payment surcharge needs to be calculated and determined based on the total payment value and the second payment rate for settlement processing.
  • Step S728 Calculate the first payment surcharge corresponding to the payment stage according to the first payment instalment value and the first payment rate corresponding to the payment stage.
  • Step S730 Perform settlement processing of the first payment surcharge on the payee.
  • the first payment rate includes the payment rate generated by the payment processing of the first instalment transaction in the payment stage, and the first payment obtained by calculation according to the first payment rate The surcharge shall be borne by the said paid.
  • the transaction processing method provided in this manual realizes the payment processing for pending transactions in a phased payment manner, so that the pending transaction can be completed by paying less payment resources in each payment stage, and the payer does not need to pay once Provide full payment funds, and will not occupy a large amount of payment lines in the payer’s data account space.
  • the payer only needs to perform payment processing in accordance with the payment transactions corresponding to each payment stage of the installment transaction to realize the pending transaction.
  • the payment processing method can not only improve the experience effect of the payer, but also avoid the situation that the transaction party pays with payment resources, which effectively guarantees the interests of the payer.
  • FIG. 8 it shows a schematic diagram of a transaction processing device provided by this embodiment, including: a data acquisition module 802, configured to acquire transaction metadata of a transaction to be processed; and a transaction creation module 804, configured to acquire transaction metadata according to The transaction metadata creates an installment payment transaction for the transaction to be processed; the installment payment transaction records transaction payment information and payment links of each payment stage; the transaction analysis module 806 is configured to be based on the installment payment transaction The payment method submitted in at least one payment phase of the transaction analyzes the installment payment transaction to obtain the target payment transaction corresponding to the payment method; the transaction processing module 808 is configured to follow all the records recorded in the target payment transaction. The target transaction payment information and target payment link of the at least one payment stage are used to perform payment processing on the target payment transaction.
  • the transaction processing device further includes: an installment number determining module configured to determine the recommended installment number of the payment stage pushed to the payer according to the historical transaction payment log of the payer of the installment payment transaction , And determine the number of installments in the payment phase of the installment transaction according to the payment instruction submitted by the payer for the recommended installment number; or, predict the payee based on the transaction record of the payee of the installment transaction
  • the payment collection time interval of the payer determines the installment duration and/or the number of installments of the payment phase of the installment payment transaction according to the collection time interval.
  • the transaction analysis module 806 includes: a transaction analysis sub-module configured to be triggered according to the payment conditions of the payment phase when the payment conditions of the payment phase of the installment transaction are triggered.
  • the installment payment method is to decompose the installment payment transaction to obtain the target payment transaction corresponding to the installment payment method; or, the payer who receives the installment payment transaction submits an installment payment request for the at least one payment stage Based on the installment payment method carried in the installment payment request, the installment payment transaction is decomposed, and the target payment transaction corresponding to the installment payment method is obtained; wherein, the target payment corresponding to the installment payment method In the transaction, the target transaction payment information and target payment link of the at least one payment stage are recorded, the target transaction payment information is determined based on the transaction payment information of the at least one payment stage, and the target payment link is based on the The payment link for at least one payment stage is determined.
  • the transaction processing module 808 includes: a first payment value reading sub-module configured to read the payment value corresponding to the at least one payment phase contained in the target transaction payment information; the first payment The resource transfer sub-module is configured to deduct the deduction amount corresponding to the payment value from the data amount of the data account space of the payer according to the target payment link, and from the data account of the payer The actual data account corresponding to the space transfers the payment resource corresponding to the payment value to the data account of the payee of the installment payment transaction; wherein, the payment node of the target payment link at least corresponds to the payer’s data The account space and the data account of the payee; the data settlement period of the data account space is equal to the payment processing period of the payment phase of the installment transaction, and the data is processed in the previous data settlement period.
  • the data quota of the account space deducts the deduction quota, and the deduction of the data quota by the deduction quota is updated after the data settlement processing in the subsequent data settlement cycle.
  • the transaction processing module 808 further includes: a second payment value reading sub-module configured to read the payment value corresponding to the at least one payment phase contained in the target transaction delivery information; second The payment resource transfer submodule is configured to transfer the payment resource corresponding to the payment value from the payment account of the payer to the payment account of the payee according to the target payment link; wherein, the target The initial payment node of the payment link corresponds to the payment account of the paying party, and the termination payment node corresponds to the payment account of the paid party.
  • the transaction processing module 808 further includes: a surcharge calculation sub-module configured to calculate the at least one payment stage based on the payment value and the first payment rate corresponding to the at least one payment stage The corresponding first payment surcharge; the fee settlement sub-module is configured to perform the settlement processing of the first payment fee on the paid party; wherein, the first payment fee rate includes the payment transaction of the installment For the payment rate generated by the payment processing in the at least one payment stage, the first payment surcharge calculated according to the first payment rate is borne by the paid party.
  • the transaction analysis module 806 further includes: a prepayment request receiving sub-module configured to receive a prepayment request submitted by the payee of the installment payment transaction for the at least one payment phase; payment transaction acquisition The sub-module is configured to assemble the transaction payment information and payment link corresponding to the at least one payment stage based on the pre-payment method carried in the pre-payment request to obtain the target payment transaction corresponding to the pre-payment method .
  • the payment transaction obtaining sub-module includes: a total payment value calculation unit configured to calculate the corresponding prepayment request according to the target transaction payment information of the at least one payment phase corresponding to the prepayment request
  • the target payment link determination unit is configured to determine the target payment link based on the account path of the payment account of both the payee and the transaction agency of the installment transaction; the target payment transaction determination unit is configured In order to establish an intermediate payment transaction based on the total payment value and the target payment link as the target payment transaction; wherein, the initial payment node of the target payment link corresponds to the payment account of the transaction agency, The termination payment node corresponds to the payment account of the transaction agency.
  • the transaction processing module 808 further includes: a resource processing sub-module configured to apply for the payment resource corresponding to the total payment value from the payment account of the transaction agency to the payment account of the payee
  • the installment payment link determination submodule is configured to determine the installment payment from the payer to the transaction agency according to the account path of the payment account of the payer of the installment transaction and the transaction agency Link; the installment payment transaction establishment sub-module, configured to construct the payment stage to be paid in the installment payment transaction according to the installment payment link and the data execution information of the execution section to be executed in the installment payment transaction The first installment payment transaction; wherein the start payment node of the installment payment link corresponds to the payment account of the payer, and the termination payment node corresponds to the payment account of the transaction agency.
  • the transaction processing device further includes: a payment value reading module configured to read the first installment payment when the payment condition of the payment phase of the first installment transaction is triggered The first instalment payment value corresponding to the payment phase triggered in the transaction; the payment value processing module is configured to deduct the first installment from the data amount of the payer’s data account space according to the instalment payment link The deduction amount corresponding to the payment value, and the payment resource corresponding to the first installment value is transferred from the actual data account corresponding to the data account space of the payer to the payment account of the transaction agency; where The duration of the data settlement cycle of the data account space is equal to the duration of the payment processing cycle in the execution phase of the first installment payment transaction, and the data quota of the data account space is deducted from the deduction in the previous data settlement cycle Quota, after the data settlement processing in the next data settlement cycle, the deduction of the deduction quota to the data quota is updated.
  • a payment value reading module configured to read the first installment payment when the payment condition of the payment phase of the first installment transaction
  • the transaction processing module 808 further includes: a surcharge calculation sub-module configured to calculate a second payment surcharge based on the total payment value and the corresponding second payment rate; a surcharge settlement sub-module , Configured to perform the settlement processing of the second payment surcharge on the paid party; wherein, the second payment rate includes the transaction rate generated by the transaction processing of the transaction agency, based on the The second payment surcharge obtained by calculating the second payment rate shall be borne by the paid party.
  • a surcharge calculation sub-module configured to calculate a second payment surcharge based on the total payment value and the corresponding second payment rate
  • a surcharge settlement sub-module Configured to perform the settlement processing of the second payment surcharge on the paid party
  • the second payment rate includes the transaction rate generated by the transaction processing of the transaction agency, based on the The second payment surcharge obtained by calculating the second payment rate shall be borne by the paid party.
  • the transaction processing device further includes: a surcharge calculation module configured to calculate the first payment rate corresponding to the payment stage based on the first installment payment value and the first payment rate corresponding to the payment stage A payment surcharge; a surcharge settlement module configured to perform settlement processing of the first payment surcharge on the payee; wherein, the first payment rate includes payment transactions for the first installment For the payment rate generated by the payment processing in the payment stage, the first payment surcharge calculated according to the first payment rate shall be borne by the paid.
  • a surcharge calculation module configured to calculate the first payment rate corresponding to the payment stage based on the first installment payment value and the first payment rate corresponding to the payment stage A payment surcharge
  • a surcharge settlement module configured to perform settlement processing of the first payment surcharge on the payee
  • the transaction processing device further includes: a prepayment request receiving module configured to receive a second prepayment request submitted by the payee of the installment payment transaction for the remaining payment phase; an intermediate payment transaction obtaining module, Is configured to assemble the transaction payment information and payment link corresponding to the remaining payment segment based on the second prepayment method carried in the second prepayment request, and obtain the second prepayment method corresponding to the second prepayment method.
  • a prepayment request receiving module configured to receive a second prepayment request submitted by the payee of the installment payment transaction for the remaining payment phase
  • an intermediate payment transaction obtaining module Is configured to assemble the transaction payment information and payment link corresponding to the remaining payment segment based on the second prepayment method carried in the second prepayment request, and obtain the second prepayment method corresponding to the second prepayment method.
  • the second intermediate payment transaction records the second total payment value corresponding to the second prepayment request;
  • the payment processing module is configured to pass payment from the transaction agency of the installment payment transaction The account applies for the payment resource corresponding to the second total payment value to the payment account of the payee to perform payment processing on the second intermediate payment transaction;
  • the installment payment link determination module is configured to The account path of the data account of the payer of the installment payment transaction and the transaction agency determines the second installment payment link from the payer to the transaction agency;
  • the installment payment transaction building module is configured to The second installment payment link and the transaction payment information of the remaining payment stage form a second installment payment transaction corresponding to the remaining payment stage; wherein, a second intermediate payment chain is recorded in the second intermediate payment transaction Road, the initial payment node of the second intermediate payment link corresponds to the payment account of the transaction agency, and the termination payment node corresponds to the payment account of the paid party.
  • the transaction processing device further includes: an installment payment value reading module configured to read when the payment condition of at least one of the remaining execution stages of the second installment transaction is triggered The second installment payment value corresponding to the remaining payment phase triggered in the second installment transaction; the deduction module is configured to perform data on the data account space of the payer according to the second installment link The amount deducts the deduction amount corresponding to the second installment payment value, and transfers the payment resource corresponding to the second installment payment value from the actual data account corresponding to the data account space of the payer to the transaction agent The payment account of the institution; wherein the duration of the data settlement cycle of the data account space is equal to the duration of the payment processing cycle of the remaining payment phase of the second installment payment transaction, and the data account space is The deduction quota is deducted from the data quota of, and the deduction of the data quota by the deduction quota is updated after the data settlement processing in the subsequent data settlement cycle.
  • an installment payment value reading module configured to read when the payment condition of at least one of the remaining execution stages of the second installment transaction is triggered
  • the transaction processing device further includes: a value judgment module configured to determine whether the value to be traded contained in the transaction metadata is less than or equal to the available data account space of the payer of the installment transaction Data quota; if the execution result of the numerical judgment module is yes, run the transaction creation module 804; if the execution result of the numerical judgment module is no, then run the push module; the push module is configured to The payer pushes a notification that the processing fails.
  • a value judgment module configured to determine whether the value to be traded contained in the transaction metadata is less than or equal to the available data account space of the payer of the installment transaction Data quota
  • the execution result of the numerical judgment module is yes, run the transaction creation module 804
  • the execution result of the numerical judgment module is no, then run the push module
  • the push module is configured to The payer pushes a notification that the processing fails.
  • FIG. 9 shows a processing flowchart of the second data processing method provided by the embodiment of this specification, which specifically includes the following steps S902 to S912.
  • Step S902 Receive a service processing request for the service to be processed submitted by the first client.
  • the data processing method provided in this embodiment is applied to the server side, and cooperates with the data processing method applied to the first client provided below to jointly realize the segmented execution processing of the service to be processed. Please refer to the following for reading this embodiment Provides an explanation of the corresponding part of the embodiment of the data processing method applied to the first client.
  • the second data processing method can be implemented on the basis of a distributed system. Specifically, by creating a distributed transaction corresponding to the business to be processed, and based on the distribution The collaboration among transaction-supporting servers, resource servers, and transaction managers deployed on different nodes in a distributed system realizes the creation of distributed transactions on the basis of metadata, as well as the implementation of distributed transactions based on the submitted execution mode. Transaction execution processing to further improve the processing efficiency and processing consistency of the business execution processing of the business to be processed.
  • the services to be processed in this embodiment include transaction services, data stream processing services, payment services, etc.
  • this embodiment uses payment business scenarios as an example to illustrate the data processing methods, transaction business scenarios and data volume processing
  • the implementation of the business scenario refer to the specific implementation of the data processing method applied to the payment business scenario provided in this embodiment, and this embodiment will not repeat them one by one.
  • the pending services include: transaction services, data stream processing services, and payment services; correspondingly, the transaction services specifically refer to transactions related to transaction processing related to item transactions, resource transactions, or data transactions;
  • the data stream processing business specifically refers to a related business related to data stream invocation processing;
  • the payment business specifically refers to a related business related to commodity payment processing.
  • the corresponding metadata refers to the calling task that needs to be performed on the data stream processing service; when the service to be processed is a transaction service, corresponding The metadata refers to the total transaction amount required for the transaction business; when the business to be processed is a payment business, the corresponding metadata refers to the total payment funds that need to be paid for the payment business.
  • the two parties involved in the payment business interaction are divided into the paying party (physical store users, electronic transaction platform purchase users) and the paid party (physical store, electronic transaction platform merchants), and the first customer
  • the end corresponds to the payer
  • the payee corresponds to the second client.
  • the payment service interaction between the payer and the payee is implemented through the first client and the second client and under the intermediary of the server.
  • the paying party wants to pay in installments for a completed transaction or a transaction to be concluded (ie: pending payment business)
  • the payment will be made first
  • the party selects the number of installments to be processed for the payment service to be processed through the first client, and submits the installment payment instruction based on the selected installment number
  • the first client uses the installment payment submitted by the payer
  • the instruction submits the corresponding installment payment request to the server, and writes the number of installments and the service ID of the pending payment service in the installment request.
  • the server receives the installment request and writes it in the installment request.
  • the subsequent installment payment processing is performed on the basis of the number of installments carried in the installment payment request and the service ID of the payment service to be processed.
  • Step S904 Create a segment data transaction corresponding to the service processing request according to the number of segments and the metadata corresponding to the service identifier.
  • the metadata corresponding to the service identifier is determined, that is, the metadata corresponding to the service to be processed. Based on the number of segments and metadata, a segment data transaction corresponding to the service processing request is created.
  • the execution process of the business to be processed is first divided according to the business processing node, and the execution process of the business to be processed is divided into one or more execution stages (execution sections), and then the business to be processed is executed.
  • the transaction that needs to be processed in each execution stage is called a data transaction, and the whole of the data transactions in all execution stages of the business to be processed is called a segmented data transaction.
  • the data transactions of each execution stage in the segmented data transaction are sequentially sorted according to the time sequence of the execution processing.
  • the data of each execution stage Transactions are also processed in sequence in order of sorting. Specifically, in the segmented data transaction, various data execution information and data links are also recorded.
  • the transactional business when the pending business is a transactional business, the transactional business will use a staged transaction method to execute a staged transactional transaction; when the pending business is a data stream processing business, The data volume processing service will adopt a phased processing method to execute a phased data flow processing transaction; in the case that the to-be-processed service is a payment service, the payment service adopts a phased payment method to execute a phased payment transaction.
  • a paying user purchases a product at a merchant through a payment line provided by the payment platform.
  • the price of the product is 1,000 yuan.
  • the paying user repays the payment line to the payment platform by installments.
  • the total period is The number is 10 periods, and the repayment limit for each period is 100.
  • the user needs to pay the payment platform to repay the payment platform with a payment amount equal to 100, and the payment platform will transfer the 100 yuan fund provided by the financial institution to the merchant.
  • This payment process can be referred to as a payment transaction in the payment phase, and the payment transaction composition corresponding to the ten payment phases in the payment business is referred to as the phased payment transaction in the payment business.
  • the following manners can also be used to implement the creation of a segmented data transaction corresponding to the business processing request: judging the Whether the processing value of the to-be-processed data contained in the metadata is less than or equal to the available data quota of the data account space of the data outflow object corresponding to the first client; if so, create the segment of the to-be-processed service based on the metadata Data transaction; if not, push a notification of processing failure to the first client.
  • Step S906 Deliver the segmented data transaction to the first client.
  • the segmented data transaction is issued to the first client, with the purpose of enabling the payer corresponding to the first client to know the segment Data transaction.
  • the first client corresponding to the payer sends the installment transaction of the payment service to be processed, so that the payer knows the number of installments of the payment service to be processed and the payment details of each installment payment stage.
  • Step S908 Analyze the segmented data transaction according to the segmented execution mode submitted by the first client for the segmented data transaction to obtain a target data transaction corresponding to the segmented execution mode.
  • the segmented data transaction is specifically analyzed in the following manner: receiving the segmented execution manner submitted by the first client for the at least one execution segment;
  • the segmented execution mode decomposes the segmented data transaction to obtain the target data transaction corresponding to the segmented execution mode; wherein, in the target data transaction corresponding to the segmented execution mode, there is recorded
  • the target data execution information and target data link of the at least one execution section the target data execution information is determined based on the data execution information of the at least one execution section, and the target data link is based on the data execution information of the at least one execution section.
  • the data link is determined.
  • the corresponding execution stage includes each transaction stage in the staged transaction process; in the case that the segmented data transaction is a staged data flow processing transaction, the corresponding execution stage includes each data processing stage in the staged processing process; In the case that the segmented data transaction is a phased payment transaction, the corresponding execution segment includes each payment phase in the phased payment process.
  • the first client corresponding to the payer sends the installment payment method submitted for the installment transaction to the server. At this time, it can be determined that the payer has at least one payment stage for the installment transaction. If payment processing is actively performed, the installment payment method submitted by the first client corresponding to the payer analyzes the installment payment transaction, and determines the target payment transaction corresponding to at least one payment stage in which the payer needs to perform payment processing.
  • the payer can also send the installment payment method to the server through the first client for multiple payment stages at the same time.
  • the target payment transaction created through multiple payment stages is also for multiple payment stages, so in the subsequent payment processing During the process, payment processing needs to be performed on the target payment transaction composed of payment transactions corresponding to multiple payment stages at the same time.
  • Step S910 Perform execution processing on the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction.
  • the execution processing of the target data transaction is specifically implemented in the following manner: reading the data corresponding to the at least one execution segment contained in the target data execution information Flow value; according to the target data link, deduct the deduction amount corresponding to the data flow value from the data quota of the data account space of the data outflow object corresponding to the first client, and, from the data outflow
  • the actual data account corresponding to the data account space of the object transfers the data resource corresponding to the data flow value to the data account of the data inflow object corresponding to the second client; wherein, the data node of the target data link at least corresponds to all The data account space of the data outflow object and the data account of the data inflow object; the duration of the data settlement cycle of the data account space is equal to the duration of the execution processing cycle of the execution section of the segmented data transaction, which is in the previous The data settlement cycle deducts the deduction quota from the data quota of the data account space, and after the data settlement processing of the subsequent data settlement cycle
  • the first execution additional data value is borne by the data inflow object.
  • Step S912 Push the execution processing result of the target data transaction to the first client.
  • the payee can also choose to apply for data inflow in advance according to its actual business needs, and be The payer's application for data inflow in advance does not affect the payer's installment payment.
  • the payer's application for data inflow in advance is specifically implemented in the following manner.
  • the second intermediate data transaction Perform execution processing
  • a second intermediate data link is recorded in the second intermediate data transaction, the starting data node of the second intermediate data link corresponds to the data account of the intermediate data object, and the terminating data node corresponds to the Data flows into the data account of the subject.
  • the payer’s installment payment after the payee’s application for data inflow is specifically implemented in the following manner: in the remaining execution section of the second segment data transaction When the execution condition of at least one of the second segment data is triggered, read the second segment data flow value corresponding to the remaining execution segment triggered in the second segment data transaction; according to the second segment data link , Deduct the deduction amount corresponding to the second segment data flow value from the data quota of the data account space of the data outflow object, and transfer out from the actual data account corresponding to the data account space of the data outflow object The data resource corresponding to the second segment data flow value is transferred to the data account of the intermediate data object; wherein the duration of the data settlement period of the data account space is equal to the remaining execution period of the second segment
  • the second data processing method provided in this manual realizes that the corresponding execution segment can be processed more flexibly according to the submitted execution mode.
  • the business to be processed is executed in the form of data transaction, which improves the performance of business execution processing. Processing efficiency and processing consistency.
  • FIG. 10 shows a schematic diagram of a second data processing apparatus provided in this embodiment, including: a request receiving module 1002 configured to receive a service processing request for a service to be processed submitted by a first client;
  • the service processing request carries the service identifier and the number of segments;
  • the segment data transaction creation module 1004 is configured to create the segment data corresponding to the service processing request according to the number of segments and the metadata corresponding to the service identifier Transaction;
  • the segmented data transaction records the data execution information and data link of each execution segment;
  • the transaction sending module 1006 is configured to deliver the segmented data transaction to the first client; segmented data
  • the transaction analysis module 1008 is configured to analyze the segmented data transaction according to the segmented execution mode submitted by the first client for the segmented data transaction to obtain a target corresponding to the segmented execution mode Data transaction;
  • transaction processing module 1010 configured to perform execution processing on the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the
  • the segmented data transaction analysis module 1008 includes: a receiving sub-module configured to receive a segmented execution mode submitted by the first client for the at least one execution segment; a decomposition sub-module configured to In order to decompose the segmented data transaction according to the segmented execution mode to obtain the target data transaction corresponding to the segmented execution mode; wherein, the target data transaction corresponding to the segmented execution mode is , The target data execution information and the target data link of the at least one execution section are recorded, the target data execution information is determined based on the data execution information of the at least one execution section, and the target data link is based on the at least one execution section. Perform the data link determination of the segment.
  • the transaction processing module 1010 further includes: a reading sub-module configured to read the data flow value corresponding to the at least one execution segment contained in the target data execution information; a data resource processing sub-module , Configured to deduct the deduction quota corresponding to the data flow value from the data quota of the data account space of the data outflow object corresponding to the first client according to the target data link, and, from the data The actual data account corresponding to the data account space of the outgoing object transfers the data resource corresponding to the data flow value to the data account of the data inflow object corresponding to the second client; wherein, the data node of the target data link corresponds to at least The data account space of the data outflow object and the data account of the data inflow object; the duration of the data settlement cycle of the data account space is equal to the duration of the execution processing cycle of the execution section of the segmented data transaction, and the preceding A data settlement cycle deducts the deduction quota from the data quota of the data account space, and after the data settlement
  • the transaction processing module 1010 further includes: a calculation sub-module configured to calculate the at least one execution based on the data flow value and the proportion of the first execution additional data corresponding to the at least one execution segment The first execution additional data value corresponding to the segment; a settlement sub-module configured to perform the data settlement processing of the first execution additional data value on the data inflow object; wherein the proportion of the first execution additional data includes The processing fee rate generated by the execution processing of the segmented data transaction in the at least one execution segment, the first execution additional data value obtained by calculating the proportion of the first execution additional data is flowed into the object by the data bear.
  • the data processing device further includes: a pre-execution request receiving module configured to receive a second pre-execution request submitted by the data inflow object corresponding to the second client for the remaining execution segments; an assembly module configured to Based on the second pre-execution mode carried in the second pre-execution request, the data execution information and data link corresponding to the remaining execution segments are assembled to obtain second intermediate data corresponding to the second pre-execution mode Transaction; the second intermediate data transaction records the second total data flow value corresponding to the second pre-execution request; the transaction execution processing module is configured to pass data from the intermediate data object of the segmented data transaction The account applies for the data resource corresponding to the second total data flow value to the data account of the data inflow object, and executes the processing of the second intermediate data transaction; the data link determination module is configured to perform processing according to the The account path of the data account of both the data outflow object corresponding to the first client and the intermediate data object determines the second segmented data link from the data outflow object to the intermediate data object;
  • the data processing device further includes: a value reading module configured to read the data when the execution condition of at least one of the remaining execution segments of the second segmented data transaction is triggered.
  • the resource transfer module is configured to perform data flow of the data out of the object according to the second segment data link.
  • the data quota of the account space deducts the deduction quota corresponding to the data flow value of the second segment, and transfers the data flow value of the second segment from the actual data account corresponding to the data account space of the data outflow object
  • the segmented data transaction creation module 1004 further includes: a judging sub-module configured to judge whether the processing value of the to-be-processed data contained in the metadata is less than or equal to the data corresponding to the first client The available data quota of the data account space of the outflow object; if the execution result of the judgment submodule is yes, then the creation submodule is run; if the execution result of the judgment module is no, then the reminder push submodule is run; The creation sub-module is configured to create a segmented data transaction of the service to be processed according to the metadata; the reminder push sub-module is configured to push a processing failure reminder to the first client.
  • a judging sub-module configured to judge whether the processing value of the to-be-processed data contained in the metadata is less than or equal to the data corresponding to the first client The available data quota of the data account space of the outflow object; if the execution result of the judgment submodule is yes, then the creation submodule is run; if
  • the to-be-processed services include: transaction services, data stream processing services, and payment services; correspondingly, the segmented data transactions of the to-be-processed services include: segmentation in which the transaction services are executed in a phased transaction mode.
  • a staged transaction transaction, the data stream processing business adopts a staged data stream processing transaction executed by a staged processing method, and the payment business adopts a staged payment transaction executed by a staged payment method; the execution of the segmented data transaction
  • the segments include: each transaction stage in the staged transaction process of the staged transaction transaction, each data processing stage of the staged data flow processing transaction in the staged processing process, the staged payment transaction in the staged payment The various payment stages in the process.
  • FIG. 11 shows a processing flowchart of the third data processing method provided by the embodiment of this specification, which specifically includes the following steps S1102 to S1110.
  • Step S1102 Receive a service processing instruction submitted for the service to be processed.
  • the third data processing method provided in this embodiment is applied to the first client, and cooperates with the second data processing method applied to the server provided above to jointly realize the segmented execution processing of the service to be processed, read this implementation
  • the third data processing method can be implemented on the basis of a distributed system. Specifically, by creating a distributed transaction corresponding to the business to be processed, and based on the distribution The collaboration among transaction-supporting servers, resource servers, and transaction managers deployed on different nodes in a distributed system realizes the creation of distributed transactions on the basis of metadata, as well as the implementation of distributed transactions based on the submitted execution mode. Transaction execution processing to further improve the processing efficiency and processing consistency of the business execution processing of the business to be processed.
  • Step S1104 according to the number of segments corresponding to the service processing instruction, submit a service processing request carrying the number of segments and the service identifier of the service to be processed to the server.
  • Step S1106 Receive and display the segmented data transaction issued by the server in response to the service processing request.
  • Step S1108 Submit a segmented execution mode to the server according to the segmented execution input for the segmented data transaction.
  • Step S1110 Receive the execution processing result of the target data transaction corresponding to the segmented execution mode returned by the server.
  • the third data processing method provided in this manual realizes that the corresponding execution segment can be processed more flexibly according to the submitted execution mode.
  • the business to be processed is executed in the form of data transaction, which improves the business execution processing. Processing efficiency and processing consistency.
  • the third embodiment of the data processing device provided in this specification is as follows.
  • FIG. 12 shows a schematic diagram of a third data processing apparatus provided in this embodiment, including: an instruction receiving module 1202, configured to receive a service processing instruction submitted for a service to be processed; a request submitting module 1204, received It is configured to submit a service processing request carrying the number of segments and the service identifier of the service to be processed to the server according to the number of segments corresponding to the service processing instruction; the transaction receiving module 1206 is configured to receive the service The segmented data transaction issued by the end for the business processing request and display; the segmented execution mode submission module 1208 is configured to submit the segmented data transaction to the server according to the segmented execution input for the segmented data transaction Execution mode; the processing result receiving module 1210 is configured to receive the execution processing result of the target data transaction corresponding to the segmented execution mode returned by the server.
  • an instruction receiving module 1202 configured to receive a service processing instruction submitted for a service to be processed
  • a request submitting module 1204 received It is configured to submit a service processing request carrying the number of
  • FIG. 13 shows a processing flowchart of the fourth data processing method provided by the embodiment of this specification, which specifically includes the following steps S1302 to S1312.
  • Step S1302 Receive a service processing request carrying a service identifier submitted by the second client.
  • the data processing method provided in this embodiment is applied to the server, and cooperates with the fifth data processing method applied to the second client provided below to jointly realize the segmented execution processing of the service to be processed. Please read this embodiment. Compare the description of the corresponding part of the embodiment of the fifth data processing method applied to the second client provided below.
  • the fourth data processing method can be implemented on the basis of a distributed system. Specifically, by creating a distributed transaction corresponding to the business to be processed, and based on the distribution The collaboration among transaction-supporting servers, resource servers, and transaction managers deployed on different nodes in a distributed system realizes the creation of distributed transactions on the basis of metadata, as well as the implementation of distributed transactions based on the submitted execution mode. Transaction execution processing to further improve the processing efficiency and processing consistency of the business execution processing of the business to be processed.
  • the services to be processed in this embodiment include transaction services, data stream processing services, payment services, etc.
  • this embodiment uses payment business scenarios as an example to illustrate the data processing method, transaction business scenarios and data volume
  • the implementation of the processing business scenario refer to the specific implementation of the data processing method applied to the payment business scenario provided in this embodiment, and this embodiment will not repeat them one by one.
  • the two parties involved in the payment business interaction are divided into the paying party (physical store users, electronic transaction platform purchase users) and the paid party (physical store, electronic transaction platform merchants), the first The client corresponds to the payer, and the payee corresponds to the second client.
  • the payment service interaction between the payer and the payee is implemented through the first client and the second client and under the intermediary of the server.
  • the payee will first The payer scans the image identification code (QR code) displayed by the payer through the first client through the second client, and then the second client scans the image identification code based on the payee’s
  • the installment collection instruction submits the corresponding installment payment request to the server, and writes the installment number and the service ID of the payment service to be processed in the installment request.
  • the server receives the installment request and sends it to the server.
  • the payment request carries the number of installments and the service ID of the payment service to be processed to perform subsequent installment payment processing.
  • Step S1304 Create a segmented data transaction corresponding to the service processing request according to the metadata corresponding to the service identifier.
  • the data execution information and data links of each execution segment are recorded in the segmented data transaction.
  • the metadata corresponding to the service identifier that is, the metadata corresponding to the service to be processed, is determined according to the number of segments and the service identifier carried in the service processing request described above.
  • the segment data transaction corresponding to the service processing request is created on the basis of the number of segments of the processing service and the metadata.
  • the execution process of the service to be processed is first divided according to the business service processing node, the execution process of the service to be processed is divided into one or more execution stages (execution sections), and then the service to be processed is performed Transactionalization, the transaction that needs to be processed in each execution stage is called a data transaction, and the whole of the data transactions in all execution stages of the business to be processed is called a segmented data transaction.
  • the data transactions of each execution stage in the segmented data transaction are sequentially sorted according to the time sequence of the execution processing.
  • the data of each execution stage The transactions are also processed in sequence according to the sort order; specifically, the data execution information and data links of each execution segment are recorded in the segmented data transaction.
  • a paying user purchases a product at a merchant through a payment line provided by the payment platform.
  • the price of the product is 1,000 yuan.
  • the paying user repays the payment line to the payment platform by installments.
  • the total period is The number is 10 periods, and the repayment limit for each period is 100.
  • the user needs to pay the payment platform to repay the payment platform with a payment amount equal to 100, and the payment platform will transfer the 100 yuan fund provided by the financial institution to the merchant.
  • This payment process can be referred to as a payment transaction in the payment phase, and the payment transaction composition corresponding to the ten payment phases in the payment business is referred to as the phased payment transaction in the payment business.
  • the transaction business in the case that the business to be processed is a transaction business, the transaction business will adopt a phased transaction method to execute a phased transaction transaction; in the case that the to-be-processed business is a data stream processing business, The data volume processing service uses a phased processing method to execute a phased data flow processing transaction; in the case that the to-be-processed service is a payment service, the payment service uses a phased payment method to execute a phased payment transaction.
  • Step S1306 Deliver the segmented data transaction to the first client and the second client.
  • the server determines the installment payment request made by the payee, and can issue the segmented data transaction to the first client and the second client, That is, the payer and the payee are sent to the payer and the payee of the payment service in stages, and the payer and the payee are reminded that the payer and the payee can perform subsequent installment payment processing for the payment service.
  • the corresponding execution stage includes each transaction stage in the staged transaction process; in the case that the segmented data transaction is a staged data flow processing transaction, the corresponding execution stage includes each data processing stage in the staged processing process; In the case that the segmented data transaction is a phased payment transaction, the corresponding execution segment includes each payment phase in the phased payment process.
  • Step S1308 Analyze the segmented data transaction according to the pre-execution mode submitted by the second client for the segmented data transaction to obtain a target data transaction corresponding to the pre-execution mode.
  • the pre-execution mode for the segmented data transaction is submitted In the case of, it indicates that the payee corresponding to the second client needs to perform processing in advance for the data transaction corresponding to the execution segment that is not processed in the segmented data transaction, so the split is performed through the pre-execution method.
  • the segment data transaction is analyzed, and the target data transaction corresponding to the pre-execution mode is determined.
  • the payee corresponding to the second client can actively make an execution request, and in this case, the target data is determined according to the pre-execution mode submitted by the second client Transaction.
  • the specific process of determining the target data transaction is as follows: receiving the pre-execution submitted by the data inflow object corresponding to the second client for the at least one execution segment Mode; According to the pre-execution mode, the data execution information and the data link corresponding to the at least one execution segment are assembled to obtain the target data transaction corresponding to the pre-execution mode.
  • the process of composing the data execution information and data link corresponding to at least one execution segment based on the pre-execution mode to obtain the target data transaction it specifically refers to the data inflow object corresponding to the second client and Target data transactions between intermediate data objects.
  • the specific process of determining the target data transaction is as follows: According to the target data of the at least one execution segment corresponding to the pre-execution mode Execution information, calculating the total data flow value corresponding to the pre-execution mode; determining the target data link based on the account path of the data account of both the data inflow object and the intermediate data object corresponding to the second client; based on the total data The flow value and the target data link form an intermediate data transaction as the target data transaction.
  • the starting data node of the target data link corresponds to the data account of the intermediate data object
  • the ending data node corresponds to the data account of the data inflow object
  • the paid party when the paid party actively uploads a collection request for the payment stage that has not yet been processed, the paid party will be provided with corresponding payment resources according to the paid party’s collection request (the transaction party has not yet The remaining payment resources paid to the paid party), and the payment resources will be paid to the paid party by the transaction agency in advance, and the payer can later repay the transaction agency with resources equal to the payment resources;
  • the target payment link can form the target payment transaction.
  • Step S1310 Perform execution processing on the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction.
  • the target data transaction will be executed according to the request submitted by the second client, and the execution processing can be understood as The flow of data resources and the process of data deduction.
  • the process of performing execution processing on the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction is as follows: apply for the data resource corresponding to the total data flow value from the data account of the intermediate data object of the segmented data transaction to the data account of the data inflow object; corresponding to the first client The account path of the data account of both the data outflow object and the intermediate data object is determined, and the segment data link from the data outflow object to the intermediate data object is determined; according to the segment data link and the segment The data execution information of the execution segment to be executed in the segment data transaction forms the first segment data transaction of the execution segment to be executed in the segment data transaction.
  • the starting data node of the segmented data link corresponds to the data account of the data outflow object
  • the ending data node corresponds to the data account of the intermediate data object.
  • the specific implementation The method is as follows: when the execution condition of the execution segment of the first segment data transaction is triggered, read the first segment data flow corresponding to the triggered execution segment in the first segment data transaction Numerical value; According to the segmented data link, the data limit of the data account space of the data outflow object is deducted by the deduction limit corresponding to the first segmented data flow value, and, from the data outflow object The actual data account corresponding to the data account space transfers the data resource corresponding to the first segmented data flow value to the data account of the intermediate data object; wherein, the duration of the data settlement period of the data account space is the same as the first The duration of the execution processing cycle of the execution section of a segmented data transaction is equal, and the deduction amount is deducted from the data quota of the data account space in the previous data settlement cycle, and after the data
  • the transaction agency should provide 500 yuan of funds to the payee for the payment
  • the payer is in a two-settlement state relative to the payer, and the payer is equivalent to defaulting on the payment platform's 500 payment limit, and the payment platform will default on the transaction agency's funds of 500 yuan;
  • the transaction agency transfers 500 yuan of funds to the paid party
  • the payer needs to repay the 500 yuan of funds at this time, and for the payer, it is equivalent to defaulting on the payment platform 500 payment limit, and the payment The platform owes 500 yuan to the transaction agency.
  • the installment payment link is determined based on the account path between the payer and the transaction agency. In the process of determining that the payer needs to perform payment processing for the first installment transaction, determine that the first installment fund corresponding to the triggered payment stage in the first installment transaction is 500 yuan;
  • the payment line corresponding to the 500 yuan fund needs to be deducted from the payer’s payment account.
  • the payer’s available payment line for the month will be short of 500, and at the same time
  • the transfer of 500 yuan of funds from the payment amount account corresponding to the data account space of the payer to the transaction agency indicates that the 500 yuan fund between the payment platform and the transaction agency has been settled at this time.
  • the payment limit of the payer when used, the payment limit will be updated every settlement time. For example, the payment limit of the payer is 1000. When the payer uses the payment limit of 100, the payment will be made at this time.
  • the available payment limit of the party is 900, and when the settlement period is reached, and the payer repays the payment limit of 100, the payment limit of the payer after the settlement period is 1000.
  • Step S1312 Push the execution processing result of the target data transaction to the second client.
  • the execution processing result will be pushed to the second client at this time, that is, the result of the transfer in/out of the payment resource will be sent to the paid party.
  • the payee invites the payer to perform payment processing for the payment business through installment payments by scanning, and when the installment transaction is executed, the payee needs to collect installment funds in advance, Send a collection request to the server through the second client.
  • the server will transfer the payment to the paid party’s fund account from the transaction agency to the outstanding amount corresponding to the collection request according to the payment request submitted by the second client.
  • the total instalment funds need to be paid for the transaction between the payer and the transaction agency, and finally the payment limit of the payer is successfully deducted, and the repayment of the total instalment funds for the transaction agency ends.
  • the fourth data processing method provided in this manual realizes that the corresponding execution segment can be processed more flexibly according to the submitted execution mode.
  • the business to be processed is executed in the form of data transaction, which improves the performance of business execution processing. Processing efficiency and processing consistency.
  • the embodiment of the fourth data processing device provided in this specification is as follows: In the above-mentioned embodiment, a data processing method is provided, and correspondingly, a fourth data processing device is also provided, which will be described below with reference to the accompanying drawings.
  • FIG. 14 it shows a schematic diagram of a fourth data processing apparatus provided in this embodiment, including: a request receiving module 1402 configured to receive a service processing request carrying a service identifier submitted by a second client; transaction creation The module 1404 is configured to create a segmented data transaction corresponding to the service processing request according to the metadata corresponding to the service identifier; the segmented data transaction records data execution information and data links of each execution segment; The transaction sending module 1406 is configured to deliver the segmented data transaction to the first client and the second client; the parsing module 1408 is configured to send the segmented data transaction according to the second client’s The submitted pre-execution mode analyzes the segmented data transaction to obtain the target data transaction corresponding to the pre-execution mode; the processing module 1410 is configured to execute according to the at least one recorded in the target data transaction The target data execution information and the target data link of the segment perform execution processing on the target data transaction; the result push module 1412 is configured to push the execution processing result of the target data transaction to
  • the parsing module 1408 includes: a receiving sub-module configured to receive a pre-execution mode submitted by the data inflow object corresponding to the second client for the at least one execution segment; an assembling sub-module, configured In order to assemble the data execution information and the data link corresponding to the at least one execution segment according to the pre-execution mode, to obtain the target data transaction corresponding to the pre-execution mode.
  • the assembly sub-module includes: a calculation unit configured to calculate the total data flow value corresponding to the pre-execution mode according to the target data execution information of the at least one execution segment corresponding to the pre-execution mode
  • the data link determining unit is configured to determine the target data link based on the account paths of the data accounts of both the data inflow object and the intermediate data object corresponding to the second client; the transaction determining unit is configured to determine the target data link based on the total
  • the data flow value and the target data link form an intermediate data transaction as the target data transaction; wherein the starting data node of the target data link corresponds to the data account of the intermediate data object, and the terminating data node corresponds to In the data account of the object where the data flows into.
  • the processing module 1410 includes: a resource processing sub-module configured to apply for the data resource corresponding to the total data flow value to the data inflow from the data account of the intermediate data object of the segmented data transaction The data account of the object; a segmented data link determination sub-module configured to determine the data outflow object from the data outflow object according to the account path of the data outflow object corresponding to the first client and the data account of the intermediate data object A segmented data link to the intermediate data object; a segmented data transaction building sub-module configured to execute data according to the segmented data link and the execution segment to be executed in the segmented data transaction, Establish the first segment data transaction of the execution segment to be executed in the segment data transaction; wherein, the start data node of the segment data link corresponds to the data account of the data outflow object, and the end data node corresponds to In the data account of the intermediate data object.
  • a resource processing sub-module configured to apply for the data resource corresponding to the total data flow value to the data in
  • the data processing device further includes: a data flow value reading module configured to read the first segment data transaction when the execution condition of the execution segment of the first segmented data transaction is triggered.
  • the data resource transfer module is configured to adjust the data quota of the data account space of the data outflow object according to the segment data link
  • the deduction amount corresponding to the first segment data flow value is deducted, and the data resource corresponding to the first segment data flow value is transferred from the actual data account corresponding to the data account space of the data outflow object to The data account of the intermediate data object; wherein the duration of the data settlement cycle of the data account space is equal to the duration of the execution processing cycle of the execution section of the first segmented data transaction, and the data settlement cycle is the same as that of the previous data settlement cycle.
  • the data quota of the data account space deducts the deduction quota, and the deduction of the data quota by the deduction quota is updated after the data settlement processing
  • the to-be-processed services include: transaction services, data stream processing services, and payment services; correspondingly, the segmented data transactions of the to-be-processed services include: segmentation in which the transaction services are executed in a phased transaction mode.
  • a staged transaction transaction, the data stream processing business adopts a staged data stream processing transaction executed by a staged processing method, and the payment business adopts a staged payment transaction executed by a staged payment method; the execution of the segmented data transaction
  • the segments include: each transaction stage in the staged transaction process of the staged transaction transaction, each data processing stage of the staged data flow processing transaction in the staged processing process, the staged payment transaction in the staged payment The various payment stages in the process.
  • FIG. 15 shows a processing flowchart of the fifth data processing method provided by the embodiment of this specification, which specifically includes the following steps S1502 to S1510.
  • Step S1502 Collect the service identification code of the service to be processed displayed by the terminal device corresponding to the first client.
  • the data processing method provided in this embodiment is applied to the second server side, and cooperates with the fourth data processing method applied to the server side provided above to jointly realize the segmented execution processing of the service to be processed. Please refer to this embodiment. The description of the corresponding part of the embodiment of the fourth data processing method applied to the server is provided above.
  • the execution of processing requires data support involving multiple processing platforms.
  • the fifth data processing method can be implemented on the basis of a distributed system. Specifically, by creating a distributed transaction corresponding to the business to be processed, and based on the distribution The collaboration among transaction-supporting servers, resource servers, and transaction managers deployed on different nodes in a distributed system realizes the creation of distributed transactions on the basis of metadata, as well as the implementation of distributed transactions based on the submitted execution mode. Transaction execution processing to further improve the processing efficiency and processing consistency of the business execution processing of the business to be processed.
  • Step S1504 Decode the service identification code, and submit a service processing request carrying the service identification to the server according to the service identification obtained by the decoding.
  • Step S1506 Receive and display the segmented data transaction issued by the server in response to the service processing request.
  • Step S1508 Submit a pre-execution mode to the server according to the pre-execution input for the segmented data transaction.
  • Step S1510 Receive the execution processing result of the target data transaction corresponding to the pre-execution mode returned by the server.
  • the fifth data processing method provided in this manual realizes that the corresponding execution segment can be processed more flexibly according to the submitted execution mode.
  • the business to be processed is executed in the form of data transaction, which improves the performance of business execution processing. Processing efficiency and processing consistency.
  • the embodiment of the fifth data processing device provided in this specification is as follows: In the above-mentioned embodiment, a data processing method is provided, and correspondingly, a fifth data processing device is also provided, which will be described below with reference to the accompanying drawings.
  • FIG. 16 shows a schematic diagram of a fifth data processing apparatus provided in this embodiment, including: a collection module 1602, configured to collect the service identification code of the service to be processed displayed by the terminal device corresponding to the first client
  • the decoding module 1604 is configured to decode the service identification code, and submit a service processing request carrying the service identification to the server according to the service identification obtained by decoding
  • the receiving module 1606 is configured to receive the service identification code
  • the business processes the segmented data transaction issued by the request and displays it
  • the submission module 1608 is configured to submit the pre-execution mode to the server according to the pre-execution input for the segmented data transaction
  • the processing result receiving module 1610 And configured to receive the execution processing result of the target data transaction corresponding to the pre-execution mode returned by the server.
  • the first computing device provided in this manual is as follows.
  • Fig. 17 shows a structural block diagram of a computing device 1700 according to an embodiment of the present specification.
  • the components of the computing device 1700 include, but are not limited to, a memory 1710 and a processor 1720.
  • the processor 1720 and the memory 1710 are connected through a bus 1730, and the database 1750 is used to store data.
  • the computing device 1700 also includes an access device 1740 that enables the computing device 1700 to communicate via one or more networks 1760.
  • networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet.
  • the access device 1740 may include one or more of any type of wired or wireless network interface (for example, a network interface card (NIC)), such as IEEE802.11 wireless local area network (WLAN) wireless interface, global interconnection for microwave access ( Wi-MAX) interface, Ethernet interface, universal serial bus (USB) interface, cellular network interface, Bluetooth interface, near field communication (NFC) interface, etc.
  • NIC network interface card
  • the aforementioned components of the computing device 1700 and other components not shown in FIG. 17 may also be connected to each other, for example, via a bus. It should be understood that the structural block diagram of the computing device shown in FIG. 17 is only for the purpose of example, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.
  • the computing device 1700 can be any type of stationary or mobile computing device, including mobile computers or mobile computing devices (for example, tablet computers, personal digital assistants, laptop computers, notebook computers, netbooks, etc.), mobile phones (for example, smart phones). ), wearable computing devices (for example, smart watches, smart glasses, etc.) or other types of mobile devices, or stationary computing devices such as desktop computers or PCs.
  • the computing device 1700 may also be a mobile or stationary server.
  • the memory 1710 is used to store computer-executable instructions
  • the processor 1720 is used to execute the following computer-executable instructions: obtain metadata of the service to be processed; create a segmented data transaction of the service to be processed according to the metadata The data execution information and data link of each execution segment are recorded in the segmented data transaction; the segmented data transaction is analyzed based on the execution mode submitted for at least one execution segment of the segmented data transaction, Obtain the target data transaction corresponding to the execution mode; perform execution processing on the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction.
  • the foregoing is a schematic solution of the first computing device of this embodiment. It should be noted that the technical solution of the computing device belongs to the same concept as the technical solution of the above-mentioned first data processing method. For details that are not described in detail in the technical solution of the computing device, please refer to the above-mentioned first data processing method. Description of the technical solution.
  • Fig. 18 shows a structural block diagram of a computing device 1800 according to an embodiment of the present specification.
  • the components of the computing device 1800 include, but are not limited to, a memory 1810 and a processor 1820.
  • the processor 1820 and the memory 1810 are connected through a bus 1830, and the database 1850 is used to store data.
  • the computing device 1800 also includes an access device 1840 that enables the computing device 1800 to communicate via one or more networks 1860.
  • networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet.
  • the access device 1740 may include one or more of any type of wired or wireless network interface (for example, a network interface card (NIC)), such as IEEE802.11 wireless local area network (WLAN) wireless interface, global interconnection for microwave access ( Wi-MAX) interface, Ethernet interface, universal serial bus (USB) interface, cellular network interface, Bluetooth interface, near field communication (NFC) interface, etc.
  • NIC network interface card
  • the aforementioned components of the computing device 1800 and other components not shown in FIG. 18 may also be connected to each other, for example, via a bus. It should be understood that the structural block diagram of the computing device shown in FIG. 18 is only for the purpose of example, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.
  • the computing device 1800 can be any type of stationary or mobile computing device, including mobile computers or mobile computing devices (for example, tablet computers, personal digital assistants, laptop computers, notebook computers, netbooks, etc.), mobile phones (for example, smart phones). ), wearable computing devices (for example, smart watches, smart glasses, etc.) or other types of mobile devices, or stationary computing devices such as desktop computers or PCs.
  • the computing device 1800 may also be a mobile or stationary server.
  • the memory 1810 is used to store computer-executable instructions
  • the processor 1820 is used to execute the following computer-executable instructions: obtain transaction metadata of a transaction to be processed; create installment payments for the transaction to be processed according to the transaction metadata Transaction; the instalment payment transaction records the transaction payment information and payment links of each payment stage; based on the payment method submitted for at least one payment stage of the instalment payment transaction, the instalment payment transaction is analyzed to obtain and The target payment transaction corresponding to the payment method; and perform payment processing on the target payment transaction according to the target transaction payment information and target payment link of the at least one payment stage recorded in the target payment transaction.
  • the foregoing is a schematic solution of the second computing device of this embodiment. It should be noted that the technical solution of the computing device belongs to the same concept as the technical solution of the foregoing transaction processing method. For details of the technical solution of the computing device that are not described in detail, please refer to the description of the technical solution of the foregoing transaction processing method.
  • the third computing device provided in this manual is as follows.
  • Fig. 19 shows a structural block diagram of a computing device 1900 according to an embodiment of the present specification.
  • the components of the computing device 1900 include, but are not limited to, a memory 1910 and a processor 1920.
  • the processor 1920 and the memory 1910 are connected through a bus 1930, and the database 1950 is used to store data.
  • the computing device 1900 also includes an access device 1940 that enables the computing device 1900 to communicate via one or more networks 1960.
  • networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet.
  • the access device 1940 may include one or more of any type of wired or wireless network interface (for example, a network interface card (NIC)), such as an IEEE802.11 wireless local area network (WLAN) wireless interface, and global interconnection for microwave access ( Wi-MAX) interface, Ethernet interface, universal serial bus (USB) interface, cellular network interface, Bluetooth interface, near field communication (NFC) interface, etc.
  • NIC network interface card
  • Wi-MAX microwave access
  • Ethernet interface Ethernet interface
  • USB universal serial bus
  • NFC near field communication
  • the aforementioned components of the computing device 1900 and other components not shown in FIG. 19 may also be connected to each other, for example, via a bus. It should be understood that the structural block diagram of the computing device shown in FIG. 19 is only for the purpose of example, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.
  • the computing device 1900 can be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (for example, a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (for example, a smart phone). ), wearable computing devices (for example, smart watches, smart glasses, etc.) or other types of mobile devices, or stationary computing devices such as desktop computers or PCs.
  • the computing device 1900 may also be a mobile or stationary server.
  • the memory 1910 is used to store computer-executable instructions
  • the processor 1920 is used to execute the following computer-executable instructions: receiving a service processing request for a service to be processed submitted by a first client; the service processing request carries a service identifier And the number of segments; create a segmented data transaction corresponding to the service processing request according to the number of segments and the metadata corresponding to the service identifier; the segmented data transaction records the data execution information of each execution segment And the data link; deliver the segmented data transaction to the first client; perform the segmented data transaction according to the segmented execution mode submitted by the first client for the segmented data transaction Analyze to obtain the target data transaction corresponding to the segmented execution mode; execute the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction Processing; Push the execution processing result of the target data transaction to the first client.
  • An example of the fourth computing device provided in this specification is as follows.
  • Fig. 20 shows a structural block diagram of a computing device 2000 provided according to an embodiment of the present specification.
  • the components of the computing device 2000 include but are not limited to a memory 2010 and a processor 2020.
  • the processor 2020 and the memory 2010 are connected through a bus 2030, and the database 2050 is used to store data.
  • the computing device 2000 also includes an access device 2040 that enables the computing device 2000 to communicate via one or more networks 2060.
  • networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet.
  • the access device 2040 may include one or more of any type of wired or wireless network interface (for example, a network interface card (NIC)), such as IEEE802.11 wireless local area network (WLAN) wireless interface, global interconnection for microwave access ( Wi-MAX) interface, Ethernet interface, universal serial bus (USB) interface, cellular network interface, Bluetooth interface, near field communication (NFC) interface, etc.
  • NIC network interface card
  • the aforementioned components of the computing device 2000 and other components not shown in FIG. 20 may also be connected to each other, for example, via a bus. It should be understood that the structural block diagram of the computing device shown in FIG. 20 is only for the purpose of example, and is not a limitation on the scope of this specification. Those skilled in the art can add or replace other components as needed.
  • the computing device 2000 can be any type of stationary or mobile computing device, including mobile computers or mobile computing devices (for example, tablet computers, personal digital assistants, laptop computers, notebook computers, netbooks, etc.), mobile phones (for example, smart phones). ), wearable computing devices (for example, smart watches, smart glasses, etc.) or other types of mobile devices, or stationary computing devices such as desktop computers or PCs.
  • the computing device 2000 may also be a mobile or stationary server.
  • the memory 2010 is used to store computer-executable instructions
  • the processor 2020 is used to execute the following computer-executable instructions: receiving business processing instructions submitted for the business to be processed; according to the number of segments corresponding to the business processing instructions, The server submits a service processing request carrying the number of segments and the service identifier of the service to be processed; receives and displays the segment data transaction issued by the server in response to the service processing request; The segmented execution input of the data transaction is submitted, and the segmented execution mode is submitted to the server; the execution processing result of the target data transaction corresponding to the segmented execution mode is received from the server.
  • the example of the fifth computing device provided in this specification is as follows:
  • Fig. 21 shows a structural block diagram of a computing device 2100 according to an embodiment of the present specification.
  • the components of the computing device 2100 include, but are not limited to, a memory 2110 and a processor 2120.
  • the processor 2120 and the memory 2110 are connected through a bus 2130, and the database 2150 is used to store data.
  • the computing device 2100 also includes an access device 2140 that enables the computing device 2100 to communicate via one or more networks 2160.
  • networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet.
  • the access device 2140 may include one or more of any type of wired or wireless network interface (for example, a network interface card (NIC)), such as IEEE802.11 wireless local area network (WLAN) wireless interface, global interconnection for microwave access ( Wi-MAX) interface, Ethernet interface, universal serial bus (USB) interface, cellular network interface, Bluetooth interface, near field communication (NFC) interface, etc.
  • NIC network interface card
  • the aforementioned components of the computing device 2100 and other components not shown in FIG. 21 may also be connected to each other, for example, via a bus. It should be understood that the structural block diagram of the computing device shown in FIG. 21 is only for the purpose of example, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.
  • the computing device 2100 can be any type of stationary or mobile computing device, including mobile computers or mobile computing devices (for example, tablet computers, personal digital assistants, laptop computers, notebook computers, netbooks, etc.), mobile phones (for example, smart phones). ), wearable computing devices (for example, smart watches, smart glasses, etc.) or other types of mobile devices, or stationary computing devices such as desktop computers or PCs.
  • the computing device 2100 may also be a mobile or stationary server.
  • the memory 2110 is used to store computer-executable instructions
  • the processor 2120 is used to execute the following computer-executable instructions: receiving a service processing request carrying a service identification submitted by a second client; according to metadata corresponding to the service identification , Create a segmented data transaction corresponding to the service processing request; the segmented data transaction records the data execution information and data link of each execution segment; and deliver the data to the first client and the second client
  • the segmented data transaction according to the pre-execution mode submitted by the second client for the segmented data transaction, analyze the segmented data transaction to obtain the target data transaction corresponding to the pre-execution mode;
  • the target data execution information and the target data link of the at least one execution segment recorded in the target data transaction perform execution processing on the target data transaction; push the execution of the target data transaction to the second client process result.
  • the sixth computing device provided in this manual is as follows.
  • Fig. 22 shows a structural block diagram of a computing device 2200 provided according to an embodiment of the present specification.
  • the components of the computing device 2200 include, but are not limited to, a memory 2210 and a processor 2220.
  • the processor 2220 and the memory 2210 are connected through a bus 2230, and the database 2250 is used to store data.
  • the computing device 2200 also includes an access device 2240, which enables the computing device 2200 to communicate via one or more networks 2260.
  • networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet.
  • the access device 2240 may include one or more of any type of wired or wireless network interface (for example, a network interface card (NIC)), such as IEEE802.11 wireless local area network (WLAN) wireless interface, global interconnection for microwave access ( Wi-MAX) interface, Ethernet interface, universal serial bus (USB) interface, cellular network interface, Bluetooth interface, near field communication (NFC) interface, etc.
  • NIC network interface card
  • the aforementioned components of the computing device 2200 and other components not shown in FIG. 22 may also be connected to each other, for example, via a bus. It should be understood that the structural block diagram of the computing device shown in FIG. 22 is only for the purpose of example, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.
  • the computing device 2200 can be any type of stationary or mobile computing device, including mobile computers or mobile computing devices (for example, tablet computers, personal digital assistants, laptop computers, notebook computers, netbooks, etc.), mobile phones (for example, smart phones). ), wearable computing devices (for example, smart watches, smart glasses, etc.) or other types of mobile devices, or stationary computing devices such as desktop computers or PCs.
  • the computing device 2200 may also be a mobile or stationary server.
  • the memory 2210 is used to store computer-executable instructions
  • the processor 2220 is used to execute the following computer-executable instructions: collect the service identification code of the service to be processed displayed by the terminal device corresponding to the first client; The code is decoded, and the service processing request carrying the service identifier is submitted to the server according to the service identifier obtained by decoding; the segmented data transaction issued by the server in response to the service processing request is received and displayed; The pre-execution input of the segment data transaction submits the pre-execution mode to the server; the execution processing result of the target data transaction corresponding to the pre-execution mode is received from the server.
  • An embodiment of the present specification also provides a first computer-readable storage medium storing computer instructions, which are used to implement the steps of the first data processing method when executed by a processor.
  • An embodiment of the present specification also provides a second computer-readable storage medium, which stores computer instructions, which are used to implement the steps of the transaction processing method when executed by a processor.
  • An embodiment of the present specification also provides a third type of computer-readable storage medium, which stores computer instructions, which are used to implement the steps of the second data processing method when executed by a processor.
  • An embodiment of the present specification also provides a fourth computer-readable storage medium, which stores computer instructions, which are used to implement the steps of the third data processing method when executed by a processor.
  • An embodiment of the present specification also provides a fifth computer-readable storage medium, which stores computer instructions, which are used to implement the steps of the fourth data processing method when executed by a processor.
  • An embodiment of the present specification also provides a sixth computer-readable storage medium, which stores computer instructions, which are used to implement the steps of the fifth data processing method when executed by a processor.
  • the computer instructions include computer program codes, and the computer program codes may be in the form of source code, object code, executable files, or some intermediate forms.
  • the computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory) , Random Access Memory (RAM, Random Access Memory), electrical carrier signal, telecommunications signal, and software distribution media, etc. It should be noted that the content contained in the computer-readable medium can be appropriately added or deleted according to the requirements of the legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to the legislation and patent practice, the computer-readable medium Does not include electrical carrier signals and telecommunication signals.

Abstract

A data processing method and apparatus. The data processing method comprises: acquiring metadata of a service to be processed (S102); creating, according to the metadata, a segment data transaction of the service to be processed (S104), the segment data transaction recording data execution information and data links of execution segments; parsing the segment data transaction on the basis of an execution manner submitted for at least one execution segment of the segment data transaction, so as to obtain a target data transaction corresponding to the execution manner (S106); and processing the target data transaction according to target data execution information and a target data link of the at least one execution segment recorded in the target data transaction (S108).

Description

数据处理方法及装置Data processing method and device 技术领域Technical field
本说明书实施例涉及数据处理技术领域,特别涉及数据处理方法及装置。The embodiments of this specification relate to the field of data processing technology, and in particular to data processing methods and devices.
背景技术Background technique
在针对待处理业务进行执行处理的过程中,通常执行处理过程所消耗的数据量相对于数据流出对象来讲是平衡的数据量,而数据流出对象在针对不同的待处理业务的数据事务进行执行处理的过程中,数据量的消耗数值也可能是不同的,而当数据量的消耗数值达到数值阈值的情况下,此时数据流出对象的数据账户空间中为数据流出对象提供的数据量可能并不能够满足数据流出对象的执行处理需求,并且数据流出对象的数据账户空间中的可用数据被短时间调用过多的情况下,将会对数据流出对象针对其他待处理业务的数据事务执行造成压力,而影响其他待处理业务的数据事务执行处理的效率,故亟需一种数据处理方法以解决上述问题。In the process of executing processing for the business to be processed, the amount of data consumed by the processing process is usually a balanced amount of data relative to the data outflow object, and the data outflow object is executed for different data transactions of the business to be processed In the process of processing, the consumption value of the data volume may also be different, and when the consumption value of the data volume reaches the numerical threshold, the amount of data provided for the data outflow object in the data account space of the data outflow object may not be the same. When the execution processing requirements of the data outflow object cannot be met, and the available data in the data account space of the data outflow object is called too much in a short time, it will cause pressure on the data outflow object to execute data transactions for other pending services. , And affect the efficiency of data transaction execution processing of other services to be processed, so a data processing method is urgently needed to solve the above problems.
发明内容Summary of the invention
有鉴于此,本说明书实施例提供了数据处理方法及装置,交易处理方法及装置,同时涉及六种计算设备以及六种计算机可读存储介质。In view of this, the embodiments of this specification provide data processing methods and devices, transaction processing methods and devices, and involve six types of computing devices and six types of computer-readable storage media.
本说明书实施例提供的第一种数据处理方法,包括:获取待处理业务的元数据;根据所述元数据创建所述待处理业务的分段数据事务;所述分段数据事务中记录有各个执行段的数据执行信息和数据链路;基于针对所述分段数据事务的至少一个执行段提交的执行方式,对所述分段数据事务进行解析,获得与所述执行方式对应的目标数据事务;根据所述目标数据事务中记录的所述至少一个执行段的目标数据执行信息和目标数据链路,对所述目标数据事务进行执行处理。The first data processing method provided by the embodiment of this specification includes: obtaining metadata of a service to be processed; creating a segment data transaction of the service to be processed according to the metadata; The data execution information and data link of the execution segment; based on the execution mode submitted for at least one execution segment of the segment data transaction, analyze the segment data transaction to obtain the target data transaction corresponding to the execution mode Execute processing of the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction.
可选地,所述数据处理方法,还包括:根据所述分段数据事务的数据流出对象的历史数据日志,确定向所述数据流出对象推送的执行段的推荐数目,并根据所述数据流出对象针对所述推荐数目提交的执行指令确定所述分段数据事务的执行段的数目;或者,根据所述分段数据事务的数据流入对象的数据记录,预测所述数据流入对象的数据流入时间区间,按照所述数据流入时间区间确定所述分段数据事务的执行段的时长和/或数目。Optionally, the data processing method further includes: determining the recommended number of execution segments pushed to the data outflow object according to the historical data log of the data outflow object of the segmented data transaction, and according to the data outflow object The execution instructions submitted by the object with respect to the recommended number determine the number of execution stages of the segmented data transaction; or, according to the data record of the data inflow of the segmented data transaction, predict the data inflow time of the data into the object The interval is to determine the duration and/or the number of execution stages of the segmented data transaction according to the data inflow time interval.
可选地,所述基于针对所述分段数据事务的至少一个执行段提交的执行方式,对所述分段数据事务进行解析,获得与所述执行方式对应的目标数据事务,包括:在所述分段数据事务的执行段的执行条件被触发的情况下,按照所述执行段的执行条件被触发对应的分段执行方式,对所述分段数据事务进行分解,获得与所述分段执行方式对应的目标数据事务;或者,接收所述分段数据事务的数据流出对象针对所述至少一个执行段提交的分段执行请求;基于所述分段执行请求中携带的分段执行方式,对所述分段数据事务进行分解,获得与所述分段执行方式对应的目标数据事务;其中,所述与所述分段执行方式对应的目标数据事务中,记录有所述至少一个执行段的目标数据执行信息和目标数据链路,所述目标数据执行信息基于所述至少一个执行段的数据执行信息确定,所述目标数据链路基于所述至少一个执行段的数据链路确定。Optionally, the analyzing the segmented data transaction based on the execution mode submitted for at least one execution segment of the segmented data transaction to obtain the target data transaction corresponding to the execution mode includes: When the execution condition of the execution segment of the segmented data transaction is triggered, the segmented data transaction is decomposed according to the segmented execution mode corresponding to the triggering of the execution condition of the segmented data transaction to obtain the The target data transaction corresponding to the execution mode; or, receiving the segment execution request submitted by the data outflow object of the segment data transaction for the at least one execution segment; based on the segment execution mode carried in the segment execution request, Decompose the segmented data transaction to obtain a target data transaction corresponding to the segmented execution mode; wherein, in the target data transaction corresponding to the segmented execution mode, the at least one execution segment is recorded The target data execution information is determined based on the data execution information of the at least one execution segment, and the target data link is determined based on the data link of the at least one execution segment.
可选地,所述根据所述目标数据事务中记录的所述至少一个执行段的目标数据执行信息和目标数据链路,对所述目标数据事务进行执行处理,包括:读取所述目标数据执行信息中包含的所述至少一个执行段对应的数据流动数值;按照所述目标数据链路,对所述数据流出对象的数据账户空间的数据额度扣减所述数据流动数值对应的扣减额度,以及,从所述数据流出对象的数据账户空间对应的实际数据账户转出所述数据流动数值对应的数据资源至所述分段数据事务的数据流入对象的数据账户;其中,所述目标数据链路的数据节点至少对应于所述数据流出对象的数据账户空间和所述数据流入对象的数据账户;所述数据账户空间的数据结算周期的时长与所述分段数据事务的执行段的执行处理周期的时长相等,在前一数据结算周期对所述数据账户空间的数据额度扣减所述扣减额度,经后一数据结算周期的数据结算处理后,所述扣减额度对所述数据额度的扣减被更新。Optionally, the performing execution processing on the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction includes: reading the target data The data flow value corresponding to the at least one execution segment included in the execution information; according to the target data link, the data quota of the data account space of the data outflow object is deducted by the deduction quota corresponding to the data flow value , And, transferring the data resource corresponding to the data flow value from the actual data account corresponding to the data account space of the data outflow object to the data account of the segmented data transaction data inflow object; wherein, the target data The data node of the link corresponds to at least the data account space of the data outflow object and the data account of the data inflow object; the duration of the data settlement cycle of the data account space and the execution of the execution stage of the segmented data transaction The duration of the processing cycle is equal, the data quota of the data account space in the previous data settlement cycle is deducted from the deduction quota, and after the data settlement processing in the subsequent data settlement cycle, the deduction quota is applied to the data The deduction of the quota is updated.
可选地,所述根据所述目标数据事务中记录的所述至少一个执行段的目标数据执行信息和目标数据链路,对所述目标数据事务进行执行处理,包括:读取所述目标数据执行信息中包含的所述至少一个执行段对应的数据流动数值;按照所述目标数据链路,从所述数据流出对象的数据账户转出所述数据流动数值对应的数据资源至所述数据流入对象的数据账户;其中,所述目标数据链路的起始数据节点对应于所述数据流出对象的数据账户,终止数据节点对应于所述数据流入对象的数据账户。Optionally, the performing execution processing on the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction includes: reading the target data The data flow value corresponding to the at least one execution segment included in the execution information; according to the target data link, the data resource corresponding to the data flow value is transferred from the data account of the data outflow object to the data inflow The data account of the object; wherein the start data node of the target data link corresponds to the data account of the data outflow object, and the terminating data node corresponds to the data account of the data inflow object.
可选地,所述读取所述目标数据执行信息中包含的所述至少一个执行段对应的数据流动数值子步骤执行之后,还包括:根据所述数据流动数值以及所述至少一个执行段对应的第一执行附加数据占比,计算所述至少一个执行段对应的第一执行附加数据值;对 所述数据流入对象进行所述第一执行附加数据值的数据结算处理;其中,所述第一执行附加数据占比,包括对所述分段数据事务在所述至少一个执行段进行执行处理产生的处理费率,依据所述第一执行附加数据占比计算获得的所述第一执行附加数据值由所述数据流入对象承担。Optionally, after the sub-step of reading the data flow value corresponding to the at least one execution stage contained in the target data execution information is executed, it further includes: according to the data flow value and the at least one execution stage correspondence Calculate the first execution additional data value corresponding to the at least one execution segment; perform the data settlement processing of the first execution additional data value on the data inflow object; wherein, the first execution additional data value A percentage of execution additional data, including the processing fee generated by performing processing of the segmented data transaction in the at least one execution segment, and the first execution additional calculated based on the proportion of the first execution additional data The data value is borne by the data inflow object.
可选地,所述基于针对所述分段数据事务的至少一个执行段提交的执行方式,对所述分段数据事务进行解析,获得与所述执行方式对应的目标数据事务,包括:接收所述分段数据事务的数据流入对象针对所述至少一个执行段提交的预执行请求;基于所述预执行请求中携带的预执行方式,对所述至少一个执行段对应的数据执行信息和数据链路进行组装,获得与所述预执行方式对应的目标数据事务。Optionally, the analyzing the segmented data transaction based on the execution mode submitted for at least one execution segment of the segmented data transaction to obtain the target data transaction corresponding to the execution mode includes: receiving The pre-execution request submitted by the data inflow object of the segmented data transaction for the at least one execution segment; based on the pre-execution mode carried in the pre-execution request, the data execution information and data link corresponding to the at least one execution segment The path is assembled to obtain the target data transaction corresponding to the pre-execution mode.
可选地,所述基于所述预执行请求中携带的预执行方式,对所述至少一个执行段对应的数据执行信息和数据链路进行组装,获得与所述预执行方式对应的目标数据事务,包括:根据所述预执行请求对应的所述至少一个执行段的目标数据执行信息,计算所述预执行请求对应的总数据流动数值;基于所述分段数据事务的数据流入对象和中间数据对象二者数据账户的账户路径确定目标数据链路;基于所述总数据流动数值和所述目标数据链路组建中间数据事务,作为所述目标数据事务;其中,所述目标数据链路的起始数据节点对应于所述中间数据对象的数据账户,终止数据节点对应于所述数据流入对象的数据账户。Optionally, the data execution information and data link corresponding to the at least one execution segment are assembled based on the pre-execution mode carried in the pre-execution request to obtain the target data transaction corresponding to the pre-execution mode , Including: calculating the total data flow value corresponding to the pre-execution request according to the target data execution information of the at least one execution segment corresponding to the pre-execution request; data flow objects and intermediate data based on the segmented data transaction The account path of the data accounts of the two objects determines the target data link; an intermediate data transaction is established based on the total data flow value and the target data link as the target data transaction; wherein the start of the target data link The initial data node corresponds to the data account of the intermediate data object, and the ending data node corresponds to the data account of the data inflow object.
可选地,所述根据所述目标数据事务中记录的所述至少一个执行段的目标数据执行信息和目标数据链路,对所述目标数据事务进行执行处理,包括:从所述中间数据对象的数据账户申请所述总数据流动数值对应的数据资源至所述数据流入对象的数据账户;根据所述分段数据事务的数据流出对象和所述中间数据对象二者数据账户的账户路径,确定从所述数据流出对象至所述中间数据对象的分段数据链路;根据所述分段数据链路和所述分段数据事务中待执行的执行段的数据执行信息,组建所述分段数据事务中待执行的执行段的第一分段数据事务;其中,所述分段数据链路的起始数据节点对应于所述数据流出对象的数据账户,终止数据节点对应于所述中间数据对象的数据账户。Optionally, the performing execution processing on the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction includes: from the intermediate data object The data account applies for the data resource corresponding to the total data flow value to the data account of the data inflow object; according to the account path of the data account of both the data outflow object of the segmented data transaction and the intermediate data object, it is determined A segmented data link from the data outflow object to the intermediate data object; according to the segmented data link and the data execution information of the execution segment to be executed in the segmented data transaction, the segment is constructed The first segment data transaction of the execution segment to be executed in the data transaction; wherein the start data node of the segment data link corresponds to the data account of the data outflow object, and the end data node corresponds to the intermediate data The data account of the subject.
可选地,所述根据所述目标数据事务中记录的所述至少一个执行段的目标数据执行信息和目标数据链路,对所述目标数据事务进行执行处理步骤执行之后,包括:在所述第一分段数据事务的执行段的执行条件被触发的情况下,读取所述第一分段数据事务中被触发的执行段对应的第一分段数据流动数值;按照所述分段数据链路,对所述数据流出对象的数据账户空间的数据额度扣减所述第一分段数据流动数值对应的扣减额度,以 及,从所述数据流出对象的数据账户空间对应的实际数据账户转出所述第一分段数据流动数值对应的数据资源至所述中间数据对象的数据账户;其中,所述数据账户空间的数据结算周期的时长与所述第一分段数据事务的执行段的执行处理周期的时长相等,在前一数据结算周期对所述数据账户空间的数据额度扣减所述扣减额度,经后一数据结算周期的数据结算处理后,所述扣减额度对所述数据额度的扣减被更新。Optionally, the step of performing execution processing on the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction includes: When the execution condition of the execution segment of the first segment data transaction is triggered, read the first segment data flow value corresponding to the triggered execution segment in the first segment data transaction; according to the segment data Link, deducting the deduction amount corresponding to the first segment data flow value from the data quota of the data account space of the data outflow object, and the actual data account corresponding to the data account space of the data outflow object The data resource corresponding to the first segment data flow value is transferred to the data account of the intermediate data object; wherein the duration of the data settlement cycle of the data account space is the same as the execution segment of the first segment data transaction The duration of the execution processing cycle is the same. In the previous data settlement cycle, the data quota of the data account space is deducted from the deduction quota. After the data settlement processing in the subsequent data settlement cycle, the deduction quota is The deduction of the data quota is updated.
可选地,所述从所述中间数据对象的数据账户申请所述总数据流动数值对应的数据资源至所述数据流入对象的数据账户子步骤执行之后,还包括:根据所述总数据流动数值以及对应的第二执行附加数据占比,计算第二执行附加数据值;对所述数据流入对象进行所述第二执行附加数据值的数据结算处理;其中,所述第二执行附加数据占比,包括对所述中间数据事务进行执行处理产生的处理费率,依据所述第二执行附加数据占比计算获得的所述第二执行附加数据值由所述数据流入对象承担。Optionally, after the sub-step of applying for the data resource corresponding to the total data flow value from the data account of the intermediate data object to the data account of the data inflow object is performed, it further includes: according to the total data flow value And the corresponding proportion of the second execution additional data, calculate the second execution additional data value; perform the data settlement processing of the second execution additional data value on the data inflow object; wherein, the proportion of the second execution additional data , Including the processing fee generated by performing the processing of the intermediate data transaction, and the second additional data value obtained by calculating the proportion of the second additional data to be executed is borne by the data inflow object.
可选地,所述数据处理方法,还包括:根据所述第一分段数据流动数值以及所述执行段对应的第一执行附加数据占比,计算所述执行段对应的第一执行附加数据值;对所述数据流入对象进行所述第一执行附加数据值的数据结算处理;其中,所述第一执行附加数据占比,包括对所述第一分段数据事务在所述执行段进行执行处理产生的处理费率,依据所述第一执行附加数据占比计算获得的所述第一执行附加数据值由所述数据流入对象承担。Optionally, the data processing method further includes: calculating the first execution additional data corresponding to the execution segment according to the first segment data flow value and the proportion of the first execution additional data corresponding to the execution segment Value; for the data inflow object to perform the data settlement processing of the first execution additional data value; wherein, the proportion of the first execution additional data includes performing the first segment data transaction in the execution segment The processing fee rate generated by the execution of the processing is borne by the data inflow object based on the first execution additional data value obtained by calculating the proportion of the first execution additional data.
可选地,所述根据所述目标数据事务中记录的所述至少一个执行段的目标数据执行信息和目标数据链路,对所述目标数据事务进行执行处理步骤执行之后,还包括:接收所述分段数据事务的数据流入对象针对剩余执行段提交的第二预执行请求;基于所述第二预执行请求中携带的第二预执行方式,对所述剩余执行段对应的数据执行信息和数据链路进行组装,获得与所述第二预执行方式对应的第二中间数据事务;所述第二中间数据事务中记录有所述第二预执行请求对应的第二总数据流动数值;通过从所述分段数据事务的中间数据对象的数据账户申请所述第二总数据流动数值对应的数据资源至所述数据流入对象的数据账户的方式,对所述第二中间数据事务进行执行处理;根据所述分段数据事务的数据流出对象和所述中间数据对象二者数据账户的账户路径,确定从所述数据流出对象至所述中间数据对象的第二分段数据链路;根据所述第二分段数据链路和所述剩余执行段的数据执行信息,组建所述剩余执行段对应的第二分段数据事务;其中,所述第二中间数据事务中记录有第二中间数据链路,所述第二中间数据链路的起始数据节点对应于所述中间数据对象的数据账户,终止数据节点对应于所述数据流入对象的数 据账户。Optionally, the step of performing execution processing on the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction further includes: receiving the target data transaction. The second pre-execution request submitted by the data inflow object of the segmented data transaction for the remaining execution segment; based on the second pre-execution mode carried in the second pre-execution request, the data execution information corresponding to the remaining execution segment and The data link is assembled to obtain a second intermediate data transaction corresponding to the second pre-execution mode; the second intermediate data transaction records the second total data flow value corresponding to the second pre-execution request; The method of applying for the data resource corresponding to the second total data flow value from the data account of the intermediate data object of the segmented data transaction to the data account of the data inflow object, and perform processing on the second intermediate data transaction According to the data outflow object of the segmented data transaction and the account path of the data account of the intermediate data object, determine the second segment data link from the data outflow object to the intermediate data object; The second segmented data link and the data execution information of the remaining execution segment form a second segment data transaction corresponding to the remaining execution segment; wherein, the second intermediate data transaction is recorded in the second intermediate data transaction Link, the start data node of the second intermediate data link corresponds to the data account of the intermediate data object, and the end data node corresponds to the data account of the data inflow object.
可选地,所述根据所述第二分段数据链路和所述剩余执行段的数据执行信息,组建所述剩余执行段对应的第二分段数据事务步骤执行之后,还包括:在所述第二分段数据事务的剩余执行段中至少一者的执行条件被触发的情况下,读取所述第二分段数据事务中被触发的剩余执行段对应的第二分段数据流动数值;按照所述第二分段数据链路,对所述数据流出对象的数据账户空间的数据额度扣减所述第二分段数据流动数值对应的扣减额度,以及,从所述数据流出对象的数据账户空间对应的实际数据账户转出所述第二分段数据流动数值对应的数据资源至所述中间数据对象的数据账户;其中,所述数据账户空间的数据结算周期的时长与所述第二分段数据事务的剩余执行段的执行处理周期的时长相等,在前一数据结算周期对所述数据账户空间的数据额度扣减所述扣减额度,经后一数据结算周期的数据结算处理后,所述扣减额度对所述数据额度的扣减被更新。Optionally, after the step of forming a second segment data transaction corresponding to the remaining execution segment according to the second segment data link and the data execution information of the remaining execution segment is executed, the method further includes: When the execution condition of at least one of the remaining execution segments of the second segmented data transaction is triggered, read the second segment data flow value corresponding to the triggered remaining execution segment of the second segmented data transaction According to the second segmented data link, the data quota of the data account space of the data outflow object is deducted by the deduction quota corresponding to the second segmented data flow value, and, from the data outflow object The actual data account corresponding to the data account space transfers the data resource corresponding to the second segmented data flow value to the data account of the intermediate data object; wherein the duration of the data settlement period of the data account space is the same as that of the The duration of the execution processing cycle of the remaining execution stages of the second segment data transaction is equal, the data quota of the data account space in the previous data settlement cycle is deducted from the deduction quota, and the data settlement in the latter data settlement cycle After processing, the deduction of the deduction amount to the data amount is updated.
可选地,所述获取待处理业务的元数据步骤执行之后,且所述根据所述元数据创建所述待处理业务的分段数据事务步骤执行之前,包括:判断所述元数据中包含的待处理数据处理值是否小于或者等于所述分段数据事务的数据流出对象的数据账户空间的可用数据额度;若是,执行所述根据所述元数据创建所述待处理业务的分段数据事务步骤;若否,向所述数据流出对象推送处理失败的提醒。Optionally, after the step of obtaining the metadata of the service to be processed is performed, and before the step of creating the segmented data transaction of the service to be processed according to the metadata is performed, the step includes: judging the metadata contained in the metadata Whether the processing value of the to-be-processed data is less than or equal to the available data quota of the data account space of the data outflow object of the segmented data transaction; if so, execute the step of creating the segmented data transaction of the to-be-processed service based on the metadata ; If not, push a notification of processing failure to the data outflow object.
可选地,所述待处理业务包括:交易业务,数据流处理业务,支付业务;相应的,所述待处理业务的分段数据事务包括:所述交易业务采用分阶段交易方式进行执行的分阶段交易事务,所述数据流处理业务采用分阶段处理方式进行执行的分阶段数据流处理事务,所述支付业务采用分阶段支付方式进行执行的分阶段支付事务;所述分段数据事务的执行段包括:所述分阶段交易事务在分阶段交易过程中的各个交易阶段,所述分阶段数据流处理事务在分阶段处理过程中的各个数据处理阶段,所述分阶段支付事务在分阶段支付过程中的各个支付阶段。Optionally, the to-be-processed services include: transaction services, data stream processing services, and payment services; correspondingly, the segmented data transactions of the to-be-processed services include: segmentation in which the transaction services are executed in a phased transaction mode. A staged transaction transaction, the data stream processing business adopts a staged data stream processing transaction executed by a staged processing method, and the payment business adopts a staged payment transaction executed by a staged payment method; the execution of the segmented data transaction The segments include: each transaction stage in the staged transaction process of the staged transaction transaction, each data processing stage of the staged data flow processing transaction in the staged processing process, the staged payment transaction in the staged payment The various payment stages in the process.
根据本说明书实施例提供的第一种数据处理装置,包括:获取模块,被配置为获取待处理业务的元数据;创建模块,被配置为根据所述元数据创建所述待处理业务的分段数据事务;所述分段数据事务中记录有各个执行段的数据执行信息和数据链路;解析模块,被配置为基于针对所述分段数据事务的至少一个执行段提交的执行方式,对所述分段数据事务进行解析,获得与所述执行方式对应的目标数据事务;处理模块,被配置为根据所述目标数据事务中记录的所述至少一个执行段的目标数据执行信息和目标数据链路,对所述目标数据事务进行执行处理。The first data processing device provided by the embodiment of this specification includes: an acquisition module configured to acquire metadata of a service to be processed; a creation module configured to create a segment of the service to be processed according to the metadata Data transaction; the data execution information and data link of each execution segment are recorded in the segmented data transaction; the parsing module is configured to perform the execution based on the execution mode submitted for at least one execution segment of the segmented data transaction The segmented data transaction is analyzed to obtain the target data transaction corresponding to the execution mode; the processing module is configured to execute the target data according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction Way to perform execution processing on the target data transaction.
本说明书实施例提供的一种交易处理方法,包括:获取待处理交易的交易元数据;A transaction processing method provided by an embodiment of this specification includes: obtaining transaction metadata of a transaction to be processed;
根据所述交易元数据创建所述待处理交易的分期支付事务;所述分期支付事务中记录有各个支付阶段的交易支付信息和支付链路;基于针对所述分期支付事务的至少一个支付阶段提交的支付方式,对所述分期支付事务进行解析,获得与所述支付方式对应的目标支付事务;根据所述目标支付事务中记录的所述至少一个支付阶段的目标交易支付信息和目标支付链路,对所述目标支付事务进行支付处理。Create an installment payment transaction for the transaction to be processed according to the transaction metadata; the installment payment transaction records transaction payment information and payment links for each payment stage; submit based on at least one payment stage for the installment payment transaction Analyze the installment payment transaction to obtain the target payment transaction corresponding to the payment method; according to the target transaction payment information and target payment link of the at least one payment stage recorded in the target payment transaction , Perform payment processing on the target payment transaction.
可选地,所述交易处理方法,还包括:根据所述分期支付事务的支付方的历史交易支付日志,确定向所述支付方推送的支付阶段的推荐分期数目,并根据所述支付方针对所述推荐分期数目提交的支付指令确定所述分期支付事务的支付阶段的分期数目;或者,根据所述分期支付事务的被支付方的交易记录,预测所述被支付方的收款时间区间,按照所述收款时间区间确定所述分期支付事务的支付阶段的分期时长和/或分期数目。Optionally, the transaction processing method further includes: determining the recommended installment number of the payment stage pushed to the payer according to the historical transaction payment log of the payer of the installment payment transaction, and according to the payer’s target The payment instruction submitted by the recommended number of installments determines the number of installments in the payment phase of the installment transaction; or, based on the transaction record of the payee of the installment transaction, predicts the payment time interval of the payee, Determine the installment duration and/or the number of installments of the payment phase of the installment payment transaction according to the collection time interval.
可选地,所述基于针对所述分期支付事务的至少一个支付阶段提交的支付方式,对所述分期支付事务进行解析,获得与所述支付方式对应的目标支付事务,包括:在所述分期支付事务的支付阶段的支付条件被触发的情况下,按照所述支付阶段的支付条件被触发对应的分期支付方式,对所述分期支付事务进行分解,获得与所述分期支付方式对应的目标支付事务;或者,接收所述分期支付事务的支付方针对所述至少一个支付阶段提交的分期支付请求;基于所述分期支付请求中携带的分期支付方式,对所述分期支付事务进行分解,获得与所述分期支付方式对应的目标支付事务;其中,所述与所述分期支付方式对应的目标支付事务中,记录有所述至少一个支付阶段的目标交易支付信息和目标支付链路,所述目标交易支付信息基于所述至少一个支付阶段的交易支付信息确定,所述目标支付链路基于所述至少一个支付阶段的支付链路确定。Optionally, the analyzing the instalment transaction based on the payment method submitted for at least one payment phase of the instalment transaction to obtain the target payment transaction corresponding to the payment method includes: When the payment condition of the payment phase of the payment transaction is triggered, the payment phase is triggered in accordance with the instalment payment method corresponding to the trigger of the payment phase, the instalment transaction is decomposed, and the target payment corresponding to the instalment payment method is obtained Transaction; or, the installment payment request submitted by the payer who receives the installment payment transaction for the at least one payment stage; based on the installment payment method carried in the installment payment request, the installment payment transaction is decomposed to obtain the The target payment transaction corresponding to the installment payment method; wherein, in the target payment transaction corresponding to the installment payment method, the target transaction payment information and target payment link of the at least one payment stage are recorded, and the target Transaction payment information is determined based on the transaction payment information of the at least one payment stage, and the target payment link is determined based on the payment link of the at least one payment stage.
可选地,所述根据所述目标支付事务中记录的所述至少一个支付阶段的目标交易支付信息和目标支付链路,对所述目标支付事务进行支付处理,包括:读取所述目标交易支付信息中包含的所述至少一个支付阶段对应的支付数值;按照所述目标支付链路,对所述支付方的数据账户空间的数据额度扣减所述支付数值对应的扣减额度,以及,从所述支付方的数据账户空间对应的实际数据账户转出所述支付数值对应的支付资源至所述分期支付事务的被支付方的数据账户;其中,所述目标支付链路的支付节点至少对应于所述支付方的数据账户空间和所述被支付方的数据账户;所述数据账户空间的数据结算周期的时长与所述分期支付事务的支付阶段的支付处理周期的时长相等,在前一数据结算周期对所述数据账户空间的数据额度扣减所述扣减额度,经后一数据结算周期的数 据结算处理后,所述扣减额度对所述数据额度的扣减被更新。Optionally, the performing payment processing on the target payment transaction according to the target transaction payment information and target payment link of the at least one payment phase recorded in the target payment transaction includes: reading the target transaction The payment value corresponding to the at least one payment stage included in the payment information; according to the target payment link, the data amount of the data account space of the payer is deducted by the deduction amount corresponding to the payment value, and, The payment resource corresponding to the payment value is transferred from the actual data account corresponding to the data account space of the payer to the data account of the payee of the installment transaction; wherein, the payment node of the target payment link is at least Corresponding to the data account space of the paying party and the data account of the paid party; the duration of the data settlement cycle of the data account space is equal to the duration of the payment processing cycle in the payment phase of the installment transaction, the first A data settlement cycle deducts the deduction quota from the data quota of the data account space, and after the data settlement processing of the subsequent data settlement cycle, the deduction of the data quota by the deduction quota is updated.
可选地,所述根据所述目标支付事务中记录的所述至少一个支付阶段的目标交易支付信息和目标支付链路,对所述目标支付事务进行支付处理,包括:读取所述目标交易交付信息中包含的所述至少一个支付阶段对应的支付数值;按照所述目标支付链路,从所述支付方的支付账户转出所述支付数值对应的支付资源至所述被支付方的支付账户;其中,所述目标支付链路的起始支付节点对应于所述支付方的支付账户,终止支付节点对应于所述被支付方的支付账户。Optionally, the performing payment processing on the target payment transaction according to the target transaction payment information and target payment link of the at least one payment phase recorded in the target payment transaction includes: reading the target transaction The payment value corresponding to the at least one payment phase contained in the delivery information; according to the target payment link, the payment resource corresponding to the payment value is transferred from the payment account of the paying party to the paid party Account; wherein, the initial payment node of the target payment link corresponds to the payment account of the payer, and the termination payment node corresponds to the payment account of the payee.
可选地,所述读取所述目标交易交付信息中包含的所述至少一个支付阶段对应的支付数值子步骤执行之后,还包括:根据所述支付数值以及所述至少一个支付阶段对应的第一支付费率,计算所述至少一个支付阶段对应的第一支付附加费;对所述被支付方进行所述第一支付费用的结算处理;其中,所述第一支付费率,包括对所述分期支付事务在所述至少一个支付阶段进行支付处理产生的支付费率,依据所述第一支付费率计算获得的所述第一支付附加费由所述被支付方承担。Optionally, after the sub-step of reading the payment value corresponding to the at least one payment phase contained in the target transaction delivery information is executed, the method further includes: according to the payment value and the first payment value corresponding to the at least one payment phase A payment rate, calculating the first payment surcharge corresponding to the at least one payment stage; performing the settlement processing of the first payment fee on the paid party; wherein, the first payment rate includes the For the payment rate generated by the payment processing of the installment payment transaction in the at least one payment stage, the first payment surcharge calculated according to the first payment rate is borne by the payee.
可选地,所述基于针对所述分期支付事务的至少一个支付阶段提交的支付方式,对所述分期支付事务进行解析,获得与所述支付方式对应的目标支付事务,包括:接收所述分期支付事务的被支付方针对所述至少一个支付阶段提交的预支付请求;基于所述预支付请求中携带的预支付方式,对所述至少一个支付阶段对应的交易支付信息和支付链路进行组装,获得与所述预支付方式对应的目标支付事务。Optionally, the analyzing the installment payment transaction based on the payment method submitted for at least one payment phase of the installment payment transaction to obtain the target payment transaction corresponding to the payment method includes: receiving the installment payment transaction A prepayment request submitted by the paid party of a payment transaction for the at least one payment stage; based on the prepayment method carried in the prepayment request, the transaction payment information and payment link corresponding to the at least one payment stage are assembled To obtain the target payment transaction corresponding to the pre-payment method.
可选地,所述基于所述预支付请求中携带的预支付方式,对所述至少一个支付阶段对应的交易支付信息和支付链路进行组装,获得与所述预支付方式对应的目标支付事务,包括:根据所述预支付请求对应的所述至少一个支付阶段的目标交易支付信息,计算所述预支付请求对应的总支付数值;基于所述分期支付事务的被支付方和交易代理机构二者支付账户的账户路径确定目标支付链路;基于所述总支付数值和所述目标支付链路组建中间支付事务,作为所述目标支付事务;其中,所述目标支付链路的起始支付节点对应于所述交易代理机构的支付账户,终止支付节点对应于所述交易代理机构的支付账户。Optionally, based on the prepayment method carried in the prepayment request, the transaction payment information and payment link corresponding to the at least one payment stage are assembled to obtain the target payment transaction corresponding to the prepayment method , Including: calculating the total payment value corresponding to the pre-payment request according to the target transaction payment information of the at least one payment phase corresponding to the pre-payment request; the paid party and the transaction agency based on the installment payment transaction The account path of the user’s payment account determines the target payment link; an intermediate payment transaction is established based on the total payment value and the target payment link as the target payment transaction; wherein the initial payment node of the target payment link Corresponding to the payment account of the transaction agency, the termination payment node corresponds to the payment account of the transaction agency.
可选地,所述根据所述目标支付事务中记录的所述至少一个支付阶段的目标交易支付信息和目标支付链路,对所述目标支付事务进行支付处理,包括:从所述交易代理机构的支付账户申请所述总支付数值对应的支付资源至所述被支付方的支付账户;根据所述支付方和所述交易代理机构二者支付账户的账户路径,确定从所述支付方至所述交易代理机构的分期支付链路;根据所述分期支付链路和所述分期支付事务中待执行的执行 段的数据执行信息,组建所述分期支付事务中待支付的支付阶段的第一分期支付事务;其中,所述分期支付链路的起始支付节点对应于所述支付方的支付账户,终止支付节点对应于所述交易代理机构的支付账户。Optionally, the performing payment processing on the target payment transaction according to the target transaction payment information and target payment link of the at least one payment stage recorded in the target payment transaction includes: from the transaction agency The payment account applies for the payment resource corresponding to the total payment value to the payment account of the paid party; according to the account path of the payment account of both the payer and the transaction agency, it is determined from the payer to the The installment payment link of the transaction agency; according to the installment link and the data execution information of the execution stage to be executed in the installment payment transaction, the first installment of the payment stage to be paid in the installment transaction is formed Payment transaction; wherein the initial payment node of the installment payment link corresponds to the payment account of the payer, and the termination payment node corresponds to the payment account of the transaction agency.
可选地,所述根据所述目标支付事务中记录的所述至少一个支付阶段的目标交易支付信息和目标支付链路,对所述目标支付事务进行支付处理步骤执行之后,包括:在所述第一分期支付事务的支付阶段的支付条件被触发的情况下,读取所述第一分期支付事务中被触发的支付阶段对应的第一分期支付数值;按照所述分期支付链路,对所述支付方的数据账户空间的数据额度扣减所述第一分期支付数值对应的扣减额度,以及,从所述支付方的数据账户空间对应的实际数据账户转出所述第一分期支付数值对应的支付资源至所述交易代理机构的支付账户;其中,所述数据账户空间的数据结算周期的时长与所述第一分期支付事务的执行阶段的支付处理周期的时长相等,在前一数据结算周期对所述数据账户空间的数据额度扣减所述扣减额度,经后一数据结算周期的数据结算处理后,所述扣减额度对所述数据额度的扣减被更新。Optionally, the step of performing payment processing on the target payment transaction according to the target transaction payment information and target payment link of the at least one payment phase recorded in the target payment transaction includes: When the payment conditions of the payment phase of the first installment transaction are triggered, read the first installment value corresponding to the triggered payment phase in the first installment transaction; The data limit of the data account space of the payer deducts the deduction limit corresponding to the first instalment value, and the first instalment value is transferred from the actual data account corresponding to the data account space of the payer Corresponding payment resources to the payment account of the transaction agency; wherein the duration of the data settlement cycle of the data account space is equal to the duration of the payment processing cycle in the execution phase of the first installment transaction, and the previous data The settlement cycle deducts the deduction quota from the data quota of the data account space, and after the data settlement processing of the subsequent data settlement cycle, the deduction of the deduction quota to the data quota is updated.
可选地,所述从所述交易代理机构的支付账户申请所述总支付数值对应的支付资源至所述被支付方的支付账户子步骤执行之后,还包括:根据所述总支付数值以及对应的第二支付费率,计算第二支付附加费;对所述被支付方进行所述第二支付附加费的结算处理;其中,所述第二支付费率,包括对所述交易代理机构进行交易处理产生的交易费率,依据所述第二支付费率计算获得的所述第二支付附加费由所述被支付方承担。Optionally, after the sub-step of applying for the payment resource corresponding to the total payment value from the payment account of the transaction agency to the payment account of the payee is executed, it further includes: according to the total payment value and the corresponding Calculate the second payment surcharge at the second payment rate; perform the settlement processing of the second payment surcharge on the payee; wherein the second payment rate includes the payment to the transaction agency The transaction fee rate generated by the transaction processing, and the second payment surcharge calculated based on the second payment fee rate shall be borne by the paid party.
可选地,所述交易处理方法,还包括:根据所述第一分期支付数值以及所述支付阶段对应的第一支付费率,计算所述支付阶段对应的第一支付附加费;对所述被支付方进行所述第一支付附加费的结算处理;其中,所述第一支付费率,包括对所述第一分期支付事务在所述支付阶段进行支付处理产生的支付费率,依据所述第一支付费率计算获得的所述第一支付附加费由所述被支付承担。Optionally, the transaction processing method further includes: calculating a first payment surcharge corresponding to the payment stage according to the first payment value of the installment and the first payment rate corresponding to the payment stage; The payee performs the settlement processing of the first payment surcharge; wherein, the first payment rate includes the payment rate generated by the payment processing of the first installment transaction in the payment stage, according to the The first payment surcharge obtained by calculating the first payment rate is borne by the paid.
可选地,所述根据所述目标支付事务中记录的所述至少一个支付阶段的目标交易支付信息和目标支付链路,对所述目标支付事务进行支付处理步骤执行之后,还包括:接收所述分期支付事务的被支付方针对剩余支付阶段提交的第二预支付请求;基于所述第二预支付请求中携带的第二预支付方式,对所述剩余支付段对应的交易支付信息和支付链路进行组装,获得与所述第二预支付方式对应的第二中间支付事务;所述第二中间支付事务中记录有所述第二预支付请求对应的第二总支付数值;通过从所述分期支付事务的交易代理机构的支付账户申请所述第二总支付数值对应的支付资源至所述被支付方 的支付账户的方式,对所述第二中间支付事务进行支付处理;根据所述分期支付事务的支付方和所述交易代理机构二者数据账户的账户路径,确定从所述支付方至所述交易代理机构的第二分期支付链路;根据所述第二分期支付链路和所述剩余支付阶段的交易支付信息,组建所述剩余支付阶段对应的第二分期支付事务;其中,所述第二中间支付事务中记录有第二中间支付链路,所述第二中间支付链路的起始支付节点对应于所述交易代理机构的支付账户,终止支付节点对应于所述被支付方的支付账户。Optionally, the step of performing payment processing on the target payment transaction according to the target transaction payment information and target payment link of the at least one payment phase recorded in the target payment transaction further includes: receiving The second prepayment request submitted by the paid party of the installment payment transaction for the remaining payment stage; based on the second prepayment method carried in the second prepayment request, the transaction payment information and payment corresponding to the remaining payment segment The link is assembled to obtain a second intermediate payment transaction corresponding to the second prepayment method; the second intermediate payment transaction records the second total payment value corresponding to the second prepayment request; The payment account of the transaction agency of the installment payment transaction applies for the payment resource corresponding to the second total payment value to the payment account of the payee, and the payment processing is performed on the second intermediate payment transaction; The account path of the data accounts of both the payer of the installment payment transaction and the transaction agency determines the second installment payment link from the payer to the transaction agency; according to the second installment link and The transaction payment information of the remaining payment stage forms a second installment payment transaction corresponding to the remaining payment stage; wherein a second intermediate payment link is recorded in the second intermediate payment transaction, and the second intermediate payment chain The initial payment node of the road corresponds to the payment account of the transaction agency, and the termination payment node corresponds to the payment account of the paid party.
可选地,所述根据所述第二分期支付链路和所述剩余支付阶段的交易支付信息,组建所述剩余支付阶段对应的第二分期支付事务步骤执行之后,还包括:在所述第二分期支付事务的剩余执行阶段中至少一者的支付条件被触发的情况下,读取所述第二分期支付事务中被触发的剩余支付阶段对应的第二分期支付数值;按照所述第二分期支付链路,对所述支付方的数据账户空间的数据额度扣减所述第二分期支付数值对应的扣减额度,以及,从所述支付方的数据账户空间对应的实际数据账户转出所述第二分期支付数值对应的支付资源至所述交易代理机构的支付账户;其中,所述数据账户空间的数据结算周期的时长与所述第二分期支付事务的剩余支付阶段的支付处理周期的时长相等,在前一数据结算周期对所述数据账户空间的数据额度扣减所述扣减额度,经后一数据结算周期的数据结算处理后,所述扣减额度对所述数据额度的扣减被更新。Optionally, after the step of constructing a second installment payment transaction corresponding to the remaining payment stage according to the second installment payment link and the transaction payment information of the remaining payment stage, the method further includes: When the payment condition of at least one of the remaining execution phases of the two installment transaction is triggered, read the second installment value corresponding to the triggered remaining payment phase in the second installment transaction; according to the second installment transaction; The installment payment link deducts the deduction amount corresponding to the second installment payment value from the data amount of the data account space of the payer, and transfers out from the actual data account corresponding to the data account space of the payer The payment resource corresponding to the second installment payment value is sent to the payment account of the transaction agency; wherein the duration of the data settlement cycle of the data account space is equal to the payment processing period of the remaining payment phase of the second installment transaction The duration of the deduction is the same, the data quota of the data account space in the previous data settlement cycle is deducted from the deduction quota, and after the data settlement processing in the subsequent data settlement cycle, the deduction quota is less than the amount of the data quota The deduction is updated.
可选地,所述获取待处理交易的交易元数据步骤执行之后,且所述根据所述交易元数据创建所述待处理交易的分期支付事务步骤执行之前,包括:判断所述交易元数据中包含的待交易数值是否小于或者等于所述分期支付事务的支付方的数据账户空间的可用数据额度;若是,执行所述根据所述交易元数据创建所述待处理交易的分期支付事务步骤;若否,向所述支付方推送处理失败的提醒。Optionally, after the step of obtaining transaction metadata of the transaction to be processed is performed, and before the step of creating the installment payment transaction of the transaction to be processed according to the transaction metadata is performed, the method includes: determining whether the transaction metadata is Whether the included value to be traded is less than or equal to the available data quota of the data account space of the payer of the installment payment transaction; if so, execute the step of creating the installment payment transaction of the pending transaction based on the transaction metadata; if No, push notification of processing failure to the payer.
根据本说明书实施例提供的一种交易处理装置,包括:数据获取模块,被配置为获取待处理交易的交易元数据;事务创建模块,被配置为根据所述交易元数据创建所述待处理交易的分期支付事务;所述分期支付事务中记录有各个支付阶段的交易支付信息和支付链路;事务解析模块,被配置为基于针对所述分期支付事务的至少一个支付阶段提交的支付方式,对所述分期支付事务进行解析,获得与所述支付方式对应的目标支付事务;事务处理模块,被配置为根据所述目标支付事务中记录的所述至少一个支付阶段的目标交易支付信息和目标支付链路,对所述目标支付事务进行支付处理。A transaction processing device provided according to an embodiment of this specification includes: a data acquisition module configured to acquire transaction metadata of a transaction to be processed; a transaction creation module configured to create the transaction to be processed based on the transaction metadata The installment payment transaction; the transaction payment information and payment link of each payment stage are recorded in the installment payment transaction; the transaction analysis module is configured to be based on the payment method submitted for at least one payment stage of the installment payment transaction, The installment payment transaction is analyzed to obtain the target payment transaction corresponding to the payment method; the transaction processing module is configured to be based on the target transaction payment information and target payment of the at least one payment stage recorded in the target payment transaction Link to perform payment processing on the target payment transaction.
本说明书实施例提供的第二种数据处理方法,应用于服务端,包括:接收第一客户端提交的待处理业务的业务处理请求;所述业务处理请求中携带业务标识和分段数目;The second data processing method provided by the embodiment of this specification is applied to the server, and includes: receiving a service processing request of the service to be processed submitted by the first client; the service processing request carries the service identifier and the number of segments;
根据所述分段数目和所述业务标识对应的元数据,创建所述业务处理请求对应的分段数据事务;所述分段数据事务中记录有各个执行段的数据执行信息和数据链路;向所述第一客户端下发所述分段数据事务;根据所述第一客户端针对所述分段数据事务提交的分段执行方式,对所述分段数据事务进行解析,获得与所述分段执行方式对应的目标数据事务;根据所述目标数据事务中记录的所述至少一个执行段的目标数据执行信息和目标数据链路,对所述目标数据事务进行执行处理;向所述第一客户端推送所述目标数据事务的执行处理结果。Create a segment data transaction corresponding to the service processing request according to the number of segments and the metadata corresponding to the service identifier; the segment data transaction records data execution information and data links of each execution segment; Deliver the segmented data transaction to the first client; analyze the segmented data transaction according to the segmented execution mode submitted by the first client for the segmented data transaction, and obtain the The target data transaction corresponding to the segmented execution mode; perform execution processing on the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction; The first client pushes the execution processing result of the target data transaction.
可选地,所述根据所述第一客户端针对所述分段数据事务提交的分段执行方式,对所述分段数据事务进行解析,获得与所述分段执行方式对应的目标数据事务,包括:接收所述第一客户端针对所述至少一个执行段提交的分段执行方式;根据所述分段执行方式,对所述分段数据事务进行分解,获得与所述分段执行方式对应的目标数据事务;其中,所述与所述分段执行方式对应的目标数据事务中,记录有所述至少一个执行段的目标数据执行信息和目标数据链路,所述目标数据执行信息基于所述至少一个执行段的数据执行信息确定,所述目标数据链路基于所述至少一个执行段的数据链路确定。Optionally, the segmented data transaction is analyzed according to the segmented execution mode submitted by the first client for the segmented data transaction to obtain the target data transaction corresponding to the segmented execution mode , Including: receiving the segmented execution mode submitted by the first client for the at least one execution segment; and decomposing the segmented data transaction according to the segmented execution mode to obtain the same as the segmented execution mode Corresponding target data transaction; wherein, in the target data transaction corresponding to the segmented execution mode, the target data execution information and target data link of the at least one execution segment are recorded, and the target data execution information is based on The data execution information of the at least one execution segment is determined, and the target data link is determined based on the data link of the at least one execution segment.
可选地,所述根据所述目标数据事务中记录的所述至少一个执行段的目标数据执行信息和目标数据链路,对所述目标数据事务进行执行处理,包括:读取所述目标数据执行信息中包含的所述至少一个执行段对应的数据流动数值;按照所述目标数据链路,对所述第一客户端对应的数据流出对象的数据账户空间的数据额度扣减所述数据流动数值对应的扣减额度,以及,从所述数据流出对象的数据账户空间对应的实际数据账户转出所述数据流动数值对应的数据资源至第二客户端对应的数据流入对象的数据账户;其中,所述目标数据链路的数据节点至少对应于所述数据流出对象的数据账户空间和所述数据流入对象的数据账户;所述数据账户空间的数据结算周期的时长与所述分段数据事务的执行段的执行处理周期的时长相等,在前一数据结算周期对所述数据账户空间的数据额度扣减所述扣减额度,经后一数据结算周期的数据结算处理后,所述扣减额度对所述数据额度的扣减被更新。Optionally, the performing execution processing on the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction includes: reading the target data The data flow value corresponding to the at least one execution segment included in the execution information; according to the target data link, the data flow is deducted from the data quota of the data account space of the data outflow object corresponding to the first client The deduction amount corresponding to the value, and transferring the data resource corresponding to the data flow value from the actual data account corresponding to the data account space of the data outflow object to the data account of the data inflow object corresponding to the second client; where , The data node of the target data link at least corresponds to the data account space of the data outflow object and the data account of the data inflow object; the duration of the data settlement cycle of the data account space is related to the segmented data transaction The duration of the execution processing cycle of the execution section of the execution section is equal, and the deduction amount is deducted from the data quota of the data account space in the previous data settlement cycle. After the data settlement processing of the subsequent data settlement cycle, the deduction The deduction of the quota to the data quota is updated.
可选地,所述读取所述目标数据执行信息中包含的所述至少一个执行段对应的数据流动数值子步骤执行之后,还包括:根据所述数据流动数值以及所述至少一个执行段对应的第一执行附加数据占比,计算所述至少一个执行段对应的第一执行附加数据值;对所述数据流入对象进行所述第一执行附加数据值的数据结算处理;其中,所述第一执行附加数据占比,包括对所述分段数据事务在所述至少一个执行段进行执行处理产生的处 理费率,依据所述第一执行附加数据占比计算获得的所述第一执行附加数据值由所述数据流入对象承担。Optionally, after the sub-step of reading the data flow value corresponding to the at least one execution stage contained in the target data execution information is executed, it further includes: according to the data flow value and the at least one execution stage correspondence Calculate the first execution additional data value corresponding to the at least one execution segment; perform the data settlement processing of the first execution additional data value on the data inflow object; wherein, the first execution additional data value A percentage of execution additional data, including the processing fee generated by performing processing of the segmented data transaction in the at least one execution segment, and the first execution additional calculated based on the proportion of the first execution additional data The data value is borne by the data inflow object.
可选地,所述根据所述目标数据事务中记录的所述至少一个执行段的目标数据执行信息和目标数据链路,对所述目标数据事务进行执行处理步骤执行之后,还包括:接收第二客户端对应的数据流入对象针对剩余执行段提交的第二预执行请求;基于所述第二预执行请求中携带的第二预执行方式,对所述剩余执行段对应的数据执行信息和数据链路进行组装,获得与所述第二预执行方式对应的第二中间数据事务;所述第二中间数据事务中记录有所述第二预执行请求对应的第二总数据流动数值;通过从所述分段数据事务的中间数据对象的数据账户申请所述第二总数据流动数值对应的数据资源至所述数据流入对象的数据账户的方式,对所述第二中间数据事务进行执行处理;根据所述第一客户端对应的数据流出对象和所述中间数据对象二者数据账户的账户路径,确定从所述数据流出对象至所述中间数据对象的第二分段数据链路;根据所述第二分段数据链路和所述剩余执行段的数据执行信息,组建所述剩余执行段对应的第二分段数据事务;其中,所述第二中间数据事务中记录有第二中间数据链路,所述第二中间数据链路的起始数据节点对应于所述中间数据对象的数据账户,终止数据节点对应于所述数据流入对象的数据账户。Optionally, the step of performing execution processing on the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction further includes: receiving the first 2. The second pre-execution request submitted by the data inflow object corresponding to the client for the remaining execution section; based on the second pre-execution mode carried in the second pre-execution request, the data execution information and data corresponding to the remaining execution section The link is assembled to obtain the second intermediate data transaction corresponding to the second pre-execution mode; the second intermediate data transaction records the second total data flow value corresponding to the second pre-execution request; The data account of the intermediate data object of the segmented data transaction applies for the data resource corresponding to the second total data flow value to the data account of the data inflow object to perform processing on the second intermediate data transaction; Determine the second segmented data link from the data outflow object to the intermediate data object according to the account path of the data account of the data outflow object corresponding to the first client and the intermediate data object; The second segmented data link and the data execution information of the remaining execution segment form a second segment data transaction corresponding to the remaining execution segment; wherein, the second intermediate data transaction is recorded in the second intermediate data transaction Link, the start data node of the second intermediate data link corresponds to the data account of the intermediate data object, and the end data node corresponds to the data account of the data inflow object.
可选地,所述根据所述第二分段数据链路和所述剩余执行段的数据执行信息,组建所述剩余执行段对应的第二分段数据事务步骤执行之后,还包括:在所述第二分段数据事务的剩余执行段中至少一者的执行条件被触发的情况下,读取所述第二分段数据事务中被触发的剩余执行段对应的第二分段数据流动数值;按照所述第二分段数据链路,对所述数据流出对象的数据账户空间的数据额度扣减所述第二分段数据流动数值对应的扣减额度,以及,从所述数据流出对象的数据账户空间对应的实际数据账户转出所述第二分段数据流动数值对应的数据资源至所述中间数据对象的数据账户;其中,所述数据账户空间的数据结算周期的时长与所述第二分段数据事务的剩余执行段的执行处理周期的时长相等,在前一数据结算周期对所述数据账户空间的数据额度扣减所述扣减额度,经后一数据结算周期的数据结算处理后,所述扣减额度对所述数据额度的扣减被更新。Optionally, after the step of forming a second segment data transaction corresponding to the remaining execution segment according to the second segment data link and the data execution information of the remaining execution segment is executed, the method further includes: When the execution condition of at least one of the remaining execution segments of the second segmented data transaction is triggered, read the second segment data flow value corresponding to the triggered remaining execution segment of the second segmented data transaction According to the second segmented data link, the data quota of the data account space of the data outflow object is deducted by the deduction quota corresponding to the second segmented data flow value, and, from the data outflow object The actual data account corresponding to the data account space transfers the data resource corresponding to the second segmented data flow value to the data account of the intermediate data object; wherein the duration of the data settlement period of the data account space is the same as that of the The duration of the execution processing cycle of the remaining execution stages of the second segment data transaction is equal, the data quota of the data account space in the previous data settlement cycle is deducted from the deduction quota, and the data settlement in the latter data settlement cycle After processing, the deduction of the deduction amount to the data amount is updated.
可选地,所述根据所述分段数目和所述业务标识对应的元数据,创建所述业务处理请求对应的分段数据事务,包括:判断所述元数据中包含的待处理数据处理值是否小于或者等于所述第一客户端对应的数据流出对象的数据账户空间的可用数据额度;若是,根据所述元数据创建所述待处理业务的分段数据事务;若否,向所述第一客户端推送处 理失败的提醒。Optionally, the creating a segment data transaction corresponding to the service processing request according to the number of segments and the metadata corresponding to the service identifier includes: determining the processing value of the data to be processed contained in the metadata Whether it is less than or equal to the available data quota of the data account space of the data outflow object corresponding to the first client; if so, create the segmented data transaction of the to-be-processed service based on the metadata; if not, send the data to the first client A notification that the client has failed to push the processing.
可选地,所述待处理业务包括:交易业务,数据流处理业务,支付业务;相应的,所述待处理业务的分段数据事务包括:所述交易业务采用分阶段交易方式进行执行的分阶段交易事务,所述数据流处理业务采用分阶段处理方式进行执行的分阶段数据流处理事务,所述支付业务采用分阶段支付方式进行执行的分阶段支付事务;所述分段数据事务的执行段包括:所述分阶段交易事务在分阶段交易过程中的各个交易阶段,所述分阶段数据流处理事务在分阶段处理过程中的各个数据处理阶段,所述分阶段支付事务在分阶段支付过程中的各个支付阶段。Optionally, the to-be-processed services include: transaction services, data stream processing services, and payment services; correspondingly, the segmented data transactions of the to-be-processed services include: segmentation in which the transaction services are executed in a phased transaction mode. A staged transaction transaction, the data stream processing business adopts a staged data stream processing transaction executed by a staged processing method, and the payment business adopts a staged payment transaction executed by a staged payment method; the execution of the segmented data transaction The segments include: each transaction stage in the staged transaction process of the staged transaction transaction, each data processing stage of the staged data flow processing transaction in the staged processing process, the staged payment transaction in the staged payment The various payment stages in the process.
本说明书实施例提供的第二种数据处理装置,应用于服务端,包括:请求接收模块,被配置为接收第一客户端提交的待处理业务的业务处理请求;所述业务处理请求中携带业务标识和分段数目;分段数据事务创建模块,被配置为根据所述分段数目和所述业务标识对应的元数据,创建所述业务处理请求对应的分段数据事务;所述分段数据事务中记录有各个执行段的数据执行信息和数据链路;事务发送模块,被配置为向所述第一客户端下发所述分段数据事务;分段数据事务解析模块,被配置为根据所述第一客户端针对所述分段数据事务提交的分段执行方式,对所述分段数据事务进行解析,获得与所述分段执行方式对应的目标数据事务;事务处理模块,被配置为根据所述目标数据事务中记录的所述至少一个执行段的目标数据执行信息和目标数据链路,对所述目标数据事务进行执行处理;结果推送模块,被配置为向所述第一客户端推送所述目标数据事务的执行处理结果。The second data processing device provided by the embodiment of this specification is applied to the server and includes: a request receiving module configured to receive a service processing request for a service to be processed submitted by a first client; the service processing request carries a service ID and the number of segments; a segment data transaction creation module configured to create a segment data transaction corresponding to the service processing request according to the number of segments and the metadata corresponding to the service identifier; the segment data The data execution information and data link of each execution segment are recorded in the transaction; the transaction sending module is configured to send the segmented data transaction to the first client; the segmented data transaction analysis module is configured to The first client parses the segmented data transaction for the segmented execution mode submitted by the segmented data transaction to obtain the target data transaction corresponding to the segmented execution mode; the transaction processing module is configured In order to perform execution processing on the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction; the result push module is configured to send to the first client The terminal pushes the execution processing result of the target data transaction.
本说明书实施例提供的第三种数据处理方法,应用于第一客户端,包括:接收针对待处理业务提交的业务处理指令;根据所述业务处理指令对应的分段数目,向服务端提交携带所述分段数目和所述待处理业务的业务标识的业务处理请求;接收所述服务端针对所述业务处理请求下发的分段数据事务并展示;根据针对所述分段数据事务的分段执行输入,向所述服务端提交分段执行方式;接收所述服务端返回的所述分段执行方式对应的目标数据事务的执行处理结果。The third data processing method provided by the embodiment of this specification is applied to the first client and includes: receiving a service processing instruction submitted for the service to be processed; and submitting a port to the server according to the number of segments corresponding to the service processing instruction The number of segments and the service processing request of the service identifier of the service to be processed; receiving and displaying the segmented data transaction issued by the server for the service processing request; according to the segmentation for the segmented data transaction Segment execution input, submit the segment execution mode to the server; receive the execution processing result of the target data transaction corresponding to the segment execution mode returned by the server.
本说明书实施例提供的第三种数据处理装置,应用于第一客户端,包括:指令接收模块,被配置为接收针对待处理业务提交的业务处理指令;请求提交模块,被配置为根据所述业务处理指令对应的分段数目,向服务端提交携带所述分段数目和所述待处理业务的业务标识的业务处理请求;事务接收模块,被配置为接收所述服务端针对所述业务处理请求下发的分段数据事务并展示;分段执行方式提交模块,被配置为根据针对所述 分段数据事务的分段执行输入,向所述服务端提交分段执行方式;处理结果接收模块,被配置为接收所述服务端返回的所述分段执行方式对应的目标数据事务的执行处理结果。The third data processing device provided by the embodiment of this specification is applied to the first client and includes: an instruction receiving module configured to receive a service processing instruction submitted for a service to be processed; and a request submission module configured to The number of segments corresponding to the service processing instruction is submitted to the server to carry the number of segments and the service identification of the service to be processed; the transaction receiving module is configured to receive the service processing for the service The segmented data transaction requested to be issued and displayed; the segmented execution mode submission module is configured to submit the segmented execution mode to the server according to the segmented execution input for the segmented data transaction; the processing result receiving module And configured to receive the execution processing result of the target data transaction corresponding to the segmented execution mode returned by the server.
本说明书实施例提供的第四种数据处理方法,应用于服务端,包括:接收第二客户端提交的携带业务标识的业务处理请求;根据所述业务标识对应的元数据,创建所述业务处理请求对应的分段数据事务;所述分段数据事务中记录有各个执行段的数据执行信息和数据链路;向第一客户端和所述第二客户端下发所述分段数据事务;根据所述第二客户端针对所述分段数据事务提交的预执行方式,对所述分段数据事务进行解析,获得与所述预执行方式对应的目标数据事务;根据所述目标数据事务中记录的所述至少一个执行段的目标数据执行信息和目标数据链路,对所述目标数据事务进行执行处理;向所述第二客户端推送所述目标数据事务的执行处理结果。The fourth data processing method provided by the embodiment of this specification, applied to the server, includes: receiving a service processing request carrying a service identifier submitted by a second client; creating the service processing according to the metadata corresponding to the service identifier Request a corresponding segmented data transaction; the segmented data transaction records the data execution information and data link of each execution segment; and deliver the segmented data transaction to the first client and the second client; According to the pre-execution mode submitted by the second client for the segmented data transaction, analyze the segmented data transaction to obtain the target data transaction corresponding to the pre-executed mode; according to the target data transaction The recorded target data execution information and target data link of the at least one execution segment perform execution processing on the target data transaction; and push the execution processing result of the target data transaction to the second client.
可选地,所述根据所述第二客户端针对所述分段数据事务提交的预执行方式,对所述分段数据事务进行解析,获得与所述预执行方式对应的目标数据事务,包括:接收所述第二客户端对应的数据流入对象针对所述至少一个执行段提交的预执行方式;根据所述预执行方式,对所述至少一个执行段对应的数据执行信息和数据链路进行组装,获得与所述预执行方式对应的目标数据事务。Optionally, the parsing the segmented data transaction according to the pre-execution mode submitted by the second client for the segmented data transaction to obtain the target data transaction corresponding to the pre-execution mode includes : Receive the pre-execution mode submitted by the data inflow object corresponding to the second client for the at least one execution section; perform data execution information and data link corresponding to the at least one execution section according to the pre-execution mode Assemble to obtain the target data transaction corresponding to the pre-execution mode.
可选地,所述根据所述预执行方式,对所述至少一个执行段对应的数据执行信息和数据链路进行组装,获得与所述预执行方式对应的目标数据事务,包括:根据所述预执行方式对应的所述至少一个执行段的目标数据执行信息,计算所述预执行方式对应的总数据流动数值;基于所述第二客户端对应的数据流入对象和中间数据对象二者数据账户的账户路径确定目标数据链路;基于所述总数据流动数值和所述目标数据链路组建中间数据事务,作为所述目标数据事务;其中,所述目标数据链路的起始数据节点对应于所述中间数据对象的数据账户,终止数据节点对应于所述数据流入对象的数据账户。Optionally, the assembling the data execution information and the data link corresponding to the at least one execution segment according to the pre-execution mode to obtain the target data transaction corresponding to the pre-execution mode includes: according to the The target data execution information of the at least one execution segment corresponding to the pre-execution mode is calculated, and the total data flow value corresponding to the pre-execution mode is calculated; based on the data account of both the data inflow object and the intermediate data object corresponding to the second client The account path of the target data link is determined; an intermediate data transaction is established based on the total data flow value and the target data link as the target data transaction; wherein, the start data node of the target data link corresponds to For the data account of the intermediate data object, the terminating data node corresponds to the data account of the data inflow object.
可选地,所述根据所述目标数据事务中记录的所述至少一个执行段的目标数据执行信息和目标数据链路,对所述目标数据事务进行执行处理,包括:从所述分段数据事务的中间数据对象的数据账户申请所述总数据流动数值对应的数据资源至所述数据流入对象的数据账户;根据所述第一客户端对应的数据流出对象和所述中间数据对象二者数据账户的账户路径,确定从所述数据流出对象至所述中间数据对象的分段数据链路;根据所述分段数据链路和所述分段数据事务中待执行的执行段的数据执行信息,组建所述分段数据事务中待执行的执行段的第一分段数据事务;其中,所述分段数据链路的起始 数据节点对应于所述数据流出对象的数据账户,终止数据节点对应于所述中间数据对象的数据账户。Optionally, the performing execution processing on the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction includes: obtaining data from the segment data The data account of the intermediate data object of the transaction applies for the data resource corresponding to the total data flow value to the data account of the data inflow object; according to the data corresponding to the first client, the data flows out of both the object and the intermediate data object. The account path of the account determines the segment data link from the data outflow object to the intermediate data object; according to the segment data link and the data execution information of the execution segment to be executed in the segment data transaction , Forming the first segment data transaction of the execution segment to be executed in the segment data transaction; wherein the start data node of the segment data link corresponds to the data account of the data outflow object, and the data node is terminated The data account corresponding to the intermediate data object.
可选地,所述根据所述目标数据事务中记录的所述至少一个执行段的目标数据执行信息和目标数据链路,对所述目标数据事务进行执行处理步骤执行之后,包括:在所述第一分段数据事务的执行段的执行条件被触发的情况下,读取所述第一分段数据事务中被触发的执行段对应的第一分段数据流动数值;按照所述分段数据链路,对所述数据流出对象的数据账户空间的数据额度扣减所述第一分段数据流动数值对应的扣减额度,以及,从所述数据流出对象的数据账户空间对应的实际数据账户转出所述第一分段数据流动数值对应的数据资源至所述中间数据对象的数据账户;其中,所述数据账户空间的数据结算周期的时长与所述第一分段数据事务的执行段的执行处理周期的时长相等,在前一数据结算周期对所述数据账户空间的数据额度扣减所述扣减额度,经后一数据结算周期的数据结算处理后,所述扣减额度对所述数据额度的扣减被更新。Optionally, the step of performing execution processing on the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction includes: When the execution condition of the execution segment of the first segment data transaction is triggered, read the first segment data flow value corresponding to the triggered execution segment in the first segment data transaction; according to the segment data Link, deducting the deduction amount corresponding to the first segment data flow value from the data quota of the data account space of the data outflow object, and the actual data account corresponding to the data account space of the data outflow object The data resource corresponding to the first segment data flow value is transferred to the data account of the intermediate data object; wherein the duration of the data settlement cycle of the data account space is the same as the execution segment of the first segment data transaction The duration of the execution processing cycle is the same. In the previous data settlement cycle, the data quota of the data account space is deducted from the deduction quota. After the data settlement processing in the subsequent data settlement cycle, the deduction quota is The deduction of the data quota is updated.
可选地,所述待处理业务包括:交易业务,数据流处理业务,支付业务;相应的,所述待处理业务的分段数据事务包括:所述交易业务采用分阶段交易方式进行执行的分阶段交易事务,所述数据流处理业务采用分阶段处理方式进行执行的分阶段数据流处理事务,所述支付业务采用分阶段支付方式进行执行的分阶段支付事务;所述分段数据事务的执行段包括:所述分阶段交易事务在分阶段交易过程中的各个交易阶段,所述分阶段数据流处理事务在分阶段处理过程中的各个数据处理阶段,所述分阶段支付事务在分阶段支付过程中的各个支付阶段。Optionally, the to-be-processed services include: transaction services, data stream processing services, and payment services; correspondingly, the segmented data transactions of the to-be-processed services include: segmentation in which the transaction services are executed in a phased transaction mode. A staged transaction transaction, the data stream processing business adopts a staged data stream processing transaction executed by a staged processing method, and the payment business adopts a staged payment transaction executed by a staged payment method; the execution of the segmented data transaction The segments include: each transaction stage in the staged transaction process of the staged transaction transaction, each data processing stage of the staged data flow processing transaction in the staged processing process, the staged payment transaction in the staged payment The various payment stages in the process.
本说明书实施例提供的第四种数据处理装置,应用于服务端,包括:请求接收模块,被配置为接收第二客户端提交的携带业务标识的业务处理请求;事务创建模块,被配置为根据所述业务标识对应的元数据,创建所述业务处理请求对应的分段数据事务;所述分段数据事务中记录有各个执行段的数据执行信息和数据链路;事务发送模块,被配置为向第一客户端和所述第二客户端下发所述分段数据事务;解析模块,被配置为根据所述第二客户端针对所述分段数据事务提交的预执行方式,对所述分段数据事务进行解析,获得与所述预执行方式对应的目标数据事务;处理模块,被配置为根据所述目标数据事务中记录的所述至少一个执行段的目标数据执行信息和目标数据链路,对所述目标数据事务进行执行处理;结果推送模块,被配置为向所述第二客户端推送所述目标数据事务的执行处理结果。The fourth data processing device provided by the embodiment of this specification is applied to the server and includes: a request receiving module configured to receive a service processing request carrying a service identifier submitted by a second client; and a transaction creation module configured to The metadata corresponding to the service identifier creates a segmented data transaction corresponding to the service processing request; the segmented data transaction records the data execution information and data links of each execution segment; the transaction sending module is configured to The segmented data transaction is issued to the first client and the second client; the parsing module is configured to perform the pre-execution mode for the segmented data transaction submitted by the second client to the The segmented data transaction is analyzed to obtain the target data transaction corresponding to the pre-execution mode; the processing module is configured to execute information and target data link according to the target data of the at least one execution segment recorded in the target data transaction Road, perform execution processing on the target data transaction; the result push module is configured to push the execution processing result of the target data transaction to the second client.
本说明书实施例提供的第五种数据处理方法,应用于第二客户端,包括:采集第一 客户端对应的终端设备展示的待处理业务的业务标识码;对所述业务标识码进行解码,根据解码获得的业务标识向服务端提交携带所述业务标识的业务处理请求;接收所述服务端针对所述业务处理请求下发的分段数据事务并展示;根据针对所述分段数据事务的预执行输入,向所述服务端提交预执行方式;接收所述服务端返回的所述预执行方式对应的目标数据事务的执行处理结果。The fifth data processing method provided by the embodiment of this specification, applied to the second client, includes: collecting the service identification code of the service to be processed displayed by the terminal device corresponding to the first client; decoding the service identification code, Submit a service processing request carrying the service identifier to the server according to the service identifier obtained by decoding; receive and display the segmented data transaction issued by the server in response to the service processing request; Pre-execution input, submit a pre-execution mode to the server; receive the execution processing result of the target data transaction corresponding to the pre-execution mode returned by the server.
本说明书实施例提供的第五种数据处理装置,应用于第二客户端,包括:采集模块,被配置为采集第一客户端对应的终端设备展示的待处理业务的业务标识码;解码模块,被配置为对所述业务标识码进行解码,根据解码获得的业务标识向服务端提交携带所述业务标识的业务处理请求;接收模块,被配置为接收所述服务端针对所述业务处理请求下发的分段数据事务并展示;提交模块,被配置为根据针对所述分段数据事务的预执行输入,向所述服务端提交预执行方式;处理结果接收模块,被配置为接收所述服务端返回的所述预执行方式对应的目标数据事务的执行处理结果。The fifth data processing device provided by the embodiment of this specification is applied to the second client and includes: a collection module configured to collect the service identification code of the service to be processed displayed by the terminal device corresponding to the first client; and a decoding module, Is configured to decode the service identification code, and submit a service processing request carrying the service identification to the server according to the decoded service identification; the receiving module is configured to receive the service processing request from the server The segmented data transaction is sent and displayed; the submission module is configured to submit the pre-execution mode to the server according to the pre-execution input for the segmented data transaction; the processing result receiving module is configured to receive the service The execution processing result of the target data transaction corresponding to the pre-execution mode returned by the terminal.
根据本说明书实施例提供的第一种计算设备,包括:存储器和处理器;所述存储器用于存储计算机可执行指令,所述处理器用于执行所述计算机可执行指令:获取待处理业务的元数据;根据所述元数据创建所述待处理业务的分段数据事务;所述分段数据事务中记录有各个执行段的数据执行信息和数据链路;基于针对所述分段数据事务的至少一个执行段提交的执行方式,对所述分段数据事务进行解析,获得与所述执行方式对应的目标数据事务;根据所述目标数据事务中记录的所述至少一个执行段的目标数据执行信息和目标数据链路,对所述目标数据事务进行执行处理。The first computing device provided according to an embodiment of this specification includes: a memory and a processor; the memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions: to obtain elements of services to be processed Data; create a segmented data transaction of the to-be-processed service based on the metadata; the segmented data transaction records the data execution information and data links of each execution segment; based on at least the segmented data transaction An execution mode submitted by an execution segment, analyzing the segmented data transaction to obtain the target data transaction corresponding to the execution mode; according to the target data execution information of the at least one execution segment recorded in the target data transaction And the target data link to perform execution processing on the target data transaction.
根据本说明书实施例提供的第二种计算设备,包括:存储器和处理器;所述存储器用于存储计算机可执行指令,所述处理器用于执行所述计算机可执行指令:获取待处理交易的交易元数据;根据所述交易元数据创建所述待处理交易的分期支付事务;所述分期支付事务中记录有各个支付阶段的交易支付信息和支付链路;基于针对所述分期支付事务的至少一个支付阶段提交的支付方式,对所述分期支付事务进行解析,获得与所述支付方式对应的目标支付事务;根据所述目标支付事务中记录的所述至少一个支付阶段的目标交易支付信息和目标支付链路,对所述目标支付事务进行支付处理。The second computing device provided according to the embodiment of this specification includes: a memory and a processor; the memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions: obtain transactions of pending transactions Metadata; create an installment payment transaction for the pending transaction based on the transaction metadata; the installment payment transaction records transaction payment information and payment links for each payment stage; based on at least one of the installment payment transactions The payment method submitted in the payment stage analyzes the installment payment transaction to obtain the target payment transaction corresponding to the payment method; according to the target transaction payment information and target of the at least one payment stage recorded in the target payment transaction The payment link performs payment processing on the target payment transaction.
根据本说明书实施例提供的第三种计算设备,包括:存储器和处理器;所述存储器用于存储计算机可执行指令,所述处理器用于执行所述计算机可执行指令:接收第一客户端提交的待处理业务的业务处理请求;所述业务处理请求中携带业务标识和分段数目;根据所述分段数目和所述业务标识对应的元数据,创建所述业务处理请求对应的分段数 据事务;所述分段数据事务中记录有各个执行段的数据执行信息和数据链路;向所述第一客户端下发所述分段数据事务;根据所述第一客户端针对所述分段数据事务提交的分段执行方式,对所述分段数据事务进行解析,获得与所述分段执行方式对应的目标数据事务;根据所述目标数据事务中记录的所述至少一个执行段的目标数据执行信息和目标数据链路,对所述目标数据事务进行执行处理;向所述第一客户端推送所述目标数据事务的执行处理结果。The third computing device provided according to the embodiment of this specification includes: a memory and a processor; the memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions: receiving a submission from the first client The service processing request of the service to be processed; the service processing request carries the service identifier and the number of segments; the segment data corresponding to the service processing request is created according to the number of segments and the metadata corresponding to the service identifier Transaction; the segmented data transaction records the data execution information and data link of each execution segment; sends the segmented data transaction to the first client; according to the first client for the segment The segmented execution mode of segment data transaction submission is to analyze the segmented data transaction to obtain the target data transaction corresponding to the segmented execution mode; according to the at least one execution segment recorded in the target data transaction The target data execution information and the target data link perform execution processing on the target data transaction; and push the execution processing result of the target data transaction to the first client.
根据本说明书实施例提供的第四种计算设备,包括:存储器和处理器;所述存储器用于存储计算机可执行指令,所述处理器用于执行所述计算机可执行指令:接收针对待处理业务提交的业务处理指令;根据所述业务处理指令对应的分段数目,向服务端提交携带所述分段数目和所述待处理业务的业务标识的业务处理请求;接收所述服务端针对所述业务处理请求下发的分段数据事务并展示;根据针对所述分段数据事务的分段执行输入,向所述服务端提交分段执行方式;接收所述服务端返回的所述分段执行方式对应的目标数据事务的执行处理结果。The fourth computing device provided according to the embodiment of this specification includes: a memory and a processor; the memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions: receiving submissions for services to be processed According to the number of segments corresponding to the service processing instruction, submit a service processing request carrying the number of segments and the service identifier of the service to be processed to the server; receive the service from the server for the service Process and display the segmented data transaction issued by the request; submit the segmented execution mode to the server according to the segmented execution input for the segmented data transaction; receive the segmented execution mode returned by the server The execution processing result of the corresponding target data transaction.
根据本说明书实施例提供的第五种计算设备,包括:存储器和处理器;所述存储器用于存储计算机可执行指令,所述处理器用于执行所述计算机可执行指令:接收第二客户端提交的携带业务标识的业务处理请求;根据所述业务标识对应的元数据,创建所述业务处理请求对应的分段数据事务;所述分段数据事务中记录有各个执行段的数据执行信息和数据链路;向第一客户端和所述第二客户端下发所述分段数据事务;根据所述第二客户端针对所述分段数据事务提交的预执行方式,对所述分段数据事务进行解析,获得与所述预执行方式对应的目标数据事务;根据所述目标数据事务中记录的所述至少一个执行段的目标数据执行信息和目标数据链路,对所述目标数据事务进行执行处理;向所述第二客户端推送所述目标数据事务的执行处理结果。The fifth computing device provided according to the embodiment of this specification includes: a memory and a processor; the memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions: receiving a submission from a second client The service processing request carrying the service ID; the segment data transaction corresponding to the service processing request is created according to the metadata corresponding to the service ID; the data execution information and data of each execution segment are recorded in the segment data transaction Link; deliver the segmented data transaction to the first client and the second client; according to the pre-execution mode submitted by the second client for the segmented data transaction, the segmented data The transaction is analyzed to obtain the target data transaction corresponding to the pre-execution mode; the target data transaction is performed according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction Execute processing; push the execution processing result of the target data transaction to the second client.
根据本说明书实施例提供的第六种计算设备,包括:存储器和处理器;所述存储器用于存储计算机可执行指令,所述处理器用于执行所述计算机可执行指令:采集第一客户端对应的终端设备展示的待处理业务的业务标识码;对所述业务标识码进行解码,根据解码获得的业务标识向服务端提交携带所述业务标识的业务处理请求;接收所述服务端针对所述业务处理请求下发的分段数据事务并展示;根据针对所述分段数据事务的预执行输入,向所述服务端提交预执行方式;接收所述服务端返回的所述预执行方式对应的目标数据事务的执行处理结果。The sixth computing device provided by the embodiment of this specification includes: a memory and a processor; the memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions: collect the corresponding information of the first client The service identification code of the service to be processed displayed by the terminal device; decodes the service identification code, and submits a service processing request carrying the service identification to the server according to the service identification obtained by the decoding; The segmented data transaction issued by the business processing request and display; according to the pre-execution input for the segmented data transaction, submit the pre-execution mode to the server; receive the pre-execution mode returned by the server The execution processing result of the target data transaction.
根据本说明书实施例提供第一种计算机可读存储介质,其存储有计算机可执行指令, 该指令被处理器执行时实现所述第一种数据处理方法的步骤。According to an embodiment of the present specification, a first computer-readable storage medium is provided, which stores computer-executable instructions, and when the instructions are executed by a processor, the steps of the first data processing method are implemented.
根据本说明书实施例提供第二种计算机可读存储介质,其存储有计算机可执行指令,该指令被处理器执行时实现所述一种交易处理方法的步骤。According to an embodiment of the present specification, a second computer-readable storage medium is provided, which stores computer-executable instructions, which, when executed by a processor, implement the steps of the transaction processing method.
根据本说明书实施例提供第三种计算机可读存储介质,其存储有计算机可执行指令,该指令被处理器执行时实现所述第二种数据处理方法的步骤。According to an embodiment of the present specification, a third type of computer-readable storage medium is provided, which stores computer-executable instructions that, when executed by a processor, implement the steps of the second data processing method.
根据本说明书实施例提供第四种计算机可读存储介质,其存储有计算机可执行指令,该指令被处理器执行时实现所述第三种数据处理方法的步骤。According to an embodiment of the present specification, a fourth computer-readable storage medium is provided, which stores computer-executable instructions, which, when executed by a processor, implement the steps of the third data processing method.
根据本说明书实施例提供第五种计算机可读存储介质,其存储有计算机可执行指令,该指令被处理器执行时实现所述第四种数据处理方法的步骤。According to an embodiment of the present specification, a fifth computer-readable storage medium is provided, which stores computer-executable instructions, and when the instructions are executed by a processor, the steps of the fourth data processing method are implemented.
根据本说明书实施例提供第六种计算机可读存储介质,其存储有计算机可执行指令,该指令被处理器执行时实现所述第五种数据处理方法的步骤。According to an embodiment of the present specification, a sixth computer-readable storage medium is provided, which stores computer-executable instructions that, when executed by a processor, implement the steps of the fifth data processing method.
本说明书一实施例提供的数据处理方法,通过获取所述待处理业务的元数据,并根据所述元数据创建所述待处理业务的分段数据事务,再基于所述分段数据事务的至少一个执行段提交的执行方式,对所述分段数据事务进行解析,根据解析结果获得的目标数据事务中记录的所述至少一个执行段的目标数据执行信息和目标数据链路对所述目标数据事务进行执行处理,根据提交的执行方式对相应的执行段进行更加灵活的处理,同时,以数据事务的方式对待处理业务进行执行处理,提升了业务执行处理的处理效率和处理一致性。In the data processing method provided by an embodiment of this specification, the metadata of the service to be processed is obtained, and the segmented data transaction of the service to be processed is created based on the metadata, and then based on at least the segmented data transaction An execution mode of execution stage submission is to analyze the segment data transaction, and the target data execution information of the at least one execution stage recorded in the target data transaction obtained according to the analysis result and the target data link to the target data The transaction is executed, and the corresponding execution segment is processed more flexibly according to the submitted execution mode. At the same time, the to-be-processed business is executed in the form of data transaction, which improves the processing efficiency and processing consistency of the business execution processing.
附图说明Description of the drawings
图1是本说明书一个实施例提供的第一种数据处理方法的处理流程图;Fig. 1 is a processing flowchart of a first data processing method provided by an embodiment of this specification;
图2是本说明书一个实施例提供的一种应用于交易业务中的数据处理方法的处理流程图;FIG. 2 is a processing flowchart of a data processing method applied to transaction services according to an embodiment of this specification;
图3是本说明书一个实施例提供的一种应用于支付业务中的数据处理方法的处理流程图;FIG. 3 is a processing flowchart of a data processing method applied to payment services according to an embodiment of this specification;
图4是本说明书一个实施例提供的第二种应用于支付业务中的数据处理方法的处理流程图;4 is a processing flowchart of a second data processing method applied to payment services according to an embodiment of this specification;
图5是本说明书一个实施例提供的第一种数据处理装置的示意图;Fig. 5 is a schematic diagram of a first data processing device provided by an embodiment of this specification;
图6是本说明书一个实施例提供的一种交易处理方法的处理流程图;FIG. 6 is a processing flowchart of a transaction processing method provided by an embodiment of this specification;
图7是本说明书一个实施例提供的第二种交易处理方法的处理流程图;FIG. 7 is a processing flowchart of a second transaction processing method provided by an embodiment of this specification;
图8是本说明书一个实施例提供的一种交易处理装置的示意图;FIG. 8 is a schematic diagram of a transaction processing device provided by an embodiment of this specification;
图9是本说明书一个实施例提供的第二种数据处理方法的处理流程图;FIG. 9 is a processing flowchart of a second data processing method provided by an embodiment of this specification;
图10是本说明书一个实施例提供的第二种数据处理装置的示意图;FIG. 10 is a schematic diagram of a second data processing device provided by an embodiment of this specification;
图11是本说明书一个实施例提供的第三种数据处理方法的处理流程图;FIG. 11 is a processing flowchart of a third data processing method provided by an embodiment of this specification;
图12是本说明书一个实施例提供的第三种数据处理装置的示意图;FIG. 12 is a schematic diagram of a third data processing device provided by an embodiment of this specification;
图13是本说明书一个实施例提供的第四种数据处理方法的处理流程图;FIG. 13 is a processing flowchart of a fourth data processing method provided by an embodiment of this specification;
图14是本说明书一个实施例提供的第四种数据处理装置的示意图;FIG. 14 is a schematic diagram of a fourth data processing device provided by an embodiment of this specification;
图15是本说明书一个实施例提供的第五种数据处理方法的处理流程图;15 is a processing flowchart of a fifth data processing method provided by an embodiment of this specification;
图16是本说明书一个实施例提供的第五种数据处理装置的示意图;FIG. 16 is a schematic diagram of a fifth data processing device provided by an embodiment of this specification;
图17是本说明书一个实施例提供的第一种计算设备的结构框图;FIG. 17 is a structural block diagram of a first computing device provided by an embodiment of this specification;
图18是本说明书一个实施例提供的第二种计算设备的结构框图;FIG. 18 is a structural block diagram of a second type of computing device provided by an embodiment of this specification;
图19是本说明书一个实施例提供的第三种计算设备的结构框图;FIG. 19 is a structural block diagram of a third computing device provided by an embodiment of this specification;
图20是本说明书一个实施例提供的第四种计算设备的结构框图;20 is a structural block diagram of a fourth computing device provided by an embodiment of this specification;
图21是本说明书一个实施例提供的第五种计算设备的结构框图;FIG. 21 is a structural block diagram of a fifth computing device provided by an embodiment of this specification;
图22是本说明书一个实施例提供的第六种计算设备的结构框图。Fig. 22 is a structural block diagram of a sixth computing device provided by an embodiment of this specification.
具体实施方式Detailed ways
在下面的描述中阐述了很多具体细节以便于充分理解本说明书。但是本说明书能够以很多不同于在此描述的其它方式来实施,本领域技术人员可以在不违背本说明书内涵的情况下做类似推广,因此本说明书不受下面公开的具体实施的限制。In the following description, many specific details are explained in order to fully understand this specification. However, this specification can be implemented in many other ways different from those described here, and those skilled in the art can make similar extensions without departing from the connotation of this specification. Therefore, this specification is not limited by the specific implementation disclosed below.
在本说明书一个或多个实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本说明书一个或多个实施例。在本说明书一个或多个实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本说明书一个或多个实施例中使用的术语“和/ 或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a", "said" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and/or" used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.
应当理解,尽管在本说明书一个或多个实施例中可能采用术语第一、第二等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本说明书一个或多个实施例范围的情况下,第一也可以被称为第二,类似地,第二也可以被称为第一。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, the information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein can be interpreted as "when" or "when" or "in response to determination".
本说明书一个实施例提供了数据处理方法及装置,交易处理方法及装置,同时涉及六种计算设备以及六种计算机可读存储介质。以下分别结合本说明书提供的实施例的附图逐一进行详细说明,并且对方法的各个步骤进行说明。An embodiment of this specification provides a data processing method and device, a transaction processing method and device, and also involves six types of computing devices and six types of computer-readable storage media. The following is a detailed description one by one in conjunction with the accompanying drawings of the embodiments provided in this specification, and each step of the method is described.
本说明书提供的第一种数据处理方法实施例如下。The implementation example of the first data processing method provided in this specification is as follows.
参照附图1,其示出了本说明书实施例提供的一种数据处理方法的处理流程图,具体包括以下步骤S102至S108。Referring to FIG. 1, it shows a processing flowchart of a data processing method provided by an embodiment of this specification, which specifically includes the following steps S102 to S108.
步骤S102,获取待处理业务的元数据。Step S102: Obtain metadata of the service to be processed.
实际应用中,在针对待处理业务进行数据处理的过程中,往往需要调用大量的数据参与待处理业务的数据处理过程,而被调用数据会因参与数据处理被占用,这就使被调用数据在占用期间的使用收到影响,尤其是在被调用数据的数据规模较大的情况下,对数据利用率的影响则更为明显。本实施例提供的数据处理方法,在对待处理业务进行数据处理的过程中,首先以数据事务的方式对待处理业务进行执行处理,以此来提升数据处理效率,降低数据处理过程中数据占用的影响,并以执行段的方式对待处理业务的执行处理过程进行划分,从而来降低待处理业务的执行处理过程所占用的数据量,同时也能够提升业务执行处理的处理效率和处理一致性。In actual applications, in the process of data processing for the business to be processed, it is often necessary to call a large amount of data to participate in the data processing process of the business to be processed, and the called data will be occupied by participating in the data processing, which makes the called data in The use during the occupancy period is affected, especially when the data scale of the called data is large, the impact on the data utilization rate is more obvious. In the data processing method provided in this embodiment, in the process of processing the business to be processed, the business to be processed is first executed in the form of a data transaction, so as to improve the efficiency of data processing and reduce the impact of data occupation in the process of data processing. , And divide the execution process of the business to be processed in the manner of execution segment, so as to reduce the amount of data occupied by the execution process of the business to be processed, and at the same time, it can also improve the processing efficiency and processing consistency of the business execution processing.
需要说明的是,在对待处理业务进行执行处理的过程中,如果待处理业务的执行处理涉及多方参与配合实现,或者待处理业务的执行处理需进行远程数据传输、数据调用,再或者待处理业务的执行处理需要涉及多个处理平台的数据支持,可在分布式系统的基础上实现所述数据处理方法,具体的,通过创建所述待处理业务对应的分布式事务,并基于分布式系统中部署在不同节点之上的支持事务的服务器、资源服务器以及事务管理器之间的协同配合,实现在元数据基础上进行的分布式事务的创建,以及根据提交的执行方式对分布式事务执行处理,从而来进一步提升待处理业务的业务执行处理的处理效率和处理一致性。It should be noted that in the process of executing the business to be processed, if the execution of the business to be processed involves multiple parties participating in the implementation, or the execution of the business to be processed requires remote data transmission, data invocation, or the business to be processed The execution of processing requires data support involving multiple processing platforms. The data processing method can be implemented on the basis of a distributed system. Specifically, by creating a distributed transaction corresponding to the business to be processed, and based on the distributed system The coordination among transaction-supporting servers, resource servers, and transaction managers deployed on different nodes enables the creation of distributed transactions on the basis of metadata, and the execution of distributed transactions according to the submitted execution mode , So as to further improve the processing efficiency and processing consistency of the business execution processing of the business to be processed.
具体实施时,所述待处理业务包括:交易业务,数据流处理业务,支付业务;相应的,所述交易业务具体是指关于物品交易、资源交易或者数据交易进行交易处理相关的业务;所述数据流处理业务具体是指关于数据流调用处理的相关业务;所述支付业务具体是指关于商品支付处理的相关业务。In specific implementation, the pending services include: transaction services, data stream processing services, and payment services; correspondingly, the transaction services specifically refer to transactions related to transaction processing related to item transactions, resource transactions, or data transactions; The data stream processing business specifically refers to a related business related to data stream invocation processing; the payment business specifically refers to a related business related to commodity payment processing.
其中,在所述待处理业务为数据流处理业务的情况下,对应的所述元数据是指针对数据流处理业务所需要执行的调用任务;所述待处理业务为交易业务的情况下,对应的元数据是指针对交易业务所需要交易的总交易数额;所述待处理业务为支付业务的情况下,对应的元数据是指针对支付业务所需要支付的总支付资金。Wherein, when the service to be processed is a data stream processing service, the corresponding metadata refers to the calling task that needs to be performed on the data stream processing service; when the service to be processed is a transaction service, corresponding The metadata refers to the total transaction amount required for the transaction business; when the business to be processed is a payment business, the corresponding metadata refers to the total payment funds that need to be paid for the payment business.
本实施例将以所述待处理业务为数据流处理业务对所述数据处理方法进行描述,在数据流处理业务场景中,数据流出对象和数据流入对象在针对调用任务进行数据流调用的过程中,需要数据流出对象针对调用任务提供部分数据流才能够使得调用任务完成,而在完成调用任务的过程中所涉及的数据流是较大的,此时数据流出对象很容易出现无法一次性提供全量数据流的情况发生,为了避免该情况发生而导致数据流出对象无法完成调用任务,可以由中间数据对象向数据流出对象提供一定量的数据流以便于数据流出对象可以针对调用任务进行执行,并且向数据流出对象提供的数据流可以按照分阶段处理的方式进行调用。In this embodiment, the data processing method will be described with the service to be processed as a data stream processing service. In the data stream processing business scenario, the data outflow object and the data inflow object are in the process of invoking the data stream for the invoking task. , The data outflow object needs to provide part of the data flow for the invocation task to complete the invocation task, and the data flow involved in the completion of the invocation task is relatively large. At this time, the data outflow object is prone to fail to provide the full amount at one time In the case of data flow, in order to avoid the occurrence of this situation and cause the data outflow object to fail to complete the calling task, the intermediate data object can provide a certain amount of data flow to the data outflow object so that the data outflow object can be executed for the calling task, and to The data stream provided by the data outflow object can be invoked in a phased processing manner.
实际应用中,在数据流出对象针对调用任务提供数据流的过程中,提供数据流的中间数据对象可以一次性将针对调用任务的全量数据流下发至数据流入对象,而数据流出对象针对中间数据对象提供的数据流进行分阶段处理,即可实现数据流出对象可以完成调用任务。In practical applications, when the data outflow object provides a data stream for the calling task, the intermediate data object that provides the data stream can send the full data stream for the invoking task to the data inflow object at one time, and the data outflow object is for the intermediate data object. The provided data stream is processed in stages to realize that the data outflow object can complete the calling task.
除此之外,提供数据流的中间数据对象还可以根据数据流出对象的分阶段处理方式向数据流入对象下发数据流。In addition, the intermediate data object that provides the data stream can also deliver the data stream to the data inflow object according to the phased processing mode of the data outflow object.
进一步的,在获取所述待处理业务的元数据的基础上,进一步的,为了提高待处理业务场景的安全性,实现可以针对数据流出对象进行准入限制,本实施例的一个或多个实施方式中,准入限制的核验过程具体实现方式如下所述:判断所述元数据中包含的待处理数据处理值是否小于或者等于所述分段数据事务的数据流出对象的数据账户空间的可用数据额度;若是,执行下述步骤S104;若否,向所述数据流出对象推送处理失败的提醒。Further, on the basis of obtaining the metadata of the business to be processed, further, in order to improve the security of the business scenario to be processed, and realize that the access restriction can be performed on the data outflow object, one or more implementations of this embodiment In the method, the specific implementation method of the admission restriction verification process is as follows: Determine whether the processing value of the data to be processed contained in the metadata is less than or equal to the available data in the data account space of the data outflow object of the segmented data transaction Quota; if yes, perform the following step S104; if no, push a notification of processing failure to the data outflow object.
具体的,首先确定所述元数据中包含的待处理数据处理值,再判断所述待处理 数据处理值是否小于或等于所述分段数据事务的数据流出对象的账户空间的可用数据额度,若是,说明此时数据流出对象满足准入限制,可以针对元数据创建分段数据事务,则执行下述步骤S104即可;若否,说明此时数据流出对象不满足准入限制,可以向数据流出对象推送处理失败的提醒,所述提醒即为数据流出对象无法针分段数据事务进行执行处理的相关信息。Specifically, first determine the processing value of the data to be processed contained in the metadata, and then determine whether the processing value of the data to be processed is less than or equal to the available data quota of the account space of the data outflow object of the segmented data transaction, if yes , Indicating that the data outflow object meets the access restriction at this time, and you can create a segmented data transaction for metadata, just perform the following step S104; if not, it indicates that the data outflow object does not meet the access restriction at this time, and you can flow out to the data A reminder that the object push processing fails, the reminder is related information that the data outflow object cannot perform processing for the segmented data transaction.
通过在根据元数据创建所述分段数据事务之前,对数据流出对象进行准入核验,不仅提高了所述待处理业务场景的安全性,同时可以对数据流出对象产生一定的限制作用,避免非正常数据流出对象对待处理业务产生非正常影响。Before creating the segmented data transaction based on the metadata, the data outflow object is checked for admission, which not only improves the security of the business scenario to be processed, but also has a certain restrictive effect on the data outflow object to avoid non-disclosure. The normal data outflow object has an abnormal impact on the business to be processed.
步骤S104,根据所述元数据创建所述待处理业务的分段数据事务。Step S104: Create a segmented data transaction of the service to be processed according to the metadata.
具体的,所述分段数据事务中记录有各个执行段的数据执行信息和数据链路。Specifically, the data execution information and data links of each execution segment are recorded in the segmented data transaction.
本实施例中,首先按照业务处理节点对所述待处理业务的执行处理过程进行划分,将待处理业务的执行处理过程划分为一个或者多个执行阶段(执行段),然后对待处理业务进行事务化,每个执行阶段需要执行处理的事务称之为一个数据事务,则待处理业务的所有执行阶段的数据事务构成的整体称之为分段数据事务。需要说明的是,所述分段数据事务中各个执行阶段的数据事务是按照执行处理的时间顺序依次进行排序,相应的,所述分段数据事务的执行处理过程中,其中各个执行阶段的数据事务也是按照排序顺序依次执行处理。具体的,所述分段数据事务中,还记录有各个数据执行信息和数据链路。In this embodiment, the execution process of the business to be processed is first divided according to the business processing node, and the execution process of the business to be processed is divided into one or more execution stages (execution sections), and then the business to be processed is executed. The transaction that needs to be processed in each execution stage is called a data transaction, and the whole of the data transactions in all execution stages of the business to be processed is called a segmented data transaction. It should be noted that the data transactions of each execution stage in the segmented data transaction are sequentially sorted according to the time sequence of the execution processing. Correspondingly, during the execution processing of the segmented data transaction, the data of each execution stage Transactions are also processed in sequence in order of sorting. Specifically, in the segmented data transaction, various data execution information and data links are also recorded.
例如,在支付业务中,支付用户通过支付平台提供的支付额度在商家购买了一件商品,该商品的价格是1000元,支付用户通过分期的方式向支付平台偿还该笔支付额度,总期数是10期,每期的偿还额度是100,每个支付阶段需要支付用户向支付平台偿还与支付额度相等的支付资金100元,而支付平台将通过金融机构提供的100元资金转至商家,在此支付过程中即可称之为该支付阶段的一个支付事务,支付业务中的十个支付阶段对应的支付事务组成所述支付业务中的分阶段支付事务。For example, in the payment business, the paying user purchases a product at the merchant through the payment line provided by the payment platform. The price of the product is 1,000 yuan, and the paying user repays the payment line to the payment platform in installments. The total number of installments It is 10 periods, and the repayment limit of each period is 100. At each payment stage, the user needs to pay the payment platform to repay the payment platform with a payment amount equal to 100 yuan, and the payment platform will transfer the 100 yuan fund provided by the financial institution to the merchant. This payment process can be referred to as a payment transaction in the payment phase, and the payment transactions corresponding to the ten payment phases in the payment business constitute a phased payment transaction in the payment business.
实际应用中,在所述待处理业务为交易业务的情况下,所述交易业务将采用分阶段交易方式进行执行分阶段交易事务;在所述待处理业务为数据流处理业务的情况系,所述数据量处理业务将采用分阶段处理方式进行执行分阶段数据流处理事务;在所述待处理业务为支付业务的情况下,所述支付业务采用分阶段支付方式进行执行分阶段支付事务。In actual applications, when the pending business is a transactional business, the transactional business will use a staged transaction method to execute a staged transactional transaction; when the pending business is a data stream processing business, The data volume processing service will adopt a phased processing method to execute a phased data flow processing transaction; in the case that the to-be-processed service is a payment service, the payment service adopts a phased payment method to execute a phased payment transaction.
具体的,在上述获取所述待处理业务的所述元数据的基础上,进一步的,此时可以根据所述元数据创建所述待处理业务的分段数据事务,其中,所述分段数据事务具体是指针对待处理任务按照各个执行段划分后待处理的事务,并且所述分段数据事务中记录有各个执行段的数据执行信息和数据链路。Specifically, on the basis of obtaining the metadata of the service to be processed, further, at this time, a segment data transaction of the service to be processed may be created according to the metadata, wherein the segment data The transaction specifically refers to the transaction to be processed after the task to be processed is divided according to each execution segment, and the data execution information and data link of each execution segment are recorded in the segmented data transaction.
例如,在数据流处理业务中,根据数据流处理业务的调用任务创建分阶段数据流处理事务,即针对调用任务可以分阶段调用数据流完成该调用任务,相应的,分阶段数据流处理事务中记录有各个数据处理阶段的数据流调用信息和数据流调用链路。For example, in the data flow processing business, a phased data flow processing transaction is created according to the calling task of the data flow processing business, that is, the data flow can be called in stages to complete the calling task for the calling task. Correspondingly, in the phased data flow processing transaction The data flow calling information and data flow calling links of each data processing stage are recorded.
进一步的,在确定所述分段数据事务的基础上,为了能够实现向数据流出对象提供更好的执行处理策略,将根据所述数据流出对象的历史数据日志确定执行段的推荐数目,还可以根据数据流出对象的执行指令进行确定,本实施例的一个或多个实施方式中,具体确定所述执行段的数目的具体实现方式如下所述:根据所述分段数据事务的数据流出对象的历史数据日志,确定向所述数据流出对象推送的执行段的推荐数目,并根据所述数据流出对象针对所述推荐数目提交的执行指令确定所述分段数据事务的执行段的数目。Further, on the basis of determining the segmented data transaction, in order to be able to provide a better execution processing strategy to the data outflow object, the recommended number of execution segments will be determined according to the historical data log of the data outflow object. The determination is made according to the execution instruction of the data outflow object. In one or more implementations of this embodiment, the specific implementation for determining the number of execution segments is as follows: according to the data outflow object of the segmented data transaction The historical data log determines the recommended number of execution segments pushed to the data outflow object, and determines the number of execution segments of the segmented data transaction according to the execution instructions submitted by the data outflow object for the recommended number.
实际应用中,在数据流处理业务中,此时将根据分阶段数据流处理事务的数据流出对象的历史数据日志,确定向数据流出对象推送的数据处理阶段的推荐数目,即为向数据流出对象推荐针对分阶段数据流处理事务划分为M个数据处理阶段进行后续的执行处理过程,并将推荐数目推送至数据流出对象;基于此,数据流出对象可以根据选择而接受推荐数目,按照推荐数目将分阶段数据流处理事务划分为M个数据处理阶段,也可以根据执行需求针对分阶段数据流处理事务提交执行指令,将分阶段数据流处理事务划分为N个数据处理阶段,在基于划分的数据处理阶段在后续对数据处理阶段对应的目标数据事务进行执行处理即可。In actual applications, in the data stream processing business, at this time, according to the historical data log of the data outflow object of the staged data stream processing transaction, the recommended number of data processing stages pushed to the data outflow object is determined, which is the data outflow object It is recommended that the phased data flow processing transaction is divided into M data processing stages for subsequent execution and processing, and the recommended number is pushed to the data outflow object; based on this, the data outflow object can accept the recommended number according to the selection, and the recommended number will be The phased data flow processing transaction is divided into M data processing phases, and the execution instructions can also be submitted for the phased data flow processing transaction according to the execution requirements, and the phased data flow processing transaction is divided into N data processing phases. Based on the divided data In the processing stage, the target data transaction corresponding to the data processing stage can be executed subsequently.
除此之外,也可以根据数据流入对象的数据记录确定所述分段数据事务的执行段的时长和/或数目,本实施例的一个或多个实施方式中,根据数据流入对象确定分段数据事务的执行段的过程如下所述:根据所述数据流入对象的数据记录,预测所述数据流入对象的数据流入时间区间,按照所述时间区间确定所述分段数据事务的执行段的时长和/或数目。In addition, the duration and/or number of the execution stages of the segmented data transaction can also be determined according to the data record of the data inflow object. In one or more implementations of this embodiment, the segment is determined according to the data inflow object. The process of the execution segment of the data transaction is as follows: predict the data inflow time interval of the data inflow object based on the data record of the data inflow object, and determine the duration of the execution segment of the segmented data transaction according to the time interval And/or number.
实际应用中,在数据流处理业务中,在确定分阶段数据流处理事务的数据处理阶段的时长和/或数目的过程中,可以结合数据流入对象的数据记录,预测数据流入对象的数据流处理时间区间,再按照时间区间确定分阶段数据流处理事务的数据处理阶段的 时长和/或数目即可,其中,数据处理阶段的时长具体是指每个时间周期处理数据流的时间长度,数据处理阶段的数目具体是指分阶段数据处理事务中包含的数据流处理阶段的数目。In practical applications, in the data flow processing business, in the process of determining the duration and/or number of the data processing phases of the phased data flow processing transaction, the data records of the data flow object can be combined to predict the data flow processing of the data flow object Time interval, and then determine the duration and/or number of the data processing stages of the staged data stream processing transaction according to the time interval. The duration of the data processing stage specifically refers to the length of time for processing the data stream in each time period. Data processing The number of stages specifically refers to the number of data stream processing stages included in a staged data processing transaction.
可见,在根据元数据创建分段数据事务的过程中,可以根据数据流出对象的执行指令确定分段数据事务的执行段数目,也可以根据数据流入对象的数据流入时间区间确定执行段的时长和/或数目,实现了可以结合数据流出对象和数据流入对象执行处理状况进行确定执行段数目,提高了数据流出对象和数据流入对象针对待处理业务的个性化处理。It can be seen that in the process of creating segmented data transactions based on metadata, the number of execution segments of segmented data transactions can be determined according to the execution instructions of the data outflow object, and the duration and duration of the execution segments can also be determined according to the data inflow time interval of the data inflow object. / Or the number, it is possible to determine the number of execution stages in combination with the execution processing status of the data outflow object and the data inflow object, which improves the personalized processing of the data outflow object and the data inflow object for the business to be processed.
步骤S106,基于针对所述分段数据事务的至少一个执行段提交的执行方式,对所述分段数据事务进行解析,获得与所述执行方式对应的目标数据事务。Step S106: Analyze the segmented data transaction based on the execution mode submitted for at least one execution segment of the segmented data transaction to obtain a target data transaction corresponding to the execution mode.
具体的,所述执行方式具体是指针对所述至少一个执行段进行处理的过程中所提交的处理方式,将基于针对所述至少一个执行段提交的执行方式对所述分段数据事务进行解析,获得的所述目标数据事务具体是指与所述至少一个执行段相对应的事务。Specifically, the execution mode specifically refers to the processing mode submitted in the process of processing the at least one execution segment, and the segmented data transaction will be analyzed based on the execution mode submitted for the at least one execution segment , The obtained target data transaction specifically refers to a transaction corresponding to the at least one execution segment.
例如,在数据流处理业务中,确定调用任务的分段调用事务记录有三个数据处理阶段,分别为初始数据处理阶段、中间数据处理阶段和末端数据处理阶段,在确定针对中间数据处理阶段的执行方式是由中间数据对象提供的数据流针对中间数据处理阶段执行的情况下,此时基于该执行方式对分段调用事务进行解析,获得与该执行方式对应的目标数据事务,即为需要中间数据对象提供的数据流完成中间数据处理阶段对应的子调用任务。For example, in the data flow processing business, there are three data processing stages in the segmented invocation transaction record that determines the invocation task, namely the initial data processing stage, the intermediate data processing stage and the end data processing stage. When determining the execution of the intermediate data processing stage The method is that the data stream provided by the intermediate data object is executed for the intermediate data processing stage. At this time, the segmented call transaction is analyzed based on the execution method, and the target data transaction corresponding to the execution method is obtained, that is, the intermediate data is required. The data stream provided by the object completes the sub-call tasks corresponding to the intermediate data processing stage.
实际应用中,在确定所述分段数据事务的基础上,由于所述分段数据事务将由多个执行段的数据事务组成,故在所述分段数据事务为分阶段交易事务的情况下,对应的执行段包括分阶段交易过程中的各个交易阶段;在所述分段数据事务为分阶段数据流处理事务的情况下,对应的执行段包括分阶段处理过程中的各个数据处理阶段;在所述分段数据事务为分阶段支付事务的情况下,对应的执行段包括分阶段支付过程中的各个支付阶段。In practical applications, on the basis of determining the segmented data transaction, since the segmented data transaction will be composed of data transactions of multiple execution segments, when the segmented data transaction is a phased transaction transaction, The corresponding execution stage includes each transaction stage in the staged transaction process; in the case that the segmented data transaction is a staged data flow processing transaction, the corresponding execution stage includes each data processing stage in the staged processing process; In the case that the segmented data transaction is a phased payment transaction, the corresponding execution segment includes each payment phase in the phased payment process.
进一步的,在确定所述分段执行方式对应的目标数据事务的过程中,为了避免错失最佳的执行处理时间,可以通过自动触发的方式确定目标数据事务,再进行后续的执行处理过程,本实施例的一个或多个实施方式中,具体实现方式如下所述:在所述分段数据事务的执行段的执行条件被触发的情况下,按照所述执行段的执行条件被触发对 应的分段执行方式,对所述分段数据事务进行分解,获得与所述分段执行方式对应的目标数据事务。Further, in the process of determining the target data transaction corresponding to the segmented execution mode, in order to avoid missing the best execution processing time, the target data transaction can be determined by an automatic trigger method, and then the subsequent execution processing process is performed. In one or more implementation manners of the embodiment, the specific implementation is as follows: in the case where the execution condition of the execution segment of the segment data transaction is triggered, the corresponding segment is triggered according to the execution condition of the execution segment. The segment execution mode decomposes the segmented data transaction to obtain the target data transaction corresponding to the segmented execution mode.
具体的,按照所述执行段对应的分段执行方式对所述分段数据事务进行分解,根据分解结果确定所述分段执行方式对应的目标数据事务;其中,与所述分段执行方式对应的目标数据事务中,记录有所述至少一个执行段的目标数据执行信息和目标数据链路,所述目标数据执行信息基于所述至少一个执行段的数据执行信息确定,所述目标数据链路基于所述至少一个执行段的数据链路确定,所述目标数据执行信息以及所述目标数据链路以用于后续对所述目标数据事务进行执行处理过程。Specifically, the segmented data transaction is decomposed according to the segmented execution mode corresponding to the execution segment, and the target data transaction corresponding to the segmented execution mode is determined according to the decomposition result; wherein, it corresponds to the segmented execution mode In the target data transaction, the target data execution information of the at least one execution segment and the target data link are recorded, the target data execution information is determined based on the data execution information of the at least one execution segment, and the target data link Based on the data link determination of the at least one execution segment, the target data execution information and the target data link are used for subsequent execution processing of the target data transaction.
实际应用中,而在确定所述分段执行方式对应的所述目标数据事务的过程中,可以判断所述分段数据事务的执行段的执行条件是否被触发,在所述执行条件未被触发的情况下,表明当前时间节点还未到达针对所述分段数据事务进行执行处理的时间节点,则不作任何处理即可;在所述执行条件被触发的情况下,表明当前时间节点到达了针对所述分段数据事务进行执行处理的时间节点,则需要确定所述分段数据事务中需要进行执行处理的执行段对应的目标数据事务;In practical applications, in the process of determining the target data transaction corresponding to the segmented execution mode, it can be determined whether the execution condition of the execution segment of the segmented data transaction is triggered, and the execution condition is not triggered. In the case that the current time node has not reached the time node for executing the processing for the segmented data transaction, no processing is required; when the execution condition is triggered, it indicates that the current time node has reached the time node for the execution of the segmented data transaction. For the time node at which the segmented data transaction is executed, it is necessary to determine the target data transaction corresponding to the execution segment that needs to be executed in the segmented data transaction;
基于此,首先确定被触发执行条件的所述执行段对应的分段执行方式,再按照所述分段执行方式对所述分段数据事务进行分解,最后获得所述分段执行方式对应的所述目标数据事务。Based on this, first determine the segmented execution mode corresponding to the execution segment of the triggered execution condition, then decompose the segmented data transaction according to the segmented execution mode, and finally obtain all the corresponding segmented execution modes. Describe the target data transaction.
例如,在数据流处理业务中,在确定数据流出对象针对调用任务向中间数据对象处理数据流M的过程中,基于数据流M创建的分阶段数据流处理事务为三个数据处理阶段中每个数据处理阶段按照M/3针对数据流进行处理,分阶段数据流处理事务中记录的三个数据处理阶段的数据执行信息即为每隔设定时间按照M/3进行数据流的处理;For example, in the data flow processing business, in the process of determining that the data outflow object processes the data flow M to the intermediate data object for the calling task, the staged data flow processing transaction created based on the data flow M is each of the three data processing stages The data processing stage processes the data flow in accordance with M/3, and the data execution information of the three data processing stages recorded in the data flow processing transaction in stages is the data flow processing in accordance with M/3 every set time;
而为了避免数据流出对象在设定时间忘记针对数据流M/3进行处理,可以通过自动从数据库中扣除数据流M/3的方式实现自动处理数据流,即在设定时间检测数据流出对象是否针对数据流M/3进行处理,若否,此时将确定分阶段数据流处理事务的数据处理阶段的执行条件被触发,即可确定本数据处理阶段需要扣除数据流M/3,进行后续的数据流处理操作,而在此过程中,需要根据分阶段处理方式对分阶段数据流处理事务进行分析,确定分阶段处理方式对应的目标数据流处理事务。In order to prevent the data outflow object from forgetting to process the data stream M/3 at the set time, the data stream can be automatically processed by automatically deducting the data stream M/3 from the database, that is, whether the data outflow object is detected at the set time The data flow M/3 is processed. If not, it will be determined that the execution condition of the data processing stage of the data flow processing transaction in stages is triggered. It can be determined that the data flow M/3 needs to be deducted for the subsequent data processing stage. Data flow processing operations, and in this process, it is necessary to analyze the phased data flow processing transaction according to the phased processing method, and determine the target data flow processing transaction corresponding to the phased processing method.
可见,通过检测所述分段数据事务的执行段的执行条件是否被触发,实现了在出现针对目标数据事务未被执行处理的情况下,可以自动的按照执行条件触发的对应的 分段执行方式对所述分段数据事务进行分解,以确定所述目标数据事务,能够在后续及时的对所述目标数据事务进行执行处理,有效的提高了对所述目标数据事务执行的效率。It can be seen that by detecting whether the execution condition of the execution section of the segmented data transaction is triggered, the corresponding segmented execution mode that can be automatically triggered according to the execution condition in the case that the target data transaction has not been processed is realized The segmented data transaction is decomposed to determine the target data transaction, and the target data transaction can be executed and processed in a timely manner, which effectively improves the efficiency of executing the target data transaction.
除此之外,为了方便数据流出对象能够随时对分段数据事务进行监控,以及方便数据流出对象可以主动针对所述目标数据事务进行后续的执行处理,可以在接收到所述数据流出对象的分段执行请求后,再确定所述目标数据事务,本实施例的一个或多个实施方式中,根据分段执行请求确定所述目标数据事务的具体实现方式如下所述:接收所述分段数据事务的数据流出对象针对所述至少一个执行段提交的分段执行请求;基于所述分段执行请求中携带的分段执行方式,对所述分段数据事务进行分解,获得与所述分段执行方式对应的目标数据事务。In addition, in order to facilitate the data outflow object to be able to monitor segmented data transactions at any time, and to facilitate the data outflow object to actively perform subsequent execution processing for the target data transaction, it can be used after receiving the data outflow object's segmentation. After the segment execution request, the target data transaction is determined. In one or more implementations of this embodiment, the specific implementation method for determining the target data transaction according to the segment execution request is as follows: Receive the segment data The data outflow object of the transaction is for the segmented execution request submitted by the at least one execution segment; based on the segmented execution mode carried in the segmented execution request, the segmented data transaction is decomposed to obtain the same The target data transaction corresponding to the execution mode.
其中,所述与所述分段执行方式对应的目标数据事务中,记录有所述至少一个执行段的目标数据执行信息和目标数据链路,所述目标数据执行信息基于所述至少一个执行段的数据执行信息确定,所述目标数据链路基于所述至少一个执行段的数据链路确定,所述目标数据执行信息以及所述目标数据链路以用于后续对所述目标数据事务进行执行处理过程。Wherein, in the target data transaction corresponding to the segmented execution mode, target data execution information and target data link of the at least one execution segment are recorded, and the target data execution information is based on the at least one execution segment The target data link is determined based on the data link of the at least one execution segment, and the target data execution information and the target data link are used for subsequent execution of the target data transaction Processing process.
实际应用中,在接收到所述数据流出对象针对至少一个执行段提交的分段执行请求的情况下,说明此时所述数据流出对象主动对所述至少一个执行段对应的目标数据事务进行后续的执行处理,并且所述数据流出对象可以针对一个执行段对应的目标数据事务进行后续的执行处理,也可以同时针对多个执行段对应的目标数据事务进行后续的执行处理;基于此,在接收到所述分段执行请求的情况下,再基于所述分段执行请求中携带的分段执行方式,对所述分段数据事务进行分解,根据分解结果即可确定所述分段执行方式对应的目标数据事务。In actual applications, in the case of receiving the segmented execution request submitted by the data outflow object for at least one execution segment, it is explained that the data outflow object actively follows up the target data transaction corresponding to the at least one execution segment at this time The data outflow object can perform subsequent execution processing for the target data transaction corresponding to one execution segment, or perform subsequent execution processing for the target data transaction corresponding to multiple execution segments at the same time; based on this, in the receiving In the case of the segmented execution request, the segmented data transaction is decomposed based on the segmented execution mode carried in the segmented execution request, and the corresponding segmented execution mode can be determined according to the decomposition result. The target data transaction.
可见,在接收到所述分段执行请求的情况下,说明此时数据流出对象存在主动针对所述目标数据事务进行后续的执行处理的意图,则可以基于所述分段执行请求中携带的分段执行方式对所述分段数据事务进行分解以获得所述目标数据事务,提高了所述数据流出对象的随意性,可以随时针对所述目标数据事务提出后续的执行处理,并且在数据流出对象的数据充足的情况下,可以提前对所述分段数据事务中未被执行处理的目标数据事务进行执行处理,以方便数据流出对象可以提前针对待处理业务执行处理完成。It can be seen that in the case of receiving the segmented execution request, it indicates that the data outflow object has the intention of actively performing subsequent execution processing for the target data transaction, and it can be based on the segmentation carried in the segmented execution request. The segment execution method decomposes the segmented data transaction to obtain the target data transaction, which improves the arbitrariness of the data outflow object, and can propose subsequent execution processing for the target data transaction at any time, and in the data outflow object In the case where the data is sufficient, the target data transaction that has not been processed in the segmented data transaction can be executed in advance, so that the data outflow object can perform the processing for the pending business in advance.
步骤S108,根据所述目标数据事务中记录的所述至少一个执行段的目标数据执行信息和目标数据链路,对所述目标数据事务进行执行处理。Step S108: Perform execution processing on the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction.
具体的,在上述基于执行方式对所述分段数据事务进行解析获得所述目标数据事务的基础上,进一步的,将根据所述目标数据事务确定所述至少一个执行段的目标数据执行信息和目标数据链路,再基于所述目标数据执行信息和所述目标数据链路针对所述目标数据事务进行执行处理即可。Specifically, based on the above-mentioned analysis of the segmented data transaction based on the execution mode to obtain the target data transaction, further, the target data execution information of the at least one execution segment and the target data transaction will be determined according to the target data transaction. For the target data link, it is only necessary to perform execution processing for the target data transaction based on the target data execution information and the target data link.
沿用上例,在确定数据流处理业务中的目标数据事务的情况下,此时确定针对中间数据处理阶段的执行信息是调用数据流M完成子调用任务,并且针对中间数据处理阶段的数据链路是由数据量提供方提供完成子调用任务的数量,则基于中间数据处理阶段的执行信息和数据链路对中间数据处理阶段对应的目标数据事务进行执行处理即可,即为通过调用由数据量提供方提供的数据流M完成子调用任务。Following the above example, in the case of determining the target data transaction in the data flow processing business, it is determined that the execution information for the intermediate data processing stage is to call the data flow M to complete the sub-calling task, and for the data link of the intermediate data processing stage The data volume provider provides the number of completed sub-call tasks, and then based on the execution information and data link of the intermediate data processing stage, the target data transaction corresponding to the intermediate data processing stage can be executed. The data stream M provided by the provider completes the sub-calling task.
进一步的,在对所述目标数据事务进行执行处理的过程中,为了避免出现目标数据事务的执行处理过程一次消耗过多的数据资源,此时可以通过增加执行处理周期,在每个执行段只针对对应的目标数据事务进行执行处理,从而实现针对目标数据事务执行处理的高效性,本实施例的一个或多个实施方式中,具体实现方式如下所述:读取所述目标数据执行信息中包含的所述至少一个执行段对应的数据流动数值;按照所述目标数据链路,对所述数据流出对象的数据账户空间的数据额度扣减所述数据流动数值对应的扣减额度,以及,从所述数据流出对象的数据账户空间对应的实际数据账户转出所述数据流动数值对应的数据资源至所述分段数据事务的数据流入对象的数据账户;其中,所述目标数据链路的数据节点至少对应于所述数据流出对象的数据账户空间和所述数据流入对象的数据账户;所述数据账户空间的数据结算周期的时长与所述分段数据事务的执行段的执行处理周期的时长相等,在前一数据结算周期对所述数据账户空间的数据额度扣减所述扣减额度,经后一数据结算周期的数据结算处理后,所述扣减额度对所述数据额度的扣减被更新。Further, in the process of executing the target data transaction, in order to avoid the execution of the target data transaction from consuming too many data resources at one time, at this time, by increasing the execution processing cycle, only in each execution segment Perform execution processing for the corresponding target data transaction, so as to achieve the high efficiency of the execution processing for the target data transaction. In one or more implementation manners of this embodiment, the specific implementation manner is as follows: Read the target data execution information Contains the data flow value corresponding to the at least one execution stage; according to the target data link, deduct the deduction amount corresponding to the data flow value from the data quota of the data account space of the data outflow object, and, The data resource corresponding to the data flow value is transferred from the actual data account corresponding to the data account space of the data outflow object to the data account of the segmented data transaction data inflow object; wherein, the target data link The data node corresponds to at least the data account space of the data outflow object and the data account of the data inflow object; the duration of the data settlement cycle of the data account space is equal to the execution processing cycle of the execution segment of the segmented data transaction If the duration is the same, the data quota of the data account space is deducted from the deduction amount in the previous data settlement cycle. After the data settlement processing in the subsequent data settlement cycle, the deduction amount is deducted from the data quota. The minus is updated.
实际应用中,数据流处理业务中,数据账户空间即为中间数据对象向数据流出对象提供的数据流的存放空间,而数据账户空间中的数据额度为中间数据对象向数据流出对象提供的可用数据流,且该可用数据流需要数据流出对象在设定的时间节点进行处理,相应的,实际数据账户即为向中间数据对象提供的与可用数据流对应的数据流资源的一方的账户。In practical applications, in the data stream processing business, the data account space is the storage space for the data stream provided by the intermediate data object to the data outflow object, and the data quota in the data account space is the available data provided by the intermediate data object to the data outflow object The available data stream needs to be processed by the data outflow object at a set time node. Correspondingly, the actual data account is the account of the data stream resource corresponding to the available data stream provided to the intermediate data object.
在数据流处理业务确定目标数据流处理事务的情况下,此时需要针对目标数据流处理事务进行执行处理,确定数据流为M/3,此时将在数据流出对象的数据流存储空间中扣除与数据流M/3相等的可用数据流,而提供可用数据流的一方的账户中将转出与 数据流M/3相等的数据流资源至数据流入对象,可以确定数据流出对象和数据流入对象之间的数据流处理过程结果,后续将在数据流出对象存储数据流资源的账户中转出与数据流M/3相等的数据流资源。When the data stream processing business determines the target data stream processing transaction, the target data stream processing transaction needs to be executed at this time, and the data stream is determined to be M/3. At this time, it will be deducted from the data stream storage space of the data outflow object The available data stream equal to the data stream M/3, and the account of the party providing the available data stream will transfer the data stream resources equal to the data stream M/3 to the data inflow object, and the data outflow object and data inflow object can be determined As a result of the data stream processing process between the data stream, the data stream resource equal to the data stream M/3 will be transferred from the account of the data stream resource storage of the data outflow object.
可见,在针对所述目标数据事务进行执行处理的过程中,为了避免占用数据账户空间中过多的数据额度,可以采用执行段的方式针对分段数据事务进行执行处理,从而实现可以使得数据额度按照执行段的数据流动数据进行扣减,实现降低所述数据流出对象针对数据资源进行调用压力的情况下,还可以完成所述待处理业务。It can be seen that in the process of executing the processing for the target data transaction, in order to avoid occupying too much data quota in the data account space, the execution segment can be used to execute processing for the segmented data transaction, so as to achieve the data quota. The deduction is performed according to the data flow data of the execution section, so that the to-be-processed business can also be completed in the case that the data outflow object performs the call pressure for the data resource.
除此之外,在针对所述目标数据事务进行执行处理的过程中,还可以直接通过所述数据流出对象的数据账户中转出与所述数据流动值对应的数据资源至所述数据流入对象的数据账户,避免中间方造成过多的附加数据资源,而影响数据流出对象参与所述待处理业务的体验效果,本实施例的一个或多个实施方式中,直接通过所述数据流出对象的数据账户转入所述数据流入对象的数据账户数据资源的具体实现方式如下所述:读取所述目标数据执行信息中包含的所述至少一个执行段对应的数据流动数值;按照所述目标数据链路,从所述数据流出对象的数据账户转出所述数据流动数值对应的数据资源至所述数据流入对象的数据账户;其中,所述目标数据链路的起始数据节点对应于所述数据流出对象的数据账户,终止数据节点对应于所述数据流入对象的数据账户。In addition, in the process of executing the processing for the target data transaction, the data resource corresponding to the data flow value can also be directly transferred to the data inflow object through the data account of the data outflow object Data account to avoid the intermediary from causing excessive additional data resources and affecting the experience effect of the data outflow object participating in the pending service. In one or more implementations of this embodiment, the data outflow object directly The specific implementation of the data account transfer to the data account data resource of the data inflow object is as follows: read the data flow value corresponding to the at least one execution segment contained in the target data execution information; according to the target data Link, transferring data resources corresponding to the data flow value from the data account of the data outflow object to the data account of the data inflow object; wherein, the start data node of the target data link corresponds to the Data flows out of the data account of the object, and the terminating data node corresponds to the data account of the data inflow object.
可见,通过在针对所述目标数据事务进行执行处理的过程中,为了方便数据资源的流动,以避免中间方收取附加数据的情况发生,所述数据流出对象可以直接将数据资源转至所述数据流入对象,在降低数据流动成本的基础上,更进一步的提高了目标数据事务的执行处理效率。It can be seen that, in order to facilitate the flow of data resources during the process of performing processing for the target data transaction, and to prevent the intermediate party from receiving additional data, the data outflow object can directly transfer the data resource to the data. Inflow objects, on the basis of reducing the cost of data flow, further improve the execution and processing efficiency of the target data transaction.
更进一步的,在确定所述目标数据事务被执行处理完成的情况下,数据资源流动的过程中将会针对待处理业务出现一定的损耗,而为了能够针对损耗部分的数据资源进行填充,可以根据数据流动数据计算出第一执行附加数据值,本实施例的一个或多个实施方式中,具体实现方式如下所述:根据所述数据流动数值以及所述至少一个执行段对应的第一执行附加数据占比,计算所述至少一个执行段对应的第一执行附加数据值;对所述数据流入对象进行所述第一执行附加数据值的数据结算处理;其中,所述第一执行附加数据占比,包括对所述分段数据事务在所述至少一个执行段进行执行处理产生的处理费率,依据所述第一执行附加数据占比计算获得的所述第一执行附加数据值由所述数据流入对象承担。Furthermore, in the case where it is determined that the target data transaction is executed and processed, a certain loss will occur in the process of data resource flow for the service to be processed, and in order to be able to fill the lost part of the data resource, it can be based on The data flow data calculates the first execution additional data value. In one or more implementations of this embodiment, the specific implementation is as follows: according to the data flow value and the first execution additional data corresponding to the at least one execution segment Data accounting, calculating the first execution additional data value corresponding to the at least one execution segment; performing the data settlement processing of the first execution additional data value on the data inflow object; wherein, the first execution additional data accounting The ratio includes the processing fee rate generated by the execution processing of the segmented data transaction in the at least one execution segment, and the first execution additional data value obtained by calculating the proportion of the first execution additional data is determined by the The data flows into the subject.
实际应用中,所述数据流动数值与所述第一执行附数据占比成正比,例如在数 据流处理业务中,数据流出对象向数据流入对象处理数据流M/3的过程中,实际数据账户所属的中间数据对象将针对数据流M/3收取一定的附加数据流,该附加数据流可以根据每个数据处理阶段的附加数据流占比2%进行计算,即数据流入对象需要向中间数据对象提供的附加数据流是M/3*2%=M/150,在基于附加数据流针对数据流入对象进行清算处理即可。In actual applications, the data flow value is proportional to the proportion of the first execution attached data. For example, in a data flow processing business, the data flow from the object to the data flow in the process of the object processing data flow M/3, the actual data account The intermediate data object to which it belongs will receive a certain additional data stream for the data stream M/3. The additional data stream can be calculated based on the 2% of the additional data stream in each data processing stage, that is, the data flowing into the object needs to be sent to the intermediate data object. The additional data stream provided is M/3*2%=M/150, and it is sufficient to perform liquidation processing for the data inflow object based on the additional data stream.
可见,在确定所述第一执行附加数据值的基础上,将针对所述数据流入对象进行数据计算处理,实现了可以由所述数据流入对象承担该部分附加数据值,使得数据流出对象在不承担所述第一执行附加数据值的情况下,依旧可以针对目标数据事务进行执行处理,很大程度上提高了数据流出对象的体验效果。It can be seen that on the basis of determining the first execution additional data value, data calculation processing will be performed on the data inflow object, which realizes that the data inflow object can bear the part of the additional data value, so that the data outflow object is not In the case of assuming the first execution additional data value, execution processing can still be performed for the target data transaction, which greatly improves the experience effect of the data outflow object.
此外,在对所述目标数据事务执行处理之后,可能存在数据流入对象主动针对剩余的执行段对应的数据事务进行执行处理,即数据流入对象需要将数据流出对象还未调用的数据进行处理,此时,数据流入对象可以提交第二执行请求,根据第二执行请求对剩余的执行段对应的数据事务进行执行处理,实现了数据流入对象可以在分段数据事务的执行段被执行部分的过程中,直接将剩余的执行段对应的数据事务进行执行完成,本实施例的一个或多个实施方式中,具体实现方式如下所述:接收所述分段数据事务的数据流入对象针对剩余执行段提交的第二预执行请求;基于所述第二预执行请求中携带的第二预执行方式,对所述剩余执行段对应的数据执行信息和数据链路进行组装,获得与所述第二预执行方式对应的第二中间数据事务;所述第二中间数据事务中记录有所述第二预执行请求对应的第二总数据流动数值;通过从所述分段数据事务的中间数据对象的数据账户申请所述第二总数据流动数值对应的数据资源至所述数据流入对象的数据账户的方式,对所述第二中间数据事务进行执行处理;根据所述分段数据事务的数据流出对象和所述中间数据对象二者数据账户的账户路径,确定从所述数据流出对象至所述中间数据对象的第二分段数据链路;根据所述第二分段数据链路和所述剩余执行段的数据执行信息,组建所述剩余执行段对应的第二分段数据事务;其中,所述第二中间数据事务中记录有第二中间数据链路,所述第二中间数据链路的起始数据节点对应于所述中间数据对象的数据账户,终止数据节点对应于所述数据流入对象的数据账户。In addition, after processing the target data transaction, there may be data inflow objects that actively perform processing on the data transactions corresponding to the remaining execution segments, that is, the data inflow object needs to process the data that has not yet been called by the data outflow object. When the data inflow object can submit a second execution request, the data transaction corresponding to the remaining execution segment is executed according to the second execution request, so that the data inflow object can be executed in the execution segment of the segmented data transaction. , The data transaction corresponding to the remaining execution segment is directly executed and completed. In one or more implementation manners of this embodiment, the specific implementation is as follows: the data inflow object of the segmented data transaction is received and submitted for the remaining execution segment The second pre-execution request; based on the second pre-execution mode carried in the second pre-execution request, the data execution information and the data link corresponding to the remaining execution segments are assembled to obtain the second pre-execution The second intermediate data transaction corresponding to the mode; the second total data flow value corresponding to the second pre-execution request is recorded in the second intermediate data transaction; through the data account of the intermediate data object from the segmented data transaction The method of applying for the data resource corresponding to the second total data flow value to the data account of the data inflow object is to perform processing on the second intermediate data transaction; according to the data outflow object and the data outflow object of the segmented data transaction The account path of the two data accounts of the intermediate data object determines the second segment data link from the data outflow object to the intermediate data object; according to the second segment data link and the remaining execution segment The data execution information of the second segment data transaction corresponding to the remaining execution segment is formed; wherein, the second intermediate data link is recorded in the second intermediate data transaction, and the start of the second intermediate data link The data node corresponds to the data account of the intermediate data object, and the termination data node corresponds to the data account of the data inflow object.
实际应用中,在接收到数据流入对象提交第二预执行请求的情况下,需要针对剩余的执行段对应的数据事务进行执行处理,而在此过程中,需要确定第二分段数据事务,第二分段数据事务即为剩余执行段对应的数据事务的总数据事务;基于此,首先根据所述第二预执行请求中携带的第二预执行方式对剩余执行段对应的全部数据执行信 息和全部数据链路进行组装,获得第二预执行方式对应的第二中间数据事务,所述第二中间数据事务中记录有与所述第二预执行请求对应的第二总数据流动数值;再通过所述分段数据事务的中间数据对象的数据账户申请所述第二总数据流动数据对应的数据资源至所述数据流入对象的数据账户的方式,对所述第二中间数据事务进行执行处理,最后根据所述数据流出对象和所述中间数据对象二者数据账户的账户路径,确定从所述数据流出对象至所述中间数据对象的第二分段数据链路;根据所述第二分段数据链路和所述剩余执行段的数据执行信息,组建所述剩余执行段对应的第二分段数据事务。In actual applications, when the second pre-execution request is submitted by the data inflow object, the data transaction corresponding to the remaining execution segment needs to be executed. In this process, the second segment data transaction needs to be determined. The two-segment data transaction is the total data transaction of the data transaction corresponding to the remaining execution segment; based on this, first, according to the second pre-execution mode carried in the second pre-execution request, all the data execution information corresponding to the remaining execution segment and All the data links are assembled to obtain the second intermediate data transaction corresponding to the second pre-execution mode, and the second total data flow value corresponding to the second pre-execution request is recorded in the second intermediate data transaction; and then through The data account of the intermediate data object of the segmented data transaction applies for the data resource corresponding to the second total data flow data to the data account of the data inflow object to perform execution processing on the second intermediate data transaction, Finally, according to the account path of the data accounts of both the data outflow object and the intermediate data object, the second segment data link from the data outflow object to the intermediate data object is determined; according to the second segment The data link and the data execution information of the remaining execution segment form a second segment data transaction corresponding to the remaining execution segment.
例如,在数据流处理业务中,在数据流入对象需要提前将剩余未被调用处理的数据流进行调用的情况下,此时将根据数据流入对象提交的第二预执行请求中携带的第二预执行方式,对剩余的数据流处理阶段对应的数据流执行信息和数据流执行链路进行组建,获得第二中间数据事务,第二中间数据事务即为中间数据对象向数据流入对象提供与未被调用的数据流数值相等的数据资源,此时将通过中间数据对象的数据流账户中申请与未被调用处理的数据流相等的数据资源至数据流入对象的数据流账户,实现对第二中间数据事务的数据流执行处理。For example, in the data stream processing business, when the data inflow object needs to call the remaining data stream that has not been processed in advance, the second pre-execution request carried in the second pre-execution request submitted by the data inflow object will be used at this time. The execution mode is to construct the data flow execution information and the data flow execution link corresponding to the remaining data flow processing stage to obtain the second intermediate data transaction. The second intermediate data transaction is the intermediate data object provided and not provided to the data inflow object. The data resource with the same value of the called data stream will be applied to the data stream account of the data inflow object through the data stream account of the intermediate data object. The data flow of the transaction performs processing.
进一步的,在所述第二中间数据事务被执行处理完成之后,此时数据流出对象还需要向中间数据对象提供数据资源,将建立中间数据对象与数据流出对象的第二分段数据事务,通过从数据流出对象的数据账户空间中数据额度扣减的方式,从实际数据账户中转出与该部分数据额度对应的数据资源至中间数据对象的数据账户,本实施例的一个或多个实施方式中,具体实现方式如下所述:在所述第二分段数据事务的剩余执行段中至少一者的执行条件被触发的情况下,读取所述第二分段数据事务中被触发的剩余执行段对应的第二分段数据流动数值;按照所述第二分段数据链路,对所述数据流出对象的数据账户空间的数据额度扣减所述第二分段数据流动数值对应的扣减额度,以及,从所述数据流出对象的数据账户空间对应的实际数据账户转出所述第二分段数据流动数值对应的数据资源至所述中间数据对象的数据账户;其中,所述数据账户空间的数据结算周期的时长与所述第二分段数据事务的剩余执行段的执行处理周期的时长相等,在前一数据结算周期对所述数据账户空间的数据额度扣减所述扣减额度,经后一数据结算周期的数据结算处理后,所述扣减额度对所述数据额度的扣减被更新。Further, after the execution and processing of the second intermediate data transaction is completed, the data outflow object needs to provide data resources to the intermediate data object at this time, and a second segmented data transaction of the intermediate data object and the data outflow object will be established. The method of deducting the data quota from the data account space of the data outflow object, transferring the data resources corresponding to the part of the data quota from the actual data account to the data account of the intermediate data object, one or more implementations of this embodiment , The specific implementation is as follows: in the case where the execution condition of at least one of the remaining execution segments of the second segmented data transaction is triggered, read the triggered remaining segment of the second segmented data transaction The second segment data flow value corresponding to the execution segment; according to the second segment data link, the data limit of the data account space of the data outflow object is deducted by the deduction corresponding to the second segment data flow value Deduction, and transferring the data resource corresponding to the second segmented data flow value from the actual data account corresponding to the data account space of the data outflow object to the data account of the intermediate data object; wherein, the data The duration of the data settlement cycle of the account space is equal to the duration of the execution processing cycle of the remaining execution segment of the second segmented data transaction, and the data quota of the data account space is deducted from the deduction in the previous data settlement cycle Quota, after the data settlement processing in the next data settlement cycle, the deduction of the deduction quota to the data quota is updated.
沿用上例,在中间数据对象向数据流入对象提供数据流的基础上,此时还需要数据流出对象向中间数据对象针对数据流入对象提供的数据流进行调用,首先需要建立数据流出对象与中间数据对象二者之间针对剩余数据流处理阶段的第二分段数据事务, 再对第二分段数据事务进行数据流调用处理,实现可以从数据流出对象的数据账户空间的数据流数值扣减总调用数据流数值,同时从数据流出对象的数据账户空间的实际数据账户转出与总调用数据流数值相等的数据资源至中间数据对象的数据账户空间。Following the above example, on the basis that the intermediate data object provides the data stream to the data inflow object, at this time, the data outflow object also needs to call the data stream provided by the intermediate data object for the data inflow object. First, the data outflow object and the intermediate data need to be established. For the second segment data transaction in the remaining data stream processing stage between the two objects, data stream call processing is performed on the second segment data transaction to realize the data stream value deduction from the data account space of the data out of the object. The value of the data stream is called, and at the same time, the data resource equal to the value of the total called data stream is transferred from the actual data account of the data account space of the data outflow object to the data account space of the intermediate data object.
可见,在接收到数据流入对象主动针对剩余的执行段对应的数据事务进行执行处理的执行请求的情况下,可以根据数据流入对象的执行请求提前对未被执行处理的执行段对应的数据事务进行执行处理,实现了提高所述数据流入对象的执行处理的效率。It can be seen that in the case of receiving an execution request for the data inflow object to actively perform processing for the data transaction corresponding to the remaining execution segment, the data transaction corresponding to the execution segment that has not been processed can be performed in advance according to the execution request of the data inflow object. The execution processing realizes the improvement of the efficiency of the execution processing of the data flow object.
本说明书提供的数据处理方法,通过获取所述待处理业务的元数据,并根据所述元数据创建所述待处理业务的分段数据事务,再基于所述分段数据事务的至少一个执行段提交的执行方式,对所述分段数据事务进行解析,根据解析结果获得的目标数据事务中记录的所述至少一个执行段的目标数据执行信息和目标数据链路对所述目标数据事务进行执行处理,根据提交的执行方式对相应的执行段进行更加灵活的处理,同时,以数据事务的方式对待处理业务进行执行处理,提升了业务数据处理的处理效率和处理一致性。The data processing method provided in this specification obtains metadata of the service to be processed, and creates a segmented data transaction of the service to be processed based on the metadata, and then based on at least one execution segment of the segmented data transaction The submitted execution mode is to analyze the segmented data transaction, and execute the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction obtained by the analysis result Processing, the corresponding execution segment is processed more flexibly according to the submitted execution mode, and at the same time, the pending business is executed in the form of data transaction, which improves the processing efficiency and processing consistency of business data processing.
参照附图2,其示出了本说明书实施例提供的一种应用于交易业务中的数据处理方法的处理流程图,具体包括以下步骤S202至S214。Referring to FIG. 2, it shows a processing flowchart of a data processing method applied to a transaction service provided by an embodiment of this specification, which specifically includes the following steps S202 to S214.
步骤S202,获取待处理业务的元数据。Step S202: Obtain metadata of the service to be processed.
本实施例将以所述待处理业务为交易业务对所述数据处理方法进行描述,其中,所述元数据是指针对交易业务所需要交易的总交易数额;在交易业务场景中,交易方和被交易方在针对交易物品进行交易的过程中,需要交易方针对交易物品提供交易数额的情况下才能够获得该交易物品的所有权,而往往交易物品所涉及的交易数额是较大的数目,此时交易方很容易出现无法一次性提供全量交易数额的情况发生,为了避免该情况发生而导致交易方失去最佳的交易时间,可以为交易方提供一定的交易数额以便于交易方可以针对交易物品进行正常交易,并且向交易方提供的交易数额可以按照分阶段清偿的方式进行清偿。In this embodiment, the data processing method will be described with the business to be processed as a transaction business, where the metadata refers to the total transaction amount required for the transaction business; in the transaction business scenario, the transaction party and In the process of the transaction for the transaction item, the transaction party needs to provide the transaction amount for the transaction item to obtain the ownership of the transaction item, and often the transaction amount involved in the transaction item is a relatively large number. When the transaction party cannot provide the full transaction amount at one time, it is easy to happen. In order to avoid this situation and cause the transaction party to lose the best transaction time, a certain transaction amount can be provided to the transaction party so that the transaction party can target the transaction item Normal transactions are carried out, and the transaction amount provided to the transaction party can be settled in a phased settlement.
实际应用中,在交易方针对交易物品提供交易数额的过程中,提供交易额度的交易平台可以一次性将针对交易物品的全量交易额度提供给被交易方,而交易方可以针对交易平台提供的交易额度进行分阶段清偿,即可实现交易方能够获得所需的交易物品,而被交易方也可以使得交易物品被交易出,而交易平台可以促进交易的活跃性,从而达到多方共利的局面。In practical applications, when the transaction party provides the transaction amount for the transaction item, the transaction platform that provides the transaction quota can provide the full transaction quota for the transaction item to the transaction party at one time, and the transaction party can target the transaction provided by the transaction platform The quota is cleared in stages to realize that the transaction party can obtain the required transaction items, and the transactionee can also make the transaction items be traded, and the trading platform can promote the activity of the transaction, so as to achieve a situation of mutual benefit.
需要说明的是,在对待处理业务进行执行处理的过程中,如果待处理业务的执行处理涉及多方参与配合实现,或者待处理业务的执行处理需进行远程数据传输、数据调用,再或者待处理业务的执行处理需要涉及多个处理平台的数据支持,可在分布式系统的基础上实现所述数据处理方法,具体的,通过创建所述待处理业务对应的分布式事务,并基于分布式系统中部署在不同节点之上的支持事务的服务器、资源服务器以及事务管理器之间的协同配合,实现在元数据基础上进行的分布式事务的创建,以及根据提交的执行方式对分布式事务执行处理,从而来进一步提升待处理业务的业务执行处理的处理效率和处理一致性。It should be noted that in the process of executing the business to be processed, if the execution of the business to be processed involves multiple parties participating in the implementation, or the execution of the business to be processed requires remote data transmission, data invocation, or the business to be processed The execution of processing requires data support involving multiple processing platforms. The data processing method can be implemented on the basis of a distributed system. Specifically, by creating a distributed transaction corresponding to the business to be processed, and based on the distributed system The coordination among transaction-supporting servers, resource servers, and transaction managers deployed on different nodes enables the creation of distributed transactions on the basis of metadata, and the execution of distributed transactions according to the submitted execution mode , So as to further improve the processing efficiency and processing consistency of the business execution processing of the business to be processed.
进一步的,在获取所述待处理业务的元数据的基础上,进一步的,为了提高待处理业务场景的安全性,实现可以针对数据流出对象进行准入限制,本实施例的一个或多个实施方式中,准入限制的核验过程具体实现方式如下所述:判断所述元数据中包含的待处理数据处理值是否小于或者等于所述分段数据事务的数据流出对象的数据账户空间的可用数据额度;若是,执行下述步骤S204;若否,向所述数据流出对象推送处理失败的提醒。Further, on the basis of obtaining the metadata of the business to be processed, further, in order to improve the security of the business scenario to be processed, and realize that the access restriction can be performed on the data outflow object, one or more implementations of this embodiment In the method, the specific implementation method of the admission restriction verification process is as follows: Determine whether the processing value of the data to be processed contained in the metadata is less than or equal to the available data in the data account space of the data outflow object of the segmented data transaction Quota; if yes, perform the following step S204; if no, push a notification of processing failure to the data outflow object.
具体的,首先确定所述元数据中包含的待处理数据处理值,再判断所述待处理数据处理值是否小于或等于所述分段数据是指的数据流出对象的账户空间的可用数据额度,若是,说明此时数据流出对象满足准入限制,可以针对元数据创建后续的分段数据事务,则执行下述步骤S204即可;若否,说明此时数据流出对象不满足准入限制,可以向数据流出对象推送处理失败的提醒,所述提醒即为数据流出对象无法针分段数据事务进行执行处理的相关信息。Specifically, first determine the processing value of the to-be-processed data contained in the metadata, and then determine whether the processing value of the to-be-processed data is less than or equal to the available data quota of the account space of the data outflow object that the segmented data refers to, If yes, it indicates that the data outflow object meets the access restriction at this time, and subsequent segmented data transactions can be created for the metadata, and the following step S204 can be performed; if not, it indicates that the data outflow object does not meet the access restriction at this time, and you can A reminder of processing failure is pushed to the data outflow object, and the reminder is related information that the data outflow object cannot perform processing for the segmented data transaction.
通过在根据元数据创建所述分段数据事务之前,对数据流出对象进行准入核验,不仅提高了所述待处理业务场景的安全性,同时可以对数据流出对象产生一定的限制作用,避免非正常数据流出对象对待处理业务产生非正常影响。Before creating the segmented data transaction based on the metadata, the data outflow object is checked for admission, which not only improves the security of the business scenario to be processed, but also has a certain restrictive effect on the data outflow object to avoid non-disclosure. The normal data outflow object has an abnormal impact on the business to be processed.
步骤S204,根据所述元数据创建所述待处理业务的分段数据事务。Step S204: Create a segmented data transaction of the service to be processed according to the metadata.
具体的,所述分段数据事务中记录有各个执行段的数据执行信息和数据链路。Specifically, the data execution information and data links of each execution segment are recorded in the segmented data transaction.
基于此,在上述获取所述待处理业务的所述元数据的基础上,进一步的,此时可以根据所述元数据创建所述待处理业务的分段数据事务,其中,所述分段数据事务具体是指针对待处理事务按照各个执行段划分后待处理的事务,并且所述分段数据事务中记录有各个执行段的数据执行信息和数据链路。Based on this, on the basis of acquiring the metadata of the service to be processed, further, at this time, a segmented data transaction of the service to be processed can be created according to the metadata, wherein the segmented data The transaction specifically refers to the transaction to be processed after the transaction to be processed is divided according to each execution segment, and the data execution information and data link of each execution segment are recorded in the segmented data transaction.
例如,在交易业务中,根据交易业务的总交易数额创建分阶段交易事务,即针对总交易数额可以分阶段提供交易数额针对交易物品进行交易,相应的,分阶段交易事务中记录有各个交易阶段的交易数额信息以及交易链路。For example, in a transaction business, a staged transaction transaction is created based on the total transaction amount of the transaction business, that is, the transaction amount can be provided in stages for the total transaction amount, and the transaction items are traded. Accordingly, each transaction stage is recorded in the staged transaction transaction. The transaction amount information and the transaction link.
进一步的,在确定所述分段数据事务的基础上,为了能够实现向数据流出对象提供更好的执行处理策略,将根据所述数据流出对象的历史数据日志确定执行段的推荐数目,还可以根据数据流出对象的执行指令进行确定,本实施例的一个或多个实施方式中,具体确定所述执行段的数据的具体实现方式如下所述:根据所述分段数据事务的数据流出对象的历史数据日志,确定向所述数据流出对象推送的执行段的推荐数目,并根据所述数据流出对象针对所述推荐数目提交的执行指令确定所述分段数据事务的执行段的数目。Further, on the basis of determining the segmented data transaction, in order to be able to provide a better execution processing strategy to the data outflow object, the recommended number of execution segments will be determined according to the historical data log of the data outflow object. The determination is made according to the execution instruction of the data outflow object. In one or more implementations of this embodiment, the specific implementation of determining the data of the execution segment is as follows: according to the data outflow object of the segmented data transaction The historical data log determines the recommended number of execution segments pushed to the data outflow object, and determines the number of execution segments of the segmented data transaction according to the execution instructions submitted by the data outflow object for the recommended number.
实际应用中,在交易业务中所述数据流出对象即为交易方,此时将根据分阶段交易事务的交易方的历史数据日志,确定向交易方推送的交易阶段推荐数目,即为向交易方推荐针对分阶段交易事务划分为N个交易阶段进行后续交易处理的过程,并将推荐数目推送至交易方;基于此,交易方可以根据选择而接受推荐数目,按照推荐数目将分阶段交易事务划分为N个交易阶段,也可以执行需求针对分阶段交易事务提交执行指令,将分阶段交易事务划分为P个交易阶段,在基于划分的交易阶段在后续对交易阶段对应的目标交易事务进行交易处理即可。In practical applications, the data outflow object in the transaction business is the transaction party. At this time, the number of transaction stage recommendations pushed to the transaction party will be determined based on the historical data log of the transaction party in the staged transaction transaction, which is the transaction party. It is recommended to divide the staged transaction transaction into N transaction stages for subsequent transaction processing, and push the recommended number to the transaction party; based on this, the transaction party can accept the recommended number according to the selection, and divide the staged transaction transaction according to the recommended number For N transaction stages, the execution requirements can also be submitted for execution instructions for staged transaction transactions, and the staged transaction transactions are divided into P transaction stages. In the transaction stage based on the division, the target transaction transaction corresponding to the transaction stage is subsequently processed. That's it.
除此之外,也可以根据数据流入对象的数据记录确定所述分段数据事务的执行段的时长和/或数目,本实施例的一个或多个实施方式中,根据数据流入对象确定分段数据事务的执行段的过程如下所述:根据所述数据流入对象的数据记录,预测所述数据流入对象的数据流入时间区间,按照所述时间区间确定所述分段数据事务的执行段的时长和/或数目。In addition, the duration and/or number of the execution stages of the segmented data transaction can also be determined according to the data record of the data inflow object. In one or more implementations of this embodiment, the segment is determined according to the data inflow object. The process of the execution segment of the data transaction is as follows: predict the data inflow time interval of the data inflow object based on the data record of the data inflow object, and determine the duration of the execution segment of the segmented data transaction according to the time interval And/or number.
实际应用中,在交易业务中所述数据流入对象即为被交易方,在确定分阶段交易事务的交易阶段的时长和/或数目的过程中,可以结合被交易方的数据记录,预测被交易方的交易时间区间,再按照时间区间确定分阶段交易事务的交易阶段的时长和/或数目即可,其中,交易阶段的时长具体是指每个时间周期交易处理交易数额的时间长度,交易阶段的数目具体是指每个时间周期交易处理的交易数额的数值。In practical applications, the data inflow object in the transaction business is the transacted party. In the process of determining the duration and/or number of the transaction phases of the phased transaction transaction, the data records of the transacted party can be combined to predict the transacted party. For the transaction time interval of the party, the duration and/or number of the transaction phases of the phased transaction transaction can be determined according to the time interval. The duration of the transaction phase specifically refers to the length of time for the transaction to process the transaction amount in each time period. The transaction phase The number specifically refers to the value of the transaction amount processed in each time period.
可见,在确定分阶段交易事务的交易阶段的数目的过程中,可以结合交易方或被交易方各自的意图对分阶段交易事务的交易阶段进行划分,以便于更加贴合交易方或被交易方的交易处理意图,为交易方和被交易方提供更优质的体验效果。It can be seen that in the process of determining the number of transaction phases of a phased transaction, the transaction phases of a phased transaction can be divided according to the respective intentions of the transaction party or the counterparty, so as to be more suitable for the transaction party or the counterparty. The transaction processing intention of the transaction is to provide a better experience effect for the transaction party and the transacted party.
步骤S206,在所述分段数据事务的执行段的执行条件被触发的情况下,按照所述执行段的执行条件被触发对应的分段执行方式,对所述分段数据事务进行分解,获得与所述分段执行方式对应的目标数据事务。Step S206, in the case that the execution condition of the execution segment of the segmented data transaction is triggered, the segmented data transaction is decomposed according to the segmented execution mode corresponding to the triggered execution condition of the segmented data transaction to obtain The target data transaction corresponding to the segmented execution mode.
具体的,在上述基于执行方式对所述分段数据事务进行解析获得所述目标数据事务的基础上,进一步的,将按照所述执行段对应的分段执行方式对所述分段数据事务进行分解,根据分解结果确定所述分段执行方式对应的目标数据事务;其中,所述与所述分段执行方式对应的目标数据事务中,记录有所述至少一个执行段的目标数据执行信息和目标数据链路,所述目标数据执行信息基于所述至少一个执行段的数据执行信息确定,所述目标数据链路基于所述至少一个执行段的数据链路确定,所述目标数据执行信息以及所述目标数据链路以用于后续对所述目标数据事务进行执行处理过程。Specifically, on the basis of the above-mentioned analysis of the segmented data transaction based on the execution mode to obtain the target data transaction, further, the segmented data transaction will be performed according to the segmented execution mode corresponding to the execution segment. Decompose, and determine the target data transaction corresponding to the segmented execution mode according to the decomposition result; wherein, in the target data transaction corresponding to the segmented execution mode, the target data execution information of the at least one execution segment and The target data link, the target data execution information is determined based on the data execution information of the at least one execution section, the target data link is determined based on the data link of the at least one execution section, the target data execution information, and The target data link is used for subsequent execution processing of the target data transaction.
实际应用中,而在确定所述分段执行方式对应的所述目标数据事务的过程中,可以判断所述分段数据事务的执行段的执行条件是否被触发,在所述执行条件未被触发的情况下,表明当前时间节点还未到达针对所述分段数据事务进行执行处理的时间节点,则不作任何处理即可;在所述执行条件被触发的情况下,表明当前时间节点到达了针对所述分段数据事务进行执行处理的时间节点,则需要确定所述分段数据事务中需要进行执行处理的执行段对应的目标数据事务;基于此,首先确定被触发执行条件的所述执行段对应的分段执行方式,再按照所述分段执行方式对所述分段数据事务进行分解,最后获得所述分段执行方式对应的所述目标数据事务。In practical applications, in the process of determining the target data transaction corresponding to the segmented execution mode, it can be determined whether the execution condition of the execution segment of the segmented data transaction is triggered, and the execution condition is not triggered. In the case that the current time node has not reached the time node for executing the processing for the segmented data transaction, no processing is required; when the execution condition is triggered, it indicates that the current time node has reached the time node for the execution of the segmented data transaction. For the time node at which the segmented data transaction is executed, it is necessary to determine the target data transaction corresponding to the execution segment that needs to be executed in the segmented data transaction; based on this, first determine the execution segment that is triggered by the execution condition According to the corresponding segmented execution mode, the segmented data transaction is decomposed according to the segmented execution mode, and finally the target data transaction corresponding to the segmented execution mode is obtained.
例如,在交易业务中,确定交易方需要针对交易物品向交易平台清偿交易数额N,基于交易数额N创建的分阶段交易事务为在四个交易阶段中每个交易阶段按照N/4针对交易数额进行清偿,分阶段交易事务中记录的四个交易阶段的数据执行信息即为每个月按照N/4进行清偿交易数额,交易链路是通过交易方的交易账户进行扣除;For example, in the transaction business, it is determined that the transaction party needs to pay the transaction amount N to the trading platform for the transaction item. The staged transaction created based on the transaction amount N is that in each of the four transaction stages, the transaction amount is calculated according to N/4. For settlement, the data execution information of the four transaction stages recorded in the staged transaction transaction is the amount of the settlement transaction per month according to N/4, and the transaction link is deducted through the transaction account of the transaction party;
而为了避免交易方在每个月的清偿时间忘记针对交易数额进行清偿,可以通过自动从交易账户中扣除N/4交易数额的方式实现自动扣除交易数额,即在每个月的清偿时间检测交易方是否针对N/4的交易数额进行清偿,若否,此时将确定分阶段交易事务的交易阶段的执行条件被触发,即可以确定本交易阶段需要扣除的交易数额,进行后续的扣除交易数额的执行操作,而在此过程中,首先需要按照本交易阶段的分阶段交易方式对分阶段交易事务进行分析,确定分阶段交易方式对应的目标交易事务为通过交易账户针对第二交易阶段的N/4交易数额进行清偿的事务。In order to prevent the transaction party from forgetting to pay off the transaction amount during the settlement time of each month, the transaction amount can be automatically deducted by automatically deducting the N/4 transaction amount from the trading account, that is, the transaction is detected at the settlement time of each month Whether the party pays off the N/4 transaction amount, if not, it will be determined at this time that the execution conditions of the transaction stage of the staged transaction transaction are triggered, and then the transaction amount that needs to be deducted in this transaction stage can be determined, and the subsequent transaction amount will be deducted In this process, it is first necessary to analyze the phased transaction transaction according to the phased transaction method of this transaction stage, and determine that the target transaction transaction corresponding to the phased transaction method is N for the second transaction stage through the trading account. /4 The amount of the transaction is the business of repayment.
可见,通过检测分阶段交易事务的交易阶段的执行条件是否被触发,实现了在 出现针对目标交易事务未被交易处理的情况下,可以自动的按照执行条件触发对应的分阶段交易方式对分阶段交易事务进行分解,以确定目标交易事务,能够在后续及时的对目标交易事务进行交易处理,有效提高了对目标交易事务交易处理的高效性。It can be seen that by detecting whether the execution conditions of the transaction phase of the phased transaction transaction are triggered, it is realized that in the case that the target transaction transaction has not been processed by the transaction, the corresponding phased transaction method can be automatically triggered according to the execution conditions. The transaction transaction is decomposed to determine the target transaction transaction, and the target transaction transaction can be processed in a timely manner in the follow-up, which effectively improves the efficiency of the target transaction transaction processing.
除此之外,为了方便数据流出对象能够随时对分段数据事务进行监控,以及方便数据流出对象可以主动针对所述目标数据事务进行后续的执行处理,可以在接收到所述数据流出对象的分段执行请求后,再确定所述目标数据事务,本实施例的一个或多个实施方式中,根据分段执行请求确定所述目标数据事务的具体实现方式如下所述:接收所述分段数据事务的数据流出对象针对所述至少一个执行段提交的分段执行请求;基于所述分段执行请求中携带的分段执行方式,对所述分段数据事务进行分解,获得与所述分段执行方式对应的目标数据事务。In addition, in order to facilitate the data outflow object to be able to monitor segmented data transactions at any time, and to facilitate the data outflow object to actively perform subsequent execution processing for the target data transaction, it can be used after receiving the data outflow object's segmentation. After the segment execution request, the target data transaction is determined. In one or more implementations of this embodiment, the specific implementation method for determining the target data transaction according to the segment execution request is as follows: Receive the segment data The data outflow object of the transaction is for the segmented execution request submitted by the at least one execution segment; based on the segmented execution mode carried in the segmented execution request, the segmented data transaction is decomposed to obtain the same The target data transaction corresponding to the execution mode.
其中,所述与所述分段执行方式对应的目标数据事务中,记录有所述至少一个执行段的目标数据执行信息和目标数据链路,所述目标数据执行信息基于所述至少一个执行段的数据执行信息确定,所述目标数据链路基于所述至少一个执行段的数据链路确定,所述目标数据执行信息以及所述目标数据链路以用于后续对所述目标数据事务进行执行处理过程。Wherein, in the target data transaction corresponding to the segmented execution mode, target data execution information and target data link of the at least one execution segment are recorded, and the target data execution information is based on the at least one execution segment The target data link is determined based on the data link of the at least one execution segment, and the target data execution information and the target data link are used for subsequent execution of the target data transaction Processing process.
实际应用中,在接收到所述数据流出对象针对至少一个执行段提交的分段执行请求的情况下,说明此时所述数据流出对象主动对所述至少一个执行段对应的目标数据事务进行后续的执行处理,并且所述数据流出对象可以针对一个执行段对应的目标数据事务进行后续的执行处理,也可以同时针对多个执行段对应的目标数据事务进行后续的执行处理;基于此,在接收到所述分段执行请求的情况下,再基于所述分段执行请求中携带的分段执行方式,对所述分段数据事务进行分解,根据分解结果即可确定所述分段执行方式对应的目标数据事务。In actual applications, in the case of receiving the segmented execution request submitted by the data outflow object for at least one execution segment, it is explained that the data outflow object actively follows up the target data transaction corresponding to the at least one execution segment at this time The data outflow object can perform subsequent execution processing for the target data transaction corresponding to one execution segment, or perform subsequent execution processing for the target data transaction corresponding to multiple execution segments at the same time; based on this, in the receiving In the case of the segmented execution request, the segmented data transaction is decomposed based on the segmented execution mode carried in the segmented execution request, and the corresponding segmented execution mode can be determined according to the decomposition result. The target data transaction.
例如,在交易业务中,确定交易方需要针对交易物品向交易平台清偿交易数额N,基于交易数额N创建的分阶段交易事务为在四个交易阶段中每个交易阶段按照N/4针对交易数额进行清偿,分阶段交易事务中记录的四个交易阶段的数据执行信息即为每个月按照N/4进行清偿交易数额,交易链路是通过交易方的交易账户进行扣除;而交易方为了能够及时针对未清偿的交易数额进行清偿处理,此时主动针对还未执行处理的第三交易阶段和第四交易阶段提交了分段执行请求,此时基于分段执行请求中携带的针对第三交易阶段的分阶段交易方式,以及针对第四交易阶段的分阶段交易方式对分阶段交易事务进行分解,确定与第三交易阶段的分阶段交易方式和第四交易阶段的分阶段交易 方式对应的目标交易事务为通过交易账户针对第三交易阶段和第四交易阶段的N/2交易数额进行清偿的事务。For example, in the transaction business, it is determined that the transaction party needs to pay the transaction amount N to the trading platform for the transaction item. The staged transaction created based on the transaction amount N is that in each of the four transaction stages, the transaction amount is calculated according to N/4. For settlement, the data execution information of the four transaction stages recorded in the staged transaction transaction is the amount of the transaction to be settled in accordance with N/4 each month. The transaction link is deducted through the transaction account of the transaction party; and the transaction party in order to be able to Perform settlement processing for the unsettled transaction amount in a timely manner. At this time, actively submit a segmented execution request for the third and fourth transaction stages that have not yet been processed. At this time, based on the third transaction carried in the segmented execution request Phase-by-phase transaction method, and the phase-by-phase transaction method for the fourth transaction phase breaks down the phased transaction transaction, and determines the target corresponding to the phased transaction method of the third transaction stage and the phased transaction method of the fourth transaction stage The transaction transaction is a transaction that settles the N/2 transaction amount of the third transaction stage and the fourth transaction stage through the transaction account.
可见,在接收到分段执行请求的情况下,说明此时交易方存在主动针对目标交易事务进行后续交易处理的意图,则可以基于分段执行请求中携带的分阶段交易方式对分阶段交易事务进行分解以获得目标交易事务,提高了交易方的随意性,可以随时针对目标交易事务提出后续的交易处理,并且在交易方的交易额度充足的情况下,可以提前对分阶段交易事务中未被交易处理的目标交易事务进行交易处理,以便于交易方可以提前针对交易业务交易处理完成。It can be seen that, in the case of receiving a segmented execution request, it means that the transaction party has the intention to actively carry out subsequent transaction processing for the target transaction at this time, and the phased transaction can be processed based on the phased transaction method carried in the segmented execution request. Decompose to obtain the target transaction transaction, which improves the arbitrariness of the transaction party. The subsequent transaction processing can be proposed for the target transaction transaction at any time, and when the transaction amount of the transaction party is sufficient, the transaction transaction can be checked in advance. Transaction processing is performed on the target transaction transaction of transaction processing, so that the transaction party can complete the transaction processing for the transaction business in advance.
步骤S208,读取所述目标数据执行信息中包含的所述至少一个执行段对应的数据流动数值。Step S208: Read the data flow value corresponding to the at least one execution segment included in the target data execution information.
具体的,在上述获得所述执行方式对应的所述目标数据事务的基础上,进一步的,此时将读取所述目标数据事务中记录有的目标数据执行信息中包含的所述至少一个执行段对应的数据流动数值,其中,所述数据流动数值具体是指需要所述目标数据事务执行处理所需要使用的数据量对应的数值。Specifically, on the basis of obtaining the target data transaction corresponding to the execution mode described above, further, at this time, the at least one execution contained in the target data execution information recorded in the target data transaction will be read The data flow value corresponding to the segment, where the data flow value specifically refers to a value corresponding to the amount of data that needs to be used for processing the target data transaction.
实际应用中,所述数据流动数值在交易业务中,即为针对交易阶段对应的清偿交易数额;沿用上例,则第三交易阶段的数据流动数值即为N/4的交易数额,第四交易阶段的数据流动数值即为N/4的交易数额。In practical applications, the data flow value in the transaction business is the settlement transaction amount corresponding to the transaction stage; following the above example, the data flow value in the third transaction stage is the transaction amount of N/4, and the fourth transaction The data flow value of the stage is the transaction amount of N/4.
步骤S210,按照所述目标数据链路,对所述数据流出对象的数据账户空间的数据额度扣减所述数据流动数值对应的扣减额度,以及从所述数据流出对象的数据账户空间对应的实际数据账户转出所述数据流动数值对应的数据资源至所述分段数据事务的数据流入对象的数据账户。Step S210: According to the target data link, deduct the deduction amount corresponding to the data flow value from the data quota of the data account space of the data outflow object, and the deduction amount corresponding to the data account space of the data outflow object. The actual data account transfers the data resource corresponding to the data flow value to the data account of the data inflow object of the segmented data transaction.
具体的,所述目标数据链路的数据节点至少对应于所述数据流出对象的数据账户空间和所述数据流入对象的数据账户;所述数据账户空间的数据结算周期的时长与所述分段数据事务的执行段的执行处理周期的时长相等,在前一数据结算周期对所述数据账户空间的数据额度扣减所述扣减额度,经后一数据结算周期的数据结算处理后,所述扣减额度对所述数据额度的扣减被更新。Specifically, the data node of the target data link corresponds to at least the data account space of the data outflow object and the data account of the data inflow object; the duration of the data settlement period of the data account space is related to the segment The duration of the execution processing cycle of the execution section of the data transaction is the same. The data quota of the data account space is deducted from the data quota of the data account space in the previous data settlement cycle. After the data settlement processing of the latter data settlement cycle, the said deduction quota is deducted from the data quota of the data account space. Deduction amount The deduction of the data amount is updated.
实际应用中,在所述数据流出对象为交易方的情况下,则数据账户空间即为交易平台向交易方提供的交易额度的存放空间,而数据账户空间中的数据额度为交易平台向交易方提供的支用额度,且该支用额度需要交易方在设定的时间节点进行清偿,相应 的,实际数据账户即为向交易平台提供与支用额度对应的资金的一方的账户,数据流入对象即为被交易方,数据账户即为被交易方的存储额度的账户。In actual applications, when the data outflow object is the transaction party, the data account space is the storage space for the transaction quota provided by the trading platform to the transaction party, and the data quota in the data account space is the transaction platform’s transfer to the transaction party. The amount of expenditure provided, and the amount of expenditure needs to be repaid by the transaction party at the set time node. Accordingly, the actual data account is the account of the party that provides the trading platform with funds corresponding to the amount of expenditure, and the data flows into the object It is the transacted party, and the data account is the account of the transacted party's storage quota.
例如,在交易业务中确定目标交易事务的情况下,此时需要针对目标交易事务进行执行处理,确定交易数额是N/2,此时将在交易方的交易账户中扣除与N/2交易数额相等的支用额度,而提供支用额度的一方的账户中将转出与N/2交易数额相等的资源至被交易方,可以确定交易方与被交易方针对交易物品的交易过程结束,后续交易方只需要向交易账户清偿中与交易数额N/2相等的资源即可。For example, in the case of determining the target transaction transaction in the transaction business, the target transaction transaction needs to be executed at this time, and the transaction amount is determined to be N/2. At this time, the transaction amount will be deducted from the transaction account of the transaction party. Equivalent spending limit, and the account of the party providing the spending limit will transfer resources equal to the N/2 transaction amount to the counterparty. It can be determined that the transaction process between the transaction party and the counterparty for the transaction item is over, and the follow-up The transaction party only needs to pay off the resources equal to the transaction amount N/2 to the transaction account.
可见,在针对目标交易事务进行交易处理的过程中,为了避免占用交易方的交易账户中过多的交易额度,可以采用指定段的方式针对分阶段交易事务进行交易处理,从而实现可以使得交易额度按照交易阶段的交易额度进行扣减,在降低交易方针对交易额度进行交易处理压力的情况下,还可以完成交易业务。It can be seen that in the process of transaction processing for the target transaction transaction, in order to avoid occupying the excessive transaction quota in the transaction account of the transaction party, the transaction processing can be performed for the phased transaction transaction in the designated segment method, so as to achieve the transaction quota. Deductions are made in accordance with the transaction quota at the transaction stage, and the transaction business can also be completed while reducing the pressure on the transaction party to deal with the transaction quota.
除此之外,在针对所述目标数据事务进行执行处理的过程中,还可以直接通过所述数据流出对象的数据账户中转出与所述数据流动值对应的数据资源至所述数据流入对象的数据账户,避免中间的中间方造成过多的附加数据资源,而影响数据流出对象参与所述待处理业务的体验效果,本实施例的一个或多个实施方式中,直接通过所述数据流出对应的数据账户转入所述数据流入对象的数据账户数据资源的具体实现方式如下所述:读取所述目标数据执行信息中包含的所述至少一个执行段对应的数据流动数值;按照所述目标数据链路,从所述数据流出对象的数据账户转出所述数据流动数值对应的数据资源至所述数据流入对象的数据账户;其中,所述目标数据链路的起始数据节点对应于所述数据流出对象的数据账户,终止数据节点对应于所述数据流入对象的数据账户。In addition, in the process of executing the processing for the target data transaction, the data resource corresponding to the data flow value can also be directly transferred to the data inflow object through the data account of the data outflow object Data account to avoid excessive additional data resources caused by intermediary parties and affect the experience effect of data outflow objects participating in the pending service. In one or more implementation manners of this embodiment, the data outflow is directly used The specific implementation manner of transferring the corresponding data account to the data account data resource of the data inflow object is as follows: read the data flow value corresponding to the at least one execution segment contained in the target data execution information; The target data link transfers the data resource corresponding to the data flow value from the data account of the data outflow object to the data account of the data inflow object; wherein, the start data node of the target data link corresponds to When the data flows out of the data account of the object, the terminating data node corresponds to the data account of the data inflow object.
例如,在交易业务中,交易方针对分阶段交易事务中的第三交易阶段对应的目标交易事务进行交易的过程中,基于目标交易事务中记录的目标数据执行信息确定第三交易阶段对应的交易数额N/4,此时按照目标交易事务中记录的目标数据链路从交易方的交易账户中转出与交易数额N/4对应的交易资源,并将该部分交易资源转至被交易方的交易账户。For example, in a transaction business, when a transaction party conducts a transaction for a target transaction transaction corresponding to the third transaction stage in a phased transaction transaction, the transaction corresponding to the third transaction stage is determined based on the target data execution information recorded in the target transaction transaction. Amount N/4. At this time, according to the target data link recorded in the target transaction transaction, the transaction resource corresponding to the transaction amount N/4 is transferred from the transaction account of the transaction party, and this part of the transaction resource is transferred to the transactional party’s transaction account.
可见,通过在针对目标交易事务进行交易处理的过程中,为了方便交易额度的流动,以避免中间方收取附加交易额度的情况发生,交易方可以直接将交易额度转至被交易方,在降低交易额度流动成本基础上,更进一步的提高了目标交易事务的交易处理效率。It can be seen that, in order to facilitate the flow of transaction quotas during the process of transaction processing for the target transaction, and to prevent the intermediate party from receiving additional transaction quotas, the transaction party can directly transfer the transaction quota to the counterparty, thereby reducing the transaction Based on the flow cost of the quota, the transaction processing efficiency of the target transaction transaction is further improved.
步骤S212,根据所述数据流动数值以及所述至少一个执行段对应的第一执行附加数据占比,计算所述至少一个执行段对应的第一执行附加数据值。Step S212: Calculate the first execution additional data value corresponding to the at least one execution stage according to the data flow value and the proportion of the first execution additional data corresponding to the at least one execution stage.
具体的,在上述对所述目标数据事务进行执行处理之后,更进一步的,由于针对所述目标数据事务执行处理过程将会产生数据流动数值对应的数据资源产生流动,而在数据资源流动的过程中将会针对待处理业务出现一定的损耗,而为了能够针对损耗部分的数据资源进行填充,可以根据数据流动数据计算出第一执行附加数据值,在后续根据所述第一执行附加数据值针对数据流入对象进行结算即可。Specifically, after the above-mentioned execution processing of the target data transaction is performed, further, since the execution of the processing process for the target data transaction will generate a flow of data resources corresponding to the data flow value, and in the process of data resource flow A certain amount of loss will occur for the service to be processed. In order to be able to fill the lost data resources, the first execution additional data value can be calculated according to the data flow data, and then the first execution additional data value can be calculated according to the first execution additional data value. Data flows into the object for settlement.
实际应用中,所述数据流动数值与所述第一执行附数据占比成正比,例如在交易业务中,交易方在向被交易方清偿交易额度N/4的过程中,实际数据账户所属的交易平台将针对交易额度N/4收取一定的附加交易额度,该附加交易额度可以根据每个交易阶段的附加交易额度占比1%进行计算,即被交易方需要向交易平台提供的附加交易额度是N/4*1%=N/400,再进行后续的针对附加交易额度进行结算处理即可。In practical applications, the data flow value is proportional to the proportion of the first execution attached data. For example, in a transaction business, when the transaction party is in the process of repaying the transaction limit N/4 to the counterparty, the actual data account belongs to The trading platform will charge a certain additional transaction limit for the transaction limit N/4. The additional transaction limit can be calculated based on 1% of the additional transaction limit of each transaction stage, that is, the additional transaction limit that the counterparty needs to provide to the trading platform It is N/4*1%=N/400, and then proceed to the subsequent settlement processing for the additional transaction quota.
除此之外,随着所述分段数据事务的执行段的深度的增加,针对所述数据流动值对应的第一执行附加数据占比也会随之增加,相应的计算获得的所述第一执行附加数据值也会随之变大,故计算所述第一执行附加数据值的过程可以通过公式(1)实现,公式(1):In addition, as the depth of the execution section of the segmented data transaction increases, the proportion of the first execution additional data corresponding to the data flow value will also increase, and the first execution additional data obtained by the corresponding calculation will also increase. The value of the additional data will also become larger after the execution, so the process of calculating the value of the first additional data can be implemented by formula (1), formula (1):
Y=a m*X        (1) Y=a m *X (1)
其中,Y表示第一执行附加数据值,X表示数据流动数值,a m表示第一执行附加数据占比,并且随着m的增大,a m也会随之增大。 Among them, Y represents the first execution additional data value, X represents the data flow value, and am represents the proportion of the first execution additional data, and as m increases, am also increases.
步骤S214,对所述数据流入对象进行所述第一执行附加数据值的数据结算处理。Step S214: Perform data settlement processing of the first execution additional data value on the data inflow object.
实际应用中,在上述经过计算确定所述第一执行附加数据值的基础上,进一步的,将针对所述数据流入对象进行所述数据结算处理,其中,所述第一执行附加数据占比,包括对所述分段数据事务在所述至少一个执行段进行执行处理产生的处理费率,依据所述第一执行附加数据占比计算获得的所述第一执行附加数据值由所述数据流入对象承担。In practical applications, on the basis of the above-mentioned calculation to determine the value of the first execution additional data, further, the data settlement processing will be performed for the data inflow object, wherein the proportion of the first execution additional data is Including the processing fee rate generated by the execution processing of the segmented data transaction in the at least one execution segment, and the first execution additional data value obtained by calculating the proportion of the first execution additional data is flowed from the data Subject to bear.
沿用上例,在交易业务中,确定被交易方承担的附加交易额度N/400的情况下,此时将针对被交易方进行结算处理,在被交易方的交易账户中扣除与附加交易额度N/400相对应的交易资源。Following the above example, in the transaction business, if the additional transaction limit N/400 assumed by the counterparty is determined, the settlement process will be carried out for the counterparty at this time, and the additional transaction limit N will be deducted from the transaction account of the counterparty. /400 corresponding transaction resources.
可见,在确定附加交易额度的基础上,将针对被被交易方进行附加交易额度结 算处理,实现了可以由被交易方承担该部分附加交易额度,使得交易方在不承担附加交易额度的情况下,依旧可以针对目标交易事务进行交易处理,很大程度上提高了交易方的体验效果。It can be seen that on the basis of determining the additional transaction quota, additional transaction quota settlement processing will be carried out for the transacted party, so that the transacted party can bear this part of the additional transaction quota, so that the transaction party does not bear the additional transaction quota. , It can still deal with the target transaction transaction, which greatly improves the experience effect of the transaction party.
此外,在对所述目标数据事务执行处理之后,可能存在数据流入对象主动针对剩余的执行段对应的数据事务进行执行处理,即数据流入对象需要将数据流出对象还未调用的数据进行处理,此时,数据流入对象可以提交第二执行请求,根据第二执行请求对剩余的执行段对应的数据事务进行执行处理,实现了数据流入对象可以在分段数据事务的执行段被执行部分的情况下,直接将剩余的执行段对应的数据事务进行执行完成,本实施例的一个或多个实施方式中,具体实现方式如下所述:接收所述分段数据事务的数据流入对象针对剩余执行段提交的第二预执行请求;基于所述第二预执行请求中携带的第二预执行方式,对所述剩余执行段对应的数据执行信息和数据链路进行组装,获得与所述第二预执行方式对应的第二中间数据事务;所述第二中间数据事务中记录有所述第二预执行请求对应的第二总数据流动数值;通过从所述分段数据事务的中间数据对象的数据账户申请所述第二总数据流动数值对应的数据资源至所述数据流入对象的数据账户的方式,对所述第二中间数据事务进行执行处理;根据所述分段数据事务的数据流出对象和所述中间数据对象二者数据账户的账户路径,确定从所述数据流出对象至所述中间数据对象的第二分段数据链路;根据所述第二分段数据链路和所述剩余执行段的数据执行信息,组建所述剩余执行段对应的第二分段数据事务;其中,所述第二中间数据事务中记录有第二中间数据链路,所述第二中间数据链路的起始数据节点对应于所述中间数据对象的数据账户,终止数据节点对应于所述数据流入对象的数据账户。In addition, after processing the target data transaction, there may be data inflow objects that actively perform processing on the data transactions corresponding to the remaining execution segments, that is, the data inflow object needs to process the data that has not yet been called by the data outflow object. When the data inflow object can submit a second execution request, the data transaction corresponding to the remaining execution segment is executed according to the second execution request, so that the data inflow object can be executed in the execution segment of the segmented data transaction. , The data transaction corresponding to the remaining execution segment is directly executed and completed. In one or more implementation manners of this embodiment, the specific implementation is as follows: the data inflow object of the segmented data transaction is received and submitted for the remaining execution segment The second pre-execution request; based on the second pre-execution mode carried in the second pre-execution request, the data execution information and the data link corresponding to the remaining execution segments are assembled to obtain the second pre-execution The second intermediate data transaction corresponding to the mode; the second total data flow value corresponding to the second pre-execution request is recorded in the second intermediate data transaction; through the data account of the intermediate data object from the segmented data transaction The method of applying for the data resource corresponding to the second total data flow value to the data account of the data inflow object is to perform processing on the second intermediate data transaction; according to the data outflow object and the data outflow object of the segmented data transaction The account path of the two data accounts of the intermediate data object determines the second segment data link from the data outflow object to the intermediate data object; according to the second segment data link and the remaining execution segment The data execution information of the second segment data transaction corresponding to the remaining execution segment is formed; wherein, the second intermediate data link is recorded in the second intermediate data transaction, and the start of the second intermediate data link The data node corresponds to the data account of the intermediate data object, and the termination data node corresponds to the data account of the data inflow object.
实际应用中,在接收到数据流入对象提交第二预执行请求的情况下,需要针对剩余的执行段对应的数据事务进行执行处理,而在此过程中,需要确定第二分段数据事务,第二分段数据事务即为剩余执行段对应的数据事务的总数据事务;基于此,首先根据所述第二预执行请求中携带的第二预执行方式对剩余执行段对应的全部数据执行信息和全部数据链路进行组装,获得第二预执行方式对应的第二中间数据事务,所述第二中间数据事务中记录有与所述第二预执行请求对应的第二总数据流动数值;In actual applications, when the second pre-execution request is submitted by the data inflow object, the data transaction corresponding to the remaining execution segment needs to be executed. In this process, the second segment data transaction needs to be determined. The two-segment data transaction is the total data transaction of the data transaction corresponding to the remaining execution segment; based on this, first, according to the second pre-execution mode carried in the second pre-execution request, all the data execution information corresponding to the remaining execution segment and All data links are assembled to obtain a second intermediate data transaction corresponding to a second pre-execution mode, where a second total data flow value corresponding to the second pre-execution request is recorded in the second intermediate data transaction;
再通过所述分段数据事务的中间数据对象的数据账户申请所述第二总数据流动数据对应的数据资源至所述数据流入对象的数据账户的方式,对所述第二中间数据事务进行执行处理,最后再根据所述数据流出对象和所述中间数据对象二者数据账户的账户路径,确定从所述数据流出对象至所述中间数据对象的第二分段数据链路;根据所述第 二分段数据链路和所述剩余执行段的数据执行信息,组建所述剩余执行段对应的第二分段数据事务。The second intermediate data transaction is executed by applying for the data resource corresponding to the second total data flow data to the data account of the data inflow object through the data account of the intermediate data object of the segmented data transaction Processing, and finally, according to the account paths of the data accounts of the data outflow object and the intermediate data object, determine the second segmented data link from the data outflow object to the intermediate data object; according to the first The second-segment data link and the data execution information of the remaining execution stage form a second-segment data transaction corresponding to the remaining execution stage.
进一步的,在所述第二中间数据事务被执行处理完成之后,此时数据流出对象还需要向中间数据对象提供数据资源,将建立中间数据对象与数据流出对象的第二分段数据事务,通过从数据流出对象的数据账户空间中数据额度扣减的方式,从实际数据账户中转出与该部分数据额度对应的数据资源至中间数据对象的数据账户,本实施例的一个或多个实施方式中,具体实现方式如下所述:在所述第二分段数据事务的剩余执行段中至少一者的执行条件被触发的情况下,读取所述第二分段数据事务中被触发的剩余执行段对应的第二分段数据流动数值;按照所述第二分段数据链路,对所述数据流出对象的数据账户空间的数据额度扣减所述第二分段数据流动数值对应的扣减额度,以及,从所述数据流出对象的数据账户空间对应的实际数据账户转出所述第二分段数据流动数值对应的数据资源至所述中间数据对象的数据账户;其中,所述数据账户空间的数据结算周期的时长与所述第二分段数据事务的剩余执行段的执行处理周期的时长相等,在前一数据结算周期对所述数据账户空间的数据额度扣减所述扣减额度,经后一数据结算周期的数据结算处理后,所述扣减额度对所述数据额度的扣减被更新。Further, after the execution and processing of the second intermediate data transaction is completed, the data outflow object needs to provide data resources to the intermediate data object at this time, and a second segmented data transaction of the intermediate data object and the data outflow object will be established. The method of deducting the data quota from the data account space of the data outflow object, transferring the data resources corresponding to the part of the data quota from the actual data account to the data account of the intermediate data object, one or more implementations of this embodiment , The specific implementation is as follows: in the case where the execution condition of at least one of the remaining execution segments of the second segmented data transaction is triggered, read the triggered remaining segment of the second segmented data transaction The second segment data flow value corresponding to the execution segment; according to the second segment data link, the data limit of the data account space of the data outflow object is deducted by the deduction corresponding to the second segment data flow value Deduction, and transferring the data resource corresponding to the second segmented data flow value from the actual data account corresponding to the data account space of the data outflow object to the data account of the intermediate data object; wherein, the data The duration of the data settlement cycle of the account space is equal to the duration of the execution processing cycle of the remaining execution segment of the second segmented data transaction, and the data quota of the data account space is deducted from the deduction in the previous data settlement cycle Quota, after the data settlement processing in the next data settlement cycle, the deduction of the deduction quota to the data quota is updated.
可见,在接收到数据流入对象主动针对剩余的执行段对应的数据事务进行执行处理的执行请求的情况下,可以根据数据流入对象的执行请求提前对未被执行处理的执行段对应的数据事务进行执行处理,实现了提高所述数据流入对象的执行处理的便捷性。It can be seen that in the case of receiving an execution request for the data inflow object to actively perform processing for the data transaction corresponding to the remaining execution segment, the data transaction corresponding to the execution segment that has not been processed can be performed in advance according to the execution request of the data inflow object. The execution processing realizes the improvement of the convenience of the execution processing of the data inflow object.
本说明书提供的应用于交易业务中的数据处理方法,实现了可以针对交易业务按照分阶段交易的方式进行交易处理,使得可以在每个交易阶段只提供较少的交易额度即可实现完成交易业务,并且交易方无需一次性提供全量的交易额度,也不会占用交易方的交易账户的全部支用额度,交易方只需要按照针对分阶段交易事务的各个交易阶段进行交易处理即可实现对交易业务的交易处理,在提高了交易方的体验效果的同时,还使得交易业务场景变得更加活跃。The data processing method used in the transaction business provided in this manual realizes that the transaction processing can be carried out in a phased transaction manner for the transaction business, so that only a small transaction amount can be provided in each transaction stage to complete the transaction business , And the transaction party does not need to provide the full amount of transaction quota at one time, nor will it occupy all the spending quota of the transaction party’s trading account. The transaction party only needs to perform transaction processing in accordance with the various transaction stages of the phased transaction transaction to achieve the transaction The transaction processing of the business not only improves the experience of the transaction party, but also makes the transaction business scene more active.
参照附图3,其示出了本说明书实施例提供的一种应用于支付业务中的数据处理方法的处理流程图,具体包括以下步骤S302至S316。Referring to FIG. 3, it shows a processing flowchart of a data processing method applied to a payment service provided by an embodiment of this specification, which specifically includes the following steps S302 to S316.
步骤S302,获取待处理业务的元数据。Step S302: Obtain metadata of the service to be processed.
本实施例将以及所述待处理业务为支付业务对所述数据处理方法进行描述,其中,所述元数据具体是指支付业务中支付用户需要向商家支付的总支付资金;在支付业 务场景中,支付用户和商家在针对商品进行交易的过程中,需要支付用户向商家支付一定金额的情况下才能够获得该商品的所有权,而往往商品所需要支付的金额是一笔较大的资金,支付用户若一次性支付该笔资金将会造成接下来一段时间的资金周转不顺的情况,而支付平台会向用户提供支付额度,通过该笔支付额度也可以针对该笔资金进行支付,然而一次性占用过多支付额度,将会造成支付用户清偿该支付额度的过程中的困难程度,故解决上述问题将会为支付用户带来更佳优质的交易环境。In this embodiment, the data processing method will be described as well as that the service to be processed is a payment service, where the metadata specifically refers to the total payment funds that the payment user needs to pay to the merchant in the payment service; in the payment service scenario , In the process of the transaction between the paying user and the merchant, the user needs to pay a certain amount to the merchant to obtain the ownership of the product, and the amount that needs to be paid for the product is often a large amount of money. If the user pays the funds in a lump sum, it will result in unsuccessful capital turnover in the next period of time, and the payment platform will provide the user with a payment line, through which the payment line can also be paid for the funds, but a one-time Occupying too much payment limit will cause difficulty in the process of paying users to settle the payment limit, so solving the above problems will bring a better quality transaction environment for payment users.
实际应用中,参与支付业务的支付用户已经针对商品进行了支付,并且支付方式为支付用户通过在支付平台选择分期支付的方式针对商品进行了支付,即支付用户采用支付平台提供的支付额度按照分阶段支付的方式进行支付,而支付平台将会在每个月的支付时间向商家转入与每个阶段的支付额度相等的资金,并且会在支付用户的支付账户中冻结与该部分资金相等的支付额度,支付用户只需要对该部分支付额度清偿相等的资金即可。In actual applications, payment users participating in the payment service have already paid for the product, and the payment method is that the payment user has paid for the product by choosing installment payment on the payment platform, that is, the payment user uses the payment limit provided by the payment platform to pay for the product. Payment is made in a phased payment method, and the payment platform will transfer funds equal to the payment limit of each phase to the merchant at the payment time each month, and will freeze the payment equal to the part of the funds in the payment account of the paying user For the payment limit, the paying user only needs to repay the same amount of funds for this part of the payment limit.
除此之外,支付用户针对商品支付额度的过程中,提供支付额度的支付平台可以一次性将针对商品的全量支付额度对应的资金转至商家,而支付用户可以针对支付平台提供的支付额度进行分阶段清偿,并且提供与支付额度相等的支付资金的资金提供方出具该笔资金,而当支付用户按照各个支付阶段的清偿资金向支付平台清偿支付额度即可,支付平台将向资金提供方按照与各个支付阶段相等的次数添补该部分资金,从而实现支付用户可以获得需要的商品,商家可以将商品售出之后立即获得资金,而支付平台和资金提供方可以促进资金的流动,从而达到多方获利的局面。In addition, in the process of paying users to pay for goods, the payment platform that provides the payment line can transfer the funds corresponding to the full payment line for the product to the merchant at one time, and the paying user can pay for the payment line provided by the payment platform The payment is settled in stages, and the fund provider who provides payment funds equal to the payment amount issues the funds, and when the payment user pays the payment platform according to the settlement funds of each payment stage, the payment platform will pay the fund provider according to the payment amount. Replenish this part of funds equal to the number of times in each payment stage, so that payment users can obtain the goods they need, merchants can obtain funds immediately after the goods are sold, and payment platforms and fund providers can promote the flow of funds to achieve multi-party access Profitable situation.
需要说明的是,在对待处理业务进行执行处理的过程中,如果待处理业务的执行处理涉及多方参与配合实现,或者待处理业务的执行处理需进行远程数据传输、数据调用,再或者待处理业务的执行处理需要涉及多个处理平台的数据支持,可在分布式系统的基础上实现所述数据处理方法,具体的,通过创建所述待处理业务对应的分布式事务,并基于分布式系统中部署在不同节点之上的支持事务的服务器、资源服务器以及事务管理器之间的协同配合,实现在元数据基础上进行的分布式事务的创建,以及根据提交的执行方式对分布式事务执行处理,从而来进一步提升待处理业务的业务执行处理的处理效率和处理一致性。It should be noted that in the process of executing the business to be processed, if the execution of the business to be processed involves multiple parties participating in the implementation, or the execution of the business to be processed requires remote data transmission, data invocation, or the business to be processed The execution of processing requires data support involving multiple processing platforms. The data processing method can be implemented on the basis of a distributed system. Specifically, by creating a distributed transaction corresponding to the business to be processed, and based on the distributed system The coordination among transaction-supporting servers, resource servers, and transaction managers deployed on different nodes enables the creation of distributed transactions on the basis of metadata, and the execution of distributed transactions according to the submitted execution mode , So as to further improve the processing efficiency and processing consistency of the business execution processing of the business to be processed.
进一步的,在获取所述待处理业务的元数据的基础上,进一步的,为了提高待处理业务场景的安全性,实现可以针对数据流出对象进行准入限制,本实施例的一个或多个实施方式中,准入限制的核验过程具体实现方式如下所述:判断所述元数据中包含 的待处理数据处理值是否小于或者等于所述分段数据事务的数据流出对象的数据账户空间的可用数据额度;若是,执行下述步骤S304;若否,向所述数据流出对象推送处理失败的提醒。Further, on the basis of obtaining the metadata of the business to be processed, further, in order to improve the security of the business scenario to be processed, and realize that the access restriction can be performed on the data outflow object, one or more implementations of this embodiment In the method, the specific implementation method of the admission restriction verification process is as follows: Determine whether the processing value of the data to be processed contained in the metadata is less than or equal to the available data in the data account space of the data outflow object of the segmented data transaction Quota; if yes, execute the following step S304; if no, push a notification of processing failure to the data outflow object.
具体的,首先确定所述元数据中包含的待处理数据处理值,再判断所述待处理数据处理值是否小于或等于所述分段数据是指的数据流出对象的账户空间的可用数据额度,若是,说明此时数据流出对象满足准入限制,可以针对元数据创建后续的分段数据事务,则执行下述步骤S304即可;若否,说明此时数据流出对象不满足准入限制,可以向数据流出对象推送处理失败的提醒,所述提醒即为数据流出对象无法针分段数据事务进行执行处理的相关信息。Specifically, first determine the processing value of the to-be-processed data contained in the metadata, and then determine whether the processing value of the to-be-processed data is less than or equal to the available data quota of the account space of the data outflow object that the segmented data refers to, If yes, it indicates that the data outflow object meets the access restriction at this time, and subsequent segmented data transactions can be created for the metadata, and the following step S304 can be performed; if not, it indicates that the data outflow object does not meet the access restriction at this time, and you can A reminder of processing failure is pushed to the data outflow object, and the reminder is related information that the data outflow object cannot perform processing for the segmented data transaction.
通过在根据元数据创建所述分段数据事务之前,对数据流出对象进行准入核验,不仅提高了所述待处理业务场景的安全性,同时可以对数据流出对象产生一定的限制作用,避免非正常数据流出对象对待处理业务产生非正常影响。Before creating the segmented data transaction based on the metadata, the data outflow object is checked for admission, which not only improves the security of the business scenario to be processed, but also has a certain restrictive effect on the data outflow object to avoid non-disclosure. The normal data outflow object has an abnormal impact on the business to be processed.
步骤S304,根据所述元数据创建所述待处理业务的分段数据事务。Step S304: Create a segmented data transaction of the service to be processed according to the metadata.
具体的,所述分段数据事务中记录有各个执行段的数据执行信息和数据链路。Specifically, the data execution information and data links of each execution segment are recorded in the segmented data transaction.
基于此,在上述获取所述待处理业务的所述元数据的基础上,进一步的,此时可以根据所述元数据创建所述待处理业务的分段数据事务,其中,所述分段数据事务具体是指针对待处理事务按照各个执行段划分后待处理的事务,并且所述分段数据事务中记录有各个执行段的数据执行信息和数据链路。Based on this, on the basis of acquiring the metadata of the service to be processed, further, at this time, a segmented data transaction of the service to be processed can be created according to the metadata, wherein the segmented data The transaction specifically refers to the transaction to be processed after the transaction to be processed is divided according to each execution segment, and the data execution information and data link of each execution segment are recorded in the segmented data transaction.
例如,在支付业务中,根据支付业务的总支付额度创建分阶段支付事务,即针对总支付额度可以分阶段支付该支付额度,实现对商品的交易,相应的,分阶段交易事务中记录有各个支付阶段的支付额度信息以及支付链路,其中支付额度信息具体是指针对每个支付阶段支付用户需要向支付平台清偿的支付额度对应的资金,而支付平台需要向商家支付的与支付额度对应的资金相当的资金,支付链路具体是指支付用户支付该笔支付额度对应的资金所采用的支付路径。For example, in the payment business, a phased payment transaction is created based on the total payment line of the payment business, that is, the payment line can be paid in phases for the total payment line to realize the transaction of commodities. Accordingly, each phased transaction transaction records each Payment limit information and payment links in the payment phase, where the payment limit information specifically refers to the funds corresponding to the payment limit that the payment user needs to pay to the payment platform for each payment phase, and the payment platform needs to pay the merchant corresponding to the payment limit For funds equivalent to funds, the payment link specifically refers to the payment path used by the payment user to pay the funds corresponding to the payment amount.
步骤S306,根据所述分段数据事务的数据流出对象的历史数据日志,确定向所述数据流出对象推送的执行段的推荐数目,并根据所述数据流出对象针对所述推荐数目提交的执行指令确定所述分段数据事务的执行段的数目。Step S306: Determine the recommended number of execution segments pushed to the data outflow object according to the historical data log of the data outflow object of the segmented data transaction, and according to the execution instructions submitted by the data outflow object for the recommended number Determine the number of execution stages of the segmented data transaction.
具体的,在上述确定所述分段数据事务的基础上,进一步的,为了能够减轻数据流出对象的执行处理压力,以及提高执行处理效率,可以根据所述数据流出对象的历 史数据日志,确定向数据流出对象推送的执行段推荐数目,并根据所述数据流出对象针对推荐数目提交的执行指令确定所述分段数据事务的执行段数目即可。Specifically, on the basis of the above-mentioned determination of the segmented data transaction, further, in order to reduce the execution processing pressure of the data outflow object and improve the execution processing efficiency, the direction can be determined according to the historical data log of the data outflow object. The recommended number of execution segments pushed by the data outflow object, and the number of execution segments of the segmented data transaction may be determined according to the execution instructions submitted by the data outflow object for the recommended number.
例如,在支付业务中,在确定支付用户需要向支付平台针对商品清偿支付额度的情况下,针对商品的分阶段支付事务需要按照支付阶段进行划分,而支付阶段的划分可以根据支付用户的历史支付日志中记录的数据确定,确定支付用户针对支付额度进行清偿的过程中通常选择分10个阶段进行清偿,此时支付平台向支付用户推送的支付阶段的推荐数目是10;或者支付用户也可以根据自身的需求自定义支付阶段的数目。For example, in the payment business, when it is determined that the paying user needs to pay the payment platform for the payment of the goods, the phased payment transaction for the goods needs to be divided according to the payment stage, and the division of the payment stage can be based on the payment user's historical payment The data recorded in the log confirms that the process of determining that the paying user pays off the payment limit usually chooses to pay in 10 stages. At this time, the number of recommendations in the payment stage pushed by the payment platform to the paying user is 10; or the paying user can also follow Customize the number of payment stages for your own needs.
具体实施时,在支付用户针对分阶段支付事务提交的执行指令是将分阶段支付事务划分为5个支付阶段,则支付用户需要针对商品进行5次的支付额度的清偿。In specific implementation, when the execution instruction submitted by the payment user for the phased payment transaction is to divide the phased payment transaction into 5 payment phases, the payment user needs to pay 5 times the payment limit for the commodity.
除此之外,也可以根据数据流入对象的数据记录确定所述分段数据事务的执行段的时长和/或数目,本实施例的一个或多个实施方式中,根据数据流入对象确定分段数据事务的执行段的过程如下所述:根据所述数据流入对象的数据记录,预测所述数据流入对象的数据流入时间区间,按照所述时间区间确定所述分段数据事务的执行段的时长和/或数目。In addition, the duration and/or number of the execution stages of the segmented data transaction can also be determined according to the data record of the data inflow object. In one or more implementations of this embodiment, the segment is determined according to the data inflow object. The process of the execution segment of the data transaction is as follows: predict the data inflow time interval of the data inflow object based on the data record of the data inflow object, and determine the duration of the execution segment of the segmented data transaction according to the time interval And/or number.
沿用上例,数据流入对象即为支付业务中的商家,在确定分阶段支付事务的支付阶段的时长和/或数目的过程中,即是确定支付阶段的数目以及每个支付阶段所对应的时间长度,此时可以结果商家的使用资金的历史数据确定针对支付额度的清偿时间,商家每个月的5号需要使用资金进行采购的情况下,则清偿时间可以设在每个月的1号至4号之间,以便商家可以在采购的过程中有资金可调用,其中,支付阶段的数目也可以根据商家的历史数据确定,若商家在5号所需要的资金数额较大,则支付用户的分阶段支付事务将划分较少的支付阶段,反之,若商家在5号所需要的资金数额较小,则支付用户的分阶段支付事务将划分较多的支付阶段;并且支付阶段的数目也可以是由商家自行设定,本说明书在此不作任何限定。Following the above example, the data inflow object is the merchant in the payment business. In the process of determining the duration and/or number of the payment phase of a phased payment transaction, it is to determine the number of payment phases and the time corresponding to each payment phase At this time, the historical data of the merchant’s funds used can be used to determine the settlement time for the payment line. If the merchant needs to use funds for purchases on the 5th of each month, the settlement time can be set from the 1st to the 1st of each month. Between the 4th, so that the merchant can have funds available during the purchase process, the number of payment stages can also be determined based on the merchant’s historical data. If the merchant needs a large amount of funds on the 5th, the user’s The phased payment transaction will be divided into fewer payment phases. Conversely, if the amount of funds required by the merchant on the 5th is small, the phased payment transaction of the paying user will be divided into more payment phases; and the number of payment phases can also be It is set by the merchant, and this manual does not make any restrictions here.
可见,在确定分阶段支付事务的支付阶段的数目的过程中,可以结合支付用户或商家的各自意图度分阶段支付事务的支付阶段进行划分,以便于支付用户可以根据自身的意图进行清偿支付额度,以及商家可以根据自身意图获得支付额度对应的资金,从而提高了支付用户和商家的体验效果。It can be seen that in the process of determining the number of payment phases of a phased payment transaction, the payment phases of the phased payment transaction can be divided according to the respective intentions of the paying user or the merchant, so that the paying user can settle the payment amount according to their own intentions. , And merchants can obtain funds corresponding to the payment limit according to their own intentions, thereby improving the experience of payment users and merchants.
步骤S308,在所述分段数据事务的执行段的执行条件被触发的情况下,按照所述执行段的执行条件被触发对应的分段执行方式,对所述分段数据事务进行分解,获得 与所述分段执行方式对应的目标数据事务。Step S308, in the case that the execution condition of the execution segment of the segmented data transaction is triggered, decompose the segmented data transaction according to the segmented execution mode corresponding to the triggered execution condition of the segmented data transaction to obtain The target data transaction corresponding to the segmented execution mode.
具体的,在上述基于执行方式对所述分段数据事务进行解析获得所述目标数据事务的基础上,进一步的,将按照所述执行段对应的分段执行方式对所述分段数据事务进行分解,根据分解结果确定所述分段执行方式对应的目标数据事务;其中,所述与所述分段执行方式对应的目标数据事务中,记录有所述至少一个执行段的目标数据执行信息和目标数据链路,所述目标数据执行信息基于所述至少一个执行段的数据执行信息确定,所述目标数据链路基于所述至少一个执行段的数据链路确定,所述目标数据执行信息以及所述目标数据链路以用于后续对所述目标数据事务进行执行处理过程。Specifically, on the basis of the above-mentioned analysis of the segmented data transaction based on the execution mode to obtain the target data transaction, further, the segmented data transaction will be performed according to the segmented execution mode corresponding to the execution segment. Decompose, and determine the target data transaction corresponding to the segmented execution mode according to the decomposition result; wherein, in the target data transaction corresponding to the segmented execution mode, the target data execution information of the at least one execution segment and The target data link, the target data execution information is determined based on the data execution information of the at least one execution section, the target data link is determined based on the data link of the at least one execution section, the target data execution information, and The target data link is used for subsequent execution processing of the target data transaction.
实际应用中,而在确定所述分段执行方式对应的所述目标数据事务的过程中,可以判断所述分段数据事务的执行段的执行条件是否被触发,在所述执行条件未被触发的情况下,表明当前时间节点还未到达针对所述分段数据事务进行执行处理的时间节点,则不作任何处理即可;在所述执行条件被触发的情况下,表明当前时间节点到达了针对所述分段数据事务进行执行处理的时间节点,则需要确定所述分段数据事务中需要进行执行处理的执行段对应的目标数据事务;In practical applications, in the process of determining the target data transaction corresponding to the segmented execution mode, it can be determined whether the execution condition of the execution segment of the segmented data transaction is triggered, and the execution condition is not triggered. In the case that the current time node has not reached the time node for executing the processing for the segmented data transaction, no processing is required; when the execution condition is triggered, it indicates that the current time node has reached the time node for the execution of the segmented data transaction. For the time node at which the segmented data transaction is executed, it is necessary to determine the target data transaction corresponding to the execution segment that needs to be executed in the segmented data transaction;
基于此,首先确定被触发执行条件的所述执行段对应的分段执行方式,再按照所述分段执行方式对所述分段数据事务进行分解,最后获得所述分段执行方式对应的所述目标数据事务。Based on this, first determine the segmented execution mode corresponding to the execution segment of the triggered execution condition, then decompose the segmented data transaction according to the segmented execution mode, and finally obtain all the corresponding segmented execution modes. Describe the target data transaction.
例如,在支付业务中,支付用户针对商品进行10个支付阶段的清偿,而支付商品的价格是1000元,故每个支付阶段需要向支付平台清偿支付额度100对应的100元资金,而在支付用户针对商品进行第五个支付阶段的清偿过程中,此时支付用户需要向支付平台清偿100元资金;For example, in the payment business, the paying user performs 10 payment stages for the goods, and the price of the paid goods is 1,000 yuan, so each payment stage needs to pay the payment platform 100 yuan corresponding to the payment limit of 100, and in the payment In the fifth payment stage of the payment process for the product, the paying user needs to pay 100 yuan to the payment platform at this time;
而为了避免支付用户在清偿时间忘记针对支付额度100进行支付处理,此时可以自动的检测分阶段支付事务的第五个支付阶段的执行条件是否被触发,若是,将按照第五个支付阶段对应的第五个分阶段支付方式对分阶段支付事务进行分解,获得目标支付事务,而目标支付事务即为针对第五个支付阶段进行清场支付额度100的事务。In order to prevent the paying user from forgetting to perform payment processing for the payment limit of 100 during the settlement time, it can automatically detect whether the execution condition of the fifth payment stage of the staged payment transaction is triggered, and if so, it will correspond to the fifth payment stage. The fifth phased payment method of ”decomposes the phased payment transaction to obtain the target payment transaction, and the target payment transaction is the transaction that clears the payment line of 100 for the fifth payment stage.
通过检测分阶段支付事务的支付阶段的执行条件是否被触发,实现了在执行条件被触发的情况下,可以自动的确定支付用户的支付阶段对应的目标支付事务,以方便提醒支付用户需要对目标支付事务进行清偿支付额度处理,有效的促进了支付用户的清偿积极性。By detecting whether the execution condition of the payment stage of the payment transaction in stages is triggered, it is realized that when the execution condition is triggered, the target payment transaction corresponding to the payment stage of the payment user can be automatically determined, so as to facilitate the reminding the payment user that the target payment transaction is required. The payment transaction is processed to settle the payment quota, which effectively promotes the enthusiasm of payment users.
除此之外,为了方便数据流出对象能够随时对分段数据事务进行监控,以及方便数据流出对象可以主动针对所述目标数据事务进行后续的执行处理,可以在接收到所述数据流出对象的分段执行请求后,再确定所述目标数据事务,本实施例的一个或多个实施方式中,根据分段执行请求确定所述目标数据事务的具体实现方式如下所述:接收所述分段数据事务的数据流出对象针对所述至少一个执行段提交的分段执行请求;基于所述分段执行请求中携带的分段执行方式,对所述分段数据事务进行分解,获得与所述分段执行方式对应的目标数据事务。In addition, in order to facilitate the data outflow object to be able to monitor segmented data transactions at any time, and to facilitate the data outflow object to actively perform subsequent execution processing for the target data transaction, it can be used after receiving the data outflow object's segmentation. After the segment execution request, the target data transaction is determined. In one or more implementations of this embodiment, the specific implementation method for determining the target data transaction according to the segment execution request is as follows: Receive the segment data The data outflow object of the transaction is for the segmented execution request submitted by the at least one execution segment; based on the segmented execution mode carried in the segmented execution request, the segmented data transaction is decomposed to obtain the same The target data transaction corresponding to the execution mode.
其中,所述与所述分段执行方式对应的目标数据事务中,记录有所述至少一个执行段的目标数据执行信息和目标数据链路,所述目标数据执行信息基于所述至少一个执行段的数据执行信息确定,所述目标数据链路基于所述至少一个执行段的数据链路确定,所述目标数据执行信息以及所述目标数据链路以用于后续对所述目标数据事务进行执行处理过程。Wherein, in the target data transaction corresponding to the segmented execution mode, target data execution information and target data link of the at least one execution segment are recorded, and the target data execution information is based on the at least one execution segment The target data link is determined based on the data link of the at least one execution segment, and the target data execution information and the target data link are used for subsequent execution of the target data transaction Processing process.
实际应用中,在接收到所述数据流出对象针对至少一个执行段提交的分段执行请求的情况下,说明此时所述数据流出对象主动对所述至少一个执行段对应的目标数据事务进行后续的执行处理,并且所述数据流出对象可以针对一个执行段对应的目标数据事务进行后续的执行处理,也可以同时针对多个执行段对应的目标数据事务进行后续的执行处理;基于此,在接收到所述分段执行请求的情况下,再基于所述分段执行请求中携带的分段执行方式,对所述分段数据事务进行分解,根据分解结果即可确定所述分段执行方式对应的目标数据事务。In actual applications, in the case of receiving the segmented execution request submitted by the data outflow object for at least one execution segment, it is explained that the data outflow object actively follows up the target data transaction corresponding to the at least one execution segment at this time The data outflow object can perform subsequent execution processing for the target data transaction corresponding to one execution segment, or perform subsequent execution processing for the target data transaction corresponding to multiple execution segments at the same time; based on this, in the receiving In the case of the segmented execution request, the segmented data transaction is decomposed based on the segmented execution mode carried in the segmented execution request, and the corresponding segmented execution mode can be determined according to the decomposition result. The target data transaction.
沿用上例,在支付业务中,支付用户针对商品进行10个支付阶段的清偿,而支付商品的价格是1000元,故每个支付阶段需要向支付平台清偿支付额度100对应的100元资金,而在支付用户针对商品进行第五个支付阶段的清偿过程中,此时支付用户需要向支付平台清偿100元资金;而支付用户为了能够及时针对未清偿的支付额度进行清偿处理,此时支付用户可以主动针对第五支付阶段提交分阶段执行请求,此时基于分阶段执行请求中携带的针对第五支付阶段的分阶段支付方式对分阶段支付事务进行分解,确定与第五支付阶段对应的目标支付事务为通过支付用户的支付账户针对第五支付阶段的支付额度100进行清偿的事务。Following the above example, in the payment business, the paying user performs 10 payment stages for the product, and the price of the paid product is 1,000 yuan, so each payment stage needs to pay the payment platform 100 yuan corresponding to the payment limit of 100, and In the payment process of the fifth payment stage of the payment user for the goods, the payment user needs to pay 100 yuan to the payment platform at this time; and the payment user can settle the outstanding payment limit in time, and the payment user can Proactively submit a staged execution request for the fifth payment stage. At this time, the staged payment transaction is decomposed based on the staged payment method for the fifth payment stage carried in the staged execution request, and the target payment corresponding to the fifth payment stage is determined The transaction is a transaction for repaying the payment limit 100 in the fifth payment stage through the payment account of the payment user.
可见,在接收到分阶段执行请求的情况下,说明此时支付用户存在主动针对第五个支付阶段的支付额度进行清偿处理的意图,则可以基于分阶段执行请求中携带的分阶段支付方式对分阶段支付事务进行分解,以获得目标支付事务,提高了支付用户针对 支付额度进行清偿的随意性,并且可以随时提前针对支付额度进行清偿,更方便了商家可以提前收到支付额度对应的资金。It can be seen that in the case of receiving the staged execution request, it means that the paying user has the intention of actively repaying the payment limit of the fifth payment stage at this time, and the payment method can be based on the staged payment method carried in the staged execution request. The payment transaction is decomposed in stages to obtain the target payment transaction, which improves the arbitrariness of the payment user to pay off the payment line, and can pay off the payment line in advance at any time, which makes it more convenient for the merchant to receive the funds corresponding to the payment line in advance.
步骤S310,读取所述目标数据执行信息中包含的所述至少一个执行段对应的数据流动数值。Step S310: Read the data flow value corresponding to the at least one execution segment included in the target data execution information.
具体的,在上述获得所述执行方式对应的所述目标数据事务的基础上,进一步的,此时将读取所述目标数据事务中记录有的目标数据执行信息中包含的所述至少一个执行段对应的数据流动数值,其中,所述数据流动数值具体是指需要所述目标数据事务执行处理所需要使用的数据量对应的数值。Specifically, on the basis of obtaining the target data transaction corresponding to the execution mode described above, further, at this time, the at least one execution contained in the target data execution information recorded in the target data transaction will be read The data flow value corresponding to the segment, where the data flow value specifically refers to a value corresponding to the amount of data that needs to be used for processing the target data transaction.
实际应用中,在支付业务中数据流动值即为针对第五支付阶段进行清偿的支付额度100。In practical applications, the data flow value in the payment service is the payment limit of 100 for the fifth payment stage.
步骤S312,按照所述目标数据链路,对所述数据流出对象的数据账户空间的数据额度扣减所述数据流动数值对应的扣减额度,以及从所述数据流出对象的数据账户空间对应的实际数据账户转出所述数据流动数值对应的数据资源至所述分段数据事务的数据流入对象的数据账户。Step S312: According to the target data link, deduct the deduction amount corresponding to the data flow value from the data quota of the data account space of the data outflow object, and the deduction amount corresponding to the data account space of the data outflow object. The actual data account transfers the data resource corresponding to the data flow value to the data account of the data inflow object of the segmented data transaction.
具体的,所述目标数据链路的数据节点至少对应于所述数据流出对象的数据账户空间和所述数据流入对象的数据账户;所述数据账户空间的数据结算周期的时长与所述分段数据事务的执行段的执行处理周期的时长相等,在前一数据结算周期对所述数据账户空间的数据额度扣减所述扣减额度,经后一数据结算周期的数据结算处理后,所述扣减额度对所述数据额度的扣减被更新。Specifically, the data node of the target data link at least corresponds to the data account space of the data outflow object and the data account of the data inflow object; the duration of the data settlement period of the data account space is related to the segment The duration of the execution processing cycle of the execution section of the data transaction is equal, and the data quota of the data account space is deducted from the data quota of the data account space in the previous data settlement cycle. Deduction amount The deduction of the data amount is updated.
实际应用中,在所述数据流出对象为支付用户的情况下,则数据账户空间即为支付平台向支付用户提供支付额度的账户空间,而数据账户空间中的数据额度为支付平台向支付用户提供的支付额度,且该支用额度再被支付用户使用的情况下,需要按照一定的比例偿还相应的资金,相应的,实际数据账户即为向支付平台提供与支用额度对应的资金的金融机构所属的账户,数据流入对象即为商家,数据账户即为商家的存储资金的账户。In practical applications, when the data outflow object is a payment user, the data account space is the account space for the payment platform to provide the payment user with a payment limit, and the data account space in the data account space is the payment platform provides to the payment user If the payment limit is used by the paying user again, the corresponding funds need to be repaid in a certain proportion. Accordingly, the actual data account is the financial institution that provides the payment platform with funds corresponding to the payment limit The account to which the data flows into is the merchant, and the data account is the merchant’s account for storing funds.
例如,支付用户通过网购平台购买了一件衣服,总花销是1000元,并且支付方式是通过支付平台为用户提供的支付额度进行的此次购物,而这1000元用户针对支付平台进行了分期,总期数是10期,每月偿还100元,即每个月支付平台只冻结支付用户的账户中的支付额度100,并不会直接冻结1000元对应的支用额度1000,其中1额 度对应1元;For example, if a paying user buys a piece of clothing through an online shopping platform, the total cost is 1,000 yuan, and the payment method is to make the purchase through the payment line provided to the user by the payment platform, and the 1,000 yuan user has made installments for the payment platform , The total number of periods is 10, and the monthly payment is 100 yuan, that is, the payment platform only freezes the payment limit of 100 in the user’s account each month, and will not directly freeze the payment limit of 1000 corresponding to 1,000 yuan, of which 1 amount corresponds to 1 Yuan;
在支付用户第五次偿还支用额度100的过程中,此时将在用户的账户中冻结支付额度100,同时将通过支付平台对应的金融机构向商家支付100元的资金,将该笔资金转入到商家存储资金的账户,而支付用户只需要在设定的时间内向支付平台偿还与此次支付额度100对应的100元资金即可,后续过程中支付平台将根据用户偿还的100元向金融机构进行偿还。In the process of paying the user to repay the spending limit of 100 for the fifth time, the payment limit of 100 will be frozen in the user's account at this time, and at the same time, 100 yuan of funds will be paid to the merchant through the financial institution corresponding to the payment platform, and the funds will be transferred The payment user only needs to repay the 100 yuan corresponding to the payment limit of 100 to the payment platform within the set time. In the subsequent process, the payment platform will pay the financial institution according to the 100 yuan repaid by the user. The agency makes reimbursements.
可见,在针对目标支付事务进行清偿处理的过程中,为了避免占用支付用户过多的支付额度,可以采用分阶段支付的方式针对分阶段支付事务进行清偿处理,从而实现可以使得支付额度按照支付阶段的支付额度进行扣减,实现降低支付用户向支付平台清偿支付额度压力的情况下,还可以完成支付业务。It can be seen that in the process of clearing the target payment transaction, in order to avoid occupying the payment user’s excessive payment line, a phased payment method can be used to clear the payment process for the phased payment transaction, so that the payment line can be made according to the payment stage. The payment limit is reduced to reduce the pressure of payment users to pay the payment platform to settle the payment limit, and the payment business can also be completed.
除此之外,在针对所述目标数据事务进行执行处理的过程中,还可以直接通过所述数据流出对象的数据账户中转出与所述数据流动值对应的数据资源至所述数据流入对象的数据账户,避免中间的中间方造成过多的附加数据资源,而影响数据流出对象参与所述待处理业务的体验效果,本实施例的一个或多个实施方式中,直接通过所述数据流出对应的数据账户转入所述数据流入对象的数据账户数据资源的具体实现方式如下所述:读取所述目标数据执行信息中包含的所述至少一个执行段对应的数据流动数值;按照所述目标数据链路,从所述数据流出对象的数据账户转出所述数据流动数值对应的数据资源至所述数据流入对象的数据账户;其中,所述目标数据链路的起始数据节点对应于所述数据流出对象的数据账户,终止数据节点对应于所述数据流入对象的数据账户。In addition, in the process of executing the processing for the target data transaction, the data resource corresponding to the data flow value can also be directly transferred to the data inflow object through the data account of the data outflow object Data account to avoid excessive additional data resources caused by intermediary parties and affect the experience effect of data outflow objects participating in the pending service. In one or more implementation manners of this embodiment, the data outflow is directly used The specific implementation manner of transferring the corresponding data account to the data account data resource of the data inflow object is as follows: read the data flow value corresponding to the at least one execution segment contained in the target data execution information; The target data link transfers the data resource corresponding to the data flow value from the data account of the data outflow object to the data account of the data inflow object; wherein, the start data node of the target data link corresponds to When the data flows out of the data account of the object, the terminating data node corresponds to the data account of the data inflow object.
例如,在支付业务中,支付用户针对分阶段支付事务中的第五支付阶段对应的目标支付事务进行支付的过程中,基于目标支付事务中记录的目标数据执行信息确定第五支付阶段对应的支付额度是100,此时按照目标支付事务中记录的目标数据链路从支付用户的支付账户中转出与支付额度100对应的100元资金,并将该部分资金转至商家的支付账户。For example, in a payment business, when a paying user pays for a target payment transaction corresponding to the fifth payment stage in a staged payment transaction, the payment corresponding to the fifth payment stage is determined based on the target data execution information recorded in the target payment transaction. The limit is 100. At this time, according to the target data link recorded in the target payment transaction, 100 yuan of funds corresponding to the payment limit of 100 are transferred from the payment user's payment account, and this part of the funds is transferred to the merchant's payment account.
通过在针对目标支付事务进行清偿处理的过程中,方便了支付额度对应的资金可以直接转至商家,以及实现商家可以在较短的时间内收到支付额度对应的资金,在降低资金转出/转入成本的情况下,提高了商家的收款效率。Through the process of clearing the target payment transaction, it is convenient for the funds corresponding to the payment limit to be directly transferred to the merchant, and it is realized that the merchant can receive the funds corresponding to the payment limit in a short time, which reduces the transfer of funds/ In the case of transfer-in costs, the merchant's collection efficiency is improved.
步骤S314,根据所述数据流动数值以及所述至少一个执行段对应的第一执行附加数据占比,计算所述至少一个执行段对应的第一执行附加数据值。Step S314: Calculate the first execution additional data value corresponding to the at least one execution stage according to the data flow value and the proportion of the first execution additional data corresponding to the at least one execution stage.
具体的,在上述对所述目标数据事务进行执行处理之后,更进一步的,由于针对所述目标数据事务执行处理过程将会产生数据流动数值对应的数据资源产生流动,而在数据资源流动的过程中将会针对待处理业务出现一定的损耗,而为了能够针对损耗部分的数据资源进行填充,可以根据数据流动数据计算出第一执行附加数据值,在后续根据所述第一执行附加数据值针对数据流入对象进行结算即可。Specifically, after the above-mentioned execution processing of the target data transaction is performed, further, since the execution of the processing process for the target data transaction will generate a flow of data resources corresponding to the data flow value, and in the process of data resource flow A certain amount of loss will occur for the service to be processed. In order to be able to fill the lost data resources, the first execution additional data value can be calculated according to the data flow data, and then the first execution additional data value can be calculated according to the first execution additional data value. Data flows into the object for settlement.
实际应用中,所述数据流动数值与所述第一执行附数据占比成正比,例如,在支付业务中,支付用户向商家进行偿还支付额度100的过程中,支付平台将针对支付额度100向商家收取一定的管理费用,该管理费用根据每个支付阶段的支付额度占比1.2%进行计算,即商家需要向支付平台支付的管理费用是100*1.2%=1.2元,再进行后续的针对管理费用进行偿还处理即可。In practical applications, the data flow value is proportional to the proportion of the first execution attached data. For example, in a payment business, when a payment user repays a payment limit of 100 to a merchant, the payment platform will issue a payment to the payment limit of 100. Merchants charge a certain management fee, which is calculated based on 1.2% of the payment amount in each payment stage, that is, the management fee that the merchant needs to pay to the payment platform is 100*1.2%=1.2 yuan, and then follow-up management The cost can be repaid.
步骤S316,对所述数据流入对象进行所述第一执行附加数据值的数据结算处理。Step S316: Perform data settlement processing of the first execution additional data value on the data inflow object.
实际应用中,在上述经过计算确定所述第一执行附加数据值的基础上,进一步的,将针对所述数据流入对象进行所述数据结算处理,其中,所述第一执行附加数据占比,包括对所述分段数据事务在所述至少一个执行段进行执行处理产生的处理费率,依据所述第一执行附加数据占比计算获得的所述第一执行附加数据值由所述数据流入对象承担。In practical applications, on the basis of the above-mentioned calculation to determine the value of the first execution additional data, further, the data settlement processing will be performed for the data inflow object, wherein the proportion of the first execution additional data is Including the processing fee rate generated by the execution processing of the segmented data transaction in the at least one execution segment, and the first execution additional data value obtained by calculating the proportion of the first execution additional data is flowed from the data Subject to bear.
沿用上例,在支付业务中,确定商家承担的管理费用是1.2元,并且在这1.2元中存在0.4元是需要向提供支付额度对应的资金的金融机构缴纳的管理费用,则再商家的支付账户中向支付平台支付1.2元的管理费用,而支付平台将针对此次分阶段支付事务向金融机构支付0.4元的管理费用。Following the above example, in the payment business, it is determined that the management fee borne by the merchant is 1.2 yuan, and 0.4 yuan in the 1.2 yuan is the management fee that needs to be paid to the financial institution that provides the funds corresponding to the payment limit, then the merchant will pay A management fee of 1.2 yuan is paid to the payment platform in the account, and the payment platform will pay a management fee of 0.4 yuan to the financial institution for this phased payment transaction.
可见,实现了可以由商家承担该部分的管理费用,使得支付用户在不承担管理费用的情况下,依旧可以获得商品,很大程度上提高了支付用户的体验效果,并且商家可以通过此方式将滞销的商品进行销售,在不承担亏损的情况下能够促进滞销商品的销售,支付用户还可以通过较低的支付额度获得商品,从而实现多方的获利。It can be seen that it is realized that the merchant can bear this part of the management fee, so that the paying user can still obtain the product without paying the management fee, which greatly improves the experience of the payment user, and the merchant can use this method to pay The sale of unsalable goods can promote the sale of unsalable goods without bearing a loss. The payment user can also obtain goods through a lower payment amount, thereby realizing multi-party profit.
此外,在对所述目标数据事务执行处理之后,可能存在数据流入对象主动针对剩余的执行段对应的数据事务进行执行处理,即数据流入对象需要将数据流出对象还未调用的数据进行处理,此时,数据流入对象可以提交第二执行请求,根据第二执行请求对剩余的执行段对应的数据事务进行执行处理,实现了数据流入对象可以在分段数据事务的执行段被执行部分的情况下,直接将剩余的执行段对应的数据事务进行执行完成, 本实施例的一个或多个实施方式中,具体实现方式如下所述:接收所述分段数据事务的数据流入对象针对剩余执行段提交的第二预执行请求;基于所述第二预执行请求中携带的第二预执行方式,对所述剩余执行段对应的数据执行信息和数据链路进行组装,获得与所述第二预执行方式对应的第二中间数据事务;所述第二中间数据事务中记录有所述第二预执行请求对应的第二总数据流动数值;通过从所述分段数据事务的中间数据对象的数据账户申请所述第二总数据流动数值对应的数据资源至所述数据流入对象的数据账户的方式,对所述第二中间数据事务进行执行处理;根据所述分段数据事务的数据流出对象和所述中间数据对象二者数据账户的账户路径,确定从所述数据流出对象至所述中间数据对象的第二分段数据链路;根据所述第二分段数据链路和所述剩余执行段的数据执行信息,组建所述剩余执行段对应的第二分段数据事务;其中,所述第二中间数据事务中记录有第二中间数据链路,所述第二中间数据链路的起始数据节点对应于所述中间数据对象的数据账户,终止数据节点对应于所述数据流入对象的数据账户。In addition, after processing the target data transaction, there may be data inflow objects that actively perform processing on the data transactions corresponding to the remaining execution segments, that is, the data inflow object needs to process the data that has not yet been called by the data outflow object. When the data inflow object can submit a second execution request, the data transaction corresponding to the remaining execution segment is executed according to the second execution request, so that the data inflow object can be executed in the execution segment of the segmented data transaction. , The data transaction corresponding to the remaining execution segment is directly executed and completed. In one or more implementation manners of this embodiment, the specific implementation is as follows: the data inflow object of the segmented data transaction is received and submitted for the remaining execution segment The second pre-execution request; based on the second pre-execution mode carried in the second pre-execution request, the data execution information and the data link corresponding to the remaining execution segments are assembled to obtain the second pre-execution The second intermediate data transaction corresponding to the mode; the second total data flow value corresponding to the second pre-execution request is recorded in the second intermediate data transaction; through the data account of the intermediate data object from the segmented data transaction The method of applying for the data resource corresponding to the second total data flow value to the data account of the data inflow object is to perform processing on the second intermediate data transaction; according to the data outflow object and the data outflow object of the segmented data transaction The account path of the two data accounts of the intermediate data object determines the second segment data link from the data outflow object to the intermediate data object; according to the second segment data link and the remaining execution segment The data execution information of the second segment data transaction corresponding to the remaining execution segment is formed; wherein, the second intermediate data link is recorded in the second intermediate data transaction, and the start of the second intermediate data link The data node corresponds to the data account of the intermediate data object, and the termination data node corresponds to the data account of the data inflow object.
实际应用中,在接收到数据流入对象提交第二预执行请求的情况下,需要针对剩余的执行段对应的数据事务进行执行处理,而在此过程中,需要确定第二分段数据事务,第二分段数据事务即为剩余执行段对应的数据事务的总数据事务;基于此,首先根据所述第二预执行请求中携带的第二预执行方式对剩余执行段对应的全部数据执行信息和全部数据链路进行组装,获得第二预执行方式对应的第二中间数据事务,所述第二中间数据事务中记录有与所述第二预执行请求对应的第二总数据流动数值;再通过所述分段数据事务的中间数据对象的数据账户申请所述第二总数据流动数据对应的数据资源至所述数据流入对象的数据账户的方式,对所述第二中间数据事务进行执行处理,最后再根据所述数据流出对象和所述中间数据对象二者数据账户的账户路径,确定从所述数据流出对象至所述中间数据对象的第二分段数据链路;根据所述第二分段数据链路和所述剩余执行段的数据执行信息,组建所述剩余执行段对应的第二分段数据事务。In actual applications, when the second pre-execution request is submitted by the data inflow object, the data transaction corresponding to the remaining execution segment needs to be executed. In this process, the second segment data transaction needs to be determined. The two-segment data transaction is the total data transaction of the data transaction corresponding to the remaining execution segment; based on this, first, according to the second pre-execution mode carried in the second pre-execution request, all the data execution information corresponding to the remaining execution segment and All the data links are assembled to obtain the second intermediate data transaction corresponding to the second pre-execution mode, and the second total data flow value corresponding to the second pre-execution request is recorded in the second intermediate data transaction; and then through The data account of the intermediate data object of the segmented data transaction applies for the data resource corresponding to the second total data flow data to the data account of the data inflow object to perform execution processing on the second intermediate data transaction, Finally, according to the account path of the data accounts of both the data outflow object and the intermediate data object, the second segmented data link from the data outflow object to the intermediate data object is determined; according to the second score The segment data link and the data execution information of the remaining execution segment form a second segment data transaction corresponding to the remaining execution segment.
进一步的,在所述第二中间数据事务被执行处理完成之后,此时数据流出对象还需要向中间数据对象提供数据资源,将建立中间数据对象与数据流出对象的第二分段数据事务,通过从数据流出对象的数据账户空间中数据额度扣减的方式,从实际数据账户中转出与该部分数据额度对应的数据资源至中间数据对象的数据账户,本实施例的一个或多个实施方式中,具体实现方式如下所述:在所述第二分段数据事务的剩余执行段中至少一者的执行条件被触发的情况下,读取所述第二分段数据事务中被触发的剩余执行段对应的第二分段数据流动数值;按照所述第二分段数据链路,对所述数据流出对象的数据账户空间的数据额度扣减所述第二分段数据流动数值对应的扣减额度,以及,从 所述数据流出对象的数据账户空间对应的实际数据账户转出所述第二分段数据流动数值对应的数据资源至所述中间数据对象的数据账户;其中,所述数据账户空间的数据结算周期的时长与所述第二分段数据事务的剩余执行段的执行处理周期的时长相等,在前一数据结算周期对所述数据账户空间的数据额度扣减所述扣减额度,经后一数据结算周期的数据结算处理后,所述扣减额度对所述数据额度的扣减被更新。Further, after the execution and processing of the second intermediate data transaction is completed, the data outflow object needs to provide data resources to the intermediate data object at this time, and a second segmented data transaction of the intermediate data object and the data outflow object will be established. The method of deducting the data quota from the data account space of the data outflow object, transferring the data resources corresponding to the part of the data quota from the actual data account to the data account of the intermediate data object, one or more implementations of this embodiment , The specific implementation is as follows: in the case where the execution condition of at least one of the remaining execution segments of the second segmented data transaction is triggered, read the triggered remaining segment of the second segmented data transaction The second segment data flow value corresponding to the execution segment; according to the second segment data link, the data limit of the data account space of the data outflow object is deducted by the deduction corresponding to the second segment data flow value Deduction, and transferring the data resource corresponding to the second segment data flow value from the actual data account corresponding to the data account space of the data outflow object to the data account of the intermediate data object; wherein, the data The duration of the data settlement cycle of the account space is equal to the duration of the execution processing cycle of the remaining execution segment of the second segmented data transaction, and the data quota of the data account space is deducted from the deduction in the previous data settlement cycle Quota, after the data settlement processing in the next data settlement cycle, the deduction of the deduction quota to the data quota is updated.
沿用上例,在商家需要提前对未被支付的资金进行收款的过程中,此时根据商家提交的执行请求中携带的支付方式,确定支付用户还未支付的资金是500元,而此时向支付凭条提供资金的金融机构将可以根据商家的请求向商家支付这500元的资金,这500元的资金最终还是需要支付用户进行支付,故需要从支付用户的支用额度中直接扣除500额度,以表示支付用户在接下来的偿还支付额度对应的资金的过程中,需要偿还支付额度500对应的500元资金。Following the above example, when the merchant needs to collect unpaid funds in advance, according to the payment method carried in the execution request submitted by the merchant, it is determined that the unpaid funds of the paying user are 500 yuan, and at this time The financial institution that provides funds to the payment receipt will be able to pay the 500 yuan of funds to the merchant at the request of the merchant. The 500 yuan of funds will eventually need to be paid to the user for payment, so 500 needs to be directly deducted from the payment limit of the user. The amount is used to indicate that the paying user needs to repay the 500 yuan fund corresponding to the payment amount of 500 in the subsequent process of repaying the funds corresponding to the payment amount.
可见,在商家需要使用资金的情况下,可以针对存在分期的商品进行提取收款,此时金融机构将根据商家提出的请求经过核实后向商家支付对应的资金,而此时支付平台将在支付用户的支付额度中冻结支付用户剩余需要偿还的资金对应的额度,使得支付额度在不被支付用户赖账的情况下,商家可以提前进行收款,很大程度上提高了商家收款的便捷性。It can be seen that in the case that the merchant needs to use funds, the payment can be withdrawn for the goods with installments. At this time, the financial institution will pay the corresponding funds to the merchant after verification according to the request made by the merchant, and the payment platform will pay at this time The user’s payment limit freezes the amount corresponding to the remaining funds that the payment user needs to repay, so that the merchant can collect the payment in advance without the payment user’s repayment, which greatly improves the convenience of the merchant’s collection.
本说明书提供的应用于支付业务中的数据处理方法,实现了支付用户可以针对支付业务按照分阶段支付的方式对购买商品的支付额度进行偿还,并且支付用户无需一次性支付全量的支付资金,也不会占用支付用户的支付账户的全部支付额度,支付用户只需要按照针对分阶段支付事务的各个支付阶段进行支付处理即可完成对支付业务的支付处理,在提高支付用户的体验效果的同时,还是得支付业务场景变得更加活跃。The data processing method used in the payment business provided in this manual realizes that the payment user can repay the payment limit for the purchase of goods in a phased payment method for the payment business, and the payment user does not need to pay the full amount of payment funds at once. It does not occupy the entire payment line of the payment user’s payment account. The payment user only needs to perform payment processing in accordance with the payment stages of the payment transaction in stages to complete the payment processing of the payment business. While improving the payment user’s experience effect, The payment business scenario still has to become more active.
参照附图4,其示出了本说明书实施例提供的第二种应用于支付业务中的数据处理方法的处理流程图,具体包括以下步骤S402至S430。Referring to FIG. 4, it shows a processing flowchart of the second data processing method applied to payment services provided by the embodiment of this specification, which specifically includes the following steps S402 to S430.
步骤S402,获取待处理业务的元数据。Step S402: Obtain metadata of the service to be processed.
本实施例将以所述待处理业务为支付业务对所述数据处理方法进行描述,其中,所述元数据具体是指支付业务中支付用户需要向商家支付的总支付资金;在支付业务场景中,支付用户和商家在针对商品进行交易的过程中,需要支付用户向商家支付一定金额的情况下才能够获得该商品的所有权,而往往商品所需要支付的金额是一笔较大的资金,支付用户若一次性支付该笔资金将会造成接下来一段时间的资金周转不顺的情况, 而支付平台会向用户提供支付额度,通过该笔支付额度也可以针对该笔资金进行支付,然而一次性占用过多支付额度,将会造成支付用户清偿该支付额度的过程中的困难程度,故解决上述问题将会为支付用户带来更佳优质的交易环境。In this embodiment, the data processing method will be described with the service to be processed as a payment service, where the metadata specifically refers to the total payment funds that the payment user needs to pay to the merchant in the payment service; in the payment service scenario , In the process of the transaction between the paying user and the merchant, the user needs to pay a certain amount to the merchant to obtain the ownership of the product, and the amount that needs to be paid for the product is often a large amount of money. If the user pays the funds in one time, it will cause unsuccessful capital turnover in the next period of time, and the payment platform will provide the user with a payment limit, through which the payment can also be made for the funds, but a one-time Occupying too much payment limit will cause difficulty in the process of paying users to settle the payment limit, so solving the above problems will bring a better quality transaction environment for payment users.
实际应用中,参与支付业务的支付用户已经针对商品进行了支付,并且支付方式为支付用户通过在支付平台选择分期支付的方式针对商品进行了支付,即支付用户采用支付平台提供的支付额度按照分阶段支付的方式进行支付,而支付平台将会在每个月的支付时间向商家转入与每个阶段的支付额度相等的资金,并且会在支付用户的支付账户中冻结与该部分资金相等的支付额度,支付用户只需要对该部分支付额度清偿相等的资金即可。In actual applications, payment users participating in the payment service have already paid for the product, and the payment method is that the payment user has paid for the product by choosing installment payment on the payment platform, that is, the payment user uses the payment limit provided by the payment platform to pay for the product. Payment is made in a phased payment method, and the payment platform will transfer funds equal to the payment limit of each phase to the merchant at the payment time each month, and will freeze the payment equal to the part of the funds in the payment account of the paying user For the payment limit, the paying user only needs to repay the same amount of funds for this part of the payment limit.
除此之外,支付用户针对商品支付额度的过程中,提供支付额度的支付平台可以一次性将针对商品的全量支付额度对应的资金转至商家,而支付用户可以针对支付平台提供的支付额度进行分阶段清偿,并且提供与支付额度相等的支付资金的资金提供方出具该笔资金,而当支付用户按照各个支付阶段的清偿资金向支付平台清偿支付额度即可,支付平台将向资金提供方按照与各个支付阶段相等的次数添补该部分资金,从而实现支付用户可以获得需要的商品,商家可以将商品售出之后立即获得资金,而支付平台和资金提供方可以促进资金的流动,从而达到多方获利的局面。In addition, in the process of paying users to pay for goods, the payment platform that provides the payment line can transfer the funds corresponding to the full payment line for the product to the merchant at one time, and the paying user can pay for the payment line provided by the payment platform The payment is settled in stages, and the fund provider who provides payment funds equal to the payment amount issues the funds, and when the payment user pays the payment platform according to the settlement funds of each payment stage, the payment platform will pay the fund provider according to the payment amount. Replenish this part of funds equal to the number of times in each payment stage, so that payment users can obtain the goods they need, merchants can obtain funds immediately after the goods are sold, and payment platforms and fund providers can promote the flow of funds to achieve multi-party access Profitable situation.
需要说明的是,在对待处理业务进行执行处理的过程中,如果待处理业务的执行处理涉及多方参与配合实现,或者待处理业务的执行处理需进行远程数据传输、数据调用,再或者待处理业务的执行处理需要涉及多个处理平台的数据支持,可在分布式系统的基础上实现所述数据处理方法,具体的,通过创建所述待处理业务对应的分布式事务,并基于分布式系统中部署在不同节点之上的支持事务的服务器、资源服务器以及事务管理器之间的协同配合,实现在元数据基础上进行的分布式事务的创建,以及根据提交的执行方式对分布式事务执行处理,从而来进一步提升待处理业务的业务执行处理的处理效率和处理一致性。It should be noted that in the process of executing the business to be processed, if the execution of the business to be processed involves multiple parties participating in the implementation, or the execution of the business to be processed requires remote data transmission, data invocation, or the business to be processed The execution of processing requires data support involving multiple processing platforms. The data processing method can be implemented on the basis of a distributed system. Specifically, by creating a distributed transaction corresponding to the business to be processed, and based on the distributed system The coordination among transaction-supporting servers, resource servers, and transaction managers deployed on different nodes enables the creation of distributed transactions on the basis of metadata, and the execution of distributed transactions according to the submitted execution mode , So as to further improve the processing efficiency and processing consistency of the business execution processing of the business to be processed.
进一步的,在获取所述待处理业务的元数据的基础上,进一步的,为了提高待处理业务场景的安全性,实现可以针对数据流出对象进行准入限制,本实施例的一个或多个实施方式中,准入限制的核验过程具体实现方式如下所述:判断所述元数据中包含的待处理数据处理值是否小于或者等于所述分段数据事务的数据流出对象的数据账户空间的可用数据额度;若是,执行下述步骤S404;若否,向所述数据流出对象推送处理失败的提醒。Further, on the basis of obtaining the metadata of the business to be processed, further, in order to improve the security of the business scenario to be processed, and realize that the access restriction can be performed on the data outflow object, one or more implementations of this embodiment In the method, the specific implementation method of the admission restriction verification process is as follows: Determine whether the processing value of the data to be processed contained in the metadata is less than or equal to the available data in the data account space of the data outflow object of the segmented data transaction Quota; if yes, execute the following step S404; if no, push a notification of processing failure to the data outflow object.
具体的,首先确定所述元数据中包含的待处理数据处理值,再判断所述待处理数据处理值是否小于或等于所述分段数据是指的数据流出对象的账户空间的可用数据额度,若是,说明此时数据流出对象满足准入限制,可以针对元数据创建后续的分段数据事务,则执行下述步骤S404即可;若否,说明此时数据流出对象不满足准入限制,可以向数据流出对象推送处理失败的提醒,所述提醒即为数据流出对象无法针分段数据事务进行执行处理的相关信息。Specifically, first determine the processing value of the to-be-processed data contained in the metadata, and then determine whether the processing value of the to-be-processed data is less than or equal to the available data quota of the account space of the data outflow object that the segmented data refers to, If yes, it indicates that the data outflow object meets the access restriction at this time, and subsequent segmented data transactions can be created for the metadata, and the following step S404 can be performed; if not, it indicates that the data outflow object does not meet the access restriction at this time, and you can A reminder of processing failure is pushed to the data outflow object, and the reminder is related information that the data outflow object cannot perform processing for the segmented data transaction.
通过在根据元数据创建所述分段数据事务之前,对数据流出对象进行准入核验,不仅提高了所述待处理业务场景的安全性,同时可以对数据流出对象产生一定的限制作用,避免非正常数据流出对象对待处理业务产生非正常影响。Before creating the segmented data transaction based on the metadata, the data outflow object is checked for admission, which not only improves the security of the business scenario to be processed, but also has a certain restrictive effect on the data outflow object to avoid non-disclosure. The normal data outflow object has an abnormal impact on the business to be processed.
步骤S404,根据所述元数据创建所述待处理业务的分段数据事务。Step S404: Create a segmented data transaction of the service to be processed according to the metadata.
具体的,所述分段数据事务中记录有各个执行段的数据执行信息和数据链路。Specifically, the data execution information and data links of each execution segment are recorded in the segmented data transaction.
基于此,在上述获取所述待处理业务的所述元数据的基础上,进一步的,此时可以根据所述元数据创建所述待处理业务的分段数据事务,其中,所述分段数据事务具体是指针对待处理事务按照各个执行段划分后待处理的事务,并且所述分段数据事务中记录有各个执行段的数据执行信息和数据链路。Based on this, on the basis of acquiring the metadata of the service to be processed, further, at this time, a segmented data transaction of the service to be processed can be created according to the metadata, wherein the segmented data The transaction specifically refers to the transaction to be processed after the transaction to be processed is divided according to each execution segment, and the data execution information and data link of each execution segment are recorded in the segmented data transaction.
例如,在支付业务中,根据支付业务的总支付额度创建分阶段支付事务,即针对总支付额度可以分阶段支付该支付额度,实现对商品的交易,相应的,分阶段交易事务中记录有各个支付阶段的支付额度信息以及支付链路,其中支付额度信息具体是指针对每个支付阶段支付用户需要向支付平台清偿的支付额度对应的资金,而支付平台需要向商家支付的与支付额度对应的资金相当的资金,支付链路具体是指支付用户支付该笔支付额度对应的资金所采用的支付路径。For example, in the payment business, a phased payment transaction is created based on the total payment line of the payment business, that is, the payment line can be paid in phases for the total payment line to realize the transaction of commodities. Accordingly, each phased transaction transaction records each Payment limit information and payment links in the payment phase, where the payment limit information specifically refers to the funds corresponding to the payment limit that the payment user needs to pay to the payment platform for each payment phase, and the payment platform needs to pay the merchant corresponding to the payment limit For funds equivalent to funds, the payment link specifically refers to the payment path used by the payment user to pay the funds corresponding to the payment amount.
步骤S406,接收所述分段数据事务的数据流入对象针对所述至少一个执行段提交的预执行请求。Step S406: Receive a pre-execution request submitted by the data inflow object of the segmented data transaction for the at least one execution segment.
具体的,在上述根据所述元数据创建待处理业务的分段数据事务的基础上,进一步的,此时确定针对所述分段数据事务可以按照分阶段的方式对各个执行段的目标数据事务进行执行处理,而在针对目标数据事务执行处理之前,可能存在数据流入对象提前对分段数据事务的各个执行段对应的数据事务进行执行处理,此时将根据数据流入对象的执行请求进行后续的提前执行处理的过程;并且,在数据流入对象提交执行请求的情况下,可能是数据流入对象针对一个执行段提交的预执行请求,此时说明数据流入对 象需要针对一个执行段进行提前的执行处理;也可能是针对多个执行段提交的预执行请求,此时说明数据流入对象需要针对多个执行段进行提前的执行处理;其中,多个执行段可以是还未执行处理的全部执行段所对应的。Specifically, on the basis of the above-mentioned creation of segmented data transactions of the service to be processed based on the metadata, further, at this time, it is determined that the segmented data transactions can be processed in a phased manner for the target data transactions of each execution segment Perform execution processing, and before performing processing for the target data transaction, there may be data inflow objects that perform execution processing on the data transactions corresponding to each execution segment of the segmented data transaction in advance. At this time, follow-ups will be performed according to the execution request of the data inflow object The process of performing processing in advance; and, when the data inflow object submits an execution request, it may be a pre-execution request submitted by the data inflow object for an execution segment. At this time, it indicates that the data inflow object needs to perform early execution processing for an execution segment ; It may also be a pre-execution request submitted for multiple execution stages. At this time, it indicates that the data inflow object needs to be processed in advance for multiple execution stages; among them, multiple execution stages may be all execution stages that have not yet been processed. corresponding.
例如,在支付业务中,支付用户在商家购买了一件商品,通过分阶段支付的方式采用支付平台支付额度针对该商品进行支付,支付阶段的数目为10,商品的价格是1000元,故每个阶段支付用户需要针对该商品支付100元的资金,即需要在支付用户的支付账户中冻结支付额度100,待支付用户针对冻结的支付额度100向支付平台偿还的情况下,将解冻支付额度100;基于此,在商家需要一笔资金进行采购新的商品的情况下,商家将向支付平台提交预执行请求,即商家需要未支付完成的支付用户将剩余未支付的资金进行支付,以便商家可以正常采购新的商品;除此之外,商家还可以要求用户针对剩余未支付的资金中的部分资金进行支付。For example, in the payment business, a payment user purchases a product at a merchant, and pays for the product using a payment platform payment line through a phased payment method. The number of payment phases is 10, and the price of the product is 1,000 yuan. Payment users in two stages need to pay 100 yuan for the product, that is, the payment limit of 100 needs to be frozen in the payment user's payment account. If the user to pay for the frozen payment limit of 100 is repaid to the payment platform, the payment limit of 100 will be unfrozen Based on this, in the case that the merchant needs a sum of funds to purchase new goods, the merchant will submit a pre-execution request to the payment platform, that is, the merchant needs the payment that has not been completed. The user will pay the remaining unpaid funds so that the merchant can Procurement of new goods as normal; in addition, the merchant can also require users to pay for part of the remaining unpaid funds.
具体实施时,在接收到所述数据流入对象提交的与执行请求的基础上,后续需要根据所述预执行请求中携带的执行方式对所述至少一个执行段对应的数据执行信息和数据链路进行组装,获得与所述预执行方式对应的目标数据事务,此时的所述目标数据事务即为所述数据流入对象针对需要提前进行执行处理的数据事务组成,而确定所述目标数据事务的过程可以通过步骤S408至步骤S412实现。During specific implementation, on the basis of receiving the execution request and execution request submitted by the data inflow object, the data execution information and data link corresponding to the at least one execution segment need to be subsequently executed according to the execution mode carried in the pre-execution request. Assemble to obtain the target data transaction corresponding to the pre-execution mode. The target data transaction at this time is the composition of the data inflow object for the data transaction that needs to be executed in advance, and the target data transaction is determined The process can be implemented through step S408 to step S412.
步骤S408,根据所述预执行请求对应的所述至少一个执行段的目标数据执行信息,计算所述预执行请求对应的总数据流动数值。Step S408: Calculate the total data flow value corresponding to the pre-execution request according to the target data execution information of the at least one execution segment corresponding to the pre-execution request.
具体的,在接收到所述数据流入对象针对至少一个执行段提交的预执行请求的基础上,进一步的,需要根据所述预执行请求对应至少一个执行段的目标数据执行信息,计算出所述预执行请求对应的总数据流动数值,其中,所述总数据流动数值具体是指需要向数据流入对象进行执行处理过程中所需要处理的数据量。Specifically, on the basis of receiving the pre-execution request submitted by the data inflow object for at least one execution segment, further, it is necessary to calculate the target data execution information of at least one execution segment corresponding to the pre-execution request. The total data flow value corresponding to the pre-execution request, where the total data flow value specifically refers to the amount of data that needs to be processed in the execution process of the data flow object.
沿用上例,在商家需要支付用户针对还未支付的5个支付阶段的支付额度对应的资金进行收款的情况下,此时根据商家提交的预执行请求计算出总支付额度对应的资金是500元,而由于针对该商品的支付资金是由支付平台以支付额度的形式进行支付,故中间关系即为支付平台在每个支付阶段向商家进行支付资金,而金融机构将向支付平台提供该笔资金,支付平台将结合该笔资金在支付用户的支付账户中冻结与该笔资金相同的支付额度,而支付用户需要每个支付阶段向支付平台支付与该笔支付额度对应的资金即可。Following the above example, when the merchant needs to pay the user to collect the funds corresponding to the payment limit of the five payment stages that have not been paid, the funds corresponding to the total payment limit are calculated at this time according to the pre-execution request submitted by the merchant is 500 Since the payment for the commodity is paid by the payment platform in the form of payment quota, the intermediate relationship is that the payment platform pays the merchant at each payment stage, and the financial institution will provide the payment platform to the payment platform. Funds, the payment platform will freeze the same payment limit as the funds in the payment account of the payment user in combination with the funds, and the payment user needs to pay the payment platform the funds corresponding to the payment limit in each payment stage.
步骤S410,基于所述分段数据事务的数据流入对象和中间数据对象二者数据账户的账户路径确定目标数据链路。Step S410: Determine the target data link based on the account paths of the data accounts of both the data inflow object and the intermediate data object of the segmented data transaction.
具体的,在根据所述目标数据执行信息计算确定所述总数据流动数值的基础上,进一步的,还需要结合所述目标数据链路才能够组装为针对预执行请求对应的目标数据事务,而所述目标数据链路是指数据流入对象与中间数据对象针对目标数据事务进行执行处理的过程中数据资源流动对应的路径,即将基于所述分段数据事务的数据流入对象和中间数据对象二者数据账户的账户路径确定目标数据链路。Specifically, on the basis of calculating and determining the total data flow value based on the target data execution information, further, it is necessary to combine the target data link to be able to assemble the target data transaction corresponding to the pre-execution request, and The target data link refers to the path corresponding to the flow of data resources during the execution of the target data transaction between the data inflow object and the intermediate data object, that is, both the data inflow object and the intermediate data object based on the segmented data transaction The account path of the data account determines the target data link.
在支付业务中,数据流入对象为商家,中间数据对象为金融机构和支付平台,故根据金融机构与商家的资金转账路径确定目标支付链路,再进行后续组建目标数据事务的过程即可。In the payment business, the data inflow object is the merchant, and the intermediate data object is the financial institution and payment platform. Therefore, the target payment link is determined according to the fund transfer path between the financial institution and the merchant, and the subsequent process of establishing the target data transaction can be carried out.
步骤S412,基于所述总数据流动数值和所述目标数据链路组建中间数据事务,作为所述目标数据事务。In step S412, an intermediate data transaction is established based on the total data flow value and the target data link as the target data transaction.
具体的,所述目标数据链路的起始数据节点对应于所述中间数据对象的数据账户,终止数据节点对应于所述数据流入对象的数据账户,即通过所述目标数据链路可以实现将数据资源从中间数据对象的数据账户转至所述数据流入对象的数据账户;基于此,将结合所述总数据流动数值以及所述目标数据链路组建出所述目标数据事务。Specifically, the starting data node of the target data link corresponds to the data account of the intermediate data object, and the terminating data node corresponds to the data account of the data inflow object. Data resources are transferred from the data account of the intermediate data object to the data account of the data inflow object; based on this, the target data transaction is formed by combining the total data flow value and the target data link.
沿用上例,在支付业务中,目标数据事务即为针对商家的收款资金500元,需要金融机构向商家支付该笔收款资金500元,而支付方式即可通过金融机构存储资金的账户转入至商家存储资金的账户。Following the above example, in the payment business, the target data transaction is 500 yuan for the merchant's collection of funds, and the financial institution needs to pay the merchant 500 yuan for the collection of funds, and the payment method can be transferred through the account of the financial institution storing funds. Into the merchant’s account where the funds are stored.
步骤S414,从所述中间数据对象的数据账户申请所述总数据流动数值对应的数据资源至所述数据流入对象的数据账户。Step S414: Apply for the data resource corresponding to the total data flow value from the data account of the intermediate data object to the data account of the data flow object.
具体的,在上述确定所述目标数据事务的基础上,进一步的,此时需要针对所述目标数据事务进行执行处理,而在执行处理的过程中,由于涉及到数据流入对象、数据流出对象以及中间数据对象,故优先需要根据数据流入对象与中间数据对象的目标数据事务进行执行处理,具体是指通过所述中间数据对象的数据账户中申请与总数据流动数值对应的数据资源,转至所述数据流入对象的数据账户。Specifically, on the basis of the above determination of the target data transaction, further, at this time, it is necessary to perform processing for the target data transaction, and in the process of performing processing, because the data inflow object, the data outflow object, and the data outflow object are involved in the process of execution processing. Intermediate data objects, therefore, priority needs to be executed according to the target data transaction of the data inflow object and the intermediate data object. Specifically, it refers to applying for the data resource corresponding to the total data flow value in the data account of the intermediate data object and transfer to the The stated data flows into the data account of the object.
在支付业务中,确定商家针对支付用户需要收款的支付资金是500元,此时将根据商家的预执行请求由金融机构向商家转入500元资金,通过金融机构存储资金的账户转入至商家存储资金的账户即可。In the payment business, it is determined that the payment fund that the merchant needs to collect for the payment user is 500 yuan. At this time, the financial institution will transfer 500 yuan to the merchant according to the merchant’s pre-execution request, and transfer to the account through the financial institution’s depository funds. The account where the merchant stores the funds is fine.
步骤S416,根据所述分段数据事务的数据流出对象和所述中间数据对象二者数据账户的账户路径,确定从所述数据流出对象至所述中间数据对象的分段数据链路。Step S416: Determine the segmented data link from the data outflow object to the intermediate data object according to the account path of the data outflow object of the segmented data transaction and the data account of the intermediate data object.
具体的,在针对所述数据流入对象和中间数据对象的目标数据事务执行完成的基础上,还需要对数据流出对象与中间数据对象之间的数据资源流动情况进行处理,将根据所述分段数据事务的数据流出对象和中间数据对象二者的账户路径,确定从所述数据流出对象至所述中间数据对象的分段数据链路。Specifically, after the execution of the target data transaction for the data inflow object and the intermediate data object is completed, the data resource flow between the data outflow object and the intermediate data object needs to be processed, and the data resource flow between the data outflow object and the intermediate data object will be processed according to the segment The account paths of both the data outflow object and the intermediate data object of the data transaction determine the segmented data link from the data outflow object to the intermediate data object.
在支付业务中,由于金融机构已经向商家支付了500元的支付资金,此时确定支付用户拖欠支付平台500元,而支付平台拖欠金融机构500元,相对于支付用户只需要向支付平台支付500元的支付资金即可对支付额度500进行解冻,此时基于支付用户与支付平台之间的账户路径,以及支付平台与金融机构之间的账户路径,确定分段支付链路即为支付用户的资金存储账户指向支付平台的资金存储账户,而支付平台的资金存储账户指向金融机构的资金存储账户,即资金的流向可以根据各个资金存储账户的指向进行流动。In the payment business, because the financial institution has paid the merchant 500 yuan in payment funds, it is determined that the payment user owes the payment platform 500 yuan, and the payment platform owes the financial institution 500 yuan. Compared with the payment user only need to pay 500 yuan to the payment platform Yuan of payment funds can unfreeze the payment limit of 500. At this time, based on the account path between the payment user and the payment platform, and the account path between the payment platform and the financial institution, the segment payment link is determined to be the payment user’s The fund storage account points to the fund storage account of the payment platform, and the fund storage account of the payment platform points to the fund storage account of the financial institution, that is, the flow of funds can flow according to the direction of each fund storage account.
步骤S418,根据所述分段数据链路和所述分段数据事务中待执行的执行段的数据执行信息,组建所述分段数据事务中待执行的执行段的第一分段数据事务。Step S418, according to the segment data link and the data execution information of the execution segment to be executed in the segment data transaction, construct the first segment data transaction of the execution segment to be executed in the segment data transaction.
具体的,所述分段数据链路的起始数据节点对应于所述数据流出对象的数据账户,终止数据节点对应于所述中间数据对象的数据账户,即通过所述分段数据链路可以实现将数据资源从数据流出对象的数据账户转至所述中间数据对象的数据账户;基于此,此时需要根据所述分段数据路径和所述分段数据事务中待执行的执行段的数据执行信息,组建所述分段数据事务中待执行的执行段的第一分段数据事务。Specifically, the starting data node of the segmented data link corresponds to the data account of the data outflow object, and the terminating data node corresponds to the data account of the intermediate data object, that is, the segmented data link can Realize the transfer of data resources from the data account of the data outflow object to the data account of the intermediate data object; based on this, at this time, it needs to be based on the segmented data path and the data of the execution segment to be executed in the segmented data transaction The execution information constitutes the first segment data transaction of the execution segment to be executed in the segment data transaction.
在支付业务中,金融机构向商家转入支付资金500元之后,商家完成收款任务,此时还存在支付关系有支付用户拖欠支付平台500元,而支付平台拖欠金融机构500元,将根据支付用户与支付平台的支付链路,支付平台与金融机构的支付链路,以及支付用户针对商家的分阶段支付事务中待执行的支付阶段的支付信息,组建第一分阶段支付事务,即需要针对支付用户与支付平台之间的支付关系、以及支付平台与金融机构之间的支付关系对应的事务。In the payment business, after the financial institution transfers 500 yuan of payment funds to the merchant, the merchant completes the collection task. At this time, there is a payment relationship. The payment user defaults on the payment platform 500 yuan, and the payment platform owes 500 yuan to the financial institution. The payment link between the user and the payment platform, the payment link between the payment platform and the financial institution, and the payment information of the payment stage to be executed in the staged payment transaction of the payment user for the merchant, to form the first staged payment transaction, which means that The transaction corresponding to the payment relationship between the payment user and the payment platform, and the payment relationship between the payment platform and the financial institution.
步骤S420,在所述第一分段数据事务的执行段的执行条件被触发的情况下,读取所述第一分段数据事务中被触发的执行段对应的第一分段数据流动数值。Step S420, when the execution condition of the execution segment of the first segment data transaction is triggered, read the first segment data flow value corresponding to the triggered execution segment in the first segment data transaction.
具体的,在上述组建出第一分段数据事务的基础上,进一步的,为了避免在数 据流出对象遗忘数据执行处理的情况下,可以在设定的时间节点对所述第一分段数据事务的执行段的执行条件是否被触发进行检测,若否,则说明此时还未达到针对所述第一分段数据事务进行后续的执行处理的时间节点,不作任何处理即可;若是,则说明此时需要针对所述第一分段数据事务进行后续的执行处理过程,读取所述第一分段数据事务中被触发的执行段对应的第一分段数据流动数值。Specifically, on the basis of the foregoing establishment of the first segment data transaction, further, in order to avoid performing processing on the forgotten data of the data outflow object, the first segment data transaction may be performed at a set time node. Whether the execution condition of the execution section of is triggered for detection, if not, it means that the time node for subsequent execution processing for the first segment data transaction has not been reached at this time, and no processing is required; if it is, it means that At this time, it is necessary to perform a subsequent execution process for the first segmented data transaction, and read the first segmented data flow value corresponding to the triggered execution segment in the first segmented data transaction.
在支付业务中,当商家已经收到金融机构转入的500元支付资金的情况下,此时需要检测当前时间是否达到支付用户针对商品的分期支付时间节点,在确定第一分段支付事务的支付阶段的执行条件被触发时,则确定当前时间节点为需要支付用户针对支付额度进行偿还,在偿还支付额度过程中,由于商家已经提前对支付用户未支付的资金进行了收款,此时支付平台可以直接冻结支付用户的500支付额度,则对应于第一分段支付事务中被触发的支付阶段对应的第一分段支付资金是500元;或者此时支付平台可以只冻结支付用户的100支付额度,则对应于第一分段支付事务中被触发的支付阶段对应的第一分段支付资金是100元。In the payment business, when the merchant has received the 500 yuan payment fund transferred from the financial institution, it is necessary to check whether the current time has reached the payment user’s installment payment time node for the product. When determining the first stage payment transaction When the execution condition of the payment phase is triggered, it is determined that the current time node is that the user needs to pay the payment limit. In the process of repaying the payment limit, because the merchant has collected the unpaid funds of the paying user in advance, the payment is now The platform can directly freeze the payment user’s 500 payment limit, then the first payment fund corresponding to the triggered payment stage in the first payment transaction is 500 yuan; or the payment platform can only freeze the payment user’s 100 The payment limit corresponds to 100 yuan for the first segment payment fund corresponding to the triggered payment stage in the first segment payment transaction.
实际应用中,第一分段数据流动数值可以根据实际应用场景进行确定,本实施例在此不作任何限定。In actual applications, the first segment data flow value can be determined according to actual application scenarios, and this embodiment does not make any limitation here.
步骤S422,按照所述分段数据链路,对所述数据流出对象的数据账户空间的数据额度扣减所述第一分段数据流动数值对应的扣减额度,以及,从所述数据流出对象的数据账户空间对应的实际数据账户转出所述第一分段数据流动数值对应的数据资源至所述中间数据对象的数据账户。Step S422: According to the segmented data link, deduct the deduction amount corresponding to the first segmented data flow value from the data quota of the data account space of the data outflow object, and, from the data outflow object The actual data account corresponding to the data account space transfers the data resource corresponding to the first segmented data flow value to the data account of the intermediate data object.
具体的,所述数据账户空间的数据结算周期的时长与所述第一分段数据事务的执行段的执行处理周期的时长相等,在前一数据结算周期对所述数据账户空间的数据额度扣减所述扣减额度,经后一数据结算周期的数据结算处理后,所述扣减额度对所述数据额度的扣减被更新。Specifically, the duration of the data settlement cycle of the data account space is equal to the duration of the execution processing cycle of the execution stage of the first segmented data transaction, and the data quota of the data account space is deducted in the previous data settlement cycle. The deduction quota is subtracted, and after the data settlement processing of the subsequent data settlement cycle, the deduction of the deduction quota to the data quota is updated.
基于此,在上述读取所述第一分段数据流动数值的基础上,进一步的,此需要针对所述第一分段数据事务进行执行处理,而所述第一分段数据事务的执行处理过程具体是指从所述数据流出对象的数据账户空间的数据额度扣减与所述第一分段数据流动数值对应的扣减额度,同时,还需要从所述数据流出对象的数据账户空间对应的实际数据账户中转出与所述第一分段数据流动数值对应的数据资源至所述中间数据对象的数据账户。Based on this, on the basis of the above-mentioned reading of the first segmented data flow value, further, it is necessary to perform processing for the first segmented data transaction, and the execution processing for the first segmented data transaction The process specifically refers to deducting the deduction amount corresponding to the first segment data flow value from the data quota of the data account space of the data outflow object, and at the same time, it also needs to correspond to the data account space of the data outflow object The data resource corresponding to the first segmented data flow value is transferred from the actual data account to the data account of the intermediate data object.
在支付业务中,在达到支付用户偿还支付额度的过程中,将基于第一分段支付资金在支付用户的支付账户中扣减与第一分段支付资金对应的额度,若第一分段支付资金是500元,则在支付用户的支付账户中扣减支付额度500;第一分段支付资金是100元,则在支付用户的支付账户中扣减支付额度100;此时,在支付用户的支付账户扣减与第一分段支付资金对应的额度的基础上,同时还需要从支付用户的资金存储账户中向金融机构转出与第一分段支付资金对应的资金,即需要支付用户向金融机构转出500元资金或者100元资金。In the payment business, in the process of reaching the payment user’s repayment limit, the payment account of the payment user will deduct the amount corresponding to the first tranche payment fund based on the first tranche payment fund. If the first tranche payment is If the fund is 500 yuan, the payment limit will be deducted by 500 in the payment user’s payment account; if the first segment payment fund is 100 yuan, the payment limit will be deducted by 100 in the payment user’s payment account; at this time, the payment limit will be deducted from the payment user’s payment account. On the basis of deducting the amount corresponding to the first-stage payment funds in the payment account, it is also necessary to transfer the funds corresponding to the first-stage payment funds from the payment user’s fund storage account to the financial institution. The financial institution transfers 500 yuan of funds or 100 yuan of funds.
实际应用中,在支付用户的支付额度被使用的情况下,每个结算时间都会对支付额度进行更新,例如,支付用户的支付额度是5000,在支付用户使用支付额度100的情况下,此时支付用户的可用支付额度是4900,而当达到结算周期后,并且支付用户针对支付额度100进行了还款,则结算周期后的支付额度恢复至5000。In practical applications, when the payment user’s payment limit is used, the payment limit will be updated every settlement time. For example, the payment user’s payment limit is 5000, and the payment user’s payment limit is 100. The available payment limit of the paying user is 4900, and when the settlement period is reached, and the paying user repays the payment limit of 100, the payment limit after the settlement period is restored to 5000.
步骤S424,根据所述总数据流动数值以及对应的第二执行附加数据占比,计算第二执行附加数据值。Step S424: Calculate the second execution additional data value according to the total data flow value and the corresponding second execution additional data proportion.
步骤S426,对所述数据流入对象进行所述第二执行附加数据值的数据结算处理。Step S426: Perform the data settlement processing of the second execution additional data value on the data inflow object.
具体的,所述第二执行附加数据占比,包括对所述中间数据事务进行执行处理产生的处理费率,依据所述第二执行附加数据占比计算获得的所述第二执行附加数据值由所述数据流入对象承担。Specifically, the proportion of the second execution additional data includes the processing fee rate generated by the execution processing of the intermediate data transaction, and the second execution additional data value obtained by calculation based on the proportion of the second execution additional data It is assumed by the data inflow object.
实际应用中,在上述针对第一分段数据事务执行处理后,此时由于所述数据流入对象主动提取针对剩余的执行段的数据事务进行执行处理,故此时需要数据流入对象针对所述总数据流动数值提供一定的附加数据值,而所述第二执行附加数据值需要根据所述总数据流动值以及所述第二执行附加数据占比进行计算确定,以进行结算处理过程。In practical applications, after the above-mentioned processing is performed for the first segment data transaction, at this time, because the data inflow object actively extracts the data transactions for the remaining execution segments for execution processing, the data inflow object is required to target the total data at this time. The flow value provides a certain additional data value, and the second execution additional data value needs to be calculated and determined according to the total data flow value and the proportion of the second execution additional data to perform the settlement process.
在支付业务中,确定商家针对支付用户收取了500元的支付资金,此时将由商家承担500元支付资金对应的服务费用,而该笔服务费用将按照收取的支付资金的服务比例进行计算,500元支付资金的服务比例是1%,则商家需要向支付平台缴纳500*1%=5元的服务费用。并且在该笔服务费用中包含后续支付用户向金融机构支付资金的处理费用,即金融机构收取的部分费用也包含在5元的服务费用中。In the payment business, it is determined that the merchant has collected 500 yuan of payment funds for the payment user. At this time, the merchant will bear the service fee corresponding to the 500 yuan payment fund, and the service fee will be calculated according to the service ratio of the collected payment funds, 500 The service ratio of the RMB payment fund is 1%, and the merchant needs to pay 500*1%=5 yuan for the service fee to the payment platform. And the service fee includes the processing fee for the subsequent payment of funds by the user to the financial institution, that is, part of the fee charged by the financial institution is also included in the service fee of 5 yuan.
步骤S428,根据所述第一分段数据流动数值以及所述执行段对应的第一执行附加数据占比,计算所述执行段对应的第一执行附加数据值。Step S428: Calculate the first execution additional data value corresponding to the execution segment according to the first segment data flow value and the proportion of the first execution additional data corresponding to the execution segment.
步骤S430,对所述数据流入对象进行所述第一执行附加数据值的数据结算处理。Step S430: Perform data settlement processing of the first execution additional data value on the data inflow object.
具体的,所述第一执行附加数据占比,包括对所述第一分段数据事务在所述执行段进行执行处理产生的处理费率,依据所述第一执行附加数据占比计算获得的所述第一执行附加数据值由所述数据流入对象承担。Specifically, the proportion of the first execution additional data includes the processing fee rate generated by the execution processing of the first segmented data transaction in the execution segment, which is calculated based on the proportion of the first execution additional data The first execution additional data value is borne by the data inflow object.
实际应用中,由于所述数据流出对象所使用的数据资源,属于所述中间数据对象提供给数据流出对象的,此时针对第一分段数据流动数值将需要提供部分的第一执行附加数据值,而所述第一执行附加数据值需要根据所述第一分段数据流动数值以及所述执行段对应的第一执行附加数据占比进行计算获得,最后根据第一执行附加数据值对所述数据流入对象进行数据结算处理即可。In actual applications, because the data resource used by the data outflow object belongs to the intermediate data object provided to the data outflow object, at this time, it is necessary to provide part of the first execution additional data value for the first segmented data flow value , And the first execution additional data value needs to be calculated according to the first segmented data flow value and the proportion of the first execution additional data corresponding to the execution section, and finally the first execution additional data value is calculated according to the first execution additional data value. The data inflow object can be processed for data settlement.
在支付业务中,当支付用户使用支付额度购买商品后,属于使用了金融机构的资金购买了该商品,而该部分资金将会产生一定数额利息,而为了保证支付用户的利益最大化,该利息可由商家承担,在确定用户的第一分段支付额度是500元的情况下,则利息为500*0.1%=0.5元,此时商家向支付平台缴纳0.5元的利息费用即可。In the payment business, when a paying user purchases a product using the payment limit, the product is purchased using the funds of a financial institution, and this part of the fund will generate a certain amount of interest. In order to ensure the maximum benefit of the paying user, the interest It can be borne by the merchant. If it is determined that the user's first segment payment amount is 500 yuan, the interest is 500*0.1%=0.5 yuan. At this time, the merchant pays 0.5 yuan interest fee to the payment platform.
实际应用中,所述第一执行附加数据占比以及所述第二执行附加数据占比可以根据实际应用场景进行设定,可以是1%,1.2%,0.1%等,本实施例在此不作任何限定。In actual applications, the proportion of the first execution additional data and the proportion of the second execution additional data can be set according to actual application scenarios, and can be 1%, 1.2%, 0.1%, etc., which are not described in this embodiment. Any restrictions.
本说明书提供的应用于支付业务中的数据处理方法,实现了在商家提前针对支付用户的支付资金进行收款的情况下,支付平台可以商家需求由金融机构向商家转入与支付用户未支付的剩余支付资金相等的资金,实现了商家可以随时的针对未收到的支付资金进行收款,以方便商家可以在缺少使用资金的情况下,得到资金的填充,并且商家收取支付金额的过程中不会对支付用户造成影响,支付用户只需要按照原分期方式针对支付额度进行还款即可,无需承担服务费用以及资金利息费用,很大程度上提高了支付用户的体验效果。The data processing method used in the payment business provided in this manual realizes that when the merchant collects the payment funds of the paying user in advance, the payment platform can transfer the payment from the financial institution to the merchant and the payment user has not paid. The remaining payment funds are equal to the funds, so that the merchant can collect payment for the unreceived payment funds at any time, so that the merchant can be filled with funds in the absence of funds, and the merchant does not receive the payment amount. It will have an impact on payment users. The payment users only need to repay the payment amount according to the original installment method, without having to bear service fees and capital interest costs, which greatly improves the experience of the payment users.
本说明书提供的第一种数据处理装置实施例如下。The implementation example of the first data processing device provided in this specification is as follows.
在上述的实施例中,提供了数据处理方法,与之相对应的,还提供了一种数据处理装置,下面结合附图进行说明。In the above-mentioned embodiments, a data processing method is provided, and correspondingly, a data processing device is also provided, which will be described below with reference to the accompanying drawings.
参照附图5,其示出了本实施例提供的第一种数据处理装置的示意图,包括:获取模块502,被配置为获取待处理业务的元数据;创建模块504,被配置为根据所述元数据创建所述待处理业务的分段数据事务;所述分段数据事务中记录有各个执行段的数据执行信息和数据链路;解析模块506,被配置为基于针对所述分段数据事务的至少一个执行段提交的执行方式,对所述分段数据事务进行解析,获得与所述执行方式对应的 目标数据事务;处理模块508,被配置为根据所述目标数据事务中记录的所述至少一个执行段的目标数据执行信息和目标数据链路,对所述目标数据事务进行执行处理。Referring to FIG. 5, which shows a schematic diagram of the first data processing apparatus provided by this embodiment, it includes: an obtaining module 502 configured to obtain metadata of a service to be processed; and a creating module 504 configured to obtain metadata according to the Metadata creates a segmented data transaction of the service to be processed; the segmented data transaction records the data execution information and data links of each execution segment; the parsing module 506 is configured to be based on the segmented data transaction The execution mode submitted by at least one execution stage of the execution section is analyzed, and the segmented data transaction is analyzed to obtain the target data transaction corresponding to the execution mode; the processing module 508 is configured to perform according to the recorded data in the target data transaction. The target data execution information and target data link of at least one execution segment perform execution processing on the target data transaction.
可选地,所述数据处理装置,还包括:确定模块,被配置为根据所述分段数据事务的数据流出对象的历史数据日志,确定向所述数据流出对象推送的执行段的推荐数目,并根据所述数据流出对象针对所述推荐数目提交的执行指令确定所述分段数据事务的执行段的数目;或者,根据所述分段数据事务的数据流入对象的数据记录,预测所述数据流入对象的数据流入时间区间,按照所述数据流入时间区间确定所述分段数据事务的执行段的时长和/或数目。Optionally, the data processing device further includes: a determining module configured to determine the recommended number of execution segments pushed to the data outflow object according to the historical data log of the data outflow object of the segmented data transaction, And determine the number of execution stages of the segmented data transaction according to the execution instructions submitted by the data outflow object for the recommended number; or, predict the data according to the data record of the segmented data transaction's data inflow object The data inflow time interval of the inflow object is determined according to the data inflow time interval to determine the duration and/or the number of execution segments of the segmented data transaction.
可选地,所述解析模块506,包括:分解子模块,被配置为在所述分段数据事务的执行段的执行条件被触发的情况下,按照所述执行段的执行条件被触发对应的分段执行方式,对所述分段数据事务进行分解,获得与所述分段执行方式对应的目标数据事务;或者,接收所述分段数据事务的数据流出对象针对所述至少一个执行段提交的分段执行请求;基于所述分段执行请求中携带的分段执行方式,对所述分段数据事务进行分解,获得与所述分段执行方式对应的目标数据事务;其中,所述与所述分段执行方式对应的目标数据事务中,记录有所述至少一个执行段的目标数据执行信息和目标数据链路,所述目标数据执行信息基于所述至少一个执行段的数据执行信息确定,所述目标数据链路基于所述至少一个执行段的数据链路确定。Optionally, the parsing module 506 includes: a decomposition sub-module configured to trigger the corresponding execution condition of the execution segment when the execution condition of the execution segment of the segmented data transaction is triggered. The segmented execution mode decomposes the segmented data transaction to obtain the target data transaction corresponding to the segmented execution mode; or, the data outflow object of the received segmented data transaction is submitted for the at least one execution segment The segmented execution request; based on the segmented execution mode carried in the segmented execution request, the segmented data transaction is decomposed to obtain the target data transaction corresponding to the segmented execution mode; wherein, the and In the target data transaction corresponding to the segmented execution mode, the target data execution information and target data link of the at least one execution segment are recorded, and the target data execution information is determined based on the data execution information of the at least one execution segment , The target data link is determined based on the data link of the at least one execution section.
可选地,所述处理模块508,包括:第一读取子模块,被配置为读取所述目标数据执行信息中包含的所述至少一个执行段对应的数据流动数值;第一资源转移子模块,被配置为按照所述目标数据链路,对所述数据流出对象的数据账户空间的数据额度扣减所述数据流动数值对应的扣减额度,以及,从所述数据流出对象的数据账户空间对应的实际数据账户转出所述数据流动数值对应的数据资源至所述分段数据事务的数据流入对象的数据账户;其中,所述目标数据链路的数据节点至少对应于所述数据流出对象的数据账户空间和所述数据流入对象的数据账户;所述数据账户空间的数据结算周期的时长与所述分段数据事务的执行段的执行处理周期的时长相等,在前一数据结算周期对所述数据账户空间的数据额度扣减所述扣减额度,经后一数据结算周期的数据结算处理后,所述扣减额度对所述数据额度的扣减被更新。Optionally, the processing module 508 includes: a first reading sub-module configured to read the data flow value corresponding to the at least one execution segment contained in the target data execution information; the first resource transfer sub-module The module is configured to deduct the deduction amount corresponding to the data flow value from the data quota of the data account space of the data outflow object according to the target data link, and to deduct the data account from the data outflow object The actual data account corresponding to the space transfers the data resource corresponding to the data flow value to the data account of the data inflow object of the segmented data transaction; wherein, the data node of the target data link at least corresponds to the data outflow The data account space of the object and the data account of the data flowing into the object; the duration of the data settlement cycle of the data account space is equal to the duration of the execution processing cycle of the execution section of the segmented data transaction, which is in the previous data settlement cycle The deduction quota is deducted from the data quota of the data account space, and the deduction of the data quota by the deduction quota is updated after the data settlement processing in the subsequent data settlement cycle.
可选地,所述处理模块508,还包括:第二读取子模块,被配置为读取所述目标数据执行信息中包含的所述至少一个执行段对应的数据流动数值;第二资源转移子模块,被配置为按照所述目标数据链路,从所述数据流出对象的数据账户转出所述数据流动数 值对应的数据资源至所述数据流入对象的数据账户;其中,所述目标数据链路的起始数据节点对应于所述数据流出对象的数据账户,终止数据节点对应于所述数据流入对象的数据账户。Optionally, the processing module 508 further includes: a second reading sub-module configured to read the data flow value corresponding to the at least one execution segment contained in the target data execution information; second resource transfer A sub-module configured to transfer data resources corresponding to the data flow value from the data account of the data outflow object to the data account of the data inflow object according to the target data link; wherein, the target data The start data node of the link corresponds to the data account of the data outflow object, and the end data node corresponds to the data account of the data inflow object.
可选地,所述处理模块508,还包括:计算子模块,被配置为根据所述数据流动数值以及所述至少一个执行段对应的第一执行附加数据占比,计算所述至少一个执行段对应的第一执行附加数据值;结算处理子模块,被配置为对所述数据流入对象进行所述第一执行附加数据值的数据结算处理;其中,所述第一执行附加数据占比,包括对所述分段数据事务在所述至少一个执行段进行执行处理产生的处理费率,依据所述第一执行附加数据占比计算获得的所述第一执行附加数据值由所述数据流入对象承担。Optionally, the processing module 508 further includes: a calculation sub-module configured to calculate the at least one execution segment based on the data flow value and the proportion of the first execution additional data corresponding to the at least one execution segment Corresponding first execution additional data value; settlement processing sub-module configured to perform data settlement processing of the first execution additional data value on the data inflow object; wherein the proportion of the first execution additional data includes The processing fee rate generated by the execution processing of the segmented data transaction in the at least one execution segment, the first execution additional data value obtained by calculating the proportion of the first execution additional data is flowed into the object by the data bear.
可选地,所述解析模块506,还包括:请求接收子模块,被配置为接收所述分段数据事务的数据流入对象针对所述至少一个执行段提交的预执行请求;组装子模块,被配置为基于所述预执行请求中携带的预执行方式,对所述至少一个执行段对应的数据执行信息和数据链路进行组装,获得与所述预执行方式对应的目标数据事务。Optionally, the parsing module 506 further includes: a request receiving sub-module configured to receive a pre-execution request submitted by the data inflow object of the segmented data transaction for the at least one execution segment; an assembling sub-module, It is configured to assemble the data execution information and the data link corresponding to the at least one execution segment based on the pre-execution mode carried in the pre-execution request to obtain the target data transaction corresponding to the pre-execution mode.
可选地,所述组装子模块,包括:计算单元,被配置为根据所述预执行请求对应的所述至少一个执行段的目标数据执行信息,计算所述预执行请求对应的总数据流动数值;数据链路确定单元,被配置为基于所述分段数据事务的数据流入对象和中间数据对象二者数据账户的账户路径确定目标数据链路;事务确定单元,被配置为基于所述总数据流动数值和所述目标数据链路组建中间数据事务,作为所述目标数据事务;其中,所述目标数据链路的起始数据节点对应于所述中间数据对象的数据账户,终止数据节点对应于所述数据流入对象的数据账户。Optionally, the assembly sub-module includes: a calculation unit configured to calculate the total data flow value corresponding to the pre-execution request according to the target data execution information of the at least one execution segment corresponding to the pre-execution request The data link determining unit is configured to determine the target data link based on the account paths of the data accounts of both the data inflow object and the intermediate data object of the segmented data transaction; the transaction determining unit is configured to determine the target data link based on the total data The flow value and the target data link form an intermediate data transaction as the target data transaction; wherein the starting data node of the target data link corresponds to the data account of the intermediate data object, and the terminating data node corresponds to The data flows into the data account of the object.
可选地,所述处理模块508,还包括:数据资源转移子模块,被配置为从所述中间数据对象的数据账户申请所述总数据流动数值对应的数据资源至所述数据流入对象的数据账户;分段数据链路确定子模块,被配置为根据所述分段数据事务的数据流出对象和所述中间数据对象二者数据账户的账户路径,确定从所述数据流出对象至所述中间数据对象的分段数据链路;事务组建子模块,被配置为根据所述分段数据链路和所述分段数据事务中待执行的执行段的数据执行信息,组建所述分段数据事务中待执行的执行段的第一分段数据事务;其中,所述分段数据链路的起始数据节点对应于所述数据流出对象的数据账户,终止数据节点对应于所述中间数据对象的数据账户。Optionally, the processing module 508 further includes: a data resource transfer sub-module configured to apply for the data resource corresponding to the total data flow value from the data account of the intermediate data object to the data of the data inflow object Account; a segmented data link determination sub-module configured to determine from the data outflow object to the intermediate data account according to the account path of the data outflow object of the segmented data transaction and the intermediate data object The segmented data link of the data object; the transaction building submodule is configured to form the segmented data transaction according to the segmented data link and the data execution information of the execution segment to be executed in the segmented data transaction The first segment data transaction of the execution segment to be executed in the segment data link; wherein the start data node of the segment data link corresponds to the data account of the data outflow object, and the terminating data node corresponds to the intermediate data object Data account.
可选地,所述数据处理装置,还包括:流动数值读取模块,被配置为在所述第一分段数据事务的执行段的执行条件被触发的情况下,读取所述第一分段数据事务中被 触发的执行段对应的第一分段数据流动数值;额度扣减模块,被配置为按照所述分段数据链路,对所述数据流出对象的数据账户空间的数据额度扣减所述第一分段数据流动数值对应的扣减额度,以及,从所述数据流出对象的数据账户空间对应的实际数据账户转出所述第一分段数据流动数值对应的数据资源至所述中间数据对象的数据账户;其中,所述数据账户空间的数据结算周期的时长与所述第一分段数据事务的执行段的执行处理周期的时长相等,在前一数据结算周期对所述数据账户空间的数据额度扣减所述扣减额度,经后一数据结算周期的数据结算处理后,所述扣减额度对所述数据额度的扣减被更新。Optionally, the data processing device further includes: a flow value reading module configured to read the first segment when the execution condition of the execution segment of the first segment data transaction is triggered The first segment data flow value corresponding to the execution segment triggered in the segment data transaction; the quota deduction module is configured to deduct the data quota of the data account space of the data outflow object according to the segment data link Subtract the deduction amount corresponding to the first segment data flow value, and transfer the data resource corresponding to the first segment data flow value from the actual data account corresponding to the data account space of the data outflow object to all The data account of the intermediate data object; wherein the duration of the data settlement cycle of the data account space is equal to the duration of the execution processing cycle of the execution section of the first segmented data transaction, and the data settlement cycle is The data quota of the data account space deducts the deduction quota, and the deduction of the data quota by the deduction quota is updated after the data settlement processing in the subsequent data settlement cycle.
可选地,所述处理模块508,还包括:数据值计算子模块,被配置为根据所述总数据流动数值以及对应的第二执行附加数据占比,计算第二执行附加数据值;数据结算子模块,被配置为对所述数据流入对象进行所述第二执行附加数据值的数据结算处理;其中,所述第二执行附加数据占比,包括对所述中间数据事务进行执行处理产生的处理费率,依据所述第二执行附加数据占比计算获得的所述第二执行附加数据值由所述数据流入对象承担。Optionally, the processing module 508 further includes: a data value calculation sub-module configured to calculate the second execution additional data value according to the total data flow value and the corresponding second execution additional data proportion; data settlement A sub-module configured to perform the data settlement processing of the second execution additional data value on the data inflow object; wherein the second execution additional data accounted for, including those generated by performing processing on the intermediate data transaction The processing fee rate, the second execution additional data value calculated according to the proportion of the second execution additional data is borne by the data inflow object.
可选地,所述数据处理装置,还包括:计算模块,被配置为根据所述第一分段数据流动数值以及所述执行段对应的第一执行附加数据占比,计算所述执行段对应的第一执行附加数据值;数据结算模块,被配置为对所述数据流入对象进行所述第一执行附加数据值的数据结算处理;其中,所述第一执行附加数据占比,包括对所述第一分段数据事务在所述执行段进行执行处理产生的处理费率,依据所述第一执行附加数据占比计算获得的所述第一执行附加数据值由所述数据流入对象承担。Optionally, the data processing device further includes: a calculation module configured to calculate the execution segment corresponding to the execution segment based on the first segment data flow value and the proportion of the first execution additional data corresponding to the execution segment The data settlement module is configured to perform the data settlement processing of the first execution additional data value on the data inflow object; wherein the proportion of the first execution additional data includes the The processing fee generated by the execution processing of the first segmented data transaction in the execution segment is borne by the data inflow object, and the first additional data value obtained by calculation based on the proportion of the first additional data to be executed.
可选地,所述数据处理装置,还包括:预执行请求接收模块,被配置为接收所述分段数据事务的数据流入对象针对剩余执行段提交的第二预执行请求;组装模块,被配置为基于所述第二预执行请求中携带的第二预执行方式,对所述剩余执行段对应的数据执行信息和数据链路进行组装,获得与所述第二预执行方式对应的第二中间数据事务;所述第二中间数据事务中记录有所述第二预执行请求对应的第二总数据流动数值;事务执行处理模块,被配置为通过从所述分段数据事务的中间数据对象的数据账户申请所述第二总数据流动数值对应的数据资源至所述数据流入对象的数据账户的方式,对所述第二中间数据事务进行执行处理;链路确定模块,被配置为根据所述分段数据事务的数据流出对象和所述中间数据对象二者数据账户的账户路径,确定从所述数据流出对象至所述中间数据对象的第二分段数据链路;事务组建模块,被配置为根据所述第二分段数据 链路和所述剩余执行段的数据执行信息,组建所述剩余执行段对应的第二分段数据事务;其中,所述第二中间数据事务中记录有第二中间数据链路,所述第二中间数据链路的起始数据节点对应于所述中间数据对象的数据账户,终止数据节点对应于所述数据流入对象的数据账户。Optionally, the data processing device further includes: a pre-execution request receiving module configured to receive a second pre-execution request submitted by the data inflow object of the segmented data transaction for the remaining execution segment; an assembly module, configured In order to assemble the data execution information and data link corresponding to the remaining execution segments based on the second pre-execution mode carried in the second pre-execution request, to obtain the second intermediate corresponding to the second pre-execution mode Data transaction; the second intermediate data transaction records the second total data flow value corresponding to the second pre-execution request; the transaction execution processing module is configured to pass from the intermediate data object of the segmented data transaction The data account applies for the data resource corresponding to the second total data flow value to the data account of the data inflow object, and executes the second intermediate data transaction; the link determination module is configured to perform processing according to the The account path of both the data outflow object of the segmented data transaction and the data account of the intermediate data object determines the second segmented data link from the data outflow object to the intermediate data object; the transaction building module is configured In order to construct a second segment data transaction corresponding to the remaining execution segment according to the second segment data link and the data execution information of the remaining execution segment; wherein, the second intermediate data transaction records the second segment data transaction Two intermediate data links, the start data node of the second intermediate data link corresponds to the data account of the intermediate data object, and the termination data node corresponds to the data account of the data inflow object.
可选地,所述数据处理装置,还包括:数值读取模块,被配置为在所述第二分段数据事务的剩余执行段中至少一者的执行条件被触发的情况下,读取所述第二分段数据事务中被触发的剩余执行段对应的第二分段数据流动数值;资源转移模块,被配置为按照所述第二分段数据链路,对所述数据流出对象的数据账户空间的数据额度扣减所述第二分段数据流动数值对应的扣减额度,以及,从所述数据流出对象的数据账户空间对应的实际数据账户转出所述第二分段数据流动数值对应的数据资源至所述中间数据对象的数据账户;其中,所述数据账户空间的数据结算周期的时长与所述第二分段数据事务的剩余执行段的执行处理周期的时长相等,在前一数据结算周期对所述数据账户空间的数据额度扣减所述扣减额度,经后一数据结算周期的数据结算处理后,所述扣减额度对所述数据额度的扣减被更新。Optionally, the data processing device further includes: a value reading module configured to read the data when the execution condition of at least one of the remaining execution segments of the second segmented data transaction is triggered. The second segment data flow value corresponding to the remaining execution segment that is triggered in the second segment data transaction; the resource transfer module is configured to perform data flow of the data out of the object according to the second segment data link The data quota of the account space deducts the deduction quota corresponding to the data flow value of the second segment, and transfers the data flow value of the second segment from the actual data account corresponding to the data account space of the data outflow object The corresponding data resource to the data account of the intermediate data object; wherein the duration of the data settlement cycle of the data account space is equal to the duration of the execution processing cycle of the remaining execution stages of the second segmented data transaction, and the previous A data settlement cycle deducts the deduction quota from the data quota of the data account space, and after the data settlement processing of the subsequent data settlement cycle, the deduction of the data quota by the deduction quota is updated.
可选地,所述数据处理装置,还包括:判断模块,被配置为判断所述元数据中包含的待处理数据处理值是否小于或者等于所述分段数据事务的数据流出对象的数据账户空间的可用数据额度;若所述判断模块的执行结果为是,则运行所述创建模块504;若所述判断模块的执行结果为否,则运行提醒推送模块;所述提醒推送模块,被配置为向所述数据流出对象推送处理失败的提醒。Optionally, the data processing device further includes: a judging module configured to judge whether the processing value of the data to be processed contained in the metadata is less than or equal to the data account space of the data outflow object of the segmented data transaction If the execution result of the judgment module is yes, run the creation module 504; if the execution result of the judgment module is no, then run the reminder push module; the reminder push module is configured to Push a notification of processing failure to the data outflow object.
可选地,所述待处理业务包括:交易业务,数据流处理业务,支付业务;相应的,所述待处理业务的分段数据事务包括:所述交易业务采用分阶段交易方式进行执行的分阶段交易事务,所述数据流处理业务采用分阶段处理方式进行执行的分阶段数据流处理事务,所述支付业务采用分阶段支付方式进行执行的分阶段支付事务;所述分段数据事务的执行段包括:所述分阶段交易事务在分阶段交易过程中的各个交易阶段,所述分阶段数据流处理事务在分阶段处理过程中的各个数据处理阶段,所述分阶段支付事务在分阶段支付过程中的各个支付阶段。Optionally, the to-be-processed services include: transaction services, data stream processing services, and payment services; correspondingly, the segmented data transactions of the to-be-processed services include: segmentation in which the transaction services are executed in a phased transaction mode. A staged transaction transaction, the data stream processing business adopts a staged data stream processing transaction executed by a staged processing method, and the payment business adopts a staged payment transaction executed by a staged payment method; the execution of the segmented data transaction The segments include: each transaction stage in the staged transaction process of the staged transaction transaction, each data processing stage of the staged data flow processing transaction in the staged processing process, the staged payment transaction in the staged payment The various payment stages in the process.
上述为本实施例的第一种数据处理装置的示意性方案。需要说明的是,该数据处理装置的技术方案与上述的数据处理方法的技术方案属于同一构思,数据处理装置的技术方案未详细描述的细节内容,均可以参见上述数据处理方法的技术方案的描述。The foregoing is a schematic solution of the first data processing device of this embodiment. It should be noted that the technical solution of the data processing device belongs to the same concept as the technical solution of the above-mentioned data processing method. For details of the technical solution of the data processing device that are not described in detail, please refer to the description of the technical solution of the above-mentioned data processing method. .
参照附图6,其示出了本说明书实施例提供的一种交易处理方法的处理流程图, 具体包括以下步骤S602至S608。Referring to FIG. 6, it shows a processing flowchart of a transaction processing method provided by an embodiment of this specification, which specifically includes the following steps S602 to S608.
步骤S602,获取待处理交易的交易元数据。Step S602: Obtain transaction metadata of the transaction to be processed.
实际应用中,在支付方针对与被支付方之间存在的支付需求进行支付处理的过程中,通常需要支付方针对支付需求向被支付方支付全部资金才能够获得支付需求对应的物品的所有权,而支付方此时将支付全部资金,可能会导致支付方资金周转不顺畅的情况发生,为了避免这一情况而导致支付方无法完成支付需求,支付平台向支付方提供了一笔可用于支付需求的支付额度,支付方可以通过该笔支付额度针对支付需求进行支付,只需要在支付额度的偿还时间向支付平台偿还与支付额度对应的支付资金即可。In practical applications, in the process of payment processing between the paying party and the paid party for the payment demand, the paying party usually needs to pay all the funds to the paid party for the payment demand to obtain the ownership of the item corresponding to the payment demand. The payer will pay all the funds at this time, which may cause the payer’s funds to flow unsmoothly. In order to avoid this situation and the payer’s failure to complete the payment demand, the payment platform provides the payer with a sum that can be used for payment needs. The payer can pay for the payment demand through the payment line, and only needs to repay the payment platform corresponding to the payment line at the time of the payment line repayment.
而随着支付方对支付额度需求的增大,以及使用支付额度的普遍性,可能发生在一次针对支付需求动用过多支付额度的情况,而导致支付额度可能在接下来的一段时间内不能够满足支付方的其他支付意图,并且在偿还支付额度的过程中支付方需要一次性承担全部支付额度,可能存在降低支付方对支付额度使用的频次,进而造成支付业务的用户流失。With the increase in demand for payment limits by payers and the universality of using payment limits, it may happen that too many payment limits are used for payment needs at one time, and the payment limits may not be available for a period of time. Satisfying the payer’s other payment intentions, and the payer needs to bear the full payment line at one time during the process of repaying the payment line. This may reduce the frequency of the payer’s use of the payment line and cause the loss of payment service users.
有鉴于此,本实施例提供的交易处理方法,通过实现在支付方针对支付需求支付额度的过程中,支付平台可以按照分期的方式将支付额度进行分期管理,即由支付方购买商品后,根据购买商品的价格通过支付额度进行分期偿还,而每一期所需要偿还的金额由支付平台的交易代理机构承担,每一期所需要偿还的金额对应的支付额度将会在支付方的支付账户中进行冻结,后续支付方向支付平台偿还资金后,再由支付平台向交易代理机构偿还资金,而对应的冻结支付额度将解冻,直至全部期数对应的额度全部偿还完成后,此次支付业务结束。In view of this, the transaction processing method provided in this embodiment realizes that the payment platform can manage the payment limit in installments in the process of the payer’s payment of the payment demand. That is, after the payer purchases the goods, the payment platform can manage the payment by installments. The price of the purchased goods is paid in installments through the payment line, and the amount to be repaid in each period is borne by the transaction agency of the payment platform. The payment line corresponding to the amount to be repaid in each period will be in the payment account of the payer After freezing, the subsequent payment platform repays the funds to the payment platform, and then the payment platform repays the funds to the transaction agency, and the corresponding frozen payment quota will be unfrozen until the payment of the corresponding quota for all periods is completed, and the payment business ends.
需要说明的是,在对待处理交易进行交易处理的过程中,如果待处理交易的交易处理涉及多方参与配合实现,或者待处理交易的交易处理需要进行远程数据传输、数据调用,再或者待处理交易的交易处理需要涉及多个处理平台的数据支持,可在分布式系统的基础上实现所述交易处理方法,具体的,通过创建所述待处理交易对应的分布式事务,并基于分布式系统中部署在不同节点之上的支持事务的服务器、资源服务器以及事务管理器之间的协同配合,实现在交易元数据基础上进行的分布式事务的创建,以及根据提交的执行方式对分布式事务交易处理,从而来进一步提升待处理交易的交易处理的处理效率和处理一致性。It should be noted that in the process of transaction processing of the transaction to be processed, if the transaction processing of the transaction to be processed involves the participation of multiple parties, or the transaction processing of the transaction to be processed requires remote data transmission, data invocation, or transaction to be processed The transaction processing requires data support involving multiple processing platforms. The transaction processing method can be implemented on the basis of a distributed system. Specifically, by creating a distributed transaction corresponding to the transaction to be processed, and based on the distributed system The coordination among transaction-supporting servers, resource servers, and transaction managers deployed on different nodes enables the creation of distributed transactions based on transaction metadata, and the execution of distributed transactions according to the submitted execution mode. Processing, thereby further improving the processing efficiency and processing consistency of the transaction processing of the transaction to be processed.
本实施例将以针对各个支付阶段对应的支付事务进行支付处理的过程进行描述。This embodiment will be described in terms of the process of performing payment processing for payment transactions corresponding to each payment stage.
例如,支付方从被支付方处购买了一件商品,而支付方是通过支付平台进行分期的方式进行付款,商品价格是1000元,分期的期数是10次,故每次需要支付方偿还100元的资金,而支付方为了方便资金流动,通过支付平台的支付额度进行分期支付,即每个月支付平台将在支付方持有的支付额度中扣除与100元资金对应的100额度,支付方持有的额度是5000,故在支付方购买该商品后,每个月将在持有的额度中扣除100,此时支付方持有的额度是4900,而向支付平台提供支付额度的交易代理机构将向被支付方偿还这100额度对应的100元资金,而当支付方向支付机构偿还支付额度100对应的100元资金后,支付平台在将100元资金还至交易代理机构。For example, the payer purchases a product from the payee, and the payer pays in installments through the payment platform. The price of the product is 1,000 yuan, and the number of installments is 10 times, so the payer needs to repay each time In order to facilitate the flow of funds, the payer pays in installments through the payment line of the payment platform, that is, each month the payment platform will deduct the 100 line corresponding to the 100 yuan fund from the payment line held by the payer. The amount held by the party is 5000, so after the payer purchases the product, 100 will be deducted from the amount held every month. At this time, the amount held by the payer is 4900, and the payment platform is provided with a payment limit transaction The agency will repay the 100 yuan of funds corresponding to the 100 amount to the payee, and when the payment institution repays the 100 yuan of the 100 yuan corresponding to the payment amount of 100 to the payment institution, the payment platform will return the 100 yuan of funds to the transaction agency.
进一步的,在获取待处理交易的交易元数据的基础上,进一步的,为了能够确保待处理交易场景的安全性,可以对支付方进行准入限制,故只有达到准入资格的支付方针对交易元数据创建分期支付事务,本实施例的一个或多个实施方式中,准入资格的验证具体实现方式如下所述:判断所述交易元数据中包含的待交易数值是否小于或者等于所述分期支付事务的支付方的数据账户空间的可用数据额度;若是,执行下述步骤S604;若否,向所述支付方推送处理失败的提醒。Further, on the basis of obtaining the transaction metadata of the pending transaction, further, in order to ensure the security of the pending transaction scenario, access restrictions can be imposed on the payer, so only the payer who meets the qualifications for the transaction Metadata creates an installment payment transaction. In one or more implementations of this embodiment, the verification of access qualification is specifically implemented as follows: Determine whether the value to be traded contained in the transaction metadata is less than or equal to the installment The available data quota of the data account space of the payer of the payment transaction; if yes, execute the following step S604; if not, push a notification of processing failure to the payer.
实际应用中,可以根据支付方的数据账户空间中的可用数据额度判断支付方是否有准入资格,若支付方有准入资格,则执行后续步骤即可,若支付方无准入资格,将向支付方推送提醒信息,提醒支付方无准入资格的具体详情。In practical applications, you can judge whether the payer is eligible for access based on the available data quota in the data account space of the payer. If the payer is eligible for access, just follow the next steps. If the payer is not eligible for access, the payer will be Push reminder information to the payer to remind the payer of the specific details of the disqualification.
例如,支付方在支付平台的支付账户中存在的可用额度是1000元,而支付方需要分期的数额是1500元,此时可以确定支付方无开通支付分期的资格,向支付方发送由于可用额度过小无法针对商品进行分期;支付方在支付平台的支付账户中存在的可用额度是2000元,此时可以确定支付方可以开通支付分期,针对商品进行后续的支付分期处理即可。For example, if the payer’s available quota in the payment account of the payment platform is 1,000 yuan, and the payer’s required installment amount is 1500 yuan, it can be determined that the payer is not eligible for payment installment, and the payer is sent to the payer because of the available quota. If it is too small, it is not possible to install installments for the goods; the payer has an available amount of 2,000 yuan in the payment account of the payment platform. At this time, it can be determined that the payer can open the payment installment and perform subsequent payment installment processing for the goods.
步骤S604,根据所述交易元数据创建所述待处理交易的分期支付事务。Step S604: Create an installment payment transaction of the transaction to be processed according to the transaction metadata.
具体的,所述分期支付事务中记录有各个支付阶段的交易支付信息和支付链路。Specifically, transaction payment information and payment links of each payment stage are recorded in the installment payment transaction.
基于此,在上述确定所述待处理交易的交易元数据的基础上,进一步的,将根据所述元数据创建所述待处理交易的分期支付事务,所述分期支付事务具体是指针对将待处理交易的支付处理过程划分为一个或多个支付阶段,然后针对待处理交易进行事务化,每个支付阶段需要支付处理的事务称之为一个支付事务,则待处理交易的所有支付阶段的数据事务构成的整体即为所述分期支付事务。Based on this, on the basis of determining the transaction metadata of the pending transaction, further, an installment payment transaction of the pending transaction will be created based on the metadata, and the installment payment transaction specifically refers to the pending transaction. The payment processing process of processing transactions is divided into one or more payment stages, and then the transaction to be processed is transactionized. The transaction that requires payment processing in each payment stage is called a payment transaction, and the data of all payment stages of the transaction to be processed The whole of the transaction constitutes the installment transaction.
其中,分期支付事务中记录的各个支付阶段的交易支付信息具体是指每个支付阶段支付方需要支付的信息,被支付方所需要收取支付资金的信息,所述支付链路具体是指支付方向被支付方支付处理的过程中支付资金流动的路径。Among them, the transaction payment information of each payment stage recorded in the installment transaction specifically refers to the information that the payer needs to pay for each payment stage, the information that the paid party needs to collect payment funds, and the payment link specifically refers to the direction of payment. The path through which payment funds flow during payment processing by the payee.
进一步的,在确定所述分期支付事务的情况下,所述分期支付事务所包含的支付阶段的分期数目可以由支付方自定义选择,也可以向支付方进行推荐分期数目,本实施例的一个或多个实施方式中,分期数目的确定具体实现方式如下所述:根据所述分期支付事务的支付方的历史交易支付日志,确定向所述支付方推送的支付阶段的推荐分期数目,并根据所述支付方针对所述推荐分期数目提交的支付指令确定所述分期支付事务的支付阶段的分期数目。Further, in the case of determining the installment payment transaction, the number of installments of the payment phase included in the installment payment firm can be selected by the payer, or the payer can recommend the number of installments, one of this embodiment In one or more embodiments, the specific implementation method for determining the number of installments is as follows: according to the historical transaction payment log of the payer of the installment transaction, determine the recommended installment number of the payment stage pushed to the payer, and according to The payment instruction submitted by the payer for the recommended installment number determines the installment number of the payment phase of the installment transaction.
例如,根据支付方的历史交易支付日志,确定支付方经常使用的分期数目是四期,则确定向支付方推送的推荐的支付阶段的推荐分期数目是四期,此时若用户提交的支付指令是与推荐分期数目相等,则可以确定分期支付事务包含四个支付阶段,若用户提交的支付指令确定分期支付事务的支付阶段的分期数据是五期,则可以确定分期支付事务包含五个支付阶段。For example, according to the historical transaction payment log of the payer, it is determined that the number of installments frequently used by the payer is four installments, and the recommended installment number of the recommended payment stage pushed to the payer is determined to be four installments. At this time, if the user submits a payment instruction If it is equal to the recommended installment number, it can be determined that the installment transaction includes four payment stages. If the payment instruction submitted by the user determines that the installment data of the payment stage of the installment transaction is five installments, it can be determined that the installment transaction includes five payment stages. .
除此之外,还可以根据被支付方的收款时间区间确定分期支付事务的分期时长和/或分期数目,本实施例的一个或多个实施方式中,具体实现方式如下所述:In addition, the installment duration and/or the number of installments of the installment payment transaction can also be determined according to the payment collection time interval of the payee. In one or more implementations of this embodiment, the specific implementation is as follows:
根据所述分期支付事务的被支付方的交易记录,预测所述被支付方的收款时间区间,按照所述收款时间区间确定所述分期支付事务的支付阶段的分期时长和/或分期数目。According to the transaction records of the paid party of the installment payment transaction, predict the payment time interval of the paid party, and determine the installment duration and/or the number of installments of the payment phase of the installment payment transaction according to the payment time interval .
例如,根据被支付方的历史交易记录,确定被支付方在每个月的5号将支出一笔资金,此时预测出被支付方的收款时间是每个月的1号至4号,则按照收款时间区间确定针对分期支付事务的支付阶段的时长,同时确定被支付方的资金流动较为困难,则可以确定分期数目要短一些。For example, based on the historical transaction records of the paid party, it is determined that the paid party will spend a sum of money on the 5th of each month. At this time, it is predicted that the paid party’s collection time will be from the 1st to the 4th of each month. Then, according to the collection time interval to determine the duration of the payment phase for the installment payment transaction, and it is more difficult to determine the fund flow of the paid party, the number of installments can be determined to be shorter.
如上,可以根据支付方的交易支付日志,确定向支付方推送的支付阶段的分期数目,或者也可以根据被支付方的收款时间区间确定分期数目和/或分期时长,实现了可以由支付方自定义支付阶段的完成待处理交易,更进一步的提高了支付方和被支付方的体验效果。As mentioned above, the number of installments of the payment stage pushed to the payer can be determined according to the payment log of the payer, or the number of installments and/or the length of the installment can be determined according to the payment time interval of the payee, so that the payer The completion of pending transactions in the custom payment phase further improves the experience of the payer and the paid party.
步骤S606,基于针对所述分期支付事务的至少一个支付阶段提交的支付方式,对所述分期支付事务进行解析,获得与所述支付方式对应的目标支付事务。Step S606: Analyze the installment payment transaction based on the payment method submitted for at least one payment phase of the installment payment transaction to obtain a target payment transaction corresponding to the payment method.
沿用上例,在支付方购买商品分10个支付阶段的情况下,此时确定针对第五个支付阶段提交的方式对分期支付事务进行解析,确定与该支付方式对应的目标支付事务即为支付方需要对第五个支付阶段对应的支付事务进行支付处理。Following the above example, when the payer purchases the goods in 10 payment stages, at this time, it is determined that the payment method submitted for the fifth payment stage is analyzed to analyze the installment payment transaction, and the target payment transaction corresponding to the payment method is determined to be the payment The party needs to perform payment processing for the payment transaction corresponding to the fifth payment stage.
进一步的,而在确定所述目标支付事务的过程中,为了避免支付方出现忘记针对目标支付事务进行支付处理,可以在设定的时间节点检测支付阶段的支付条件是否被触发,根据触发结果确定目标支付事务并进行后续的支付处理即可,本实施例的一个或多个实施方式中,具体实现方式如下所述:Further, in the process of determining the target payment transaction, in order to prevent the payer from forgetting to perform payment processing for the target payment transaction, it is possible to detect whether the payment conditions in the payment phase are triggered at a set time node, and determine according to the trigger result Target payment transaction and perform subsequent payment processing. In one or more implementation manners of this embodiment, the specific implementation manner is as follows:
在所述分期支付事务的支付阶段的支付条件被触发的情况下,按照所述支付阶段的支付条件被触发对应的分期支付方式,对所述分期支付事务进行分解,获得与所述分期支付方式对应的目标支付事务。In the case that the payment conditions of the payment phase of the installment transaction are triggered, the installment payment transaction is decomposed according to the installment payment method corresponding to the triggering of the payment conditions of the payment phase to obtain the same payment method as the installment payment method. Corresponding target payment transaction.
例如,在每个月的1号将对自动针对支付方扣除支付额度,此时需要确定支付方的支付方式,并根据支付方式对分期支付事务进行分解,确定需要针对第五个支付阶段进行分期支付,将第五个支付阶段对应的支付事务确定为目标支付事务。For example, on the 1st of each month, the payment limit will be automatically deducted from the payer. At this time, the payment method of the payer needs to be determined, and the installment payment transaction must be broken down according to the payment method, and it is determined that the fifth payment stage needs to be instalmented Payment, the payment transaction corresponding to the fifth payment stage is determined as the target payment transaction.
除此之外,确定目标支付事务的过程中还可以有支付方主动执行的情况下确定,本实施例的一个或多个实施方式中,具体实现方式如下所述:接收所述分期支付事务的支付方针对所述至少一个支付阶段提交的分期支付请求;基于所述分期支付请求中携带的分期支付方式,对所述分期支付事务进行分解,获得与所述分期支付方式对应的目标支付事务。In addition, the process of determining the target payment transaction can also be determined when the payer actively executes it. In one or more implementations of this embodiment, the specific implementation is as follows: An installment payment request submitted by the paying party for the at least one payment stage; based on the installment payment method carried in the installment payment request, the installment payment transaction is decomposed, and the target payment transaction corresponding to the installment payment method is obtained.
具体的,所述与所述分期支付方式对应的目标支付事务中,记录有所述至少一个支付阶段的目标交易支付信息和目标支付链路,所述目标交易支付信息基于所述至少一个支付阶段的交易支付信息确定,所述目标支付链路基于所述至少一个支付阶段的支付链路确定。Specifically, in the target payment transaction corresponding to the installment payment method, the target transaction payment information and target payment link of the at least one payment stage are recorded, and the target transaction payment information is based on the at least one payment stage The payment information of the transaction is determined, and the target payment link is determined based on the payment link of the at least one payment stage.
沿用上例,在接收到支付方针对第五个支付阶段提交分期支付请求的情况下,可以确定此时支付方存在主动针对第五个阶段的支付事务进行支付处理的意图,此时可以根据支付方提交的分期支付请求中携带的分期支付方式,对分期支付事务进行解析,确定分期支付方式对应的目标支付事务即为第五个支付阶段对应的支付事务。Following the above example, when the payer submits an installment payment request for the fifth payment stage, it can be determined that the payer has the intention of actively processing the payment transaction in the fifth stage at this time. At this time, it can be based on the payment The installment payment method carried in the installment payment request submitted by the party analyzes the installment payment transaction and determines that the target payment transaction corresponding to the installment payment method is the payment transaction corresponding to the fifth payment stage.
步骤S608,根据所述目标支付事务中记录的所述至少一个支付阶段的目标交易支付信息和目标支付链路,对所述目标支付事务进行支付处理。Step S608: Perform payment processing on the target payment transaction according to the target transaction payment information and target payment link of the at least one payment stage recorded in the target payment transaction.
实际应用中,在确定目标支付事务的基础上,可以根据目标支付事务中记录的 所述至少一个支付阶段的目标交易支付信息和目标支付链路对所述目标支付事务进行支付处理。In practical applications, on the basis of determining the target payment transaction, the target payment transaction may be processed according to the target transaction payment information and target payment link of the at least one payment stage recorded in the target payment transaction.
例如,在确定目标支付事务为针对第五个支付阶段的支付事务的基础上,此时确定第五个支付阶段的交易支付信息是从交易方的支付额度中扣除100额度,支付平台向被支付方转入100元资金,而该笔资金由交易代理机构提供,支付方需要在本月内向支付平台偿还与支付额度100对应的100元资金。For example, on the basis of determining that the target payment transaction is the payment transaction for the fifth payment stage, at this time, it is determined that the transaction payment information of the fifth payment stage is 100 amount deducted from the payment amount of the transaction party, and the payment platform sends the paid The party transfers 100 yuan of funds, and the funds are provided by the transaction agency, and the payer needs to repay the 100 yuan of funds corresponding to the payment limit of 100 to the payment platform within this month.
具体的,在对所述目标支付事务进行支付处理的过程,一方面可以从支付方的数据账户空间中扣减相应的额度,同时向被支付方转入支付资源实现对目标支付事务的支付处理,本实施例的一个或多个实施方式中,针对目标支付事务的支付处理过程如下所述:Specifically, in the process of payment processing for the target payment transaction, on the one hand, the corresponding amount can be deducted from the data account space of the paying party, and at the same time, the payment resources can be transferred to the paid party to realize the payment processing of the target payment transaction. In one or more implementation manners of this embodiment, the payment processing process for the target payment transaction is as follows:
读取所述目标交易支付信息中包含的所述至少一个支付阶段对应的支付数值;Reading the payment value corresponding to the at least one payment phase contained in the target transaction payment information;
按照所述目标支付链路,对所述支付方的数据账户空间的数据额度扣减所述支付数值对应的扣减额度,以及,从所述支付方的数据账户空间对应的实际数据账户转出所述支付数值对应的支付资源至所述分期支付事务的被支付方的数据账户。According to the target payment link, deduct the deduction amount corresponding to the payment value from the data amount of the payer’s data account space, and transfer from the actual data account corresponding to the payer’s data account space The payment resource corresponding to the payment value goes to the data account of the payee of the installment payment transaction.
具体的,所述目标支付链路的支付节点至少对应于所述支付方的数据账户空间和所述被支付方的数据账户;所述数据账户空间的数据结算周期的时长与所述分期支付事务的支付阶段的支付处理周期的时长相等,在前一数据结算周期对所述数据账户空间的数据额度扣减所述扣减额度,经后一数据结算周期的数据结算处理后,所述扣减额度对所述数据额度的扣减被更新。Specifically, the payment node of the target payment link corresponds to at least the data account space of the paying party and the data account of the payee; the duration of the data settlement cycle of the data account space is related to the installment payment transaction The duration of the payment processing cycle of the payment phase is equal, the data amount of the data account space is deducted from the data amount of the data account space in the previous data settlement cycle, and after the data settlement processing of the subsequent data settlement cycle, the deduction The deduction of the quota to the data quota is updated.
沿用上例,在针对第五个支付阶段的支付事务进行支付处理的过程,可以是从支付方的支付账户中扣除100额度,此时再从支付平台的交易代理机构的资金账户中向被支付方转出100元资金,而支付方需要在设定时间内向支付平台偿还与100额度对应的100元资金,支付平台将该笔资金偿还给交易代理机构。Following the above example, in the process of payment processing for the payment transaction in the fifth payment stage, 100 credits can be deducted from the payment account of the payer, and then the payment is made from the fund account of the transaction agency of the payment platform. The party transfers out 100 yuan of funds, and the payer needs to repay the 100 yuan of funds corresponding to the 100 amount to the payment platform within a set time, and the payment platform repays the funds to the transaction agency.
除此之外,还可以直接通过交易方向被支付方转出支付资源,本实施例的一个或多个实施方式中,具体实现方式如下所述:读取所述目标交易交付信息中包含的所述至少一个支付阶段对应的支付数值;按照所述目标支付链路,从所述支付方的支付账户转出所述支付数值对应的支付资源至所述被支付方的支付账户。In addition, the payment resource can also be directly transferred to the paid party through the transaction. In one or more implementation manners of this embodiment, the specific implementation manner is as follows: read all the information contained in the target transaction delivery information The payment value corresponding to the at least one payment stage; according to the target payment link, the payment resource corresponding to the payment value is transferred from the payment account of the paying party to the payment account of the payee.
具体的,所述目标支付链路的起始支付节点对应于所述支付方的支付账户,终止支付节点对应于所述被支付方的支付账户。Specifically, the initial payment node of the target payment link corresponds to the payment account of the paying party, and the termination payment node corresponds to the payment account of the payee.
此外,在针对目标支付事务进行支付处理的过程中,或在针对目标支付事务进行支付处理之后,还需要计算第一支付附加费用,所述第一支付附加费用可以理解为向被支付方收取的管理费用或服务费用,本实施例的一个或多个实施方式中,对被支付方进行结算处理的过程如下所述:根据所述支付数值以及所述至少一个支付阶段对应的第一支付费率,计算所述至少一个支付阶段对应的第一支付附加费;对所述被支付方进行所述第一支付附加费用的结算处理。In addition, in the process of payment processing for the target payment transaction, or after the payment processing for the target payment transaction, the first payment additional fee needs to be calculated, and the first payment additional fee can be understood as a charge to the payee Management fees or service fees. In one or more implementations of this embodiment, the process of settlement processing for the payee is as follows: According to the payment value and the first payment rate corresponding to the at least one payment stage Calculate the first payment surcharge corresponding to the at least one payment stage; perform settlement processing of the first payment surcharge on the paid party.
具体的,所述第一支付费率,包括对所述分期支付事务在所述至少一个支付阶段进行支付处理产生的支付费率,依据所述第一支付费率计算获得的所述第一支付附加费由所述被支付方承担。Specifically, the first payment rate includes the payment rate generated by the payment processing of the installment transaction in the at least one payment stage, and the first payment obtained by calculating according to the first payment rate The surcharge shall be borne by the paid party.
例如,支付平台向被支付方转入的100元资金,而支付方的支付额度被扣减了100额度,此时支付平台将向被支付方收取这100元资金的管理费用,而管理费用按照管理费率0.1%进行计算,确定管理费用是100*0.1%=0.1元,此时将向被支付方收取0.1元的管理费用即可,并且该部分管理费用中还包括交易代理机构向支付平台提供资金的部分管理费用。For example, if the payment platform transfers 100 yuan of funds to the payee, and the payer’s payment limit is deducted by 100, the payment platform will charge the payee the management fee of the 100 yuan fund, and the management fee is in accordance with The management fee rate is 0.1% for calculation, and it is determined that the management fee is 100*0.1%=0.1 yuan. At this time, a management fee of 0.1 yuan will be charged to the payee, and this part of the management fee also includes the transaction agency’s payment to the payment platform Part of the administrative expenses of providing funds.
除此之外,在分期支付事务中的各个支付阶段对应的支付事务未被支付处理完成之前,被支付方可以根据需要提出预支付请求,此时支付资源将流回被支付方,并且后续支付方偿还的支付资源将流入交易代理结构,本实施例的一个或多个实施方式中,具体实现方式如下所述:接收所述分期支付事务的被支付方针对剩余支付阶段提交的第二预支付请求;基于所述第二预支付请求中携带的第二预支付方式,对所述剩余支付段对应的交易支付信息和支付链路进行组装,获得与所述第二预支付方式对应的第二中间支付事务;所述第二中间支付事务中记录有所述第二预支付请求对应的第二总支付数值;通过从所述分期支付事务的交易代理机构的支付账户申请所述第二总支付数值对应的支付资源至所述被支付方的支付账户的方式,对所述第二中间支付事务进行支付处理;根据所述分期支付事务的支付方和所述交易代理机构二者数据账户的账户路径,确定从所述支付方至所述交易代理机构的第二分期支付链路;根据所述第二分期支付链路和所述剩余支付阶段的交易支付信息,组建所述剩余支付阶段对应的第二分期支付事务。In addition, before the payment transaction corresponding to each payment stage in the installment transaction is completed, the paid party can make a pre-payment request as needed. At this time, the payment resources will flow back to the paid party, and subsequent payments The payment resources repaid by the party will flow into the transaction agency structure. In one or more implementations of this embodiment, the specific implementation is as follows: the paid party that receives the installment transaction submits the second prepayment for the remaining payment phase Request; based on the second prepayment method carried in the second prepayment request, assemble the transaction payment information and payment link corresponding to the remaining payment segment to obtain the second prepayment method corresponding to the second prepayment method Intermediate payment transaction; the second intermediate payment transaction records the second total payment value corresponding to the second prepayment request; applying for the second total payment from the payment account of the transaction agency of the installment payment transaction The payment resource corresponding to the value is transferred to the payment account of the payee, and the second intermediate payment transaction is processed; according to the account of the data account of both the payer of the installment payment transaction and the transaction agency Path, determining the second installment payment link from the paying party to the transaction agency; according to the second installment payment link and the transaction payment information of the remaining payment stage, constructing the corresponding to the remaining payment stage The second installment payment transaction.
具体的,所述第二中间支付事务中记录有第二中间支付链路,所述第二中间支付链路的起始支付节点对应于所述交易代理机构的支付账户,终止支付节点对应于所述被支付方的支付账户。Specifically, a second intermediate payment link is recorded in the second intermediate payment transaction, the initial payment node of the second intermediate payment link corresponds to the payment account of the transaction agency, and the termination payment node corresponds to the payment account of the transaction agency. State the payment account of the paid party.
进一步的,在第二中间支付事务被支付处理完成之后,还需要对第二分期支付 事务进行支付处理,本实施例的一个或多个实施方式中,具体实现方式如下所述:在所述第二分期支付事务的剩余执行阶段中至少一者的支付条件被触发的情况下,读取所述第二分期支付事务中被触发的剩余支付阶段对应的第二分期支付数值;按照所述第二分期支付链路,对所述支付方的数据账户空间的数据额度扣减所述第二分期支付数值对应的扣减额度,以及,从所述支付方的数据账户空间对应的实际数据账户转出所述第二分期支付数值对应的支付资源至所述交易代理机构的支付账户。Further, after the payment processing of the second intermediate payment transaction is completed, payment processing of the second installment payment transaction is also required. In one or more implementation manners of this embodiment, the specific implementation manner is as follows: When the payment condition of at least one of the remaining execution phases of the two installment transaction is triggered, read the second installment value corresponding to the triggered remaining payment phase in the second installment transaction; according to the second installment transaction; The installment payment link deducts the deduction amount corresponding to the second installment payment value from the data amount of the data account space of the payer, and transfers out from the actual data account corresponding to the data account space of the payer The payment resource corresponding to the second installment payment value is sent to the payment account of the transaction agency.
具体的,所述数据账户空间的数据结算周期的时长与所述第二分期支付事务的剩余支付阶段的支付处理周期的时长相等,在前一数据结算周期对所述数据账户空间的数据额度扣减所述扣减额度,经后一数据结算周期的数据结算处理后,所述扣减额度对所述数据额度的扣减被更新。Specifically, the duration of the data settlement cycle of the data account space is equal to the duration of the payment processing cycle in the remaining payment phase of the second installment payment transaction, and the data quota of the data account space is deducted in the previous data settlement cycle. The deduction quota is subtracted, and after the data settlement processing of the subsequent data settlement cycle, the deduction of the deduction quota to the data quota is updated.
例如,在被支付方提交第二预支付请求的情况下,说明此时被支付方有申请退款的需求,确定剩余支付阶段对应的第二中间支付事务,在对第二中间支付事务进行支付处理的过程即为通过交易代理机构的资金账户中向被支付方转入剩余的资金,而此时等同于支付平台拖欠交易代理机构该笔资金,而支付方拖欠支付平台该笔资金,通过在支付方的支付账户中冻结与该笔资金对应的支付额度的同时,从支付方的资金账户中向交易代理机构的资金账户中转入与该笔资金相等的资金。For example, in the case where the paid party submits the second prepayment request, it means that the paid party needs to apply for a refund at this time, the second intermediate payment transaction corresponding to the remaining payment stage is determined, and the second intermediate payment transaction is paid The process of processing is to transfer the remaining funds to the paid party through the fund account of the transaction agency, and this is equivalent to the payment platform defaulting on the transaction agency’s funds, and the payer defaulting on the payment platform’s funds, through While freezing the payment amount corresponding to the funds in the payment account of the payer, transfer funds equivalent to the funds from the fund account of the payer to the fund account of the transaction agency.
本说明书提供的交易处理方法,实现了针对待处理交易按照分阶段支付的方式进行支付处理,使得可以在每个支付阶段只支付较少的支付资源即可完成待处理交易,并且支付方无需一次性提供全量的支付资金,也不会占用支付方的数据账户空间中的大量的支付额度,支付方只需要按照针对分期支付事务的各个支付阶段对应的支付事务进行支付处理即可实现待处理交易的支付处理,在提高支付方的体验效果的同时,还可以避免交易方支付附加支付资源的情况发生,有效的保证了支付方的利益。The transaction processing method provided in this manual realizes the payment processing for pending transactions in a phased payment manner, so that the pending transaction can be completed by paying less payment resources in each payment stage, and the payer does not need to pay once Provide full payment funds, and will not occupy a large amount of payment lines in the payer’s data account space. The payer only needs to perform payment processing in accordance with the payment transactions corresponding to each payment stage of the installment transaction to realize the pending transaction. The payment processing method can not only improve the experience of the payer, but also avoid the situation that the transaction party pays additional payment resources, which effectively guarantees the interests of the payer.
参照附图7,其示出了本说明书实施例提供的第二种交易处理方法的处理流程图,具体包括以下步骤S702至S730。Referring to FIG. 7, it shows a processing flowchart of the second transaction processing method provided by the embodiment of this specification, which specifically includes the following steps S702 to S730.
步骤S702,获取待处理交易的交易元数据。Step S702: Obtain transaction metadata of the transaction to be processed.
实际应用中,在支付方针对与被支付方之间存在的支付需求进行支付处理的过程中,通常需要支付方针对支付需求向被支付方支付全部资金才能够获得支付需求对应的物品的所有权,而支付方此时将支付全部资金,可能会导致支付方资金周转不顺畅的情况发生,为了避免这一情况而导致支付方无法完成支付需求,支付平台向支付方提供 了一笔可用于支付需求的支付额度,支付方可以通过该笔支付额度针对支付需求进行支付,只需要在支付额度的偿还时间向支付平台偿还与支付额度对应的支付资金即可。In practical applications, in the process of payment processing between the paying party and the paid party for the payment demand, the paying party usually needs to pay all the funds to the paid party for the payment demand to obtain the ownership of the item corresponding to the payment demand. The payer will pay all the funds at this time, which may cause the payer’s funds to flow unsmoothly. In order to avoid this situation and the payer’s failure to complete the payment demand, the payment platform provides the payer with a sum that can be used for payment needs. The payer can pay for the payment demand through the payment line, and only needs to repay the payment platform corresponding to the payment line at the time of the payment line repayment.
而随着支付方对支付额度需求的增大,以及使用支付额度的普遍性,可能在一次针对支付需求动用过多支付额度的情况下,而导致支付额度可能在接下来的一段时间内不能够满足支付方的其他支付意图,并且在偿还支付额度的过程中支付方需要一次性承担全部支付额度,可能存在降低支付方对支付额度使用的频次,进而造成支付业务的用户流失。With the increase in the demand for payment limits by payers and the universality of using payment limits, it may be possible that the payment limit may not be available in the next period of time when too many payment limits are used for payment needs. Satisfying the payer’s other payment intentions, and the payer needs to bear the full payment line at one time during the process of repaying the payment line. This may reduce the frequency of the payer’s use of the payment line and cause the loss of payment service users.
有鉴于此,本实施例提供的交易处理方法,通过实现在支付方针对支付需求支付额度的过程中,支付平台可以按照分期的方式将支付额度进行分期管理,即由支付方购买商品后,根据购买商品的价格通过支付额度进行分期偿还,而每一期所需要偿还的金额由支付平台的交易代理机构承担,每一期所需要偿还的金额对应的支付额度将会在支付方的支付账户中进行冻结,后续支付方向支付平台偿还资金后,再由支付平台向交易代理机构偿还资金,而对应的冻结支付额度将解冻,直至全部期数对应的额度全部偿还完成后,此次支付业务结束。In view of this, the transaction processing method provided in this embodiment realizes that the payment platform can manage the payment limit in installments in the process of the payer’s payment of the payment demand. That is, after the payer purchases the goods, the payment platform can manage the payment by installments. The price of the purchased goods is paid in installments through the payment line, and the amount to be repaid in each period is borne by the transaction agency of the payment platform. The payment line corresponding to the amount to be repaid in each period will be in the payment account of the payer After freezing, the subsequent payment platform repays the funds to the payment platform, and then the payment platform repays the funds to the transaction agency, and the corresponding frozen payment quota will be unfrozen until the payment of the corresponding quota for all periods is completed, and the payment business ends.
需要说明的是,在对待处理交易进行交易处理的过程中,如果待处理交易的交易处理涉及多方参与配合实现,或者待处理交易的交易处理需要进行远程数据传输、数据调用,再或者待处理交易的交易处理需要涉及多个处理平台的数据支持,可在分布式系统的基础上实现所述交易处理方法,具体的,通过创建所述待处理交易对应的分布式事务,并基于分布式系统中部署在不同节点之上的支持事务的服务器、资源服务器以及事务管理器之间的协同配合,实现在交易元数据基础上进行的分布式事务的创建,以及根据提交的执行方式对分布式事务交易处理,从而来进一步提升待处理交易的交易处理的处理效率和处理一致性。It should be noted that in the process of transaction processing of the transaction to be processed, if the transaction processing of the transaction to be processed involves the participation of multiple parties, or the transaction processing of the transaction to be processed requires remote data transmission, data invocation, or transaction to be processed The transaction processing requires data support involving multiple processing platforms. The transaction processing method can be implemented on the basis of a distributed system. Specifically, by creating a distributed transaction corresponding to the transaction to be processed, and based on the distributed system The coordination among transaction-supporting servers, resource servers, and transaction managers deployed on different nodes enables the creation of distributed transactions based on transaction metadata, and the execution of distributed transactions according to the submitted execution mode. Processing, thereby further improving the processing efficiency and processing consistency of the transaction processing of the transaction to be processed.
本实施例将以被支付方主动针对各个支付阶段的支付事务进行支付处理的过程进行描述。This embodiment will be described as a process in which the payee actively performs payment processing for payment transactions in each payment stage.
步骤S704,根据所述交易元数据创建所述待处理交易的分期支付事务。Step S704: Create an installment payment transaction for the transaction to be processed according to the transaction metadata.
具体的,所述分期支付事务中记录有各个支付阶段的交易支付信息和支付链路。Specifically, transaction payment information and payment links of each payment stage are recorded in the installment payment transaction.
基于此,在上述确定所述待处理交易的交易元数据的基础上,进一步的,将根据所述元数据创建所述待处理交易的分期支付事务,所述分期支付事务具体是指针对将待处理交易的支付处理过程划分为一个或多个支付阶段,然后针对待处理交易进行事务 化,每个支付阶段需要支付处理的事务称之为一个支付事务,则待处理交易的所有支付阶段的数据事务构成的整体即为所述分期支付事务。Based on this, on the basis of determining the transaction metadata of the pending transaction, further, an installment payment transaction of the pending transaction will be created based on the metadata, and the installment payment transaction specifically refers to the pending transaction. The payment processing process of processing transactions is divided into one or more payment stages, and then the transaction to be processed is transactionized. The transaction that requires payment processing in each payment stage is called a payment transaction, and the data of all payment stages of the transaction to be processed The whole of the transaction constitutes the installment transaction.
其中,分期支付事务中记录的各个支付阶段的交易支付信息具体是指每个支付阶段支付方需要支付的信息,被支付方所需要收取支付资金的信息,所述支付链路具体是指支付方向被支付方支付处理的过程中支付资金流动的路径。Among them, the transaction payment information of each payment stage recorded in the installment transaction specifically refers to the information that the payer needs to pay for each payment stage, the information that the paid party needs to collect payment funds, and the payment link specifically refers to the direction of payment. The path through which payment funds flow during payment processing by the payee.
步骤S706,接收所述分期支付事务的被支付方针对所述至少一个支付阶段提交的预支付请求。Step S706: Receive a prepayment request submitted by the payee of the installment payment transaction for the at least one payment phase.
具体的,在上述创建分期支付事务的基础上,进一步的,在接收到所述被支付方针对至少一个支付阶段提交的预支付请求的情况下,此时说明被支付方需要针对分期的支付资源进行收款。Specifically, on the basis of the above-mentioned creation of the installment payment transaction, further, in the case of receiving the prepayment request submitted by the payee for at least one payment phase, it is explained at this time that the payee needs the payment resources for the installment Make a collection.
例如,被支付方需要采购新的商品的情况下,此时被支付方就需要将正在处于分期中的商品的未支付的资金进行回收,即被支付方需要未支付完成的支付方将剩余未支付的资金收回,以便于被支付方可以采购新的商品,实际应用中,被支付方还可以针对支付方未支付的资金中的部分资金进行收回。For example, when the paid party needs to purchase new goods, the paid party needs to recover the unpaid funds of the goods that are in installment. That is, the paid party needs to have the unpaid payer remaining unpaid. The paid funds are recovered so that the paid party can purchase new goods. In practical applications, the paid party can also recover part of the funds that the payer has not paid.
具体实施时,在接收到所述预支付请求的情况下,后续需要根据预支付请求中携带的支付方式对所述至少一个支付阶段对应的交易支付信息和支付链路进行组装,获得与所述预支付方式对应的目标支付事务,此时的所述目标支付事务即为所述被支付方针对需要提前进行支付处理的支付事务组成,而确定所述目标支付事务的过程可以通过步骤S708至步骤S712实现。During specific implementation, in the case of receiving the pre-payment request, it is subsequently necessary to assemble the transaction payment information and payment link corresponding to the at least one payment stage according to the payment method carried in the pre-payment request to obtain the The target payment transaction corresponding to the pre-payment method, the target payment transaction at this time is the payment transaction composition for the payment transaction that needs to be processed in advance by the payee, and the process of determining the target payment transaction can be through step S708 to step S708. S712 is implemented.
步骤S708,根据所述预支付请求对应的所述至少一个支付阶段的目标交易支付信息,计算所述预支付请求对应的总支付数值。Step S708: Calculate the total payment value corresponding to the pre-payment request according to the target transaction payment information of the at least one payment stage corresponding to the pre-payment request.
沿用上例,在接收到被支付方提交的预支付请求的情况下,根据被支付方针对多个支付阶段的支付信息的收款需求,计算预支付请求对应的总收款资金数额。Following the previous example, in the case of receiving the prepayment request submitted by the payee, the total amount of funds received for the prepayment request is calculated according to the payment requirements of the payee for payment information of multiple payment stages.
步骤S710,基于所述分期支付事务的被支付方和交易代理机构二者支付账户的账户路径确定目标支付链路。Step S710: Determine the target payment link based on the account path of the payment account of both the payee and the transaction agency of the installment payment transaction.
具体的,确定目标支付链路即为确定被支付方和交易代理机构二者的支付账户的账户路径,例如,在被支付方申请收款的过程中,由于为了避免支付方一次性支付过多的资金,此时可以由交易代理机构提供与收款额度对应的资金,故确定被支付方和交易代理机构之间的支付账户的账户路径,方便后续进行打款。Specifically, determining the target payment link is to determine the account path of the payment account of both the payee and the transaction agency. For example, in the process of the payee's application for collection, because the payee is to avoid paying too much at one time At this time, the transaction agency can provide the funds corresponding to the payment limit, so the account path of the payment account between the payee and the transaction agency is determined to facilitate subsequent payment.
步骤S712,基于所述总支付数值和所述目标支付链路组建中间支付事务,作为所述目标支付事务。In step S712, an intermediate payment transaction is established based on the total payment value and the target payment link as the target payment transaction.
其中,所述目标支付链路的起始支付节点对应于所述交易代理机构的支付账户,终止支付节点对应于所述交易代理机构的支付账户。Wherein, the initial payment node of the target payment link corresponds to the payment account of the transaction agency, and the termination payment node corresponds to the payment account of the transaction agency.
例如,被支付方针对支付方的总支付资金数额是500元,此时确定交易代理机构要针对支付方向被支付方提供500元的资金,则基于总支付资金以及被支付方和交易代理机构之间的支付账户的账户路径确定目标支付事务。For example, the total amount of funds paid by the payee to the payer is 500 yuan. At this time, it is determined that the transaction agency should provide the payee with 500 yuan of funds for the payment. This is based on the total payment funds and the difference between the payee and the transaction agency. The account path of the inter-payment account determines the target payment transaction.
步骤S714,从所述交易代理机构的支付账户申请所述总支付数值对应的支付资源至所述被支付方的支付账户。Step S714: Apply for the payment resource corresponding to the total payment value from the payment account of the transaction agency to the payment account of the payee.
具体的,在上述确定所述目标支付事务的基础上,进一步的,将需要针对所述目标支付事务进行支付处理,而在支付处理的过程中,需要从交易代理机构的支付账户中申请与总支付数值对应的支付资源至所述被支付方的支付账户。Specifically, on the basis of the above-mentioned determination of the target payment transaction, further, payment processing will be required for the target payment transaction, and in the process of payment processing, it is necessary to apply and contact the transaction agent’s payment account from the transaction agency’s payment account. Pay the payment resource corresponding to the payment value to the payment account of the paid party.
沿用上例,在确定交易代理机构要针对支付方向被支付方提供500元的资金的情况下,则从交易代理机构的资金账户向被支付方的资金账户转入500元的资金即可,此时被支付方相对于支付方属于两清状态,而支付方等同于拖欠支付平台500的支付额度,而支付平台将拖欠交易代理机构500元的资金。Following the above example, in the case where it is determined that the transaction agency should provide 500 yuan of funds to the payee for the payment, transfer 500 yuan of funds from the transaction agency’s fund account to the payee’s fund account. This At that time, the paid party is in a two-settlement state with respect to the payer, and the payer is equivalent to defaulting on the payment limit of the payment platform 500, and the payment platform will default on the transaction agency with 500 yuan of funds.
步骤S716,根据所述支付方和所述交易代理机构二者支付账户的账户路径,确定从所述支付方至所述交易代理机构的分期支付链路。Step S716: Determine the installment payment link from the payer to the transaction agency according to the account path of the payment account of both the payer and the transaction agency.
具体的,在针对目标支付事务执行完成的基础上,还需要对交易代理机构与交易方之间的支付资源流动情况进行支付处理,将根据所述支付方和所述交易代理机构二者之间的支付账户的账户路径,确定从所述支付方至所述交易代理机构的分期支付链路。Specifically, on the basis of completing the execution of the target payment transaction, it is also necessary to perform payment processing on the flow of payment resources between the transaction agency and the transaction party, which will be based on the relationship between the payment party and the transaction agency. The account path of the payment account determines the installment payment link from the payer to the transaction agency.
沿用上例,在交易代理机构向被支付方转入500元资金的情况下,此时支付方需要针对这500元资金进行偿还,而对于支付方来讲等同于拖欠支付平台500支付额度,而支付平台拖欠交易代理机构500元资金,此时基于支付方和交易代理机构之间的账户路径,确定分期支付链路。Following the above example, when the transaction agency transfers 500 yuan of funds to the paid party, the payer needs to repay the 500 yuan of funds at this time, and for the payer, it is equivalent to defaulting on the payment platform 500 payment limit, and The payment platform owes 500 yuan to the transaction agency. At this time, the installment payment link is determined based on the account path between the payer and the transaction agency.
步骤S718,根据所述分期支付链路和所述分期支付事务中待执行的执行段的数据执行信息,组建所述分期支付事务中待支付的支付阶段的第一分期支付事务。Step S718, according to the installment payment link and the data execution information of the execution section to be executed in the installment payment transaction, construct the first installment payment transaction of the payment stage to be paid in the installment payment transaction.
具体的,所述分期支付链路的起始支付节点对应于所述支付方的支付账户,终 止支付节点对应于所述交易代理机构的支付账户,即通过所述分期支付链路可以实现将支付资源从支付方的数据账户空间转入至交易代理机构的支付账户;基于此,此时需要组建所述分段支付事务中待支付的支付阶段的第一分期支付事务。Specifically, the initial payment node of the installment payment link corresponds to the payment account of the payer, and the termination payment node corresponds to the payment account of the transaction agency. That is, the payment can be realized through the installment payment link. Resources are transferred from the data account space of the payer to the payment account of the transaction agency; based on this, the first installment payment transaction of the payment stage to be paid in the segmented payment transaction needs to be established at this time.
实际应用中,所述第一分期支付事务具体是指针对支付方与交易代理机构之间针对待支付的支付阶段组建的支付事务。In practical applications, the first installment payment transaction specifically refers to a payment transaction established between the payer and the transaction agency for the payment phase to be paid.
步骤S720,在所述第一分期支付事务的支付阶段的支付条件被触发的情况下,读取所述第一分期支付事务中被触发的支付阶段对应的第一分期支付数值。Step S720, in the case that the payment condition of the payment phase of the first installment payment transaction is triggered, read the first installment payment value corresponding to the triggered payment phase in the first installment transaction.
具体的,在组建所述第一分期支付事务的基础上,进一步的,为了避免支付方遗忘针对支付资源进行支付处理,可以在设定的时间节点对所述第一分期支付事务的支付阶段的支付条件是否被触发进行检测,若否,则说明此时还未达到针对第一分期支付事务进行支付处理的时间节点,不作任何处理即可;若是,则说明此时需要针对第一分期支付事务进行支付处理,读取所述第一分期支付事务中被触发的支付阶段对应的第一分期支付数值即可。Specifically, on the basis of the establishment of the first installment transaction, further, in order to avoid the payer forgetting to perform payment processing for the payment resource, the payment stage of the first installment transaction can be performed at a set time node. Whether the payment condition is triggered for detection, if not, it means that the time node for payment processing for the first installment transaction has not been reached at this time, and nothing needs to be done; if it is, it means that the first installment transaction needs to be processed at this time Perform payment processing and read the first installment payment value corresponding to the triggered payment stage in the first installment transaction.
沿用上例,在确定支付方需要针对第一分期支付事务进行支付处理的过程中,确定第一分期支付事务中被触发的支付阶段对应的第一分期支付资金是500元。Following the previous example, in the process of determining that the payer needs to perform payment processing for the first installment transaction, it is determined that the first installment fund corresponding to the triggered payment stage in the first installment transaction is 500 yuan.
步骤S722,按照所述分期支付链路,对所述支付方的数据账户空间的数据额度扣减所述第一分期支付数值对应的扣减额度,以及,从所述支付方的数据账户空间对应的实际数据账户转出所述第一分期支付数值对应的支付资源至所述交易代理机构的支付账户。Step S722: According to the installment payment link, deduct the deduction amount corresponding to the first installment payment value from the data quota of the payer’s data account space, and correspond to the payer’s data account space The actual data account transfers the payment resource corresponding to the first installment value to the payment account of the transaction agency.
具体的,所述数据账户空间的数据结算周期的时长与所述第一分期支付事务的执行阶段的支付处理周期的时长相等,在前一数据结算周期对所述数据账户空间的数据额度扣减所述扣减额度,经后一数据结算周期的数据结算处理后,所述扣减额度对所述数据额度的扣减被更新。Specifically, the duration of the data settlement cycle of the data account space is equal to the duration of the payment processing cycle in the execution phase of the first installment payment transaction, and the data quota of the data account space is deducted in the previous data settlement cycle The deduction amount is updated after the data settlement processing of the subsequent data settlement cycle, the deduction amount of the deduction amount to the data amount.
例如,在针对第一分期支付事务进行支付处理的过程中,需要在支付方的支付账户中扣减与500元资金对应的支付额度,此时支付方在该月的可用支付额度将缺少500,同时从支付方的数据账户空间对应的支付数额账户中向交易代理机构转出500元资金,表明此时支付平台与交易代理机构之间的500元资金已经清偿。For example, in the process of payment processing for the first installment payment transaction, the payment line corresponding to 500 yuan of funds needs to be deducted in the payment account of the payer. At this time, the payer’s available payment line in the month will be short of 500. At the same time, the transfer of 500 yuan of funds from the payment amount account corresponding to the data account space of the payer to the transaction agency indicates that the 500 yuan fund between the payment platform and the transaction agency has been settled at this time.
实际应用中,在支付方的支付额度被使用的情况下,每个结算时间都会对支付额度进行更新,例如支付方的支付额度是1000,在支付方使用支付额度100的情况下, 此时支付方的可用支付额度是900,而当达到结算周期后,并且支付方针对支付额度100进行了还款,则结算周期后的支付方的支付额度是1000。In practical applications, when the payer’s payment limit is used, the payment limit will be updated every settlement time. For example, the payer’s payment limit is 1000. When the payer uses the payment limit of 100, the payment will be made at this time. The available payment limit of the party is 900, and when the settlement period is reached, and the payer repays the payment limit of 100, the payment limit of the payer after the settlement period is 1000.
步骤S724,根据所述总支付数值以及对应的第二支付费率,计算第二支付附加费。Step S724: Calculate the second payment surcharge according to the total payment value and the corresponding second payment rate.
步骤S726,对所述被支付方进行所述第二支付附加费的结算处理。Step S726: Perform settlement processing of the second payment surcharge on the paid party.
具体的,所述第二支付费率,包括对所述交易代理机构进行交易处理产生的交易费率,依据所述第二支付费率计算获得的所述第二支付附加费由所述被支付方承担。Specifically, the second payment rate includes the transaction rate generated by the transaction processing of the transaction agency, and the second payment surcharge calculated based on the second payment rate is paid by the paid Party bears.
实际应用中,在上述针对第一分期支付事务进行支付处理后,此时由于所述被支付方主动提取针对剩余的支付阶段的支付事务进行支付处理,故需要被支付方针对总支付数值提供一定的附加费,而所述第二支付附加费需要根据所述总支付数值以及所述第二支付费率进行计算确定,以进行结算处理过程。In practical applications, after the payment processing for the first installment payment transaction described above, at this time, since the paid party actively extracts the payment transaction for the remaining payment phases for payment processing, the paid party needs to provide a certain amount for the total payment value. The second payment surcharge needs to be calculated and determined based on the total payment value and the second payment rate for settlement processing.
例如,确定被支付方针对支付方收取了500元的资金,此时将由被支付方承担500元资金的附加费,而附加费需要按照收取资金的数值的附加费率进行计算,500元的附加费率是1%,则被支付方向支付平台缴纳的附加费是500*1%=5元,并且在该笔附加费中包含后续支付平台向交易代理机构支付的处理费。For example, if it is determined that the payee has received 500 yuan of funds from the payer, the payee will bear the surcharge of 500 yuan, and the surcharge needs to be calculated according to the surcharge rate of the value of the collected funds, and the surcharge of 500 yuan If the fee rate is 1%, the surcharge paid to the payment platform is 500*1%=5 yuan, and the surcharge includes the processing fee paid by the subsequent payment platform to the transaction agency.
步骤S728,根据所述第一分期支付数值以及所述支付阶段对应的第一支付费率,计算所述支付阶段对应的第一支付附加费。Step S728: Calculate the first payment surcharge corresponding to the payment stage according to the first payment instalment value and the first payment rate corresponding to the payment stage.
步骤S730,对所述被支付方进行所述第一支付附加费的结算处理。Step S730: Perform settlement processing of the first payment surcharge on the payee.
具体的,所述第一支付费率,包括对所述第一分期支付事务在所述支付阶段进行支付处理产生的支付费率,依据所述第一支付费率计算获得的所述第一支付附加费由所述被支付承担。Specifically, the first payment rate includes the payment rate generated by the payment processing of the first instalment transaction in the payment stage, and the first payment obtained by calculation according to the first payment rate The surcharge shall be borne by the said paid.
本说明书提供的交易处理方法,实现了针对待处理交易按照分阶段支付的方式进行支付处理,使得可以在每个支付阶段只支付较少的支付资源即可完成待处理交易,并且支付方无需一次性提供全量的支付资金,也不会占用支付方的数据账户空间中的大量的支付额度,支付方只需要按照针对分期支付事务的各个支付阶段对应的支付事务进行支付处理即可实现待处理交易的支付处理,在提高支付方的体验效果的同时,还可以避免交易方支付附支付资源的情况发生,有效的保证了支付方的利益。The transaction processing method provided in this manual realizes the payment processing for pending transactions in a phased payment manner, so that the pending transaction can be completed by paying less payment resources in each payment stage, and the payer does not need to pay once Provide full payment funds, and will not occupy a large amount of payment lines in the payer’s data account space. The payer only needs to perform payment processing in accordance with the payment transactions corresponding to each payment stage of the installment transaction to realize the pending transaction. The payment processing method can not only improve the experience effect of the payer, but also avoid the situation that the transaction party pays with payment resources, which effectively guarantees the interests of the payer.
本说明书提供的一种交易处理装置实施例如下。An implementation example of a transaction processing device provided in this specification is as follows.
在上述的实施例中,提供了交易处理方法,与之相对应的,还提供了一种交易处理装置,下面结合附图进行说明。In the above-mentioned embodiments, a transaction processing method is provided, and correspondingly, a transaction processing device is also provided, which will be described below with reference to the accompanying drawings.
参照附图8,其示出了本实施例提供的一种交易处理装置的示意图,包括:数据获取模块802,被配置为获取待处理交易的交易元数据;事务创建模块804,被配置为根据所述交易元数据创建所述待处理交易的分期支付事务;所述分期支付事务中记录有各个支付阶段的交易支付信息和支付链路;事务解析模块806,被配置为基于针对所述分期支付事务的至少一个支付阶段提交的支付方式,对所述分期支付事务进行解析,获得与所述支付方式对应的目标支付事务;事务处理模块808,被配置为根据所述目标支付事务中记录的所述至少一个支付阶段的目标交易支付信息和目标支付链路,对所述目标支付事务进行支付处理。Referring to FIG. 8, it shows a schematic diagram of a transaction processing device provided by this embodiment, including: a data acquisition module 802, configured to acquire transaction metadata of a transaction to be processed; and a transaction creation module 804, configured to acquire transaction metadata according to The transaction metadata creates an installment payment transaction for the transaction to be processed; the installment payment transaction records transaction payment information and payment links of each payment stage; the transaction analysis module 806 is configured to be based on the installment payment transaction The payment method submitted in at least one payment phase of the transaction analyzes the installment payment transaction to obtain the target payment transaction corresponding to the payment method; the transaction processing module 808 is configured to follow all the records recorded in the target payment transaction. The target transaction payment information and target payment link of the at least one payment stage are used to perform payment processing on the target payment transaction.
可选地,所述交易处理装置,还包括:分期数目确定模块,被配置为根据所述分期支付事务的支付方的历史交易支付日志,确定向所述支付方推送的支付阶段的推荐分期数目,并根据所述支付方针对所述推荐分期数目提交的支付指令确定所述分期支付事务的支付阶段的分期数目;或者,根据所述分期支付事务的被支付方的交易记录,预测所述被支付方的收款时间区间,按照所述收款时间区间确定所述分期支付事务的支付阶段的分期时长和/或分期数目。Optionally, the transaction processing device further includes: an installment number determining module configured to determine the recommended installment number of the payment stage pushed to the payer according to the historical transaction payment log of the payer of the installment payment transaction , And determine the number of installments in the payment phase of the installment transaction according to the payment instruction submitted by the payer for the recommended installment number; or, predict the payee based on the transaction record of the payee of the installment transaction The payment collection time interval of the payer determines the installment duration and/or the number of installments of the payment phase of the installment payment transaction according to the collection time interval.
可选地,所述事务解析模块806,包括:事务解析子模块,被配置为在所述分期支付事务的支付阶段的支付条件被触发的情况下,按照所述支付阶段的支付条件被触发对应的分期支付方式,对所述分期支付事务进行分解,获得与所述分期支付方式对应的目标支付事务;或者,接收所述分期支付事务的支付方针对所述至少一个支付阶段提交的分期支付请求;基于所述分期支付请求中携带的分期支付方式,对所述分期支付事务进行分解,获得与所述分期支付方式对应的目标支付事务;其中,所述与所述分期支付方式对应的目标支付事务中,记录有所述至少一个支付阶段的目标交易支付信息和目标支付链路,所述目标交易支付信息基于所述至少一个支付阶段的交易支付信息确定,所述目标支付链路基于所述至少一个支付阶段的支付链路确定。Optionally, the transaction analysis module 806 includes: a transaction analysis sub-module configured to be triggered according to the payment conditions of the payment phase when the payment conditions of the payment phase of the installment transaction are triggered. The installment payment method is to decompose the installment payment transaction to obtain the target payment transaction corresponding to the installment payment method; or, the payer who receives the installment payment transaction submits an installment payment request for the at least one payment stage Based on the installment payment method carried in the installment payment request, the installment payment transaction is decomposed, and the target payment transaction corresponding to the installment payment method is obtained; wherein, the target payment corresponding to the installment payment method In the transaction, the target transaction payment information and target payment link of the at least one payment stage are recorded, the target transaction payment information is determined based on the transaction payment information of the at least one payment stage, and the target payment link is based on the The payment link for at least one payment stage is determined.
可选地,所述事务处理模块808,包括:第一支付数值读取子模块,被配置为读取所述目标交易支付信息中包含的所述至少一个支付阶段对应的支付数值;第一支付资源转移子模块,被配置为按照所述目标支付链路,对所述支付方的数据账户空间的数据额度扣减所述支付数值对应的扣减额度,以及,从所述支付方的数据账户空间对应的实际数据账户转出所述支付数值对应的支付资源至所述分期支付事务的被支付方的数据 账户;其中,所述目标支付链路的支付节点至少对应于所述支付方的数据账户空间和所述被支付方的数据账户;所述数据账户空间的数据结算周期的时长与所述分期支付事务的支付阶段的支付处理周期的时长相等,在前一数据结算周期对所述数据账户空间的数据额度扣减所述扣减额度,经后一数据结算周期的数据结算处理后,所述扣减额度对所述数据额度的扣减被更新。Optionally, the transaction processing module 808 includes: a first payment value reading sub-module configured to read the payment value corresponding to the at least one payment phase contained in the target transaction payment information; the first payment The resource transfer sub-module is configured to deduct the deduction amount corresponding to the payment value from the data amount of the data account space of the payer according to the target payment link, and from the data account of the payer The actual data account corresponding to the space transfers the payment resource corresponding to the payment value to the data account of the payee of the installment payment transaction; wherein, the payment node of the target payment link at least corresponds to the payer’s data The account space and the data account of the payee; the data settlement period of the data account space is equal to the payment processing period of the payment phase of the installment transaction, and the data is processed in the previous data settlement period. The data quota of the account space deducts the deduction quota, and the deduction of the data quota by the deduction quota is updated after the data settlement processing in the subsequent data settlement cycle.
可选地,所述事务处理模块808,还包括:第二支付数值读取子模块,被配置为读取所述目标交易交付信息中包含的所述至少一个支付阶段对应的支付数值;第二支付资源转移子模块,被配置为按照所述目标支付链路,从所述支付方的支付账户转出所述支付数值对应的支付资源至所述被支付方的支付账户;其中,所述目标支付链路的起始支付节点对应于所述支付方的支付账户,终止支付节点对应于所述被支付方的支付账户。Optionally, the transaction processing module 808 further includes: a second payment value reading sub-module configured to read the payment value corresponding to the at least one payment phase contained in the target transaction delivery information; second The payment resource transfer submodule is configured to transfer the payment resource corresponding to the payment value from the payment account of the payer to the payment account of the payee according to the target payment link; wherein, the target The initial payment node of the payment link corresponds to the payment account of the paying party, and the termination payment node corresponds to the payment account of the paid party.
可选地,所述事务处理模块808,还包括:附加费计算子模块,被配置为根据所述支付数值以及所述至少一个支付阶段对应的第一支付费率,计算所述至少一个支付阶段对应的第一支付附加费;费用结算子模块,被配置为对所述被支付方进行所述第一支付费用的结算处理;其中,所述第一支付费率,包括对所述分期支付事务在所述至少一个支付阶段进行支付处理产生的支付费率,依据所述第一支付费率计算获得的所述第一支付附加费由所述被支付方承担。Optionally, the transaction processing module 808 further includes: a surcharge calculation sub-module configured to calculate the at least one payment stage based on the payment value and the first payment rate corresponding to the at least one payment stage The corresponding first payment surcharge; the fee settlement sub-module is configured to perform the settlement processing of the first payment fee on the paid party; wherein, the first payment fee rate includes the payment transaction of the installment For the payment rate generated by the payment processing in the at least one payment stage, the first payment surcharge calculated according to the first payment rate is borne by the paid party.
可选地,所述事务解析模块806,还包括:预支付请求接收子模块,被配置为接收所述分期支付事务的被支付方针对所述至少一个支付阶段提交的预支付请求;支付事务获得子模块,被配置为基于所述预支付请求中携带的预支付方式,对所述至少一个支付阶段对应的交易支付信息和支付链路进行组装,获得与所述预支付方式对应的目标支付事务。Optionally, the transaction analysis module 806 further includes: a prepayment request receiving sub-module configured to receive a prepayment request submitted by the payee of the installment payment transaction for the at least one payment phase; payment transaction acquisition The sub-module is configured to assemble the transaction payment information and payment link corresponding to the at least one payment stage based on the pre-payment method carried in the pre-payment request to obtain the target payment transaction corresponding to the pre-payment method .
可选地,所述支付事务获得子模块,包括:总支付数值计算单元,被配置为根据所述预支付请求对应的所述至少一个支付阶段的目标交易支付信息,计算所述预支付请求对应的总支付数值;目标支付链路确定单元,被配置为基于所述分期支付事务的被支付方和交易代理机构二者支付账户的账户路径确定目标支付链路;目标支付事务确定单元,被配置为基于所述总支付数值和所述目标支付链路组建中间支付事务,作为所述目标支付事务;其中,所述目标支付链路的起始支付节点对应于所述交易代理机构的支付账户,终止支付节点对应于所述交易代理机构的支付账户。Optionally, the payment transaction obtaining sub-module includes: a total payment value calculation unit configured to calculate the corresponding prepayment request according to the target transaction payment information of the at least one payment phase corresponding to the prepayment request The target payment link determination unit is configured to determine the target payment link based on the account path of the payment account of both the payee and the transaction agency of the installment transaction; the target payment transaction determination unit is configured In order to establish an intermediate payment transaction based on the total payment value and the target payment link as the target payment transaction; wherein, the initial payment node of the target payment link corresponds to the payment account of the transaction agency, The termination payment node corresponds to the payment account of the transaction agency.
可选地,所述事务处理模块808,还包括:资源处理子模块,被配置为从所述交易代理机构的支付账户申请所述总支付数值对应的支付资源至所述被支付方的支付账 户;分期支付链路确定子模块,被配置为根据所述分期支付事务的支付方和所述交易代理机构二者支付账户的账户路径,确定从所述支付方至所述交易代理机构的分期支付链路;分期支付事务组建子模块,被配置为根据所述分期支付链路和所述分期支付事务中待执行的执行段的数据执行信息,组建所述分期支付事务中待支付的支付阶段的第一分期支付事务;其中,所述分期支付链路的起始支付节点对应于所述支付方的支付账户,终止支付节点对应于所述交易代理机构的支付账户。Optionally, the transaction processing module 808 further includes: a resource processing sub-module configured to apply for the payment resource corresponding to the total payment value from the payment account of the transaction agency to the payment account of the payee The installment payment link determination submodule is configured to determine the installment payment from the payer to the transaction agency according to the account path of the payment account of the payer of the installment transaction and the transaction agency Link; the installment payment transaction establishment sub-module, configured to construct the payment stage to be paid in the installment payment transaction according to the installment payment link and the data execution information of the execution section to be executed in the installment payment transaction The first installment payment transaction; wherein the start payment node of the installment payment link corresponds to the payment account of the payer, and the termination payment node corresponds to the payment account of the transaction agency.
可选地,所述交易处理装置,还包括:支付数值读取模块,被配置为在所述第一分期支付事务的支付阶段的支付条件被触发的情况下,读取所述第一分期支付事务中被触发的支付阶段对应的第一分期支付数值;支付数值处理模块,被配置为按照所述分期支付链路,对所述支付方的数据账户空间的数据额度扣减所述第一分期支付数值对应的扣减额度,以及,从所述支付方的数据账户空间对应的实际数据账户转出所述第一分期支付数值对应的支付资源至所述交易代理机构的支付账户;其中,所述数据账户空间的数据结算周期的时长与所述第一分期支付事务的执行阶段的支付处理周期的时长相等,在前一数据结算周期对所述数据账户空间的数据额度扣减所述扣减额度,经后一数据结算周期的数据结算处理后,所述扣减额度对所述数据额度的扣减被更新。Optionally, the transaction processing device further includes: a payment value reading module configured to read the first installment payment when the payment condition of the payment phase of the first installment transaction is triggered The first instalment payment value corresponding to the payment phase triggered in the transaction; the payment value processing module is configured to deduct the first installment from the data amount of the payer’s data account space according to the instalment payment link The deduction amount corresponding to the payment value, and the payment resource corresponding to the first installment value is transferred from the actual data account corresponding to the data account space of the payer to the payment account of the transaction agency; where The duration of the data settlement cycle of the data account space is equal to the duration of the payment processing cycle in the execution phase of the first installment payment transaction, and the data quota of the data account space is deducted from the deduction in the previous data settlement cycle Quota, after the data settlement processing in the next data settlement cycle, the deduction of the deduction quota to the data quota is updated.
可选地,所述事务处理模块808,还包括:附加费计算子模块,被配置为根据所述总支付数值以及对应的第二支付费率,计算第二支付附加费;附加费结算子模块,被配置为对所述被支付方进行所述第二支付附加费的结算处理;其中,所述第二支付费率,包括对所述交易代理机构进行交易处理产生的交易费率,依据所述第二支付费率计算获得的所述第二支付附加费由所述被支付方承担。Optionally, the transaction processing module 808 further includes: a surcharge calculation sub-module configured to calculate a second payment surcharge based on the total payment value and the corresponding second payment rate; a surcharge settlement sub-module , Configured to perform the settlement processing of the second payment surcharge on the paid party; wherein, the second payment rate includes the transaction rate generated by the transaction processing of the transaction agency, based on the The second payment surcharge obtained by calculating the second payment rate shall be borne by the paid party.
可选地,所述交易处理装置,还包括:附加费计算模块,被配置为根据所述第一分期支付数值以及所述支付阶段对应的第一支付费率,计算所述支付阶段对应的第一支付附加费;附加费结算模块,被配置为对所述被支付方进行所述第一支付附加费的结算处理;其中,所述第一支付费率,包括对所述第一分期支付事务在所述支付阶段进行支付处理产生的支付费率,依据所述第一支付费率计算获得的所述第一支付附加费由所述被支付承担。Optionally, the transaction processing device further includes: a surcharge calculation module configured to calculate the first payment rate corresponding to the payment stage based on the first installment payment value and the first payment rate corresponding to the payment stage A payment surcharge; a surcharge settlement module configured to perform settlement processing of the first payment surcharge on the payee; wherein, the first payment rate includes payment transactions for the first installment For the payment rate generated by the payment processing in the payment stage, the first payment surcharge calculated according to the first payment rate shall be borne by the paid.
可选地,所述交易处理装置,还包括:预支付请求接收模块,被配置为接收所述分期支付事务的被支付方针对剩余支付阶段提交的第二预支付请求;中间支付事务获得模块,被配置为基于所述第二预支付请求中携带的第二预支付方式,对所述剩余支付段对应的交易支付信息和支付链路进行组装,获得与所述第二预支付方式对应的第二中 间支付事务;所述第二中间支付事务中记录有所述第二预支付请求对应的第二总支付数值;支付处理模块,被配置为通过从所述分期支付事务的交易代理机构的支付账户申请所述第二总支付数值对应的支付资源至所述被支付方的支付账户的方式,对所述第二中间支付事务进行支付处理;分期支付链路确定模块,被配置为根据所述分期支付事务的支付方和所述交易代理机构二者数据账户的账户路径,确定从所述支付方至所述交易代理机构的第二分期支付链路;分期支付事务组建模块,被配置为根据所述第二分期支付链路和所述剩余支付阶段的交易支付信息,组建所述剩余支付阶段对应的第二分期支付事务;其中,所述第二中间支付事务中记录有第二中间支付链路,所述第二中间支付链路的起始支付节点对应于所述交易代理机构的支付账户,终止支付节点对应于所述被支付方的支付账户。Optionally, the transaction processing device further includes: a prepayment request receiving module configured to receive a second prepayment request submitted by the payee of the installment payment transaction for the remaining payment phase; an intermediate payment transaction obtaining module, Is configured to assemble the transaction payment information and payment link corresponding to the remaining payment segment based on the second prepayment method carried in the second prepayment request, and obtain the second prepayment method corresponding to the second prepayment method. 2. Intermediate payment transaction; the second intermediate payment transaction records the second total payment value corresponding to the second prepayment request; the payment processing module is configured to pass payment from the transaction agency of the installment payment transaction The account applies for the payment resource corresponding to the second total payment value to the payment account of the payee to perform payment processing on the second intermediate payment transaction; the installment payment link determination module is configured to The account path of the data account of the payer of the installment payment transaction and the transaction agency determines the second installment payment link from the payer to the transaction agency; the installment payment transaction building module is configured to The second installment payment link and the transaction payment information of the remaining payment stage form a second installment payment transaction corresponding to the remaining payment stage; wherein, a second intermediate payment chain is recorded in the second intermediate payment transaction Road, the initial payment node of the second intermediate payment link corresponds to the payment account of the transaction agency, and the termination payment node corresponds to the payment account of the paid party.
可选地,所述交易处理装置,还包括:分期支付数值读取模块,被配置为在所述第二分期支付事务的剩余执行阶段中至少一者的支付条件被触发的情况下,读取所述第二分期支付事务中被触发的剩余支付阶段对应的第二分期支付数值;扣减模块,被配置为按照所述第二分期支付链路,对所述支付方的数据账户空间的数据额度扣减所述第二分期支付数值对应的扣减额度,以及,从所述支付方的数据账户空间对应的实际数据账户转出所述第二分期支付数值对应的支付资源至所述交易代理机构的支付账户;其中,所述数据账户空间的数据结算周期的时长与所述第二分期支付事务的剩余支付阶段的支付处理周期的时长相等,在前一数据结算周期对所述数据账户空间的数据额度扣减所述扣减额度,经后一数据结算周期的数据结算处理后,所述扣减额度对所述数据额度的扣减被更新。Optionally, the transaction processing device further includes: an installment payment value reading module configured to read when the payment condition of at least one of the remaining execution stages of the second installment transaction is triggered The second installment payment value corresponding to the remaining payment phase triggered in the second installment transaction; the deduction module is configured to perform data on the data account space of the payer according to the second installment link The amount deducts the deduction amount corresponding to the second installment payment value, and transfers the payment resource corresponding to the second installment payment value from the actual data account corresponding to the data account space of the payer to the transaction agent The payment account of the institution; wherein the duration of the data settlement cycle of the data account space is equal to the duration of the payment processing cycle of the remaining payment phase of the second installment payment transaction, and the data account space is The deduction quota is deducted from the data quota of, and the deduction of the data quota by the deduction quota is updated after the data settlement processing in the subsequent data settlement cycle.
可选地,所述交易处理装置,还包括:数值判断模块,被配置为判断所述交易元数据中包含的待交易数值是否小于或者等于所述分期支付事务的支付方的数据账户空间的可用数据额度;若所述数值判断模块的执行结果为是,则运行所述事务创建模块804;若所述数值判断模块的执行结果为否,则运行推送模块;所述推送模块,被配置为向所述支付方推送处理失败的提醒。Optionally, the transaction processing device further includes: a value judgment module configured to determine whether the value to be traded contained in the transaction metadata is less than or equal to the available data account space of the payer of the installment transaction Data quota; if the execution result of the numerical judgment module is yes, run the transaction creation module 804; if the execution result of the numerical judgment module is no, then run the push module; the push module is configured to The payer pushes a notification that the processing fails.
上述为本实施例的一种交易处理装置的示意性方案。需要说明的是,该交易处理装置的技术方案与上述的交易处理方法的技术方案属于同一构思,交易处理装置的技术方案未详细描述的细节内容,均可以参见上述交易处理方法的技术方案的描述。The foregoing is a schematic solution of a transaction processing apparatus of this embodiment. It should be noted that the technical solution of the transaction processing device belongs to the same concept as the technical solution of the above-mentioned transaction processing method. For details of the technical solution of the transaction processing device that are not described in detail, please refer to the description of the technical solution of the above-mentioned transaction processing method. .
参照附图9,其示出了本说明书实施例提供的第二种数据处理方法的处理流程图,具体包括以下步骤S902至S912。Referring to FIG. 9, it shows a processing flowchart of the second data processing method provided by the embodiment of this specification, which specifically includes the following steps S902 to S912.
步骤S902,接收第一客户端提交的待处理业务的业务处理请求。Step S902: Receive a service processing request for the service to be processed submitted by the first client.
本实施例提供的数据处理方法,应用于服务端,与下述提供的应用于第一客户端的数据处理方法相互配合,共同实现待处理业务的分段执行处理,阅读本实施例请对照下述提供的应用于第一客户端的数据处理方法实施例的对应部分的说明。The data processing method provided in this embodiment is applied to the server side, and cooperates with the data processing method applied to the first client provided below to jointly realize the segmented execution processing of the service to be processed. Please refer to the following for reading this embodiment Provides an explanation of the corresponding part of the embodiment of the data processing method applied to the first client.
需要说明的是,在对待处理业务进行执行处理的过程中,如果待处理业务的执行处理涉及多方参与配合实现,或者待处理业务的执行处理需进行远程数据传输、数据调用,再或者待处理业务的执行处理需要涉及多个处理平台的数据支持,可在分布式系统的基础上实现所述第二种数据处理方法,具体的,通过创建所述待处理业务对应的分布式事务,并基于分布式系统中部署在不同节点之上的支持事务的服务器、资源服务器以及事务管理器之间的协同配合,实现在元数据基础上进行的分布式事务的创建,以及根据提交的执行方式对分布式事务执行处理,从而来进一步提升待处理业务的业务执行处理的处理效率和处理一致性。It should be noted that in the process of executing the business to be processed, if the execution of the business to be processed involves multiple parties participating in the implementation, or the execution of the business to be processed requires remote data transmission, data invocation, or the business to be processed The execution of processing requires data support involving multiple processing platforms. The second data processing method can be implemented on the basis of a distributed system. Specifically, by creating a distributed transaction corresponding to the business to be processed, and based on the distribution The collaboration among transaction-supporting servers, resource servers, and transaction managers deployed on different nodes in a distributed system realizes the creation of distributed transactions on the basis of metadata, as well as the implementation of distributed transactions based on the submitted execution mode. Transaction execution processing to further improve the processing efficiency and processing consistency of the business execution processing of the business to be processed.
本实施例所述待处理业务,包括交易业务、数据流处理业务、支付业务等,在此,本实施例以支付业务场景为例对所述数据处理方法进行说明,交易业务场景和数据量处理业务场景的实现方式,参照本实施例提供的应用于支付业务场景的数据处理方式的具体实现即可,本实施例不再一一赘述。The services to be processed in this embodiment include transaction services, data stream processing services, payment services, etc. Here, this embodiment uses payment business scenarios as an example to illustrate the data processing methods, transaction business scenarios and data volume processing For the implementation of the business scenario, refer to the specific implementation of the data processing method applied to the payment business scenario provided in this embodiment, and this embodiment will not repeat them one by one.
具体实施时,所述待处理业务包括:交易业务,数据流处理业务,支付业务;相应的,所述交易业务具体是指关于物品交易、资源交易或者数据交易进行交易处理相关的业务;所述数据流处理业务具体是指关于数据流调用处理的相关业务;所述支付业务具体是指关于商品支付处理的相关业务。In specific implementation, the pending services include: transaction services, data stream processing services, and payment services; correspondingly, the transaction services specifically refer to transactions related to transaction processing related to item transactions, resource transactions, or data transactions; The data stream processing business specifically refers to a related business related to data stream invocation processing; the payment business specifically refers to a related business related to commodity payment processing.
其中,在所述待处理业务为数据流处理业务的情况下,对应的所述元数据是指针对数据流处理业务所需要执行的调用任务;所述待处理业务为交易业务的情况下,对应的元数据是指针对交易业务所需要交易的总交易数额;所述待处理业务为支付业务的情况下,对应的元数据是指针对支付业务所需要支付的总支付资金。Wherein, when the service to be processed is a data stream processing service, the corresponding metadata refers to the calling task that needs to be performed on the data stream processing service; when the service to be processed is a transaction service, corresponding The metadata refers to the total transaction amount required for the transaction business; when the business to be processed is a payment business, the corresponding metadata refers to the total payment funds that need to be paid for the payment business.
在支付业务场景中,将参与支付业务交互的双方分为支付方(实体门店用户、电子交易平台的购买用户)和被支付方(实体门店、电子交易平台中的商家),所述第一客户端与支付方对应,被支付方对应于第二客户端,则支付方和被支付方双方进行的支付业务交互,通过第一客户端和第二客户端、且在服务端的中介下实现。In the payment business scenario, the two parties involved in the payment business interaction are divided into the paying party (physical store users, electronic transaction platform purchase users) and the paid party (physical store, electronic transaction platform merchants), and the first customer The end corresponds to the payer, and the payee corresponds to the second client. The payment service interaction between the payer and the payee is implemented through the first client and the second client and under the intermediary of the server.
具体的,支付方在通过所述第一客户端进行支付业务交互的过程中,如果支付 方想对已达成的交易或者将达成的交易进行分期支付(即:待处理支付业务),首先由支付方通过所述第一客户端针对待处理支付业务选择想要分期的分期数目,并在选定分期数目的基础上提交分期支付指令,然后由所述第一客户端基于支付方提交的分期支付指令向服务端提交相应的分期支付请求,并在所述分期支付请求中写入所述分期数目和所述待处理支付业务的业务ID,最后由服务端接收所述分期支付请求,并在该分期支付请求中携带的所述分期数目和所述待处理支付业务的业务ID的基础上进行后续分期支付处理。Specifically, in the process of payment service interaction by the paying party through the first client, if the paying party wants to pay in installments for a completed transaction or a transaction to be concluded (ie: pending payment business), the payment will be made first The party selects the number of installments to be processed for the payment service to be processed through the first client, and submits the installment payment instruction based on the selected installment number, and then the first client uses the installment payment submitted by the payer The instruction submits the corresponding installment payment request to the server, and writes the number of installments and the service ID of the pending payment service in the installment request. Finally, the server receives the installment request and writes it in the installment request. The subsequent installment payment processing is performed on the basis of the number of installments carried in the installment payment request and the service ID of the payment service to be processed.
步骤S904,根据所述分段数目和所述业务标识对应的元数据,创建所述业务处理请求对应的分段数据事务。Step S904: Create a segment data transaction corresponding to the service processing request according to the number of segments and the metadata corresponding to the service identifier.
根据上述接收所述业务处理请求中携带的所述分段数目和所述业务标识,确定所述业务标识对应的元数据,即所述待处理业务对应的元数据,在所述待处理业务的分段数目和元数据的基础上,创建所述业务处理请求对应的分段数据事务。According to the number of segments and the service identifier carried in the service processing request received above, the metadata corresponding to the service identifier is determined, that is, the metadata corresponding to the service to be processed. Based on the number of segments and metadata, a segment data transaction corresponding to the service processing request is created.
本实施例中,首先按照业务处理节点对所述待处理业务的执行处理过程进行划分,将待处理业务的执行处理过程划分为一个或者多个执行阶段(执行段),然后对待处理业务进行事务化,每个执行阶段需要执行处理的事务称之为一个数据事务,则待处理业务的所有执行阶段的数据事务构成的整体称之为分段数据事务。需要说明的是,所述分段数据事务中各个执行阶段的数据事务是按照执行处理的时间顺序依次进行排序,相应的,所述分段数据事务的执行处理过程中,其中各个执行阶段的数据事务也是按照排序顺序依次执行处理。具体的,所述分段数据事务中,还记录有各个数据执行信息和数据链路。In this embodiment, the execution process of the business to be processed is first divided according to the business processing node, and the execution process of the business to be processed is divided into one or more execution stages (execution sections), and then the business to be processed is executed. The transaction that needs to be processed in each execution stage is called a data transaction, and the whole of the data transactions in all execution stages of the business to be processed is called a segmented data transaction. It should be noted that the data transactions of each execution stage in the segmented data transaction are sequentially sorted according to the time sequence of the execution processing. Correspondingly, during the execution processing of the segmented data transaction, the data of each execution stage Transactions are also processed in sequence in order of sorting. Specifically, in the segmented data transaction, various data execution information and data links are also recorded.
实际应用中,在所述待处理业务为交易业务的情况下,所述交易业务将采用分阶段交易方式进行执行分阶段交易事务;在所述待处理业务为数据流处理业务的情况系,所述数据量处理业务将采用分阶段处理方式进行执行分阶段数据流处理事务;在所述待处理业务为支付业务的情况下,所述支付业务采用分阶段支付方式进行执行分阶段支付事务。In actual applications, when the pending business is a transactional business, the transactional business will use a staged transaction method to execute a staged transactional transaction; when the pending business is a data stream processing business, The data volume processing service will adopt a phased processing method to execute a phased data flow processing transaction; in the case that the to-be-processed service is a payment service, the payment service adopts a phased payment method to execute a phased payment transaction.
例如,在支付业务中,支付用户通过支付平台提供的支付额度在商家购买了一件商品,该商品的价格是1000元,支付用户通过将分期的方式向支付平台偿还该笔支付额度,总期数是10期,每期的偿还额度是100,每个支付阶段需要支付用户向支付平台偿还与支付额度相等的支付资金100,而支付平台将通过金融机构提供的100元资金转至商家,在此支付过程中即可称之为该支付阶段的一个支付事务,支付业务中的十个 支付阶段对应的支付事务组成称之为所述支付业务中的分阶段支付事务。For example, in a payment business, a paying user purchases a product at a merchant through a payment line provided by the payment platform. The price of the product is 1,000 yuan. The paying user repays the payment line to the payment platform by installments. The total period is The number is 10 periods, and the repayment limit for each period is 100. In each payment stage, the user needs to pay the payment platform to repay the payment platform with a payment amount equal to 100, and the payment platform will transfer the 100 yuan fund provided by the financial institution to the merchant. This payment process can be referred to as a payment transaction in the payment phase, and the payment transaction composition corresponding to the ten payment phases in the payment business is referred to as the phased payment transaction in the payment business.
除此之外,为了提高待处理业务场景的安全性,本实施例的一个或多个实施方式中,还可以采用如下方式实现所述业务处理请求对应的分段数据事务的创建:判断所述元数据中包含的待处理数据处理值是否小于或者等于所述第一客户端对应的数据流出对象的数据账户空间的可用数据额度;若是,根据所述元数据创建所述待处理业务的分段数据事务;若否,向所述第一客户端推送处理失败的提醒。In addition, in order to improve the security of the business scenario to be processed, in one or more implementation manners of this embodiment, the following manners can also be used to implement the creation of a segmented data transaction corresponding to the business processing request: judging the Whether the processing value of the to-be-processed data contained in the metadata is less than or equal to the available data quota of the data account space of the data outflow object corresponding to the first client; if so, create the segment of the to-be-processed service based on the metadata Data transaction; if not, push a notification of processing failure to the first client.
步骤S906,向所述第一客户端下发所述分段数据事务。Step S906: Deliver the segmented data transaction to the first client.
上述完成所述待处理业务的分段数据事务的创建之后,向所述第一客户端下发所述分段数据事务,目的是使所述第一客户端对应的支付方获知所述分段数据事务。After the foregoing creation of the segmented data transaction of the pending service is completed, the segmented data transaction is issued to the first client, with the purpose of enabling the payer corresponding to the first client to know the segment Data transaction.
以支付业务场景为例,向支付方对应的第一客户端下发待处理支付业务的分期支付事务,目的是使支付方获知待处理支付业务的分期支付数目以及各个分期支付阶段的支付详情。此外,还可以向被支付方对应的第二客户端下发待处理支付业务的分期支付事务,以使被支付方同样能够及时获知待处理支付业务的分期支付数目以及各个分期支付阶段的支付详情。Taking the payment business scenario as an example, the first client corresponding to the payer sends the installment transaction of the payment service to be processed, so that the payer knows the number of installments of the payment service to be processed and the payment details of each installment payment stage. In addition, it is also possible to issue the installment payment transaction of the payment service to be processed to the second client corresponding to the paid party, so that the paid party can also timely know the number of installment payments for the payment service to be processed and the payment details of each installment payment stage .
步骤S908,根据所述第一客户端针对所述分段数据事务提交的分段执行方式,对所述分段数据事务进行解析,获得与所述分段执行方式对应的目标数据事务。Step S908: Analyze the segmented data transaction according to the segmented execution mode submitted by the first client for the segmented data transaction to obtain a target data transaction corresponding to the segmented execution mode.
本实施例提供的一种可选实施方式中,具体采用如下方式对所述分段数据事务进行解析:接收所述第一客户端针对所述至少一个执行段提交的分段执行方式;根据所述分段执行方式,对所述分段数据事务进行分解,获得与所述分段执行方式对应的目标数据事务;其中,所述与所述分段执行方式对应的目标数据事务中,记录有所述至少一个执行段的目标数据执行信息和目标数据链路,所述目标数据执行信息基于所述至少一个执行段的数据执行信息确定,所述目标数据链路基于所述至少一个执行段的数据链路确定。In an optional implementation manner provided in this embodiment, the segmented data transaction is specifically analyzed in the following manner: receiving the segmented execution manner submitted by the first client for the at least one execution segment; The segmented execution mode decomposes the segmented data transaction to obtain the target data transaction corresponding to the segmented execution mode; wherein, in the target data transaction corresponding to the segmented execution mode, there is recorded The target data execution information and target data link of the at least one execution section, the target data execution information is determined based on the data execution information of the at least one execution section, and the target data link is based on the data execution information of the at least one execution section. The data link is determined.
实际应用中,在确定所述分段数据事务的基础上,由于所述分段数据事务将由多个执行段的数据事务组成,故在所述分段数据事务为分阶段交易事务的情况下,对应的执行段包括分阶段交易过程中的各个交易阶段;在所述分段数据事务为分阶段数据流处理事务的情况下,对应的执行段包括分阶段处理过程中的各个数据处理阶段;在所述分段数据事务为分阶段支付事务的情况下,对应的执行段包括分阶段支付过程中的各个支付阶段。In practical applications, on the basis of determining the segmented data transaction, since the segmented data transaction will be composed of data transactions of multiple execution segments, when the segmented data transaction is a phased transaction transaction, The corresponding execution stage includes each transaction stage in the staged transaction process; in the case that the segmented data transaction is a staged data flow processing transaction, the corresponding execution stage includes each data processing stage in the staged processing process; In the case that the segmented data transaction is a phased payment transaction, the corresponding execution segment includes each payment phase in the phased payment process.
沿用上例,在支付业务场景中,在支付方对应的第一客户端向服务端发送针对分期支付事务提交的分期支付方式,此时可以确定支付方存在针对分期支付事务中的至少一个支付阶段主动进行支付处理,则支付方对应的第一客户端提交的分期支付方式对分期支付事务进行解析,确定支付方需要进行支付处理的至少一个支付阶段对应的目标支付事务。Following the above example, in the payment business scenario, the first client corresponding to the payer sends the installment payment method submitted for the installment transaction to the server. At this time, it can be determined that the payer has at least one payment stage for the installment transaction. If payment processing is actively performed, the installment payment method submitted by the first client corresponding to the payer analyzes the installment payment transaction, and determines the target payment transaction corresponding to at least one payment stage in which the payer needs to perform payment processing.
实际应用中,支付方还可以同时针对多个支付阶段通过第一客户端向服务端发送分期支付方式,通过多个支付阶段而创建的目标支付事务也是针对多个支付阶段,故在后续支付处理的过程中,需要同时对多个支付阶段对应的支付事务组成的目标支付事务进行支付处理。In practical applications, the payer can also send the installment payment method to the server through the first client for multiple payment stages at the same time. The target payment transaction created through multiple payment stages is also for multiple payment stages, so in the subsequent payment processing During the process, payment processing needs to be performed on the target payment transaction composed of payment transactions corresponding to multiple payment stages at the same time.
步骤S910,根据所述目标数据事务中记录的所述至少一个执行段的目标数据执行信息和目标数据链路,对所述目标数据事务进行执行处理。Step S910: Perform execution processing on the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction.
本实施例提供的一种可选实施方式中,对所述目标数据事务进行的执行处理,具体采用如下方式实现:读取所述目标数据执行信息中包含的所述至少一个执行段对应的数据流动数值;按照所述目标数据链路,对所述第一客户端对应的数据流出对象的数据账户空间的数据额度扣减所述数据流动数值对应的扣减额度,以及,从所述数据流出对象的数据账户空间对应的实际数据账户转出所述数据流动数值对应的数据资源至第二客户端对应的数据流入对象的数据账户;其中,所述目标数据链路的数据节点至少对应于所述数据流出对象的数据账户空间和所述数据流入对象的数据账户;所述数据账户空间的数据结算周期的时长与所述分段数据事务的执行段的执行处理周期的时长相等,在前一数据结算周期对所述数据账户空间的数据额度扣减所述扣减额度,经后一数据结算周期的数据结算处理后,所述扣减额度对所述数据额度的扣减被更新。In an optional implementation manner provided by this embodiment, the execution processing of the target data transaction is specifically implemented in the following manner: reading the data corresponding to the at least one execution segment contained in the target data execution information Flow value; according to the target data link, deduct the deduction amount corresponding to the data flow value from the data quota of the data account space of the data outflow object corresponding to the first client, and, from the data outflow The actual data account corresponding to the data account space of the object transfers the data resource corresponding to the data flow value to the data account of the data inflow object corresponding to the second client; wherein, the data node of the target data link at least corresponds to all The data account space of the data outflow object and the data account of the data inflow object; the duration of the data settlement cycle of the data account space is equal to the duration of the execution processing cycle of the execution section of the segmented data transaction, which is in the previous The data settlement cycle deducts the deduction quota from the data quota of the data account space, and after the data settlement processing of the subsequent data settlement cycle, the deduction of the data quota by the deduction quota is updated.
进一步,在读取所述目标数据执行信息中包含的所述至少一个执行段对应的数据流动数值之后,还需进一步进行第一执行附加数据值的计算,具体如下:根据所述数据流动数值以及所述至少一个执行段对应的第一执行附加数据占比,计算所述至少一个执行段对应的第一执行附加数据值;对所述数据流入对象进行所述第一执行附加数据值的数据结算处理;其中,所述第一执行附加数据占比,包括对所述分段数据事务在所述至少一个执行段进行执行处理产生的处理费率,依据所述第一执行附加数据占比计算获得的所述第一执行附加数据值由所述数据流入对象承担。Further, after reading the data flow value corresponding to the at least one execution segment contained in the target data execution information, further calculation of the first execution additional data value is required, which is specifically as follows: according to the data flow value and The proportion of the first execution additional data corresponding to the at least one execution segment is calculated, the first execution additional data value corresponding to the at least one execution segment is calculated; the data settlement of the first execution additional data value is performed on the data inflow object Processing; wherein the proportion of the first execution additional data includes the processing fee generated by the execution processing of the segmented data transaction in the at least one execution segment, and is calculated according to the proportion of the first execution additional data The first execution additional data value of is borne by the data inflow object.
步骤S912,向所述第一客户端推送所述目标数据事务的执行处理结果。Step S912: Push the execution processing result of the target data transaction to the first client.
完成所述目标数据事务的执行处理之后,除了向所述第一客户端推送所述目标数据事务的执行处理结果,以使所述第一客户端对应的支付方及时获知分期支付处理结果之外,还可以向所述第二客户端对应的被支付方推送分期支付处理结果,使被支付方也能及时获知分期支付处理结果。After the execution processing of the target data transaction is completed, in addition to pushing the execution processing result of the target data transaction to the first client terminal, so that the payer corresponding to the first client terminal knows the result of the installment payment processing in time , It is also possible to push the installment payment processing result to the paid party corresponding to the second client, so that the paid party can also learn the installment payment processing result in time.
实际应用中,支付方在对分期支付事务进行分期支付的过程中,具体在对所述目标数据事务进行执行处理之后,被支付方还可以根据自身的实际业务需求选择提前申请数据流入,并且被支付方提前申请数据流入并不会对支付方的分期支付产生影响,本实施例提供的一种可选实施方式中,支付方提前申请数据流入具体采用如下方式实现。In practical applications, when the paying party performs the installment payment process for the installment payment transaction, specifically after the target data transaction is executed, the payee can also choose to apply for data inflow in advance according to its actual business needs, and be The payer's application for data inflow in advance does not affect the payer's installment payment. In an optional implementation manner provided in this embodiment, the payer's application for data inflow in advance is specifically implemented in the following manner.
1)接收第二客户端对应的数据流入对象针对剩余执行段提交的第二预执行请求;1) Receive the second pre-execution request submitted by the data inflow object corresponding to the second client for the remaining execution segments;
2)基于所述第二预执行请求中携带的第二预执行方式,对所述剩余执行段对应的数据执行信息和数据链路进行组装,获得与所述第二预执行方式对应的第二中间数据事务;所述第二中间数据事务中记录有所述第二预执行请求对应的第二总数据流动数值;2) Based on the second pre-execution mode carried in the second pre-execution request, assemble the data execution information and the data link corresponding to the remaining execution segments to obtain the second pre-execution mode corresponding to the second pre-execution mode. Intermediate data transaction; the second intermediate data transaction records the second total data flow value corresponding to the second pre-execution request;
3)通过从所述分段数据事务的中间数据对象的数据账户申请所述第二总数据流动数值对应的数据资源至所述数据流入对象的数据账户的方式,对所述第二中间数据事务进行执行处理;3) By applying for the data resource corresponding to the second total data flow value from the data account of the intermediate data object of the segmented data transaction to the data account of the data inflow object, the second intermediate data transaction Perform execution processing;
4)根据所述第一客户端对应的数据流出对象和所述中间数据对象二者数据账户的账户路径,确定从所述数据流出对象至所述中间数据对象的第二分段数据链路;4) Determine the second segmented data link from the data outflow object to the intermediate data object according to the account paths of the data accounts of the data outflow object corresponding to the first client and the intermediate data object;
5)根据所述第二分段数据链路和所述剩余执行段的数据执行信息,组建所述剩余执行段对应的第二分段数据事务;5) According to the second segment data link and the data execution information of the remaining execution segment, construct a second segment data transaction corresponding to the remaining execution segment;
其中,所述第二中间数据事务中记录有第二中间数据链路,所述第二中间数据链路的起始数据节点对应于所述中间数据对象的数据账户,终止数据节点对应于所述数据流入对象的数据账户。Wherein, a second intermediate data link is recorded in the second intermediate data transaction, the starting data node of the second intermediate data link corresponds to the data account of the intermediate data object, and the terminating data node corresponds to the Data flows into the data account of the subject.
如上所述,被支付方提前申请数据流入并不会对支付方的分期支付产生影响,因此,在被支付方采用上述实施方式提前申请数据流入之后,支付方还需继续执行所述分期支付事务的分期支付过程,本实施例提供的一种可选实施方式中,支付方在被支付方申请数据流入之后的分期支付具体采用如下方式实现:在所述第二分段数据事务的剩余执行段中至少一者的执行条件被触发的情况下,读取所述第二分段数据事务中被触发的剩余执行段对应的第二分段数据流动数值;按照所述第二分段数据链路,对所述数据流出对象的数据账户空间的数据额度扣减所述第二分段数据流动数值对应的扣减额度, 以及,从所述数据流出对象的数据账户空间对应的实际数据账户转出所述第二分段数据流动数值对应的数据资源至所述中间数据对象的数据账户;其中,所述数据账户空间的数据结算周期的时长与所述第二分段数据事务的剩余执行段的执行处理周期的时长相等,在前一数据结算周期对所述数据账户空间的数据额度扣减所述扣减额度,经后一数据结算周期的数据结算处理后,所述扣减额度对所述数据额度的扣减被更新。As mentioned above, the payee’s application for data inflow in advance will not affect the payer’s installment payment. Therefore, after the payee applies for data inflow in advance using the above implementation method, the payer must continue to execute the installment payment transaction In an optional implementation manner provided in this embodiment, the payer’s installment payment after the payee’s application for data inflow is specifically implemented in the following manner: in the remaining execution section of the second segment data transaction When the execution condition of at least one of the second segment data is triggered, read the second segment data flow value corresponding to the remaining execution segment triggered in the second segment data transaction; according to the second segment data link , Deduct the deduction amount corresponding to the second segment data flow value from the data quota of the data account space of the data outflow object, and transfer out from the actual data account corresponding to the data account space of the data outflow object The data resource corresponding to the second segment data flow value is transferred to the data account of the intermediate data object; wherein the duration of the data settlement period of the data account space is equal to the remaining execution period of the second segment data transaction The duration of the execution processing cycle is the same. In the previous data settlement cycle, the data quota of the data account space is deducted from the deduction quota. After the data settlement processing in the subsequent data settlement cycle, the deduction quota is The deduction of the data quota is updated.
本说明书提供的第二种数据处理方法,实现了可以根据提交的执行方式对相应的执行段进行更加灵活的处理,同时,以数据事务的方式对待处理业务进行执行处理,提升了业务执行处理的处理效率和处理一致性。The second data processing method provided in this manual realizes that the corresponding execution segment can be processed more flexibly according to the submitted execution mode. At the same time, the business to be processed is executed in the form of data transaction, which improves the performance of business execution processing. Processing efficiency and processing consistency.
本说明书提供的第二种数据处理装置实施例如下:在上述的实施例中,提供了数据处理方法,与之相对应的,还提供了第二种数据处理装置,下面结合附图进行说明。The embodiment of the second data processing device provided in this specification is as follows: In the above-mentioned embodiment, a data processing method is provided, and correspondingly, a second data processing device is also provided, which is described below with reference to the accompanying drawings.
参照附图10,其示出了本实施例提供的第二种数据处理装置的示意图,包括:请求接收模块1002,被配置为接收第一客户端提交的待处理业务的业务处理请求;所述业务处理请求中携带业务标识和分段数目;分段数据事务创建模块1004,被配置为根据所述分段数目和所述业务标识对应的元数据,创建所述业务处理请求对应的分段数据事务;所述分段数据事务中记录有各个执行段的数据执行信息和数据链路;事务发送模块1006,被配置为向所述第一客户端下发所述分段数据事务;分段数据事务解析模块1008,被配置为根据所述第一客户端针对所述分段数据事务提交的分段执行方式,对所述分段数据事务进行解析,获得与所述分段执行方式对应的目标数据事务;事务处理模块1010,被配置为根据所述目标数据事务中记录的所述至少一个执行段的目标数据执行信息和目标数据链路,对所述目标数据事务进行执行处理;结果推送模块1012,被配置为向所述第一客户端推送所述目标数据事务的执行处理结果。Referring to FIG. 10, it shows a schematic diagram of a second data processing apparatus provided in this embodiment, including: a request receiving module 1002 configured to receive a service processing request for a service to be processed submitted by a first client; The service processing request carries the service identifier and the number of segments; the segment data transaction creation module 1004 is configured to create the segment data corresponding to the service processing request according to the number of segments and the metadata corresponding to the service identifier Transaction; the segmented data transaction records the data execution information and data link of each execution segment; the transaction sending module 1006 is configured to deliver the segmented data transaction to the first client; segmented data The transaction analysis module 1008 is configured to analyze the segmented data transaction according to the segmented execution mode submitted by the first client for the segmented data transaction to obtain a target corresponding to the segmented execution mode Data transaction; transaction processing module 1010, configured to perform execution processing on the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction; result push module 1012, configured to push the execution processing result of the target data transaction to the first client.
可选地,所述分段数据事务解析模块1008,包括:接收子模块,被配置为接收所述第一客户端针对所述至少一个执行段提交的分段执行方式;分解子模块,被配置为根据所述分段执行方式,对所述分段数据事务进行分解,获得与所述分段执行方式对应的目标数据事务;其中,所述与所述分段执行方式对应的目标数据事务中,记录有所述至少一个执行段的目标数据执行信息和目标数据链路,所述目标数据执行信息基于所述至少一个执行段的数据执行信息确定,所述目标数据链路基于所述至少一个执行段的数据链路确定。Optionally, the segmented data transaction analysis module 1008 includes: a receiving sub-module configured to receive a segmented execution mode submitted by the first client for the at least one execution segment; a decomposition sub-module configured to In order to decompose the segmented data transaction according to the segmented execution mode to obtain the target data transaction corresponding to the segmented execution mode; wherein, the target data transaction corresponding to the segmented execution mode is , The target data execution information and the target data link of the at least one execution section are recorded, the target data execution information is determined based on the data execution information of the at least one execution section, and the target data link is based on the at least one execution section. Perform the data link determination of the segment.
可选地,所述事务处理模块1010,还包括:读取子模块,被配置为读取所述目标数据执行信息中包含的所述至少一个执行段对应的数据流动数值;数据资源处理子模 块,被配置为按照所述目标数据链路,对所述第一客户端对应的数据流出对象的数据账户空间的数据额度扣减所述数据流动数值对应的扣减额度,以及,从所述数据流出对象的数据账户空间对应的实际数据账户转出所述数据流动数值对应的数据资源至第二客户端对应的数据流入对象的数据账户;其中,所述目标数据链路的数据节点至少对应于所述数据流出对象的数据账户空间和所述数据流入对象的数据账户;所述数据账户空间的数据结算周期的时长与所述分段数据事务的执行段的执行处理周期的时长相等,在前一数据结算周期对所述数据账户空间的数据额度扣减所述扣减额度,经后一数据结算周期的数据结算处理后,所述扣减额度对所述数据额度的扣减被更新。Optionally, the transaction processing module 1010 further includes: a reading sub-module configured to read the data flow value corresponding to the at least one execution segment contained in the target data execution information; a data resource processing sub-module , Configured to deduct the deduction quota corresponding to the data flow value from the data quota of the data account space of the data outflow object corresponding to the first client according to the target data link, and, from the data The actual data account corresponding to the data account space of the outgoing object transfers the data resource corresponding to the data flow value to the data account of the data inflow object corresponding to the second client; wherein, the data node of the target data link corresponds to at least The data account space of the data outflow object and the data account of the data inflow object; the duration of the data settlement cycle of the data account space is equal to the duration of the execution processing cycle of the execution section of the segmented data transaction, and the preceding A data settlement cycle deducts the deduction quota from the data quota of the data account space, and after the data settlement processing of the subsequent data settlement cycle, the deduction of the data quota by the deduction quota is updated.
可选地,所述事务处理模块1010,还包括:计算子模块,被配置为根据所述数据流动数值以及所述至少一个执行段对应的第一执行附加数据占比,计算所述至少一个执行段对应的第一执行附加数据值;结算子模块,被配置为对所述数据流入对象进行所述第一执行附加数据值的数据结算处理;其中,所述第一执行附加数据占比,包括对所述分段数据事务在所述至少一个执行段进行执行处理产生的处理费率,依据所述第一执行附加数据占比计算获得的所述第一执行附加数据值由所述数据流入对象承担。Optionally, the transaction processing module 1010 further includes: a calculation sub-module configured to calculate the at least one execution based on the data flow value and the proportion of the first execution additional data corresponding to the at least one execution segment The first execution additional data value corresponding to the segment; a settlement sub-module configured to perform the data settlement processing of the first execution additional data value on the data inflow object; wherein the proportion of the first execution additional data includes The processing fee rate generated by the execution processing of the segmented data transaction in the at least one execution segment, the first execution additional data value obtained by calculating the proportion of the first execution additional data is flowed into the object by the data bear.
可选地,所述数据处理装置,还包括:预执行请求接收模块,被配置为接收第二客户端对应的数据流入对象针对剩余执行段提交的第二预执行请求;组装模块,被配置为基于所述第二预执行请求中携带的第二预执行方式,对所述剩余执行段对应的数据执行信息和数据链路进行组装,获得与所述第二预执行方式对应的第二中间数据事务;所述第二中间数据事务中记录有所述第二预执行请求对应的第二总数据流动数值;事务执行处理模块,被配置为通过从所述分段数据事务的中间数据对象的数据账户申请所述第二总数据流动数值对应的数据资源至所述数据流入对象的数据账户的方式,对所述第二中间数据事务进行执行处理;数据链路确定模块,被配置为根据所述第一客户端对应的数据流出对象和所述中间数据对象二者数据账户的账户路径,确定从所述数据流出对象至所述中间数据对象的第二分段数据链路;事务组建模块,被配置为根据所述第二分段数据链路和所述剩余执行段的数据执行信息,组建所述剩余执行段对应的第二分段数据事务;其中,所述第二中间数据事务中记录有第二中间数据链路,所述第二中间数据链路的起始数据节点对应于所述中间数据对象的数据账户,终止数据节点对应于所述数据流入对象的数据账户。Optionally, the data processing device further includes: a pre-execution request receiving module configured to receive a second pre-execution request submitted by the data inflow object corresponding to the second client for the remaining execution segments; an assembly module configured to Based on the second pre-execution mode carried in the second pre-execution request, the data execution information and data link corresponding to the remaining execution segments are assembled to obtain second intermediate data corresponding to the second pre-execution mode Transaction; the second intermediate data transaction records the second total data flow value corresponding to the second pre-execution request; the transaction execution processing module is configured to pass data from the intermediate data object of the segmented data transaction The account applies for the data resource corresponding to the second total data flow value to the data account of the data inflow object, and executes the processing of the second intermediate data transaction; the data link determination module is configured to perform processing according to the The account path of the data account of both the data outflow object corresponding to the first client and the intermediate data object determines the second segmented data link from the data outflow object to the intermediate data object; the transaction building module is It is configured to form a second segment data transaction corresponding to the remaining execution segment according to the second segment data link and the data execution information of the remaining execution segment; wherein, the second intermediate data transaction records The second intermediate data link, the start data node of the second intermediate data link corresponds to the data account of the intermediate data object, and the termination data node corresponds to the data account of the data inflow object.
可选地,所述数据处理装置,还包括:数值读取模块,被配置为在所述第二分段数据事务的剩余执行段中至少一者的执行条件被触发的情况下,读取所述第二分段数 据事务中被触发的剩余执行段对应的第二分段数据流动数值;资源转移模块,被配置为按照所述第二分段数据链路,对所述数据流出对象的数据账户空间的数据额度扣减所述第二分段数据流动数值对应的扣减额度,以及,从所述数据流出对象的数据账户空间对应的实际数据账户转出所述第二分段数据流动数值对应的数据资源至所述中间数据对象的数据账户;其中,所述数据账户空间的数据结算周期的时长与所述第二分段数据事务的剩余执行段的执行处理周期的时长相等,在前一数据结算周期对所述数据账户空间的数据额度扣减所述扣减额度,经后一数据结算周期的数据结算处理后,所述扣减额度对所述数据额度的扣减被更新。Optionally, the data processing device further includes: a value reading module configured to read the data when the execution condition of at least one of the remaining execution segments of the second segmented data transaction is triggered. The second segment data flow value corresponding to the remaining execution segment that is triggered in the second segment data transaction; the resource transfer module is configured to perform data flow of the data out of the object according to the second segment data link The data quota of the account space deducts the deduction quota corresponding to the data flow value of the second segment, and transfers the data flow value of the second segment from the actual data account corresponding to the data account space of the data outflow object The corresponding data resource to the data account of the intermediate data object; wherein the duration of the data settlement cycle of the data account space is equal to the duration of the execution processing cycle of the remaining execution stages of the second segmented data transaction, and the previous A data settlement cycle deducts the deduction quota from the data quota of the data account space, and after the data settlement processing of the subsequent data settlement cycle, the deduction of the data quota by the deduction quota is updated.
可选地,所述分段数据事务创建模块1004,还包括:判断子模块,被配置为判断所述元数据中包含的待处理数据处理值是否小于或者等于所述第一客户端对应的数据流出对象的数据账户空间的可用数据额度;若所述判断子模块的执行结果为是,则运行所述创建子模块;若所述判断模块的执行结果为否,则运行提醒推送子模块;所述创建子模块,被配置为根据所述元数据创建所述待处理业务的分段数据事务;所述提醒推送子模块,被配置为向所述第一客户端推送处理失败的提醒。Optionally, the segmented data transaction creation module 1004 further includes: a judging sub-module configured to judge whether the processing value of the to-be-processed data contained in the metadata is less than or equal to the data corresponding to the first client The available data quota of the data account space of the outflow object; if the execution result of the judgment submodule is yes, then the creation submodule is run; if the execution result of the judgment module is no, then the reminder push submodule is run; The creation sub-module is configured to create a segmented data transaction of the service to be processed according to the metadata; the reminder push sub-module is configured to push a processing failure reminder to the first client.
可选地,所述待处理业务包括:交易业务,数据流处理业务,支付业务;相应的,所述待处理业务的分段数据事务包括:所述交易业务采用分阶段交易方式进行执行的分阶段交易事务,所述数据流处理业务采用分阶段处理方式进行执行的分阶段数据流处理事务,所述支付业务采用分阶段支付方式进行执行的分阶段支付事务;所述分段数据事务的执行段包括:所述分阶段交易事务在分阶段交易过程中的各个交易阶段,所述分阶段数据流处理事务在分阶段处理过程中的各个数据处理阶段,所述分阶段支付事务在分阶段支付过程中的各个支付阶段。Optionally, the to-be-processed services include: transaction services, data stream processing services, and payment services; correspondingly, the segmented data transactions of the to-be-processed services include: segmentation in which the transaction services are executed in a phased transaction mode. A staged transaction transaction, the data stream processing business adopts a staged data stream processing transaction executed by a staged processing method, and the payment business adopts a staged payment transaction executed by a staged payment method; the execution of the segmented data transaction The segments include: each transaction stage in the staged transaction process of the staged transaction transaction, each data processing stage of the staged data flow processing transaction in the staged processing process, the staged payment transaction in the staged payment The various payment stages in the process.
上述为本实施例的第二种数据处理装置的示意性方案。需要说明的是,该数据处理装置的技术方案与上述的第二种数据处理方法的技术方案属于同一构思,第二种数据处理装置的技术方案未详细描述的细节内容,均可以参见上述第二种数据处理方法的技术方案的描述。The foregoing is a schematic solution of the second data processing device of this embodiment. It should be noted that the technical solution of the data processing device belongs to the same concept as the technical solution of the above-mentioned second data processing method. For details that are not described in detail in the technical solution of the second data processing device, please refer to the above-mentioned second Description of the technical solution of this data processing method.
参照附图11,其示出了本说明书实施例提供的第三种数据处理方法的处理流程图,具体包括以下步骤S1102至S1110。Referring to FIG. 11, it shows a processing flowchart of the third data processing method provided by the embodiment of this specification, which specifically includes the following steps S1102 to S1110.
步骤S1102,接收针对待处理业务提交的业务处理指令。Step S1102: Receive a service processing instruction submitted for the service to be processed.
本实施例提供的第三种数据处理方法,应用于第一客户端,与上述提供的应用 于服务端的第二种数据处理方法相互配合,共同实现待处理业务的分段执行处理,阅读本实施例请对照上述提供的应用于服务端第二种数据处理方法实施例的对应部分的说明。The third data processing method provided in this embodiment is applied to the first client, and cooperates with the second data processing method applied to the server provided above to jointly realize the segmented execution processing of the service to be processed, read this implementation For example, please refer to the description of the corresponding part of the embodiment of the second data processing method provided on the server side provided above.
需要说明的是,在对待处理业务进行执行处理的过程中,如果待处理业务的执行处理涉及多方参与配合实现,或者待处理业务的执行处理需进行远程数据传输、数据调用,再或者待处理业务的执行处理需要涉及多个处理平台的数据支持,可在分布式系统的基础上实现所述第三种数据处理方法,具体的,通过创建所述待处理业务对应的分布式事务,并基于分布式系统中部署在不同节点之上的支持事务的服务器、资源服务器以及事务管理器之间的协同配合,实现在元数据基础上进行的分布式事务的创建,以及根据提交的执行方式对分布式事务执行处理,从而来进一步提升待处理业务的业务执行处理的处理效率和处理一致性。It should be noted that in the process of executing the business to be processed, if the execution of the business to be processed involves multiple parties participating in the implementation, or the execution of the business to be processed requires remote data transmission, data invocation, or the business to be processed The execution of processing requires data support involving multiple processing platforms. The third data processing method can be implemented on the basis of a distributed system. Specifically, by creating a distributed transaction corresponding to the business to be processed, and based on the distribution The collaboration among transaction-supporting servers, resource servers, and transaction managers deployed on different nodes in a distributed system realizes the creation of distributed transactions on the basis of metadata, as well as the implementation of distributed transactions based on the submitted execution mode. Transaction execution processing to further improve the processing efficiency and processing consistency of the business execution processing of the business to be processed.
步骤S1104,根据所述业务处理指令对应的分段数目,向服务端提交携带所述分段数目和所述待处理业务的业务标识的业务处理请求。Step S1104, according to the number of segments corresponding to the service processing instruction, submit a service processing request carrying the number of segments and the service identifier of the service to be processed to the server.
步骤S1106,接收所述服务端针对所述业务处理请求下发的分段数据事务并展示。Step S1106: Receive and display the segmented data transaction issued by the server in response to the service processing request.
步骤S1108,根据针对所述分段数据事务的分段执行输入,向所述服务端提交分段执行方式。Step S1108: Submit a segmented execution mode to the server according to the segmented execution input for the segmented data transaction.
步骤S1110,接收所述服务端返回的所述分段执行方式对应的目标数据事务的执行处理结果。Step S1110: Receive the execution processing result of the target data transaction corresponding to the segmented execution mode returned by the server.
本说明书提供的第三种数据处理方法,实现了可以根据提交的执行方式对相应的执行段进行更加灵活的处理,同时,以数据事务的方式对待处理业务进行执行处理,提升了业务执行处理的处理效率和处理一致性。The third data processing method provided in this manual realizes that the corresponding execution segment can be processed more flexibly according to the submitted execution mode. At the same time, the business to be processed is executed in the form of data transaction, which improves the business execution processing. Processing efficiency and processing consistency.
本说明书提供的第三种数据处理装置实施例如下。The third embodiment of the data processing device provided in this specification is as follows.
在上述的实施例中,提供了数据处理方法,与之相对应的,还提供了第三种数据处理装置,下面结合附图进行说明。In the above-mentioned embodiment, a data processing method is provided, and correspondingly, a third data processing device is also provided, which will be described below with reference to the accompanying drawings.
参照附图12,其示出了本实施例提供的第三种数据处理装置的示意图,包括:指令接收模块1202,被配置为接收针对待处理业务提交的业务处理指令;请求提交模块1204,被配置为根据所述业务处理指令对应的分段数目,向服务端提交携带所述分段数目和所述待处理业务的业务标识的业务处理请求;事务接收模块1206,被配置为接收所 述服务端针对所述业务处理请求下发的分段数据事务并展示;分段执行方式提交模块1208,被配置为根据针对所述分段数据事务的分段执行输入,向所述服务端提交分段执行方式;处理结果接收模块1210,被配置为接收所述服务端返回的所述分段执行方式对应的目标数据事务的执行处理结果。Referring to FIG. 12, it shows a schematic diagram of a third data processing apparatus provided in this embodiment, including: an instruction receiving module 1202, configured to receive a service processing instruction submitted for a service to be processed; a request submitting module 1204, received It is configured to submit a service processing request carrying the number of segments and the service identifier of the service to be processed to the server according to the number of segments corresponding to the service processing instruction; the transaction receiving module 1206 is configured to receive the service The segmented data transaction issued by the end for the business processing request and display; the segmented execution mode submission module 1208 is configured to submit the segmented data transaction to the server according to the segmented execution input for the segmented data transaction Execution mode; the processing result receiving module 1210 is configured to receive the execution processing result of the target data transaction corresponding to the segmented execution mode returned by the server.
上述为本实施例的第三种数据处理装置的示意性方案。需要说明的是,该数据处理装置的技术方案与上述的第三种数据处理方法的技术方案属于同一构思,第三种数据处理装置的技术方案未详细描述的细节内容,均可以参见上述第三种数据处理方法的技术方案的描述。The foregoing is a schematic solution of the third data processing apparatus of this embodiment. It should be noted that the technical solution of the data processing device belongs to the same concept as the technical solution of the third data processing method mentioned above. For details that are not described in detail in the technical solution of the third data processing device, please refer to the third above. Description of the technical solution of this data processing method.
参照附图13,其示出了本说明书实施例提供的第四种数据处理方法的处理流程图,具体包括以下步骤S1302至S1312。Referring to FIG. 13, it shows a processing flowchart of the fourth data processing method provided by the embodiment of this specification, which specifically includes the following steps S1302 to S1312.
步骤S1302,接收第二客户端提交的携带业务标识的业务处理请求。Step S1302: Receive a service processing request carrying a service identifier submitted by the second client.
本实施例提供的数据处理方法,应用于服务端,与下述提供的应用于第二客户端的第五种数据处理方法相互配合,共同实现待处理业务的分段执行处理,阅读本实施例请对照下述提供的应用于第二客户端的第五种数据处理方法实施例的对应部分的说明。The data processing method provided in this embodiment is applied to the server, and cooperates with the fifth data processing method applied to the second client provided below to jointly realize the segmented execution processing of the service to be processed. Please read this embodiment. Compare the description of the corresponding part of the embodiment of the fifth data processing method applied to the second client provided below.
需要说明的是,在对待处理业务进行执行处理的过程中,如果待处理业务的执行处理涉及多方参与配合实现,或者待处理业务的执行处理需进行远程数据传输、数据调用,再或者待处理业务的执行处理需要涉及多个处理平台的数据支持,可在分布式系统的基础上实现所述第四种数据处理方法,具体的,通过创建所述待处理业务对应的分布式事务,并基于分布式系统中部署在不同节点之上的支持事务的服务器、资源服务器以及事务管理器之间的协同配合,实现在元数据基础上进行的分布式事务的创建,以及根据提交的执行方式对分布式事务执行处理,从而来进一步提升待处理业务的业务执行处理的处理效率和处理一致性。It should be noted that in the process of executing the business to be processed, if the execution of the business to be processed involves multiple parties participating in the implementation, or the execution of the business to be processed requires remote data transmission, data invocation, or the business to be processed The execution of processing requires data support involving multiple processing platforms. The fourth data processing method can be implemented on the basis of a distributed system. Specifically, by creating a distributed transaction corresponding to the business to be processed, and based on the distribution The collaboration among transaction-supporting servers, resource servers, and transaction managers deployed on different nodes in a distributed system realizes the creation of distributed transactions on the basis of metadata, as well as the implementation of distributed transactions based on the submitted execution mode. Transaction execution processing to further improve the processing efficiency and processing consistency of the business execution processing of the business to be processed.
本实施例所述的待处理业务,包括交易业务、数据流处理业务、支付业务等,在此,本实施例以支付业务场景为例对所述数据处理方法进行说明,交易业务场景和数据量处理业务场景的实现方式,参照本实施例提供的应用于支付业务场景的数据处理方式的具体实现即可,本实施例不再一一赘述。The services to be processed in this embodiment include transaction services, data stream processing services, payment services, etc. Here, this embodiment uses payment business scenarios as an example to illustrate the data processing method, transaction business scenarios and data volume For the implementation of the processing business scenario, refer to the specific implementation of the data processing method applied to the payment business scenario provided in this embodiment, and this embodiment will not repeat them one by one.
在支付业务场景中,将将参与支付业务交互的双方分为支付方(实体门店用户、电子交易平台的购买用户)和被支付方(实体门店、电子交易平台中的商家),所述第 一客户端与支付方对应,被支付方对应于第二客户端,则支付方和被支付方双方进行的支付业务交互,通过第一客户端和第二客户端、且在服务端的中介下实现。In the payment business scenario, the two parties involved in the payment business interaction are divided into the paying party (physical store users, electronic transaction platform purchase users) and the paid party (physical store, electronic transaction platform merchants), the first The client corresponds to the payer, and the payee corresponds to the second client. The payment service interaction between the payer and the payee is implemented through the first client and the second client and under the intermediary of the server.
具体的,支付方在通过所述第一客户端进行支付业务交互的过程中,如果被支付方想对未达成的交易进行分期收款(即:待处理支付业务)的情况下,首先由被支付方通过所述第二客户端针对支付方通过所述第一客户端展示的图像识别码(二维码)进行扫描,然后由第二客户端通过扫面图像识别码后基于被支付方的分期收款指令向服务端提交相应的分期支付请求,并在分期支付请求中写入所述分期数目和待处理支付业务的业务ID,最后由服务端接收所述分期支付请求,并在该分期支付请求中携带所述分期数目和所述待处理支付业务的业务ID的基础上进行后续的分期支付处理。Specifically, in the process of the paying party interacting with the payment service through the first client, if the paid party wants to collect payment in installments for the unconcluded transaction (ie: pending payment service), the payee will first The payer scans the image identification code (QR code) displayed by the payer through the first client through the second client, and then the second client scans the image identification code based on the payee’s The installment collection instruction submits the corresponding installment payment request to the server, and writes the installment number and the service ID of the payment service to be processed in the installment request. Finally, the server receives the installment request and sends it to the server. The payment request carries the number of installments and the service ID of the payment service to be processed to perform subsequent installment payment processing.
步骤S1304,根据所述业务标识对应的元数据,创建所述业务处理请求对应的分段数据事务。Step S1304: Create a segmented data transaction corresponding to the service processing request according to the metadata corresponding to the service identifier.
具体的,所述分段数据事务中记录有各个执行段的数据执行信息和数据链路。Specifically, the data execution information and data links of each execution segment are recorded in the segmented data transaction.
基于此,根据上述接收所述业务处理请求中携带的所述分段数目和所述业务标识,确定所述业务标识对应的元数据,即所述待处理业务对应的元数据,在所述待处理业务的分段数目和元数据的基础上,创建所述业务处理请求对应的分段数据事务。Based on this, the metadata corresponding to the service identifier, that is, the metadata corresponding to the service to be processed, is determined according to the number of segments and the service identifier carried in the service processing request described above. The segment data transaction corresponding to the service processing request is created on the basis of the number of segments of the processing service and the metadata.
本实施例中,首先按照业务业务处理节点对所述待处理业务的执行处理过程进行划分,将待处理业务的执行处理过程划分为一个或者多个执行阶段(执行段),然后对待处理业务进行事务化,每个执行阶段需要执行处理的事务称之为一个数据事务,则待处理业务的所有执行阶段的数据事务构成的整体称之为分段数据事务。需要说明的是,所述分段数据事务中各个执行阶段的数据事务是按照执行处理的时间顺序依次进行排序,相应的,所述分段数据事务的执行处理过程中,其中各个执行阶段的数据事务也是按照排序顺序依次执行处理;具体的,所述分段数据事务中记录有各个执行段的数据执行信息和数据链路。In this embodiment, the execution process of the service to be processed is first divided according to the business service processing node, the execution process of the service to be processed is divided into one or more execution stages (execution sections), and then the service to be processed is performed Transactionalization, the transaction that needs to be processed in each execution stage is called a data transaction, and the whole of the data transactions in all execution stages of the business to be processed is called a segmented data transaction. It should be noted that the data transactions of each execution stage in the segmented data transaction are sequentially sorted according to the time sequence of the execution processing. Correspondingly, during the execution processing of the segmented data transaction, the data of each execution stage The transactions are also processed in sequence according to the sort order; specifically, the data execution information and data links of each execution segment are recorded in the segmented data transaction.
例如,在支付业务中,支付用户通过支付平台提供的支付额度在商家购买了一件商品,该商品的价格是1000元,支付用户通过将分期的方式向支付平台偿还该笔支付额度,总期数是10期,每期的偿还额度是100,每个支付阶段需要支付用户向支付平台偿还与支付额度相等的支付资金100,而支付平台将通过金融机构提供的100元资金转至商家,在此支付过程中即可称之为该支付阶段的一个支付事务,支付业务中的十个支付阶段对应的支付事务组成称之为所述支付业务中的分阶段支付事务。For example, in a payment business, a paying user purchases a product at a merchant through a payment line provided by the payment platform. The price of the product is 1,000 yuan. The paying user repays the payment line to the payment platform by installments. The total period is The number is 10 periods, and the repayment limit for each period is 100. In each payment stage, the user needs to pay the payment platform to repay the payment platform with a payment amount equal to 100, and the payment platform will transfer the 100 yuan fund provided by the financial institution to the merchant. This payment process can be referred to as a payment transaction in the payment phase, and the payment transaction composition corresponding to the ten payment phases in the payment business is referred to as the phased payment transaction in the payment business.
本实施例中,在所述待处理业务为交易业务的情况下,所述交易业务将采用分阶段交易方式进行执行分阶段交易事务;在所述待处理业务为数据流处理业务的情况系,所述数据量处理业务将采用分阶段处理方式进行执行分阶段数据流处理事务;在所述待处理业务为支付业务的情况下,所述支付业务采用分阶段支付方式进行执行分阶段支付事务。In this embodiment, in the case that the business to be processed is a transaction business, the transaction business will adopt a phased transaction method to execute a phased transaction transaction; in the case that the to-be-processed business is a data stream processing business, The data volume processing service uses a phased processing method to execute a phased data flow processing transaction; in the case that the to-be-processed service is a payment service, the payment service uses a phased payment method to execute a phased payment transaction.
步骤S1306,向第一客户端和所述第二客户端下发所述分段数据事务。Step S1306: Deliver the segmented data transaction to the first client and the second client.
具体的,在上述确定分段数据事务的基础上,进一步,此时服务端确定被支付方提出的分期支付请求,可以向第一客户端和第二客户端下发所述分段数据事务,即向所述支付方和被支付方发出支付业务的分段支付事务,提醒支付方和被支付方针对此次支付业务可以在后续进行分期支付处理。Specifically, based on the foregoing determination of the segmented data transaction, further, at this time, the server determines the installment payment request made by the payee, and can issue the segmented data transaction to the first client and the second client, That is, the payer and the payee are sent to the payer and the payee of the payment service in stages, and the payer and the payee are reminded that the payer and the payee can perform subsequent installment payment processing for the payment service.
实际应用中,在确定所述分段数据事务的基础上,由于所述分段数据事务将由多个执行段的数据事务组成,故在所述分段数据事务为分阶段交易事务的情况下,对应的执行段包括分阶段交易过程中的各个交易阶段;在所述分段数据事务为分阶段数据流处理事务的情况下,对应的执行段包括分阶段处理过程中的各个数据处理阶段;在所述分段数据事务为分阶段支付事务的情况下,对应的执行段包括分阶段支付过程中的各个支付阶段。In practical applications, on the basis of determining the segmented data transaction, since the segmented data transaction will be composed of data transactions of multiple execution segments, when the segmented data transaction is a phased transaction transaction, The corresponding execution stage includes each transaction stage in the staged transaction process; in the case that the segmented data transaction is a staged data flow processing transaction, the corresponding execution stage includes each data processing stage in the staged processing process; In the case that the segmented data transaction is a phased payment transaction, the corresponding execution segment includes each payment phase in the phased payment process.
步骤S1308,根据所述第二客户端针对所述分段数据事务提交的预执行方式,对所述分段数据事务进行解析,获得与所述预执行方式对应的目标数据事务。Step S1308: Analyze the segmented data transaction according to the pre-execution mode submitted by the second client for the segmented data transaction to obtain a target data transaction corresponding to the pre-execution mode.
具体的,在上述向所述第一客户端和所述第二客户端下发分段数据事务的基础上,进一步的,当接收到所述第二客户端针对分段数据事务提交预执行方式的情况下,表明所述第二客户端对应的被支付方需要针对分段数据事务中未被执行处理的执行段对应的数据事务提前进行执行处理,故通过所述预执行方式对所述分段数据事务进行解析,确定所述预执行方式对应的目标数据事务。Specifically, on the basis of the above-mentioned delivery of the segmented data transaction to the first client and the second client, further, when the second client is received, the pre-execution mode for the segmented data transaction is submitted In the case of, it indicates that the payee corresponding to the second client needs to perform processing in advance for the data transaction corresponding to the execution segment that is not processed in the segmented data transaction, so the split is performed through the pre-execution method. The segment data transaction is analyzed, and the target data transaction corresponding to the pre-execution mode is determined.
进一步的,在确定所述目标数据事务的过程中,可以由所述第二客户端对应的被支付方主动提出执行请求,此时则根据第二客户端提交的预执行方式确定所述目标数据事务,本实施例的一个或多个实施方式中,确定所述目标数据事务的具体过程如下所述:接收所述第二客户端对应的数据流入对象针对所述至少一个执行段提交的预执行方式;根据所述预执行方式,对所述至少一个执行段对应的数据执行信息和数据链路进行组装,获得与所述预执行方式对应的目标数据事务。Further, in the process of determining the target data transaction, the payee corresponding to the second client can actively make an execution request, and in this case, the target data is determined according to the pre-execution mode submitted by the second client Transaction. In one or more implementations of this embodiment, the specific process of determining the target data transaction is as follows: receiving the pre-execution submitted by the data inflow object corresponding to the second client for the at least one execution segment Mode; According to the pre-execution mode, the data execution information and the data link corresponding to the at least one execution segment are assembled to obtain the target data transaction corresponding to the pre-execution mode.
更进一步的,在基于所述预执行方式对至少一个执行段对应的数据执行信息和数据链路进行组成获得所述目标数据事务的过程中,具体是指第二客户端对应的数据流入对象与中间数据对象之间的目标数据事务,本实施例的一个或多个实施方式中,确定目标数据事务的具体过程如下所述:根据所述预执行方式对应的所述至少一个执行段的目标数据执行信息,计算所述预执行方式对应的总数据流动数值;基于所述第二客户端对应的数据流入对象和中间数据对象二者数据账户的账户路径确定目标数据链路;基于所述总数据流动数值和所述目标数据链路组建中间数据事务,作为所述目标数据事务。Furthermore, in the process of composing the data execution information and data link corresponding to at least one execution segment based on the pre-execution mode to obtain the target data transaction, it specifically refers to the data inflow object corresponding to the second client and Target data transactions between intermediate data objects. In one or more implementations of this embodiment, the specific process of determining the target data transaction is as follows: According to the target data of the at least one execution segment corresponding to the pre-execution mode Execution information, calculating the total data flow value corresponding to the pre-execution mode; determining the target data link based on the account path of the data account of both the data inflow object and the intermediate data object corresponding to the second client; based on the total data The flow value and the target data link form an intermediate data transaction as the target data transaction.
具体的,所述目标数据链路的起始数据节点对应于所述中间数据对象的数据账户,终止数据节点对应于所述数据流入对象的数据账户。Specifically, the starting data node of the target data link corresponds to the data account of the intermediate data object, and the ending data node corresponds to the data account of the data inflow object.
实际应用中,在被支付方主动针对还未支付处理的支付阶段上传收款请求的情况下,此时将根据被支付方的收款请求向被支付方提供相应的支付资源(交易方还未向被支付方支付的剩余支付资源),而该支付资源将由交易代理机构提前支付给被支付方,而支付方在后续向交易代理机构偿还与支付资源相等的资源即可;In practical applications, when the paid party actively uploads a collection request for the payment stage that has not yet been processed, the paid party will be provided with corresponding payment resources according to the paid party’s collection request (the transaction party has not yet The remaining payment resources paid to the paid party), and the payment resources will be paid to the paid party by the transaction agency in advance, and the payer can later repay the transaction agency with resources equal to the payment resources;
基于此,确定被支付方所需要收款的全部支付资源,同时根据被支付方的资源存储账户与交易代理机构的资源存储账户之间的资源流动路径,确定目标支付链路,根据全部支付资源以及目标支付链路即可组建目标支付事务。Based on this, determine all the payment resources that the paid party needs to receive, and at the same time, determine the target payment link based on the resource flow path between the paid party’s resource storage account and the transaction agency’s resource storage account, based on all payment resources And the target payment link can form the target payment transaction.
步骤S1310,根据所述目标数据事务中记录的所述至少一个执行段的目标数据执行信息和目标数据链路,对所述目标数据事务进行执行处理。Step S1310: Perform execution processing on the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction.
具体的,在上述确定所述目标数据事务的基础上,进一步的,将根据所述第二客户端提交的请求对所述目标数据事务进行执行处理,而在执行处理的过程中可以理解为是数据资源的流动过程,以及数据额度扣减的过程。Specifically, on the basis of the above determination of the target data transaction, further, the target data transaction will be executed according to the request submitted by the second client, and the execution processing can be understood as The flow of data resources and the process of data deduction.
本实施例的一个或多个实施方式中,根据所述目标数据事务中记录的所述至少一个执行段的目标数据执行信息和目标数据链路,对所述目标数据事务进行执行处理的过程,具体实现方式如下所述:从所述分段数据事务的中间数据对象的数据账户申请所述总数据流动数值对应的数据资源至所述数据流入对象的数据账户;根据所述第一客户端对应的数据流出对象和所述中间数据对象二者数据账户的账户路径,确定从所述数据流出对象至所述中间数据对象的分段数据链路;根据所述分段数据链路和所述分段数据事务中待执行的执行段的数据执行信息,组建所述分段数据事务中待执行的执行段的第一分段数据事务。In one or more implementation manners of this embodiment, the process of performing execution processing on the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction, The specific implementation is as follows: apply for the data resource corresponding to the total data flow value from the data account of the intermediate data object of the segmented data transaction to the data account of the data inflow object; corresponding to the first client The account path of the data account of both the data outflow object and the intermediate data object is determined, and the segment data link from the data outflow object to the intermediate data object is determined; according to the segment data link and the segment The data execution information of the execution segment to be executed in the segment data transaction forms the first segment data transaction of the execution segment to be executed in the segment data transaction.
具体的,所述分段数据链路的起始数据节点对应于所述数据流出对象的数据账户,终止数据节点对应于所述中间数据对象的数据账户。Specifically, the starting data node of the segmented data link corresponds to the data account of the data outflow object, and the ending data node corresponds to the data account of the intermediate data object.
此外,在所述目标数据事务被执行处理之后,还需要对数据流出对象与中间数据对象之间的第一分段数据事务进行执行处理,本实施例的一个或多个实施方式中,具体实现方式如下所述:在所述第一分段数据事务的执行段的执行条件被触发的情况下,读取所述第一分段数据事务中被触发的执行段对应的第一分段数据流动数值;按照所述分段数据链路,对所述数据流出对象的数据账户空间的数据额度扣减所述第一分段数据流动数值对应的扣减额度,以及,从所述数据流出对象的数据账户空间对应的实际数据账户转出所述第一分段数据流动数值对应的数据资源至所述中间数据对象的数据账户;其中,所述数据账户空间的数据结算周期的时长与所述第一分段数据事务的执行段的执行处理周期的时长相等,在前一数据结算周期对所述数据账户空间的数据额度扣减所述扣减额度,经后一数据结算周期的数据结算处理后,所述扣减额度对所述数据额度的扣减被更新。In addition, after the target data transaction is processed, the first segmented data transaction between the data outflow object and the intermediate data object needs to be processed. In one or more implementation manners of this embodiment, the specific implementation The method is as follows: when the execution condition of the execution segment of the first segment data transaction is triggered, read the first segment data flow corresponding to the triggered execution segment in the first segment data transaction Numerical value; According to the segmented data link, the data limit of the data account space of the data outflow object is deducted by the deduction limit corresponding to the first segmented data flow value, and, from the data outflow object The actual data account corresponding to the data account space transfers the data resource corresponding to the first segmented data flow value to the data account of the intermediate data object; wherein, the duration of the data settlement period of the data account space is the same as the first The duration of the execution processing cycle of the execution section of a segmented data transaction is equal, and the deduction amount is deducted from the data quota of the data account space in the previous data settlement cycle, and after the data settlement processing in the subsequent data settlement cycle , The deduction of the deduction amount to the data amount is updated.
例如,在确定交易代理机构要针对支付方向被支付方提供500元的资金的情况下,则从交易代理机构的资金账户向被支付方的资金账户转入500元的资金即可,此时被支付方相对于支付方属于两清状态,而支付方等同于拖欠支付平台500的支付额度,而支付平台将拖欠交易代理机构500元的资金;For example, in the case where it is determined that the transaction agency should provide 500 yuan of funds to the payee for the payment, it is sufficient to transfer 500 yuan from the fund account of the transaction agency to the fund account of the payee. The payer is in a two-settlement state relative to the payer, and the payer is equivalent to defaulting on the payment platform's 500 payment limit, and the payment platform will default on the transaction agency's funds of 500 yuan;
进一步的,在交易代理机构向被支付方转入500元资金的情况下,此时支付方需要针对这500元资金进行偿还,而对于支付方来讲等同于拖欠支付平台500支付额度,而支付平台拖欠交易代理机构500元资金,此时基于支付方和交易代理机构之间的账户路径,确定分期支付链路。在确定支付方需要针对第一分期支付事务进行支付处理的过程中,确定第一分期支付事务中被触发的支付阶段对应的第一分期支付资金是500元;Further, when the transaction agency transfers 500 yuan of funds to the paid party, the payer needs to repay the 500 yuan of funds at this time, and for the payer, it is equivalent to defaulting on the payment platform 500 payment limit, and the payment The platform owes 500 yuan to the transaction agency. At this time, the installment payment link is determined based on the account path between the payer and the transaction agency. In the process of determining that the payer needs to perform payment processing for the first installment transaction, determine that the first installment fund corresponding to the triggered payment stage in the first installment transaction is 500 yuan;
而在针对第一分期支付事务进行支付处理的过程中,需要在支付方的支付账户中扣减与500元资金对应的支付额度,此时支付方在该月的可用支付额度将缺少500,同时从支付方的数据账户空间对应的支付数额账户中向交易代理机构转出500元资金,表明此时支付平台与交易代理机构之间的500元资金已经清偿。In the process of payment processing for the first installment payment transaction, the payment line corresponding to the 500 yuan fund needs to be deducted from the payer’s payment account. At this time, the payer’s available payment line for the month will be short of 500, and at the same time The transfer of 500 yuan of funds from the payment amount account corresponding to the data account space of the payer to the transaction agency indicates that the 500 yuan fund between the payment platform and the transaction agency has been settled at this time.
实际应用中,在支付方的支付额度被使用的情况下,每个结算时间都会对支付额度进行更新,例如支付方的支付额度是1000,在支付方使用支付额度100的情况下,此时支付方的可用支付额度是900,而当达到结算周期后,并且支付方针对支付额度100进行了还款,则结算周期后的支付方的支付额度是1000。In practical applications, when the payment limit of the payer is used, the payment limit will be updated every settlement time. For example, the payment limit of the payer is 1000. When the payer uses the payment limit of 100, the payment will be made at this time. The available payment limit of the party is 900, and when the settlement period is reached, and the payer repays the payment limit of 100, the payment limit of the payer after the settlement period is 1000.
步骤S1312,向所述第二客户端推送所述目标数据事务的执行处理结果。Step S1312: Push the execution processing result of the target data transaction to the second client.
具体的,在上述对所述目标数据事务执行处理之后,此时将向所述第二客户端推送执行处理结果,即向被支付方发送支付资源的转入/转出结果。Specifically, after the foregoing processing of the target data transaction is executed, the execution processing result will be pushed to the second client at this time, that is, the result of the transfer in/out of the payment resource will be sent to the paid party.
基于此,在被支付方通过扫描邀请支付方通过分期支付的方式对支付业务进行支付处理,而在分期支付事务被执行处理的过程中,被支付方存在提前收取分期资金的需求的情况下,通过第二客户端向服务端发送收款请求,此时服务端将根据第二客户端提交的收款请求向被支付方的资金账户由交易代理机构转入与收款请求对应的未偿还的总分期资金,此后还需要对支付方与交易代理机构之间的事务进行支付处理,最终使得支付方的支付额度扣减成功,并且针对交易代理机构的总分期资金偿还结束。Based on this, when the payee invites the payer to perform payment processing for the payment business through installment payments by scanning, and when the installment transaction is executed, the payee needs to collect installment funds in advance, Send a collection request to the server through the second client. At this time, the server will transfer the payment to the paid party’s fund account from the transaction agency to the outstanding amount corresponding to the collection request according to the payment request submitted by the second client. The total instalment funds need to be paid for the transaction between the payer and the transaction agency, and finally the payment limit of the payer is successfully deducted, and the repayment of the total instalment funds for the transaction agency ends.
本说明书提供的第四种数据处理方法,实现了可以根据提交的执行方式对相应的执行段进行更加灵活的处理,同时,以数据事务的方式对待处理业务进行执行处理,提升了业务执行处理的处理效率和处理一致性。The fourth data processing method provided in this manual realizes that the corresponding execution segment can be processed more flexibly according to the submitted execution mode. At the same time, the business to be processed is executed in the form of data transaction, which improves the performance of business execution processing. Processing efficiency and processing consistency.
本说明书提供的第四种数据处理装置实施例如下:在上述的实施例中,提供了数据处理方法,与之相对应的,还提供了第四种数据处理装置,下面结合附图进行说明。The embodiment of the fourth data processing device provided in this specification is as follows: In the above-mentioned embodiment, a data processing method is provided, and correspondingly, a fourth data processing device is also provided, which will be described below with reference to the accompanying drawings.
参照附图14,其示出了本实施例提供的第四种数据处理装置的示意图,包括:请求接收模块1402,被配置为接收第二客户端提交的携带业务标识的业务处理请求;事务创建模块1404,被配置为根据所述业务标识对应的元数据,创建所述业务处理请求对应的分段数据事务;所述分段数据事务中记录有各个执行段的数据执行信息和数据链路;事务发送模块1406,被配置为向第一客户端和所述第二客户端下发所述分段数据事务;解析模块1408,被配置为根据所述第二客户端针对所述分段数据事务提交的预执行方式,对所述分段数据事务进行解析,获得与所述预执行方式对应的目标数据事务;处理模块1410,被配置为根据所述目标数据事务中记录的所述至少一个执行段的目标数据执行信息和目标数据链路,对所述目标数据事务进行执行处理;结果推送模块1412,被配置为向所述第二客户端推送所述目标数据事务的执行处理结果。Referring to FIG. 14, it shows a schematic diagram of a fourth data processing apparatus provided in this embodiment, including: a request receiving module 1402 configured to receive a service processing request carrying a service identifier submitted by a second client; transaction creation The module 1404 is configured to create a segmented data transaction corresponding to the service processing request according to the metadata corresponding to the service identifier; the segmented data transaction records data execution information and data links of each execution segment; The transaction sending module 1406 is configured to deliver the segmented data transaction to the first client and the second client; the parsing module 1408 is configured to send the segmented data transaction according to the second client’s The submitted pre-execution mode analyzes the segmented data transaction to obtain the target data transaction corresponding to the pre-execution mode; the processing module 1410 is configured to execute according to the at least one recorded in the target data transaction The target data execution information and the target data link of the segment perform execution processing on the target data transaction; the result push module 1412 is configured to push the execution processing result of the target data transaction to the second client.
可选地,所述解析模块1408,包括:接收子模块,被配置为接收所述第二客户端对应的数据流入对象针对所述至少一个执行段提交的预执行方式;组装子模块,被配置为根据所述预执行方式,对所述至少一个执行段对应的数据执行信息和数据链路进行组装,获得与所述预执行方式对应的目标数据事务。Optionally, the parsing module 1408 includes: a receiving sub-module configured to receive a pre-execution mode submitted by the data inflow object corresponding to the second client for the at least one execution segment; an assembling sub-module, configured In order to assemble the data execution information and the data link corresponding to the at least one execution segment according to the pre-execution mode, to obtain the target data transaction corresponding to the pre-execution mode.
可选地,所述组装子模块,包括:计算单元,被配置为根据所述预执行方式对 应的所述至少一个执行段的目标数据执行信息,计算所述预执行方式对应的总数据流动数值;数据链路确定单元,被配置为基于所述第二客户端对应的数据流入对象和中间数据对象二者数据账户的账户路径确定目标数据链路;事务确定单元,被配置为基于所述总数据流动数值和所述目标数据链路组建中间数据事务,作为所述目标数据事务;其中,所述目标数据链路的起始数据节点对应于所述中间数据对象的数据账户,终止数据节点对应于所述数据流入对象的数据账户。Optionally, the assembly sub-module includes: a calculation unit configured to calculate the total data flow value corresponding to the pre-execution mode according to the target data execution information of the at least one execution segment corresponding to the pre-execution mode The data link determining unit is configured to determine the target data link based on the account paths of the data accounts of both the data inflow object and the intermediate data object corresponding to the second client; the transaction determining unit is configured to determine the target data link based on the total The data flow value and the target data link form an intermediate data transaction as the target data transaction; wherein the starting data node of the target data link corresponds to the data account of the intermediate data object, and the terminating data node corresponds to In the data account of the object where the data flows into.
可选地,所述处理模块1410,包括:资源处理子模块,被配置为从所述分段数据事务的中间数据对象的数据账户申请所述总数据流动数值对应的数据资源至所述数据流入对象的数据账户;分段数据链路确定子模块,被配置为根据所述第一客户端对应的数据流出对象和所述中间数据对象二者数据账户的账户路径,确定从所述数据流出对象至所述中间数据对象的分段数据链路;分段数据事务组建子模块,被配置为根据所述分段数据链路和所述分段数据事务中待执行的执行段的数据执行信息,组建所述分段数据事务中待执行的执行段的第一分段数据事务;其中,所述分段数据链路的起始数据节点对应于所述数据流出对象的数据账户,终止数据节点对应于所述中间数据对象的数据账户。Optionally, the processing module 1410 includes: a resource processing sub-module configured to apply for the data resource corresponding to the total data flow value to the data inflow from the data account of the intermediate data object of the segmented data transaction The data account of the object; a segmented data link determination sub-module configured to determine the data outflow object from the data outflow object according to the account path of the data outflow object corresponding to the first client and the data account of the intermediate data object A segmented data link to the intermediate data object; a segmented data transaction building sub-module configured to execute data according to the segmented data link and the execution segment to be executed in the segmented data transaction, Establish the first segment data transaction of the execution segment to be executed in the segment data transaction; wherein, the start data node of the segment data link corresponds to the data account of the data outflow object, and the end data node corresponds to In the data account of the intermediate data object.
可选地,所述数据处理装置,还包括:数据流动数值读取模块,被配置为在所述第一分段数据事务的执行段的执行条件被触发的情况下,读取所述第一分段数据事务中被触发的执行段对应的第一分段数据流动数值;数据资源转移模块,被配置为按照所述分段数据链路,对所述数据流出对象的数据账户空间的数据额度扣减所述第一分段数据流动数值对应的扣减额度,以及,从所述数据流出对象的数据账户空间对应的实际数据账户转出所述第一分段数据流动数值对应的数据资源至所述中间数据对象的数据账户;其中,所述数据账户空间的数据结算周期的时长与所述第一分段数据事务的执行段的执行处理周期的时长相等,在前一数据结算周期对所述数据账户空间的数据额度扣减所述扣减额度,经后一数据结算周期的数据结算处理后,所述扣减额度对所述数据额度的扣减被更新。Optionally, the data processing device further includes: a data flow value reading module configured to read the first segment data transaction when the execution condition of the execution segment of the first segmented data transaction is triggered. The first segment data flow value corresponding to the execution segment triggered in the segment data transaction; the data resource transfer module is configured to adjust the data quota of the data account space of the data outflow object according to the segment data link The deduction amount corresponding to the first segment data flow value is deducted, and the data resource corresponding to the first segment data flow value is transferred from the actual data account corresponding to the data account space of the data outflow object to The data account of the intermediate data object; wherein the duration of the data settlement cycle of the data account space is equal to the duration of the execution processing cycle of the execution section of the first segmented data transaction, and the data settlement cycle is the same as that of the previous data settlement cycle. The data quota of the data account space deducts the deduction quota, and the deduction of the data quota by the deduction quota is updated after the data settlement processing in the subsequent data settlement cycle.
可选地,所述待处理业务包括:交易业务,数据流处理业务,支付业务;相应的,所述待处理业务的分段数据事务包括:所述交易业务采用分阶段交易方式进行执行的分阶段交易事务,所述数据流处理业务采用分阶段处理方式进行执行的分阶段数据流处理事务,所述支付业务采用分阶段支付方式进行执行的分阶段支付事务;所述分段数据事务的执行段包括:所述分阶段交易事务在分阶段交易过程中的各个交易阶段,所述 分阶段数据流处理事务在分阶段处理过程中的各个数据处理阶段,所述分阶段支付事务在分阶段支付过程中的各个支付阶段。Optionally, the to-be-processed services include: transaction services, data stream processing services, and payment services; correspondingly, the segmented data transactions of the to-be-processed services include: segmentation in which the transaction services are executed in a phased transaction mode. A staged transaction transaction, the data stream processing business adopts a staged data stream processing transaction executed by a staged processing method, and the payment business adopts a staged payment transaction executed by a staged payment method; the execution of the segmented data transaction The segments include: each transaction stage in the staged transaction process of the staged transaction transaction, each data processing stage of the staged data flow processing transaction in the staged processing process, the staged payment transaction in the staged payment The various payment stages in the process.
上述为本实施例的第四种数据处理装置的示意性方案。需要说明的是,该数据处理装置的技术方案与上述的第四种数据处理方法的技术方案属于同一构思,第四种数据处理装置的技术方案未详细描述的细节内容,均可以参见上述第四种数据处理方法的技术方案的描述。The foregoing is a schematic solution of the fourth data processing device of this embodiment. It should be noted that the technical solution of the data processing device belongs to the same concept as the technical solution of the fourth data processing method described above. For details that are not described in detail in the technical solution of the fourth data processing device, please refer to the fourth above. Description of the technical solution of this data processing method.
参照附图15,其示出了本说明书实施例提供的第五种数据处理方法的处理流程图,具体包括以下步骤S1502至S1510。Referring to FIG. 15, it shows a processing flowchart of the fifth data processing method provided by the embodiment of this specification, which specifically includes the following steps S1502 to S1510.
步骤S1502,采集第一客户端对应的终端设备展示的待处理业务的业务标识码。Step S1502: Collect the service identification code of the service to be processed displayed by the terminal device corresponding to the first client.
本实施例提供的数据处理方法,应用于第二服务端,与上述提供的应用于服务端的第四种数据处理方法相互配合,共同实现待处理业务的分段执行处理,阅读本实施例请对照上述提供的应用于服务端的第四种数据处理方法实施例的对应部分的说明。The data processing method provided in this embodiment is applied to the second server side, and cooperates with the fourth data processing method applied to the server side provided above to jointly realize the segmented execution processing of the service to be processed. Please refer to this embodiment. The description of the corresponding part of the embodiment of the fourth data processing method applied to the server is provided above.
需要说明的是,在对待处理业务进行执行处理的过程中,如果待处理业务的执行处理涉及多方参与配合实现,或者待处理业务的执行处理需进行远程数据传输、数据调用,再或者待处理业务的执行处理需要涉及多个处理平台的数据支持,可在分布式系统的基础上实现所述第五种数据处理方法,具体的,通过创建所述待处理业务对应的分布式事务,并基于分布式系统中部署在不同节点之上的支持事务的服务器、资源服务器以及事务管理器之间的协同配合,实现在元数据基础上进行的分布式事务的创建,以及根据提交的执行方式对分布式事务执行处理,从而来进一步提升待处理业务的业务执行处理的处理效率和处理一致性。It should be noted that in the process of executing the business to be processed, if the execution of the business to be processed involves multiple parties participating in the implementation, or the execution of the business to be processed requires remote data transmission, data invocation, or the business to be processed The execution of processing requires data support involving multiple processing platforms. The fifth data processing method can be implemented on the basis of a distributed system. Specifically, by creating a distributed transaction corresponding to the business to be processed, and based on the distribution The collaboration among transaction-supporting servers, resource servers, and transaction managers deployed on different nodes in a distributed system realizes the creation of distributed transactions on the basis of metadata, as well as the implementation of distributed transactions based on the submitted execution mode. Transaction execution processing to further improve the processing efficiency and processing consistency of the business execution processing of the business to be processed.
步骤S1504,对所述业务标识码进行解码,根据解码获得的业务标识向服务端提交携带所述业务标识的业务处理请求。Step S1504: Decode the service identification code, and submit a service processing request carrying the service identification to the server according to the service identification obtained by the decoding.
步骤S1506,接收所述服务端针对所述业务处理请求下发的分段数据事务并展示。Step S1506: Receive and display the segmented data transaction issued by the server in response to the service processing request.
步骤S1508,根据针对所述分段数据事务的预执行输入,向所述服务端提交预执行方式。Step S1508: Submit a pre-execution mode to the server according to the pre-execution input for the segmented data transaction.
步骤S1510,接收所述服务端返回的所述预执行方式对应的目标数据事务的执行处理结果。Step S1510: Receive the execution processing result of the target data transaction corresponding to the pre-execution mode returned by the server.
本说明书提供的第五种数据处理方法,实现了可以根据提交的执行方式对相应的执行段进行更加灵活的处理,同时,以数据事务的方式对待处理业务进行执行处理,提升了业务执行处理的处理效率和处理一致性。The fifth data processing method provided in this manual realizes that the corresponding execution segment can be processed more flexibly according to the submitted execution mode. At the same time, the business to be processed is executed in the form of data transaction, which improves the performance of business execution processing. Processing efficiency and processing consistency.
本说明书提供的第五种数据处理装置实施例如下:在上述的实施例中,提供了数据处理方法,与之相对应的,还提供了第五种数据处理装置,下面结合附图进行说明。The embodiment of the fifth data processing device provided in this specification is as follows: In the above-mentioned embodiment, a data processing method is provided, and correspondingly, a fifth data processing device is also provided, which will be described below with reference to the accompanying drawings.
参照附图16,其示出了本实施例提供的第五种数据处理装置的示意图,包括:采集模块1602,被配置为采集第一客户端对应的终端设备展示的待处理业务的业务标识码;解码模块1604,被配置为对所述业务标识码进行解码,根据解码获得的业务标识向服务端提交携带所述业务标识的业务处理请求;接收模块1606,被配置为接收所述服务端针对所述业务处理请求下发的分段数据事务并展示;提交模块1608,被配置为根据针对所述分段数据事务的预执行输入,向所述服务端提交预执行方式;处理结果接收模块1610,被配置为接收所述服务端返回的所述预执行方式对应的目标数据事务的执行处理结果。Referring to FIG. 16, it shows a schematic diagram of a fifth data processing apparatus provided in this embodiment, including: a collection module 1602, configured to collect the service identification code of the service to be processed displayed by the terminal device corresponding to the first client The decoding module 1604 is configured to decode the service identification code, and submit a service processing request carrying the service identification to the server according to the service identification obtained by decoding; the receiving module 1606 is configured to receive the service identification code The business processes the segmented data transaction issued by the request and displays it; the submission module 1608 is configured to submit the pre-execution mode to the server according to the pre-execution input for the segmented data transaction; the processing result receiving module 1610 And configured to receive the execution processing result of the target data transaction corresponding to the pre-execution mode returned by the server.
上述为本实施例的第五种数据处理装置的示意性方案。需要说明的是,该数据处理装置的技术方案与上述的第五种数据处理方法的技术方案属于同一构思,第五种数据处理装置的技术方案未详细描述的细节内容,均可以参见上述第五种数据处理方法的技术方案的描述。The foregoing is a schematic solution of the fifth data processing device of this embodiment. It should be noted that the technical solution of the data processing device belongs to the same concept as the technical solution of the fifth data processing method described above. For details that are not described in detail in the technical solution of the fifth data processing device, please refer to the fifth above. Description of the technical solution of this data processing method.
本说明书提供的第一种计算设备如下。The first computing device provided in this manual is as follows.
图17示出了根据本说明书一个实施例提供的一种计算设备1700的结构框图。该计算设备1700的部件包括但不限于存储器1710和处理器1720。处理器1720与存储器1710通过总线1730相连接,数据库1750用于保存数据。Fig. 17 shows a structural block diagram of a computing device 1700 according to an embodiment of the present specification. The components of the computing device 1700 include, but are not limited to, a memory 1710 and a processor 1720. The processor 1720 and the memory 1710 are connected through a bus 1730, and the database 1750 is used to store data.
计算设备1700还包括接入设备1740,接入设备1740使得计算设备1700能够经由一个或多个网络1760通信。这些网络的示例包括公用交换电话网(PSTN)、局域网(LAN)、广域网(WAN)、个域网(PAN)或诸如因特网的通信网络的组合。接入设备1740可以包括有线或无线的任何类型的网络接口(例如,网络接口卡(NIC))中的一个或多个,诸如IEEE802.11无线局域网(WLAN)无线接口、全球微波互联接入(Wi-MAX)接口、以太网接口、通用串行总线(USB)接口、蜂窝网络接口、蓝牙接口、近场通信(NFC)接口,等等。The computing device 1700 also includes an access device 1740 that enables the computing device 1700 to communicate via one or more networks 1760. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 1740 may include one or more of any type of wired or wireless network interface (for example, a network interface card (NIC)), such as IEEE802.11 wireless local area network (WLAN) wireless interface, global interconnection for microwave access ( Wi-MAX) interface, Ethernet interface, universal serial bus (USB) interface, cellular network interface, Bluetooth interface, near field communication (NFC) interface, etc.
在本说明书的一个实施例中,计算设备1700的上述部件以及图17中未示出的 其他部件也可以彼此相连接,例如通过总线。应当理解,图17所示的计算设备结构框图仅仅是出于示例的目的,而不是对本说明书范围的限制。本领域技术人员可以根据需要,增添或替换其他部件。In an embodiment of this specification, the aforementioned components of the computing device 1700 and other components not shown in FIG. 17 may also be connected to each other, for example, via a bus. It should be understood that the structural block diagram of the computing device shown in FIG. 17 is only for the purpose of example, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.
计算设备1700可以是任何类型的静止或移动计算设备,包括移动计算机或移动计算设备(例如,平板计算机、个人数字助理、膝上型计算机、笔记本计算机、上网本等)、移动电话(例如,智能手机)、可佩戴的计算设备(例如,智能手表、智能眼镜等)或其他类型的移动设备,或者诸如台式计算机或PC的静止计算设备。计算设备1700还可以是移动式或静止式的服务器。The computing device 1700 can be any type of stationary or mobile computing device, including mobile computers or mobile computing devices (for example, tablet computers, personal digital assistants, laptop computers, notebook computers, netbooks, etc.), mobile phones (for example, smart phones). ), wearable computing devices (for example, smart watches, smart glasses, etc.) or other types of mobile devices, or stationary computing devices such as desktop computers or PCs. The computing device 1700 may also be a mobile or stationary server.
其中,所述存储器1710用于存储计算机可执行指令,处理器1720用于执行如下计算机可执行指令:获取待处理业务的元数据;根据所述元数据创建所述待处理业务的分段数据事务;所述分段数据事务中记录有各个执行段的数据执行信息和数据链路;基于针对所述分段数据事务的至少一个执行段提交的执行方式,对所述分段数据事务进行解析,获得与所述执行方式对应的目标数据事务;根据所述目标数据事务中记录的所述至少一个执行段的目标数据执行信息和目标数据链路,对所述目标数据事务进行执行处理。Wherein, the memory 1710 is used to store computer-executable instructions, and the processor 1720 is used to execute the following computer-executable instructions: obtain metadata of the service to be processed; create a segmented data transaction of the service to be processed according to the metadata The data execution information and data link of each execution segment are recorded in the segmented data transaction; the segmented data transaction is analyzed based on the execution mode submitted for at least one execution segment of the segmented data transaction, Obtain the target data transaction corresponding to the execution mode; perform execution processing on the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction.
上述为本实施例的第一种计算设备的示意性方案。需要说明的是,该计算设备的技术方案与上述的第一种数据处理方法的技术方案属于同一构思,计算设备的技术方案未详细描述的细节内容,均可以参见上述第一种数据处理方法的技术方案的描述。The foregoing is a schematic solution of the first computing device of this embodiment. It should be noted that the technical solution of the computing device belongs to the same concept as the technical solution of the above-mentioned first data processing method. For details that are not described in detail in the technical solution of the computing device, please refer to the above-mentioned first data processing method. Description of the technical solution.
本说明书提供的第二种计算设备实施例如下。An example of the second type of computing device provided in this specification is as follows.
图18示出了根据本说明书一个实施例提供的一种计算设备1800的结构框图。该计算设备1800的部件包括但不限于存储器1810和处理器1820。处理器1820与存储器1810通过总线1830相连接,数据库1850用于保存数据。Fig. 18 shows a structural block diagram of a computing device 1800 according to an embodiment of the present specification. The components of the computing device 1800 include, but are not limited to, a memory 1810 and a processor 1820. The processor 1820 and the memory 1810 are connected through a bus 1830, and the database 1850 is used to store data.
计算设备1800还包括接入设备1840,接入设备1840使得计算设备1800能够经由一个或多个网络1860通信。这些网络的示例包括公用交换电话网(PSTN)、局域网(LAN)、广域网(WAN)、个域网(PAN)或诸如因特网的通信网络的组合。接入设备1740可以包括有线或无线的任何类型的网络接口(例如,网络接口卡(NIC))中的一个或多个,诸如IEEE802.11无线局域网(WLAN)无线接口、全球微波互联接入(Wi-MAX)接口、以太网接口、通用串行总线(USB)接口、蜂窝网络接口、蓝牙接口、近场通信(NFC)接口,等等。The computing device 1800 also includes an access device 1840 that enables the computing device 1800 to communicate via one or more networks 1860. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 1740 may include one or more of any type of wired or wireless network interface (for example, a network interface card (NIC)), such as IEEE802.11 wireless local area network (WLAN) wireless interface, global interconnection for microwave access ( Wi-MAX) interface, Ethernet interface, universal serial bus (USB) interface, cellular network interface, Bluetooth interface, near field communication (NFC) interface, etc.
在本说明书的一个实施例中,计算设备1800的上述部件以及图18中未示出的其他部件也可以彼此相连接,例如通过总线。应当理解,图18所示的计算设备结构框图仅仅是出于示例的目的,而不是对本说明书范围的限制。本领域技术人员可以根据需要,增添或替换其他部件。In an embodiment of this specification, the aforementioned components of the computing device 1800 and other components not shown in FIG. 18 may also be connected to each other, for example, via a bus. It should be understood that the structural block diagram of the computing device shown in FIG. 18 is only for the purpose of example, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.
计算设备1800可以是任何类型的静止或移动计算设备,包括移动计算机或移动计算设备(例如,平板计算机、个人数字助理、膝上型计算机、笔记本计算机、上网本等)、移动电话(例如,智能手机)、可佩戴的计算设备(例如,智能手表、智能眼镜等)或其他类型的移动设备,或者诸如台式计算机或PC的静止计算设备。计算设备1800还可以是移动式或静止式的服务器。The computing device 1800 can be any type of stationary or mobile computing device, including mobile computers or mobile computing devices (for example, tablet computers, personal digital assistants, laptop computers, notebook computers, netbooks, etc.), mobile phones (for example, smart phones). ), wearable computing devices (for example, smart watches, smart glasses, etc.) or other types of mobile devices, or stationary computing devices such as desktop computers or PCs. The computing device 1800 may also be a mobile or stationary server.
其中,所述存储器1810用于存储计算机可执行指令,处理器1820用于执行如下计算机可执行指令:获取待处理交易的交易元数据;根据所述交易元数据创建所述待处理交易的分期支付事务;所述分期支付事务中记录有各个支付阶段的交易支付信息和支付链路;基于针对所述分期支付事务的至少一个支付阶段提交的支付方式,对所述分期支付事务进行解析,获得与所述支付方式对应的目标支付事务;根据所述目标支付事务中记录的所述至少一个支付阶段的目标交易支付信息和目标支付链路,对所述目标支付事务进行支付处理。Wherein, the memory 1810 is used to store computer-executable instructions, and the processor 1820 is used to execute the following computer-executable instructions: obtain transaction metadata of a transaction to be processed; create installment payments for the transaction to be processed according to the transaction metadata Transaction; the instalment payment transaction records the transaction payment information and payment links of each payment stage; based on the payment method submitted for at least one payment stage of the instalment payment transaction, the instalment payment transaction is analyzed to obtain and The target payment transaction corresponding to the payment method; and perform payment processing on the target payment transaction according to the target transaction payment information and target payment link of the at least one payment stage recorded in the target payment transaction.
上述为本实施例的第二种计算设备的示意性方案。需要说明的是,该计算设备的技术方案与上述的交易处理方法的技术方案属于同一构思,计算设备的技术方案未详细描述的细节内容,均可以参见上述交易处理方法的技术方案的描述。The foregoing is a schematic solution of the second computing device of this embodiment. It should be noted that the technical solution of the computing device belongs to the same concept as the technical solution of the foregoing transaction processing method. For details of the technical solution of the computing device that are not described in detail, please refer to the description of the technical solution of the foregoing transaction processing method.
本说明书提供的第三种计算设备如下。The third computing device provided in this manual is as follows.
图19示出了根据本说明书一个实施例提供的一种计算设备1900的结构框图。该计算设备1900的部件包括但不限于存储器1910和处理器1920。处理器1920与存储器1910通过总线1930相连接,数据库1950用于保存数据。Fig. 19 shows a structural block diagram of a computing device 1900 according to an embodiment of the present specification. The components of the computing device 1900 include, but are not limited to, a memory 1910 and a processor 1920. The processor 1920 and the memory 1910 are connected through a bus 1930, and the database 1950 is used to store data.
计算设备1900还包括接入设备1940,接入设备1940使得计算设备1900能够经由一个或多个网络1960通信。这些网络的示例包括公用交换电话网(PSTN)、局域网(LAN)、广域网(WAN)、个域网(PAN)或诸如因特网的通信网络的组合。接入设备1940可以包括有线或无线的任何类型的网络接口(例如,网络接口卡(NIC))中的一个或多个,诸如IEEE802.11无线局域网(WLAN)无线接口、全球微波互联接入(Wi-MAX)接口、以太网接口、通用串行总线(USB)接口、蜂窝网络接口、蓝牙接 口、近场通信(NFC)接口,等等。The computing device 1900 also includes an access device 1940 that enables the computing device 1900 to communicate via one or more networks 1960. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 1940 may include one or more of any type of wired or wireless network interface (for example, a network interface card (NIC)), such as an IEEE802.11 wireless local area network (WLAN) wireless interface, and global interconnection for microwave access ( Wi-MAX) interface, Ethernet interface, universal serial bus (USB) interface, cellular network interface, Bluetooth interface, near field communication (NFC) interface, etc.
在本说明书的一个实施例中,计算设备1900的上述部件以及图19中未示出的其他部件也可以彼此相连接,例如通过总线。应当理解,图19所示的计算设备结构框图仅仅是出于示例的目的,而不是对本说明书范围的限制。本领域技术人员可以根据需要,增添或替换其他部件。In an embodiment of this specification, the aforementioned components of the computing device 1900 and other components not shown in FIG. 19 may also be connected to each other, for example, via a bus. It should be understood that the structural block diagram of the computing device shown in FIG. 19 is only for the purpose of example, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.
计算设备1900可以是任何类型的静止或移动计算设备,包括移动计算机或移动计算设备(例如,平板计算机、个人数字助理、膝上型计算机、笔记本计算机、上网本等)、移动电话(例如,智能手机)、可佩戴的计算设备(例如,智能手表、智能眼镜等)或其他类型的移动设备,或者诸如台式计算机或PC的静止计算设备。计算设备1900还可以是移动式或静止式的服务器。The computing device 1900 can be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (for example, a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (for example, a smart phone). ), wearable computing devices (for example, smart watches, smart glasses, etc.) or other types of mobile devices, or stationary computing devices such as desktop computers or PCs. The computing device 1900 may also be a mobile or stationary server.
其中,所述存储器1910用于存储计算机可执行指令,处理器1920用于执行如下计算机可执行指令:接收第一客户端提交的待处理业务的业务处理请求;所述业务处理请求中携带业务标识和分段数目;根据所述分段数目和所述业务标识对应的元数据,创建所述业务处理请求对应的分段数据事务;所述分段数据事务中记录有各个执行段的数据执行信息和数据链路;向所述第一客户端下发所述分段数据事务;根据所述第一客户端针对所述分段数据事务提交的分段执行方式,对所述分段数据事务进行解析,获得与所述分段执行方式对应的目标数据事务;根据所述目标数据事务中记录的所述至少一个执行段的目标数据执行信息和目标数据链路,对所述目标数据事务进行执行处理;向所述第一客户端推送所述目标数据事务的执行处理结果。The memory 1910 is used to store computer-executable instructions, and the processor 1920 is used to execute the following computer-executable instructions: receiving a service processing request for a service to be processed submitted by a first client; the service processing request carries a service identifier And the number of segments; create a segmented data transaction corresponding to the service processing request according to the number of segments and the metadata corresponding to the service identifier; the segmented data transaction records the data execution information of each execution segment And the data link; deliver the segmented data transaction to the first client; perform the segmented data transaction according to the segmented execution mode submitted by the first client for the segmented data transaction Analyze to obtain the target data transaction corresponding to the segmented execution mode; execute the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction Processing; Push the execution processing result of the target data transaction to the first client.
上述为本实施例的一种计算设备的示意性方案。需要说明的是,该计算设备的技术方案与上述的第二种数据处理方法的技术方案属于同一构思,计算设备的技术方案未详细描述的细节内容,均可以参见上述第二种数据处理方法的技术方案的描述。The foregoing is a schematic solution of a computing device of this embodiment. It should be noted that the technical solution of the computing device belongs to the same concept as the technical solution of the above-mentioned second data processing method. For details that are not described in detail in the technical solution of the computing device, please refer to the above-mentioned second data processing method. Description of the technical solution.
本说明书提供的第四种计算设备实施例如下。An example of the fourth computing device provided in this specification is as follows.
图20示出了根据本说明书一个实施例提供的一种计算设备2000的结构框图。该计算设备2000的部件包括但不限于存储器2010和处理器2020。处理器2020与存储器2010通过总线2030相连接,数据库2050用于保存数据。Fig. 20 shows a structural block diagram of a computing device 2000 provided according to an embodiment of the present specification. The components of the computing device 2000 include but are not limited to a memory 2010 and a processor 2020. The processor 2020 and the memory 2010 are connected through a bus 2030, and the database 2050 is used to store data.
计算设备2000还包括接入设备2040,接入设备2040使得计算设备2000能够经由一个或多个网络2060通信。这些网络的示例包括公用交换电话网(PSTN)、局域网(LAN)、广域网(WAN)、个域网(PAN)或诸如因特网的通信网络的组合。接入 设备2040可以包括有线或无线的任何类型的网络接口(例如,网络接口卡(NIC))中的一个或多个,诸如IEEE802.11无线局域网(WLAN)无线接口、全球微波互联接入(Wi-MAX)接口、以太网接口、通用串行总线(USB)接口、蜂窝网络接口、蓝牙接口、近场通信(NFC)接口,等等。The computing device 2000 also includes an access device 2040 that enables the computing device 2000 to communicate via one or more networks 2060. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 2040 may include one or more of any type of wired or wireless network interface (for example, a network interface card (NIC)), such as IEEE802.11 wireless local area network (WLAN) wireless interface, global interconnection for microwave access ( Wi-MAX) interface, Ethernet interface, universal serial bus (USB) interface, cellular network interface, Bluetooth interface, near field communication (NFC) interface, etc.
在本说明书的一个实施例中,计算设备2000的上述部件以及图20中未示出的其他部件也可以彼此相连接,例如通过总线。应当理解,图20所示的计算设备结构框图仅仅是出于示例的目的,而不是对本说明书范围的限制。本领域技术人员可以根据需要,增添或替换其他部件。In an embodiment of this specification, the aforementioned components of the computing device 2000 and other components not shown in FIG. 20 may also be connected to each other, for example, via a bus. It should be understood that the structural block diagram of the computing device shown in FIG. 20 is only for the purpose of example, and is not a limitation on the scope of this specification. Those skilled in the art can add or replace other components as needed.
计算设备2000可以是任何类型的静止或移动计算设备,包括移动计算机或移动计算设备(例如,平板计算机、个人数字助理、膝上型计算机、笔记本计算机、上网本等)、移动电话(例如,智能手机)、可佩戴的计算设备(例如,智能手表、智能眼镜等)或其他类型的移动设备,或者诸如台式计算机或PC的静止计算设备。计算设备2000还可以是移动式或静止式的服务器。The computing device 2000 can be any type of stationary or mobile computing device, including mobile computers or mobile computing devices (for example, tablet computers, personal digital assistants, laptop computers, notebook computers, netbooks, etc.), mobile phones (for example, smart phones). ), wearable computing devices (for example, smart watches, smart glasses, etc.) or other types of mobile devices, or stationary computing devices such as desktop computers or PCs. The computing device 2000 may also be a mobile or stationary server.
其中,所述存储器2010用于存储计算机可执行指令,处理器2020用于执行如下计算机可执行指令:接收针对待处理业务提交的业务处理指令;根据所述业务处理指令对应的分段数目,向服务端提交携带所述分段数目和所述待处理业务的业务标识的业务处理请求;接收所述服务端针对所述业务处理请求下发的分段数据事务并展示;根据针对所述分段数据事务的分段执行输入,向所述服务端提交分段执行方式;接收所述服务端返回的所述分段执行方式对应的目标数据事务的执行处理结果。Wherein, the memory 2010 is used to store computer-executable instructions, and the processor 2020 is used to execute the following computer-executable instructions: receiving business processing instructions submitted for the business to be processed; according to the number of segments corresponding to the business processing instructions, The server submits a service processing request carrying the number of segments and the service identifier of the service to be processed; receives and displays the segment data transaction issued by the server in response to the service processing request; The segmented execution input of the data transaction is submitted, and the segmented execution mode is submitted to the server; the execution processing result of the target data transaction corresponding to the segmented execution mode is received from the server.
上述为本实施例的一种计算设备的示意性方案。需要说明的是,该计算设备的技术方案与上述的第三种数据处理方法的技术方案属于同一构思,计算设备的技术方案未详细描述的细节内容,均可以参见上述第三种数据处理方法的技术方案的描述。The foregoing is a schematic solution of a computing device of this embodiment. It should be noted that the technical solution of the computing device belongs to the same concept as the technical solution of the third data processing method mentioned above. For details that are not described in detail in the technical solution of the computing device, please refer to the third data processing method mentioned above. Description of the technical solution.
本说明书提供的第五种计算设备实施例如下:The example of the fifth computing device provided in this specification is as follows:
图21示出了根据本说明书一个实施例提供的一种计算设备2100的结构框图。该计算设备2100的部件包括但不限于存储器2110和处理器2120。处理器2120与存储器2110通过总线2130相连接,数据库2150用于保存数据。Fig. 21 shows a structural block diagram of a computing device 2100 according to an embodiment of the present specification. The components of the computing device 2100 include, but are not limited to, a memory 2110 and a processor 2120. The processor 2120 and the memory 2110 are connected through a bus 2130, and the database 2150 is used to store data.
计算设备2100还包括接入设备2140,接入设备2140使得计算设备2100能够经由一个或多个网络2160通信。这些网络的示例包括公用交换电话网(PSTN)、局域网(LAN)、广域网(WAN)、个域网(PAN)或诸如因特网的通信网络的组合。接入 设备2140可以包括有线或无线的任何类型的网络接口(例如,网络接口卡(NIC))中的一个或多个,诸如IEEE802.11无线局域网(WLAN)无线接口、全球微波互联接入(Wi-MAX)接口、以太网接口、通用串行总线(USB)接口、蜂窝网络接口、蓝牙接口、近场通信(NFC)接口,等等。The computing device 2100 also includes an access device 2140 that enables the computing device 2100 to communicate via one or more networks 2160. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 2140 may include one or more of any type of wired or wireless network interface (for example, a network interface card (NIC)), such as IEEE802.11 wireless local area network (WLAN) wireless interface, global interconnection for microwave access ( Wi-MAX) interface, Ethernet interface, universal serial bus (USB) interface, cellular network interface, Bluetooth interface, near field communication (NFC) interface, etc.
在本说明书的一个实施例中,计算设备2100的上述部件以及图21中未示出的其他部件也可以彼此相连接,例如通过总线。应当理解,图21所示的计算设备结构框图仅仅是出于示例的目的,而不是对本说明书范围的限制。本领域技术人员可以根据需要,增添或替换其他部件。In an embodiment of this specification, the aforementioned components of the computing device 2100 and other components not shown in FIG. 21 may also be connected to each other, for example, via a bus. It should be understood that the structural block diagram of the computing device shown in FIG. 21 is only for the purpose of example, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.
计算设备2100可以是任何类型的静止或移动计算设备,包括移动计算机或移动计算设备(例如,平板计算机、个人数字助理、膝上型计算机、笔记本计算机、上网本等)、移动电话(例如,智能手机)、可佩戴的计算设备(例如,智能手表、智能眼镜等)或其他类型的移动设备,或者诸如台式计算机或PC的静止计算设备。计算设备2100还可以是移动式或静止式的服务器。The computing device 2100 can be any type of stationary or mobile computing device, including mobile computers or mobile computing devices (for example, tablet computers, personal digital assistants, laptop computers, notebook computers, netbooks, etc.), mobile phones (for example, smart phones). ), wearable computing devices (for example, smart watches, smart glasses, etc.) or other types of mobile devices, or stationary computing devices such as desktop computers or PCs. The computing device 2100 may also be a mobile or stationary server.
其中,所述存储器2110用于存储计算机可执行指令,处理器2120用于执行如下计算机可执行指令:接收第二客户端提交的携带业务标识的业务处理请求;根据所述业务标识对应的元数据,创建所述业务处理请求对应的分段数据事务;所述分段数据事务中记录有各个执行段的数据执行信息和数据链路;向第一客户端和所述第二客户端下发所述分段数据事务;根据所述第二客户端针对所述分段数据事务提交的预执行方式,对所述分段数据事务进行解析,获得与所述预执行方式对应的目标数据事务;根据所述目标数据事务中记录的所述至少一个执行段的目标数据执行信息和目标数据链路,对所述目标数据事务进行执行处理;向所述第二客户端推送所述目标数据事务的执行处理结果。The memory 2110 is used to store computer-executable instructions, and the processor 2120 is used to execute the following computer-executable instructions: receiving a service processing request carrying a service identification submitted by a second client; according to metadata corresponding to the service identification , Create a segmented data transaction corresponding to the service processing request; the segmented data transaction records the data execution information and data link of each execution segment; and deliver the data to the first client and the second client The segmented data transaction; according to the pre-execution mode submitted by the second client for the segmented data transaction, analyze the segmented data transaction to obtain the target data transaction corresponding to the pre-execution mode; The target data execution information and the target data link of the at least one execution segment recorded in the target data transaction, perform execution processing on the target data transaction; push the execution of the target data transaction to the second client process result.
上述为本实施例的一种计算设备的示意性方案。需要说明的是,该计算设备的技术方案与上述的第四种数据处理方法的技术方案属于同一构思,计算设备的技术方案未详细描述的细节内容,均可以参见上述第四种数据处理方法的技术方案的描述。The foregoing is a schematic solution of a computing device of this embodiment. It should be noted that the technical solution of the computing device belongs to the same concept as the technical solution of the above-mentioned fourth data processing method. For details that are not described in detail in the technical solution of the computing device, please refer to the above-mentioned fourth data processing method. Description of the technical solution.
本说明书提供的第六种计算设备如下。The sixth computing device provided in this manual is as follows.
图22示出了根据本说明书一个实施例提供的一种计算设备2200的结构框图。该计算设备2200的部件包括但不限于存储器2210和处理器2220。处理器2220与存储器2210通过总线2230相连接,数据库2250用于保存数据。Fig. 22 shows a structural block diagram of a computing device 2200 provided according to an embodiment of the present specification. The components of the computing device 2200 include, but are not limited to, a memory 2210 and a processor 2220. The processor 2220 and the memory 2210 are connected through a bus 2230, and the database 2250 is used to store data.
计算设备2200还包括接入设备2240,接入设备2240使得计算设备2200能够经由一个或多个网络2260通信。这些网络的示例包括公用交换电话网(PSTN)、局域网(LAN)、广域网(WAN)、个域网(PAN)或诸如因特网的通信网络的组合。接入设备2240可以包括有线或无线的任何类型的网络接口(例如,网络接口卡(NIC))中的一个或多个,诸如IEEE802.11无线局域网(WLAN)无线接口、全球微波互联接入(Wi-MAX)接口、以太网接口、通用串行总线(USB)接口、蜂窝网络接口、蓝牙接口、近场通信(NFC)接口,等等。The computing device 2200 also includes an access device 2240, which enables the computing device 2200 to communicate via one or more networks 2260. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 2240 may include one or more of any type of wired or wireless network interface (for example, a network interface card (NIC)), such as IEEE802.11 wireless local area network (WLAN) wireless interface, global interconnection for microwave access ( Wi-MAX) interface, Ethernet interface, universal serial bus (USB) interface, cellular network interface, Bluetooth interface, near field communication (NFC) interface, etc.
在本说明书的一个实施例中,计算设备2200的上述部件以及图22中未示出的其他部件也可以彼此相连接,例如通过总线。应当理解,图22所示的计算设备结构框图仅仅是出于示例的目的,而不是对本说明书范围的限制。本领域技术人员可以根据需要,增添或替换其他部件。In an embodiment of this specification, the aforementioned components of the computing device 2200 and other components not shown in FIG. 22 may also be connected to each other, for example, via a bus. It should be understood that the structural block diagram of the computing device shown in FIG. 22 is only for the purpose of example, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.
计算设备2200可以是任何类型的静止或移动计算设备,包括移动计算机或移动计算设备(例如,平板计算机、个人数字助理、膝上型计算机、笔记本计算机、上网本等)、移动电话(例如,智能手机)、可佩戴的计算设备(例如,智能手表、智能眼镜等)或其他类型的移动设备,或者诸如台式计算机或PC的静止计算设备。计算设备2200还可以是移动式或静止式的服务器。The computing device 2200 can be any type of stationary or mobile computing device, including mobile computers or mobile computing devices (for example, tablet computers, personal digital assistants, laptop computers, notebook computers, netbooks, etc.), mobile phones (for example, smart phones). ), wearable computing devices (for example, smart watches, smart glasses, etc.) or other types of mobile devices, or stationary computing devices such as desktop computers or PCs. The computing device 2200 may also be a mobile or stationary server.
其中,所述存储器2210用于存储计算机可执行指令,处理器2220用于执行如下计算机可执行指令:采集第一客户端对应的终端设备展示的待处理业务的业务标识码;对所述业务标识码进行解码,根据解码获得的业务标识向服务端提交携带所述业务标识的业务处理请求;接收所述服务端针对所述业务处理请求下发的分段数据事务并展示;根据针对所述分段数据事务的预执行输入,向所述服务端提交预执行方式;接收所述服务端返回的所述预执行方式对应的目标数据事务的执行处理结果。Wherein, the memory 2210 is used to store computer-executable instructions, and the processor 2220 is used to execute the following computer-executable instructions: collect the service identification code of the service to be processed displayed by the terminal device corresponding to the first client; The code is decoded, and the service processing request carrying the service identifier is submitted to the server according to the service identifier obtained by decoding; the segmented data transaction issued by the server in response to the service processing request is received and displayed; The pre-execution input of the segment data transaction submits the pre-execution mode to the server; the execution processing result of the target data transaction corresponding to the pre-execution mode is received from the server.
上述为本实施例的一种计算设备的示意性方案。需要说明的是,该计算设备的技术方案与上述的第五种数据处理方法的技术方案属于同一构思,计算设备的技术方案未详细描述的细节内容,均可以参见上述第五种数据处理方法的技术方案的描述。The foregoing is a schematic solution of a computing device of this embodiment. It should be noted that the technical solution of the computing device belongs to the same concept as the technical solution of the above-mentioned fifth data processing method. For details that are not described in detail in the technical solution of the computing device, please refer to the above-mentioned fifth data processing method. Description of the technical solution.
本说明书一实施例还提供第一种计算机可读存储介质,其存储有计算机指令,该指令被处理器执行时以用于实现所述第一种数据处理方法的步骤。An embodiment of the present specification also provides a first computer-readable storage medium storing computer instructions, which are used to implement the steps of the first data processing method when executed by a processor.
上述为本实施例的一种计算机可读存储介质的示意性方案。需要说明的是,该存储介质的技术方案与上述的第一种数据处理方法的技术方案属于同一构思,存储介质 的技术方案未详细描述的细节内容,均可以参见上述第一种数据处理方法的技术方案的描述。The foregoing is a schematic solution of a computer-readable storage medium of this embodiment. It should be noted that the technical solution of the storage medium belongs to the same concept as the technical solution of the above-mentioned first data processing method. For details that are not described in detail in the technical solution of the storage medium, please refer to the above-mentioned first data processing method. Description of the technical solution.
本说明书一实施例还提供第二种计算机可读存储介质,其存储有计算机指令,该指令被处理器执行时以用于实现所述交易处理方法的步骤。An embodiment of the present specification also provides a second computer-readable storage medium, which stores computer instructions, which are used to implement the steps of the transaction processing method when executed by a processor.
上述为本实施例的一种计算机可读存储介质的示意性方案。需要说明的是,该存储介质的技术方案与上述的交易处理方法的技术方案属于同一构思,存储介质的技术方案未详细描述的细节内容,均可以参见上述交易处理方法的技术方案的描述。The foregoing is a schematic solution of a computer-readable storage medium of this embodiment. It should be noted that the technical solution of the storage medium belongs to the same concept as the technical solution of the above-mentioned transaction processing method. For details of the technical solution of the storage medium that are not described in detail, please refer to the description of the technical solution of the above-mentioned transaction processing method.
本说明书一实施例还提供第三种计算机可读存储介质,其存储有计算机指令,该指令被处理器执行时以用于实现所述第二种数据处理方法的步骤。An embodiment of the present specification also provides a third type of computer-readable storage medium, which stores computer instructions, which are used to implement the steps of the second data processing method when executed by a processor.
上述为本实施例的一种计算机可读存储介质的示意性方案。需要说明的是,该存储介质的技术方案与上述的第二种数据处理方法的技术方案属于同一构思,存储介质的技术方案未详细描述的细节内容,均可以参见上述第二种数据处理方法的技术方案的描述。The foregoing is a schematic solution of a computer-readable storage medium of this embodiment. It should be noted that the technical solution of the storage medium belongs to the same concept as the technical solution of the above-mentioned second data processing method. For details that are not described in detail in the technical solution of the storage medium, please refer to the above-mentioned second data processing method. Description of the technical solution.
本说明书一实施例还提供第四种计算机可读存储介质,其存储有计算机指令,该指令被处理器执行时以用于实现所述第三种数据处理方法的步骤。An embodiment of the present specification also provides a fourth computer-readable storage medium, which stores computer instructions, which are used to implement the steps of the third data processing method when executed by a processor.
上述为本实施例的一种计算机可读存储介质的示意性方案。需要说明的是,该存储介质的技术方案与上述的第三种数据处理方法的技术方案属于同一构思,存储介质的技术方案未详细描述的细节内容,均可以参见上述第三种数据处理方法的技术方案的描述。The foregoing is a schematic solution of a computer-readable storage medium of this embodiment. It should be noted that the technical solution of the storage medium belongs to the same concept as the technical solution of the third data processing method mentioned above. For details that are not described in detail in the technical solution of the storage medium, please refer to the third data processing method mentioned above. Description of the technical solution.
本说明书一实施例还提供第五种计算机可读存储介质,其存储有计算机指令,该指令被处理器执行时以用于实现所述第四种数据处理方法的步骤。An embodiment of the present specification also provides a fifth computer-readable storage medium, which stores computer instructions, which are used to implement the steps of the fourth data processing method when executed by a processor.
上述为本实施例的一种计算机可读存储介质的示意性方案。需要说明的是,该存储介质的技术方案与上述的第四种数据处理方法的技术方案属于同一构思,存储介质的技术方案未详细描述的细节内容,均可以参见上述第四种数据处理方法的技术方案的描述。The foregoing is a schematic solution of a computer-readable storage medium of this embodiment. It should be noted that the technical solution of the storage medium belongs to the same concept as the technical solution of the above-mentioned fourth data processing method. For details that are not described in detail in the technical solution of the storage medium, please refer to the above-mentioned fourth data processing method. Description of the technical solution.
本说明书一实施例还提供第六种计算机可读存储介质,其存储有计算机指令,该指令被处理器执行时以用于实现所述第五种数据处理方法的步骤。An embodiment of the present specification also provides a sixth computer-readable storage medium, which stores computer instructions, which are used to implement the steps of the fifth data processing method when executed by a processor.
上述为本实施例的一种计算机可读存储介质的示意性方案。需要说明的是,该 存储介质的技术方案与上述的第五种数据处理方法的技术方案属于同一构思,存储介质的技术方案未详细描述的细节内容,均可以参见上述第五种数据处理方法的技术方案的描述。The foregoing is a schematic solution of a computer-readable storage medium of this embodiment. It should be noted that the technical solution of the storage medium belongs to the same concept as the technical solution of the above-mentioned fifth data processing method. For details that are not described in detail in the technical solution of the storage medium, please refer to the above-mentioned fifth data processing method. Description of the technical solution.
上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。The foregoing describes specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps described in the claims can be performed in a different order than in the embodiments and still achieve desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or sequential order shown in order to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
所述计算机指令包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。The computer instructions include computer program codes, and the computer program codes may be in the form of source code, object code, executable files, or some intermediate forms. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory) , Random Access Memory (RAM, Random Access Memory), electrical carrier signal, telecommunications signal, and software distribution media, etc. It should be noted that the content contained in the computer-readable medium can be appropriately added or deleted according to the requirements of the legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to the legislation and patent practice, the computer-readable medium Does not include electrical carrier signals and telecommunication signals.
需要说明的是,对于前述的各方法实施例,为了简便描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本说明书实施例并不受所描述的动作顺序的限制,因为依据本说明书实施例,某些步骤可以采用其它顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定都是本说明书实施例所必须的。It should be noted that for the foregoing method embodiments, for simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should know that the embodiments of this specification are not subject to the described sequence of actions. Limitation, because according to the embodiments of this specification, some steps can be performed in other order or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the involved actions and modules are not necessarily all required by the embodiments of the specification.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own focus. For a part that is not described in detail in an embodiment, reference may be made to related descriptions of other embodiments.
以上公开的本说明书优选实施例只是用于帮助阐述本说明书。可选实施例并没有详尽叙述所有的细节,也不限制该发明仅为所述的具体实施方式。显然,根据本说明书实施例的内容,可作很多的修改和变化。本说明书选取并具体描述这些实施例,是为了更好地解释本说明书实施例的原理和实际应用,从而使所属技术领域技术人员能很好地理解和利用本说明书。本说明书仅受权利要求书及其全部范围和等效物的限制。The preferred embodiments of this specification disclosed above are only used to help explain this specification. The optional embodiments do not describe all the details in detail, nor do they limit the invention to only the specific implementations described. Obviously, many modifications and changes can be made according to the content of the embodiments of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the embodiments of this specification, so that those skilled in the art can understand and use this specification well. This description is only limited by the claims and their full scope and equivalents.

Claims (65)

  1. 一种数据处理方法,包括:A data processing method, including:
    获取待处理业务的元数据;Obtain the metadata of the business to be processed;
    根据所述元数据创建所述待处理业务的分段数据事务;所述分段数据事务中记录有各个执行段的数据执行信息和数据链路;Create a segmented data transaction of the service to be processed according to the metadata; the segmented data transaction records data execution information and data links of each execution segment;
    基于针对所述分段数据事务的至少一个执行段提交的执行方式,对所述分段数据事务进行解析,获得与所述执行方式对应的目标数据事务;Analyzing the segmented data transaction based on the execution mode submitted for at least one execution segment of the segmented data transaction to obtain a target data transaction corresponding to the execution mode;
    根据所述目标数据事务中记录的所述至少一个执行段的目标数据执行信息和目标数据链路,对所述目标数据事务进行执行处理。Perform execution processing on the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction.
  2. 根据权利要求1所述的数据处理方法,还包括:The data processing method according to claim 1, further comprising:
    根据所述分段数据事务的数据流出对象的历史数据日志,确定向所述数据流出对象推送的执行段的推荐数目,并根据所述数据流出对象针对所述推荐数目提交的执行指令确定所述分段数据事务的执行段的数目;According to the historical data log of the data outflow object of the segmented data transaction, determine the recommended number of execution segments pushed to the data outflow object, and determine the execution instruction submitted by the data outflow object for the recommended number The number of execution stages of segmented data transactions;
    或者,or,
    根据所述分段数据事务的数据流入对象的数据记录,预测所述数据流入对象的数据流入时间区间,按照所述数据流入时间区间确定所述分段数据事务的执行段的时长和/或数目。According to the data record of the data inflow object of the segmented data transaction, predict the data inflow time interval of the data inflow object, and determine the duration and/or number of execution sections of the segmented data transaction according to the data inflow time interval .
  3. 根据权利要求1或2所述的数据处理方法,所述基于针对所述分段数据事务的至少一个执行段提交的执行方式,对所述分段数据事务进行解析,获得与所述执行方式对应的目标数据事务,包括:The data processing method according to claim 1 or 2, wherein the segmented data transaction is analyzed based on the execution mode submitted for at least one execution segment of the segmented data transaction to obtain the corresponding execution mode The target data transaction includes:
    在所述分段数据事务的执行段的执行条件被触发的情况下,按照所述执行段的执行条件被触发对应的分段执行方式,对所述分段数据事务进行分解,获得与所述分段执行方式对应的目标数据事务;When the execution condition of the execution segment of the segmented data transaction is triggered, the segmented data transaction is decomposed according to the segmented execution mode corresponding to the triggered execution condition of the segmented data transaction to obtain the Target data transaction corresponding to the segmented execution mode;
    或者,or,
    接收所述分段数据事务的数据流出对象针对所述至少一个执行段提交的分段执行请求;Receiving a segmented execution request submitted by the data outflow object of the segmented data transaction for the at least one execution segment;
    基于所述分段执行请求中携带的分段执行方式,对所述分段数据事务进行分解,获得与所述分段执行方式对应的目标数据事务;Decompose the segmented data transaction based on the segmented execution mode carried in the segmented execution request to obtain a target data transaction corresponding to the segmented execution mode;
    其中,所述与所述分段执行方式对应的目标数据事务中,记录有所述至少一个执行段的目标数据执行信息和目标数据链路,所述目标数据执行信息基于所述至少一个执行段的数据执行信息确定,所述目标数据链路基于所述至少一个执行段的数据链路确定。Wherein, in the target data transaction corresponding to the segmented execution mode, target data execution information and target data link of the at least one execution segment are recorded, and the target data execution information is based on the at least one execution segment The data execution information is determined, and the target data link is determined based on the data link of the at least one execution segment.
  4. 根据权利要求3所述的数据处理方法,所述根据所述目标数据事务中记录的所述至少一个执行段的目标数据执行信息和目标数据链路,对所述目标数据事务进行执行处理,包括:The data processing method according to claim 3, wherein the execution processing of the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction includes :
    读取所述目标数据执行信息中包含的所述至少一个执行段对应的数据流动数值;Reading the data flow value corresponding to the at least one execution segment included in the target data execution information;
    按照所述目标数据链路,对所述数据流出对象的数据账户空间的数据额度扣减所述数据流动数值对应的扣减额度,以及,从所述数据流出对象的数据账户空间对应的实际数据账户转出所述数据流动数值对应的数据资源至所述分段数据事务的数据流入对象的数据账户;According to the target data link, the deduction amount corresponding to the data flow value is deducted from the data quota of the data account space of the data outflow object, and the actual data corresponding to the data account space of the data outflow object is deducted The account transfers the data resource corresponding to the data flow value to the data account of the data inflow object of the segmented data transaction;
    其中,所述目标数据链路的数据节点至少对应于所述数据流出对象的数据账户空间和所述数据流入对象的数据账户;所述数据账户空间的数据结算周期的时长与所述分段数据事务的执行段的执行处理周期的时长相等,在前一数据结算周期对所述数据账户空间的数据额度扣减所述扣减额度,经后一数据结算周期的数据结算处理后,所述扣减额度对所述数据额度的扣减被更新。Wherein, the data node of the target data link at least corresponds to the data account space of the data outflow object and the data account of the data inflow object; the duration of the data settlement period of the data account space and the segment data The duration of the execution processing cycle of the execution section of the transaction is equal, the data quota of the data account space is deducted from the deduction quota in the previous data settlement cycle, and after the data settlement processing of the subsequent data settlement cycle, the deduction The deduction of the data quota is updated.
  5. 根据权利要求3所述的数据处理方法,所述根据所述目标数据事务中记录的所述至少一个执行段的目标数据执行信息和目标数据链路,对所述目标数据事务进行执行处理,包括:The data processing method according to claim 3, wherein the execution processing of the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction includes :
    读取所述目标数据执行信息中包含的所述至少一个执行段对应的数据流动数值;Reading the data flow value corresponding to the at least one execution segment included in the target data execution information;
    按照所述目标数据链路,从所述数据流出对象的数据账户转出所述数据流动数值对应的数据资源至所述数据流入对象的数据账户;According to the target data link, transfer the data resource corresponding to the data flow value from the data account of the data outflow object to the data account of the data inflow object;
    其中,所述目标数据链路的起始数据节点对应于所述数据流出对象的数据账户,终止数据节点对应于所述数据流入对象的数据账户。Wherein, the starting data node of the target data link corresponds to the data account of the data outflow object, and the terminating data node corresponds to the data account of the data inflow object.
  6. 根据权利要求4或5所述的数据处理方法,所述读取所述目标数据执行信息中包含的所述至少一个执行段对应的数据流动数值子步骤执行之后,还包括:The data processing method according to claim 4 or 5, after the sub-step of reading the data flow value corresponding to the at least one execution segment contained in the target data execution information is executed, further comprising:
    根据所述数据流动数值以及所述至少一个执行段对应的第一执行附加数据占比,计算所述至少一个执行段对应的第一执行附加数据值;Calculate the first execution additional data value corresponding to the at least one execution stage according to the data flow value and the proportion of the first execution additional data corresponding to the at least one execution stage;
    对所述数据流入对象进行所述第一执行附加数据值的数据结算处理;Perform the data settlement processing of the first execution additional data value on the data inflow object;
    其中,所述第一执行附加数据占比,包括对所述分段数据事务在所述至少一个执行段进行执行处理产生的处理费率,依据所述第一执行附加数据占比计算获得的所述第一执行附加数据值由所述数据流入对象承担。Wherein, the proportion of the first execution additional data includes the processing fee rate generated by the execution processing of the segmented data transaction in the at least one execution segment, and the all calculated based on the proportion of the first execution additional data. The first execution additional data value is borne by the data inflow object.
  7. 根据权利要求1或2所述的数据处理方法,所述基于针对所述分段数据事务的至少一个执行段提交的执行方式,对所述分段数据事务进行解析,获得与所述执行方式 对应的目标数据事务,包括:The data processing method according to claim 1 or 2, wherein the segmented data transaction is analyzed based on the execution mode submitted for at least one execution segment of the segmented data transaction to obtain the corresponding execution mode The target data transaction includes:
    接收所述分段数据事务的数据流入对象针对所述至少一个执行段提交的预执行请求;Receiving a pre-execution request submitted by the data inflow object of the segmented data transaction for the at least one execution segment;
    基于所述预执行请求中携带的预执行方式,对所述至少一个执行段对应的数据执行信息和数据链路进行组装,获得与所述预执行方式对应的目标数据事务。Based on the pre-execution mode carried in the pre-execution request, the data execution information and the data link corresponding to the at least one execution segment are assembled to obtain the target data transaction corresponding to the pre-execution mode.
  8. 根据权利要求7所述的数据处理方法,所述基于所述预执行请求中携带的预执行方式,对所述至少一个执行段对应的数据执行信息和数据链路进行组装,获得与所述预执行方式对应的目标数据事务,包括:The data processing method according to claim 7, wherein the data execution information and the data link corresponding to the at least one execution segment are assembled based on the pre-execution mode carried in the pre-execution request to obtain the data link corresponding to the pre-execution request. The target data transaction corresponding to the execution mode includes:
    根据所述预执行请求对应的所述至少一个执行段的目标数据执行信息,计算所述预执行请求对应的总数据流动数值;Calculating the total data flow value corresponding to the pre-execution request according to the target data execution information of the at least one execution segment corresponding to the pre-execution request;
    基于所述分段数据事务的数据流入对象和中间数据对象二者数据账户的账户路径确定目标数据链路;Determine the target data link based on the account path of the data account of both the data inflow object and the intermediate data object of the segmented data transaction;
    基于所述总数据流动数值和所述目标数据链路组建中间数据事务,作为所述目标数据事务;Forming an intermediate data transaction based on the total data flow value and the target data link as the target data transaction;
    其中,所述目标数据链路的起始数据节点对应于所述中间数据对象的数据账户,终止数据节点对应于所述数据流入对象的数据账户。Wherein, the starting data node of the target data link corresponds to the data account of the intermediate data object, and the ending data node corresponds to the data account of the data inflow object.
  9. 根据权利要求8所述的数据处理方法,所述根据所述目标数据事务中记录的所述至少一个执行段的目标数据执行信息和目标数据链路,对所述目标数据事务进行执行处理,包括:The data processing method according to claim 8, wherein the executing processing of the target data transaction according to the target data execution information and the target data link of the at least one execution segment recorded in the target data transaction includes :
    从所述中间数据对象的数据账户申请所述总数据流动数值对应的数据资源至所述数据流入对象的数据账户;Apply for the data resource corresponding to the total data flow value from the data account of the intermediate data object to the data account of the data inflow object;
    根据所述分段数据事务的数据流出对象和所述中间数据对象二者数据账户的账户路径,确定从所述数据流出对象至所述中间数据对象的分段数据链路;Determine the segmented data link from the data outflow object to the intermediate data object according to the account path of both the data outflow object of the segmented data transaction and the data account of the intermediate data object;
    根据所述分段数据链路和所述分段数据事务中待执行的执行段的数据执行信息,组建所述分段数据事务中待执行的执行段的第一分段数据事务;Forming the first segment data transaction of the execution segment to be executed in the segment data transaction according to the segment data link and the data execution information of the execution segment to be executed in the segment data transaction;
    其中,所述分段数据链路的起始数据节点对应于所述数据流出对象的数据账户,终止数据节点对应于所述中间数据对象的数据账户。Wherein, the starting data node of the segmented data link corresponds to the data account of the data outflow object, and the terminating data node corresponds to the data account of the intermediate data object.
  10. 根据权利要求9所述的数据处理方法,所述根据所述目标数据事务中记录的所述至少一个执行段的目标数据执行信息和目标数据链路,对所述目标数据事务进行执行处理步骤执行之后,包括:The data processing method according to claim 9, wherein the target data transaction is executed according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction. After that, include:
    在所述第一分段数据事务的执行段的执行条件被触发的情况下,读取所述第一分段 数据事务中被触发的执行段对应的第一分段数据流动数值;In the case that the execution condition of the execution segment of the first segmented data transaction is triggered, read the first segmented data flow value corresponding to the triggered execution segment of the first segmented data transaction;
    按照所述分段数据链路,对所述数据流出对象的数据账户空间的数据额度扣减所述第一分段数据流动数值对应的扣减额度,以及,从所述数据流出对象的数据账户空间对应的实际数据账户转出所述第一分段数据流动数值对应的数据资源至所述中间数据对象的数据账户;According to the segmented data link, the deduction amount corresponding to the first segmented data flow value is deducted from the data quota of the data account space of the data outflow object, and from the data account of the data outflow object The actual data account corresponding to the space transfers the data resource corresponding to the first segment data flow value to the data account of the intermediate data object;
    其中,所述数据账户空间的数据结算周期的时长与所述第一分段数据事务的执行段的执行处理周期的时长相等,在前一数据结算周期对所述数据账户空间的数据额度扣减所述扣减额度,经后一数据结算周期的数据结算处理后,所述扣减额度对所述数据额度的扣减被更新。Wherein, the duration of the data settlement cycle of the data account space is equal to the duration of the execution processing cycle of the execution stage of the first segmented data transaction, and the data quota of the data account space is deducted in the previous data settlement cycle The deduction amount is updated after the data settlement processing of the subsequent data settlement cycle, the deduction amount of the deduction amount to the data amount.
  11. 根据权利要求10所述的数据处理方法,所述从所述中间数据对象的数据账户申请所述总数据流动数值对应的数据资源至所述数据流入对象的数据账户子步骤执行之后,还包括:The data processing method according to claim 10, after the sub-step of applying for the data resource corresponding to the total data flow value from the data account of the intermediate data object to the data account of the data inflow object is executed, further comprising:
    根据所述总数据流动数值以及对应的第二执行附加数据占比,计算第二执行附加数据值;Calculate the second execution additional data value according to the total data flow value and the corresponding second execution additional data proportion;
    对所述数据流入对象进行所述第二执行附加数据值的数据结算处理;Perform the data settlement processing of the second execution additional data value on the data inflow object;
    其中,所述第二执行附加数据占比,包括对所述中间数据事务进行执行处理产生的处理费率,依据所述第二执行附加数据占比计算获得的所述第二执行附加数据值由所述数据流入对象承担。Wherein, the proportion of the second execution additional data includes the processing fee rate generated by the execution processing of the intermediate data transaction, and the second execution additional data value obtained by calculating the proportion of the second execution additional data is determined by The data flows into the subject to assume.
  12. 根据权利要求11所述的数据处理方法,还包括:The data processing method according to claim 11, further comprising:
    根据所述第一分段数据流动数值以及所述执行段对应的第一执行附加数据占比,计算所述执行段对应的第一执行附加数据值;Calculating the first execution additional data value corresponding to the execution section according to the first segment data flow value and the proportion of the first execution additional data corresponding to the execution section;
    对所述数据流入对象进行所述第一执行附加数据值的数据结算处理;Perform the data settlement processing of the first execution additional data value on the data inflow object;
    其中,所述第一执行附加数据占比,包括对所述第一分段数据事务在所述执行段进行执行处理产生的处理费率,依据所述第一执行附加数据占比计算获得的所述第一执行附加数据值由所述数据流入对象承担。Wherein, the proportion of the first execution additional data includes the processing fee generated by the execution processing of the first segmented data transaction in the execution section, and the total amount calculated based on the proportion of the first execution additional data The first execution additional data value is borne by the data inflow object.
  13. 根据权利要求1所述的数据处理方法,所述根据所述目标数据事务中记录的所述至少一个执行段的目标数据执行信息和目标数据链路,对所述目标数据事务进行执行处理步骤执行之后,还包括:The data processing method according to claim 1, wherein the target data transaction is executed according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction. After that, it also includes:
    接收所述分段数据事务的数据流入对象针对剩余执行段提交的第二预执行请求;Receiving the second pre-execution request submitted by the data inflow object of the segmented data transaction for the remaining execution segments;
    基于所述第二预执行请求中携带的第二预执行方式,对所述剩余执行段对应的数据执行信息和数据链路进行组装,获得与所述第二预执行方式对应的第二中间数据事务; 所述第二中间数据事务中记录有所述第二预执行请求对应的第二总数据流动数值;Based on the second pre-execution mode carried in the second pre-execution request, the data execution information and data link corresponding to the remaining execution segments are assembled to obtain second intermediate data corresponding to the second pre-execution mode Transaction; the second intermediate data transaction records a second total data flow value corresponding to the second pre-execution request;
    通过从所述分段数据事务的中间数据对象的数据账户申请所述第二总数据流动数值对应的数据资源至所述数据流入对象的数据账户的方式,对所述第二中间数据事务进行执行处理;The second intermediate data transaction is executed by applying for the data resource corresponding to the second total data flow value from the data account of the intermediate data object of the segmented data transaction to the data account of the data inflow object deal with;
    根据所述分段数据事务的数据流出对象和所述中间数据对象二者数据账户的账户路径,确定从所述数据流出对象至所述中间数据对象的第二分段数据链路;Determine the second segment data link from the data outflow object to the intermediate data object according to the account paths of the data outflow object of the segmented data transaction and the data account of the intermediate data object;
    根据所述第二分段数据链路和所述剩余执行段的数据执行信息,组建所述剩余执行段对应的第二分段数据事务;Forming a second segment data transaction corresponding to the remaining execution segment according to the second segment data link and the data execution information of the remaining execution segment;
    其中,所述第二中间数据事务中记录有第二中间数据链路,所述第二中间数据链路的起始数据节点对应于所述中间数据对象的数据账户,终止数据节点对应于所述数据流入对象的数据账户。Wherein, a second intermediate data link is recorded in the second intermediate data transaction, the starting data node of the second intermediate data link corresponds to the data account of the intermediate data object, and the terminating data node corresponds to the Data flows into the data account of the subject.
  14. 根据权利要求13所述的数据处理方法,所述根据所述第二分段数据链路和所述剩余执行段的数据执行信息,组建所述剩余执行段对应的第二分段数据事务步骤执行之后,还包括:The data processing method according to claim 13, wherein the step of constructing a second segment data transaction corresponding to the remaining execution segment according to the second segment data link and the data execution information of the remaining execution segment is executed After that, it also includes:
    在所述第二分段数据事务的剩余执行段中至少一者的执行条件被触发的情况下,读取所述第二分段数据事务中被触发的剩余执行段对应的第二分段数据流动数值;When the execution condition of at least one of the remaining execution segments of the second segmented data transaction is triggered, read the second segment data corresponding to the triggered remaining execution segments in the second segmented data transaction Flow value
    按照所述第二分段数据链路,对所述数据流出对象的数据账户空间的数据额度扣减所述第二分段数据流动数值对应的扣减额度,以及,从所述数据流出对象的数据账户空间对应的实际数据账户转出所述第二分段数据流动数值对应的数据资源至所述中间数据对象的数据账户;According to the second segmented data link, the data limit of the data account space of the data outflow object is deducted by the deduction limit corresponding to the second segmented data flow value, and the data outflow object from the data The actual data account corresponding to the data account space transfers the data resource corresponding to the second segmented data flow value to the data account of the intermediate data object;
    其中,所述数据账户空间的数据结算周期的时长与所述第二分段数据事务的剩余执行段的执行处理周期的时长相等,在前一数据结算周期对所述数据账户空间的数据额度扣减所述扣减额度,经后一数据结算周期的数据结算处理后,所述扣减额度对所述数据额度的扣减被更新。Wherein, the duration of the data settlement cycle of the data account space is equal to the duration of the execution processing cycle of the remaining execution stage of the second segmented data transaction, and the data quota of the data account space is deducted in the previous data settlement cycle. The deduction quota is subtracted, and after the data settlement processing of the subsequent data settlement cycle, the deduction of the deduction quota to the data quota is updated.
  15. 根据权利要求1所述的数据处理方法,所述获取待处理业务的元数据步骤执行之后,且所述根据所述元数据创建所述待处理业务的分段数据事务步骤执行之前,包括:The data processing method according to claim 1, after the step of obtaining the metadata of the service to be processed is performed, and before the step of creating the segmented data transaction of the service to be processed according to the metadata is performed, the method comprises:
    判断所述元数据中包含的待处理数据处理值是否小于或者等于所述分段数据事务的数据流出对象的数据账户空间的可用数据额度;Determining whether the processing value of the data to be processed included in the metadata is less than or equal to the available data quota of the data account space of the data outflow object of the segmented data transaction;
    若是,执行所述根据所述元数据创建所述待处理业务的分段数据事务步骤;If yes, execute the step of creating the segmented data transaction of the to-be-processed service based on the metadata;
    若否,向所述数据流出对象推送处理失败的提醒。If not, push a notification of processing failure to the data outflow object.
  16. 根据权利要求1所述的数据处理方法,所述待处理业务包括:交易业务,数据 流处理业务,支付业务;The data processing method according to claim 1, wherein the services to be processed include: transaction services, data stream processing services, and payment services;
    相应的,所述待处理业务的分段数据事务包括:所述交易业务采用分阶段交易方式进行执行的分阶段交易事务,所述数据流处理业务采用分阶段处理方式进行执行的分阶段数据流处理事务,所述支付业务采用分阶段支付方式进行执行的分阶段支付事务;Correspondingly, the segmented data transaction of the service to be processed includes: a phased transaction transaction executed by the transaction service in a phased transaction mode, and a phased data flow executed by the data stream processing service in a phased processing mode To process transactions, the payment business adopts a staged payment method to execute a staged payment transaction;
    所述分段数据事务的执行段包括:所述分阶段交易事务在分阶段交易过程中的各个交易阶段,所述分阶段数据流处理事务在分阶段处理过程中的各个数据处理阶段,所述分阶段支付事务在分阶段支付过程中的各个支付阶段。The execution stage of the segmented data transaction includes: each transaction stage in the staged transaction process of the staged transaction transaction, each data processing stage of the staged data flow processing transaction in the staged processing process, the A phased payment transaction is at each payment stage in the phased payment process.
  17. 一种数据处理装置,包括:A data processing device includes:
    获取模块,被配置为获取待处理业务的元数据;The obtaining module is configured to obtain metadata of the service to be processed;
    创建模块,被配置为根据所述元数据创建所述待处理业务的分段数据事务;所述分段数据事务中记录有各个执行段的数据执行信息和数据链路;The creation module is configured to create a segmented data transaction of the service to be processed according to the metadata; the segmented data transaction records data execution information and data links of each execution segment;
    解析模块,被配置为基于针对所述分段数据事务的至少一个执行段提交的执行方式,对所述分段数据事务进行解析,获得与所述执行方式对应的目标数据事务;The parsing module is configured to analyze the segmented data transaction based on the execution mode submitted for at least one execution segment of the segmented data transaction to obtain the target data transaction corresponding to the execution mode;
    处理模块,被配置为根据所述目标数据事务中记录的所述至少一个执行段的目标数据执行信息和目标数据链路,对所述目标数据事务进行执行处理。The processing module is configured to perform execution processing on the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction.
  18. 一种交易处理方法,包括:A transaction processing method, including:
    获取待处理交易的交易元数据;Obtain transaction metadata of pending transactions;
    根据所述交易元数据创建所述待处理交易的分期支付事务;所述分期支付事务中记录有各个支付阶段的交易支付信息和支付链路;Create an installment payment transaction for the transaction to be processed according to the transaction metadata; the installment payment transaction records transaction payment information and payment links of each payment stage;
    基于针对所述分期支付事务的至少一个支付阶段提交的支付方式,对所述分期支付事务进行解析,获得与所述支付方式对应的目标支付事务;Analyzing the instalment payment transaction based on the payment method submitted for at least one payment phase of the instalment payment transaction to obtain a target payment transaction corresponding to the payment method;
    根据所述目标支付事务中记录的所述至少一个支付阶段的目标交易支付信息和目标支付链路,对所述目标支付事务进行支付处理。Perform payment processing on the target payment transaction according to the target transaction payment information and target payment link of the at least one payment stage recorded in the target payment transaction.
  19. 根据权利要求18所述的交易处理方法,还包括:The transaction processing method according to claim 18, further comprising:
    根据所述分期支付事务的支付方的历史交易支付日志,确定向所述支付方推送的支付阶段的推荐分期数目,并根据所述支付方针对所述推荐分期数目提交的支付指令确定所述分期支付事务的支付阶段的分期数目;Determine the number of recommended installments of the payment stage pushed to the payer according to the historical transaction payment log of the payer of the installment payment transaction, and determine the installment according to the payment instruction submitted by the payer for the recommended number of installments The number of installments in the payment phase of the payment transaction;
    或者,or,
    根据所述分期支付事务的被支付方的交易记录,预测所述被支付方的收款时间区间,按照所述收款时间区间确定所述分期支付事务的支付阶段的分期时长和/或分期数目。According to the transaction records of the paid party of the installment payment transaction, predict the payment time interval of the paid party, and determine the installment duration and/or the number of installments of the payment phase of the installment payment transaction according to the payment time interval .
  20. 根据权利要求18或19所述的交易处理方法,所述基于针对所述分期支付事务 的至少一个支付阶段提交的支付方式,对所述分期支付事务进行解析,获得与所述支付方式对应的目标支付事务,包括:The transaction processing method according to claim 18 or 19, wherein said installment payment transaction is analyzed based on a payment method submitted for at least one payment phase of said installment payment transaction to obtain a target corresponding to said payment method Payment matters, including:
    在所述分期支付事务的支付阶段的支付条件被触发的情况下,按照所述支付阶段的支付条件被触发对应的分期支付方式,对所述分期支付事务进行分解,获得与所述分期支付方式对应的目标支付事务;In the case that the payment conditions of the payment phase of the installment transaction are triggered, the installment payment transaction is decomposed according to the installment payment method corresponding to the triggering of the payment conditions of the payment phase to obtain the same payment method as the installment payment method. Corresponding target payment transaction;
    或者,or,
    接收所述分期支付事务的支付方针对所述至少一个支付阶段提交的分期支付请求;Receiving the installment payment request submitted by the payer for the at least one payment phase;
    基于所述分期支付请求中携带的分期支付方式,对所述分期支付事务进行分解,获得与所述分期支付方式对应的目标支付事务;Decompose the installment payment transaction based on the installment payment method carried in the installment payment request to obtain the target payment transaction corresponding to the installment payment method;
    其中,所述与所述分期支付方式对应的目标支付事务中,记录有所述至少一个支付阶段的目标交易支付信息和目标支付链路,所述目标交易支付信息基于所述至少一个支付阶段的交易支付信息确定,所述目标支付链路基于所述至少一个支付阶段的支付链路确定。Wherein, in the target payment transaction corresponding to the installment payment method, the target transaction payment information and target payment link of the at least one payment phase are recorded, and the target transaction payment information is based on the target payment information of the at least one payment phase. Transaction payment information is determined, and the target payment link is determined based on the payment link of the at least one payment stage.
  21. 根据权利要求20所述的交易处理方法,所述根据所述目标支付事务中记录的所述至少一个支付阶段的目标交易支付信息和目标支付链路,对所述目标支付事务进行支付处理,包括:The transaction processing method according to claim 20, said performing payment processing on the target payment transaction according to the target transaction payment information and target payment link of the at least one payment stage recorded in the target payment transaction, comprising :
    读取所述目标交易支付信息中包含的所述至少一个支付阶段对应的支付数值;Reading the payment value corresponding to the at least one payment phase contained in the target transaction payment information;
    按照所述目标支付链路,对所述支付方的数据账户空间的数据额度扣减所述支付数值对应的扣减额度,以及,从所述支付方的数据账户空间对应的实际数据账户转出所述支付数值对应的支付资源至所述分期支付事务的被支付方的数据账户;According to the target payment link, deduct the deduction amount corresponding to the payment value from the data amount of the payer’s data account space, and transfer from the actual data account corresponding to the payer’s data account space The payment resource corresponding to the payment value to the data account of the payee of the installment payment transaction;
    其中,所述目标支付链路的支付节点至少对应于所述支付方的数据账户空间和所述被支付方的数据账户;所述数据账户空间的数据结算周期的时长与所述分期支付事务的支付阶段的支付处理周期的时长相等,在前一数据结算周期对所述数据账户空间的数据额度扣减所述扣减额度,经后一数据结算周期的数据结算处理后,所述扣减额度对所述数据额度的扣减被更新。Wherein, the payment node of the target payment link corresponds to at least the data account space of the paying party and the data account of the payee; the duration of the data settlement cycle of the data account space is related to that of the installment payment transaction. The duration of the payment processing cycle in the payment phase is the same. In the previous data settlement cycle, the data quota of the data account space is deducted from the deduction quota. After the data settlement processing in the subsequent data settlement cycle, the deduction quota The deduction for the data quota is updated.
  22. 根据权利要求20所述的交易处理方法,所述根据所述目标支付事务中记录的所述至少一个支付阶段的目标交易支付信息和目标支付链路,对所述目标支付事务进行支付处理,包括:The transaction processing method according to claim 20, said performing payment processing on the target payment transaction according to the target transaction payment information and target payment link of the at least one payment stage recorded in the target payment transaction, comprising :
    读取所述目标交易交付信息中包含的所述至少一个支付阶段对应的支付数值;Reading the payment value corresponding to the at least one payment phase contained in the target transaction delivery information;
    按照所述目标支付链路,从所述支付方的支付账户转出所述支付数值对应的支付资源至所述被支付方的支付账户;According to the target payment link, transfer the payment resource corresponding to the payment value from the payment account of the payer to the payment account of the payee;
    其中,所述目标支付链路的起始支付节点对应于所述支付方的支付账户,终止支付节点对应于所述被支付方的支付账户。Wherein, the initial payment node of the target payment link corresponds to the payment account of the payer, and the termination payment node corresponds to the payment account of the payee.
  23. 根据权利要求21或22所述的交易处理方法,所述读取所述目标交易交付信息中包含的所述至少一个支付阶段对应的支付数值子步骤执行之后,还包括:The transaction processing method according to claim 21 or 22, after the sub-step of reading the payment value corresponding to the at least one payment stage contained in the target transaction delivery information is executed, further comprising:
    根据所述支付数值以及所述至少一个支付阶段对应的第一支付费率,计算所述至少一个支付阶段对应的第一支付附加费;Calculating the first payment surcharge corresponding to the at least one payment stage according to the payment value and the first payment rate corresponding to the at least one payment stage;
    对所述被支付方进行所述第一支付附加费用的结算处理;Perform the settlement processing of the first payment additional fee on the paid party;
    其中,所述第一支付费率,包括对所述分期支付事务在所述至少一个支付阶段进行支付处理产生的支付费率,依据所述第一支付费率计算获得的所述第一支付附加费由所述被支付方承担。Wherein, the first payment rate includes the payment rate generated by the payment processing of the installment transaction in the at least one payment stage, and the first payment additional rate calculated according to the first payment rate The fee shall be borne by the paid party.
  24. 根据权利要求18或19所述的交易处理方法,所述基于针对所述分期支付事务的至少一个支付阶段提交的支付方式,对所述分期支付事务进行解析,获得与所述支付方式对应的目标支付事务,包括:The transaction processing method according to claim 18 or 19, wherein said installment payment transaction is analyzed based on a payment method submitted for at least one payment phase of said installment payment transaction to obtain a target corresponding to said payment method Payment matters, including:
    接收所述分期支付事务的被支付方针对所述至少一个支付阶段提交的预支付请求;Receiving the prepayment request submitted by the paid party for the at least one payment phase of the installment payment transaction;
    基于所述预支付请求中携带的预支付方式,对所述至少一个支付阶段对应的交易支付信息和支付链路进行组装,获得与所述预支付方式对应的目标支付事务。Based on the prepayment method carried in the prepayment request, the transaction payment information and the payment link corresponding to the at least one payment stage are assembled to obtain the target payment transaction corresponding to the prepayment method.
  25. 根据权利要求24所述的交易处理方法,所述基于所述预支付请求中携带的预支付方式,对所述至少一个支付阶段对应的交易支付信息和支付链路进行组装,获得与所述预支付方式对应的目标支付事务,包括:The transaction processing method according to claim 24, wherein the transaction payment information and payment link corresponding to the at least one payment stage are assembled based on the prepayment method carried in the prepayment request to obtain the prepayment The target payment transaction corresponding to the payment method, including:
    根据所述预支付请求对应的所述至少一个支付阶段的目标交易支付信息,计算所述预支付请求对应的总支付数值;Calculating the total payment value corresponding to the pre-payment request according to the target transaction payment information of the at least one payment stage corresponding to the pre-payment request;
    基于所述分期支付事务的被支付方和交易代理机构二者支付账户的账户路径确定目标支付链路;Determine the target payment link based on the account path of the payment account of both the payee and the transaction agency of the installment payment transaction;
    基于所述总支付数值和所述目标支付链路组建中间支付事务,作为所述目标支付事务;Forming an intermediate payment transaction based on the total payment value and the target payment link, as the target payment transaction;
    其中,所述目标支付链路的起始支付节点对应于所述交易代理机构的支付账户,终止支付节点对应于所述交易代理机构的支付账户。Wherein, the initial payment node of the target payment link corresponds to the payment account of the transaction agency, and the termination payment node corresponds to the payment account of the transaction agency.
  26. 根据权利要求25所述的交易处理方法,所述根据所述目标支付事务中记录的所述至少一个支付阶段的目标交易支付信息和目标支付链路,对所述目标支付事务进行支付处理,包括:The transaction processing method according to claim 25, said performing payment processing on the target payment transaction according to the target transaction payment information and target payment link of the at least one payment stage recorded in the target payment transaction, comprising :
    从所述交易代理机构的支付账户申请所述总支付数值对应的支付资源至所述被支 付方的支付账户;Apply for the payment resource corresponding to the total payment value from the payment account of the transaction agency to the payment account of the paid party;
    根据所述支付方和所述交易代理机构二者支付账户的账户路径,确定从所述支付方至所述交易代理机构的分期支付链路;Determining the installment payment link from the paying party to the transaction agency according to the account paths of the payment accounts of both the paying party and the transaction agency;
    根据所述分期支付链路和所述分期支付事务中待执行的执行段的数据执行信息,组建所述分期支付事务中待支付的支付阶段的第一分期支付事务;According to the installment payment link and the data execution information of the execution stage to be executed in the installment payment transaction, construct the first installment payment transaction in the payment stage to be paid in the installment payment transaction;
    其中,所述分期支付链路的起始支付节点对应于所述支付方的支付账户,终止支付节点对应于所述交易代理机构的支付账户。Wherein, the initial payment node of the installment payment link corresponds to the payment account of the payer, and the termination payment node corresponds to the payment account of the transaction agency.
  27. 根据权利要求26所述的交易处理方法,所述根据所述目标支付事务中记录的所述至少一个支付阶段的目标交易支付信息和目标支付链路,对所述目标支付事务进行支付处理步骤执行之后,包括:The transaction processing method according to claim 26, wherein the target payment transaction is executed according to the target transaction payment information and target payment link of the at least one payment phase recorded in the target payment transaction. After that, include:
    在所述第一分期支付事务的支付阶段的支付条件被触发的情况下,读取所述第一分期支付事务中被触发的支付阶段对应的第一分期支付数值;In the case that the payment condition of the payment phase of the first installment transaction is triggered, read the first installment value corresponding to the triggered payment phase in the first installment transaction;
    按照所述分期支付链路,对所述支付方的数据账户空间的数据额度扣减所述第一分期支付数值对应的扣减额度,以及,从所述支付方的数据账户空间对应的实际数据账户转出所述第一分期支付数值对应的支付资源至所述交易代理机构的支付账户;According to the installment payment link, the deduction amount corresponding to the first installment payment value is deducted from the data amount of the data account space of the payer, and the actual data corresponding to the data account space of the payer The account transfers the payment resource corresponding to the first instalment value to the payment account of the transaction agency;
    其中,所述数据账户空间的数据结算周期的时长与所述第一分期支付事务的执行阶段的支付处理周期的时长相等,在前一数据结算周期对所述数据账户空间的数据额度扣减所述扣减额度,经后一数据结算周期的数据结算处理后,所述扣减额度对所述数据额度的扣减被更新。Wherein, the duration of the data settlement cycle of the data account space is equal to the duration of the payment processing cycle of the execution phase of the first installment payment transaction, and the data quota of the data account space is deducted by all in the previous data settlement cycle. The deduction quota, after the data settlement processing of the subsequent data settlement cycle, the deduction of the deduction quota to the data quota is updated.
  28. 根据权利要求27所述的交易处理方法,所述从所述交易代理机构的支付账户申请所述总支付数值对应的支付资源至所述被支付方的支付账户子步骤执行之后,还包括:The transaction processing method according to claim 27, after the sub-step of applying for the payment resource corresponding to the total payment value from the payment account of the transaction agency to the payment account of the payee, further comprising:
    根据所述总支付数值以及对应的第二支付费率,计算第二支付附加费;Calculate the second payment surcharge according to the total payment value and the corresponding second payment rate;
    对所述被支付方进行所述第二支付附加费的结算处理;Perform settlement processing of the second payment surcharge on the paid party;
    其中,所述第二支付费率,包括对所述交易代理机构进行交易处理产生的交易费率,依据所述第二支付费率计算获得的所述第二支付附加费由所述被支付方承担。Wherein, the second payment rate includes the transaction rate generated by the transaction processing of the transaction agency, and the second payment surcharge calculated according to the second payment rate is paid by the paid party bear.
  29. 根据权利要求28所述的交易处理方法,还包括:The transaction processing method according to claim 28, further comprising:
    根据所述第一分期支付数值以及所述支付阶段对应的第一支付费率,计算所述支付阶段对应的第一支付附加费;Calculating the first payment surcharge corresponding to the payment stage according to the first payment instalment value and the first payment rate corresponding to the payment stage;
    对所述被支付方进行所述第一支付附加费的结算处理;Perform settlement processing of the first payment surcharge on the paid party;
    其中,所述第一支付费率,包括对所述第一分期支付事务在所述支付阶段进行支付 处理产生的支付费率,依据所述第一支付费率计算获得的所述第一支付附加费由所述被支付承担。Wherein, the first payment rate includes the payment rate generated by the payment processing of the first installment payment transaction in the payment stage, and the first payment additional rate calculated according to the first payment rate The fee shall be borne by the said payment.
  30. 根据权利要求18所述的交易处理方法,所述根据所述目标支付事务中记录的所述至少一个支付阶段的目标交易支付信息和目标支付链路,对所述目标支付事务进行支付处理步骤执行之后,还包括:The transaction processing method according to claim 18, wherein the target payment transaction is executed according to the target payment information and target payment link of the at least one payment phase recorded in the target payment transaction. After that, it also includes:
    接收所述分期支付事务的被支付方针对剩余支付阶段提交的第二预支付请求;Receiving the second prepayment request submitted by the paid party for the remaining payment phase of the installment payment transaction;
    基于所述第二预支付请求中携带的第二预支付方式,对所述剩余支付段对应的交易支付信息和支付链路进行组装,获得与所述第二预支付方式对应的第二中间支付事务;所述第二中间支付事务中记录有所述第二预支付请求对应的第二总支付数值;Based on the second prepayment method carried in the second prepayment request, the transaction payment information and payment link corresponding to the remaining payment segment are assembled to obtain the second intermediate payment corresponding to the second prepayment method Transaction; the second intermediate payment transaction records the second total payment value corresponding to the second prepayment request;
    通过从所述分期支付事务的交易代理机构的支付账户申请所述第二总支付数值对应的支付资源至所述被支付方的支付账户的方式,对所述第二中间支付事务进行支付处理;Perform payment processing for the second intermediate payment transaction by applying for the payment resource corresponding to the second total payment value from the payment account of the transaction agency of the installment payment transaction to the payment account of the payee;
    根据所述分期支付事务的支付方和所述交易代理机构二者数据账户的账户路径,确定从所述支付方至所述交易代理机构的第二分期支付链路;Determine the second installment payment link from the payer to the transaction agency according to the account paths of the data accounts of both the payer of the installment payment transaction and the transaction agency;
    根据所述第二分期支付链路和所述剩余支付阶段的交易支付信息,组建所述剩余支付阶段对应的第二分期支付事务;Forming a second installment payment transaction corresponding to the remaining payment stage according to the second installment payment link and the transaction payment information of the remaining payment stage;
    其中,所述第二中间支付事务中记录有第二中间支付链路,所述第二中间支付链路的起始支付节点对应于所述交易代理机构的支付账户,终止支付节点对应于所述被支付方的支付账户。Wherein, a second intermediate payment link is recorded in the second intermediate payment transaction, the initial payment node of the second intermediate payment link corresponds to the payment account of the transaction agency, and the termination payment node corresponds to the The payment account of the payee.
  31. 根据权利要求30所述的交易处理方法,所述根据所述第二分期支付链路和所述剩余支付阶段的交易支付信息,组建所述剩余支付阶段对应的第二分期支付事务步骤执行之后,还包括:The transaction processing method according to claim 30, after the step of constructing a second installment payment transaction corresponding to the remaining payment stage according to the second installment payment link and the transaction payment information of the remaining payment stage is executed, Also includes:
    在所述第二分期支付事务的剩余执行阶段中至少一者的支付条件被触发的情况下,读取所述第二分期支付事务中被触发的剩余支付阶段对应的第二分期支付数值;In the case where the payment condition of at least one of the remaining execution stages of the second installment transaction is triggered, read the second installment value corresponding to the triggered remaining payment stage in the second installment transaction;
    按照所述第二分期支付链路,对所述支付方的数据账户空间的数据额度扣减所述第二分期支付数值对应的扣减额度,以及,从所述支付方的数据账户空间对应的实际数据账户转出所述第二分期支付数值对应的支付资源至所述交易代理机构的支付账户;According to the second installment payment link, the deduction amount corresponding to the second installment payment value is deducted from the data amount of the payer’s data account space, and from the payer’s data account space corresponding The actual data account transfers the payment resource corresponding to the second installment value to the payment account of the transaction agency;
    其中,所述数据账户空间的数据结算周期的时长与所述第二分期支付事务的剩余支付阶段的支付处理周期的时长相等,在前一数据结算周期对所述数据账户空间的数据额度扣减所述扣减额度,经后一数据结算周期的数据结算处理后,所述扣减额度对所述数据额度的扣减被更新。Wherein, the duration of the data settlement cycle of the data account space is equal to the duration of the payment processing cycle of the remaining payment phase of the second installment payment transaction, and the data quota of the data account space is deducted in the previous data settlement cycle The deduction amount is updated after the data settlement processing of the subsequent data settlement cycle, the deduction amount of the deduction amount to the data amount.
  32. 根据权利要求18所述的交易处理方法,所述获取待处理交易的交易元数据步骤执行之后,且所述根据所述交易元数据创建所述待处理交易的分期支付事务步骤执行之前,包括:The transaction processing method according to claim 18, after the step of obtaining transaction metadata of the transaction to be processed is executed, and before the step of creating the installment payment transaction of the transaction to be processed according to the transaction metadata is executed, the method comprises:
    判断所述交易元数据中包含的待交易数值是否小于或者等于所述分期支付事务的支付方的数据账户空间的可用数据额度;Judging whether the value to be traded contained in the transaction metadata is less than or equal to the available data quota of the data account space of the payer of the installment payment transaction;
    若是,执行所述根据所述交易元数据创建所述待处理交易的分期支付事务步骤;If yes, execute the step of creating the installment payment transaction of the transaction to be processed according to the transaction metadata;
    若否,向所述支付方推送处理失败的提醒。If not, push a notification of processing failure to the payer.
  33. 一种交易处理装置,包括:A transaction processing device, including:
    数据获取模块,被配置为获取待处理交易的交易元数据;The data acquisition module is configured to acquire transaction metadata of the transaction to be processed;
    事务创建模块,被配置为根据所述交易元数据创建所述待处理交易的分期支付事务;所述分期支付事务中记录有各个支付阶段的交易支付信息和支付链路;A transaction creation module configured to create an installment payment transaction of the pending transaction according to the transaction metadata; the installment payment transaction records transaction payment information and payment links of each payment stage;
    事务解析模块,被配置为基于针对所述分期支付事务的至少一个支付阶段提交的支付方式,对所述分期支付事务进行解析,获得与所述支付方式对应的目标支付事务;A transaction analysis module configured to analyze the installment payment transaction based on the payment method submitted for at least one payment phase of the installment payment transaction to obtain a target payment transaction corresponding to the payment method;
    事务处理模块,被配置为根据所述目标支付事务中记录的所述至少一个支付阶段的目标交易支付信息和目标支付链路,对所述目标支付事务进行支付处理。The transaction processing module is configured to perform payment processing on the target payment transaction according to the target transaction payment information and target payment link of the at least one payment stage recorded in the target payment transaction.
  34. 一种数据处理方法,应用于服务端,所述方法包括:A data processing method applied to a server, the method including:
    接收第一客户端提交的待处理业务的业务处理请求;所述业务处理请求中携带业务标识和分段数目;Receiving a service processing request for a service to be processed submitted by the first client; the service processing request carries a service identifier and the number of segments;
    根据所述分段数目和所述业务标识对应的元数据,创建所述业务处理请求对应的分段数据事务;所述分段数据事务中记录有各个执行段的数据执行信息和数据链路;Create a segment data transaction corresponding to the service processing request according to the number of segments and the metadata corresponding to the service identifier; the segment data transaction records data execution information and data links of each execution segment;
    向所述第一客户端下发所述分段数据事务;Delivering the segmented data transaction to the first client;
    根据所述第一客户端针对所述分段数据事务提交的分段执行方式,对所述分段数据事务进行解析,获得与所述分段执行方式对应的目标数据事务;Parse the segmented data transaction according to the segmented execution mode submitted by the first client for the segmented data transaction to obtain a target data transaction corresponding to the segmented execution mode;
    根据所述目标数据事务中记录的所述至少一个执行段的目标数据执行信息和目标数据链路,对所述目标数据事务进行执行处理;Perform execution processing on the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction;
    向所述第一客户端推送所述目标数据事务的执行处理结果。Push the execution processing result of the target data transaction to the first client.
  35. 根据权利要求34所述的数据处理方法,所述根据所述第一客户端针对所述分段数据事务提交的分段执行方式,对所述分段数据事务进行解析,获得与所述分段执行方式对应的目标数据事务,包括:The data processing method according to claim 34, wherein the segmented data transaction is parsed according to the segmented execution mode submitted by the first client for the segmented data transaction, and the data is related to the segmented data transaction. The target data transaction corresponding to the execution mode includes:
    接收所述第一客户端针对所述至少一个执行段提交的分段执行方式;Receiving the segmented execution mode submitted by the first client for the at least one execution segment;
    根据所述分段执行方式,对所述分段数据事务进行分解,获得与所述分段执行方式 对应的目标数据事务;Decompose the segmented data transaction according to the segmented execution mode to obtain a target data transaction corresponding to the segmented execution mode;
    其中,所述与所述分段执行方式对应的目标数据事务中,记录有所述至少一个执行段的目标数据执行信息和目标数据链路,所述目标数据执行信息基于所述至少一个执行段的数据执行信息确定,所述目标数据链路基于所述至少一个执行段的数据链路确定。Wherein, in the target data transaction corresponding to the segmented execution mode, target data execution information and target data link of the at least one execution segment are recorded, and the target data execution information is based on the at least one execution segment The data execution information is determined, and the target data link is determined based on the data link of the at least one execution segment.
  36. 根据权利要求35所述的数据处理方法,所述根据所述目标数据事务中记录的所述至少一个执行段的目标数据执行信息和目标数据链路,对所述目标数据事务进行执行处理,包括:The data processing method according to claim 35, wherein the execution processing of the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction includes :
    读取所述目标数据执行信息中包含的所述至少一个执行段对应的数据流动数值;Reading the data flow value corresponding to the at least one execution segment included in the target data execution information;
    按照所述目标数据链路,对所述第一客户端对应的数据流出对象的数据账户空间的数据额度扣减所述数据流动数值对应的扣减额度,以及,从所述数据流出对象的数据账户空间对应的实际数据账户转出所述数据流动数值对应的数据资源至第二客户端对应的数据流入对象的数据账户;According to the target data link, the data quota of the data account space of the data outflow object corresponding to the first client is deducted by the deduction quota corresponding to the data flow value, and the data of the data outflow object is deducted The actual data account corresponding to the account space transfers the data resource corresponding to the data flow value to the data account of the data inflow object corresponding to the second client terminal;
    其中,所述目标数据链路的数据节点至少对应于所述数据流出对象的数据账户空间和所述数据流入对象的数据账户;所述数据账户空间的数据结算周期的时长与所述分段数据事务的执行段的执行处理周期的时长相等,在前一数据结算周期对所述数据账户空间的数据额度扣减所述扣减额度,经后一数据结算周期的数据结算处理后,所述扣减额度对所述数据额度的扣减被更新。Wherein, the data node of the target data link at least corresponds to the data account space of the data outflow object and the data account of the data inflow object; the duration of the data settlement period of the data account space and the segment data The duration of the execution processing cycle of the execution section of the transaction is equal, the data quota of the data account space is deducted from the deduction quota in the previous data settlement cycle, and after the data settlement processing of the subsequent data settlement cycle, the deduction The deduction of the data quota is updated.
  37. 根据权利要求36所述的数据处理方法,所述读取所述目标数据执行信息中包含的所述至少一个执行段对应的数据流动数值子步骤执行之后,还包括:The data processing method according to claim 36, after the sub-step of reading the data flow value corresponding to the at least one execution segment contained in the target data execution information is executed, further comprising:
    根据所述数据流动数值以及所述至少一个执行段对应的第一执行附加数据占比,计算所述至少一个执行段对应的第一执行附加数据值;Calculate the first execution additional data value corresponding to the at least one execution stage according to the data flow value and the proportion of the first execution additional data corresponding to the at least one execution stage;
    对所述数据流入对象进行所述第一执行附加数据值的数据结算处理;Perform the data settlement processing of the first execution additional data value on the data inflow object;
    其中,所述第一执行附加数据占比,包括对所述分段数据事务在所述至少一个执行段进行执行处理产生的处理费率,依据所述第一执行附加数据占比计算获得的所述第一执行附加数据值由所述数据流入对象承担。Wherein, the proportion of the first execution additional data includes the processing fee rate generated by the execution processing of the segmented data transaction in the at least one execution segment, and the all calculated based on the proportion of the first execution additional data. The first execution additional data value is borne by the data inflow object.
  38. 根据权利要求34所述的数据处理方法,所述根据所述目标数据事务中记录的所述至少一个执行段的目标数据执行信息和目标数据链路,对所述目标数据事务进行执行处理步骤执行之后,还包括:The data processing method according to claim 34, wherein the target data transaction is executed according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction. After that, it also includes:
    接收第二客户端对应的数据流入对象针对剩余执行段提交的第二预执行请求;Receiving a second pre-execution request submitted by the data inflow object corresponding to the second client for the remaining execution segments;
    基于所述第二预执行请求中携带的第二预执行方式,对所述剩余执行段对应的数据执行信息和数据链路进行组装,获得与所述第二预执行方式对应的第二中间数据事务; 所述第二中间数据事务中记录有所述第二预执行请求对应的第二总数据流动数值;Based on the second pre-execution mode carried in the second pre-execution request, the data execution information and data link corresponding to the remaining execution segments are assembled to obtain second intermediate data corresponding to the second pre-execution mode Transaction; the second intermediate data transaction records a second total data flow value corresponding to the second pre-execution request;
    通过从所述分段数据事务的中间数据对象的数据账户申请所述第二总数据流动数值对应的数据资源至所述数据流入对象的数据账户的方式,对所述第二中间数据事务进行执行处理;The second intermediate data transaction is executed by applying for the data resource corresponding to the second total data flow value from the data account of the intermediate data object of the segmented data transaction to the data account of the data inflow object deal with;
    根据所述第一客户端对应的数据流出对象和所述中间数据对象二者数据账户的账户路径,确定从所述数据流出对象至所述中间数据对象的第二分段数据链路;Determine the second segmented data link from the data outflow object to the intermediate data object according to the account paths of the data accounts of the data outflow object corresponding to the first client and the intermediate data object;
    根据所述第二分段数据链路和所述剩余执行段的数据执行信息,组建所述剩余执行段对应的第二分段数据事务;Forming a second segment data transaction corresponding to the remaining execution segment according to the second segment data link and the data execution information of the remaining execution segment;
    其中,所述第二中间数据事务中记录有第二中间数据链路,所述第二中间数据链路的起始数据节点对应于所述中间数据对象的数据账户,终止数据节点对应于所述数据流入对象的数据账户。Wherein, a second intermediate data link is recorded in the second intermediate data transaction, the starting data node of the second intermediate data link corresponds to the data account of the intermediate data object, and the terminating data node corresponds to the Data flows into the data account of the subject.
  39. 根据权利要求38所述的数据处理方法,所述根据所述第二分段数据链路和所述剩余执行段的数据执行信息,组建所述剩余执行段对应的第二分段数据事务步骤执行之后,还包括:The data processing method according to claim 38, wherein the step of constructing a second segment data transaction corresponding to the remaining execution segment according to the second segment data link and the data execution information of the remaining execution segment is executed After that, it also includes:
    在所述第二分段数据事务的剩余执行段中至少一者的执行条件被触发的情况下,读取所述第二分段数据事务中被触发的剩余执行段对应的第二分段数据流动数值;When the execution condition of at least one of the remaining execution segments of the second segmented data transaction is triggered, read the second segment data corresponding to the triggered remaining execution segments in the second segmented data transaction Flow value
    按照所述第二分段数据链路,对所述数据流出对象的数据账户空间的数据额度扣减所述第二分段数据流动数值对应的扣减额度,以及,从所述数据流出对象的数据账户空间对应的实际数据账户转出所述第二分段数据流动数值对应的数据资源至所述中间数据对象的数据账户;According to the second segmented data link, the data limit of the data account space of the data outflow object is deducted by the deduction limit corresponding to the second segmented data flow value, and the data outflow object from the data The actual data account corresponding to the data account space transfers the data resource corresponding to the second segmented data flow value to the data account of the intermediate data object;
    其中,所述数据账户空间的数据结算周期的时长与所述第二分段数据事务的剩余执行段的执行处理周期的时长相等,在前一数据结算周期对所述数据账户空间的数据额度扣减所述扣减额度,经后一数据结算周期的数据结算处理后,所述扣减额度对所述数据额度的扣减被更新。Wherein, the duration of the data settlement cycle of the data account space is equal to the duration of the execution processing cycle of the remaining execution stage of the second segmented data transaction, and the data quota of the data account space is deducted in the previous data settlement cycle. The deduction quota is subtracted, and after the data settlement processing of the subsequent data settlement cycle, the deduction of the deduction quota to the data quota is updated.
  40. 根据权利要求34所述的数据处理方法,所述根据所述分段数目和所述业务标识对应的元数据,创建所述业务处理请求对应的分段数据事务,包括:The data processing method according to claim 34, wherein the creation of the segment data transaction corresponding to the service processing request according to the number of segments and the metadata corresponding to the service identifier comprises:
    判断所述元数据中包含的待处理数据处理值是否小于或者等于所述第一客户端对应的数据流出对象的数据账户空间的可用数据额度;Judging whether the processing value of the to-be-processed data contained in the metadata is less than or equal to the available data quota of the data account space of the data outflow object corresponding to the first client;
    若是,根据所述元数据创建所述待处理业务的分段数据事务;If yes, create a segmented data transaction of the service to be processed according to the metadata;
    若否,向所述第一客户端推送处理失败的提醒。If not, push a notification of processing failure to the first client.
  41. 根据权利要求34所述的数据处理方法,所述待处理业务包括:交易业务,数 据流处理业务,支付业务;The data processing method according to claim 34, wherein the services to be processed include: transaction services, data stream processing services, and payment services;
    相应的,所述待处理业务的分段数据事务包括:所述交易业务采用分阶段交易方式进行执行的分阶段交易事务,所述数据流处理业务采用分阶段处理方式进行执行的分阶段数据流处理事务,所述支付业务采用分阶段支付方式进行执行的分阶段支付事务;Correspondingly, the segmented data transaction of the service to be processed includes: a phased transaction transaction executed by the transaction service in a phased transaction mode, and a phased data flow executed by the data stream processing service in a phased processing mode To process transactions, the payment business adopts a staged payment method to execute a staged payment transaction;
    所述分段数据事务的执行段包括:所述分阶段交易事务在分阶段交易过程中的各个交易阶段,所述分阶段数据流处理事务在分阶段处理过程中的各个数据处理阶段,所述分阶段支付事务在分阶段支付过程中的各个支付阶段。The execution stage of the segmented data transaction includes: each transaction stage in the staged transaction process of the staged transaction transaction, each data processing stage of the staged data flow processing transaction in the staged processing process, the A phased payment transaction is at each payment stage in the phased payment process.
  42. 一种数据处理装置,包括:A data processing device includes:
    请求接收模块,被配置为接收第一客户端提交的待处理业务的业务处理请求;所述业务处理请求中携带业务标识和分段数目;The request receiving module is configured to receive the service processing request of the service to be processed submitted by the first client; the service processing request carries the service identifier and the number of segments;
    分段数据事务创建模块,被配置为根据所述分段数目和所述业务标识对应的元数据,创建所述业务处理请求对应的分段数据事务;所述分段数据事务中记录有各个执行段的数据执行信息和数据链路;The segmented data transaction creation module is configured to create segmented data transactions corresponding to the service processing request according to the number of segments and the metadata corresponding to the service identifier; each execution is recorded in the segmented data transaction Segment data execution information and data link;
    事务发送模块,被配置为向所述第一客户端下发所述分段数据事务;A transaction sending module configured to deliver the segmented data transaction to the first client;
    分段数据事务解析模块,被配置为根据所述第一客户端针对所述分段数据事务提交的分段执行方式,对所述分段数据事务进行解析,获得与所述分段执行方式对应的目标数据事务;The segmented data transaction analysis module is configured to analyze the segmented data transaction according to the segmented execution mode submitted by the first client for the segmented data transaction, and obtain a corresponding to the segmented execution mode The target data transaction;
    事务处理模块,被配置为根据所述目标数据事务中记录的所述至少一个执行段的目标数据执行信息和目标数据链路,对所述目标数据事务进行执行处理;A transaction processing module configured to perform execution processing on the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction;
    结果推送模块,被配置为向所述第一客户端推送所述目标数据事务的执行处理结果。The result push module is configured to push the execution processing result of the target data transaction to the first client.
  43. 一种数据处理方法,应用于第一客户端,所述方法包括:A data processing method applied to a first client, the method including:
    接收针对待处理业务提交的业务处理指令;Receive business processing instructions submitted for the business to be processed;
    根据所述业务处理指令对应的分段数目,向服务端提交携带所述分段数目和所述待处理业务的业务标识的业务处理请求;Submit a service processing request carrying the number of segments and the service identifier of the service to be processed to the server according to the number of segments corresponding to the service processing instruction;
    接收所述服务端针对所述业务处理请求下发的分段数据事务并展示;Receiving and displaying the segmented data transaction issued by the server in response to the service processing request;
    根据针对所述分段数据事务的分段执行输入,向所述服务端提交分段执行方式;Submit a segmented execution mode to the server according to the segmented execution input for the segmented data transaction;
    接收所述服务端返回的所述分段执行方式对应的目标数据事务的执行处理结果。Receiving the execution processing result of the target data transaction corresponding to the segmented execution mode returned by the server.
  44. 一种数据处理装置,包括:A data processing device includes:
    指令接收模块,被配置为接收针对待处理业务提交的业务处理指令;The instruction receiving module is configured to receive business processing instructions submitted for the business to be processed;
    请求提交模块,被配置为根据所述业务处理指令对应的分段数目,向服务端提交携带所述分段数目和所述待处理业务的业务标识的业务处理请求;The request submission module is configured to submit a service processing request carrying the number of segments and the service identifier of the service to be processed to the server according to the number of segments corresponding to the service processing instruction;
    事务接收模块,被配置为接收所述服务端针对所述业务处理请求下发的分段数据事务并展示;A transaction receiving module configured to receive and display the segmented data transaction issued by the server in response to the service processing request;
    分段执行方式提交模块,被配置为根据针对所述分段数据事务的分段执行输入,向所述服务端提交分段执行方式;The segmented execution mode submission module is configured to submit the segmented execution mode to the server according to the segmented execution input for the segmented data transaction;
    处理结果接收模块,被配置为接收所述服务端返回的所述分段执行方式对应的目标数据事务的执行处理结果。The processing result receiving module is configured to receive the execution processing result of the target data transaction corresponding to the segmented execution mode returned by the server.
  45. 一种数据处理方法,应用于服务端,包括:A data processing method applied to the server, including:
    接收第二客户端提交的携带业务标识的业务处理请求;Receiving a service processing request carrying a service identifier submitted by the second client;
    根据所述业务标识对应的元数据,创建所述业务处理请求对应的分段数据事务;所述分段数据事务中记录有各个执行段的数据执行信息和数据链路;Create a segmented data transaction corresponding to the service processing request according to the metadata corresponding to the service identifier; the segmented data transaction records data execution information and data links of each execution segment;
    向第一客户端和所述第二客户端下发所述分段数据事务;Deliver the segmented data transaction to the first client and the second client;
    根据所述第二客户端针对所述分段数据事务提交的预执行方式,对所述分段数据事务进行解析,获得与所述预执行方式对应的目标数据事务;Parse the segmented data transaction according to the pre-execution mode submitted by the second client for the segmented data transaction to obtain a target data transaction corresponding to the pre-execution mode;
    根据所述目标数据事务中记录的所述至少一个执行段的目标数据执行信息和目标数据链路,对所述目标数据事务进行执行处理;Perform execution processing on the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction;
    向所述第二客户端推送所述目标数据事务的执行处理结果。Push the execution processing result of the target data transaction to the second client.
  46. 根据权利要求45所述的数据处理方法,所述根据所述第二客户端针对所述分段数据事务提交的预执行方式,对所述分段数据事务进行解析,获得与所述预执行方式对应的目标数据事务,包括:The data processing method according to claim 45, wherein the segmented data transaction is parsed according to the pre-execution mode submitted by the second client for the segmented data transaction to obtain the pre-execution mode The corresponding target data transaction includes:
    接收所述第二客户端对应的数据流入对象针对所述至少一个执行段提交的预执行方式;Receiving a pre-execution mode submitted by the data inflow object corresponding to the second client for the at least one execution segment;
    根据所述预执行方式,对所述至少一个执行段对应的数据执行信息和数据链路进行组装,获得与所述预执行方式对应的目标数据事务。According to the pre-execution mode, the data execution information and the data link corresponding to the at least one execution segment are assembled to obtain the target data transaction corresponding to the pre-execution mode.
  47. 根据权利要求46所述的数据处理方法,所述根据所述预执行方式,对所述至少一个执行段对应的数据执行信息和数据链路进行组装,获得与所述预执行方式对应的目标数据事务,包括:The data processing method according to claim 46, wherein the data execution information and data link corresponding to the at least one execution segment are assembled according to the pre-execution mode to obtain target data corresponding to the pre-execution mode Affairs, including:
    根据所述预执行方式对应的所述至少一个执行段的目标数据执行信息,计算所述预执行方式对应的总数据流动数值;Calculate the total data flow value corresponding to the pre-execution mode according to the target data execution information of the at least one execution stage corresponding to the pre-execution mode;
    基于所述第二客户端对应的数据流入对象和中间数据对象二者数据账户的账户路径确定目标数据链路;Determining the target data link based on the account paths of the data accounts of both the data inflow object and the intermediate data object corresponding to the second client;
    基于所述总数据流动数值和所述目标数据链路组建中间数据事务,作为所述目标数 据事务;Forming an intermediate data transaction based on the total data flow value and the target data link as the target data transaction;
    其中,所述目标数据链路的起始数据节点对应于所述中间数据对象的数据账户,终止数据节点对应于所述数据流入对象的数据账户。Wherein, the starting data node of the target data link corresponds to the data account of the intermediate data object, and the ending data node corresponds to the data account of the data inflow object.
  48. 根据权利要求47所述的数据处理方法,所述根据所述目标数据事务中记录的所述至少一个执行段的目标数据执行信息和目标数据链路,对所述目标数据事务进行执行处理,包括:The data processing method according to claim 47, wherein the execution processing of the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction includes :
    从所述分段数据事务的中间数据对象的数据账户申请所述总数据流动数值对应的数据资源至所述数据流入对象的数据账户;Apply for the data resource corresponding to the total data flow value from the data account of the intermediate data object of the segmented data transaction to the data account of the data flow object;
    根据所述第一客户端对应的数据流出对象和所述中间数据对象二者数据账户的账户路径,确定从所述数据流出对象至所述中间数据对象的分段数据链路;Determine a segmented data link from the data outflow object to the intermediate data object according to the account paths of the data accounts of both the data outflow object and the intermediate data object corresponding to the first client;
    根据所述分段数据链路和所述分段数据事务中待执行的执行段的数据执行信息,组建所述分段数据事务中待执行的执行段的第一分段数据事务;Forming the first segment data transaction of the execution segment to be executed in the segment data transaction according to the segment data link and the data execution information of the execution segment to be executed in the segment data transaction;
    其中,所述分段数据链路的起始数据节点对应于所述数据流出对象的数据账户,终止数据节点对应于所述中间数据对象的数据账户。Wherein, the starting data node of the segmented data link corresponds to the data account of the data outflow object, and the terminating data node corresponds to the data account of the intermediate data object.
  49. 根据权利要求48所述的数据处理方法,所述根据所述目标数据事务中记录的所述至少一个执行段的目标数据执行信息和目标数据链路,对所述目标数据事务进行执行处理步骤执行之后,包括:The data processing method according to claim 48, wherein the target data transaction is executed according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction. After that, include:
    在所述第一分段数据事务的执行段的执行条件被触发的情况下,读取所述第一分段数据事务中被触发的执行段对应的第一分段数据流动数值;In the case that the execution condition of the execution segment of the first segment data transaction is triggered, read the first segment data flow value corresponding to the triggered execution segment in the first segment data transaction;
    按照所述分段数据链路,对所述数据流出对象的数据账户空间的数据额度扣减所述第一分段数据流动数值对应的扣减额度,以及,从所述数据流出对象的数据账户空间对应的实际数据账户转出所述第一分段数据流动数值对应的数据资源至所述中间数据对象的数据账户;According to the segmented data link, the deduction amount corresponding to the first segmented data flow value is deducted from the data quota of the data account space of the data outflow object, and from the data account of the data outflow object The actual data account corresponding to the space transfers the data resource corresponding to the first segment data flow value to the data account of the intermediate data object;
    其中,所述数据账户空间的数据结算周期的时长与所述第一分段数据事务的执行段的执行处理周期的时长相等,在前一数据结算周期对所述数据账户空间的数据额度扣减所述扣减额度,经后一数据结算周期的数据结算处理后,所述扣减额度对所述数据额度的扣减被更新。Wherein, the duration of the data settlement cycle of the data account space is equal to the duration of the execution processing cycle of the execution stage of the first segmented data transaction, and the data quota of the data account space is deducted in the previous data settlement cycle The deduction amount is updated after the data settlement processing of the subsequent data settlement cycle, the deduction amount of the deduction amount to the data amount.
  50. 根据权利要求45所述的数据处理方法,所述待处理业务包括:交易业务,数据流处理业务,支付业务;The data processing method according to claim 45, wherein the services to be processed include: transaction services, data stream processing services, and payment services;
    相应的,所述待处理业务的分段数据事务包括:所述交易业务采用分阶段交易方式进行执行的分阶段交易事务,所述数据流处理业务采用分阶段处理方式进行执行的分阶 段数据流处理事务,所述支付业务采用分阶段支付方式进行执行的分阶段支付事务;Correspondingly, the segmented data transaction of the service to be processed includes: a phased transaction transaction executed by the transaction service in a phased transaction mode, and a phased data flow executed by the data stream processing service in a phased processing mode To process transactions, the payment business adopts a staged payment method to execute a staged payment transaction;
    所述分段数据事务的执行段包括:所述分阶段交易事务在分阶段交易过程中的各个交易阶段,所述分阶段数据流处理事务在分阶段处理过程中的各个数据处理阶段,所述分阶段支付事务在分阶段支付过程中的各个支付阶段。The execution stage of the segmented data transaction includes: each transaction stage in the staged transaction process of the staged transaction transaction, each data processing stage of the staged data flow processing transaction in the staged processing process, the A phased payment transaction is at each payment stage in the phased payment process.
  51. 一种数据处理装置,包括:A data processing device includes:
    请求接收模块,被配置为接收第二客户端提交的携带业务标识的业务处理请求;The request receiving module is configured to receive a service processing request carrying a service identifier submitted by the second client;
    事务创建模块,被配置为根据所述业务标识对应的元数据,创建所述业务处理请求对应的分段数据事务;所述分段数据事务中记录有各个执行段的数据执行信息和数据链路;The transaction creation module is configured to create a segmented data transaction corresponding to the service processing request according to the metadata corresponding to the service identifier; the segmented data transaction records the data execution information and data link of each execution segment ;
    事务发送模块,被配置为向第一客户端和所述第二客户端下发所述分段数据事务;A transaction sending module configured to deliver the segmented data transaction to the first client and the second client;
    解析模块,被配置为根据所述第二客户端针对所述分段数据事务提交的预执行方式,对所述分段数据事务进行解析,获得与所述预执行方式对应的目标数据事务;The parsing module is configured to analyze the segmented data transaction according to the pre-execution mode submitted by the second client for the segmented data transaction to obtain the target data transaction corresponding to the pre-execution mode;
    处理模块,被配置为根据所述目标数据事务中记录的所述至少一个执行段的目标数据执行信息和目标数据链路,对所述目标数据事务进行执行处理;A processing module configured to perform execution processing on the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction;
    结果推送模块,被配置为向所述第二客户端推送所述目标数据事务的执行处理结果。The result push module is configured to push the execution processing result of the target data transaction to the second client.
  52. 一种数据处理方法,应用于第二客户端,所述方法包括:A data processing method applied to a second client, the method including:
    采集第一客户端对应的终端设备展示的待处理业务的业务标识码;Collecting the service identification code of the service to be processed displayed by the terminal device corresponding to the first client;
    对所述业务标识码进行解码,根据解码获得的业务标识向服务端提交携带所述业务标识的业务处理请求;Decoding the service identification code, and submitting a service processing request carrying the service identification to the server according to the service identification obtained by the decoding;
    接收所述服务端针对所述业务处理请求下发的分段数据事务并展示;Receiving and displaying the segmented data transaction issued by the server in response to the service processing request;
    根据针对所述分段数据事务的预执行输入,向所述服务端提交预执行方式;Submit a pre-execution mode to the server according to the pre-execution input for the segmented data transaction;
    接收所述服务端返回的所述预执行方式对应的目标数据事务的执行处理结果。Receiving the execution processing result of the target data transaction corresponding to the pre-execution mode returned by the server.
  53. 一种数据处理装置,包括:A data processing device includes:
    采集模块,被配置为采集第一客户端对应的终端设备展示的待处理业务的业务标识码;The collection module is configured to collect the service identification code of the service to be processed displayed by the terminal device corresponding to the first client;
    解码模块,被配置为对所述业务标识码进行解码,根据解码获得的业务标识向服务端提交携带所述业务标识的业务处理请求;A decoding module configured to decode the service identification code, and submit a service processing request carrying the service identification to the server according to the service identification obtained by decoding;
    接收模块,被配置为接收所述服务端针对所述业务处理请求下发的分段数据事务并展示;A receiving module, configured to receive and display the segmented data transaction issued by the server in response to the service processing request;
    提交模块,被配置为根据针对所述分段数据事务的预执行输入,向所述服务端提交预执行方式;The submission module is configured to submit a pre-execution mode to the server according to the pre-execution input for the segmented data transaction;
    处理结果接收模块,被配置为接收所述服务端返回的所述预执行方式对应的目标数据事务的执行处理结果。The processing result receiving module is configured to receive the execution processing result of the target data transaction corresponding to the pre-execution mode returned by the server.
  54. 一种计算设备,包括:A computing device including:
    存储器和处理器;Memory and processor;
    所述存储器用于存储计算机可执行指令,所述处理器用于执行所述计算机可执行指令:The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions:
    获取待处理业务的元数据;Obtain the metadata of the business to be processed;
    根据所述元数据创建所述待处理业务的分段数据事务;所述分段数据事务中记录有各个执行段的数据执行信息和数据链路;Create a segmented data transaction of the service to be processed according to the metadata; the segmented data transaction records data execution information and data links of each execution segment;
    基于针对所述分段数据事务的至少一个执行段提交的执行方式,对所述分段数据事务进行解析,获得与所述执行方式对应的目标数据事务;Analyzing the segmented data transaction based on the execution mode submitted for at least one execution segment of the segmented data transaction to obtain a target data transaction corresponding to the execution mode;
    根据所述目标数据事务中记录的所述至少一个执行段的目标数据执行信息和目标数据链路,对所述目标数据事务进行执行处理。Perform execution processing on the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction.
  55. 一种计算设备,包括:A computing device including:
    存储器和处理器;Memory and processor;
    所述存储器用于存储计算机可执行指令,所述处理器用于执行所述计算机可执行指令:The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions:
    获取待处理交易的交易元数据;Obtain transaction metadata of pending transactions;
    根据所述交易元数据创建所述待处理交易的分期支付事务;所述分期支付事务中记录有各个支付阶段的交易支付信息和支付链路;Create an installment payment transaction for the transaction to be processed according to the transaction metadata; the installment payment transaction records transaction payment information and payment links of each payment stage;
    基于针对所述分期支付事务的至少一个支付阶段提交的支付方式,对所述分期支付事务进行解析,获得与所述支付方式对应的目标支付事务;Analyzing the instalment payment transaction based on the payment method submitted for at least one payment phase of the instalment payment transaction to obtain a target payment transaction corresponding to the payment method;
    根据所述目标支付事务中记录的所述至少一个支付阶段的目标交易支付信息和目标支付链路,对所述目标支付事务进行支付处理。Perform payment processing on the target payment transaction according to the target transaction payment information and target payment link of the at least one payment stage recorded in the target payment transaction.
  56. 一种计算设备,包括:A computing device including:
    存储器和处理器;Memory and processor;
    所述存储器用于存储计算机可执行指令,所述处理器用于执行所述计算机可执行指令:The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions:
    接收第一客户端提交的待处理业务的业务处理请求;所述业务处理请求中携带业务标识和分段数目;Receiving a service processing request for a service to be processed submitted by the first client; the service processing request carries a service identifier and the number of segments;
    根据所述分段数目和所述业务标识对应的元数据,创建所述业务处理请求对应的分 段数据事务;所述分段数据事务中记录有各个执行段的数据执行信息和数据链路;Create a segmented data transaction corresponding to the service processing request according to the number of segments and the metadata corresponding to the service identifier; the segmented data transaction records the data execution information and data links of each execution segment;
    向所述第一客户端下发所述分段数据事务;Delivering the segmented data transaction to the first client;
    根据所述第一客户端针对所述分段数据事务提交的分段执行方式,对所述分段数据事务进行解析,获得与所述分段执行方式对应的目标数据事务;Parse the segmented data transaction according to the segmented execution mode submitted by the first client for the segmented data transaction to obtain a target data transaction corresponding to the segmented execution mode;
    根据所述目标数据事务中记录的所述至少一个执行段的目标数据执行信息和目标数据链路,对所述目标数据事务进行执行处理;Perform execution processing on the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction;
    向所述第一客户端推送所述目标数据事务的执行处理结果。Push the execution processing result of the target data transaction to the first client.
  57. 一种计算设备,包括:A computing device including:
    存储器和处理器;Memory and processor;
    所述存储器用于存储计算机可执行指令,所述处理器用于执行所述计算机可执行指令:The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions:
    接收针对待处理业务提交的业务处理指令;Receive business processing instructions submitted for the business to be processed;
    根据所述业务处理指令对应的分段数目,向服务端提交携带所述分段数目和所述待处理业务的业务标识的业务处理请求;Submit a service processing request carrying the number of segments and the service identifier of the service to be processed to the server according to the number of segments corresponding to the service processing instruction;
    接收所述服务端针对所述业务处理请求下发的分段数据事务并展示;Receiving and displaying the segmented data transaction issued by the server in response to the service processing request;
    根据针对所述分段数据事务的分段执行输入,向所述服务端提交分段执行方式;Submit a segmented execution mode to the server according to the segmented execution input for the segmented data transaction;
    接收所述服务端返回的所述分段执行方式对应的目标数据事务的执行处理结果。Receiving the execution processing result of the target data transaction corresponding to the segmented execution mode returned by the server.
  58. 一种计算设备,包括:A computing device including:
    存储器和处理器;Memory and processor;
    所述存储器用于存储计算机可执行指令,所述处理器用于执行所述计算机可执行指令:The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions:
    接收第二客户端提交的携带业务标识的业务处理请求;Receiving a service processing request carrying a service identifier submitted by the second client;
    根据所述业务标识对应的元数据,创建所述业务处理请求对应的分段数据事务;所述分段数据事务中记录有各个执行段的数据执行信息和数据链路;Create a segmented data transaction corresponding to the service processing request according to the metadata corresponding to the service identifier; the segmented data transaction records data execution information and data links of each execution segment;
    向第一客户端和所述第二客户端下发所述分段数据事务;Deliver the segmented data transaction to the first client and the second client;
    根据所述第二客户端针对所述分段数据事务提交的预执行方式,对所述分段数据事务进行解析,获得与所述预执行方式对应的目标数据事务;Parse the segmented data transaction according to the pre-execution mode submitted by the second client for the segmented data transaction to obtain a target data transaction corresponding to the pre-execution mode;
    根据所述目标数据事务中记录的所述至少一个执行段的目标数据执行信息和目标数据链路,对所述目标数据事务进行执行处理;Perform execution processing on the target data transaction according to the target data execution information and target data link of the at least one execution segment recorded in the target data transaction;
    向所述第二客户端推送所述目标数据事务的执行处理结果。Push the execution processing result of the target data transaction to the second client.
  59. 一种计算设备,包括:A computing device including:
    存储器和处理器;Memory and processor;
    所述存储器用于存储计算机可执行指令,所述处理器用于执行所述计算机可执行指令:The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions:
    采集第一客户端对应的终端设备展示的待处理业务的业务标识码;Collecting the service identification code of the service to be processed displayed by the terminal device corresponding to the first client;
    对所述业务标识码进行解码,根据解码获得的业务标识向服务端提交携带所述业务标识的业务处理请求;Decoding the service identification code, and submitting a service processing request carrying the service identification to the server according to the service identification obtained by the decoding;
    接收所述服务端针对所述业务处理请求下发的分段数据事务并展示;Receiving and displaying the segmented data transaction issued by the server in response to the service processing request;
    根据针对所述分段数据事务的预执行输入,向所述服务端提交预执行方式;Submit a pre-execution mode to the server according to the pre-execution input for the segmented data transaction;
    接收所述服务端返回的所述预执行方式对应的目标数据事务的执行处理结果。Receiving the execution processing result of the target data transaction corresponding to the pre-execution mode returned by the server.
  60. 一种计算机可读存储介质,其存储有计算机指令,该指令被处理器执行时实现权利要求1至16任意一项所述数据处理方法的步骤。A computer-readable storage medium that stores computer instructions that, when executed by a processor, implement the steps of the data processing method described in any one of claims 1 to 16.
  61. 一种计算机可读存储介质,其存储有计算机指令,该指令被处理器执行时实现权利要求18至32任意一项所述交易处理方法的步骤。A computer-readable storage medium that stores computer instructions that, when executed by a processor, implement the steps of the transaction processing method described in any one of claims 18 to 32.
  62. 一种计算机可读存储介质,其存储有计算机指令,该指令被处理器执行时实现权利要求34至41任意一项所述数据处理方法的步骤。A computer-readable storage medium that stores computer instructions that, when executed by a processor, implement the steps of the data processing method described in any one of claims 34 to 41.
  63. 一种计算机可读存储介质,其存储有计算机指令,该指令被处理器执行时实现权利要求43所述数据处理方法的步骤。A computer-readable storage medium that stores computer instructions that, when executed by a processor, implement the steps of the data processing method of claim 43.
  64. 一种计算机可读存储介质,其存储有计算机指令,该指令被处理器执行时实现权利要求45至50任意一项所述数据处理方法的步骤。A computer-readable storage medium that stores computer instructions that, when executed by a processor, implement the steps of the data processing method described in any one of claims 45 to 50.
  65. 一种计算机可读存储介质,其存储有计算机指令,该指令被处理器执行时实现权利要求52所述数据处理方法的步骤。A computer-readable storage medium that stores computer instructions that, when executed by a processor, implement the steps of the data processing method of claim 52.
PCT/CN2020/138222 2020-01-09 2020-12-22 Data processing method and apparatus WO2021139522A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010023913.0 2020-01-09
CN202010023913.0A CN111242604A (en) 2020-01-09 2020-01-09 Data processing method and device

Publications (1)

Publication Number Publication Date
WO2021139522A1 true WO2021139522A1 (en) 2021-07-15

Family

ID=70865633

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/138222 WO2021139522A1 (en) 2020-01-09 2020-12-22 Data processing method and apparatus

Country Status (2)

Country Link
CN (1) CN111242604A (en)
WO (1) WO2021139522A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113886276A (en) * 2021-12-06 2022-01-04 北京达佳互联信息技术有限公司 Service creation method, device, server and storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111242604A (en) * 2020-01-09 2020-06-05 支付宝(杭州)信息技术有限公司 Data processing method and device
CN112215595B (en) * 2020-10-09 2022-11-08 支付宝(杭州)信息技术有限公司 Project processing method, system and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101021959A (en) * 2006-02-14 2007-08-22 中国银联股份有限公司 Transaction handling system and transaction handling method based on instalment plan business
CN101989337A (en) * 2009-07-30 2011-03-23 上海薄荷信息科技有限公司 Control method and control device for realizing safe payment in payment system
US20140129357A1 (en) * 2011-07-27 2014-05-08 Russell S. Goodwin Intelligent payment system
CN106557921A (en) * 2016-11-30 2017-04-05 广州市万表科技股份有限公司 On-line payment method and device
CN108364228A (en) * 2018-03-30 2018-08-03 深圳市买买提信息科技有限公司 A kind of business data processing method and its equipment
CN111242604A (en) * 2020-01-09 2020-06-05 支付宝(杭州)信息技术有限公司 Data processing method and device

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7542935B2 (en) * 2005-06-28 2009-06-02 Sciac Investment Ltd Method and system for integrating savings and credits with different interest rates
CN103106575A (en) * 2011-11-11 2013-05-15 阿里巴巴集团控股有限公司 Trade information processing method and device
CN107369013A (en) * 2017-07-20 2017-11-21 杭州闪宝科技有限公司 Educational training method of payment, device and system
CN107590732A (en) * 2017-07-26 2018-01-16 深圳市佰仟金融服务有限公司 A kind of business datum calculation method and its equipment, terminal
CN108009819A (en) * 2017-12-01 2018-05-08 中国光大银行股份有限公司信用卡中心 A kind of method and system of credit cards payment by instalments
CN109087190A (en) * 2018-06-08 2018-12-25 阿里巴巴集团控股有限公司 A kind of financing loan method and apparatus
CN109711971A (en) * 2018-08-17 2019-05-03 深圳壹账通智能科技有限公司 Payment beforehand method, apparatus, terminal device and computer readable storage medium
CN110163744A (en) * 2019-04-30 2019-08-23 阿里巴巴集团控股有限公司 A kind of method of payment and device based on block chain
CN110378760A (en) * 2019-06-17 2019-10-25 平安银行股份有限公司 Data processing method and terminal device
CN110335029A (en) * 2019-06-26 2019-10-15 中通服创发科技有限责任公司 Unified payment gateway, method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101021959A (en) * 2006-02-14 2007-08-22 中国银联股份有限公司 Transaction handling system and transaction handling method based on instalment plan business
CN101989337A (en) * 2009-07-30 2011-03-23 上海薄荷信息科技有限公司 Control method and control device for realizing safe payment in payment system
US20140129357A1 (en) * 2011-07-27 2014-05-08 Russell S. Goodwin Intelligent payment system
CN106557921A (en) * 2016-11-30 2017-04-05 广州市万表科技股份有限公司 On-line payment method and device
CN108364228A (en) * 2018-03-30 2018-08-03 深圳市买买提信息科技有限公司 A kind of business data processing method and its equipment
CN111242604A (en) * 2020-01-09 2020-06-05 支付宝(杭州)信息技术有限公司 Data processing method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113886276A (en) * 2021-12-06 2022-01-04 北京达佳互联信息技术有限公司 Service creation method, device, server and storage medium
CN113886276B (en) * 2021-12-06 2022-03-25 北京达佳互联信息技术有限公司 Service creation method, device, server and storage medium

Also Published As

Publication number Publication date
CN111242604A (en) 2020-06-05

Similar Documents

Publication Publication Date Title
WO2021139522A1 (en) Data processing method and apparatus
RU2491634C2 (en) Virtual point calculation centre
JP5044927B2 (en) Facilitating small payments between multiple parties
RU2581784C2 (en) Apparatus and method for bill presentment and payment
US20120095873A1 (en) Escrow management system for marketplaces
AU2010306663B2 (en) System and method for non-credit card billers to accept credit card payments
US20080009263A1 (en) Package billing for micro-transactions
US20190318354A1 (en) Secure electronic billing with real-time funds availability
US20180121975A1 (en) Providing security in electronic real-time transactions
US11023873B1 (en) Resources for peer-to-peer messaging
US10607236B2 (en) Universal system for enabling dynamically discounted buyer-vendor payments
US9922368B2 (en) System and method for purchasing a prepaid debit account
AU2006323098A1 (en) Method and system for loading and reloading portable consumer devices
US20170300881A1 (en) Secure electronic billing and collection with real-time funds availability
US20230334550A1 (en) Using data analysis to connect merchants
KR20150000894A (en) Systems, methods, and computer program products providing payment with non-traditional sources of value
WO2010141239A1 (en) Transaction services reverse auction
US20080167986A1 (en) Method and system for processing an account
CN110610247A (en) Service data processing method and device
CN110874728A (en) Online payment system, online payment method, device, medium and server
CN111680995B (en) Payment chain construction method and device, computer equipment and readable storage medium
CN112967047B (en) Settlement method, device, apparatus, storage medium, and program product
JP7038969B2 (en) Electronic money (E-money) payment processing
JP2018124640A (en) Trade support method, virtual currency management method, trade support system, virtual currency management system, trade support program, and virtual currency management program
US20160063494A1 (en) Before-the-fact budgeting

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20912533

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20912533

Country of ref document: EP

Kind code of ref document: A1