WO2019149019A1 - Data interaction method and apparatus, computer device, and storage medium - Google Patents

Data interaction method and apparatus, computer device, and storage medium Download PDF

Info

Publication number
WO2019149019A1
WO2019149019A1 PCT/CN2019/070023 CN2019070023W WO2019149019A1 WO 2019149019 A1 WO2019149019 A1 WO 2019149019A1 CN 2019070023 W CN2019070023 W CN 2019070023W WO 2019149019 A1 WO2019149019 A1 WO 2019149019A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
request message
transaction
standard
service party
Prior art date
Application number
PCT/CN2019/070023
Other languages
French (fr)
Chinese (zh)
Inventor
陶勇
Original Assignee
深圳壹账通智能科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳壹账通智能科技有限公司 filed Critical 深圳壹账通智能科技有限公司
Publication of WO2019149019A1 publication Critical patent/WO2019149019A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/151Transformation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/20Point-of-sale [POS] network systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0613Third-party assisted

Definitions

  • the application relates to a data interaction method, device, computer device and storage medium.
  • the mall platform can connect the products of each company to the platform and sell it online.
  • the mall platform supports product transactions of a number of companies. In the process of product transactions such as trial and calculation of product costs, accounting, the mall platform needs to communicate and interact with each company.
  • the inventor realized that the data formats of the data supported by the companies are different at present, and the mall platform needs to customize the data interface for each company, which requires a large amount of time and workload of the developer, resulting in excessive development cost.
  • a data interaction method, apparatus, computer device, and storage medium are provided.
  • a data interaction method including:
  • the first data conversion information corresponding to the service party is searched, and the standard request message is converted into a demand request message according to the first data conversion information;
  • a data interaction device comprising:
  • a request receiving module configured to receive a transaction request sent by the terminal, where the transaction request carries transaction data
  • a data extraction module configured to extract a transaction type and a product identifier from the transaction data
  • a template search module configured to search for the transaction type and the product transaction template corresponding to the product identifier
  • a message generating module configured to extract a parameter value corresponding to the transaction parameter in the product transaction template from the transaction data, and generate a standard request message according to the extracted parameter value and the product transaction template;
  • a format obtaining module configured to search for a service party to which the product identifier belongs, and obtain a first data format of the service party;
  • a message conversion module configured to: when the first data format is a non-standard format, search for first data conversion information corresponding to the service party, and convert the standard request message into Demand request message;
  • the first packet sending module is configured to send the demand request message to the service server of the service party.
  • a computer device comprising a memory and one or more processors having stored therein computer readable instructions, the computer readable instructions being executable by the processor to cause the one or more processors to execute The following steps:
  • the first data conversion information corresponding to the service party is searched, and the standard request message is converted into a demand request message according to the first data conversion information;
  • Computer readable instructions computer readable instructions one or more non-transitory computer readable storage medium storing computer readable instructions, when executed by one or more processors, causing one or more processors Perform the following steps:
  • the first data conversion information corresponding to the service party is searched, and the standard request message is converted into a demand request message according to the first data conversion information;
  • FIG. 1 is an application scenario diagram of a data interaction method in accordance with one or more embodiments.
  • FIG. 2 is a flow diagram of a method of data interaction in accordance with one or more embodiments.
  • FIG. 3 is a block diagram showing the structure of a data interaction device in accordance with one or more embodiments.
  • FIG. 4 is a diagram showing the internal structure of a computer device in accordance with one or more embodiments.
  • the data interaction method provided by the present application can be applied to an application environment as shown in FIG. 1.
  • the terminal communicates with the server through the network, and the server communicates with the service server through the network.
  • the terminal sends a transaction request to the server, and after receiving the transaction request, the server acquires the transaction data in the transaction request, extracts the transaction type and the product identifier, and finds a corresponding product transaction template, and extracts the product transaction from the transaction data.
  • the parameter value corresponding to the transaction parameter in the template generates a standard request message according to the extracted parameter value and the product transaction template, and the server searches for the business party to which the product identifier belongs, and determines whether the data format required by the business party is a standard data format.
  • the generated standard request message is converted into a service request message according to the data conversion information corresponding to the service party, and the converted demand request message is sent to the service.
  • the business server corresponding to the party, the transaction server processes the transaction request.
  • the number of the terminal and the server of the service side may be one or more.
  • the terminal can be, but is not limited to, various personal computers, notebook computers, smart phones, tablets, and portable wearable devices.
  • the server and the business server can be implemented by a separate server or a server cluster composed of multiple servers.
  • a data interaction method is provided, which is applied to the server in FIG. 1 as an example, and includes the following steps:
  • Step 210 Receive a transaction request sent by the terminal, where the transaction request carries the transaction data.
  • the server in this embodiment may be a server of a mall platform, and the mall platform may be connected to multiple business parties, and the products of the business party are sold on the mall platform, and the user may purchase products through the mall platform.
  • the user can operate through the terminal and find that the server of the mall platform initiates a transaction request.
  • the server receives the transaction request initiated by the terminal.
  • the transaction request carries transaction data, which may include, but is not limited to, product data of the transaction product, transaction type, user information for initiating the request, terminal information, request code, request time, and the like.
  • Step 220 extracting the transaction type and product identification from the transaction data.
  • the server obtains the transaction data in the transaction request and extracts the transaction type and product identification from the transaction data.
  • the transaction type is the type of the transaction initiated, and the product is an insurance product as an example.
  • the transaction type can be the type of premium trial, underwriting, underwriting, and the like.
  • the product identification is used to uniquely identify the products on the mall platform.
  • the product identification can be the product number, product code, and the like.
  • the product party can also determine the business party to which it belongs. If the unused business party provides the product with the same name on the platform, the business party to which the product belongs can be determined according to the product identifier.
  • Step 230 Find a product transaction template corresponding to the transaction type and the product identifier.
  • the server pre-stores product transaction templates for each product, and sets a plurality of product transaction templates corresponding to each transaction type for each product according to the transaction types that each product may involve.
  • the product transaction template is stored in association with the product identification and transaction type.
  • the server looks up the product transaction template corresponding to the extracted transaction type and product identification.
  • the server After the server processes the transaction request, it sends the request data to the service server of the corresponding business party, and finally the business server processes the transaction request of the user.
  • the product transaction template specifies the parameter composition and data structure of the request data sent by the server to the service server.
  • the parameter composition is a transaction parameter field required by the business party for transaction processing, and the data structure refers to an arrangement rule of each parameter field.
  • the product transaction template of the premium trial transaction of the pension insurance product of the A insurance company's business party includes four basic components: the basic information of the insured, the basic information of the insured, the insurance information and the responsibility information.
  • Each component further includes a plurality of transaction parameter fields, for example, the basic information of the policyholder includes a plurality of transaction parameter fields such as a product code, a number of insurance shares, and an insurance validity period.
  • the product trading template stipulates the arrangement rules of each component and each parameter field.
  • Step 240 Extract a parameter value corresponding to the transaction parameter in the product transaction template from the transaction data, and generate a standard request message according to the extracted parameter value and the product transaction template.
  • the standard request message is a message in the standard data format provided by the server.
  • the server obtains the transaction parameters in the product transaction template, and extracts the parameter values corresponding to the transaction parameters from the transaction data. If the parameter value corresponding to the extracted product code field is P1394, the parameter value corresponding to the insurance validity period field is 2 years.
  • the server will extract the parameter values and assemble the product transaction template and generate a standard request message.
  • Step 250 Find a service party to which the product identifier belongs, and obtain a first data format of the service party.
  • the server finds the business party to which the transaction product belongs based on the product identifier. Specifically, the server may search for the service party identifier of the service party corresponding to the product identifier, and obtain the first data format corresponding to the service party identifier after obtaining the service party identifier, where the first data format refers to the data format of the data required by the service party.
  • the first data format may include a standard format and a non-standard format. The standard format is consistent with the data format provided by the server, and the non-standard format is different from the data format provided by the server, and is a data format specific to the business side.
  • Step 260 When the first data format is a non-standard format, the first data conversion information corresponding to the service party is searched, and the standard request message is converted into the demand request message according to the first data conversion information.
  • the server determines whether the first data format is a standard format.
  • the first data conversion information corresponding to the service party identifier is searched, where the first data conversion information may be stored in the server locality in association with the service party identifier.
  • the first data conversion information may include a field mapping relationship between a standard format and a non-standard format difference field, and may also include a data structure of data in the request message required by the service side.
  • the server maps the difference field in the standard request message according to the first data conversion information that is found, and adjusts the data structure in the standard request message to generate a demand request message required by the service party.
  • Step 270 Send the demand request message to the service server of the service party.
  • the server sends the generated demand request packet to the service server corresponding to the service party identifier. After receiving the demand request message, the service server processes the transaction request of the user according to the demand request message.
  • the server after receiving the transaction request, the server first searches for a product transaction template corresponding to the transaction request, generates a standard request message in a unified data format according to the transaction data and the product transaction template, and obtains data required by the corresponding service party.
  • the format is judged.
  • the standard request message is converted into a data format required by the business party according to the corresponding data conversion information of the service party, and the request data conforming to the demand of the business party can be automatically generated. Therefore, the data interface of the business side with special data format requirements is separately customized and developed, which reduces development cost and saves development time.
  • the method further includes: when the first data format is a standard format, sending the standard request message to the service server of the service party.
  • the server determines that the first data format is a standard format, it indicates that the format of the data required by the corresponding service party is the same as the data format provided by the server, and the server does not need to perform format conversion, and the server directly sends the generated standard request message to the service corresponding to the service party identifier. server.
  • the server can automatically convert the transaction data in the request into a standard format request message in a unified format, which can meet the data requirements of most business parties.
  • the step of searching for the first data conversion information corresponding to the service party and converting the standard request message into the demand request message according to the first data conversion information includes: searching for a field mapping table corresponding to the service party; The field mapping table extracts the difference field from the standard request message; finds the custom field corresponding to the difference field from the field mapping table, replaces the difference field in the standard request message with the corresponding customized field; acquires the product identifier and the service The data structure of the request message corresponding to the party; the standard request message after the field replacement is adjusted according to the data structure of the request message, and a request request message is generated.
  • the server searches for a field mapping table corresponding to the service party according to the service party identifier.
  • the field mapping table may be stored in the server in advance, or may be stored in the service server and obtained by the server to the service server.
  • the field mapping table stores the mapping relationship between the service provider and all the difference fields of the server, that is, the mapping relationship between the standard parameter field provided by the server and the customized field required by the service party, including the mapping relationship between the parameter field names and The correspondence between parameter field values.
  • the insured gender field is the difference field between the server and the business party
  • the standard parameter field of the insured gender is named after-Gender
  • the mapped requirement parameter field is named after-sex
  • the insured gender is male.
  • the standard parameter field value is M
  • the mapped requirement parameter field value is 1.
  • the server obtains the standard parameter field name in the field mapping table, and searches for a parameter field name that is consistent with the standard parameter field name from the standard request message. When the consistent parameter field name is found, the consistent parameter field name and its The corresponding parameter field value is extracted as a difference field, and the server searches for a custom field name corresponding to the standard parameter field name from the field mapping relationship table, and extracts the corresponding customized field name and its customized field value as a custom field, and the standard request message is The difference field in the field is replaced with the extracted custom field.
  • the server may classify the difference field according to the product to which it belongs in the field mapping table, for example, the field mapping relationship belonging to the same product may be stored in association with the product identifier.
  • the server searches the field mapping table for the field mapping relationship corresponding to the product identifier, and then extracts the difference field from the standard request message according to the found field mapping relationship and performs field replacement.
  • the server may store the mapping relationship between the different service parties and the difference fields of the server in the field mapping total table, and the mapping relationship between the difference fields of each service party is associated with the service party identifier. .
  • the server can find the mapping relationship of the difference field corresponding to the service party according to the service party identifier.
  • the server After completing the replacement of all the difference fields in the standard request message, the server searches for the request message data structure corresponding to the product identifier and the service party identifier.
  • Request messages for different products in the business side have a specific data structure.
  • the data structure refers to the arrangement rules of various types of data in the request message.
  • the server adjusts the order of the corresponding data in the standard request message after the difference field is replaced according to the arrangement rules of various types of data, and adjusts to generate a demand request message.
  • the parameter fields with different parameter formats of the server and the service party are uniformly stored in the field mapping table, which facilitates parameter field search and replacement.
  • the step of adjusting the standard request message after the field replacement according to the request message data structure and generating the request request message includes: searching for the data with the loop attribute from the request message data structure.
  • the class of the data class is obtained; the message data corresponding to the data class having the loop attribute is searched from the standard request message after the field replacement, and the found message data is segmented and the data class unit is obtained;
  • the server obtains the data class in the request message data structure.
  • the request message data structure stores data classes of request data, and each data class may include multiple parameter fields.
  • the data of the request message of an insurance product includes three types of data: the basic information of the insured, the basic information of the insured, and the type of insurance information, and each data class may include a plurality of parameter fields.
  • the server obtains the loop attribute value of each data class, and determines whether the data class has a loop attribute according to the loop attribute value. For example, if the value of the loop attribute is 1, the data class has a loop attribute, and the value of the loop attribute is 0, the data type does not have a loop attribute.
  • the above values are only examples.
  • the value of the loop attribute value is not limited to the above value.
  • Each data class includes at least one data class unit. When the data class has a loop property, each data class unit in the data class needs to be cyclically arranged. Taking the insured basic information data class as an example, when there are multiple insured persons, the basic information of the insured person of each insured is a data type unit, and multiple multiple insured persons are required.
  • the data class units are arranged in a loop.
  • the server finds the data class with the loop attribute according to the loop attribute value of the data class, and the server searches for the packet data corresponding to the found data class from the standard request message after the field replacement.
  • the server obtains the parameter field combination included in the data class, and searches for the packet data corresponding to each parameter field in the parameter field combination from the standard request message, and when multiple search corresponding to the parameter field are found,
  • the searched packet data is divided into data. Specifically, the searched data is divided according to the parameter field to obtain a plurality of data class units.
  • the basic information data class of the policyholder includes a combination of parameter fields composed of a plurality of parameter fields such as a product code, a number of insurance shares, and an insurance validity period, and the server searches for a message corresponding to each parameter field from the standard request message that has been replaced by the field.
  • the server searches for a message corresponding to each parameter field from the standard request message that has been replaced by the field.
  • Data when multiple fields corresponding to the product code, the number of insured copies, and the insurance validity period parameter field are found, the found message data is divided into multiple product codes, the number of insured copies, and the insurance validity period parameter combination, thereby obtaining more Data class units.
  • the server obtains the loop level of the data class with the loop attribute, and determines the order of the loops between different data classes according to the level of the loop of different data classes. For a data class that does not have a loop attribute, it has a fixed arrangement position in the request message, and the server obtains the arrangement position of the data class that does not have the loop attribute, and adjusts the corresponding arrangement position of the value. Specifically, the data class with the highest cycle level is ranked first, and all the data class units with lower ranks are required to be listed after each of the highest data class units. When there is a data class with the same cycle level, according to the original The arrangement in the standard request message is arranged in order, and the data classes are arranged in a one-to-one correspondence.
  • the insured basic information data class includes two data class units, A insured information and B insured information, and the insurance information data class includes two data type units, C insurance information and D insurance information.
  • the insured basic information data class does not have a loop attribute, and the server obtains the arrangement position of the insured basic information data class, and the arrangement position is before the insured basic information and the insurance type information.
  • the loop level of the insured basic information data class is higher than the loop level of the insurance information data class
  • the order of each data type unit in the standard request message is the basic information of the insured, and the information of the A insured.
  • the order of the data class units belonging to the same data class is not limited.
  • the order of the parameter fields in the transaction data may be sorted.
  • the server acquires a loop level of two data categories of the insured basic information and the insurance information, wherein the loop level of the insured basic information data class is equal to the loop level of the insurance information data category.
  • the data arrangement order in the standard request message is adjusted to: basic information of the insured, A insured information, C insurance information, A insured information, D insurance information, B insured information, C insurance information , B insured information, D insurance information.
  • the server can automatically adjust the data sequence of the data structure in the standard request message according to the cycle level of the data class in the data structure, thereby improving data conversion. effectiveness.
  • the method includes: receiving a transaction response message; extracting the service party identifier from the transaction response message, and obtaining the extracted service party identifier corresponding to a second data format; when the second data format is a non-standard format, searching for the second data conversion information corresponding to the extracted service party identifier, and converting the transaction response message into a standard response message according to the second data conversion information .
  • the service party After the service party processes the request packet sent by the server, it returns the transaction processing result, that is, the transaction response message, to the server, and the server receives the transaction response message sent by the service server.
  • the transaction response message may include data such as transaction code, customer information, and processing result.
  • the server extracts the service party identifier from the transaction response message, and obtains the second data format corresponding to the service party identifier. It should be noted that, when the service party in this embodiment is consistent with the service party in the foregoing embodiment, the first data format and the second data format are the same, and the first and second in the text are only for different parties. The situation is to distinguish.
  • the server determines whether the second data format is a standard format. When it is determined that the second data format is a standard format, the data conversion is not required, and the server may parse the transaction request message and return it to the terminal. When the server determines that the second data format is a standard format, the server searches for the second data conversion information corresponding to the service party identifier.
  • the second data conversion information may include a field mapping table corresponding to the service party identifier and a data structure in the standard request message corresponding to the product identifier. The server first searches the difference field in the transaction response message according to the field mapping table, and converts the difference field from the custom field of the business party to the standard field of the server.
  • the server After the field is converted, the server adjusts the order of the data in the transaction response message after the field is replaced according to the data structure in the standard request message, and generates a standard response message after the adjustment.
  • the server parses the standard response message and returns the parsed data to the terminal.
  • the server when the transaction response message returned by the terminal is in a non-standard format, the server converts it into a standard data format of the server to parse the processing result of the request.
  • the standard request message and the standard request message in the foregoing embodiment may be in the form of a JSON string and may be encoded in a UTF-8 encoding format. It should be noted that, in other embodiments, the server may also adopt other data formats or encoding manners according to specific situations.
  • the method further includes: counting the number of requests for the current transaction request; when the number of requests exceeds the preset request threshold, starting a new request processing thread; when the first data format is a non-standard format, generating The data conversion task allocates the data conversion task to the new request processing thread, performs the first data conversion information corresponding to the search service party in the new request processing thread, and converts the standard request message into the requirement according to the first data conversion information.
  • the step of requesting a message is generating the data conversion task allocates the data conversion task to the new request processing thread, performs the first data conversion information corresponding to the search service party in the new request processing thread, and converts the standard request message into the requirement according to the first data conversion information.
  • the server can periodically count the number of requests for transaction requests sent by each terminal currently received. And obtaining a preset request threshold, the server compares the current number of requests with a preset request threshold, and when the number of requests is greater than the preset request threshold, the server starts a new request processing thread.
  • the server determines that the first data format of the service party corresponding to the request is a non-standard format, the server generates a data conversion task according to the transaction data and the generated standard request message, wherein the data conversion task may be identified according to the requested transaction code. .
  • the server allocates the data conversion task to the new request processing thread that is started, performs the first data conversion information corresponding to the search service party in the new request processing thread, and converts the standard request message into the requirement according to the first data conversion information.
  • the step of requesting a message After the request request packet is generated, it can be directly sent to the service server corresponding to the service party ID.
  • the processing task of processing the data format of the standard request message is processed in the new request processing thread, the task amount of the main processing thread is reduced, and the system is blocked from being excessively caused by the request.
  • the server when the server detects that the current number of requests is less than the preset request threshold, the task is no longer assigned to the new request processing thread, and is closed after all data conversion tasks in the new request processing thread finish processing.
  • the new request processing thread So as to avoid thread redundancy caused by too many threads when the amount of tasks is too small.
  • steps in the flowchart of FIG. 2 are sequentially displayed as indicated by the arrows, these steps are not necessarily performed in the order indicated by the arrows. Except as explicitly stated herein, the execution of these steps is not strictly limited, and the steps may be performed in other orders. Moreover, at least some of the steps in FIG. 2 may include a plurality of sub-steps or stages, which are not necessarily performed at the same time, but may be executed at different times, the execution of these sub-steps or stages The order is also not necessarily sequential, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of the other steps.
  • a data interaction apparatus including: a request receiving module 310, a data extracting module 320, a template searching module 330, a message generating module 340, a format obtaining module 350, and a newspaper.
  • the text conversion module 360 and the first message sending module 370 wherein:
  • the request receiving module 310 is configured to receive a transaction request sent by the terminal, where the transaction request carries the transaction data.
  • the data extraction module 320 is configured to extract a transaction type and a product identifier from the transaction data.
  • the template search module 330 is configured to find a product transaction template corresponding to the transaction type and the product identifier.
  • the message generating module 340 is configured to extract a parameter value corresponding to the transaction parameter in the product transaction template from the transaction data, and generate a standard request message according to the extracted parameter value and the product transaction template.
  • the format obtaining module 350 is configured to find a service party to which the product identifier belongs, and obtain a first data format of the service party.
  • the message conversion module 360 is configured to: when the first data format is a non-standard format, search for the first data conversion information corresponding to the service party, and convert the standard request message into the demand request message according to the first data conversion information.
  • the first message sending module 370 is configured to send the demand request message to the service server of the service party.
  • the apparatus further includes:
  • the second packet sending module is configured to send the standard request packet to the service server of the service party when the first data format is a standard format.
  • the message conversion module 360 may include:
  • the mapping table searching module is configured to find a field mapping table corresponding to the business party.
  • the difference field extraction module is configured to extract the difference field from the standard request message according to the field mapping table.
  • the field replacement module is configured to find a custom field corresponding to the difference field from the field mapping table, and replace the difference field in the standard request message with the corresponding customized field.
  • the structure obtaining module is configured to obtain a product identifier and a request message data structure corresponding to the service party.
  • the requirement message generating module is configured to adjust the standard request message after the field replacement according to the request message data structure and generate a demand request message.
  • the requirement message generating module may include:
  • the data class finding module is configured to find a data class having a loop attribute from the request message data structure.
  • a level acquisition module for obtaining a loop level of a data class.
  • the unit splitting module is configured to search for the packet data corresponding to the data class having the loop attribute from the standard request message after the field replacement, and divide the found message data to obtain the data class unit.
  • the unit arranging module is configured to arrange the data class units according to the cycle level of the data class to which the data class unit belongs and generate a demand request message.
  • the apparatus may further include:
  • the response message receiving module is configured to receive a transaction response message.
  • the second format extraction module is configured to extract a service party identifier from the transaction response message, and obtain a second data format corresponding to the extracted service party identifier.
  • the standard message conversion module is configured to: when the second data format is a non-standard format, search for the second data conversion information corresponding to the extracted service party identifier, and convert the transaction response message into a standard response according to the second data conversion information. Message.
  • the apparatus may further include:
  • the request statistics module is used to count the number of requests for the current transaction request.
  • a thread initiation module is configured to start a new request processing thread when the number of requests exceeds a preset request threshold.
  • a step execution module configured to: when the first data format is a non-standard format, generate a data conversion task, allocate the data conversion task to the new request processing thread, and execute the first corresponding to the search service party in the new request processing thread.
  • the data conversion information is a step of converting the standard request message into the demand request message according to the first data conversion information.
  • the various modules in the above data interaction device may be implemented in whole or in part by software, hardware, and combinations thereof.
  • Each of the above modules may be embedded in or independent of the processor in the computer device, or may be stored in a memory in the computer device in a software form, so that the processor invokes the operations corresponding to the above modules.
  • a computer device which may be a server, and its internal structure diagram may be as shown in FIG.
  • the computer device includes a processor, memory, network interface, and database connected by a system bus.
  • the processor of the computer device is used to provide computing and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium, an internal memory.
  • the non-volatile storage medium stores an operating system, computer readable instructions, and a database.
  • the internal memory provides an environment for operation of an operating system and computer readable instructions in a non-volatile storage medium.
  • the database of the computer device is used to store data such as product transaction templates, data conversion information, and the like.
  • the network interface of the computer device is used to communicate with an external terminal via a network connection.
  • the computer readable instructions are executed by a processor to implement a method of data interaction.
  • FIG. 4 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation of the computer device to which the solution of the present application is applied.
  • the specific computer device may It includes more or fewer components than those shown in the figures, or some components are combined, or have different component arrangements.
  • a computer device comprising a memory and one or more processors, the memory storing computer readable instructions, the computer readable instructions being executed by the processor, causing the one or more processors to perform the steps of: receiving a transaction sent by the terminal Requesting, the transaction request carries the transaction data; extracting the transaction type and the product identification from the transaction data; finding the product transaction template corresponding to the transaction type and the product identification; and extracting the parameter value corresponding to the transaction parameter in the product transaction template from the transaction data, And generating a standard request message according to the extracted parameter value and the product transaction template; searching for the service party to which the product identifier belongs, and obtaining the first data format of the service party; when the first data format is a non-standard format, searching for the corresponding service party
  • the first data conversion information is used to convert the standard request message into a demand request message according to the first data conversion information; and send the demand request message to the service server of the service side.
  • the processor when executing the computer readable instructions, further implements the step of: transmitting the standard request message to the service server of the service party when the first data format is a standard format.
  • the processor executes the computer readable instructions to implement the first data conversion information corresponding to the search service party, and the step of converting the standard request message into the demand request message according to the first data conversion information is further used to: Find a field mapping table corresponding to the service party; extract the difference field from the standard request message according to the field mapping table; find a custom field corresponding to the difference field from the field mapping table, and replace the difference field in the standard request message with Corresponding custom field; obtaining the product identifier and the request message data structure corresponding to the service party; adjusting the standard request message after the field replacement according to the request message data structure and generating the demand request message.
  • the processor executes the computer readable instructions to implement the step of adjusting the standard request message after the field replacement according to the request message data structure and generating the request request message, and is further used for: the request message Find the data class with the loop attribute in the data structure; obtain the loop level of the data class; find the message data corresponding to the data class with the loop attribute from the standard request message after the field replacement, and find the message
  • the data is segmented and the data class unit is obtained; according to the cycle level of the data class to which the data class unit belongs, the data class units are arranged and a demand request message is generated.
  • the processor further implements the following steps: receiving a transaction response message; extracting a service party identifier from the transaction response message, and acquiring a second data format corresponding to the extracted service party identifier.
  • the second data format is a non-standard format
  • the second data conversion information corresponding to the extracted service party identifier is searched, and the transaction response message is converted into a standard response message according to the second data conversion information.
  • the processor when executing the computer readable instructions, further implements the steps of: counting the number of requests for the current transaction request; when the number of requests exceeds the preset request threshold, initiating a new request processing thread; when the first data format When the data format is non-standard, the data conversion task is generated, the data conversion task is allocated to the new request processing thread, and the first data conversion information corresponding to the search service party is executed in the new request processing thread, and the first data conversion information is The step of converting a standard request message into a request request message.
  • One or more non-transitory computer readable storage mediums storing computer readable instructions, when executed by one or more processors, cause one or more processors to perform the steps of: receiving by a terminal Transaction request, transaction request carries transaction data; extract transaction type and product identification from transaction data; find product transaction template corresponding to transaction type and product identification; extract parameter value corresponding to transaction parameter in product transaction template from transaction data And generating a standard request message according to the extracted parameter value and the product transaction template; searching for the service party to which the product identifier belongs, obtaining the first data format of the service party; and when the first data format is a non-standard format, searching for the service party corresponding
  • the first data conversion information is used to convert the standard request message into a demand request message according to the first data conversion information; and send the demand request message to the service server of the service side.
  • the computer readable instructions are further executed by the processor to: when the first data format is a standard format, send the standard request message to the service server of the business party.
  • the computer readable instructions are executed by the processor to search for first data conversion information corresponding to the service party, and are further used to implement the step of converting the standard request message into the demand request message according to the first data conversion information.
  • Finding a field mapping table corresponding to the service party extracting a difference field from the standard request message according to the field mapping table; finding a custom field corresponding to the difference field from the field mapping table, and replacing the difference field in the standard request message
  • the product identifier and the request message data structure corresponding to the service party are obtained; the standard request message after the field replacement is adjusted according to the request message data structure, and the demand request message is generated.
  • the computer readable instructions are further implemented by the processor when the processor performs the step of adjusting the standard request message after the field replacement according to the request message data structure and generating the demand request message: Find the data class with the loop attribute in the text data structure; obtain the loop level of the data class; search for the message data corresponding to the data class with the loop attribute from the standard request message after the field replacement, and find the reported message
  • the text data is segmented and the data class unit is obtained; according to the cycle level of the data class to which the data class unit belongs, the data class units are arranged and a demand request message is generated.
  • the following steps are further performed: receiving a transaction response message; extracting a service party identifier from the transaction response message, and acquiring the second data corresponding to the extracted service party identifier a format; when the second data format is a non-standard format, searching for the second data conversion information corresponding to the extracted service party identifier, and converting the transaction response message into a standard response message according to the second data conversion information.
  • the computer readable instructions are further executed by the processor to: count the number of requests for the current transaction request; when the number of requests exceeds the preset request threshold, initiate a new request processing thread; when the first data
  • a data conversion task is generated, the data conversion task is allocated to the new request processing thread, and the first data conversion information corresponding to the search service party is executed in the new request processing thread, and the first data conversion information is performed according to the first data conversion information.
  • Non-volatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory can include random access memory (RAM) or external cache memory.
  • RAM is available in a variety of formats, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronization chain.
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDRSDRAM double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • Synchlink DRAM SLDRAM
  • Memory Bus Radbus
  • RDRAM Direct RAM
  • DRAM Direct Memory Bus Dynamic RAM
  • RDRAM Memory Bus Dynamic RAM

