CN112015769A - Data processing method and device, computer equipment and storage medium - Google Patents

Data processing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112015769A
CN112015769A CN202010904489.0A CN202010904489A CN112015769A CN 112015769 A CN112015769 A CN 112015769A CN 202010904489 A CN202010904489 A CN 202010904489A CN 112015769 A CN112015769 A CN 112015769A
Authority
CN
China
Prior art keywords
request
information
service
preset
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010904489.0A
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.)
Pingan Payment Technology Service Co Ltd
Original Assignee
Pingan Payment Technology Service 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 Pingan Payment Technology Service Co Ltd filed Critical Pingan Payment Technology Service Co Ltd
Priority to CN202010904489.0A priority Critical patent/CN112015769A/en
Publication of CN112015769A publication Critical patent/CN112015769A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24553Query execution of query operations
    • G06F16/24558Binary matching operations
    • G06F16/2456Join operations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/258Data format conversion from or to a database

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Storage Device Security (AREA)

Abstract

The application discloses a data processing method and device, computer equipment and a storage medium, and belongs to the field of big data. The data processing method comprises the steps of inquiring a corresponding database according to a service request sent by a request end to obtain first service information corresponding to the service request, generating a calling link corresponding to an interface of the request end according to access information of the interface corresponding to the service request and preset processing logic, processing the obtained first service information by adopting the calling link to obtain second service information conforming to the data format of the request end, feeding the second service information back to the request end, generating corresponding calling links according to different access information of the request end, and converting the first service information obtained from the database into the service information conforming to the data format of the request end through the calling link. In addition, the application also relates to a block chain technology, and the first service information can be stored in a block chain node.

Description

