CN111367776A - Recording method, device, equipment and storage medium of resource transfer service - Google Patents

Recording method, device, equipment and storage medium of resource transfer service Download PDF

Info

Publication number
CN111367776A
CN111367776A CN202010136727.8A CN202010136727A CN111367776A CN 111367776 A CN111367776 A CN 111367776A CN 202010136727 A CN202010136727 A CN 202010136727A CN 111367776 A CN111367776 A CN 111367776A
Authority
CN
China
Prior art keywords
service
resource transfer
recording
account
resource
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.)
Withdrawn
Application number
CN202010136727.8A
Other languages
Chinese (zh)
Inventor
赵雨露
樊士峰
黄�俊
陈宝龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN202010136727.8A priority Critical patent/CN111367776A/en
Publication of CN111367776A publication Critical patent/CN111367776A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging

Abstract

The application discloses a recording method, a device, equipment and a storage medium of a resource transfer service, belonging to the technical field of computers. The method comprises the following steps: acquiring a recording request of a resource transfer service; acquiring the service type of the resource transfer service; selecting a target recorder matched with the service type from the pre-configured recorders; generating a recording rule of the resource transfer service through the target recorder; and generating a recording result of the resource transfer service according to the recording rule. According to the technical scheme, the recording rule is automatically generated through the recorder, the problems that configuration is complicated and mistakes are easily made due to manual configuration of the recording rule are effectively solved, on one hand, configuration complexity and configuration difficulty are reduced, on the other hand, the problems that system safety and reliability are not high due to configuration mistakes can be avoided, and system safety and reliability are improved.

Description