Abstract

A data interaction method, comprising: receiving a transaction request sent by a terminal, the transaction request carrying transaction data; extracting a transaction type and a product identifier from the transaction data; searching for a product transaction template corresponding to the transaction type and the product identifier; extracting from the transaction data a parameter value corresponding to a transaction parameter in the product transaction template, and generating a standard request packet according to the extracted parameter value and the product transaction template; searching for a service party to which the product identifier belongs, and obtaining a first data format of the service party; if the first data format is a non-standard format, searching for first data conversion information corresponding to the service party, and converting the standard request packet into a demand request packet according to the first data conversion information; and sending the demand request packet to a service server of the service party.

Description

数据交互方法、装置、计算机设备和存储介质Data interaction method, device, computer device and storage medium
相关申请的交叉引用Cross-reference to related applications
本申请要求于2018年1月30日提交中国专利局,申请号为2018100908310,申请名称为“数据交互方法、装置、计算机设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims to be filed on January 30, 2018, the Chinese Patent Office, Application No. 2018100908310, the priority of which is incorporated herein by reference. In this application.
技术领域Technical field
本申请涉及一种数据交互方法、装置、计算机设备和存储介质。The application relates to a data interaction method, device, computer device and storage medium.
背景技术Background technique
商城平台作为一个销售平台,可以将各公司的产品接入平台并进行网上销售。商城平台支持多家公司的产品交易,在产品交易如产品费用试算、核算等的过程中,商城平台需要与各公司进行产品数据的传递、交互。但是,发明人意识到,目前各公司所支持数据的数据格式不同,商城平台需要针对各公司进行数据接口的定制化开发,需要花费开发人员大量的时间和工作量,导致开发成本过高。As a sales platform, the mall platform can connect the products of each company to the platform and sell it online. The mall platform supports product transactions of a number of companies. In the process of product transactions such as trial and calculation of product costs, accounting, the mall platform needs to communicate and interact with each company. However, the inventor realized that the data formats of the data supported by the companies are different at present, and the mall platform needs to customize the data interface for each company, which requires a large amount of time and workload of the developer, resulting in excessive development cost.
发明内容Summary of the invention
根据本申请公开的各种实施例,提供一种数据交互方法、装置、计算机设备和存储介质。In accordance with various embodiments disclosed herein, a data interaction method, apparatus, computer device, and storage medium are provided.
一种数据交互方法,包括:A data interaction method, including:
接收终端发送的交易请求,所述交易请求中携带交易数据;Receiving a transaction request sent by the terminal, where the transaction request carries transaction data;
从所述交易数据中提取交易类型和产品标识;Extracting the transaction type and product identification from the transaction data;
查找所述交易类型和所述产品标识对应的产品交易模板;Finding a product transaction template corresponding to the transaction type and the product identifier;
从所述交易数据中提取与所述产品交易模板中的交易参数对应的参数值,并根据提取出的参数值和所述产品交易模板生成标准请求报文;Extracting a parameter value corresponding to the transaction parameter in the product transaction template from the transaction data, and generating a standard request message according to the extracted parameter value and the product transaction template;
查找所述产品标识所属的业务方,获取所述业务方的第一数据格式;Finding a service party to which the product identifier belongs, and acquiring a first data format of the service party;
当所述第一数据格式为非标准格式时,查找所述业务方对应的第一数据转换信息,根据所述第一数据转换信息将所述标准请求报文转换为需求请求报文;及When the first data format is a non-standard format, the first data conversion information corresponding to the service party is searched, and the standard request message is converted into a demand request message according to the first data conversion information;
将所述需求请求报文发送给所述业务方的业务服务器。Sending the demand request message to the service server of the service party.
一种数据交互装置,包括:A data interaction device comprising:
请求接收模块,用于接收终端发送的交易请求,所述交易请求中携带交易数据;a request receiving module, configured to receive a transaction request sent by the terminal, where the transaction request carries transaction data;
数据提取模块,用于从所述交易数据中提取交易类型和产品标识;a data extraction module, configured to extract a transaction type and a product identifier from the transaction data;
模板查找模块,用于查找所述交易类型和所述产品标识对应的产品交易模板;a template search module, configured to search for the transaction type and the product transaction template corresponding to the product identifier;
报文生成模块,用于从所述交易数据中提取与所述产品交易模板中的交易参数对应的参数值,并根据提取出的参数值和所述产品交易模板生成标准请求报文;a message generating module, configured to extract a parameter value corresponding to the transaction parameter in the product transaction template from the transaction data, and generate a standard request message according to the extracted parameter value and the product transaction template;
格式获取模块,用于查找所述产品标识所属的业务方,获取所述业务方的第一数据格式;a format obtaining module, configured to search for a service party to which the product identifier belongs, and obtain a first data format of the service party;
报文转换模块,用于当所述第一数据格式为非标准格式时,查找所述业务方对应的第一数据转换信息,根据所述第一数据转换信息将所述标准请求报文转换为需求请求报文;及a message conversion module, configured to: when the first data format is a non-standard format, search for first data conversion information corresponding to the service party, and convert the standard request message into Demand request message; and
第一报文发送模块,用于将所述需求请求报文发送给所述业务方的业务服务器。The first packet sending module is configured to send the demand request message to the service server of the service party.
一种计算机设备,包括存储器和一个或多个处理器,所述存储器中储存有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述一个或多个处理器执行以下步骤:A computer device comprising a memory and one or more processors having stored therein computer readable instructions, the computer readable instructions being executable by the processor to cause the one or more processors to execute The following steps:
接收终端发送的交易请求,所述交易请求中携带交易数据;Receiving a transaction request sent by the terminal, where the transaction request carries transaction data;
从所述交易数据中提取交易类型和产品标识;Extracting the transaction type and product identification from the transaction data;
查找所述交易类型和所述产品标识对应的产品交易模板;Finding a product transaction template corresponding to the transaction type and the product identifier;
从所述交易数据中提取与所述产品交易模板中的交易参数对应的参数值,并根据提取出的参数值和所述产品交易模板生成标准请求报文;Extracting a parameter value corresponding to the transaction parameter in the product transaction template from the transaction data, and generating a standard request message according to the extracted parameter value and the product transaction template;
查找所述产品标识所属的业务方,获取所述业务方的第一数据格式;Finding a service party to which the product identifier belongs, and acquiring a first data format of the service party;
当所述第一数据格式为非标准格式时,查找所述业务方对应的第一数据转换信息,根据所述第一数据转换信息将所述标准请求报文转换为需求请求报文;及When the first data format is a non-standard format, the first data conversion information corresponding to the service party is searched, and the standard request message is converted into a demand request message according to the first data conversion information;
将所述需求请求报文发送给所述业务方的业务服务器。Sending the demand request message to the service server of the service party.
计算机可读指令计算机可读指令一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行以下步骤:Computer readable instructions computer readable instructions one or more non-transitory computer readable storage medium storing computer readable instructions, when executed by one or more processors, causing one or more processors Perform the following steps:
接收终端发送的交易请求,所述交易请求中携带交易数据;Receiving a transaction request sent by the terminal, where the transaction request carries transaction data;
从所述交易数据中提取交易类型和产品标识;Extracting the transaction type and product identification from the transaction data;
查找所述交易类型和所述产品标识对应的产品交易模板;Finding a product transaction template corresponding to the transaction type and the product identifier;
从所述交易数据中提取与所述产品交易模板中的交易参数对应的参数值,并根据提取出的参数值和所述产品交易模板生成标准请求报文;Extracting a parameter value corresponding to the transaction parameter in the product transaction template from the transaction data, and generating a standard request message according to the extracted parameter value and the product transaction template;
查找所述产品标识所属的业务方,获取所述业务方的第一数据格式;Finding a service party to which the product identifier belongs, and acquiring a first data format of the service party;
当所述第一数据格式为非标准格式时,查找所述业务方对应的第一数据转换信息,根据所述第一数据转换信息将所述标准请求报文转换为需求请求报文;及When the first data format is a non-standard format, the first data conversion information corresponding to the service party is searched, and the standard request message is converted into a demand request message according to the first data conversion information;
将所述需求请求报文发送给所述业务方的业务服务器。Sending the demand request message to the service server of the service party.
计算机可读指令计算机可读指令本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征和优点将从说明书、附图以及权利要求书变得明显。Computer readable instructions Computer readable instructions The details of one or more embodiments of the present application are set forth in the accompanying drawings and description. Other features and advantages of the present invention will be apparent from the description, drawings and claims.
附图说明DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings to be used in the embodiments will be briefly described below. Obviously, the drawings in the following description are only some embodiments of the present application, Those skilled in the art can also obtain other drawings based on these drawings without any creative work.
图1为根据一个或多个实施例中数据交互方法的应用场景图。1 is an application scenario diagram of a data interaction method in accordance with one or more embodiments.
图2为根据一个或多个实施例中数据交互方法的流程示意图。2 is a flow diagram of a method of data interaction in accordance with one or more embodiments.
图3为根据一个或多个实施例中数据交互装置的结构框图。3 is a block diagram showing the structure of a data interaction device in accordance with one or more embodiments.
图4为根据一个或多个实施例中计算机设备的内部结构图。4 is a diagram showing the internal structure of a computer device in accordance with one or more embodiments.
具体实施方式Detailed ways
为了使本申请的技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the technical solutions and advantages of the present application more clear, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the application and are not intended to be limiting.
本申请提供的数据交互方法,可以应用于如图1所示的应用环境中。其中,终端通过网络与服务器进行通信,服务器通过网络与业务服务器进行通信。终端向服务器发送交易请求,服务器接收交易请求后,获取交易请求中的交易数据,从中提取出交易类型和产品标识,并查找与之相对应的产品交易模板,从交易数据中提取出与产品交易模板中的交易参数对应的参数值,根据提取出的参数值和产品交易模板生成标准请求报文,服务器查找产品标识所属的业务方,判断业务方所需的数据格式是否为标准数据格式,当业务方所需的数据格式是非标准数据格式时,将生成的标准请求报文根据业务方对应的数据转换信息转换为业务方的需求请求报文,并将转换后的需求请求报文发送给业务方对应的业务服务器,由业务服务器对交易请求进行处理。其中,终端和业务方服务器的数量均可以为一个或者多个。终端可以但不限于是各种个人计算机、笔记本电脑、智能手机、平板电脑和便携式可穿戴设备,服务器、业务服务器可以用独立的服务器或者是多个服务器组成的服务器集群来实现。The data interaction method provided by the present application can be applied to an application environment as shown in FIG. 1. The terminal communicates with the server through the network, and the server communicates with the service server through the network. The terminal sends a transaction request to the server, and after receiving the transaction request, the server acquires the transaction data in the transaction request, extracts the transaction type and the product identifier, and finds a corresponding product transaction template, and extracts the product transaction from the transaction data. The parameter value corresponding to the transaction parameter in the template generates a standard request message according to the extracted parameter value and the product transaction template, and the server searches for the business party to which the product identifier belongs, and determines whether the data format required by the business party is a standard data format. When the data format required by the service party is a non-standard data format, the generated standard request message is converted into a service request message according to the data conversion information corresponding to the service party, and the converted demand request message is sent to the service. The business server corresponding to the party, the transaction server processes the transaction request. The number of the terminal and the server of the service side may be one or more. The terminal can be, but is not limited to, various personal computers, notebook computers, smart phones, tablets, and portable wearable devices. The server and the business server can be implemented by a separate server or a server cluster composed of multiple servers.
在其中一个实施例中,如图2所示,提供了一种数据交互方法,以该方法应用于图1中的服务器为例进行说明,包括以下步骤:In one embodiment, as shown in FIG. 2, a data interaction method is provided, which is applied to the server in FIG. 1 as an example, and includes the following steps:
步骤210,接收终端发送的交易请求,交易请求中携带交易数据。Step 210: Receive a transaction request sent by the terminal, where the transaction request carries the transaction data.
本实施例中的服务器可以为商城平台的服务器,商城平台可以对接多个业务方,业务方的产品在商城平台上进行销售,用户可以通过商城平台购买产品。用户可以通过终端进行操作并发现商城平台的服务器发起交易请求。服务器接收终端发起的交易请求。The server in this embodiment may be a server of a mall platform, and the mall platform may be connected to multiple business parties, and the products of the business party are sold on the mall platform, and the user may purchase products through the mall platform. The user can operate through the terminal and find that the server of the mall platform initiates a transaction request. The server receives the transaction request initiated by the terminal.
交易请求中携带交易数据,交易数据可以包括但不限于交易产品的产品数据、交易类型、发起请求的用户信息、终端信息、请求代码、请求时间等。The transaction request carries transaction data, which may include, but is not limited to, product data of the transaction product, transaction type, user information for initiating the request, terminal information, request code, request time, and the like.
步骤220,从交易数据中提取交易类型和产品标识。 Step 220, extracting the transaction type and product identification from the transaction data.
服务器获取交易请求中的交易数据,并从交易数据中提取交易类型和产品标识。其中, 交易类型为所发起交易的类型,以产品为保险产品为例说明,交易类型可以为保费试算、核保、承保等类型。产品标识用于对商城平台上的产品进行唯一标识,产品标识可以为产品编号、产品代码等。通过产品标识也可以确定所属的业务方,若不用的业务方在平台上提供了相同名称的产品,则可以根据产品标识确定产品所属的业务方。The server obtains the transaction data in the transaction request and extracts the transaction type and product identification from the transaction data. Among them, the transaction type is the type of the transaction initiated, and the product is an insurance product as an example. The transaction type can be the type of premium trial, underwriting, underwriting, and the like. The product identification is used to uniquely identify the products on the mall platform. The product identification can be the product number, product code, and the like. The product party can also determine the business party to which it belongs. If the unused business party provides the product with the same name on the platform, the business party to which the product belongs can be determined according to the product identifier.
步骤230,查找交易类型和产品标识对应的产品交易模板。Step 230: Find a product transaction template corresponding to the transaction type and the product identifier.
服务器预先存储有各个产品的产品交易模板,根据每个产品可能涉及的交易类型,又对每个产品设置多个与各交易类型相对应的产品交易模板。产品交易模板与产品标识和交易类型进行关联存储。服务器查找与提取的交易类型和产品标识相对应的产品交易模板。The server pre-stores product transaction templates for each product, and sets a plurality of product transaction templates corresponding to each transaction type for each product according to the transaction types that each product may involve. The product transaction template is stored in association with the product identification and transaction type. The server looks up the product transaction template corresponding to the extracted transaction type and product identification.
服务器对交易请求进行处理后会向对应业务方的业务服务器发送请求数据,最终由业务服务器对用户的交易请求进行处理。产品交易模板中规定了服务器向业务服务器发送的请求数据的参数组成和数据结构。其中,参数组成为业务方进行交易处理所需求的交易参数字段,而数据结构是指各参数字段的排列组成规则。After the server processes the transaction request, it sends the request data to the service server of the corresponding business party, and finally the business server processes the transaction request of the user. The product transaction template specifies the parameter composition and data structure of the request data sent by the server to the service server. The parameter composition is a transaction parameter field required by the business party for transaction processing, and the data structure refers to an arrangement rule of each parameter field.
例如,A保险公司业务方的养老险产品的保费试算交易的产品交易模板中包含了投保人基本信息、被保人基本信息、险种信息和责任信息等四个组成部分。而每个组成部分中又包含多个交易参数字段,如投保人基本信息中包括产品代码、投保份数、保险有效期等多个交易参数字段。并且产品交易模板中约定了各组成部分、各参数字段的排列规则。For example, the product transaction template of the premium trial transaction of the pension insurance product of the A insurance company's business party includes four basic components: the basic information of the insured, the basic information of the insured, the insurance information and the responsibility information. Each component further includes a plurality of transaction parameter fields, for example, the basic information of the policyholder includes a plurality of transaction parameter fields such as a product code, a number of insurance shares, and an insurance validity period. And the product trading template stipulates the arrangement rules of each component and each parameter field.
步骤240,从交易数据中提取与产品交易模板中的交易参数对应的参数值,并根据提取出的参数值和产品交易模板生成标准请求报文。Step 240: Extract a parameter value corresponding to the transaction parameter in the product transaction template from the transaction data, and generate a standard request message according to the extracted parameter value and the product transaction template.
标准请求报文为服务器提供的标准数据格式的报文。服务器获取产品交易模板中的交易参数,并从交易数据中提取与交易参数对应的参数值。如提取出产品代码字段对应的参数值为P1394,保险有效期字段对应的参数值为2年等。服务器将提取出参数值与产品交易模板进行组装并生成标准请求报文。The standard request message is a message in the standard data format provided by the server. The server obtains the transaction parameters in the product transaction template, and extracts the parameter values corresponding to the transaction parameters from the transaction data. If the parameter value corresponding to the extracted product code field is P1394, the parameter value corresponding to the insurance validity period field is 2 years. The server will extract the parameter values and assemble the product transaction template and generate a standard request message.
步骤250,查找产品标识所属的业务方,获取业务方的第一数据格式。Step 250: Find a service party to which the product identifier belongs, and obtain a first data format of the service party.
服务器根据产品标识查找交易产品所属的业务方。具体地,服务器可以查找产品标识对应的业务方的业务方标识,获取业务方标识后,查找业务方标识对应的第一数据格式,第一数据格式是指业务方所需要的数据的数据格式,第一数据格式可以包括标准格式和非标准格式。其中,标准格式与服务器提供的数据格式一致,而非标准格式与服务器提供的数据格式不同,是业务方特定需求的数据格式。The server finds the business party to which the transaction product belongs based on the product identifier. Specifically, the server may search for the service party identifier of the service party corresponding to the product identifier, and obtain the first data format corresponding to the service party identifier after obtaining the service party identifier, where the first data format refers to the data format of the data required by the service party. The first data format may include a standard format and a non-standard format. The standard format is consistent with the data format provided by the server, and the non-standard format is different from the data format provided by the server, and is a data format specific to the business side.
步骤260,当第一数据格式为非标准格式时,查找业务方对应的第一数据转换信息,根据第一数据转换信息将标准请求报文转换为需求请求报文。Step 260: When the first data format is a non-standard format, the first data conversion information corresponding to the service party is searched, and the standard request message is converted into the demand request message according to the first data conversion information.
服务器获取第一数据格式后,判断第一数据格式是否为标准格式。当服务器判断第一数据格式为非标准格式时,查找业务方标识对应的第一数据转换信息,其中,第一数据转换信息可以预先与业务方标识关联存储在服务器本地。具体地,第一数据转换信息可以包括标准格式与非标准格式的差异字段的字段映射关系,也可以包括业务方所需求的请求报文中数据的数据结构。After obtaining the first data format, the server determines whether the first data format is a standard format. When the server determines that the first data format is a non-standard format, the first data conversion information corresponding to the service party identifier is searched, where the first data conversion information may be stored in the server locality in association with the service party identifier. Specifically, the first data conversion information may include a field mapping relationship between a standard format and a non-standard format difference field, and may also include a data structure of data in the request message required by the service side.
服务器根据查找到的第一数据转换信息将标准请求报文中的差异字段进行映射替换,并对标准请求报文中的数据结构进行调整后生成业务方所需的需求请求报文。The server maps the difference field in the standard request message according to the first data conversion information that is found, and adjusts the data structure in the standard request message to generate a demand request message required by the service party.
步骤270,将需求请求报文发送给业务方的业务服务器。Step 270: Send the demand request message to the service server of the service party.
服务器将生成的需求请求报文发送给业务方标识对应的业务服务器。业务服务器接收到需求请求报文后,根据需求请求报文对用户的交易请求进行处理。The server sends the generated demand request packet to the service server corresponding to the service party identifier. After receiving the demand request message, the service server processes the transaction request of the user according to the demand request message.
在本实施例中,服务器在接收到交易请求后,首先查找交易请求对应的产品交易模板,根据交易数据和产品交易模板生成统一数据格式的标准请求报文,并对相应业务方所需的数据格式进行判断,当判断业务方要求的数据格式为非标准格式时,根据业务方相应的数据转换信息将标准请求报文转换为业务方需求的数据格式,能够自动生成符合业务方需求的请求数据,从而避免了对具有特殊数据格式需求的业务方的数据接口进行单独定制开发,降低开发成本,节约开发时间。In this embodiment, after receiving the transaction request, the server first searches for a product transaction template corresponding to the transaction request, generates a standard request message in a unified data format according to the transaction data and the product transaction template, and obtains data required by the corresponding service party. The format is judged. When it is judged that the data format required by the service party is a non-standard format, the standard request message is converted into a data format required by the business party according to the corresponding data conversion information of the service party, and the request data conforming to the demand of the business party can be automatically generated. Therefore, the data interface of the business side with special data format requirements is separately customized and developed, which reduces development cost and saves development time.
在其中一个实施例中,所述方法还包括:当第一数据格式为标准格式时,将标准请求报文发送给业务方的业务服务器。In one embodiment, the method further includes: when the first data format is a standard format, sending the standard request message to the service server of the service party.
当服务器判断第一数据格式为标准格式时,表明对应业务方需求数据的格式与服务器提供的数据格式一致,无需进行格式转换,服务器直接将生成的标准请求报文发送给业务方标识对应的业务服务器。When the server determines that the first data format is a standard format, it indicates that the format of the data required by the corresponding service party is the same as the data format provided by the server, and the server does not need to perform format conversion, and the server directly sends the generated standard request message to the service corresponding to the service party identifier. server.
服务器在接收到交易请求后,可以将请求中的交易数据自动转换为统一格式的标准请求报文,能够满足大多数业务方的数据需求。After receiving the transaction request, the server can automatically convert the transaction data in the request into a standard format request message in a unified format, which can meet the data requirements of most business parties.
在其中一个实施例中,查找业务方对应的第一数据转换信息,根据第一数据转换信息将标准请求报文转换为需求请求报文的步骤,包括:查找业务方对应的字段映射表;根据字段映射表从标准请求报文中提取出差异字段;从字段映射表中查找出与差异字段对应的定制字段,将标准请求报文中的差异字段替换为对应的定制字段;获取产品标识和业务方对应的请求报文数据结构;根据请求报文数据结构将经过字段替换后的标准请求报文进行调整并生成需求请求报文。In one embodiment, the step of searching for the first data conversion information corresponding to the service party and converting the standard request message into the demand request message according to the first data conversion information includes: searching for a field mapping table corresponding to the service party; The field mapping table extracts the difference field from the standard request message; finds the custom field corresponding to the difference field from the field mapping table, replaces the difference field in the standard request message with the corresponding customized field; acquires the product identifier and the service The data structure of the request message corresponding to the party; the standard request message after the field replacement is adjusted according to the data structure of the request message, and a request request message is generated.
在进行数据格式转换时,服务器根据业务方标识查找业务方对应的字段映射表。字段映射表可以事先存储在服务器中,也可以存储在业务服务器中,由服务器向业务服务器获取。字段映射表中存储了业务方与服务器的所有差异字段的映射关系,即服务器提供的标准参数字段与业务方所需的定制字段之间的映射对应关系,包括参数字段名之间的映射关系和参数字段值之间的对应关系。When performing data format conversion, the server searches for a field mapping table corresponding to the service party according to the service party identifier. The field mapping table may be stored in the server in advance, or may be stored in the service server and obtained by the server to the service server. The field mapping table stores the mapping relationship between the service provider and all the difference fields of the server, that is, the mapping relationship between the standard parameter field provided by the server and the customized field required by the service party, including the mapping relationship between the parameter field names and The correspondence between parameter field values.
例如,被保人性别字段为服务器与业务方的差异字段,被保人性别的标准参数字段名为insured-Gender,而映射的需求参数字段名为insured-sex,被保人性别为男性时的标准参数字段值为M,而映射的需求参数字段值为1。For example, the insured gender field is the difference field between the server and the business party, the standard parameter field of the insured gender is named after-Gender, and the mapped requirement parameter field is named after-sex, and the insured gender is male. The standard parameter field value is M, and the mapped requirement parameter field value is 1.
服务器获取字段映射表中的标准参数字段名,从标准请求报文中查找是否存在与标准参数字段名一致的参数字段名,当查找到一致的参数字段名时,将一致的参数字段名及其对应的参数字段值提取为差异字段,服务器从字段映射关系表中查找与标准参数字段名 对应的定制字段名,将对应的定制字段名及其定制字段值提取为定制字段,将标准请求报文中的差异字段替换为提取的定制字段。The server obtains the standard parameter field name in the field mapping table, and searches for a parameter field name that is consistent with the standard parameter field name from the standard request message. When the consistent parameter field name is found, the consistent parameter field name and its The corresponding parameter field value is extracted as a difference field, and the server searches for a custom field name corresponding to the standard parameter field name from the field mapping relationship table, and extracts the corresponding customized field name and its customized field value as a custom field, and the standard request message is The difference field in the field is replaced with the extracted custom field.
在其中一个实施例中,服务器可以将差异字段根据其所属的产品在字段映射表中进行分类存储,如可以将属于同一产品的字段映射关系与产品标识进行关联存储。服务器从字段映射表中查找与产品标识对应的字段映射关系,再根据查找到的字段映射关系从标准请求报文中提取差异字段并进行字段替换。In one of the embodiments, the server may classify the difference field according to the product to which it belongs in the field mapping table, for example, the field mapping relationship belonging to the same product may be stored in association with the product identifier. The server searches the field mapping table for the field mapping relationship corresponding to the product identifier, and then extracts the difference field from the standard request message according to the found field mapping relationship and performs field replacement.
在其中一个实施例中,服务器可以将所对接的所有业务方与服务器的差异字段的映射关系均存储在字段映射总表中,每一业务方的差异字段的映射关系与业务方标识进行关联存储。服务器可以根据业务方标识查找业务方对应的差异字段的映射关系。In one embodiment, the server may store the mapping relationship between the different service parties and the difference fields of the server in the field mapping total table, and the mapping relationship between the difference fields of each service party is associated with the service party identifier. . The server can find the mapping relationship of the difference field corresponding to the service party according to the service party identifier.
服务器在完成对标准请求报文中的所有差异字段的替换工作后,查找与产品标识和业务方标识对应的请求报文数据结构。业务方中不同的产品的请求报文具有特定的数据结构。数据结构是指请求报文中各类数据的排列规则。服务器根据各类数据的排列规则,将经过差异字段替换后的标准请求报文中的相应数据的排序进行调整,调整后生成需求请求报文。After completing the replacement of all the difference fields in the standard request message, the server searches for the request message data structure corresponding to the product identifier and the service party identifier. Request messages for different products in the business side have a specific data structure. The data structure refers to the arrangement rules of various types of data in the request message. The server adjusts the order of the corresponding data in the standard request message after the difference field is replaced according to the arrangement rules of various types of data, and adjusts to generate a demand request message.
在本实施中,将服务器与业务方所有参数格式具有差异的参数字段统一存储在字段映射表中,方便进行参数字段查找和替换。In this implementation, the parameter fields with different parameter formats of the server and the service party are uniformly stored in the field mapping table, which facilitates parameter field search and replacement.
在其中一个实施例中,根据请求报文数据结构将经过字段替换后的标准请求报文进行调整并生成需求请求报文的步骤,包括:从请求报文数据结构中查找出具有循环属性的数据类;获取数据类的循环等级;从经过字段替换后的标准请求报文中查找与具有循环属性的数据类对应的报文数据,将查找到的报文数据进行分割并得到数据类单元;根据数据类单元所属数据类的循环等级,将数据类单元进行排列并生成需求请求报文。In one embodiment, the step of adjusting the standard request message after the field replacement according to the request message data structure and generating the request request message includes: searching for the data with the loop attribute from the request message data structure. The class of the data class is obtained; the message data corresponding to the data class having the loop attribute is searched from the standard request message after the field replacement, and the found message data is segmented and the data class unit is obtained; The loop level of the data class to which the data class unit belongs, sorting the data class units and generating a demand request message.
服务器获取请求报文数据结构中的数据类。请求报文数据结构中存储有请求数据的数据类,每个数据类均可以包括多个参数字段。如某保险产品的请求报文的数据中包括投保人基本信息、被保人基本信息和险种信息三个数据类,每个数据类中又可以包括多个参数字段。The server obtains the data class in the request message data structure. The request message data structure stores data classes of request data, and each data class may include multiple parameter fields. For example, the data of the request message of an insurance product includes three types of data: the basic information of the insured, the basic information of the insured, and the type of insurance information, and each data class may include a plurality of parameter fields.
服务器获取每个数据类的循环属性值,并根据循环属性值判断数据类是否具有循环属性。如循环属性值为1表示数据类具有循环属性,循环属性值为0表示数据类不具有循环属性,以上取值只是举例说明,具体循环属性值的取值并不限于上述取值。每个数据类包括至少一个数据类单元,当数据类具有循环属性时,需要将数据类中的各数据类单元进行循环排列。以被保人基本信息数据类为例进行说明,当有多个被保人时,每一个被保人的被保人基本信息为一个数据类单元,需要对多个被保人对应的多个数据类单元进行循环排列。The server obtains the loop attribute value of each data class, and determines whether the data class has a loop attribute according to the loop attribute value. For example, if the value of the loop attribute is 1, the data class has a loop attribute, and the value of the loop attribute is 0, the data type does not have a loop attribute. The above values are only examples. The value of the loop attribute value is not limited to the above value. Each data class includes at least one data class unit. When the data class has a loop property, each data class unit in the data class needs to be cyclically arranged. Taking the insured basic information data class as an example, when there are multiple insured persons, the basic information of the insured person of each insured is a data type unit, and multiple multiple insured persons are required. The data class units are arranged in a loop.
服务器根据数据类的循环属性值查找到具有循环属性的数据类,服务器从经过字段替换后的标准请求报文中查找与查找到的数据类对应的报文数据。在一个实施例中,服务器获取数据类中所包含的参数字段组合,并从标准请求报文中查找与参数字段组合中各参数 字段对应的报文数据,当查找到多个与参数字段对应的字段时,将查找到的报文数据进行数据分割,具体地,将查找到的数据按照参数字段组合进行分割得到多个数据类单元。The server finds the data class with the loop attribute according to the loop attribute value of the data class, and the server searches for the packet data corresponding to the found data class from the standard request message after the field replacement. In an embodiment, the server obtains the parameter field combination included in the data class, and searches for the packet data corresponding to each parameter field in the parameter field combination from the standard request message, and when multiple search corresponding to the parameter field are found, In the case of the field, the searched packet data is divided into data. Specifically, the searched data is divided according to the parameter field to obtain a plurality of data class units.
例如,投保人基本信息数据类中包括产品代码、投保份数、保险有效期等多个参数字段组成的参数字段组合,服务器从经过字段替换的标准请求报文中查找与各参数字段对应的报文数据,当查找到多个与产品代码、投保份数、保险有效期参数字段对应的字段时,将查找到的报文数据分割为多个产品代码、投保份数、保险有效期参数组合,从而得到多个数据类单元。For example, the basic information data class of the policyholder includes a combination of parameter fields composed of a plurality of parameter fields such as a product code, a number of insurance shares, and an insurance validity period, and the server searches for a message corresponding to each parameter field from the standard request message that has been replaced by the field. Data, when multiple fields corresponding to the product code, the number of insured copies, and the insurance validity period parameter field are found, the found message data is divided into multiple product codes, the number of insured copies, and the insurance validity period parameter combination, thereby obtaining more Data class units.
服务器获取具有循环属性的数据类的循环等级,根据不同数据类的循环等级的高低,确定不同数据类之间的循环排列顺序。对于不具有循环属性的数据类在请求报文中具有固定的排列位置,服务器获取不具有循环属性的数据类的排列位置,将其调整值相应的排列位置。具体地,将循环等级最高的数据类排列在前,且在每一个等级最高的数据类单元之后需将等级较低的所有数据类单元进行罗列,当存在循环等级相同的数据类时,按照原标准请求报文中的排列先后顺序进行排列,并且各数据类之间一一对应循环排列。The server obtains the loop level of the data class with the loop attribute, and determines the order of the loops between different data classes according to the level of the loop of different data classes. For a data class that does not have a loop attribute, it has a fixed arrangement position in the request message, and the server obtains the arrangement position of the data class that does not have the loop attribute, and adjusts the corresponding arrangement position of the value. Specifically, the data class with the highest cycle level is ranked first, and all the data class units with lower ranks are required to be listed after each of the highest data class units. When there is a data class with the same cycle level, according to the original The arrangement in the standard request message is arranged in order, and the data classes are arranged in a one-to-one correspondence.
继续以某保险产品为例进行说明,投保人基本信息、被保人基本信息和险种信息三个数据类中,被保人基本信息和险种信息两个数据类具有循环属性。被保人基本信息数据类包括A被保人信息和B被保人信息两个数据类单元,险种信息数据类包括C险种信息和D险种信息两个数据类单元。而投保人基本信息数据类不具有循环属性,服务器获取投保人基本信息数据类的排列位置,排列位置在被保人基本信息和险种信息两个数据类之前。Continue to take an insurance product as an example to illustrate, the insured basic information, the insured basic information and the insurance information three data categories, the insured basic information and insurance information two data categories have a circular attribute. The insured basic information data class includes two data class units, A insured information and B insured information, and the insurance information data class includes two data type units, C insurance information and D insurance information. The insured basic information data class does not have a loop attribute, and the server obtains the arrangement position of the insured basic information data class, and the arrangement position is before the insured basic information and the insurance type information.
在标准请求报文中,被保人基本信息数据类的循环等级高于险种信息数据类的循环等级,标准请求报文中各数据类单元的排列顺序为投保人基本信息、A被保人信息、C险种信息、D险种信息、B被保人信息、C险种信息、D险种信息。即循环等级较高的数据类排列在前,且在每一个等级较高的数据类单元之后需将等级较低的所有数据类单元进行罗列。其中,属于同一数据类的数据类单元的排列顺序不做限制,优选地,可以按照交易数据中的参数字段的排列顺序进行排序。In the standard request message, the loop level of the insured basic information data class is higher than the loop level of the insurance information data class, and the order of each data type unit in the standard request message is the basic information of the insured, and the information of the A insured. , C insurance information, D insurance information, B insured information, C insurance information, D insurance information. That is, the data classes with higher cycle levels are ranked first, and all data class units with lower ranks need to be listed after each higher-level data class unit. The order of the data class units belonging to the same data class is not limited. Preferably, the order of the parameter fields in the transaction data may be sorted.
服务器获取被保人基本信息和险种信息两个数据类的循环等级,其中,被保人基本信息数据类的循环等级等于险种信息数据类的循环等级。根据循环等级将标准请求报文中的数据排列顺序调整为:投保人基本信息、A被保人信息、C险种信息、A被保人信息、D险种信息、B被保人信息、C险种信息、B被保人信息、D险种信息。The server acquires a loop level of two data categories of the insured basic information and the insurance information, wherein the loop level of the insured basic information data class is equal to the loop level of the insurance information data category. According to the cycle level, the data arrangement order in the standard request message is adjusted to: basic information of the insured, A insured information, C insurance information, A insured information, D insurance information, B insured information, C insurance information , B insured information, D insurance information.
在本实施例中,通过在服务器中事先存储请求报文的数据结构,服务器能够根据数据结构中的数据类的循环等级对标准请求报文中的数据结构进行数据顺序的自动调整,提高数据转换效率。In this embodiment, by storing the data structure of the request message in the server in advance, the server can automatically adjust the data sequence of the data structure in the standard request message according to the cycle level of the data class in the data structure, thereby improving data conversion. effectiveness.
在其中一个实施例中,将需求请求报文发送给业务方的业务服务器的步骤之后,包括:接收交易响应报文;从交易响应报文中提取业务方标识,获取提取出的业务方标识对应的第二数据格式;当第二数据格式为非标准格式时,查找提取出的业务方标识对应的第二数据转换信息,并根据第二数据转换信息将交易响应报文转换为标准响应报文。In one embodiment, after the step of sending the demand request message to the service server of the service party, the method includes: receiving a transaction response message; extracting the service party identifier from the transaction response message, and obtaining the extracted service party identifier corresponding to a second data format; when the second data format is a non-standard format, searching for the second data conversion information corresponding to the extracted service party identifier, and converting the transaction response message into a standard response message according to the second data conversion information .
当业务方对服务器发送的请求报文处理完毕之后,会向服务器返回交易的处理结果即交易响应报文,服务器接收业务服务器发送的交易响应报文。交易响应报文中可以包括交易代码、客户信息、处理结果等数据。当业务方发送的交易响应报文的数据格式都保持自己的数据格式,有的业务方的数据格式与服务器的一致,有的业务方有自己定制的数据格式。After the service party processes the request packet sent by the server, it returns the transaction processing result, that is, the transaction response message, to the server, and the server receives the transaction response message sent by the service server. The transaction response message may include data such as transaction code, customer information, and processing result. When the data format of the transaction response message sent by the business party maintains its own data format, some business parties have the same data format as the server, and some business parties have their own customized data format.
服务器从交易响应报文中提取业务方标识,获取业务方标识对应的第二数据格式。需要说明的是,当本实施例中的业务方与上述实施例中的业务方一致时,第一数据格式和第二数据格式相同,本文的中的第一和第二只是为了对业务方不同的情况以作区分。The server extracts the service party identifier from the transaction response message, and obtains the second data format corresponding to the service party identifier. It should be noted that, when the service party in this embodiment is consistent with the service party in the foregoing embodiment, the first data format and the second data format are the same, and the first and second in the text are only for different parties. The situation is to distinguish.
服务器判断第二数据格式是否为标准格式,当判断出第二数据格式为标准格式时,无需进行数据转换,服务器可以将交易请求报文解析后返回给终端。当服务器判断出第二数据格式为标准格式时,服务器查找业务方标识对应的第二数据转换信息。其中,第二数据转换信息中可以包括与业务方标识相对应的字段映射表和与产品标识相对应的标准请求报文中的数据结构。服务器首先根据字段映射表查找交易响应报文中的差异字段,将差异字段从业务方的定制字段转换为服务器的标准字段。经过字段转换后,服务器再根据标准请求报文中的数据结构将经过字段替换后的交易响应报文中数据的排列顺序进行调整,并在调整后生成标准响应报文。其中,具体的字段替换方法和数据结构调整方法可以参照上述实施例中请求报文格式转换的方法步骤,在此不再赘述。服务器对标准响应报文进行数据解析,并将解析后的数据返回给终端。The server determines whether the second data format is a standard format. When it is determined that the second data format is a standard format, the data conversion is not required, and the server may parse the transaction request message and return it to the terminal. When the server determines that the second data format is a standard format, the server searches for the second data conversion information corresponding to the service party identifier. The second data conversion information may include a field mapping table corresponding to the service party identifier and a data structure in the standard request message corresponding to the product identifier. The server first searches the difference field in the transaction response message according to the field mapping table, and converts the difference field from the custom field of the business party to the standard field of the server. After the field is converted, the server adjusts the order of the data in the transaction response message after the field is replaced according to the data structure in the standard request message, and generates a standard response message after the adjustment. For the specific field replacement method and the data structure adjustment method, reference may be made to the method steps of requesting message format conversion in the foregoing embodiment, and details are not described herein again. The server parses the standard response message and returns the parsed data to the terminal.
在本实施例中,当终端返回的交易响应报文为非标准格式时,服务器将其转换为服务器的标准数据格式,以便对请求的处理结果进行解析。In this embodiment, when the transaction response message returned by the terminal is in a non-standard format, the server converts it into a standard data format of the server to parse the processing result of the request.
在其中一个实施例中,上述实施例中的标准请求报文和标准请求报文可以采用JSON字符串的形式,并可以采用UTF-8编码格式进行编码。需要说明的是,在其他实施例中,服务器也可以根据具体情况采用其他数据格式或编码方式。In one embodiment, the standard request message and the standard request message in the foregoing embodiment may be in the form of a JSON string and may be encoded in a UTF-8 encoding format. It should be noted that, in other embodiments, the server may also adopt other data formats or encoding manners according to specific situations.
在其中一个实施例中,所述方法还包括:统计当前交易请求的请求数量;当请求数量超过预设请求阈值时,启动新的请求处理线程;当第一数据格式为非标准格式时,生成数据转换任务,将数据转换任务分配至新的请求处理线程中,在新的请求处理线程中执行查找业务方对应的第一数据转换信息,根据第一数据转换信息将标准请求报文转换为需求请求报文的步骤。In one embodiment, the method further includes: counting the number of requests for the current transaction request; when the number of requests exceeds the preset request threshold, starting a new request processing thread; when the first data format is a non-standard format, generating The data conversion task allocates the data conversion task to the new request processing thread, performs the first data conversion information corresponding to the search service party in the new request processing thread, and converts the standard request message into the requirement according to the first data conversion information. The step of requesting a message.
服务器可以定时统计当前接收的各终端发送的交易请求的请求数量。并获取预设请求阈值,服务器将当前的请求数量与预设请求阈值进行比较,当请求数量大于预设请求阈值时,服务器启动新的请求处理线程。当服务器判断出请求对应的业务方的第一数据格式为非标准格式时,服务器根据交易数据和已经生成的标准请求报文生成数据转换任务,其中,数据转换任务可以根据请求的交易代码进行标识。服务器将数据转换任务分配至所启动的新的请求处理线程中,在新的请求处理线程中执行查找业务方对应的第一数据转换信息,根据第一数据转换信息将标准请求报文转换为需求请求报文的步骤。生成需求请求报 文后可以直接发送给业务方标识对应的业务服务器。使得在新的请求处理线程集中处理标准请求报文的数据格式的转换任务,减轻主处理线程的任务量,避免请求过多造成系统阻塞。The server can periodically count the number of requests for transaction requests sent by each terminal currently received. And obtaining a preset request threshold, the server compares the current number of requests with a preset request threshold, and when the number of requests is greater than the preset request threshold, the server starts a new request processing thread. When the server determines that the first data format of the service party corresponding to the request is a non-standard format, the server generates a data conversion task according to the transaction data and the generated standard request message, wherein the data conversion task may be identified according to the requested transaction code. . The server allocates the data conversion task to the new request processing thread that is started, performs the first data conversion information corresponding to the search service party in the new request processing thread, and converts the standard request message into the requirement according to the first data conversion information. The step of requesting a message. After the request request packet is generated, it can be directly sent to the service server corresponding to the service party ID. The processing task of processing the data format of the standard request message is processed in the new request processing thread, the task amount of the main processing thread is reduced, and the system is blocked from being excessively caused by the request.
在其中一个实施例中,当服务器监测到当前请求数量小于预设请求阈值时,不再向新的请求处理线程分配任务,并在新的请求处理线程中的所有数据转换任务结束处理后,关闭新的请求处理线程。从而避免在任务量过少时线程过多造成线程冗余。In one of the embodiments, when the server detects that the current number of requests is less than the preset request threshold, the task is no longer assigned to the new request processing thread, and is closed after all data conversion tasks in the new request processing thread finish processing. The new request processing thread. So as to avoid thread redundancy caused by too many threads when the amount of tasks is too small.
应该理解的是,虽然图2的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the various steps in the flowchart of FIG. 2 are sequentially displayed as indicated by the arrows, these steps are not necessarily performed in the order indicated by the arrows. Except as explicitly stated herein, the execution of these steps is not strictly limited, and the steps may be performed in other orders. Moreover, at least some of the steps in FIG. 2 may include a plurality of sub-steps or stages, which are not necessarily performed at the same time, but may be executed at different times, the execution of these sub-steps or stages The order is also not necessarily sequential, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of the other steps.
在其中一个实施例中,如图3所示,提供了一种数据交互装置,包括:请求接收模块310、数据提取模块320、模板查找模块330、报文生成模块340、格式获取模块350、报文转换模块360和第一报文发送模块370,其中:In one embodiment, as shown in FIG. 3, a data interaction apparatus is provided, including: a request receiving module 310, a data extracting module 320, a template searching module 330, a message generating module 340, a format obtaining module 350, and a newspaper. The text conversion module 360 and the first message sending module 370, wherein:
请求接收模块310,用于接收终端发送的交易请求,交易请求中携带交易数据。The request receiving module 310 is configured to receive a transaction request sent by the terminal, where the transaction request carries the transaction data.
数据提取模块320,用于从交易数据中提取交易类型和产品标识。The data extraction module 320 is configured to extract a transaction type and a product identifier from the transaction data.
模板查找模块330,用于查找交易类型和产品标识对应的产品交易模板。The template search module 330 is configured to find a product transaction template corresponding to the transaction type and the product identifier.
报文生成模块340,用于从交易数据中提取与产品交易模板中的交易参数对应的参数值,并根据提取出的参数值和产品交易模板生成标准请求报文。The message generating module 340 is configured to extract a parameter value corresponding to the transaction parameter in the product transaction template from the transaction data, and generate a standard request message according to the extracted parameter value and the product transaction template.
格式获取模块350,用于查找产品标识所属的业务方,获取业务方的第一数据格式。The format obtaining module 350 is configured to find a service party to which the product identifier belongs, and obtain a first data format of the service party.
报文转换模块360,用于当第一数据格式为非标准格式时,查找业务方对应的第一数据转换信息,根据第一数据转换信息将标准请求报文转换为需求请求报文。The message conversion module 360 is configured to: when the first data format is a non-standard format, search for the first data conversion information corresponding to the service party, and convert the standard request message into the demand request message according to the first data conversion information.
第一报文发送模块370,用于将需求请求报文发送给业务方的业务服务器。The first message sending module 370 is configured to send the demand request message to the service server of the service party.
在其中一个实施例中,所述装置还包括:In one embodiment, the apparatus further includes:
第二报文发送模块,用于当第一数据格式为标准格式时,将标准请求报文发送给业务方的业务服务器。The second packet sending module is configured to send the standard request packet to the service server of the service party when the first data format is a standard format.
在一个实施例中,所述报文转换模块360可以包括:In an embodiment, the message conversion module 360 may include:
映射表查找模块,用于查找业务方对应的字段映射表。The mapping table searching module is configured to find a field mapping table corresponding to the business party.
差异字段提取模块,用于根据字段映射表从标准请求报文中提取出差异字段。The difference field extraction module is configured to extract the difference field from the standard request message according to the field mapping table.
字段替换模块,用于从字段映射表中查找出与差异字段对应的定制字段,将标准请求报文中的差异字段替换为对应的定制字段。The field replacement module is configured to find a custom field corresponding to the difference field from the field mapping table, and replace the difference field in the standard request message with the corresponding customized field.
结构获取模块,用于获取产品标识和业务方对应的请求报文数据结构。The structure obtaining module is configured to obtain a product identifier and a request message data structure corresponding to the service party.
需求报文生成模块,用于根据请求报文数据结构将经过字段替换后的标准请求报文进 行调整并生成需求请求报文。The requirement message generating module is configured to adjust the standard request message after the field replacement according to the request message data structure and generate a demand request message.
在其中一个实施例中,需求报文生成模块可以包括:In one of the embodiments, the requirement message generating module may include:
数据类查找模块,用于从请求报文数据结构中查找出具有循环属性的数据类。The data class finding module is configured to find a data class having a loop attribute from the request message data structure.
等级获取模块,用于获取数据类的循环等级。A level acquisition module for obtaining a loop level of a data class.
单元切分模块,用于从经过字段替换后的标准请求报文中查找与具有循环属性的数据类对应的报文数据,将查找到的报文数据进行分割并得到数据类单元。The unit splitting module is configured to search for the packet data corresponding to the data class having the loop attribute from the standard request message after the field replacement, and divide the found message data to obtain the data class unit.
单元排列模块,用于根据数据类单元所属数据类的循环等级,将数据类单元进行排列并生成需求请求报文。The unit arranging module is configured to arrange the data class units according to the cycle level of the data class to which the data class unit belongs and generate a demand request message.
在其中一个实施例中,所述装置还可以包括:In one embodiment, the apparatus may further include:
响应报文接收模块,用于接收交易响应报文。The response message receiving module is configured to receive a transaction response message.
第二格式提取模块,用于从交易响应报文中提取业务方标识,获取提取出的业务方标识对应的第二数据格式。The second format extraction module is configured to extract a service party identifier from the transaction response message, and obtain a second data format corresponding to the extracted service party identifier.
标准报文转换模块,用于当第二数据格式为非标准格式时,查找提取出的业务方标识对应的第二数据转换信息,并根据第二数据转换信息将交易响应报文转换为标准响应报文。The standard message conversion module is configured to: when the second data format is a non-standard format, search for the second data conversion information corresponding to the extracted service party identifier, and convert the transaction response message into a standard response according to the second data conversion information. Message.
在其中一个实施例中,所述装置还可以包括:In one embodiment, the apparatus may further include:
请求统计模块,用于统计当前交易请求的请求数量。The request statistics module is used to count the number of requests for the current transaction request.
线程启动模块,用于当请求数量超过预设请求阈值时,启动新的请求处理线程。A thread initiation module is configured to start a new request processing thread when the number of requests exceeds a preset request threshold.
步骤执行模块,用于当第一数据格式为非标准格式时,生成数据转换任务,将数据转换任务分配至新的请求处理线程中,在新的请求处理线程中执行查找业务方对应的第一数据转换信息,根据第一数据转换信息将标准请求报文转换为需求请求报文的步骤。a step execution module, configured to: when the first data format is a non-standard format, generate a data conversion task, allocate the data conversion task to the new request processing thread, and execute the first corresponding to the search service party in the new request processing thread. The data conversion information is a step of converting the standard request message into the demand request message according to the first data conversion information.
关于数据交互装置的具体限定可以参见上文中对于数据交互方法的限定,在此不再赘述。上述数据交互装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific definition of the data interaction device, reference may be made to the definition of the data interaction method in the above, and details are not described herein again. The various modules in the above data interaction device may be implemented in whole or in part by software, hardware, and combinations thereof. Each of the above modules may be embedded in or independent of the processor in the computer device, or may be stored in a memory in the computer device in a software form, so that the processor invokes the operations corresponding to the above modules.
在其中一个实施例中,提供了一种计算机设备,该计算机设备可以是服务器,其内部结构图可以如图4所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机可读指令和数据库。该内存储器为非易失性存储介质中的操作系统和计算机可读指令的运行提供环境。该计算机设备的数据库用于存储产品交易模板、数据转换信息等数据。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机可读指令被处理器执行时以实现一种数据交互方法。In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in FIG. The computer device includes a processor, memory, network interface, and database connected by a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium, an internal memory. The non-volatile storage medium stores an operating system, computer readable instructions, and a database. The internal memory provides an environment for operation of an operating system and computer readable instructions in a non-volatile storage medium. The database of the computer device is used to store data such as product transaction templates, data conversion information, and the like. The network interface of the computer device is used to communicate with an external terminal via a network connection. The computer readable instructions are executed by a processor to implement a method of data interaction.
本领域技术人员可以理解,图4中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可 以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。It will be understood by those skilled in the art that the structure shown in FIG. 4 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation of the computer device to which the solution of the present application is applied. The specific computer device may It includes more or fewer components than those shown in the figures, or some components are combined, or have different component arrangements.
一种计算机设备,包括存储器和一个或多个处理器,存储器中储存有计算机可读指令,计算机可读指令被处理器执行时,使得一个或多个处理器执行以下步骤:接收终端发送的交易请求,交易请求中携带交易数据;从交易数据中提取交易类型和产品标识;查找交易类型和产品标识对应的产品交易模板;从交易数据中提取与产品交易模板中的交易参数对应的参数值,并根据提取出的参数值和产品交易模板生成标准请求报文;查找产品标识所属的业务方,获取业务方的第一数据格式;当第一数据格式为非标准格式时,查找业务方对应的第一数据转换信息,根据第一数据转换信息将标准请求报文转换为需求请求报文;将需求请求报文发送给业务方的业务服务器。A computer device comprising a memory and one or more processors, the memory storing computer readable instructions, the computer readable instructions being executed by the processor, causing the one or more processors to perform the steps of: receiving a transaction sent by the terminal Requesting, the transaction request carries the transaction data; extracting the transaction type and the product identification from the transaction data; finding the product transaction template corresponding to the transaction type and the product identification; and extracting the parameter value corresponding to the transaction parameter in the product transaction template from the transaction data, And generating a standard request message according to the extracted parameter value and the product transaction template; searching for the service party to which the product identifier belongs, and obtaining the first data format of the service party; when the first data format is a non-standard format, searching for the corresponding service party The first data conversion information is used to convert the standard request message into a demand request message according to the first data conversion information; and send the demand request message to the service server of the service side.
在其中一个实施例中,处理器执行计算机可读指令时还实现以下步骤:当第一数据格式为标准格式时,将标准请求报文发送给业务方的业务服务器。In one of the embodiments, the processor, when executing the computer readable instructions, further implements the step of: transmitting the standard request message to the service server of the service party when the first data format is a standard format.
在其中一个实施例中,处理器执行计算机可读指令实现查找业务方对应的第一数据转换信息,根据第一数据转换信息将标准请求报文转换为需求请求报文的步骤时还用于:查找业务方对应的字段映射表;根据字段映射表从标准请求报文中提取出差异字段;从字段映射表中查找出与差异字段对应的定制字段,将标准请求报文中的差异字段替换为对应的定制字段;获取产品标识和业务方对应的请求报文数据结构;根据请求报文数据结构将经过字段替换后的标准请求报文进行调整并生成需求请求报文。In one embodiment, the processor executes the computer readable instructions to implement the first data conversion information corresponding to the search service party, and the step of converting the standard request message into the demand request message according to the first data conversion information is further used to: Find a field mapping table corresponding to the service party; extract the difference field from the standard request message according to the field mapping table; find a custom field corresponding to the difference field from the field mapping table, and replace the difference field in the standard request message with Corresponding custom field; obtaining the product identifier and the request message data structure corresponding to the service party; adjusting the standard request message after the field replacement according to the request message data structure and generating the demand request message.
在其中一个实施例中,处理器执行计算机可读指令实现根据请求报文数据结构将经过字段替换后的标准请求报文进行调整并生成需求请求报文的步骤时还用于:从请求报文数据结构中查找出具有循环属性的数据类;获取数据类的循环等级;从经过字段替换后的标准请求报文中查找与具有循环属性的数据类对应的报文数据,将查找到的报文数据进行分割并得到数据类单元;根据数据类单元所属数据类的循环等级,将数据类单元进行排列并生成需求请求报文。In one of the embodiments, the processor executes the computer readable instructions to implement the step of adjusting the standard request message after the field replacement according to the request message data structure and generating the request request message, and is further used for: the request message Find the data class with the loop attribute in the data structure; obtain the loop level of the data class; find the message data corresponding to the data class with the loop attribute from the standard request message after the field replacement, and find the message The data is segmented and the data class unit is obtained; according to the cycle level of the data class to which the data class unit belongs, the data class units are arranged and a demand request message is generated.
在其中一个实施例中,处理器执行计算机可读指令时还实现以下步骤:接收交易响应报文;从交易响应报文中提取业务方标识,获取提取出的业务方标识对应的第二数据格式;当第二数据格式为非标准格式时,查找提取出的业务方标识对应的第二数据转换信息,并根据第二数据转换信息将交易响应报文转换为标准响应报文。In one embodiment, the processor further implements the following steps: receiving a transaction response message; extracting a service party identifier from the transaction response message, and acquiring a second data format corresponding to the extracted service party identifier. When the second data format is a non-standard format, the second data conversion information corresponding to the extracted service party identifier is searched, and the transaction response message is converted into a standard response message according to the second data conversion information.
在其中一个实施例中,处理器执行计算机可读指令时还实现以下步骤:统计当前交易请求的请求数量;当请求数量超过预设请求阈值时,启动新的请求处理线程;当第一数据格式为非标准格式时,生成数据转换任务,将数据转换任务分配至新的请求处理线程中,在新的请求处理线程中执行查找业务方对应的第一数据转换信息,根据第一数据转换信息将标准请求报文转换为需求请求报文的步骤。In one embodiment, the processor, when executing the computer readable instructions, further implements the steps of: counting the number of requests for the current transaction request; when the number of requests exceeds the preset request threshold, initiating a new request processing thread; when the first data format When the data format is non-standard, the data conversion task is generated, the data conversion task is allocated to the new request processing thread, and the first data conversion information corresponding to the search service party is executed in the new request processing thread, and the first data conversion information is The step of converting a standard request message into a request request message.
一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行以下步骤:接收终端发送的交易请求,交易请求中携带交易数据;从交易数据中提取交易类型和产品标识;查找交易类型 和产品标识对应的产品交易模板;从交易数据中提取与产品交易模板中的交易参数对应的参数值,并根据提取出的参数值和产品交易模板生成标准请求报文;查找产品标识所属的业务方,获取业务方的第一数据格式;当第一数据格式为非标准格式时,查找业务方对应的第一数据转换信息,根据第一数据转换信息将标准请求报文转换为需求请求报文;将需求请求报文发送给业务方的业务服务器。One or more non-transitory computer readable storage mediums storing computer readable instructions, when executed by one or more processors, cause one or more processors to perform the steps of: receiving by a terminal Transaction request, transaction request carries transaction data; extract transaction type and product identification from transaction data; find product transaction template corresponding to transaction type and product identification; extract parameter value corresponding to transaction parameter in product transaction template from transaction data And generating a standard request message according to the extracted parameter value and the product transaction template; searching for the service party to which the product identifier belongs, obtaining the first data format of the service party; and when the first data format is a non-standard format, searching for the service party corresponding The first data conversion information is used to convert the standard request message into a demand request message according to the first data conversion information; and send the demand request message to the service server of the service side.
在其中一个实施例中,计算机可读指令被处理器执行时还实现以下步骤:当第一数据格式为标准格式时,将标准请求报文发送给业务方的业务服务器。In one of the embodiments, the computer readable instructions are further executed by the processor to: when the first data format is a standard format, send the standard request message to the service server of the business party.
在其中一个实施例中,计算机可读指令被处理器执行查找业务方对应的第一数据转换信息,根据第一数据转换信息将标准请求报文转换为需求请求报文的步骤时还用于实现:查找业务方对应的字段映射表;根据字段映射表从标准请求报文中提取出差异字段;从字段映射表中查找出与差异字段对应的定制字段,将标准请求报文中的差异字段替换为对应的定制字段;获取产品标识和业务方对应的请求报文数据结构;根据请求报文数据结构将经过字段替换后的标准请求报文进行调整并生成需求请求报文。In one embodiment, the computer readable instructions are executed by the processor to search for first data conversion information corresponding to the service party, and are further used to implement the step of converting the standard request message into the demand request message according to the first data conversion information. Finding a field mapping table corresponding to the service party; extracting a difference field from the standard request message according to the field mapping table; finding a custom field corresponding to the difference field from the field mapping table, and replacing the difference field in the standard request message For the corresponding custom field, the product identifier and the request message data structure corresponding to the service party are obtained; the standard request message after the field replacement is adjusted according to the request message data structure, and the demand request message is generated.
在其中一个实施例中,计算机可读指令被处理器执行根据请求报文数据结构将经过字段替换后的标准请求报文进行调整并生成需求请求报文的步骤时还用于实现:从请求报文数据结构中查找出具有循环属性的数据类;获取数据类的循环等级;从经过字段替换后的标准请求报文中查找与具有循环属性的数据类对应的报文数据,将查找到的报文数据进行分割并得到数据类单元;根据数据类单元所属数据类的循环等级,将数据类单元进行排列并生成需求请求报文。In one embodiment, the computer readable instructions are further implemented by the processor when the processor performs the step of adjusting the standard request message after the field replacement according to the request message data structure and generating the demand request message: Find the data class with the loop attribute in the text data structure; obtain the loop level of the data class; search for the message data corresponding to the data class with the loop attribute from the standard request message after the field replacement, and find the reported message The text data is segmented and the data class unit is obtained; according to the cycle level of the data class to which the data class unit belongs, the data class units are arranged and a demand request message is generated.
在其中一个实施例中,计算机可读指令被处理器执行时还实现以下步骤:接收交易响应报文;从交易响应报文中提取业务方标识,获取提取出的业务方标识对应的第二数据格式;当第二数据格式为非标准格式时,查找提取出的业务方标识对应的第二数据转换信息,并根据第二数据转换信息将交易响应报文转换为标准响应报文。In one embodiment, when the computer readable instructions are executed by the processor, the following steps are further performed: receiving a transaction response message; extracting a service party identifier from the transaction response message, and acquiring the second data corresponding to the extracted service party identifier a format; when the second data format is a non-standard format, searching for the second data conversion information corresponding to the extracted service party identifier, and converting the transaction response message into a standard response message according to the second data conversion information.
在其中一个实施例中,计算机可读指令被处理器执行时还实现以下步骤:统计当前交易请求的请求数量;当请求数量超过预设请求阈值时,启动新的请求处理线程;当第一数据格式为非标准格式时,生成数据转换任务,将数据转换任务分配至新的请求处理线程中,在新的请求处理线程中执行查找业务方对应的第一数据转换信息,根据第一数据转换信息将标准请求报文转换为需求请求报文的步骤。In one of the embodiments, the computer readable instructions are further executed by the processor to: count the number of requests for the current transaction request; when the number of requests exceeds the preset request threshold, initiate a new request processing thread; when the first data When the format is a non-standard format, a data conversion task is generated, the data conversion task is allocated to the new request processing thread, and the first data conversion information corresponding to the search service party is executed in the new request processing thread, and the first data conversion information is performed according to the first data conversion information. The step of converting a standard request message into a request request message.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一非易失性计算机可读取存储介质中,该计算机可读指令在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明 而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。One of ordinary skill in the art can understand that all or part of the process of implementing the above embodiments can be completed by computer readable instructions, which can be stored in a non-volatile computer. The readable storage medium, which when executed, may include the flow of an embodiment of the methods as described above. Any reference to a memory, storage, database or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of formats, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronization chain. Synchlink DRAM (SLDRAM), Memory Bus (Rambus) Direct RAM (RDRAM), Direct Memory Bus Dynamic RAM (DRDRAM), and Memory Bus Dynamic RAM (RDRAM).
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments may be arbitrarily combined. For the sake of brevity of description, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, It is considered to be the range described in this specification.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments are merely illustrative of several embodiments of the present application, and the description thereof is more specific and detailed, but is not to be construed as limiting the scope of the invention. It should be noted that a number of variations and modifications may be made by those skilled in the art without departing from the spirit and scope of the present application. Therefore, the scope of the invention should be determined by the appended claims.

Claims (20)

  1. 一种数据交互方法,包括:A data interaction method, including:
    接收终端发送的交易请求,所述交易请求中携带交易数据;Receiving a transaction request sent by the terminal, where the transaction request carries transaction data;
    从所述交易数据中提取交易类型和产品标识;Extracting the transaction type and product identification from the transaction data;
    查找所述交易类型和所述产品标识对应的产品交易模板;Finding a product transaction template corresponding to the transaction type and the product identifier;
    从所述交易数据中提取与所述产品交易模板中的交易参数对应的参数值,并根据提取出的参数值和所述产品交易模板生成标准请求报文;Extracting a parameter value corresponding to the transaction parameter in the product transaction template from the transaction data, and generating a standard request message according to the extracted parameter value and the product transaction template;
    查找所述产品标识所属的业务方,获取所述业务方的第一数据格式;Finding a service party to which the product identifier belongs, and acquiring a first data format of the service party;
    当所述第一数据格式为非标准格式时,查找所述业务方对应的第一数据转换信息,根据所述第一数据转换信息将所述标准请求报文转换为需求请求报文;及When the first data format is a non-standard format, the first data conversion information corresponding to the service party is searched, and the standard request message is converted into a demand request message according to the first data conversion information;
    将所述需求请求报文发送给所述业务方的业务服务器。Sending the demand request message to the service server of the service party.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:
    当所述第一数据格式为标准格式时,将所述标准请求报文发送给所述业务方的业务服务器。When the first data format is a standard format, the standard request message is sent to the service server of the service party.
  3. 根据权利要求1所述的方法,其特征在于,所述查找所述业务方对应的第一数据转换信息,根据所述第一数据转换信息将所述标准请求报文转换为需求请求报文的步骤,包括:The method according to claim 1, wherein the searching for the first data conversion information corresponding to the service party, and converting the standard request message into a request request message according to the first data conversion information Steps, including:
    查找所述业务方对应的字段映射表;Find a field mapping table corresponding to the service party;
    根据所述字段映射表从所述标准请求报文中提取出差异字段;Extracting a difference field from the standard request message according to the field mapping table;
    从所述字段映射表中查找出与所述差异字段对应的定制字段,将所述标准请求报文中的所述差异字段替换为所述对应的定制字段;Finding a custom field corresponding to the difference field from the field mapping table, and replacing the difference field in the standard request message with the corresponding customized field;
    获取所述产品标识和所述业务方对应的请求报文数据结构;及Obtaining the product identifier and a request message data structure corresponding to the service party; and
    根据所述请求报文数据结构将经过字段替换后的标准请求报文进行调整并生成需求请求报文。The standard request message after the field replacement is adjusted according to the request message data structure, and a demand request message is generated.
  4. 根据权利要求3所述的方法,其特征在于,所述根据所述请求报文数据结构将经过字段替换后的标准请求报文进行调整并生成需求请求报文的步骤,包括:The method according to claim 3, wherein the step of adjusting the standard request message after the field replacement according to the request message data structure and generating the demand request message comprises:
    从所述请求报文数据结构中查找出具有循环属性的数据类;Finding a data class having a loop attribute from the request message data structure;
    获取所述数据类的循环等级;Obtaining a loop level of the data class;
    从经过字段替换后的标准请求报文中查找与所述具有循环属性的数据类对应的报文数据,将查找到的报文数据进行分割并得到数据类单元;及And searching for the packet data corresponding to the data class having the cyclic attribute from the standard request message after the field replacement, and dividing the found message data to obtain the data class unit;
    根据所述数据类单元所属数据类的循环等级,将所述数据类单元进行排列并生成需求请求报文。And arranging the data class units according to a cycle level of the data class to which the data class unit belongs and generating a demand request message.
  5. 根据权利要求1所述的方法,其特征在于,所述将所述需求请求报文发送给所述业务方的业务服务器的步骤之后,包括:The method according to claim 1, wherein the step of transmitting the demand request message to the service server of the service party comprises:
    接收交易响应报文;Receiving a transaction response message;
    从所述交易响应报文中提取业务方标识,获取提取出的业务方标识对应的第二数据格式;及Extracting a service party identifier from the transaction response message, and acquiring a second data format corresponding to the extracted service party identifier; and
    当所述第二数据格式为非标准格式时,查找提取出的业务方标识对应的第二数据转换信息,并根据所述第二数据转换信息将所述交易响应报文转换为标准响应报文。When the second data format is a non-standard format, searching for the second data conversion information corresponding to the extracted service party identifier, and converting the transaction response message into a standard response message according to the second data conversion information .
  6. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:
    统计当前交易请求的请求数量;Count the number of requests for the current transaction request;
    当所述请求数量超过预设请求阈值时,启动新的请求处理线程;及Initiating a new request processing thread when the number of requests exceeds a preset request threshold; and
    当所述第一数据格式为非标准格式时,生成数据转换任务,将所述数据转换任务分配至所述新的请求处理线程中,在所述新的请求处理线程中执行所述查找所述业务方对应的第一数据转换信息,根据所述第一数据转换信息将所述标准请求报文转换为需求请求报文的步骤。Generating a data conversion task, assigning the data conversion task to the new request processing thread, and performing the searching in the new request processing thread when the first data format is a non-standard format The first data conversion information corresponding to the service party, and the step of converting the standard request message into a demand request message according to the first data conversion information.
  7. 一种数据交互装置,包括:A data interaction device comprising:
    请求接收模块,用于接收终端发送的交易请求,所述交易请求中携带交易数据;a request receiving module, configured to receive a transaction request sent by the terminal, where the transaction request carries transaction data;
    数据提取模块,用于从所述交易数据中提取交易类型和产品标识;a data extraction module, configured to extract a transaction type and a product identifier from the transaction data;
    模板查找模块,用于查找所述交易类型和所述产品标识对应的产品交易模板;a template search module, configured to search for the transaction type and the product transaction template corresponding to the product identifier;
    报文生成模块,用于从所述交易数据中提取与所述产品交易模板中的交易参数对应的参数值,并根据提取出的参数值和所述产品交易模板生成标准请求报文;a message generating module, configured to extract a parameter value corresponding to the transaction parameter in the product transaction template from the transaction data, and generate a standard request message according to the extracted parameter value and the product transaction template;
    格式获取模块,用于查找所述产品标识所属的业务方,获取所述业务方的第一数据格式;a format obtaining module, configured to search for a service party to which the product identifier belongs, and obtain a first data format of the service party;
    报文转换模块,用于当所述第一数据格式为非标准格式时,查找所述业务方对应的第一数据转换信息,根据所述第一数据转换信息将所述标准请求报文转换为需求请求报文;及a message conversion module, configured to: when the first data format is a non-standard format, search for first data conversion information corresponding to the service party, and convert the standard request message into Demand request message; and
    第一报文发送模块,用于将所述需求请求报文发送给所述业务方的业务服务器。The first packet sending module is configured to send the demand request message to the service server of the service party.
  8. 根据权利要求7所述的装置,其特征在于,还包括:The device according to claim 7, further comprising:
    第二报文发送模块,用于当所述第一数据格式为标准格式时,将所述标准请求报文发送给所述业务方的业务服务器。The second packet sending module is configured to send the standard request packet to the service server of the service party when the first data format is a standard format.
  9. 一种计算机设备,包括存储器及一个或多个处理器,所述存储器中储存有计算机可读指令,所述计算机可读指令被所述一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:A computer device comprising a memory and one or more processors having stored therein computer readable instructions, the computer readable instructions being executed by the one or more processors to cause the one or more The processors perform the following steps:
    接收终端发送的交易请求,所述交易请求中携带交易数据;Receiving a transaction request sent by the terminal, where the transaction request carries transaction data;
    从所述交易数据中提取交易类型和产品标识;Extracting the transaction type and product identification from the transaction data;
    查找所述交易类型和所述产品标识对应的产品交易模板;Finding a product transaction template corresponding to the transaction type and the product identifier;
    从所述交易数据中提取与所述产品交易模板中的交易参数对应的参数值,并根据提取 出的参数值和所述产品交易模板生成标准请求报文;Extracting a parameter value corresponding to the transaction parameter in the product transaction template from the transaction data, and generating a standard request message according to the extracted parameter value and the product transaction template;
    查找所述产品标识所属的业务方,获取所述业务方的第一数据格式;Finding a service party to which the product identifier belongs, and acquiring a first data format of the service party;
    当所述第一数据格式为非标准格式时,查找所述业务方对应的第一数据转换信息,根据所述第一数据转换信息将所述标准请求报文转换为需求请求报文;及When the first data format is a non-standard format, the first data conversion information corresponding to the service party is searched, and the standard request message is converted into a demand request message according to the first data conversion information;
    将所述需求请求报文发送给所述业务方的业务服务器。Sending the demand request message to the service server of the service party.
  10. 根据权利要求9所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时还执行以下步骤:The computer apparatus according to claim 9, wherein said processor further performs the following steps when said computer readable instructions are executed:
    当所述第一数据格式为标准格式时,将所述标准请求报文发送给所述业务方的业务服务器。When the first data format is a standard format, the standard request message is sent to the service server of the service party.
  11. 根据权利要求9所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时执行查找所述业务方对应的第一数据转换信息,根据所述第一数据转换信息将所述标准请求报文转换为需求请求报文的步骤,包括:The computer device according to claim 9, wherein the processor executes the first readable data corresponding to the service party when the computer readable instructions are executed, and according to the first data conversion information The step of converting the standard request message into the demand request message includes:
    查找所述业务方对应的字段映射表;Find a field mapping table corresponding to the service party;
    根据所述字段映射表从所述标准请求报文中提取出差异字段;Extracting a difference field from the standard request message according to the field mapping table;
    从所述字段映射表中查找出与所述差异字段对应的定制字段,将所述标准请求报文中的所述差异字段替换为所述对应的定制字段;Finding a custom field corresponding to the difference field from the field mapping table, and replacing the difference field in the standard request message with the corresponding customized field;
    获取所述产品标识和所述业务方对应的请求报文数据结构;及Obtaining the product identifier and a request message data structure corresponding to the service party; and
    根据所述请求报文数据结构将经过字段替换后的标准请求报文进行调整并生成需求请求报文。The standard request message after the field replacement is adjusted according to the request message data structure, and a demand request message is generated.
  12. 根据权利要求11所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时执行根据所述请求报文数据结构将经过字段替换后的标准请求报文进行调整并生成需求请求报文的步骤,包括:The computer apparatus according to claim 11, wherein said processor executes said computer readable instructions to perform adjustment of a standard request message after field replacement according to said request message data structure and generate a request The steps for requesting a message, including:
    从所述请求报文数据结构中查找出具有循环属性的数据类;Finding a data class having a loop attribute from the request message data structure;
    获取所述数据类的循环等级;Obtaining a loop level of the data class;
    从经过字段替换后的标准请求报文中查找与所述具有循环属性的数据类对应的报文数据,将查找到的报文数据进行分割并得到数据类单元;及And searching for the packet data corresponding to the data class having the cyclic attribute from the standard request message after the field replacement, and dividing the found message data to obtain the data class unit;
    根据所述数据类单元所属数据类的循环等级,将所述数据类单元进行排列并生成需求请求报文。And arranging the data class units according to a cycle level of the data class to which the data class unit belongs and generating a demand request message.
  13. 根据权利要求9所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时还执行以下步骤:The computer apparatus according to claim 9, wherein said processor further performs the following steps when said computer readable instructions are executed:
    接收交易响应报文;Receiving a transaction response message;
    从所述交易响应报文中提取业务方标识,获取提取出的业务方标识对应的第二数据格式;及Extracting a service party identifier from the transaction response message, and acquiring a second data format corresponding to the extracted service party identifier; and
    当所述第二数据格式为非标准格式时,查找提取出的业务方标识对应的第二数据转换信息,并根据所述第二数据转换信息将所述交易响应报文转换为标准响应报文。When the second data format is a non-standard format, searching for the second data conversion information corresponding to the extracted service party identifier, and converting the transaction response message into a standard response message according to the second data conversion information .
  14. 根据权利要求9所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时还执行以下步骤:The computer apparatus according to claim 9, wherein said processor further performs the following steps when said computer readable instructions are executed:
    统计当前交易请求的请求数量;Count the number of requests for the current transaction request;
    当所述请求数量超过预设请求阈值时,启动新的请求处理线程;及Initiating a new request processing thread when the number of requests exceeds a preset request threshold; and
    当所述第一数据格式为非标准格式时,生成数据转换任务,将所述数据转换任务分配至所述新的请求处理线程中,在所述新的请求处理线程中执行所述查找所述业务方对应的第一数据转换信息,根据所述第一数据转换信息将所述标准请求报文转换为需求请求报文的步骤。Generating a data conversion task, assigning the data conversion task to the new request processing thread, and performing the searching in the new request processing thread when the first data format is a non-standard format The first data conversion information corresponding to the service party, and the step of converting the standard request message into a demand request message according to the first data conversion information.
  15. 一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:One or more non-transitory computer readable storage mediums storing computer readable instructions, when executed by one or more processors, cause the one or more processors to perform the following steps:
    接收终端发送的交易请求,所述交易请求中携带交易数据;Receiving a transaction request sent by the terminal, where the transaction request carries transaction data;
    从所述交易数据中提取交易类型和产品标识;Extracting the transaction type and product identification from the transaction data;
    查找所述交易类型和所述产品标识对应的产品交易模板;Finding a product transaction template corresponding to the transaction type and the product identifier;
    从所述交易数据中提取与所述产品交易模板中的交易参数对应的参数值,并根据提取出的参数值和所述产品交易模板生成标准请求报文;Extracting a parameter value corresponding to the transaction parameter in the product transaction template from the transaction data, and generating a standard request message according to the extracted parameter value and the product transaction template;
    查找所述产品标识所属的业务方,获取所述业务方的第一数据格式;Finding a service party to which the product identifier belongs, and acquiring a first data format of the service party;
    当所述第一数据格式为非标准格式时,查找所述业务方对应的第一数据转换信息,根据所述第一数据转换信息将所述标准请求报文转换为需求请求报文;及When the first data format is a non-standard format, the first data conversion information corresponding to the service party is searched, and the standard request message is converted into a demand request message according to the first data conversion information;
    将所述需求请求报文发送给所述业务方的业务服务器。Sending the demand request message to the service server of the service party.
  16. 根据权利要求15所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时还执行以下步骤:The storage medium of claim 15 wherein said computer readable instructions, when executed by said processor, further perform the following steps:
    当所述第一数据格式为标准格式时,将所述标准请求报文发送给所述业务方的业务服务器。When the first data format is a standard format, the standard request message is sent to the service server of the service party.
  17. 根据权利要求15所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时执行查找所述业务方对应的第一数据转换信息,根据所述第一数据转换信息将所述标准请求报文转换为需求请求报文的步骤,包括:The storage medium according to claim 15, wherein the computer readable instructions are executed by the processor to perform first search for first data conversion information corresponding to the service party, according to the first data conversion information The step of converting the standard request message into a request request message includes:
    查找所述业务方对应的字段映射表;Find a field mapping table corresponding to the service party;
    根据所述字段映射表从所述标准请求报文中提取出差异字段;Extracting a difference field from the standard request message according to the field mapping table;
    从所述字段映射表中查找出与所述差异字段对应的定制字段,将所述标准请求报文中的所述差异字段替换为所述对应的定制字段;Finding a custom field corresponding to the difference field from the field mapping table, and replacing the difference field in the standard request message with the corresponding customized field;
    获取所述产品标识和所述业务方对应的请求报文数据结构;及Obtaining the product identifier and a request message data structure corresponding to the service party; and
    根据所述请求报文数据结构将经过字段替换后的标准请求报文进行调整并生成需求请求报文。The standard request message after the field replacement is adjusted according to the request message data structure, and a demand request message is generated.
  18. 根据权利要求17所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时执行根据所述请求报文数据结构将经过字段替换后的标准请求报文进行调整 并生成需求请求报文的步骤,包括:The storage medium according to claim 17, wherein said computer readable instructions are executed by said processor to perform adjustment and generation of standard request messages after field replacement according to said request message data structure The steps of the request request message, including:
    从所述请求报文数据结构中查找出具有循环属性的数据类;Finding a data class having a loop attribute from the request message data structure;
    获取所述数据类的循环等级;Obtaining a loop level of the data class;
    从经过字段替换后的标准请求报文中查找与所述具有循环属性的数据类对应的报文数据,将查找到的报文数据进行分割并得到数据类单元;及And searching for the packet data corresponding to the data class having the cyclic attribute from the standard request message after the field replacement, and dividing the found message data to obtain the data class unit;
    根据所述数据类单元所属数据类的循环等级,将所述数据类单元进行排列并生成需求请求报文。And arranging the data class units according to a cycle level of the data class to which the data class unit belongs and generating a demand request message.
  19. 根据权利要求15所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时还执行以下步骤:The storage medium of claim 15 wherein said computer readable instructions, when executed by said processor, further perform the following steps:
    接收交易响应报文;Receiving a transaction response message;
    从所述交易响应报文中提取业务方标识,获取提取出的业务方标识对应的第二数据格式;及Extracting a service party identifier from the transaction response message, and acquiring a second data format corresponding to the extracted service party identifier; and
    当所述第二数据格式为非标准格式时,查找提取出的业务方标识对应的第二数据转换信息,并根据所述第二数据转换信息将所述交易响应报文转换为标准响应报文。When the second data format is a non-standard format, searching for the second data conversion information corresponding to the extracted service party identifier, and converting the transaction response message into a standard response message according to the second data conversion information .
  20. 根据权利要求15所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时还执行以下步骤:The storage medium of claim 15 wherein said computer readable instructions, when executed by said processor, further perform the following steps:
    统计当前交易请求的请求数量;Count the number of requests for the current transaction request;
    当所述请求数量超过预设请求阈值时,启动新的请求处理线程;及Initiating a new request processing thread when the number of requests exceeds a preset request threshold; and
    当所述第一数据格式为非标准格式时,生成数据转换任务,将所述数据转换任务分配至所述新的请求处理线程中,在所述新的请求处理线程中执行所述查找所述业务方对应的第一数据转换信息,根据所述第一数据转换信息将所述标准请求报文转换为需求请求报文的步骤。Generating a data conversion task, assigning the data conversion task to the new request processing thread, and performing the searching in the new request processing thread when the first data format is a non-standard format The first data conversion information corresponding to the service party, and the step of converting the standard request message into a demand request message according to the first data conversion information.
PCT/CN2019/070023 2018-01-30 2019-01-02 Data interaction method and apparatus, computer device, and storage medium WO2019149019A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810090831.0 2018-01-30
CN201810090831.0A CN109344183B (en) 2018-01-30 2018-01-30 Data interaction method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2019149019A1 true WO2019149019A1 (en) 2019-08-08

Family

ID=65291426

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/070023 WO2019149019A1 (en) 2018-01-30 2019-01-02 Data interaction method and apparatus, computer device, and storage medium

Country Status (2)

Country Link
CN (1) CN109344183B (en)
WO (1) WO2019149019A1 (en)

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110673831A (en) * 2019-08-22 2020-01-10 深圳联友科技有限公司 Cache calculation method for request parameters
CN111104556A (en) * 2019-11-19 2020-05-05 泰康保险集团股份有限公司 Service processing method and device
CN111221855A (en) * 2020-01-08 2020-06-02 中国建设银行股份有限公司 Data processing method and device
CN111553447A (en) * 2020-04-26 2020-08-18 黄应明 Communication data conversion method and device and data processing terminal
CN111752916A (en) * 2019-12-30 2020-10-09 北京沃东天骏信息技术有限公司 Data acquisition method and device, computer readable storage medium and electronic equipment
CN111897791A (en) * 2020-07-15 2020-11-06 银联商务股份有限公司 Service distribution method, device, equipment and storage medium
CN112115682A (en) * 2020-09-28 2020-12-22 中国建设银行股份有限公司 Automatic processing method and device for electronic certificate message based on engine
CN112799944A (en) * 2021-01-29 2021-05-14 中国工商银行股份有限公司 System performance testing method and system
CN112866268A (en) * 2021-01-29 2021-05-28 中国工商银行股份有限公司 Message processing method and system
CN112948474A (en) * 2019-12-11 2021-06-11 深圳云天励飞技术有限公司 Data export method, device, equipment and computer readable storage medium
CN113129144A (en) * 2019-12-31 2021-07-16 航天信息股份有限公司 Transaction information processing method, device and system
CN113610647A (en) * 2021-05-18 2021-11-05 臻顺溜科技股份有限公司 Policy service management method, computing device, and medium interfacing with an issuing system
CN113836145A (en) * 2021-09-29 2021-12-24 中电金信软件有限公司 Method and device for requesting data, electronic equipment and computer-readable storage medium
CN114051053A (en) * 2021-11-16 2022-02-15 深圳依时货拉拉科技有限公司 iOS push message processing method, device, computer equipment and storage medium
CN114070886A (en) * 2021-11-17 2022-02-18 深圳壹账通智能科技有限公司 Message conversion method, device, equipment and medium
CN114157661A (en) * 2020-09-07 2022-03-08 北京奇艺世纪科技有限公司 Data request method, data processing method, related device, equipment and system
CN114285834A (en) * 2021-12-24 2022-04-05 山石网科通信技术股份有限公司 Message transmission method and device and terminal equipment
CN114615342A (en) * 2022-01-29 2022-06-10 江苏方天电力技术有限公司 Service interaction method and device suitable for electricity consumption information acquisition system
CN114745291A (en) * 2020-12-23 2022-07-12 北京国双科技有限公司 Abnormal data cloud method and device, electronic equipment and storage medium
CN114760365A (en) * 2022-04-21 2022-07-15 中国农业银行股份有限公司 Data extraction method and device and electronic equipment
CN116975137A (en) * 2023-09-25 2023-10-31 哈尔滨工程大学三亚南海创新发展基地 Data format conversion method and device based on application requirements

Families Citing this family (31)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109816359B (en) * 2019-02-27 2021-05-18 银联商务股份有限公司 Service calling method and system
CN110069755A (en) * 2019-03-21 2019-07-30 平安普惠企业管理有限公司 Method, apparatus, computer equipment and the storage medium that data are sent
CN110163559A (en) * 2019-04-18 2019-08-23 平安科技(深圳)有限公司 Automatic Claims Resolution method, apparatus, computer equipment and storage medium
CN110264648A (en) * 2019-05-10 2019-09-20 杭州米雅信息科技有限公司 Data processing method and device, automatic teller machine and data processing system
CN110309493B (en) * 2019-05-29 2023-07-25 平安科技(深圳)有限公司 Credit report data processing method, device, storage medium and computer equipment
CN110298740A (en) * 2019-06-24 2019-10-01 深圳乐信软件技术有限公司 Data account checking method, device, equipment and storage medium
CN110262796B (en) * 2019-06-27 2023-06-30 广州力挚网络科技有限公司 Data processing method and device based on java and electronic equipment
CN110442632A (en) * 2019-08-09 2019-11-12 泰康保险集团股份有限公司 Data processing method and device
CN110634070A (en) * 2019-08-13 2019-12-31 上海陆家嘴国际金融资产交易市场股份有限公司 File processing method and device, computer equipment and storage medium
CN110473101A (en) * 2019-08-15 2019-11-19 中国银行股份有限公司 Mock trading message processing method and device
CN110545267A (en) * 2019-08-20 2019-12-06 上海艾融软件股份有限公司 transaction data transmission method and device, electronic equipment and storage medium
CN110740103A (en) * 2019-09-02 2020-01-31 深圳壹账通智能科技有限公司 Service request processing method and device, computer equipment and storage medium
CN110765067A (en) * 2019-09-11 2020-02-07 深圳市金证科技股份有限公司 Data processing method and device
CN110874731A (en) * 2019-10-11 2020-03-10 上海瀚银信息技术有限公司 POS machine payment system and development method thereof
CN110764769B (en) * 2019-10-21 2022-07-08 思必驰科技股份有限公司 Method and device for processing user request
CN110995843A (en) * 2019-12-06 2020-04-10 北京明略软件系统有限公司 Data transmission method and device, electronic equipment and readable storage medium
CN111062813B (en) * 2019-12-13 2023-12-29 中国建设银行股份有限公司 Transaction data accounting method, device, equipment and storage medium
CN111385365B (en) * 2020-03-23 2022-09-30 广州极晟网络技术有限公司 Processing method and device for reported data, computer equipment and storage medium
CN111627171A (en) * 2020-04-28 2020-09-04 深圳壹账通智能科技有限公司 Test message conversion method, device, equipment and medium of ATMP system
CN111597777B (en) * 2020-05-15 2023-06-02 上海电机系统节能工程技术研究中心有限公司 Material data processing method and device and electronic equipment
CN111950249B (en) * 2020-08-12 2024-04-05 中国工商银行股份有限公司 Message generation method and device, electronic equipment and storage medium
CN112184230A (en) * 2020-10-14 2021-01-05 深圳壹账通智能科技有限公司 Transaction data processing method, system, device and storage medium based on block chain
CN112330452B (en) * 2020-11-17 2024-04-23 杭州大搜车汽车服务有限公司 Transaction data processing method, device, computer equipment and storage medium
CN112671842B (en) * 2020-12-08 2022-07-12 成都质数斯达克科技有限公司 Information transmission method and device, electronic equipment and readable storage medium
CN113300895A (en) * 2021-06-09 2021-08-24 车智互联(北京)科技有限公司 Cable processing method and system and computing device
CN113434311B (en) * 2021-06-28 2023-01-31 平安科技(深圳)有限公司 Service data interaction method, device, equipment and storage medium
CN114745449B (en) * 2022-04-13 2024-01-30 中国银行股份有限公司 Message processing method and device, storage medium and electronic equipment
CN114928651A (en) * 2022-05-11 2022-08-19 上海柯林布瑞信息技术有限公司 Service transparent transmission method, device and equipment based on complex parameter identification
CN114866628A (en) * 2022-05-17 2022-08-05 中国银行股份有限公司 Message processing method, device, equipment and storage medium
CN115242872B (en) * 2022-06-24 2024-02-02 平安银行股份有限公司 Data processing method, device, computer equipment and readable storage medium
CN115396525B (en) * 2022-08-26 2023-07-21 上海柯林布瑞信息技术有限公司 Data interaction method and device based on service template mapping

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060095375A1 (en) * 2002-04-09 2006-05-04 Doyle Robert E Method for the standardization and syndication of business transactions
CN101706771A (en) * 2009-11-06 2010-05-12 北京理工大学 Template-based intelligent format checking method aiming at Word document
CN107038801A (en) * 2016-02-04 2017-08-11 希姆通信息技术(上海)有限公司 The message transmitting method and its system of point-of-sale terminal
CN107483592A (en) * 2017-08-22 2017-12-15 中国银行股份有限公司 A kind of transaction processing method based on General Front End Processor and a kind of General Front End Processor
CN107634948A (en) * 2017-09-19 2018-01-26 金在(北京)金融信息服务有限公司 Method for interchanging data and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101877158A (en) * 2010-03-23 2010-11-03 苏州德融嘉信信用管理技术有限公司 Front service platform of bank and operation processing method thereof
CN105608001A (en) * 2015-12-16 2016-05-25 中国民生银行股份有限公司 Test method and test platform based on background system service or interface
CN106875170A (en) * 2016-07-22 2017-06-20 阿里巴巴集团控股有限公司 A kind of method and device for business processing of intermediate business system
CN106408302A (en) * 2016-08-31 2017-02-15 尹子栋 Mobile user-oriented safe payment method and system
CN106815148A (en) * 2016-12-30 2017-06-09 中国银联股份有限公司 A kind of transaction test method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060095375A1 (en) * 2002-04-09 2006-05-04 Doyle Robert E Method for the standardization and syndication of business transactions
CN101706771A (en) * 2009-11-06 2010-05-12 北京理工大学 Template-based intelligent format checking method aiming at Word document
CN107038801A (en) * 2016-02-04 2017-08-11 希姆通信息技术(上海)有限公司 The message transmitting method and its system of point-of-sale terminal
CN107483592A (en) * 2017-08-22 2017-12-15 中国银行股份有限公司 A kind of transaction processing method based on General Front End Processor and a kind of General Front End Processor
CN107634948A (en) * 2017-09-19 2018-01-26 金在(北京)金融信息服务有限公司 Method for interchanging data and system

Cited By (32)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110673831A (en) * 2019-08-22 2020-01-10 深圳联友科技有限公司 Cache calculation method for request parameters
CN111104556A (en) * 2019-11-19 2020-05-05 泰康保险集团股份有限公司 Service processing method and device
CN111104556B (en) * 2019-11-19 2023-09-15 泰康保险集团股份有限公司 Service processing method and device
CN112948474B (en) * 2019-12-11 2024-01-05 深圳云天励飞技术有限公司 Data export method, device, equipment and computer readable storage medium
CN112948474A (en) * 2019-12-11 2021-06-11 深圳云天励飞技术有限公司 Data export method, device, equipment and computer readable storage medium
CN111752916A (en) * 2019-12-30 2020-10-09 北京沃东天骏信息技术有限公司 Data acquisition method and device, computer readable storage medium and electronic equipment
CN111752916B (en) * 2019-12-30 2024-04-16 北京沃东天骏信息技术有限公司 Data acquisition method and device, computer readable storage medium and electronic equipment
CN113129144A (en) * 2019-12-31 2021-07-16 航天信息股份有限公司 Transaction information processing method, device and system
CN111221855A (en) * 2020-01-08 2020-06-02 中国建设银行股份有限公司 Data processing method and device
CN111221855B (en) * 2020-01-08 2023-08-22 中国建设银行股份有限公司 Data processing method and device
CN111553447A (en) * 2020-04-26 2020-08-18 黄应明 Communication data conversion method and device and data processing terminal
CN111553447B (en) * 2020-04-26 2023-05-02 重庆蓝数软件有限公司 Communication data conversion method and device and data processing terminal
CN111897791A (en) * 2020-07-15 2020-11-06 银联商务股份有限公司 Service distribution method, device, equipment and storage medium
CN111897791B (en) * 2020-07-15 2024-01-12 银联商务股份有限公司 Service distribution method, device, equipment and storage medium
CN114157661B (en) * 2020-09-07 2024-01-16 北京奇艺世纪科技有限公司 Data request method, data processing method, related device, equipment and system
CN114157661A (en) * 2020-09-07 2022-03-08 北京奇艺世纪科技有限公司 Data request method, data processing method, related device, equipment and system
CN112115682A (en) * 2020-09-28 2020-12-22 中国建设银行股份有限公司 Automatic processing method and device for electronic certificate message based on engine
CN114745291A (en) * 2020-12-23 2022-07-12 北京国双科技有限公司 Abnormal data cloud method and device, electronic equipment and storage medium
CN112866268A (en) * 2021-01-29 2021-05-28 中国工商银行股份有限公司 Message processing method and system
CN112866268B (en) * 2021-01-29 2023-04-07 中国工商银行股份有限公司 Message processing method and system
CN112799944A (en) * 2021-01-29 2021-05-14 中国工商银行股份有限公司 System performance testing method and system
CN113610647A (en) * 2021-05-18 2021-11-05 臻顺溜科技股份有限公司 Policy service management method, computing device, and medium interfacing with an issuing system
CN113836145B (en) * 2021-09-29 2023-04-25 中电金信软件有限公司 Method, device, electronic equipment and computer readable storage medium for requesting data
CN113836145A (en) * 2021-09-29 2021-12-24 中电金信软件有限公司 Method and device for requesting data, electronic equipment and computer-readable storage medium
CN114051053A (en) * 2021-11-16 2022-02-15 深圳依时货拉拉科技有限公司 iOS push message processing method, device, computer equipment and storage medium
CN114070886A (en) * 2021-11-17 2022-02-18 深圳壹账通智能科技有限公司 Message conversion method, device, equipment and medium
CN114285834A (en) * 2021-12-24 2022-04-05 山石网科通信技术股份有限公司 Message transmission method and device and terminal equipment
CN114615342B (en) * 2022-01-29 2023-08-15 江苏方天电力技术有限公司 Service interaction method and device suitable for electricity consumption information acquisition system
CN114615342A (en) * 2022-01-29 2022-06-10 江苏方天电力技术有限公司 Service interaction method and device suitable for electricity consumption information acquisition system
CN114760365A (en) * 2022-04-21 2022-07-15 中国农业银行股份有限公司 Data extraction method and device and electronic equipment
CN116975137A (en) * 2023-09-25 2023-10-31 哈尔滨工程大学三亚南海创新发展基地 Data format conversion method and device based on application requirements
CN116975137B (en) * 2023-09-25 2023-12-22 哈尔滨工程大学三亚南海创新发展基地 Data format conversion method and device based on application requirements