Data processing method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of big data, and in particular, to a data processing method and apparatus, a computer device, and a storage medium.
Background
As the connection between the development services of science and technology becomes more and more compact, the internal interface and the external interface are often required to interface to obtain the required data during the service operation process, for example: financial transactions in the financial field need to interface with credit transactions to obtain credit information for a user. At present, a set of corresponding interface access codes is specially provided for the interface docking of different external channels, so as to overcome the condition that data is inconsistent with actual field convention due to interface convention in the docking process, for example: the unit commitments of the money are inconsistent, the data formats are different, and the like. However, the existing interface access method needs staff to write codes, is time-consuming and labor-consuming, is easy to generate redundant codes, cannot be compatible with data of various service interfaces, and is poor in compatibility.
Disclosure of Invention
Aiming at the problem that the existing interface access method can only be applied to one interface and can not be compatible with other service interfaces, the data processing method, the device, the computer equipment and the storage medium which aim at being compatible with different interfaces and processing different service data are provided.
To achieve the above object, the present application provides a data processing method, including:
receiving a service request sent by a request terminal, and acquiring access information of an interface corresponding to the service request;
generating a calling link according to the access information and a preset processing logic;
inquiring a preset database according to the service request to acquire first service information corresponding to the service request;
and processing the first service information through the calling link to generate second service information, and sending the second service information to the request terminal.
Optionally, the access information includes an interface function;
the generating a call link according to the access information and a preset processing logic includes:
extracting an interface identifier of the interface function in the access information, wherein the interface identifier is associated with configuration information of a calling link in a preset link table;
and acquiring configuration information associated with the interface identifier in the preset link table, and generating the calling link based on the configuration information.
Optionally, the configuration information includes storage address data of the processing module and logic sequence data called by the processing module;
the obtaining configuration information associated with the interface identifier in the preset link table, and generating the call link based on the configuration information includes:
acquiring configuration information associated with the interface identifier in the preset link table according to the interface identifier; and sequentially calling the corresponding processing modules from the storage address data based on the logic sequence data called by the processing modules in the configuration information so as to generate the calling link composed of the processing modules.
Optionally, the processing module adopts at least one module selected from a screening module, a conversion module, an encryption module, a signature module, a communication module, a signature verification module, a decryption module, an anomaly capture module and a baffle module.
Optionally, the querying a preset database according to the service request to obtain first service information corresponding to the service request includes:
extracting a request identifier in the service request;
inquiring a preset storage list according to the request identifier, and determining a preset database address associated with the request identifier, wherein the preset storage list comprises the preset database address associated with the request identifier;
and inquiring the preset database according to the preset database address to acquire first service information corresponding to the service request.
Optionally, the querying a preset database according to the service request to obtain first service information corresponding to the service request includes:
extracting a request identifier in the service request;
inquiring a preset storage list according to the request identifier, and determining a storage terminal interface parameter associated with the request identifier, wherein the preset storage list comprises the storage terminal interface parameter associated with the request identifier;
and querying the preset database in the storage terminal according to the interface parameters of the storage terminal to acquire first service information corresponding to the service request.
Optionally, the method further includes:
acquiring first feedback information sent by the request end based on the second service information;
and processing the first feedback information based on the calling link, generating second feedback information, and outputting the second feedback information.
In order to achieve the above object, the present application also provides a data processing apparatus, including:
the receiving unit is used for receiving a service request sent by a request end and acquiring access information of an interface corresponding to the service request;
the generating unit is used for generating a calling link according to the access information and a preset processing logic;
the query unit is used for querying a preset database according to the service request so as to acquire first service information corresponding to the service request;
and the processing unit is used for processing the first service information through the calling link, generating second service information and sending the second service information to the request terminal.
To achieve the above object, the present application also provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the above method when executing the computer program.
To achieve the above object, the present application also provides a computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the above method.
According to the data processing method, the data processing device, the computer equipment and the storage medium, a corresponding database is inquired according to a service request sent by a request end to obtain first service information corresponding to the service request, a calling link corresponding to an interface of the request end is generated according to access information of the interface corresponding to the service request and preset processing logic, the obtained first service information is processed by adopting the calling link to obtain second service information conforming to a data format of the request end, the second service information is fed back to the request end, corresponding calling links can be generated according to different access information of the request end, the first service information obtained from the database is converted into the service information conforming to the data format of the request end through the calling link, different request end interfaces can be compatible, and the butt joint efficiency is high.
Drawings
FIG. 1 is a flow chart of an embodiment of a data processing method described herein;
FIG. 2 is a flowchart illustrating an embodiment of generating a call link according to access information according to a predetermined processing logic;
FIG. 3 is a flow diagram of one embodiment of obtaining first service information while a server is in a test mode;
FIG. 4 is a flowchart of an embodiment of obtaining first service information when the server is in a normal operating mode;
FIG. 5 is a flow chart of another embodiment of a data processing method described herein;
FIG. 6 is a block diagram of one embodiment of a data processing apparatus according to the present application;
FIG. 7 is a block diagram of another embodiment of a data processing apparatus according to the present application;
FIG. 8 is a diagram of the hardware architecture of one embodiment of the computer apparatus of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
The data processing method, the data processing device, the computer equipment and the storage medium can be applied to the fields of financial business, medical business and insurance business. The method and the device can query a corresponding database according to a service request sent by a request end to obtain first service information corresponding to the service request, generate a calling link corresponding to an interface of the request end according to access information of the interface corresponding to the service request and preset processing logic, and process the obtained first service information by adopting the calling link to obtain second service information conforming to the data format of the request end, so that the second service information is fed back to the request end, so that the corresponding calling link can be generated according to different access information of the request end, and the first service information obtained from the database is converted into the service information conforming to the data format of the request end through the calling link.
Example one
Referring to fig. 1, a data processing method of the present embodiment includes the following steps:
s1, receiving a service request sent by a request end, and acquiring access information of an interface corresponding to the service request.
The access information may include an interface function, and the interface function further includes an interface identifier.
The data processing method in this embodiment may be applied to a server, and when the server receives a service request sent by a request end, the server obtains access information of an interface of the request end, where the service request may be a request for obtaining data, for example: when the requesting terminal is a financial client, the service request may be a request triggered by the user to acquire credit information of the user account.
And S2, generating a calling link according to the access information and a preset processing logic.
Considering that the data processing process of different request terminals is different, the forming process of the call link is related to the service request interface sent by the request terminal. In this embodiment, a call link corresponding to an interface of the request end is generated according to access information of the interface corresponding to the service request and a preset processing logic, so that the generated call link supports a request of the request end for data.
Further, referring to step S2 shown in fig. 2, the method may include:
and S21, extracting an interface identifier of the interface function in the access information, wherein the interface identifier is associated with configuration information of a calling link in a preset link table.
The configuration information comprises storage address data of the processing module and logic sequence data called by the processing module. The processing modules are functional modules forming the call link, and the logic sequence refers to the sequence of each processing module in the call link, that is, the processing sequence of data or information in the call link.
It should be noted that: the processing module can adopt at least one of a screening module, a conversion module, an encryption module, a signature module, a communication module, a signature verification module, a decryption module, an abnormity capture module and a baffle module. The processing module may also adopt other expansion modules as required, and the application is not particularly limited.
The screening module is used for preprocessing the acquired information, cleaning, correcting, integrating and the like the information so as to extract the information related to the service request.
The conversion module can be used for converting the format of the information, the exchange rate, the monetary unit and the like, such as: convert JSON (JavaScript Object Notation) format into XML (eXtensible Markup language) format, convert XML format into YAML (Yet Another Markup language) format which can be identified by calculation, or convert dollar amount into RMB amount, etc. The conversion module in this embodiment may use a channel information construction model (BulidParamFilter). The conversion module in this embodiment may adopt groovy (agile development language based on a Java virtual machine) dynamic scripting language, and if field change and conversion occur, adjustment may be quickly completed by modifying the scripting configuration.
The Encryption module can be used for encrypting information to ensure the security of the information, and the Encryption module can adopt a data Encryption standard (des) algorithm, an Advanced Encryption Standard (AES) algorithm (symmetric block Encryption), an elliptic Encryption algorithm (ECC) or the like.
The signature module is used for adding a signature to the information so as to avoid the information from being forged in the information transmission process. The signature module may use Rabin signature algorithm, DSS (digital SignatureStandard) signature algorithm or RSA signature algorithm, etc.
The communication module is used for sending the processed information to a request end, and the communication module can realize information transmission by adopting a channel gateway general module (MspFilter).
The signature checking module is used for checking the signature of the information, if the signature passes, the information passes the check, and if the signature does not pass, the information is abnormal. The signature verification module can adopt a method corresponding to a signature algorithm for verification.
The decryption module is used for decrypting the information to ensure the safety of the information, and the decryption module can decrypt by adopting an algorithm corresponding to the encryption algorithm.
The abnormity capture module is used for detecting whether the working state of a module (such as a conversion module, an encryption module, a signature module, a communication module, a signature verification module or a signature verification module) in the calling link is abnormal, if the working state is abnormal, an abnormity message is generated, and the calling link is reminded of being abnormal.
The baffle plate module is used for temporarily storing the received service request under the condition that the delay condition is met (for example, the service request cannot be processed in the current time interval), delaying the service request, and outputting the service request when the delay condition is not met (the service request is supported and processed in the current time interval).
The processing module in the embodiment is written by adopting groovy scripting language, so that dynamic editing is facilitated according to actual needs.
And S22, acquiring configuration information associated with the interface identifier in the preset link table, and generating the calling link based on the configuration information.
In this step, a preset link table is queried according to the interface identifier of the interface function to obtain configuration information associated with the interface identifier, and a call link corresponding to the interface of the request end is generated based on the configuration information, so that the generated call link supports the requirement of the request end on data.
Specifically, step S22 may include:
acquiring configuration information associated with the interface identifier in the preset link table according to the interface identifier; and sequentially calling the corresponding processing modules from the storage address data based on the logic sequence data called by the processing modules in the configuration information so as to generate the calling link composed of the processing modules.
In this step, the corresponding processing modules are called from the corresponding storage addresses according to the logical sequence data of the processing modules in the configuration information, and the corresponding processing modules are called in sequence, so that a calling link composed of the processing modules is generated.
And S3, inquiring a preset database according to the service request to acquire first service information corresponding to the service request.
In this step, the preset database may store first service information for testing (e.g., preconfigured user account credit information for testing, bound bank information, credit information, etc.), and may also store first service information of the storage end (e.g., user's bank account information, credit information, etc.). The storage terminal may be a client terminal of a bank. It should be emphasized that, in order to further ensure the privacy and security of the first service information, the first service information may also be stored in a node of a block chain.
The block chain referred by the application is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
In an embodiment, when the preset database stores information as the first service information for testing when the server is in the test mode, as shown in fig. 3, step S3 may include the following steps:
s301, extracting a request identifier in the service request.
Wherein, the request identification is used for characterizing the content of the service request, and the request identification can comprise account data (such as ID) of the user and request target object data (such as bank account and credit account).
S302, inquiring a preset storage list according to the request identifier, and determining a preset database address associated with the request identifier, wherein the preset storage list comprises the preset database address associated with the request identifier.
In this step, the preset storage list may be used to store the account data of the user and all the object data associated with the account data and the preset database address storing each object data. Traversing a preset storage list according to the account data of the user in the request identification to obtain a plurality of object data corresponding to the account data of the user, determining data corresponding to the request target object data from the plurality of object data, and acquiring a preset database address of the data corresponding to the request target object data.
S303, inquiring the preset database according to the preset database address to acquire first service information corresponding to the service request.
It should be noted that: the preset database in this step is a local storage unit inside the server. In this step, the corresponding preset database is accessed according to the obtained preset database address, and the first service information corresponding to the account data of the user and the request target object data is inquired.
Compared with the existing test process, the method needs to establish contact with the external part (storage end) first, and calls corresponding data to the external part (such as the storage end) according to the service request, so that the problems of long time consumption and low efficiency exist. In this embodiment, the testing process using steps S301-S303 can return the corresponding first service information according to the request identifier of different conditions in the service request, thereby improving the working efficiency of the test and reducing the time for coordinating with the external device (e.g., storage end). The first service information may be in the form of a message.
In another embodiment, when the preset database storage information is the first service information of the storage side when the server is in the normal operation mode, step S3 shown in fig. 4 may include the following steps:
and S311, extracting the request identification in the service request.
Wherein, the request identification is used for characterizing the content of the service request, and the request identification can comprise account data (such as ID) of the user and request target object data (such as bank account and credit account).
S312, inquiring a preset storage list according to the request identifier, and determining storage terminal interface parameters associated with the request identifier, wherein the preset storage list comprises the storage terminal interface parameters associated with the request identifier.
In this step, the preset storage list may be used to store the account data of the user and all the object data associated with the account data and the storage interface parameters for storing each object data. Traversing a preset storage list according to the account data of the user in the request identification to obtain a plurality of object data corresponding to the account data of the user, determining data corresponding to the request target object data from the plurality of object data, and acquiring a storage port interface parameter of the data corresponding to the request target object data.
S313, the preset database in the storage end is inquired according to the interface parameters of the storage end so as to obtain first service information corresponding to the service request.
In this step, the preset database in the corresponding storage terminal is accessed according to the obtained storage terminal interface so as to query and obtain the first service information corresponding to the account data of the user and the request target object data.
In the actual application process, steps S311 to S313 may be adopted to query the preset storage list according to the service request sent by the request end to determine the interface parameter of the storage end, and query the preset database according to the interface parameter of the storage end to obtain the first service information stored in the storage end corresponding to the service request. The first service information may be in the form of a message.
And S4, processing the first service information through the calling link to generate second service information, and sending the second service information to the request terminal.
In this step, since the information format of the data of the first service information may not match the information format of the request end, and redundant information may exist in the first service information, the first service information may be processed by using a call link, the first service information is converted into second service information matching the information format of the request end, and the second service information is sent to the request end, so as to ensure that the second service data can be received and processed by the request end.
By way of example and not limitation, the following description will be made with the call link composed of a screening module, a conversion module, an encryption module, a signature module, and a communication module in sequence:
when a business request sent by a request end of a user for financing is a financing business request, the business request is sent to a storage end of a bank to acquire credit information (first business information); generating a calling link consisting of a screening module, a conversion module, an encryption module, a signature module and a communication module according to the access information of the request end, and preprocessing the acquired credit information through the screening module to acquire user information, card binding information and the like of a user; converting the preprocessed credit information into service information meeting the requirement of the request terminal by adopting a conversion module according to the format requirement of the request terminal; and calling an encryption module to encrypt the service information by adopting an AES algorithm, adding a signature to the encrypted information by adopting an RSA signature algorithm through a signature module to generate credit information (second service information) conforming to the information format of the request terminal, and sending the credit information to the request terminal by utilizing a communication module.
In this embodiment, the data processing method may query a corresponding database according to a service request sent by a request end to obtain first service information corresponding to the service request, generate a call link corresponding to an interface of the request end according to access information of the interface corresponding to the service request and a preset processing logic, and process the obtained first service information by using the call link to obtain second service information conforming to a data format of the request end, so as to feed the second service information back to the request end, thereby achieving the purpose of generating corresponding call links according to different access information of the request end, and converting the first service information obtained from the database into service information conforming to the data format of the request end by using the call link, and being compatible with different request end interfaces, and having high docking efficiency.
In an alternative embodiment, referring to fig. 5, after the step S4 is executed in the data processing method, the method may further include the following steps:
and S5, acquiring first feedback information sent by the request end based on the second service information.
And S6, processing the first feedback information based on the calling link, generating second feedback information, and outputting the second feedback information.
In step S6, the second feedback information may be sent to the storage. The first feedback information is feedback information aiming at the second service information, the first feedback information is information matched with the information format of the request end, and the first feedback information can be a service processing success message returned after the request end receives the second service information; or the request end may be a service processing failure message returned after receiving the second service information. Because the information format of the data of the first feedback information may not match the information format of the storage end, and redundant information may exist in the first feedback information, the first feedback information may be processed by using a call link, converted into second feedback information matching the information format of the storage end, and then sent to the storage end.
By way of example and not limitation, the following description will be made with an example in which the call link is composed of a screening module, a conversion module, an encryption module, a signature module, a communication module, a signature verification module, and a decryption module in sequence:
when a business request sent by a user financial request end is a financial business request, sending the business request to a bank storage end to acquire first business information; generating a calling link consisting of a screening module, a conversion module, an encryption module, a signature module, a communication module, a signature checking module and a decryption module according to the access information of the request end, and preprocessing the acquired credit information (first service information) through the screening module to acquire user information, card binding information and the like of a user; converting the preprocessed credit information into service information meeting the requirement of the request terminal by adopting a conversion module according to the format requirement of the request terminal; calling an encryption module to encrypt service information by adopting an AES algorithm, adding a signature to the encrypted information by adopting an RSA signature algorithm through a signature module to generate credit information (second service information) conforming to the information format of a request end, sending the credit information to the request end by utilizing a communication module to obtain a success message (first feedback information) fed back by the request end, verifying the feedback information by adopting an algorithm corresponding to the RSA signature algorithm through a signature verification module, decrypting the verified information by utilizing a decryption module by adopting a decryption method corresponding to the AES algorithm, converting the decrypted information into second feedback information conforming to a storage end by utilizing a conversion module, and sending the second feedback information to the storage end.
The data processing method in the embodiment can greatly improve the dynamic access speed with the request end and the storage end, and can support the thermal recovery mode to quickly adjust and call the script language of the processing module in the link for the problems of field agreement, parameter validation and the like which are preset, thereby improving the processing timeliness of the problems and ensuring the quick and stable service. The embodiment can perform service logic isolation on the acquired data, simplifies the complexity of the service, avoids external interference and improves the efficiency of data processing.
Example two
Referring to fig. 6, a data processing apparatus 1 of the present embodiment includes: a receiving unit 11, a generating unit 12, an inquiring unit 13 and a processing unit 14;
a receiving unit 11, configured to receive a service request sent by a request end, and acquire access information of an interface corresponding to the service request;
the access information may include an interface function, and the interface function further includes an interface identifier.
The data processing method in this embodiment may be applied to a server, and when the server receives a service request sent by a request end, the server obtains access information of an interface of the request end, where the service request may be a request for obtaining data, for example: when the requesting terminal is a financial client, the service request may be a request triggered by the user to acquire credit information of the user account.
A generating unit 12, configured to generate a call link according to the access information and according to a preset processing logic;
considering that the data processing process of different request terminals is different, the forming process of the call link is related to the service request interface sent by the request terminal. In this embodiment, a call link corresponding to an interface of the request end is generated according to access information of the interface corresponding to the service request and a preset processing logic, so that the generated call link supports a request of the request end for data.
Further, the generating unit 12 is configured to extract an interface identifier of the interface function in the access information, where the interface identifier is associated with configuration information of a call link in a preset link table.
The configuration information comprises storage address data of the processing module and logic sequence data called by the processing module. The processing modules are functional modules forming the call link, and the logic sequence refers to the sequence of each processing module in the call link, that is, the processing sequence of data or information in the call link.
It should be noted that: the processing module can adopt at least one of a screening module, a conversion module, an encryption module, a signature module, a communication module, a signature verification module, a decryption module, an abnormity capture module and a baffle module. The processing module may also adopt other expansion modules as required, and the application is not particularly limited.
The processing module in the embodiment is written by adopting groovy scripting language, so that dynamic editing is facilitated according to actual needs.
The generating unit 12 is further configured to obtain configuration information associated with the interface identifier in the preset link table, and generate the call link based on the configuration information.
In this embodiment, the preset link table is queried according to the interface identifier of the interface function to obtain the configuration information associated with the interface identifier, and a call link corresponding to the interface of the request end is generated based on the configuration information, so that the generated call link supports the requirement of the request end on data.
Specifically, the generating unit 12 obtains configuration information associated with the interface identifier in the preset link table according to the interface identifier; and sequentially calling the corresponding processing modules from the storage address data based on the logic sequence data called by the processing modules in the configuration information so as to generate the calling link composed of the processing modules.
In this step, the corresponding processing modules are called from the corresponding storage addresses according to the logical sequence data of the processing modules in the configuration information, and the corresponding processing modules are called in sequence, so that a calling link composed of the processing modules is generated.
The query unit 13 is configured to query a preset database according to the service request to obtain first service information corresponding to the service request;
in this step, the preset database may store first service information for testing (e.g., preconfigured user account credit information for testing, bound bank information, credit information, etc.), and may also store first service information of the storage end (e.g., user's bank account information, credit information, etc.). The storage terminal may be a client terminal of a bank. It should be emphasized that, in order to further ensure the privacy and security of the first service information, the first service information may also be stored in a node of a block chain.
The block chain referred by the application is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
In an embodiment, when the server is in the test mode, and the preset database storage information is the first service information for testing, the query unit 13 extracts the request identifier in the service request; inquiring a preset storage list according to the request identifier, and determining a preset database address associated with the request identifier, wherein the preset storage list comprises the preset database address associated with the request identifier; and inquiring the preset database according to the preset database address to acquire first service information corresponding to the service request.
Wherein, the request identification is used for characterizing the content of the service request, and the request identification can comprise account data (such as ID) of the user and request target object data (such as bank account and credit account). The preset storage list can be used for storing the account data of the user and all the object data associated with the account data and a preset database address for storing each object data.
It should be noted that: the preset database is a local storage unit inside the server. In this step, the corresponding preset database is accessed according to the obtained preset database address, and the first service information corresponding to the account data of the user and the request target object data is inquired.
Compared with the existing test process, the method needs to establish contact with the external part (storage end) first, and calls corresponding data to the external part (such as the storage end) according to the service request, so that the problems of long time consumption and low efficiency exist. In this embodiment, the query unit 13 is adopted to return the corresponding first service information according to the request identifiers of different conditions in the service request during the test process, thereby improving the working efficiency of the test and reducing the time for joint debugging with the outside (such as a storage end). The first service information may be in the form of a message.
In another embodiment, when the server is in a normal operating mode, and the preset database storage information is the first service information of the storage terminal, the request identifier in the service request is extracted through the query unit 13; inquiring a preset storage list according to the request identifier, and determining a storage terminal interface parameter associated with the request identifier, wherein the preset storage list comprises the storage terminal interface parameter associated with the request identifier; and querying the preset database in the storage terminal according to the interface parameters of the storage terminal to acquire first service information corresponding to the service request.
In this embodiment, the preset storage list may be used to store the account data of the user, all the object data associated with the account data, and the storage interface parameter for storing each object data. Traversing a preset storage list according to the account data of the user in the request identification to obtain a plurality of object data corresponding to the account data of the user, determining data corresponding to the request target object data from the plurality of object data, and acquiring a storage port interface parameter of the data corresponding to the request target object data. And accessing a preset database in a corresponding storage terminal according to the obtained storage terminal interface so as to query and obtain first service information corresponding to the account data of the user and the request target object data.
In an actual application process, the query unit 13 may query a preset storage list according to a service request sent by the request end to determine a storage end interface parameter, and query a preset database according to the storage end interface parameter to obtain first service information stored in the storage end corresponding to the service request. The first service information may be in the form of a message.
And the processing unit 14 is configured to process the first service information through the call link, generate second service information, and send the second service information to the request end.
In this embodiment, since the information format of the data of the first service information may not match the information format of the request end, and redundant information may exist in the first service information, the first service information may be processed by using the call link, the first service information may be converted into second service information matching the information format of the request end, and the second service information is sent to the request end, so as to ensure that the second service data can be received and processed by the request end.
In this embodiment, the data processing apparatus 1 can query the corresponding database according to the service request sent by the request end through the query unit 13 to obtain the first service information corresponding to the service request, generate the call link corresponding to the interface of the request end by using the generation unit 12 according to the access information of the interface corresponding to the service request and the preset processing logic, and process the obtained first service information by using the call link through the processing unit 14 to obtain the second service information conforming to the data format of the request end, so as to feed the second service information back to the request end, thereby realizing that the corresponding call link can be generated according to the access information of the request end, the purpose of converting the first service information obtained from the database into the service information conforming to the data format of the request end through the call link, and being compatible with different request end interfaces, the butt joint efficiency is high.
In an alternative embodiment, the data processing apparatus 1 shown in fig. 7 may further include: an acquisition unit 15.
An obtaining unit 15, configured to obtain first feedback information sent by the requesting end based on the second service information.
The processing unit 14 is configured to process the first feedback information based on the call link, generate second feedback information, and output the second feedback information.
The data processing device 1 in this embodiment can greatly increase the dynamic access speed with the request terminal and the storage terminal, and for the problems of field agreement, parameter validation and the like which are preset, the scripting language of the processing module in the calling link can be quickly adjusted in a thermal repairing mode, so that the processing timeliness of the problems is improved, and the quick and stable service is ensured. The embodiment can perform service logic isolation on the acquired data, simplifies the complexity of the service, avoids external interference and improves the efficiency of data processing.
EXAMPLE III
In order to achieve the above object, the present application further provides a computer device 2, where the computer device 2 includes a plurality of computer devices 2, components of the data processing apparatus 1 of the second embodiment may be distributed in different computer devices 2, and the computer device 2 may be a smartphone, a tablet computer, a notebook computer, a desktop computer, a rack-mounted server, a blade server, a tower server, or a rack-mounted server (including an independent server or a server cluster formed by a plurality of servers) that executes a program, and the like. The computer device 2 of the present embodiment includes at least, but is not limited to: a memory 21, a processor 23, a network interface 22, and the data processing apparatus 1 (refer to fig. 8) that can be communicatively connected to each other through a system bus. It is noted that fig. 8 only shows the computer device 2 with components, but it is to be understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead.
In this embodiment, the memory 21 includes at least one type of computer-readable storage medium, which includes a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. In some embodiments, the storage 21 may be an internal storage unit of the computer device 2, such as a hard disk or a memory of the computer device 2. In other embodiments, the memory 21 may also be an external storage device of the computer device 2, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like provided on the computer device 2. Of course, the memory 21 may also comprise both an internal storage unit of the computer device 2 and an external storage device thereof. In this embodiment, the memory 21 is generally used for storing an operating system installed in the computer device 2 and various types of application software, such as a program code of the data processing method in the first embodiment. Further, the memory 21 may also be used to temporarily store various types of data that have been output or are to be output.
The processor 23 may be a Central Processing Unit (CPU), a controller, a microcontroller, a microprocessor, or other data Processing chip in some embodiments. The processor 23 is typically used for controlling the overall operation of the computer device 2, such as performing control and processing related to data interaction or communication with the computer device 2. In this embodiment, the processor 23 is configured to run the program code stored in the memory 21 or process data, for example, run the data processing apparatus 1.
The network interface 22 may comprise a wireless network interface or a wired network interface, and the network interface 22 is typically used to establish a communication connection between the computer device 2 and other computer devices 2. For example, the network interface 22 is used to connect the computer device 2 to an external terminal through a network, establish a data transmission channel and a communication connection between the computer device 2 and the external terminal, and the like. The network may be a wireless or wired network such as an Intranet (Intranet), the Internet (Internet), a Global System of Mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), a 4G network, a 5G network, Bluetooth (Bluetooth), Wi-Fi, and the like.
It is noted that fig. 8 only shows the computer device 2 with components 21-23, but it is to be understood that not all shown components are required to be implemented, and that more or less components may be implemented instead.
In this embodiment, the data processing apparatus 1 stored in the memory 21 may be further divided into one or more program modules, and the one or more program modules are stored in the memory 21 and executed by one or more processors (in this embodiment, the processor 23) to complete the present application.
Example four
To achieve the above objects, the present application also provides a computer-readable storage medium including a plurality of storage media such as a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, a server, an App application store, etc., on which a computer program is stored, which when executed by the processor 23, implements corresponding functions. The computer readable storage medium of the embodiment is used for storing the data processing apparatus 1, and when being executed by the processor 23, the computer readable storage medium implements the data processing method of the first embodiment.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (10)

1. A data processing method, comprising:
receiving a service request sent by a request terminal, and acquiring access information of an interface corresponding to the service request;
generating a calling link according to the access information and a preset processing logic;
inquiring a preset database according to the service request to acquire first service information corresponding to the service request;
and processing the first service information through the calling link to generate second service information, and sending the second service information to the request terminal.
2. The data processing method of claim 1, wherein the access information comprises an interface function;
the generating a call link according to the access information and a preset processing logic includes:
extracting an interface identifier of the interface function in the access information, wherein the interface identifier is associated with configuration information of a calling link in a preset link table;
and acquiring configuration information associated with the interface identifier in the preset link table, and generating the calling link based on the configuration information.
3. The data processing method of claim 2, wherein the configuration information includes storage address data of the processing module and logical sequence data called by the processing module;
the obtaining configuration information associated with the interface identifier in the preset link table, and generating the call link based on the configuration information includes:
acquiring configuration information associated with the interface identifier in the preset link table according to the interface identifier; and sequentially calling the corresponding processing modules from the storage address data based on the logic sequence data called by the processing modules in the configuration information so as to generate the calling link composed of the processing modules.
4. The data processing method of claim 3, wherein the processing module employs at least one of a screening module, a conversion module, an encryption module, a signature module, a communication module, a signature verification module, a decryption module, an anomaly capture module, and a barrier module.
5. The data processing method according to claim 1, wherein the querying a preset database according to the service request to obtain first service information corresponding to the service request comprises:
extracting a request identifier in the service request;
inquiring a preset storage list according to the request identifier, and determining a preset database address associated with the request identifier, wherein the preset storage list comprises the preset database address associated with the request identifier;
and inquiring the preset database according to the preset database address to acquire first service information corresponding to the service request.
6. The data processing method according to claim 1, wherein the querying a preset database according to the service request to obtain first service information corresponding to the service request comprises:
extracting a request identifier in the service request;
inquiring a preset storage list according to the request identifier, and determining a storage terminal interface parameter associated with the request identifier, wherein the preset storage list comprises the storage terminal interface parameter associated with the request identifier;
and querying the preset database in the storage terminal according to the interface parameters of the storage terminal to acquire first service information corresponding to the service request.
7. The data processing method of claim 1, further comprising:
acquiring first feedback information sent by the request end based on the second service information;
and processing the first feedback information based on the calling link, generating second feedback information, and outputting the second feedback information.
8. A data processing apparatus, comprising:
the receiving unit is used for receiving a service request sent by a request end and acquiring access information of an interface corresponding to the service request;
the generating unit is used for generating a calling link according to the access information and a preset processing logic;
the query unit is used for querying a preset database according to the service request so as to acquire first service information corresponding to the service request;
and the processing unit is used for processing the first service information through the calling link, generating second service information and sending the second service information to the request terminal.
9. A computer arrangement comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium having stored thereon a computer program, characterized in that: the computer program when executed by a processor implements the steps of the method of any one of claims 1 to 7.
CN202010904489.0A 2020-09-01 2020-09-01 Data processing method and device, computer equipment and storage medium Pending CN112015769A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010904489.0A CN112015769A (en) 2020-09-01 2020-09-01 Data processing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010904489.0A CN112015769A (en) 2020-09-01 2020-09-01 Data processing method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112015769A true CN112015769A (en) 2020-12-01

Family

ID=73516180

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010904489.0A Pending CN112015769A (en) 2020-09-01 2020-09-01 Data processing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112015769A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112463409A (en) * 2020-12-04 2021-03-09 天津狮拓信息技术有限公司 Data interaction method and device, electronic equipment and computer readable storage medium
CN112698971A (en) * 2020-12-30 2021-04-23 平安科技(深圳)有限公司 Rule engine based parameter conversion method, device, equipment and medium
CN112732807A (en) * 2020-12-30 2021-04-30 福建卓融信息技术有限公司 Interface calling method and device
CN112835731A (en) * 2021-03-09 2021-05-25 浙江网商银行股份有限公司 Data processing method and device
CN113419776A (en) * 2021-07-09 2021-09-21 杭州复杂美科技有限公司 Application compatibility method, computer device, and storage medium
CN114185618A (en) * 2021-12-14 2022-03-15 平安付科技服务有限公司 Business tool configuration method and device, computer equipment and storage medium
CN115599983A (en) * 2022-12-09 2023-01-13 思创数码科技股份有限公司(Cn) Data query method and device, readable storage medium and electronic equipment
CN115695549A (en) * 2022-10-27 2023-02-03 武汉方舟拓海科技有限公司 Software architecture, terminal equipment and application method of software architecture
CN116955090A (en) * 2023-09-19 2023-10-27 四川集鲜数智供应链科技有限公司 Calling chain monitoring system and method for chain service

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107392766A (en) * 2017-07-25 2017-11-24 上海壹账通金融科技有限公司 Method for processing business, adapter and computer-readable recording medium
CN109408746A (en) * 2018-09-26 2019-03-01 平安科技(深圳)有限公司 Portrait information query method, device, computer equipment and storage medium
CN110245029A (en) * 2019-05-21 2019-09-17 中国平安财产保险股份有限公司 A kind of data processing method, device, storage medium and server
CN110704521A (en) * 2019-08-30 2020-01-17 深圳壹账通智能科技有限公司 Interface data access method and system
CN111274045A (en) * 2020-01-14 2020-06-12 平安银行股份有限公司 Multi-platform docking method and device, computer equipment and readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107392766A (en) * 2017-07-25 2017-11-24 上海壹账通金融科技有限公司 Method for processing business, adapter and computer-readable recording medium
CN109408746A (en) * 2018-09-26 2019-03-01 平安科技(深圳)有限公司 Portrait information query method, device, computer equipment and storage medium
CN110245029A (en) * 2019-05-21 2019-09-17 中国平安财产保险股份有限公司 A kind of data processing method, device, storage medium and server
CN110704521A (en) * 2019-08-30 2020-01-17 深圳壹账通智能科技有限公司 Interface data access method and system
CN111274045A (en) * 2020-01-14 2020-06-12 平安银行股份有限公司 Multi-platform docking method and device, computer equipment and readable storage medium

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112463409A (en) * 2020-12-04 2021-03-09 天津狮拓信息技术有限公司 Data interaction method and device, electronic equipment and computer readable storage medium
CN112698971A (en) * 2020-12-30 2021-04-23 平安科技(深圳)有限公司 Rule engine based parameter conversion method, device, equipment and medium
CN112732807A (en) * 2020-12-30 2021-04-30 福建卓融信息技术有限公司 Interface calling method and device
CN112698971B (en) * 2020-12-30 2023-08-18 平安科技(深圳)有限公司 Parameter conversion method, device, equipment and medium based on rule engine
CN112835731A (en) * 2021-03-09 2021-05-25 浙江网商银行股份有限公司 Data processing method and device
CN113419776A (en) * 2021-07-09 2021-09-21 杭州复杂美科技有限公司 Application compatibility method, computer device, and storage medium
CN114185618A (en) * 2021-12-14 2022-03-15 平安付科技服务有限公司 Business tool configuration method and device, computer equipment and storage medium
CN114185618B (en) * 2021-12-14 2024-04-05 平安付科技服务有限公司 Service tool configuration method, device, computer equipment and storage medium
CN115695549A (en) * 2022-10-27 2023-02-03 武汉方舟拓海科技有限公司 Software architecture, terminal equipment and application method of software architecture
CN115599983A (en) * 2022-12-09 2023-01-13 思创数码科技股份有限公司(Cn) Data query method and device, readable storage medium and electronic equipment
CN116955090A (en) * 2023-09-19 2023-10-27 四川集鲜数智供应链科技有限公司 Calling chain monitoring system and method for chain service
CN116955090B (en) * 2023-09-19 2023-11-28 四川集鲜数智供应链科技有限公司 Calling chain monitoring system and method for chain service

Similar Documents

Publication Publication Date Title
CN112015769A (en) Data processing method and device, computer equipment and storage medium
CN109802957B (en) Interface docking method and device, computer equipment and storage medium
US20170359185A1 (en) Method for loading website security information and browser apparatus
CN110458559B (en) Transaction data processing method, device, server and storage medium
CN110543510B (en) Bill data processing method, device, storage medium and computer equipment
CN109711824B (en) Resource transfer method, device, computer equipment and storage medium
US10200407B1 (en) Network gateway messaging systems and methods
US20200213331A1 (en) Data service system
CN111131416A (en) Business service providing method and device, storage medium and electronic device
US20210182955A1 (en) Financial transaction management system, method, storage medium and server
US20240187397A1 (en) Network gateway messaging systems and methods
CN112235301B (en) Access right verification method and device and electronic equipment
CN109816502A (en) Batch pays out method, apparatus, computer equipment and storage medium
CN111880919A (en) Data scheduling method, system and computer equipment
CN108052550B (en) Annuity data receiving method and device, computer equipment and storage medium
CN111343170A (en) Electronic signing method and system
CN111311259A (en) Bill processing method, device, terminal and computer readable storage medium
CN101807237A (en) Signature method and device
CN112583594A (en) Data processing method, acquisition device, gateway, trusted platform and storage medium
CN109801075A (en) Method of payment, device, computer equipment and storage medium
CN111930535B (en) Application function calling method and device, computer equipment and storage medium
CN115052053A (en) Message processing method and simulator for bank system test
CN111753018B (en) E-letter method, system and computer equipment
CN114065302A (en) Data processing method, device, equipment, medium and block chain network
CN111311412B (en) Decentralized transaction confirmation method and device and server

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