Recording method, device, equipment and storage medium of resource transfer service
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a recording method, a recording device, recording equipment and a storage medium for resource transfer business.
Background
At present, enterprises can scientifically check and record resource coming and going after each resource transfer service (such as payment services of transfer, withdrawal, recharge, withholding and the like).
In the related art, a professional can configure a recording rule in advance for a resource transfer service according to matching conditions such as a service type, a document type, a money type and the like, wherein each matching condition corresponds to two or more recording rules due to the adoption of duplex accounting. After an enterprise extracts various resource transfer business data through an offline big data platform, the enterprise can configure corresponding recording rules for the resource transfer businesses according to matching conditions of the resource transfer businesses, such as business types, bill types, money types and the like, further, the enterprise can perform accounting statistics on the resource transfer businesses according to the recording rules, and the transaction details corresponding to the resource transfer businesses are mapped into a recording list.
Disclosure of Invention
The embodiment of the application provides a recording method, a device, equipment and a storage medium for resource transfer service. The technical scheme is as follows:
in one aspect, an embodiment of the present application provides a method for recording a resource transfer service, where the method includes:
acquiring a recording request of a resource transfer service;
acquiring the service type of the resource transfer service;
selecting a target recorder matched with the service type from pre-configured recorders;
generating a recording rule of the resource transfer service through the target recorder, wherein the recording rule refers to a resource circulation recording mode of each account in the resource transfer service;
and generating a recording result of the resource transfer service according to the recording rule.
On the other hand, an embodiment of the present application provides a recording apparatus for a resource transfer service, where the apparatus includes:
the request acquisition module is used for acquiring a recording request of the resource transfer service;
the type obtaining module is used for obtaining the service type of the resource transfer service;
the recorder selection module is used for selecting a target recorder matched with the service type from pre-configured recorders;
the rule generating module is used for generating a recording rule of the resource transfer business through the target recorder, wherein the recording rule refers to a resource flow recording mode of each account in the resource transfer business;
and the result generating module is used for generating a recording result of the resource transfer service according to the recording rule.
In another aspect, an embodiment of the present application provides a computer device, where the computer device includes a processor and a memory, where the memory stores a computer program, and the computer program is loaded and executed by the processor to implement the recording method of the resource transfer service.
In still another aspect, the present application provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the recording method of the resource transfer service.
In a further aspect, a computer program product is provided, which, when run on a computer device, causes the computer device to perform the above-mentioned recording method of resource transfer.
The technical scheme provided by the embodiment of the application can bring the following beneficial effects:
after the recording request of the resource transfer service is acquired, the corresponding recorder is selected according to the service type of the resource transfer service, the recording rule is generated through the recorder, and then the recording result is generated according to the recording rule, so that the automatic generation of the recording rule through the recorder is realized, the problems of complicated configuration and high error probability caused by manual configuration of the recording rule are effectively solved, the configuration complexity and the configuration difficulty are reduced on one hand, the problems of low system safety and reliability caused by configuration error can be avoided on the other hand, and the system safety and reliability are improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of a business processing system provided by one embodiment of the present application;
fig. 2 is a flowchart of a recording method of a resource transfer service according to an embodiment of the present application;
fig. 3 is a flowchart of a recording method of a resource transfer service according to another embodiment of the present application;
fig. 4 is a flowchart of a recording method of a resource transfer service according to another embodiment of the present application;
fig. 5 is a block diagram of a recording apparatus of a resource transfer service provided in an embodiment of the present application;
fig. 6 is a block diagram of a recording apparatus of a resource transfer service according to another embodiment of the present application;
fig. 7 is a block diagram of a computer device according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Referring to fig. 1, a schematic diagram of a service processing system according to an embodiment of the present application is shown. The service processing system may include: a data preprocessing device 10, a rule configuration device 20, a record generation device 30, and a result registration device 40.
The data preprocessing device 10 refers to a device for acquiring a recording request of a resource transfer service, verifying the recording request, and generating an original recording certificate. Optionally, the data preprocessing device 10 may obtain a record request corresponding to the resource transfer service in real time, further obtain corresponding service information according to the record request, verify the service information, and detect whether the data in the service information is correct. If the service information passes the verification, an original record certificate corresponding to the resource transfer service is generated, and the original record certificate is sent to the record generating device 30. In a possible embodiment, the data preprocessing device 10 sends the original record voucher to the record generating device 30 in real time; in another possible embodiment, the data preprocessing device 10 may send one or more original record credentials to the record generation device 30 at preset time intervals. Optionally, if the service information corresponding to the record request is not verified, the data preprocessing device 10 may generate alarm information corresponding to the record request, where the alarm information may include a reason that the service information is not verified, and further, may send the alarm information to a device that sends the record request, request the device that sends the record request to perform detection and repair on data in the service information, and obtain a record request newly generated after the detection and repair.
The rule configuration device 20 refers to a device that stores recorder configuration rules. The configuration rule may be manually input, for example, a configuration rule of "if the service type is a, configure the first recorder" is input; further, the rule configuration device 20 may verify whether the configuration rule is feasible according to its own algorithm, and store the configuration rule if the configuration rule is confirmed to be feasible; and if the configuration rule is judged to be not feasible, reminding re-inputting a new configuration rule.
The record generating device 30 is a device that matches a recorder for the resource transfer service and generates a record rule. Optionally, after receiving the original record credential, the record generating device 30 may automatically match a corresponding recorder for the resource transfer service according to the service type of the resource transfer request corresponding to the original record credential, further generate a corresponding record rule according to the resource flow direction corresponding to the service through the recorder, and generate a multiple record credential corresponding to the service according to the record rule.
The result registration device 40 refers to a device that performs accounting for the multiple record voucher. Alternatively, the result registration device 40 may perform an account registration operation based on the multiple record voucher to generate a recording result for recording various resource flow situations when acquiring the multiple record voucher.
Alternatively, the preprocessing device 10, the rule configuring device 20, the record generating device 30, and the result registering device 40 may communicate with each other via a network. It should be noted that the service processing system may include one or more Computer devices, which refer to electronic devices with data calculation, processing and storage capabilities, such as a server or a PC (Personal Computer). The functions implemented by the preprocessing device 10, the rule configuration device 20, the record generation device 30, and the result registration device 40 may be implemented by one computer device or by a plurality of computer devices, which is not limited in the embodiment of the present application. For convenience of explanation, the data preprocessing device 10, the rule configuration device 20, the record generating device 30, and the result registering device 40 are collectively referred to as computer devices hereinafter.
Referring to fig. 2, a flowchart of a recording method for a resource transfer service according to an embodiment of the present application is shown. The method comprises the following steps (201-205):
step 201, a recording request of the resource transfer service is obtained.
The resource transfer service refers to a service for performing transfer operation on resources in a user account. Alternatively, the resource transfer service may be a payment service, such as transfer, payment, receipt, withdrawal, recharge, withhold, debit, and repayment. Accordingly, in a payment transaction, the resource may be funds.
The recording request refers to a request for recording the resource transfer service. Optionally, the record request includes service information of the resource transfer service, where the service information may include an account identifier, an account type, a resource flow direction, a service type, a resource transfer channel identifier, and the like. After obtaining the recording request, the computer device may directly obtain the service information of the resource transfer service from the recording request. In another possible embodiment, the recording request includes identification information of the resource transfer service. After acquiring the recording request, the computer device may acquire identification information of the resource transfer service from the recording request, and further acquire service information of the resource transfer service from a service provider according to the identification information.
The service provider refers to a server for providing a resource transfer service. Alternatively, the computer device may obtain a recording request of the resource transfer service from a service provider of the resource transfer service. When the resource transfer service is a payment service, the service provider of the resource transfer service may be an accounting system of the payment service.
In the embodiment of the present application, a manner in which the service provider sends the record request of the resource transfer service to the computer device is not limited. In one possible implementation, the recording request may be sent in the form of messaging middleware. In this scenario, the service provider acts as the message producer and the computer device acts as the message consumer. Optionally, the service provider sends the recording request to the message middleware after generating the recording request, and further, the message middleware may actively send the recording request to the computer device after acquiring the recording request, or may send the recording request to the computer device after receiving the acquisition request of the computer device.
It should be noted that, in the embodiment of the present application, in order to ensure timeliness of processing the resource transfer service, the message middleware is configured to obtain a recording request of the resource transfer service from a service provider in real time. For example, the service provider may monitor the resource transfer service in real time, obtain the service information of the resource transfer service in real time when it is monitored that the resource transfer service is generated, and further generate a recording request according to the service information, and then the service provider may send the recording request to the message middleware in real time.
Of course, in another possible embodiment, the computer device may also obtain the record request directly through the service provider, which is not limited in this embodiment of the application.
Step 202, obtaining the service type of the resource transfer service.
The service type of the resource transfer service can be set according to the account type and the resource flow direction. For example, the service type of the resource transfer service may include resource transfer-out and transfer-in, resource order transfer-out, resource order transfer-in, resource borrowing, resource repayment, and the like. Taking the payment service as an example, the service types of the payment service may include fund transfer, fund debit and credit, fund repayment and the like.
In this embodiment, after acquiring the recording request, the computer device may further acquire service information of a resource transfer service corresponding to the recording request, and acquire a corresponding service type according to the service information. Optionally, the record request may include service information of the resource transfer service, and after obtaining the record request, the computer device may directly obtain the service information of the resource transfer service through the record request, and further obtain the service type from the service information.
Step 203, selecting a target recorder matched with the service type from the pre-configured recorders.
The recorder is configured to generate a recording rule for the resource transfer service, and optionally, the recorder may be a computer program composed of a service recording algorithm. The target recorder refers to a recorder matched with the service type of the resource transfer service. Wherein, the recorder is configured in the computer equipment in advance. Optionally, after acquiring the service type, the computer device may select, according to the service type, a target recorder matching the service type from preconfigured recorders. In the embodiment of the present application, the number of preconfigured recorders is not limited, and may be set according to the number of divisions of the service type.
In this embodiment, the computer device may select a target recorder matching the service type from the preconfigured recorders according to the configuration rule. Wherein, the configuration rule is used for determining the matching relationship between the service type and the recorder.
Optionally, the service type and the recorder include the following three matching relationships:
(1) and the first service type refers to the service type of the service information including the resource transfer account and the resource transfer account. The resource transfer-in account refers to an account to which the resource is transferred, namely the resource transferred-in account corresponding to the resource transfer service is in an increased state; the resource transfer-out account refers to an account for transferring out the resource, that is, the resource in the resource transfer-out account corresponding to the resource transfer service is in a reduced state. That is, the resources in the resource transfer service are transferred from the resource transfer-out account to the resource transfer-in account, and the amount of the resources decreased in the resource transfer-out account may be equal to the amount of the resources increased in the resource transfer-in account. For example, a transfer in a payment scenario, where funds are transferred from a first account to a second account. At this time, the resources in the first account are reduced, the accounts are transferred out for the resources, the resources in the second account are increased, the accounts are transferred in for the resources, and the reduced funds in the first account are equal to the amount of the funds increased in the second account.
In this case, the first recorder may determine, according to the first service type, a resource transfer-in account and a resource transfer-out account included in the service information corresponding to the first service type, and further generate a corresponding recording rule for the resource transfer service according to characteristics of the types and the numbers of the resource transfer-in account and the resource transfer-out account.
(2) And the second service type refers to the service type of at least two accounts with the same resource flow included in the service information. Optionally, the resource flow to the same account may be the same as the resource added account, or may be the same as the resource subtracted account. The resource adding accounts refer to accounts with simultaneously added resources, namely the resources of at least two accounts in the accounts corresponding to the resource transfer service are simultaneously added by the same number; the resource reducing account refers to an account in which resources are simultaneously reduced, that is, the resources of at least two accounts corresponding to the resource transfer service are simultaneously reduced by the same number. That is, the transfer direction of at least two account resources in the resource transfer service is the same, and is increased or decreased simultaneously. For example, when the funds of the third-party payment platform flow to a bank account in a payment scene, the funds can be transferred to the bank account through a third-party payment account corresponding to the bank account, at this time, the third-party payment account and the bank account are displayed as the same number of the funds added at the same time, and the third-party payment account and the bank account are the funds added accounts; for another example, in the payment scenario, when the fund of the bank account flows to the third party payment platform, the fund can be transferred from the bank account and flows into the third party payment platform through the third party payment account, at this time, the third party payment account and the bank account are displayed as the fund and are reduced by the same amount at the same time, and the third party payment account and the bank account are the fund reduction account.
In this case, the second recorder may determine, according to the second service type, a resource increasing account or a resource decreasing account included in the service information corresponding to the second service type, and further generate a corresponding recording rule for the resource transfer service according to characteristics of the resource increasing account or the resource decreasing account, such as the type and the number of the resource increasing account or the resource decreasing account.
(3) And the third service type refers to the service type of the service information including the known account and the account to be configured. The known account refers to an account of which the flow direction and the quantity of the resources are known, and the account to be configured refers to an account configured according to the service information and the known account. That is, the resource transfer service includes at least one known account, and other accounts to be configured can be configured according to the known account. For example, in a payment scenario, a recharge is performed, and funds are transferred into a recharge account, at this time, the amount of the funds transferred into and the amount of the transferred funds in the recharge account can be determined, so that the recharge account is a known account, further, a fund transfer-out account can be configured according to the recharge account, the fund transfer-out account is an account to be configured, wherein the fund transfer-out account can be configured according to the transfer channel of the recharge funds, and if the transfer channel is a bank channel, the fund transfer-out account is a bank account; and if the transfer channel is a third-party payment channel, the fund transfer-out account is a third-party account.
In this case, the third recorder may determine, according to the third service type, a known account included in the service information corresponding to the third service type, further configure a corresponding account to be configured according to the known account, and then generate a corresponding recording rule for the resource transfer service according to characteristics of the type, the number, and the like of the known account and the account to be configured.
It should be noted that the configuration relationship between the service type and the recorder is merely exemplary and explanatory, and in practical applications, a variety of configuration relationships and configuration rules may be set according to practical situations, which is not limited in the embodiment of the present application.
And step 204, generating a recording rule of the resource transfer service through the target recorder.
The recording rule refers to a resource flow recording mode of each account in the resource transfer business. Optionally, the computer device may record the details of the resource flow in the resource transfer service according to the recording rule. In this embodiment, after selecting the target recorder, the computer device may generate the recording rule of the resource transfer service through the target recorder.
In a possible implementation manner, the computer device may generate, by the target recorder, a recording rule according to a resource flow corresponding to the resource transfer service. Optionally, the step 204 includes the following sub-steps:
1. acquiring a resource flow direction corresponding to the resource transfer service;
2. acquiring element information corresponding to the resource transfer service according to the resource flow direction through a target recorder;
3. and generating a recording rule of the resource transfer service according to the element information.
The resource flow direction refers to the direction of resource transfer-out and/or the direction of resource transfer-in the resource transfer service. The element information refers to important information related to the flow direction of the resource in the resource transfer service. Optionally, the element information may include at least one of the following: resource accounts, resource account types, resource account numbers, and resource transfer operation types. The resource account refers to an account used in the resource transfer process; the resource account type refers to an account type obtained by classifying and dividing accounts according to contents or users; a resource transfer operation refers to a transfer operation performed on a resource, such as transferring the resource from a first account to a second account.
Taking a payment scenario as an example, the resource flow direction may be fund transfer, fund transfer-out, and fund transfer-in; the resource accounts can be a resource transfer-out account and a fund transfer-out account, wherein if the resource flow is fund transfer, the resource accounts simultaneously comprise a fund transfer-out account and a fund transfer-in account; the resource account type may be a merchant account, a personal account, a third party platform account, a bank account, and the like.
In this embodiment of the present application, after determining the target recorder corresponding to the resource transfer service, the computer device may further obtain a resource flow direction corresponding to the resource transfer service, where the resource flow direction may be obtained through service information corresponding to the recording request. Optionally, after the computer device obtains the resource flow direction, the target recorder may obtain element information corresponding to the resource transfer service according to the resource flow direction, and generate a recording rule of the resource transfer service according to the element information, where the recording rule may include a writing rule and an accounting rule. The writing rule refers to a recording method for accounting the resource transfer service, such as the sequence and position of account records; the accounting rule refers to an accounting method for the resource flow direction and quantity of the resource transfer service, such as how resources are increased or decreased, and the quantity of final resources. For example, in the case of loan in a payment scenario, the computer device may determine, according to the above element information, that the record rules of the resource transfer service include writing rules of "loan before loan, loan branch, borrower above, lender below", and accounting rules of "money increase in the same direction and money decrease in the opposite direction" (e.g., money increase in the borrower loan operation and money decrease in the lender loan operation).
And step 205, generating a recording result of the resource transfer service according to the recording rule.
The recorded result refers to a resource accounting result corresponding to the resource transfer service. Optionally, after obtaining the recording rule, the computer device may process the resource transfer service according to the recording rule, and obtain a recording result of the resource transfer service.
In this embodiment of the present application, the recording result of the resource transfer service includes a registration subject account and a registration branch account. The registered account accounts refer to resource records corresponding to all accounts, and the registered account accounts refer to account resource detail records corresponding to all accounts. For example, the registration subject account may include receivable accounts, payable accounts, loan accounts, repayment accounts, and the like; the registered account can include the resource details of the corresponding bank account and the third party payment account under the account receivable item.
For example, in a payment scenario, transferring a funds from a first account to a second account, after acquiring a recording rule of the transfer, the computer device generates a recording result of the transfer according to the recording rule, wherein a registered account in the recording result comprises an accounts receivable and an accounts payable, a registered sub-account corresponding to the accounts receivable accounts is used for receiving a funds from the second account, and a registered sub-account corresponding to the accounts payable accounts is used for transferring a funds from the first account.
It should be noted that the above description of the recorded result is only illustrative, and in practical applications, the recorded result may include recorded results of a plurality of resource transfer services. For example, for a business, a registered account may include receivable, payable, loan account, repayment account, and the like; the registered account accounts corresponding to the receivable accounts include a personal account, a third party payment account, a bank account income b fund (the personal account transfers the b fund from the bank account to the enterprise through the third party payment account), a merchant account, a bank account income c fund and the like. The third-party payment account is a general account corresponding to the third-party payment platform, is irrelevant to an individual account, and is only used for representing the account through which funds are transferred; similarly, the bank account refers to a general account corresponding to a bank, and is not related to an individual account and a merchant account, and is only used for indicating an account through which funds are transferred.
To sum up, in the technical solution provided in the embodiment of the present application, after the recording request of the resource transfer service is obtained, the corresponding recorder is selected according to the service type of the resource transfer service, the recording rule is generated by the recorder, and then the recording result is generated according to the recording rule, so that the recording rule is automatically generated by the recorder, the problems of complicated configuration and easy error caused by manual configuration of the recording rule are effectively solved, on one hand, the configuration complexity and the configuration difficulty are reduced, on the other hand, the problems of system safety and low reliability caused by configuration error can be avoided, and the system safety and reliability are improved.
In addition, a corresponding matching rule exists between the service type and the recorder, so that the accuracy of recorder configuration is effectively improved.
In addition, the resource transfer service is monitored in real time, and the service request of the resource transfer service is acquired through the message middleware technology, so that the real-time property of the resource transfer service processing is realized.
It should be noted that, in the embodiment of the present application, the configuration rule may be set and stored in advance. Optionally, the steps performed with respect to the configuration rule are as follows:
1. acquiring a candidate configuration rule;
2. checking whether the matching relation between the service type in the candidate configuration rule and the recorder is correct or not;
3. and responding to the verification of the candidate configuration rule, and storing the candidate configuration rule as an available configuration rule in the first database.
The candidate configuration rule refers to the configuration rule of the non-verified recorder and the service type. Alternatively, the candidate configuration rule may be manually input by a worker, and it should be noted that the number of the candidate configuration rules may be one or more, which is not limited in this embodiment of the application. The first database is a database for storing configuration rules that pass the verification.
Optionally, in this embodiment of the present application, after obtaining the candidate configuration rule, the computer device may check, through its own algorithm, a matching relationship between a service type in the candidate configuration rule and the recorder, if the matching relationship between the service type and the recorder is correct, the candidate configuration rule passes the check, and the computer device may store the candidate configuration rule as an available configuration rule in the first database; if the matching relationship between the service type and the recorder is incorrect, the candidate configuration rule fails to be verified, and the computer device may request to retrieve a new candidate configuration rule.
In a possible embodiment, the candidate configuration rule includes a candidate matching relationship between the service type and the logger, for example, the candidate configuration rule is "service type a corresponds to the first logger". Optionally, the computer device may directly determine whether the candidate configuration rule is correct according to the service type.
In another possible embodiment, the candidate configuration rule may include a candidate matching relationship between part of the service information of the resource transfer service and the logger, for example, the candidate configuration rule is that "the resource transfer service in which the resource is transferred from the first account to the second account corresponds to the first logger". Optionally, after obtaining the candidate configuration rule, the computer device may determine a service type according to the candidate configuration rule, and determine whether the candidate configuration rule is correct according to the service type; of course, the computer device may also determine whether the candidate configuration rule is correct directly according to the partial service information and the characteristics of the recorder, for example, the resource of the resource transfer service in the candidate configuration rule is transferred from the first account to the second account, and the service information of the first service type corresponding to the first recorder includes the resource transfer-in account and the resource transfer-out account, so that it may be determined that the candidate configuration rule passes the verification.
In summary, the candidate configuration rules can be stored as available configuration rules after passing the verification, thereby ensuring the accuracy of the configuration rules.
Referring to fig. 3, a flowchart of a recording method for a resource transfer service according to another embodiment of the present application is shown. The method can comprise the following steps (301-304):
step 301, a recording request of the resource transfer service is obtained.
Step 301 is the same as step 201 in the embodiment of fig. 2, and is specifically referred to the embodiment of fig. 2, which is not described herein again.
Step 302, according to the recording request, obtaining service information and verification information corresponding to the resource transfer service.
The service information refers to information corresponding to the resource transfer service, and optionally, the service information may include an account identifier, an account type, a resource flow direction, a service type, a resource transfer channel identifier, and the like. The verification information is used to determine whether the service information is correct, such as whether data in the service information is tampered.
Optionally, in this embodiment of the present application, the record request may include the service information, and after obtaining the record request, the computer device may obtain corresponding service information according to the record request, and further, according to a resource transfer channel identifier in the service information, invoke a gateway interface to obtain relevant information of the resource transfer channel as the verification information. It should be noted that the verification information may include information about the resource transfer service in the resource transfer channel, and determine whether the resource transfer service occurs and whether data corresponding to the resource transfer service is correct according to the verification information.
For example, the service information may include that the user B transfers to the account D at time C, the computer device may invoke the gateway to obtain the relevant information of the resource transfer channel corresponding to the account D as the verification information, and the verification information may include that the resource transfer channel corresponding to the account D obtains the transfer of the user B at time C, so as to determine the correctness and the validity of the service information, and prevent other devices from tampering the data maliciously.
Step 303, in response to the correctness of the service information, generating an original record certificate according to the service information and the verification information, and storing the original record certificate in the second database.
The condition refers to a restriction condition for determining whether the data in the service information is correct, and optionally, the condition may be that the service information conforms to the information content in the verification information. The original record credential is used to record the resource transfer condition of the resource transfer service, optionally, the original record credential is a credential generated under the condition that the service information is determined to be correct, and the original record credential may include indication information, service information, and verification information, where the indication information is used to indicate the accuracy of the service information. The second database is a database for storing the original record voucher.
In the embodiment of the present application, if the verification information and the service information satisfy the condition, it is determined that the information included in the service information conforms to the information included in the verification information, that is, the data in the service information is correct and has not been tampered, and further, the computer device may generate an original recording certificate according to the service information and the verification information. Of course, if the verification information and the service information do not satisfy the condition, it is determined that the information included in the service information does not conform to the information included in the verification information, that is, the data in the service information is incorrect and may not be tampered, further, the computer device may generate alarm information, where the alarm information may include a reason why the service information is not verified, further, the computer device may send the alarm information to a device that sends a recording request, request the device that sends the recording request to perform detection and repair on the data in the service information, and acquire a newly generated recording request after the detection and repair.
Step 304, obtaining the service type of the resource transfer service.
Step 305, selecting a target recorder matching the service type from the pre-configured recorders.
Step 306, generating a recording rule of the resource transfer service through the target recorder.
The steps 304-306 are the same as the steps 202-204 in the embodiment of fig. 2, and are specifically referred to the embodiment of fig. 2, which is not described herein again.
Step 307, converting the original recording certificate of the resource transfer service into a multiple recording certificate according to the recording rule.
The multiple record voucher is used for recording the resource transfer details corresponding to the resource transfer business. Optionally, the multiple record voucher may include resource transfer conditions of the accounts involved in the resource transfer service. Optionally, in this embodiment of the application, after obtaining the record rule, the computer device may process the resource transfer service according to the record rule, and convert an original record credential corresponding to the resource transfer service into a multiple record credential.
Taking the transfer of the payment scene as an example, transferring funds a from a first account to a second account, wherein the original record voucher corresponding to the transfer comprises the service information a funds transfer, and the step of transferring funds in the step 0: at the time of 10, transferring the account from the first account to the second account, wherein the bank channel identifier is e; the multiple record voucher corresponding to the transfer can comprise a first account transferring a fund, a bank account transferring a fund and a second account transferring a fund.
And 308, performing account book registration operation on the multiple record voucher to generate a record result of the resource transfer business.
Optionally, in this embodiment of the application, after acquiring the multiple record voucher, the computer device may perform an account book registration operation on the multiple record voucher to generate a record result of the resource transfer service. The recording result is introduced in step 205 in the embodiment of fig. 2, and is not described herein again.
In summary, in the technical scheme provided by the embodiment of the application, the original recording certificate is generated after the data in the service information is verified, so that the correctness of the service information is ensured, and the influence of malicious tampering on the subsequent acquisition of the recording result is effectively avoided.
With reference to fig. 4, the technical solution of the present application is described by taking the accounting entry in the payment scenario as an example.
Step 401, the data preprocessing module obtains a record request of a capital traffic.
Step 402, the data preprocessing module checks the service information corresponding to the record request. If the verification is passed, go to step 403; and if the record request does not pass the verification, the record request is acquired again.
Step 403, the data preprocessing module generates an original record certificate according to the service information, and stores the original record certificate in the second database.
Step 404, the data preprocessing module sends an original record certificate to the entry generating module; correspondingly, the entry generation module receives the original record voucher.
Step 405, the entry generation module obtains the service type of the capital traffic.
And 406, selecting a target entry device matched with the service type from the pre-configured entry devices by the entry generation module. Optionally, the first and second recorders may include a third recorder.
In step 407, the entry generation module generates an accounting entry rule of the fund transaction through the target entry register.
And 408, generating a double bookkeeping voucher of the fund transaction business by the entry generation module according to the accounting entry rule.
Step 409, the entry generation module sends a compound bookkeeping voucher to the bookkeeping module; correspondingly, the register book module receives the multiple bookkeeping voucher.
And step 410, the account book registering module performs account book registering operation on the duplex bookkeeping voucher to generate a registered account book and a registered account book of the fund transaction business.
It should be noted that, in the process of selecting a target entry device matched with the service type from the preconfigured entry devices, the entry generation module may determine the target entry device according to the configuration rule. Wherein the configuration rule can be generated by an entry configuration module. Optionally, the processing flow of the entry configuration module includes the following steps:
in step 411, the entry configuration module obtains candidate configuration rules.
Step 412, the entry configuration module verifies the candidate configuration rule, and if the candidate configuration rule passes the verification, step 413 is executed; if the configuration rule fails to pass the verification, the candidate configuration rule is obtained again.
In step 413, the entry configuration module stores the candidate configuration rule as a configuration rule in the first database.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Referring to fig. 5, a block diagram of a recording apparatus for a resource transfer service according to an embodiment of the present application is shown. The device has the function of realizing the recording method of the resource transfer service, and the function can be realized by hardware or by hardware executing corresponding software. The device can be a computer device and can also be arranged in the computer device. The apparatus 500 may comprise: a request acquisition module 501, a type acquisition module 502, a recorder selection module 503, a rule generation module 504 and a result generation module 505.
A request obtaining module 501, configured to obtain a record request of the resource transfer service.
A type obtaining module 502, configured to obtain a service type of the resource transfer service.
A recorder selection module 503, configured to select a target recorder matching the service type from preconfigured recorders.
A rule generating module 504, configured to generate, by the target recorder, a record rule of the resource transfer service, where the record rule refers to a resource flow record manner of each account in the resource transfer service.
And a result generating module 505, configured to generate a recording result of the resource transfer service according to the recording rule.
In an exemplary embodiment, the recorder selection module 503 is configured to select the target recorder matching the service type from the preconfigured recorders according to a configuration rule; wherein the configuration rule is used for determining a matching relationship between the service type and the recorder.
In an exemplary embodiment, the configuration rule includes at least one of the following matching relationships: the method comprises the following steps that a matching relation between a first service type and a first recorder is established, wherein the first service type refers to the service type of service information comprising a resource transfer account and a resource transfer account; a matching relationship between a second service type and a second recorder, wherein the second service type is a service type of at least two accounts with the same resource flow included in service information; and the third service type is a service type of the service information comprising a known account and an account to be configured.
In an exemplary embodiment, as shown in fig. 6, the apparatus 500 further comprises: a rule acquisition module 506, a rule checking module 507 and a rule storage module 508.
A rule obtaining module 506, configured to obtain candidate configuration rules.
A rule checking module 507, configured to check whether a matching relationship between the service type in the candidate configuration rule and the recorder is correct.
A rule storage module 508, configured to store the candidate configuration rule as an available configuration rule in the first database in response to the candidate configuration rule checking passing.
In an exemplary embodiment, the rule generating module 504 is configured to obtain a resource flow direction corresponding to the resource transfer service; acquiring element information corresponding to the resource transfer service according to the resource flow direction through the target recorder, wherein the element information comprises at least one of the following items: the resource account, the resource account type, the resource account number and the resource transfer operation type; and generating a recording rule of the resource transfer service according to the element information.
In an exemplary embodiment, the result generating module 505 is configured to convert, according to the recording rule, an original recording credential of the resource transfer service into a multiple recording credential, where the original recording credential is used to record a resource transfer condition of the resource transfer service, and the multiple recording credential is used to record a resource transfer detail corresponding to the resource transfer service; and performing account book registration operation on the multiple record voucher to generate a record result of the resource transfer business.
In an exemplary embodiment, the recording result of the resource transfer business comprises a registration subject account and a registration sub-account; the registered account accounts refer to resource records corresponding to various accounts, and the registered account accounts refer to account resource detail records corresponding to various accounts.
In an exemplary embodiment, as shown in fig. 6, the apparatus 500 further comprises: an information acquisition module 509, a credential generation module 510, and a credential storage module 511.
An information obtaining module 509, configured to obtain, according to the recording request, service information and verification information corresponding to the resource transfer service, where the verification information is used to determine whether the service information is correct.
And a credential generating module 510, configured to generate, in response to that the service information is correct, the original record credential according to the service information and the verification information.
And a credential storage module 511, configured to store the original record credential in a second database.
In an exemplary embodiment, the request obtaining module 501 is further configured to obtain a recording request of a resource transfer service from message middleware; the message middleware is used for acquiring the recording request of the resource transfer service in real time and sending the recording request in real time.
To sum up, in the technical solution provided in the embodiment of the present application, after the recording request of the resource transfer service is obtained, the corresponding recorder is selected according to the service type of the resource transfer service, the recording rule is generated by the recorder, and then the recording result is generated according to the recording rule, so that the recording rule is automatically generated by the recorder, the problems of tedious configuration and easy error caused by manual configuration of the recording rule are effectively solved, the configuration complexity and the configuration difficulty are reduced on one hand, the problems of system safety and low reliability caused by configuration error can be avoided on the other hand, and the system safety and reliability are improved
It should be noted that, in the apparatus provided in the foregoing embodiment, in response to the implementation of the functions thereof, only the division of the functional modules is illustrated, and in practical applications, the above functions may be distributed by different functional modules according to needs, that is, the internal structure of the apparatus is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments for details, which are not described herein again.
Referring to fig. 7, a block diagram of a computer device 700 according to an embodiment of the present application is shown. The computer device may be a device in the service processing system shown in fig. 1, and the device may implement the recording method of the resource transfer service. Specifically, the method comprises the following steps:
the computer device 700 includes a Processing Unit (e.g., a CPU (Central Processing Unit), a GPU (Graphics Processing Unit), an FPGA (Field Programmable gate array), etc.) 701, a system Memory 704 including a RAM (Random Access Memory) 702 and a ROM (Read Only Memory) 703, and a system bus 705 connecting the system Memory 704 and the Central Processing Unit 701. The server 700 also includes a basic I/O system (Input/Output) 706 for facilitating information transfer between various devices within the computing server, and a mass storage device 707 for storing an operating system 713, application programs 714, and other program modules 712.
The basic input/output system 706 includes a display 708 for displaying information and an input device 709, such as a mouse, keyboard, etc., for a user to input information. Wherein the display 708 and input device 709 are connected to the central processing unit 701 through an input output controller 710 coupled to the system bus 705. The basic input/output system 706 may also include an input/output controller 710 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, input-output controller 710 may also provide output to a display screen, a printer, or other type of output device.
The mass storage device 707 is connected to the central processing unit 701 through a mass storage controller (not shown) connected to the system bus 705. The mass storage device 707 and its associated computer-readable media provide non-volatile storage for the server 700. That is, the mass storage device 707 may include a computer-readable medium (not shown) such as a hard disk or CD-ROM (Compact disk Read-Only Memory) drive.
Without loss of generality, the computer readable media may comprise computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes RAM, ROM, EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash Memory or other solid state Memory technology, CD-ROM, DVD (Digital Video Disc) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that the computer storage media is not limited to the foregoing. The system memory 704 and mass storage device 707 described above may be collectively referred to as memory.
The server 700 may also operate as a remote computer connected to a network via a network, such as the internet, according to embodiments of the present application. That is, the server 700 may be connected to the network 712 through a network interface unit 711 connected to the system bus 705, or may be connected to other types of networks or remote computer systems (not shown) using the network interface unit 711.
The memory stores a computer program that is loaded by the processor and implements the method for recording the resource transfer service or implements the method for recording the resource transfer service on the server side.
In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the recording method of the above-described resource transfer service.
Optionally, the computer-readable storage medium may include: a Read Only Memory (ROM), a Random Access Memory (RAM), a Solid State Drive (SSD), or an optical disc. The Random Access Memory may include a resistive Random Access Memory (ReRAM) and a Dynamic Random Access Memory (DRAM).
In an exemplary embodiment, there is also provided a computer program product which, when running, executes the above-mentioned recording method of the resource transfer service.
It should be understood that reference to "a plurality" herein means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. In addition, the step numbers described herein only exemplarily show one possible execution sequence among the steps, and in some other embodiments, the steps may also be executed out of the numbering sequence, for example, two steps with different numbers are executed simultaneously, or two steps with different numbers are executed in a reverse order to the order shown in the figure, which is not limited by the embodiment of the present application.
The above description is only exemplary of the present application and should not be taken as limiting the present application, and any modifications, equivalents, improvements and the like that are made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (12)

1. A recording method for resource transfer service, the method comprising:
acquiring a recording request of a resource transfer service;
acquiring the service type of the resource transfer service;
selecting a target recorder matched with the service type from pre-configured recorders;
generating a recording rule of the resource transfer service through the target recorder, wherein the recording rule refers to a resource circulation recording mode of each account in the resource transfer service;
and generating a recording result of the resource transfer service according to the recording rule.
2. The method of claim 1, wherein selecting the target recorder matching the service type from the preconfigured recorders comprises:
according to a configuration rule, selecting the target recorder matched with the service type from the preconfigured recorders;
wherein the configuration rule is used for determining a matching relationship between the service type and the recorder.
3. The method of claim 2, wherein the configuration rule comprises at least one of the following matching relationships:
the method comprises the following steps that a matching relation between a first service type and a first recorder is established, wherein the first service type refers to the service type of service information comprising a resource transfer account and a resource transfer account;
a matching relationship between a second service type and a second recorder, wherein the second service type is a service type of at least two accounts with the same resource flow included in service information;
and the third service type is a service type of the service information comprising a known account and an account to be configured.
4. The method of claim 2, further comprising:
acquiring a candidate configuration rule;
checking whether the matching relation between the service type in the candidate configuration rule and the recorder is correct or not;
and responding to the verification of the candidate configuration rule, and storing the candidate configuration rule as an available configuration rule in a first database.
5. The method of claim 1, wherein generating, by the target recorder, the logging rules for the resource transfer transaction comprises:
acquiring a resource flow direction corresponding to the resource transfer service;
acquiring element information corresponding to the resource transfer service according to the resource flow direction through the target recorder, wherein the element information comprises at least one of the following items: the resource account, the resource account type, the resource account number and the resource transfer operation type;
and generating a recording rule of the resource transfer service according to the element information.
6. The method according to claim 1, wherein the generating a record result of the resource transfer service according to the record rule comprises:
converting an original recording voucher of the resource transfer service into a multiple recording voucher according to the recording rule, wherein the original recording voucher is used for recording the resource transfer condition of the resource transfer service, and the multiple recording voucher is used for recording the resource transfer details corresponding to the resource transfer service;
and performing account book registration operation on the multiple record voucher to generate a record result of the resource transfer business.
7. The method of claim 6, wherein the recorded results of the resource transfer transaction include a check-in subject account and a check-in sub-account;
the registered account accounts refer to resource records corresponding to various accounts, and the registered account accounts refer to account resource detail records corresponding to various accounts.
8. The method of claim 1, wherein after the obtaining the record request of the resource transfer service, further comprising:
acquiring service information and verification information corresponding to the resource transfer service according to the recording request, wherein the verification information is used for determining whether the service information is correct;
responding to the correctness of the service information, and generating the original record certificate according to the service information and the verification information;
and storing the original record voucher in a second database.
9. The method of claim 1, wherein the obtaining the record request of the resource transfer service comprises:
acquiring a recording request of the resource transfer service from message middleware;
the message middleware is used for acquiring the recording request of the resource transfer service from a service provider in real time.
10. An apparatus for recording resource transfer traffic, the apparatus comprising:
the request acquisition module is used for acquiring a recording request of the resource transfer service;
the type obtaining module is used for obtaining the service type of the resource transfer service;
the recorder selection module is used for selecting a target recorder matched with the service type from pre-configured recorders;
the rule generating module is used for generating a recording rule of the resource transfer business through the target recorder, wherein the recording rule refers to a resource flow recording method of each account in the resource transfer business;
and the result generating module is used for generating a recording result of the resource transfer service according to the recording rule.
11. A computer device, characterized in that the computer device comprises a processor and a memory, in which a computer program is stored, which computer program is loaded and executed by the processor to implement the method according to any of claims 1 to 9.
12. A non-transitory computer-readable storage medium, having stored thereon a computer program, wherein the computer program, when executed by a processor, implements the method of any of claims 1 to 9.
CN202010136727.8A 2020-03-02 2020-03-02 Recording method, device, equipment and storage medium of resource transfer service Withdrawn CN111367776A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010136727.8A CN111367776A (en) 2020-03-02 2020-03-02 Recording method, device, equipment and storage medium of resource transfer service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010136727.8A CN111367776A (en) 2020-03-02 2020-03-02 Recording method, device, equipment and storage medium of resource transfer service

Publications (1)

Publication Number Publication Date
CN111367776A true CN111367776A (en) 2020-07-03

Family

ID=71208545

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010136727.8A Withdrawn CN111367776A (en) 2020-03-02 2020-03-02 Recording method, device, equipment and storage medium of resource transfer service

Country Status (1)

Country Link
CN (1) CN111367776A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112232755A (en) * 2020-09-16 2021-01-15 金蝶软件(中国)有限公司 Receipt processing method and device, computer equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA1195776A (en) * 1979-11-26 1985-10-22 Edward L. Braun Unit record for use as negotiable instrument or for electronic funds transfer
US6044360A (en) * 1996-04-16 2000-03-28 Picciallo; Michael J. Third party credit card
WO2009034150A1 (en) * 2007-09-12 2009-03-19 Eurotech Spa Electronic apparatus for registering and monitoring presences for groups of users and relative method
CN105787628A (en) * 2014-12-26 2016-07-20 远光软件股份有限公司 Fund payment record automatic combination method and device thereof
US20170061347A1 (en) * 2015-08-28 2017-03-02 Oracle Financial Services Software Limited Computerized system and method for predicting quantity levels of a resource
CN108830572A (en) * 2018-06-15 2018-11-16 腾讯科技(深圳)有限公司 Resource transfers method, apparatus, storage medium and equipment
CN110297824A (en) * 2019-05-23 2019-10-01 平安银行股份有限公司 Data record method, device, equipment and storage medium based on resource transfers

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA1195776A (en) * 1979-11-26 1985-10-22 Edward L. Braun Unit record for use as negotiable instrument or for electronic funds transfer
US6044360A (en) * 1996-04-16 2000-03-28 Picciallo; Michael J. Third party credit card
WO2009034150A1 (en) * 2007-09-12 2009-03-19 Eurotech Spa Electronic apparatus for registering and monitoring presences for groups of users and relative method
CN105787628A (en) * 2014-12-26 2016-07-20 远光软件股份有限公司 Fund payment record automatic combination method and device thereof
US20170061347A1 (en) * 2015-08-28 2017-03-02 Oracle Financial Services Software Limited Computerized system and method for predicting quantity levels of a resource
CN108830572A (en) * 2018-06-15 2018-11-16 腾讯科技(深圳)有限公司 Resource transfers method, apparatus, storage medium and equipment
CN110297824A (en) * 2019-05-23 2019-10-01 平安银行股份有限公司 Data record method, device, equipment and storage medium based on resource transfers

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112232755A (en) * 2020-09-16 2021-01-15 金蝶软件(中国)有限公司 Receipt processing method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
US11379826B2 (en) Method, apparatus and electronic device for blockchain transactions
US20180081787A1 (en) Virtual Payments Environment
CN110458562B (en) Bill reimbursement method, device and equipment and computer storage medium
CN109285069B (en) Resource transfer method, device and server
US20210248671A1 (en) Method and apparatus for managing measurement device based on blockchain
CN113034274A (en) Supply chain financial service system and method based on block chain and terminal equipment
CN111797019B (en) Transaction accounting test method and device, electronic equipment and storage medium
CN106815725A (en) A kind of transaction verification method and device
CN109582550A (en) A kind of method, apparatus and server obtaining full dose business scenario failure collection
CN111415146A (en) Resource data processing method, device and equipment
CN113938481A (en) Receipt processing method, processing device, electronic equipment and readable storage medium
US20230385891A1 (en) Prototype message service
CN111367776A (en) Recording method, device, equipment and storage medium of resource transfer service
CN113034275A (en) Management system and method based on block chain network and terminal equipment
US20200204553A1 (en) Method, apparatus and computer program product for exchanging messages across a network
US20230013949A1 (en) Interactive user interface systems and methods for analyzing transaction attributes and dispute information using blockchain
CN116739596A (en) Blockchain-based transaction supervision method, device, equipment, medium and product
CN107209885A (en) The payment serviced for consumer remote and the system of communication connection
CN113051257B (en) Service data cleaning method and device
CN114444120A (en) Financing method and device based on block chain, electronic equipment and storage medium
CN110415112B (en) Post-credit business processing method, device, equipment and storage medium
CN112967049B (en) Method and device for issuing receivable through block chain
CN113159768B (en) Transaction certificate storage method, device and equipment
CN114329188A (en) Method, system and computer readable medium for integrating merchant information
CN116383243A (en) Information processing method and device, electronic equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20200703