Also Published As

Publication number Publication date
CN109344183B (en) 2020-11-24
CN109344183A (en) 2019-02-15

Similar Documents

Publication Publication Date Title
WO2019149019A1 (en) Data interaction method and apparatus, computer device, and storage medium
TWI663553B (en) Method and device for generating contract
CN109474578B (en) Message checking method, device, computer equipment and storage medium
KR20220079958A (en) Blockchain message processing method and device, computer and readable storage medium
WO2019100612A1 (en) Electronic insurance policy generation method and apparatus, computer device and storage medium
CN110162524B (en) Configuration data management method, device, computer equipment and storage medium
US11816099B2 (en) Service identifier-based data indexing
WO2020233091A1 (en) Method and apparatus for service data rollback, computer device and storage medium
WO2020000720A1 (en) Server, packet processing method, program, and computer-readable storage medium
CN111027295A (en) Data processing method, data processing device, computer equipment and storage medium
WO2019019768A1 (en) Method and apparatus for printing policy, storage medium and computer device
WO2021175021A1 (en) Product push method and apparatus, computer device, and storage medium
CN110765169A (en) Information recommendation method and device, computer equipment and storage medium
CN112948723A (en) Interface calling method and device and related equipment
CN113779949A (en) Report generation method, report generation device, electronic equipment, storage medium and report generation system
CN111858617A (en) User searching method and device, computer readable storage medium and electronic equipment
CN111291084A (en) Sample ID alignment method, device, equipment and storage medium
CN115098738A (en) Service data extraction method and device, storage medium and electronic equipment
US20210141791A1 (en) Method and system for generating a hybrid data model
CN110851446B (en) Data table generation method and device, computer equipment and storage medium
CN114138813A (en) Attribute configuration method and related device
CN114257635A (en) Service calling method, system, computer device, storage medium, and program product
CN112445811A (en) Data service method, device, storage medium and component based on SQL configuration
CN112118136A (en) Multi-cloud configuration conversion method and device, computer equipment and storage medium
WO2020006865A1 (en) Short message sending method and apparatus, computer device and storage medium

Legal Events

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

Ref document number: 19747173

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19747173

Country of ref document: EP

Kind code of ref document: A1