CN113822660B - Data processing method, device, electronic equipment and medium - Google Patents

Data processing method, device, electronic equipment and medium Download PDF

Info

Publication number
CN113822660B
CN113822660B CN202111177937.2A CN202111177937A CN113822660B CN 113822660 B CN113822660 B CN 113822660B CN 202111177937 A CN202111177937 A CN 202111177937A CN 113822660 B CN113822660 B CN 113822660B
Authority
CN
China
Prior art keywords
data
bill
target
offset
cancellation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111177937.2A
Other languages
Chinese (zh)
Other versions
CN113822660A (en
Inventor
冯钰栋
张栋芳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jingdong Technology Holding Co Ltd
Original Assignee
Jingdong Technology Holding Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jingdong Technology Holding Co Ltd filed Critical Jingdong Technology Holding Co Ltd
Priority to CN202111177937.2A priority Critical patent/CN113822660B/en
Publication of CN113822660A publication Critical patent/CN113822660A/en
Application granted granted Critical
Publication of CN113822660B publication Critical patent/CN113822660B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/10Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
    • G06Q20/102Bill distribution or payments
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/405Establishing or using transaction specific rules
    • 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/03Credit; Loans; Processing thereof

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Engineering & Computer Science (AREA)
  • Finance (AREA)
  • Theoretical Computer Science (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Computer Security & Cryptography (AREA)
  • Marketing (AREA)
  • Technology Law (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The present disclosure relates to a method, an apparatus, an electronic device, and a medium for data processing, where the method includes: receiving a data operation request, wherein the data operation request comprises: target operation instructions for bill to be returned; under the condition of receiving the data operation request, acquiring the bill to be returned and the data to be processed in the bill specification of the bill to be returned; converting the data to be processed according to a preset subject, and respectively and correspondingly obtaining a bill to be returned, a first data item and a second data item of which the bill details are matched with the preset subject; and according to the target operation instruction, and a pre-configured cancellation rule and a pre-configured verification rule, performing data cancellation and verification on the first data item and the second data item to obtain a data processing result.

Description

Data processing method, device, electronic equipment and medium
Technical Field
The present disclosure relates to the internet and financial fields, and in particular, to a data processing method, apparatus, electronic device, and medium.
Background
With the development of information technology, business data processing for transaction scenarios is becoming more intelligent and efficient. Taking a financial institution as an example, the user performs the operations of full payment or staged payment by transacting a credit card or based on personal credits in advance and then before a required time limit. The data processing procedure in a data processing scenario generally includes: and carrying out repayment and reimbursement processing on the bill, and then carrying out repayment and reimbursement processing on each fund subject under the bill detail.
In the process of implementing the disclosed concept, the inventor finds that at least the following technical problems exist in the related art: in a more complex data processing scenario, for example, a scenario in which a bill is transferred exists, when data processing is performed in this case, only data of the bill and bill details can be obtained in the related art, and payment and reimbursement of the bill are performed according to the data, so as to obtain a payment result, and then each subject of the bill details is subjected to payment and reimbursement. Corresponding to the statement or other complex data processing scenarios, such processing logic cannot determine whether the payoff amount is in the statement or in the newly added statement, for how the staged or un-staged traffic is handled, and in some traffic with minimum payoff amount requirements, the processing logic of the related art cannot update the data of subjects not present in these statements, so the related art has difficulty in implementing data processing for complex data processing scenarios, or the processing logic is complex and error-prone.
Disclosure of Invention
To solve or at least partially solve the above technical problems, embodiments of the present disclosure provide a method, an apparatus, an electronic device, and a medium for data processing.
In a first aspect, embodiments of the present disclosure provide a method of data processing. The method comprises the following steps: receiving a data operation request, wherein the data operation request comprises: target operation instructions for bill to be returned; under the condition of receiving the data operation request, acquiring the bill to be returned and the data to be processed in the bill specification of the bill to be returned; converting the data to be processed according to a preset subject, and respectively and correspondingly obtaining a bill to be returned, a first data item and a second data item of which the bill details are matched with the preset subject; and according to the target operation instruction, and a pre-configured cancellation rule and a pre-configured verification rule, performing data cancellation and verification on the first data item and the second data item to obtain a data processing result.
According to an embodiment of the disclosure, the performing data cancellation and verification on the first data item and the second data item according to the target operation instruction and a pre-configured cancellation rule and a verification rule to obtain a result after data processing includes: checking the correctness of the first data item and the second data item according to a pre-configured checking rule; under the condition that the correctness of the first data item and the second data item passes verification, according to a preset cancellation rule and the target operation instruction, performing data cancellation on the second data item or the first data item and the second data item to obtain cancelled bill data and bill detail data; checking the correctness of the bill data and bill detail data after the offset according to the checking rule; and under the condition that the correctness check of the bill data and the bill detail data after the offset is passed, taking the bill data and the bill detail data after the offset as the result after the data processing.
According to an embodiment of the present disclosure, the offset rule is associated with an identification of a data processing scenario, and the offset rule includes: in a candidate data processing scenario, a cancellation order is preset for the preset objective, and first data processing logic for cancellation. The candidate data processing scene includes: and the data processing scene corresponding to the target operation instruction. According to a preset canceling rule and the target operation instruction, performing data canceling on the second data item to obtain bill data and bill detail data after canceling, wherein the method comprises the following steps: determining a target cancellation rule corresponding to the target operation instruction according to the identification of the data processing scene associated with the cancellation rule, wherein the target cancellation rule comprises: a first target logic for canceling the target canceling sequence of the preset subjects; according to the first target logic, the following operations are performed: determining that the target operation instruction corresponds to operation detail data of each preset department object based on the target offset sequence; based on the operation detail data, conducting offset processing on the second data item to obtain offset bill detail data; and summarizing the bill detail data after the offset to obtain the bill data after the offset.
According to an embodiment of the present disclosure, the verifying the correctness of the bill data and bill detail data after the canceling includes: summarizing the operation detail data according to the preset subjects to obtain data to be offset; based on the data to be offset, conducting offset processing on the first data item to obtain first bill data to be verified; determining whether the first bill data to be verified is consistent with the bill data after the cancellation; and under the condition that the first bill data to be checked is inconsistent with the bill data after the cancellation, the correctness check of the bill data after the cancellation and the bill detail data is not passed.
According to another embodiment of the present disclosure, the offset rule is associated with an identification of a data processing scenario, and the offset rule includes: in a candidate data processing scenario, a cancellation order is preset for the preset objective, and a second data processing logic is cancelled. According to a preset canceling rule and the target operation instruction, performing data canceling on the first data item and the second data item to obtain bill data and bill detail data after canceling, including: determining a target cancellation rule corresponding to the target operation instruction according to the identification of the data processing scene associated with the cancellation rule, wherein the target cancellation rule comprises: a second target logic for canceling the target canceling sequence for the preset subject; according to the second target logic, the following operations are performed: determining that the target operation instruction corresponds to operation detail data of each preset department object based on the target offset sequence; based on the operation detail data, conducting offset processing on the second data item to obtain offset bill detail data; summarizing the operation detail data according to the preset subjects to obtain data to be offset; and based on the data to be offset, conducting offset processing on the first data item to obtain offset bill data.
According to an embodiment of the present disclosure, the verifying the correctness of the bill data and bill detail data after the canceling includes: summarizing the bill detail data after the cancellation to obtain second bill data to be verified; determining whether the second bill data to be verified is consistent with the bill data after the cancellation; and under the condition that the second bill data to be checked is inconsistent with the bill data after the cancellation, the correctness check of the bill data after the cancellation and the bill detail data is not passed.
According to an embodiment of the present disclosure, the verifying the correctness of the first data item and the second data item includes: checking the consistency of the first data item and the second data item after the integration; and if the first data item is inconsistent with the second data item after the aggregation, the correctness check of the first data item and the second data item is not passed.
According to an embodiment of the present disclosure, the target operation instruction includes at least one of: an expired repayment operation of the first amount, a refund operation of the second amount, a cost reduction operation of the third amount and an advanced repayment operation of the fourth amount are performed.
According to an embodiment of the disclosure, the converting the to-be-processed data according to a preset subject respectively and correspondingly obtaining the to-be-returned bill, a first data item and a second data item of which the bill details are matched with the preset subject, includes: obtaining a target data table template corresponding to the data processing scene of the bill to be returned from the pre-constructed data table templates aiming at different data processing scenes; obtaining a preset subject according to the column information of the target data table template; converting the data to be processed in the bill to be returned to obtain first column data of each preset department corresponding to the same data row in the target data table template, wherein the first column data is a first data item; and converting the data to be processed in the current bill detail aiming at the data to be processed in each bill detail to obtain second column data of each preset order corresponding to the same data row in the target data table template, wherein the second column data is a second data item.
According to an embodiment of the present disclosure, the above method further includes: and configuring a cancellation rule and a verification rule. The configuration cancellation rules and verification rules include: receiving rule configuration information for candidate data processing scenes, wherein the candidate data processing scenes comprise the data processing scenes to be billed, and the rule configuration information comprises the following steps: the method comprises the steps of canceling rule information, checking rule information and generating script types; carrying out semantic verification on the rule configuration information; and generating a cancellation rule code and a verification rule code corresponding to the generation script type according to the generation script type when the rule configuration information passes the semantic verification, wherein the cancellation rule code and the verification rule code serve as configured cancellation rules and verification rules.
According to an embodiment of the present disclosure, the above method further includes: and loading the offset rule and the verification rule. The loading offset rule and the verification rule include: acquiring the generated script types of the offset rule codes and the check rule codes; determining a target loader to be started, which is matched with the generated script type, according to the generated script type; and starting the target loader to load the offset rule code and the check rule code.
In a second aspect, embodiments of the present disclosure provide an apparatus for data processing. The device comprises: the system comprises a request receiving module, a data acquisition module, a data conversion module and a data processing module. The request receiving module is configured to receive a data operation request, where the data operation request includes: and aiming at target operation instructions of the bill to be returned. The data acquisition module is used for acquiring the to-be-returned bill and the to-be-processed data in the bill specification of the to-be-returned bill under the condition of receiving the data operation request. The data conversion module is used for converting the data to be processed according to a preset subject, and respectively and correspondingly obtaining the bill to be returned and a first data item and a second data item of which the bill details are matched with the preset subject. And the data processing module is used for conducting data cancellation and verification on the first data item and the second data item according to the target operation instruction and a preset cancellation rule and a preset verification rule to obtain a data processing result.
In a third aspect, embodiments of the present disclosure provide an electronic device. The electronic equipment comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus; a memory for storing a computer program; and the processor is used for realizing the data processing method when executing the program stored in the memory.
In a fourth aspect, embodiments of the present disclosure provide a computer-readable storage medium. The computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements a method of data processing as described above.
Compared with the prior art, the technical scheme provided by the embodiment of the disclosure has at least part or all of the following advantages:
The to-be-returned bill and the to-be-processed data in the bill detail are uniformly converted into data items under a preset family view: the first data item and the second data item can be subjected to data offset and verification according to the target operation instruction, a pre-configured offset rule and a pre-configured verification rule, and a data processing result is obtained; because the data items obtained after conversion are relied on in the processing process of data offset and verification of the data, the decoupling of the service scene and the data items can be realized instead of the original bill to be returned and the data to be processed corresponding to the bill detail, and offset rules and verification rules such as processing logic, verification modes and the like are configured in advance for the processing sequence of each department under each data processing scene (such as service scenes including due repayment, advanced repayment, request expense reduction, refund and the like), thereby realizing the efficient and accurate processing of data operation requests under various complex scenes, verifying the specific error positions, being not only suitable for the data processing under the transferring scene, but also expanding the data processing scenes applied to various data with association relations.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings that are required to be used in the description of the embodiments or the related art will be briefly described below, and it will be apparent to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 schematically illustrates a system architecture of a method and apparatus for data processing suitable for use in embodiments of the present disclosure;
FIG. 2 schematically illustrates a flow chart of a method of data processing according to an embodiment of the present disclosure;
FIG. 3 schematically illustrates a detailed implementation flowchart of operation S203, according to an embodiment of the present disclosure;
FIG. 4 schematically illustrates a detailed implementation flowchart of operation S204, according to an embodiment of the present disclosure;
FIG. 5A schematically illustrates a detailed implementation flowchart of data cancellation according to an embodiment of the present disclosure;
FIG. 5B schematically illustrates a detailed implementation flowchart of data cancellation according to another embodiment of the present disclosure;
FIG. 6 schematically illustrates a flow chart of a method of data processing according to another embodiment of the present disclosure;
FIG. 7 schematically illustrates a detailed implementation flowchart of operation S601, according to an embodiment of the present disclosure;
FIG. 8 schematically illustrates a flow chart of a method of data processing according to yet another embodiment of the present disclosure;
Fig. 9 schematically illustrates a detailed implementation flowchart of operation S801 according to an embodiment of the present disclosure;
FIG. 10 schematically illustrates a block diagram of an apparatus for data processing according to an embodiment of the disclosure; and
Fig. 11 schematically shows a block diagram of an electronic device provided by an embodiment of the disclosure.
Detailed Description
The embodiment of the disclosure provides a data processing method, a data processing device, electronic equipment and a medium. The method comprises the following steps: receiving a data operation request, wherein the data operation request comprises: target operation instructions for bill to be returned; under the condition of receiving the data operation request, acquiring the bill to be returned and the data to be processed in the bill specification of the bill to be returned; converting the data to be processed according to a preset subject, and respectively and correspondingly obtaining a bill to be returned, a first data item and a second data item of which the bill details are matched with the preset subject; and according to the target operation instruction, and a pre-configured cancellation rule and a pre-configured verification rule, performing data cancellation and verification on the first data item and the second data item to obtain a data processing result.
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present disclosure more apparent, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present disclosure, and it is apparent that the described embodiments are some, but not all, embodiments of the present disclosure. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the disclosure, are within the scope of the disclosure.
Fig. 1 schematically illustrates a system architecture of a method and apparatus for data processing suitable for use in embodiments of the present disclosure.
Referring to fig. 1, a system architecture 100 suitable for use in methods and apparatus for data processing of embodiments of the present disclosure includes: terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is a medium that provides a communication link between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may interact with the server 105 via the network 104 using the terminal devices 101, 102, 103 to receive or send messages or the like. Various communication client applications, such as financial-based applications, which may involve consumer and repayment operations by the user, may be installed on the terminal devices 101, 102, 103. The user can realize repayment operation by operating the terminal device, and the user can be repayment personnel or staff of a financial institution.
In addition, shopping applications, web browser applications, search applications, instant messaging tools, mailbox clients, social platform software, and the like (only examples) may also be installed on the above-described terminal devices 101, 102, 103.
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, such as electronic devices including but not limited to: smart phones, tablet computers, notebook computers, desktop computers, smart watches, and the like.
The server 105 may be a server providing various services, such as a background management server (by way of example only) providing service support for application interfaces or web pages browsed by the user using the terminal devices 101, 102, 103. The background management server may analyze and process the received request data (for example, the repayment operation request), and feed back the processing result (for example, data, web page, information, etc. obtained by performing data processing according to the repayment operation request of the user) to the terminal device.
It should be noted that the method for data processing provided by the embodiments of the present disclosure may be generally performed by the server 105 or the terminal devices 101, 102, 103 having a certain computing capability. Accordingly, the data processing apparatus provided in the embodiments of the present disclosure may be generally disposed in the server 105 or the terminal devices 101, 102, 103 having a certain operation capability. The method of data processing provided by the embodiments of the present disclosure may also be performed by a server or a cluster of servers other than the server 105 and capable of communicating with the terminal devices 101, 102, 103 and/or the server 105. Accordingly, the data processing apparatus provided by the embodiments of the present disclosure may also be provided in a server or a server cluster different from the server 105 and capable of communicating with the terminal devices 101, 102, 103 and/or the server 105.
When the method for processing data in the embodiment of the present disclosure is executed by a terminal device, an application program (for example, a financial application program) may be installed on the terminal device, and a rule engine is embedded in the application program. The rule engine is developed by an inference engine and is a component embedded in an application program, and can separate business decisions from application program codes and write the business decisions by using a predefined semantic module. The rule engine is used for receiving data input, interpreting the business rule, making business decision and obtaining business result according to the business rule.
It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Embodiments of the present disclosure are described in detail below with reference to the attached drawings.
A first exemplary embodiment of the present disclosure provides a method of data processing.
Fig. 2 schematically illustrates a flow chart of a method of data processing according to an embodiment of the present disclosure.
Referring to fig. 2, a method for data processing according to an embodiment of the present disclosure includes the following operations: s201, S202, S203, and S204.
In operation S201, a data operation request is received, the data operation request including: and aiming at target operation instructions of the bill to be returned.
In operation S202, when the data operation request is received, the to-be-returned bill and the to-be-returned bill data in the bill specification are acquired.
In operation S203, the data to be processed is converted according to a preset subject, so as to respectively obtain the bill to be returned, and the first data item and the second data item of which the bill details are matched with the preset subject.
In operation S204, according to the target operation instruction and the pre-configured cancellation rule and verification rule, data cancellation and verification are performed on the first data item and the second data item, so as to obtain a result after data processing.
The above operations S201 to S204 may be performed by a terminal device or a server.
In embodiments of the present disclosure, scenarios of data processing include, but are not limited to: service scenes such as expiration repayment, early repayment, request fee deduction, refund and the like. Accordingly, the target operation instruction for the bill to be returned includes, but is not limited to, at least one of the following: an expired repayment operation of the first amount, a refund operation of the second amount, a charge reduction operation of the third amount, an advanced repayment operation of the fourth amount, and the like are performed.
In an embodiment of the present disclosure, the precondition for generating the bill to be returned may be: the consumer (the spender of funds, which may be a person or business) has previously implemented various arrears operations on the terminal device on which the financial-type application is installed, such as: borrowing or loaning (e.g. borrowing or loaning from a financial institution), pre-consumption (post-payment/repayment) based on credit line (e.g. consumption with credit card, consumption with bar, etc.), etc.
In the embodiment of the disclosure, the bill to be billed is a generalized concept, which refers to a in arrears amount certificate corresponding to a consumer, and may be in the form of a bill in the actual application scenario, borrowing, loan bill, borrowing bill, and the like.
When the above operation S201 is performed by the terminal device, the corresponding scenario may be: the repayment personnel (which can correspond to a consumer who actually performs fund spending or a person/enterprise associated with the consumer) initiates corresponding data operation requests such as due repayment, early repayment, request fee deduction, repayment and the like through a financial application program on the terminal device, or the repayment personnel performs business transactions such as due repayment, early repayment, request fee deduction, repayment and the like at a counter of a financial institution, and the staff initiates the data operation requests based on the terminal device. In this case, a request for a data operation initiated by a consumer or a worker is received at the terminal device.
When the above operation S201 is performed by the server, the corresponding scenario may be: the user (who may be a repayment person or a staff member of a financial institution) sends a data operation request to the server by initiating the data operation request on a financial class application of the terminal device. The above data operation request is received at the server side (corresponding to operation S201).
When the above operation S202 is performed by the terminal device, the terminal device may acquire the to-be-returned bill and the to-be-processed data in the bill specification of the to-be-returned bill from the server with the database service, or may acquire the to-be-processed data from the corresponding database through the server; in other cases, the terminal device may also obtain the data to be processed from a local memory or a storage device.
When the above operation S202 is performed by the server, the server acquires the to-be-returned bill and the to-be-processed data in the bill specification of the to-be-returned bill from the database.
In the above operation S203, the preset subject may be a subject adapted to a current data processing scenario, where the current data processing scenario is a data processing scenario corresponding to the bill to be returned. The preset subjects can cover at least the types of various data to be processed for data offset.
For example, a data processing scenario for a payment operation for a statement bill, where the subject to be billed includes: total refund, refund principal, refund stage commission, refund daily interest, refund penalty, refund principal, and minimum refund amount. The subjects of the bill details to be billed include: total refund, refund principal, refund stage commission, refund daily interest, refund penalty, stage type, service identification, minimum refund amount, wherein the stage type includes: unset, order stage, bill stage; the service identifier comprises: the method is common and takes the appearance.
The preset subjects can be adapted to a data processing scenario of a payment operation for a statement of account, and may include, for example, some or all of the following: total pending, pending returning daily interest, non-lowest (optional) in non-stage, principal in statement-of-account stage, principal in order stage in statement-of-account stage, lowest (optional) in non-stage in statement-of-account stage, non-lowest (optional) in statement-of-account stage, balance-of-account withdrawal, and lowest payoff amount. Wherein for the optional content with bracket marks, the above subjects are necessary in the business scenario where the calculation is needed and the lowest detail is given, and the subjects with optional marks are not necessary in the scenario where the calculation is not needed.
In operation S203, the service scenario and the data item can be decoupled by converting the to-be-returned bill and the to-be-processed data in the bill detail thereof, so that the to-be-processed data is uniformly converted into the data item (including the first data item and the second data item) under the preset family. In the subsequent operation S204, only the data items (including the first data item and the second data item) need to be correspondingly processed based on the preset cancellation rule, the verification rule and the target operation instruction, so that the logic of data processing for various complex data processing scenes is simplified.
In operation S204, the offset rule and the verification rule are preconfigured. The corresponding scenario may be: the research personnel or business personnel of the financial application program can pre-configure rules such as processing sequences, processing logic, verification modes and the like of various departments under various data processing scenes (such as business scenes) based on the terminal equipment to obtain a cancellation rule and a verification rule.
Such as: and (5) paying due, paying in advance, requesting fee deduction, paying refund and the like. Such cost reduction includes, but is not limited to, at least one of: the data processing logic is used for data offset processing of data items under the relevant department of charge, commission and the like under the scene of charge reduction, such as commission charge reduction, daily interest reduction, penalty charge reduction and the like. For the scenario of advanced payouts (e.g., clearing before expiration date), processing logic performs data cancellation processing for a fee deduction operation in combination with a payoff operation, first a fee deduction operation (fee deduction for the unexpired portion), and then payoff the actual arrears. And under a refund scene (for example, a scene of original transaction withdrawal), carrying out data offset processing on data items under the relevant subjects of refund, and simultaneously carrying out data change on the subjects to be relevant.
In the data processing scene, the data offset flow is consistent with the data offset flow in the repayment scene, and the data items (including the first data item and the second data item) under the bill and the bill detail are updated according to the target operation instruction. Meanwhile, the data item needs to be checked before data is offset, and the offset result needs to be checked again after the data is offset.
When the operations S203 to S204 are performed by the terminal device, an application (for example, a financial application) may be installed on the terminal device, and a rule engine is embedded in the application, and the operations S203 and S204 are implemented based on a functional module in the rule engine.
When the operations S203 to S204 are performed by a server, the server may have a function module for performing data conversion and rule-based calculation therein.
Based on the operations S201 to S204, the to-be-returned bill and the to-be-processed data in the bill detail thereof are uniformly converted into the data items under the preset family view: the first data item and the second data item can be subjected to data cancellation and verification according to a target operation instruction, a pre-configured cancellation rule and a verification rule, so that a data processing result is obtained; because the data items obtained after conversion are relied on in the processing process of data offset and verification of the data, the decoupling of the business scene and the data items can be realized instead of the original bill to be returned and the data to be processed corresponding to the bill detail, and offset rules and verification rules such as processing sequences, processing logic, verification modes and the like of various departments in various business scenes are configured in advance, so that the data operation requests in various complex scenes can be processed efficiently and accurately, the specific error positions can be verified, the method is suitable for data processing in the transferring scene, and the data processing scene applied to various data with association relations can be expanded.
Fig. 3 schematically shows a detailed implementation flowchart of operation S203 according to an embodiment of the present disclosure.
According to an embodiment of the disclosure, referring to fig. 3, the operation S203 of converting the to-be-processed data according to a preset subject to obtain the to-be-returned bill, where the bill details are matched with the first data item and the second data item of the preset subject, respectively, includes the following operations: s301, S302, S303, and S304.
In operation S301, a target data table template corresponding to the data processing scenario to be billed is acquired from pre-constructed data table templates for different data processing scenarios.
In operation S302, a preset subject is obtained according to the column information of the target data table template.
In operation S303, the data to be processed in the bill to be returned is converted to obtain first column data of each preset order corresponding to the same data line in the target data table template, where the first column data is a first data item.
In operation S304, for the data to be processed in each bill detail, the data to be processed in the current bill detail is converted to obtain second column data of each preset order corresponding to the same data row in the target data table template, where the second column data is a second data item.
Illustratively, in the embodiment of operation S301, the pre-constructed data table template carries the scene identifier of the different data processing scene, and the target data table template corresponding to the data processing scene to be billed may be located by the scene identifier. Or the data table templates constructed according to different data processing scenes have certain relevance and coverage with the bills to be returned and subjects in bill details thereof in the respective data processing scenes, and the target data table templates corresponding to the current data processing scene are correspondingly obtained by matching special subjects, for example, subjects related to the transfer items exist in the data processing scenes; the subjects related to the transfer item do not exist in some data processing scenes; in some data processing scenarios, it is required to set the minimum amount of each type of repayment, etc., and these different subjects can be used as special subjects for distinguishing different business scenarios.
The column information of the data table template is preconfigured, and may cover the types of data to be processed for data offset in the data processing scenario (a major class of data processing scenario, for example, a repayment scenario, or a finely classified data processing scenario, for example, an expiration repayment under the repayment scenario, a repayment in advance, a fee (for example, a commission fee, a charge fee) deduction operation, a refund operation, etc.) in the repayment scenario. In the above operation S302, part of the column information or all of the column information in the target data table template may be used as the preset subject.
In the above operation S303, the data to be processed in the bill to be returned is converted to obtain the first data item.
In operation S304, the data to be processed in the bill details of the bill to be returned is converted to obtain the second data item.
The method of data processing according to the embodiments of the present disclosure will be described in detail below in connection with specific data to be processed.
In an exemplary embodiment, the data to be processed in the bill to be returned and the bill details of the bill to be returned acquired in the operation S202 correspond to the data illustrated in the following tables 1 and 2, respectively.
For ease of understanding, the following description is given of the origin of each item in table 1 above. In table 1, an example is given of a bill to be returned in a forward scene. The bill to be returned includes two major parts, one major part is the bill which is turned over, and the other major part is the bill of the current period (which can also be described as the current period). In the bill transferred by the transfer, the transfer amount is 800 yuan, the generated waiting daily interest of the transfer amount is 33, and the waiting penalty is 17; in the bill of the present period (current period), the to-be-reduced cost of the present period is 150. According to the preset rule, the lowest payoff amount (775 yuan) =10% of the principal to be payed in this period (150 yuan×10% =15 yuan) + daily interest to be payed (33 yuan) +to be penalized (17 yuan) +the lowest payoff amount of the original bill (710 yuan).
For ease of understanding, the following description is given of the origin of the contents of table 2 above. In table 2, corresponding to the bill to be returned in the above-mentioned forward-forward scenario of table 1, the details of the bill to be forwarded may refer to the data of the first 4 rows (excluding the title bar and header) of the 5 rows of data in table 2, and the details of the bill in the present period may refer to the data of the last row (5 th row) of the 5 rows of data in table 2. For the unsegmented billing data 150 (data of line 5), the lowest refund amount is 10% of its amount, namely: 150 x 10% = 15 yuan.
In the above data processing scenario taking the forward scenario as an example, there is a problem that the payment data processing in the complex scenario cannot be performed in the related art, for example, it cannot be determined whether the target operation instruction is a subject in the bill for canceling the forward or a subject in the newly added bill, how to process the service in stages or not, and in some services with the minimum payment amount requirement, the processing logic in the related art cannot perform the data update on the subjects not existing in the details. Furthermore, the associated processing logic, even if forced, still exists: and the processed bill detail data offset data is inconsistent with the bill data offset data, and the technical problems that the data cannot be checked is incorrect and the like are solved.
Specifically, if the target operation instruction of the user for repayment of the bill to be returned is 500 yuan, based on the processing logic in the related art, data offset is performed at the bill level first, and then data offset is performed at the bill detail level. The total data 1000 to be restored is offset to obtain offset bill data 500, and the offset is whether the money to be restored, the money to be restored daily interest or the transfer amount is ambiguous. Assuming that 500 sub-division offset at the billing level is possible, for example, 500-element offset is performed for the transfer amount, the transfer amount after offset (corresponding to table 1) at the billing level can be obtained (for simplicity of explanation, only numerical values will be described later, units are omitted) to be 800-500=300. In the detail level processing, for example, when the business is actually processed, whether the data to be returned daily interest is to be offset or the offset of the transfer amount is to be performed is not the preset logic, that is, it is impossible to determine how to perform the corresponding offset in the detail level (corresponding to table 2). If there is a corresponding order of offset, it is apparent that: the data to be returned daily interest after the offset obtained in detail are: 50-50=0, and the payoff amount for the offset transfer amount is less than 500 (450), then the problem that the processed bill detail data offset data is inconsistent with the bill data offset data and cannot be verified is faced.
In the embodiment of the present disclosure, by implementing the operations S201 to S204, the above technical problems may be effectively solved, and may also be applied to scenarios of data processing such as payment due, payment in advance, request fee deduction, refund, and the like. The implementation of operations S302 to S304 in operation S203 will be described below in connection with the corresponding embodiments of tables 1 and 2 described above.
Illustratively, in operation S302, all of the column information in the target data table template is taken as a preset subject, which can be adapted to the statement of account exemplified in tables 1 and 2 as a data processing scenario for the statement of account, and the preset subject may include the following subjects: total pending, pending returning daily interest, non-lowest, principal for statement of account, principal for order of statement of account, lowest for statement of account, non-lowest for statement of account, and lowest for payoff amount.
In table 3, a target data table template is illustrated, the number of rows of which is only an example here, and may be added or deleted according to actual data needs.
The execution sequence of the above operations S303 and S304 is not limited, and the two may be executed sequentially or may be executed synchronously, where for convenience of examples, operation S303 is schematically executed first, and then operation S304 is executed, and in table 4, a first target data table obtained after filling a target data table template with a first data item is schematically shown; the second target data table resulting after filling the target data table template with the second data item is illustrated in table 5. The actually obtained target data table is a data table obtained by superimposing the first data table and the second data table, as shown in fig. 6.
In table 4, the lowest unordered value can be obtained according to a preset rule, and the lowest unordered value obtained by 150 (to be reduced) x 10% is 15, and the corresponding lowest unordered value is: 150 (to be reduced) -15 (lowest non-stage) =135.
In tables 4 to 6, the blank part means: there are no data items. The data item has a value of 0, which is the corresponding first data item and second data item.
The operation S204 to be performed subsequently may be regarded as an operation of performing data offset and verification with respect to the above-described target data table.
Fig. 4 schematically shows a detailed implementation flowchart of operation S204 according to an embodiment of the disclosure.
According to an embodiment of the present disclosure, referring to fig. 4, according to the target operation instruction, a pre-configured cancellation rule and a verification rule, performing data cancellation and verification on the first data item and the second data item, and obtaining a result after data processing, operation S204 includes the following operations: s401, S402a, S403, and S404a.
In operation S401, correctness of the first data item and the second data item is verified according to a pre-configured verification rule.
In operation S402a, when the correctness check of the first data item and the second data item passes, the second data item or the first data item and the second data item are subjected to data offset according to a pre-configured offset rule and the target operation instruction, so as to obtain offset bill data and bill detail data.
In operation S403, the correctness of the bill data and bill detail data after the offset is verified according to the verification rule.
In operation S404a, when the verification of the correctness of the bill data and bill specification data after the offset is passed, the bill data and bill specification data after the offset are used as the result after the data processing.
According to an embodiment of the present disclosure, referring to fig. 4, the above operation S204 may further include the following operations: s402b, S404b.
In operation S402b, if the correctness check of the first data item and the second data item is not passed, a data item having a problem in the first data item and the second data item is located and presented.
In operation S404b, if the verification of the correctness of the bill data and bill specification data after the offset is not passed, the verification and correction of the offset calculation is performed by locating the data item having a problem in the bill data and bill specification data after the offset, and the corrected bill data and bill specification data are used as the result after the data processing.
Based on logic of primary verification, offset and secondary verification, the correctness of the initial data is ensured by verifying the correctness of the first data item and the second data item obtained after conversion in advance; then, data offset is carried out on the correct initial data to obtain an offset result; further, through carrying out correctness verification again on the offset result, the problems in the offset calculation process can be found in time, and the problems can be positioned and updated in real time in time, so that the data processing result is ensured to be correct, and the data operation request is efficiently and accurately processed.
According to an embodiment of the present disclosure, the operation S401 of verifying correctness of the first data item and the second data item includes: checking the consistency of the first data item and the second data item after the integration; and if the first data item is inconsistent with the second data item after the aggregation, the correctness check of the first data item and the second data item is not passed.
For example, for the first data item and the summarized second data item in the target data table in the example of table 6, under the aspect of the lowest payoff amount, it is verified whether the sum corresponding to the details 1 to 5 is consistent with the numerical value of the bill, and according to the data example of table 6, the value of the second data item summarized in the details 1 to 5 of the lowest payoff amount is: (15+315+215+215+15) =775, and the value of the first data item of the lowest payoff amount in the bill: 775 are identical.
A specific embodiment of data offset is described below with reference to fig. 5A and 5B.
There are two embodiments of the above operation S402 a: operation S510 or operation S520.
In operation S510, according to a preset cancellation rule and the target operation instruction, data cancellation is performed on the second data item, so as to obtain cancelled bill data and bill detail data.
In operation S520, according to a pre-configured cancellation rule and the target operation instruction, data cancellation is performed on the first data item and the second data item, so as to obtain cancelled bill data and bill detail data.
Fig. 5A schematically illustrates a detailed implementation flowchart of data cancellation according to an embodiment of the present disclosure.
According to an embodiment of the present disclosure, the offset rule is associated with an identification of a data processing scenario, and the offset rule includes: in a candidate data processing scenario, a cancellation order is preset for the preset objective, and first data processing logic for cancellation. The candidate data processing scene includes: and the data processing scene corresponding to the target operation instruction.
In the above operation S510, according to a preset cancellation rule and the above target operation instruction, performing data cancellation on the above second data item to obtain cancelled bill data and bill detail data, including: determining a target cancellation rule corresponding to the target operation instruction according to the identification of the data processing scene associated with the cancellation rule, wherein the target cancellation rule comprises: a first target logic for canceling the target canceling sequence of the preset subjects; and according to the first target logic, performing the following operations: s511, S512, and S513, as shown in fig. 5A.
In operation S511, it is determined that the target operation instruction corresponds to the operation details data of the respective preset orders based on the preset cancellation order.
In operation S512, the second data item is offset based on the operation detail data, so as to obtain offset bill detail data.
In operation S513, the above-mentioned bill specification data after the offset is summarized to obtain bill data after the offset.
For example, the above operations S511 to S513 may be performed with respect to the target data table illustrated in table 6. First, based on a preset order of cancellation and a target operation instruction, respective preset subjects in a target data table are subjected to corresponding operations and an amount (in the case of a repayment operation, here, a repayment amount) is allocated, and operation detail data is obtained (corresponding to operation S511). Then, based on the above operation details data, the second data item is subjected to a cancellation process, that is, a cancellation operation is performed using the value of the second data item corresponding to each preset subject and the corresponding operation amount (in the case of a payment operation, here, the second data item is subtracted from the payment details data), so as to obtain bill details data after cancellation (corresponding to operation S512). And finally, summarizing the bill detail data after the offset to obtain bill data after the offset, for example, adding all bill detail data after the offset under the same preset department to obtain bill data after the offset.
In this embodiment, the operation S403 of verifying the correctness of the bill data and the bill detail data after the offset includes: summarizing the operation detail data according to the preset subjects to obtain data to be offset; based on the data to be offset, conducting offset processing on the first data item to obtain first bill data to be verified; determining whether the first bill data to be verified is consistent with the bill data after the cancellation; and under the condition that the first bill data to be checked is inconsistent with the bill data after the cancellation, the correctness check of the bill data after the cancellation and the bill detail data is not passed.
In this embodiment, the result obtained by calculating the first data item separately is compared with the bill data obtained by summarizing the bill detail data after the cancellation, so as to be a necessary condition for checking the correctness of the bill data after the cancellation and the bill detail data.
Fig. 5B schematically illustrates a detailed implementation flowchart of data cancellation according to another embodiment of the present disclosure.
According to another embodiment of the present disclosure, the offset rule is associated with an identification of a data processing scenario, and the offset rule includes: in a candidate data processing scenario, a cancellation order is preset for the preset objective, and a second data processing logic is cancelled. The candidate data processing scene includes: and the data processing scene corresponding to the target operation instruction.
In the operation S520, the data offset is performed on the first data item and the second data item according to a pre-configured offset rule and the target operation command, to obtain offset bill data and bill detail data, including: determining a target cancellation rule corresponding to the target operation instruction according to the identification of the data processing scene associated with the cancellation rule, wherein the target cancellation rule comprises: a target cancellation sequence for the preset objective, and a second target logic for cancellation; and according to the second target logic of the offset, performing the following operations: s521, S522, S523, and S524 as shown in fig. 5B.
In operation S521, it is determined that the target operation instruction corresponds to the operation details data of the respective preset orders based on the preset order of offset.
In operation S522, the second data item is offset based on the operation detail data, and offset bill detail data is obtained.
In operation S523, the operation detail data is summarized according to the preset subject, so as to obtain data to be offset.
In operation S524, the first data item is subjected to a cancellation process based on the data to be cancelled, so as to obtain cancelled bill data.
The sequence between the operations S522 and S523 is not limited, and the two operations may be performed simultaneously or sequentially.
For example, operations S521 to S524 described above may be performed with respect to the target data table illustrated in table 6. First, based on the preset order of cancellation and the target order of operation, respective preset subjects in the target data table are subjected to corresponding operations and allocation of amounts (in the case of repayment operations, here, corresponding to repayment amounts) to obtain operation detail data (corresponding to operation S521). Then, based on the above operation detail data, the second data item is subjected to a cancellation process, that is, the corresponding target operation instruction is subtracted from the value of the second data item corresponding to each preset subject, to obtain bill detail data after cancellation (corresponding to operation S522). Meanwhile, or before or after operation S522, the operation detail data under the same preset family is summarized to obtain repayment data under each preset family, and the repayment data under each preset family is taken as to-be-offset data (corresponding to operation S523). Finally, based on the data to be offset, the first data item is offset, for example, the value of the first data item under the same preset aspect is subtracted from the value of the first data item under the same preset aspect to obtain the offset result under the preset aspect, where the offset result under all the preset aspect is the bill data after offset (corresponding to operation S524).
In this embodiment, the operation S403 of verifying the correctness of the bill data and the bill detail data after the offset includes: summarizing the bill detail data after the cancellation to obtain second bill data to be verified; determining whether the second bill data to be verified is consistent with the bill data after the cancellation; and under the condition that the second bill data to be checked is inconsistent with the bill data after the cancellation, the correctness check of the bill data after the cancellation and the bill detail data is not passed.
In this embodiment, the cancelled bill data obtained by summarizing the cancelled bill detail data is compared with the result obtained by calculating the first data item alone for cancellation, thereby being a necessary condition for checking the correctness of the cancelled bill data and the bill detail data.
According to an embodiment of the present disclosure, the target operation instruction includes one of: an expired repayment operation of the first amount, a refund operation of the second amount, a fee deduction operation of the third amount, or an advanced repayment operation of the fourth amount is performed. The above-described operation object of fee deduction includes at least one of: handling fee, daily interest, penalty.
In the operations S511 and S521, when the target operation instruction includes an expired payment operation for the first amount, determining, based on the target cancellation order, operation details data corresponding to each preset objective, includes: and dividing the first amount to each preset subject in sequence based on the target cancellation sequence to obtain operation detail data of repayment operation corresponding to each preset subject.
In the operations S511 and S521, when the target operation instruction includes a refund operation for the second amount, determining that the target operation instruction corresponds to the operation detail data of each preset objective based on the target cancellation order includes: if the second amount is lower than the refund allowance, dividing the second amount to each preset subject in sequence based on the target cancellation order to obtain operation detail data of refund operation corresponding to each preset subject; and under the condition that the second amount is larger than the refund limit, dividing the refund limit into preset subjects in sequence based on the target cancellation order, and obtaining operation detail data of refund operation corresponding to the preset subjects.
In the operations S511 and S521, when the target operation instruction includes performing the charge deduction operation of the third amount, determining that the target operation instruction corresponds to the operation detail data of each preset objective based on the target cancellation order includes: if the third amount is lower than the charge reduction limit, dividing the third amount to each preset subject in sequence based on the target cancellation order to obtain operation detail data of the charge reduction operation corresponding to each preset subject; and under the condition that the third amount is larger than the charge reduction limit, dividing the charge reduction limit into preset subjects in sequence based on the target cancellation order, and obtaining operation detail data of charge reduction operation corresponding to the preset subjects.
In the operations S511 and S521, when the target operation instruction includes an advance payment operation for a fourth amount, the advance payment operation is divided into a fee deduction operation and a payment operation, and the fee deduction operation is performed first and then the payment operation is performed. Based on the target cancellation order, determining that the target operation instruction corresponds to operation detail data of each preset family object includes: determining the corresponding non-occurrence amount to be refund of the advanced repayment operation; deducting the non-occurrence amount to be refund from the fourth amount to obtain an actual refund amount; and based on the target offset sequence, dividing the non-generated amount to be refund and the actual refund amount to each preset subject in sequence, and correspondingly obtaining first operation detail data and second operation detail data of the charge reduction operation and the repayment operation corresponding to each preset subject.
In the operations S512 and S522, for the advanced payment operation, the processing for canceling the second data item based on the operation detail data to obtain bill detail data after canceling includes: based on the first operation detail data, performing offset processing under the expense-free operation on the second data item to obtain a first detail result; and based on the second operation detail data, performing offset processing under repayment operation on the first detail result to obtain offset bill detail data.
In one embodiment, the exemplary target offset sequence in the payoff scenario is: the method comprises the steps of firstly sequentially conducting offset of the block commission, daily interest and penalty, and then sequentially conducting offset of the cash withdrawal principal, the bill block principal, the order block principal and the non-block principal. The bill data and bill specification data after the offset are obtained by performing the above operations S511 to S513, and the procedure is shown in tables 7 and 8.
/>
Fig. 6 schematically illustrates a flow chart of a method of data processing according to another embodiment of the present disclosure.
On the basis of the foregoing embodiments, the method for data processing provided by the embodiments of the present disclosure includes, in addition to the operations S201 to S204 described above, the following operation S601: and configuring a cancellation rule and a verification rule. For simplicity of representation, only operations S601 and S204 are illustrated in fig. 6. As shown in fig. 6, the above-described operation S601 is performed before operation S204. In other embodiments, the above-described operation S601 is performed before operations S201 to S204.
Fig. 7 schematically shows a detailed implementation flowchart of operation S601 according to an embodiment of the present disclosure.
According to an embodiment of the present disclosure, referring to fig. 7, the above-described operation S601 of configuring the offset rule and the verification rule includes the following operations: s701, S702, and S703.
In operation S701, rule configuration information for candidate data processing scenarios including the data processing scenario to be billed is received, the rule configuration information including: offset rule information, check rule information, and generate script types.
In the implementation scenario of the above operation S701, the operation S701 may be performed by the terminal device. The above operation S701 may also be performed by a server, where the rule configuration information may be configured by a user on a terminal device, the terminal device sends rule configuration information of the user to the server, and the server receives the rule configuration information.
In operation S702, semantic verification is performed on the rule configuration information.
For example, a value is taken from an object in which the attribute should exist. Illustratively, if a preset subject is used in a preset order of offset, then the preset subject must be defined.
In operation S703, when the rule configuration information passes the semantic verification, a cancellation rule code and a verification rule code corresponding to the generation script type are generated according to the generation script type, and the cancellation rule code and the verification rule code are used as configured cancellation rules and verification rules.
Fig. 8 schematically illustrates a flow chart of a method of data processing according to yet another embodiment of the present disclosure.
On the basis of the foregoing embodiments, the method for data processing provided by the embodiments of the present disclosure includes, in addition to operations S201 to S204 and S601 described above, operation S801: and loading the offset rule and the verification rule. For simplicity of representation, only operation S601, operation S204, and operation S801 are illustrated in fig. 7. As shown in fig. 8, the above-described operation S801 is performed after operation S601 and before operation S204. In the implementation scenario of the above operation S801, the operation S801 may be performed by a terminal device or may be performed by a server.
Fig. 9 schematically shows a detailed implementation flowchart of operation S801 according to an embodiment of the disclosure.
According to an embodiment of the present disclosure, referring to fig. 9, the above-described operation S801 of loading the offset rule and the verification rule includes the following operations: s901, S902 and S903.
In operation S901, a generation script type of the offset rule code and the check rule code is acquired.
In operation S902, a target loader to be started, which matches the generated script type, is determined according to the generated script type.
In operation S903, the target loader is started to load the offset rule code and the check rule code.
According to an embodiment of the present disclosure, in operation S903, it may further include: and determining whether the offset rule code and the check rule code are loaded.
A second exemplary embodiment of the present disclosure provides an apparatus for data processing.
Fig. 10 schematically shows a block diagram of a data processing apparatus according to an embodiment of the present disclosure.
Referring to fig. 10, an apparatus 1000 for data processing according to an embodiment of the present disclosure includes: a request receiving module 1001, a data acquiring module 1002, a data converting module 1003, and a data processing module 1004.
The request receiving module 1001 is configured to receive a data operation request, where the data operation request includes: and aiming at target operation instructions of the bill to be returned.
The data obtaining module 1002 is configured to obtain, when the data operation request is received, the to-be-returned bill and to-be-processed data in the bill specification of the to-be-returned bill.
The data conversion module 1003 is configured to convert the data to be processed according to a preset subject, and obtain the bill to be returned, and the first data item and the second data item of the bill with details matching the preset subject respectively. The data conversion module 1003 may include a functional module or a sub-module for implementing the operations S301 to S304.
The data processing module 1004 is configured to perform data cancellation and verification on the first data item and the second data item according to the target operation instruction and a pre-configured cancellation rule and verification rule, so as to obtain a result after data processing. The data processing module 1004 may include functional modules or sub-modules for implementing the operations S401, S402a, S402b, S403, S404a, and S404 b.
The apparatus 1000 may be a terminal device or a server. In the terminal device, the data conversion module 1003 and the data processing module 1004 may be functional modules in a rule engine, which may be embedded in an application (e.g., a financial-type application) installed to the apparatus for processing a data operation request.
According to an embodiment of the present disclosure, the above-described apparatus 1000 further includes the following modules: a configuration module and a loading module.
The configuration module is used for configuring the offset rule and the verification rule module. The configuration module includes functional modules or sub-modules for implementing operations S701 to S703.
The loading module is used for loading the offset rule and the verification rule. The loading module includes functional modules or sub-modules for implementing operations S901 to S903.
Any of the above-described request receiving module 1001, data acquiring module 1002, data converting module 1003, data processing module 1004, configuration module, and loading module may be incorporated in one module to be implemented, or any of the modules may be split into a plurality of modules. Or at least some of the functionality of one or more of the modules may be combined with, and implemented in, at least some of the functionality of other modules. At least one of the request receiving module 1001, the data obtaining module 1002, the data converting module 1003, the data processing module 1004, the configuration module and the loading module may be implemented at least in part as hardware circuitry, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or by hardware or firmware in any other reasonable way of integrating or packaging the circuitry, or in any one of or a suitable combination of three of software, hardware and firmware. Or at least one of the request receiving module 1001, the data obtaining module 1002, the data converting module 1003, the data processing module 1004, the configuration module and the loading module may be at least partially implemented as a computer program module which, when executed, may perform the corresponding functions.
A third exemplary embodiment of the present disclosure provides an electronic device.
Fig. 11 schematically shows a block diagram of an electronic device provided by an embodiment of the disclosure.
Referring to fig. 11, an electronic device 1100 provided by an embodiment of the present disclosure includes a processor 1101, a communication interface 1102, a memory 1103, and a communication bus 1104, where the processor 1101, the communication interface 1102, and the memory 1103 complete communication with each other through the communication bus 1104; a memory 1103 for storing a computer program; the processor 1101 is configured to implement the method of data processing as described above when executing the program stored in the memory.
The fourth exemplary embodiment of the present disclosure also provides a computer-readable storage medium. The computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements a method of data processing as described above.
The computer-readable storage medium may be embodied in the apparatus/means described in the above embodiments; or may exist alone without being assembled into the apparatus/device. The computer-readable storage medium carries one or more programs which, when executed, implement methods in accordance with embodiments of the present disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example, but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
It should be noted that in this document, relational terms such as "first" and "second" and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing is merely a specific embodiment of the disclosure to enable one skilled in the art to understand or practice the disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the disclosure. Thus, the present disclosure is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (14)

1.A method of data processing, comprising:
receiving a data operation request, the data operation request comprising: target operation instructions for bill to be returned;
Under the condition that the data operation request is received, acquiring the to-be-returned bill and to-be-processed data in the bill specification of the to-be-returned bill;
Converting the data to be processed according to a preset subject, and respectively and correspondingly obtaining a first data item and a second data item of the bill to be returned, wherein the bill detail is matched with the preset subject; the preset subjects are subjects adapted to the current data processing scene, and the current data processing scene is the data processing scene corresponding to the bill to be returned;
checking the correctness of the first data item and the second data item according to a pre-configured checking rule;
Under the condition that the correctness of the first data item and the second data item pass verification, according to a pre-configured cancellation rule and the target operation instruction, performing data cancellation on the second data item or the first data item and the second data item to obtain cancelled bill data and bill detail data;
checking the correctness of the bill data and bill detail data after the offset according to the checking rule;
And under the condition that the correctness check of the bill data and the bill detail data after the offset is passed, taking the bill data and the bill detail data after the offset as the result after the data processing.
2. The method of claim 1, wherein the cancellation rules are associated with an identification of a data processing scenario, the cancellation rules comprising: a first data processing logic to preset a cancellation order for the preset objective and cancel in a candidate data processing scenario, the candidate data processing scenario comprising: the data processing scene corresponding to the target operation instruction;
And performing data cancellation on the second data item according to a pre-configured cancellation rule and the target operation instruction to obtain cancelled bill data and bill detail data, wherein the method comprises the following steps:
Determining a target cancellation rule corresponding to the target operation instruction according to the identification of the data processing scene associated with the cancellation rule, wherein the target cancellation rule comprises: a first target logic for canceling the target canceling sequence for the preset subject;
according to the first target logic, the following operations are performed:
Determining that the target operation instruction corresponds to operation detail data of each preset department objective based on the target offset sequence;
based on the operation detail data, conducting offset processing on the second data item to obtain offset bill detail data; and
And summarizing the bill detail data after the offset to obtain the bill data after the offset.
3. The method of claim 2, wherein verifying the correctness of the cancelled billing data and billing detail data comprises:
summarizing the operation detail data according to the preset subjects to obtain data to be offset;
based on the data to be offset, the first data item is offset to obtain first bill data to be verified;
Determining whether the first bill data to be verified is consistent with the bill data after the cancellation;
And under the condition that the first bill data to be checked is inconsistent with the bill data after the offset, the correctness check of the bill data after the offset and the bill detail data is not passed.
4. The method of claim 1, wherein the cancellation rules are associated with an identification of a data processing scenario, the cancellation rules comprising: a preset cancellation order for the preset objective under a candidate data processing scenario, and a cancelled second data processing logic, the candidate data processing scenario comprising: the data processing scene corresponding to the target operation instruction;
And performing data cancellation on the first data item and the second data item according to a pre-configured cancellation rule and the target operation instruction to obtain cancelled bill data and bill detail data, wherein the method comprises the following steps of:
Determining a target cancellation rule corresponding to the target operation instruction according to the identification of the data processing scene associated with the cancellation rule, wherein the target cancellation rule comprises: a second target logic for canceling the target canceling sequence for the preset subject;
According to the second target logic, the following operations are performed:
Determining that the target operation instruction corresponds to operation detail data of each preset department objective based on the target offset sequence;
based on the operation detail data, conducting offset processing on the second data item to obtain offset bill detail data;
summarizing the operation detail data according to the preset subjects to obtain data to be offset; and
And based on the data to be offset, conducting offset processing on the first data item to obtain offset bill data.
5. The method of claim 4, wherein verifying the correctness of the cancelled billing data and billing detail data comprises:
Summarizing the bill detail data after the cancellation to obtain second bill data to be verified;
determining whether the second bill data to be verified is consistent with the bill data after the cancellation;
and under the condition that the second bill data to be checked is inconsistent with the bill data after the offset, the correctness check of the bill data after the offset and the bill detail data is not passed.
6. The method of any of claims 2-5, wherein the target operational instruction comprises at least one of: performing an expiration repayment operation of the first amount, a refund operation of the second amount, and a charge deduction operation of the third amount;
Wherein the determining, based on the target cancellation order, that the target operation instruction corresponds to operation detail data of each preset objective includes at least one of:
Based on the target offset sequence, the first amount is divided into preset subjects in sequence, and operation detail data of repayment operations corresponding to the preset subjects are obtained; or alternatively
If the second amount is lower than the refund allowance, dividing the second amount to each preset subject in sequence based on the target cancellation order to obtain operation detail data of refund operation corresponding to each preset subject; if the second amount is greater than the refund allowance, dividing the refund allowance into preset subjects in sequence based on the target cancellation order, and obtaining operation detail data of refund operation corresponding to the preset subjects; or alternatively
Under the condition that the third amount is lower than the charge deduction limit, the third amount is sequentially divided into preset subjects based on the target cancellation order, and operation detail data corresponding to the preset subjects in charge deduction operation are obtained; and under the condition that the third amount is larger than the charge reduction limit, dividing the charge reduction limit into preset subjects in sequence based on the target cancellation order, and obtaining operation detail data of charge reduction operation corresponding to the preset subjects.
7. The method of any of claims 2-5, wherein the target operation instruction comprises: performing advanced repayment operation of the fourth amount;
Wherein the determining, based on the target cancellation order, that the target operation instruction corresponds to operation detail data of each preset objective includes:
Determining the corresponding non-occurrence amount to be refund of the advanced repayment operation; deducting the amount which is not subjected to refund from the fourth amount to obtain an actual refund amount; based on the target offset sequence, dividing the non-generated amount to be refund and the actual refund amount to each preset subject in sequence, and correspondingly obtaining first operation detail data and second operation detail data of the charge reduction operation and the repayment operation corresponding to each preset subject;
For the advanced repayment operation, the process of canceling the second data item based on the operation detail data to obtain bill detail data after canceling includes: based on the first operation detail data, performing offset processing under the expense-free operation on the second data item to obtain a first detail result; and based on the second operation detail data, performing offset processing under repayment operation on the first detail result to obtain offset bill detail data.
8. The method of any of claims 1-5, wherein the verifying the correctness of the first data item and the second data item comprises:
checking the consistency of the first data item and the summarized second data item;
and under the condition that the first data item is inconsistent with the second data item after being summarized, the correctness check of the first data item and the second data item is not passed.
9. The method according to claim 1, wherein the converting the to-be-processed data according to a preset subject corresponds to obtaining the to-be-returned bill, the bill specification matching the first data item and the second data item of the preset subject, respectively, and includes:
Acquiring a target data table template corresponding to the data processing scene of the bill to be returned from the pre-constructed data table templates aiming at different data processing scenes;
obtaining a preset subject according to the column information of the target data table template;
Converting the data to be processed in the bill to be returned to obtain first column data of each preset department corresponding to the same data row in the target data table template, wherein the first column data is a first data item;
And converting the data to be processed in the current bill detail aiming at the data to be processed in each bill detail to obtain second column data of each preset order corresponding to the same data row in the target data table template, wherein the second column data is a second data item.
10. The method as recited in claim 1, further comprising: configuring a cancellation rule and a verification rule; the configuration cancellation rules and verification rules include:
Receiving rule configuration information for candidate data processing scenes, wherein the candidate data processing scenes comprise the data processing scenes to be billed, and the rule configuration information comprises: the method comprises the steps of canceling rule information, checking rule information and generating script types;
Carrying out semantic verification on the rule configuration information;
And under the condition that the rule configuration information passes the semantic verification, generating a cancellation rule code and a verification rule code corresponding to the generation script type according to the generation script type, wherein the cancellation rule code and the verification rule code are used as configured cancellation rules and verification rules.
11. The method as recited in claim 10, further comprising: loading a cancellation rule and a verification rule; the loading offset rule and the verification rule comprise:
Acquiring the generated script types of the offset rule codes and the check rule codes;
determining a target loader matched with the generated script type to be started according to the generated script type;
the target loader is launched to load the offset rule code and the check rule code.
12. An apparatus for data processing, comprising:
the request receiving module is used for receiving a data operation request, and the data operation request comprises: target operation instructions for bill to be returned;
The data acquisition module is used for acquiring the to-be-returned bill and the to-be-processed data in the bill specification of the to-be-returned bill under the condition that the data operation request is received;
The data conversion module is used for converting the data to be processed according to a preset subject, and respectively and correspondingly obtaining a first data item and a second data item of the bill to be returned, wherein the bill detail is matched with the preset subject; the preset subjects are subjects adapted to the current data processing scene, and the current data processing scene is the data processing scene corresponding to the bill to be returned; and
The data processing module is used for checking the correctness of the first data item and the second data item according to a pre-configured check rule; under the condition that the correctness of the first data item and the second data item pass verification, according to a pre-configured cancellation rule and the target operation instruction, performing data cancellation on the second data item or the first data item and the second data item to obtain cancelled bill data and bill detail data; checking the correctness of the bill data and bill detail data after the offset according to the checking rule; and under the condition that the correctness check of the bill data and the bill detail data after the offset is passed, taking the bill data and the bill detail data after the offset as the result after the data processing.
13. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
A processor for implementing the method of any one of claims 1-11 when executing a program stored on a memory.
14. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the method of any of claims 1-11.
CN202111177937.2A 2021-10-09 2021-10-09 Data processing method, device, electronic equipment and medium Active CN113822660B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111177937.2A CN113822660B (en) 2021-10-09 2021-10-09 Data processing method, device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111177937.2A CN113822660B (en) 2021-10-09 2021-10-09 Data processing method, device, electronic equipment and medium

Publications (2)

Publication Number Publication Date
CN113822660A CN113822660A (en) 2021-12-21
CN113822660B true CN113822660B (en) 2024-05-24

Family

ID=78920165

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111177937.2A Active CN113822660B (en) 2021-10-09 2021-10-09 Data processing method, device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN113822660B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115080509B (en) * 2022-06-10 2024-09-06 北京达佳互联信息技术有限公司 Data processing method and device, electronic equipment and storage medium

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102163316A (en) * 2011-04-26 2011-08-24 中国工商银行股份有限公司 Repayment data processing device, system and method
JP2016025490A (en) * 2014-07-22 2016-02-08 富士ゼロックス株式会社 Information processing system, information processing apparatus, portable terminal device and program
CN107656955A (en) * 2017-03-14 2018-02-02 平安科技(深圳)有限公司 Refund data are offerred method and apparatus in batches
CN109101296A (en) * 2018-07-10 2018-12-28 上海维信荟智金融科技有限公司 Distributed auto deduction method and system
CN109508975A (en) * 2018-11-28 2019-03-22 阿里巴巴集团控股有限公司 Record and querying method, the device and electronic equipment of a kind of bill event by stages
CN109584033A (en) * 2017-09-28 2019-04-05 平安普惠企业管理有限公司 To public repayment method, device, equipment and computer readable storage medium
CN109636594A (en) * 2018-10-16 2019-04-16 深圳壹账通智能科技有限公司 Assets package management method, device, equipment and storage medium based on big data
JP2019139391A (en) * 2018-02-07 2019-08-22 株式会社オービック Reconciliation processor and reconciliation processing method and reconciliation processing program
CN110175906A (en) * 2019-04-28 2019-08-27 中国工商银行股份有限公司 Data processing method and data processing system
CN110930240A (en) * 2019-11-21 2020-03-27 深圳乐信软件技术有限公司 Repayment method and device, terminal equipment and storage medium
CN110991150A (en) * 2019-12-16 2020-04-10 中国铁塔股份有限公司 Data format conversion method and device and account reporting system
CN111178867A (en) * 2020-01-02 2020-05-19 中国建设银行股份有限公司 Data splitting method and data splitting device
CN112465628A (en) * 2020-12-02 2021-03-09 软通动力信息技术(集团)股份有限公司 Data verification method and device, electronic equipment and storage medium
CN113112344A (en) * 2021-04-21 2021-07-13 京东数科海益信息科技有限公司 Business processing method, device, storage medium and computer program product
CN113139866A (en) * 2021-04-30 2021-07-20 平安普惠企业管理有限公司 Debt data processing method, device, equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190095899A1 (en) * 2017-09-26 2019-03-28 American Express Travel Related Services Company, Inc. Segmenting multiple repayment schemes
TWI777991B (en) * 2017-11-22 2022-09-21 互立金交易平台股份有限公司 Fund transaction platform
CN110019244A (en) * 2018-05-14 2019-07-16 网联清算有限公司 Data processing method, device and computer readable storage medium
CA3058043A1 (en) * 2019-08-13 2021-02-13 The Toronto-Dominion Bank Debit-based installment financing

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102163316A (en) * 2011-04-26 2011-08-24 中国工商银行股份有限公司 Repayment data processing device, system and method
JP2016025490A (en) * 2014-07-22 2016-02-08 富士ゼロックス株式会社 Information processing system, information processing apparatus, portable terminal device and program
CN107656955A (en) * 2017-03-14 2018-02-02 平安科技(深圳)有限公司 Refund data are offerred method and apparatus in batches
CN109584033A (en) * 2017-09-28 2019-04-05 平安普惠企业管理有限公司 To public repayment method, device, equipment and computer readable storage medium
JP2019139391A (en) * 2018-02-07 2019-08-22 株式会社オービック Reconciliation processor and reconciliation processing method and reconciliation processing program
CN109101296A (en) * 2018-07-10 2018-12-28 上海维信荟智金融科技有限公司 Distributed auto deduction method and system
CN109636594A (en) * 2018-10-16 2019-04-16 深圳壹账通智能科技有限公司 Assets package management method, device, equipment and storage medium based on big data
CN109508975A (en) * 2018-11-28 2019-03-22 阿里巴巴集团控股有限公司 Record and querying method, the device and electronic equipment of a kind of bill event by stages
CN110175906A (en) * 2019-04-28 2019-08-27 中国工商银行股份有限公司 Data processing method and data processing system
CN110930240A (en) * 2019-11-21 2020-03-27 深圳乐信软件技术有限公司 Repayment method and device, terminal equipment and storage medium
CN110991150A (en) * 2019-12-16 2020-04-10 中国铁塔股份有限公司 Data format conversion method and device and account reporting system
CN111178867A (en) * 2020-01-02 2020-05-19 中国建设银行股份有限公司 Data splitting method and data splitting device
CN112465628A (en) * 2020-12-02 2021-03-09 软通动力信息技术(集团)股份有限公司 Data verification method and device, electronic equipment and storage medium
CN113112344A (en) * 2021-04-21 2021-07-13 京东数科海益信息科技有限公司 Business processing method, device, storage medium and computer program product
CN113139866A (en) * 2021-04-30 2021-07-20 平安普惠企业管理有限公司 Debt data processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN113822660A (en) 2021-12-21

Similar Documents

Publication Publication Date Title
US20200218737A1 (en) Method, system and program product for matching of transaction records
US8825547B2 (en) Apparatus, method, and computer program product for data cleansing and/or biller scrubbing
CN109285069B (en) Resource transfer method, device and server
CN108734457A (en) A kind of Withdrawing method unified under cash register system
CN111861717B (en) Contract account management method, device, equipment and storage medium
US20190147416A1 (en) System and method for facilitating mobile payments via mobile messaging
CN111383089A (en) Account adjusting method, account adjusting device, terminal equipment and storage medium
CN108765106A (en) A kind of integrated financial affairs receipt generation method of industry wealth
CN113822660B (en) Data processing method, device, electronic equipment and medium
US20150206145A1 (en) Id management device, id management method, and id management program
CN108694660A (en) A kind of industry wealth integration account checking method
CN108711045A (en) A kind of cash register system and cash method
CN108762727B (en) Event-driven financial information processing method and system
Rust Unblocked cash: Piloting accelerated cash transfer delivery in Vanuatu
CN110991992B (en) Processing method and device of business process information, storage medium and electronic equipment
JP5581350B2 (en) Method and system for account management by common number
CN107209885A (en) The payment serviced for consumer remote and the system of communication connection
EP3825940A1 (en) Electronic money mediation system and electronic money mediation method
CN108765108A (en) A kind of financial data system and method under industry wealth integration
CN108765107A (en) A kind of data save method under industry wealth integration
CN111415263A (en) Data matching method and device
CN112529549A (en) Electronic settlement method, device and storage medium
KR20160070932A (en) Method for generating virtual account number and server performing the same
CN113706045B (en) Funds payment method, apparatus, device, medium and program product
CN116468432B (en) Order processing method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant