CN115834729A - Data transmission method, device, equipment and medium - Google Patents

Data transmission method, device, equipment and medium Download PDF

Info

Publication number
CN115834729A
CN115834729A CN202211361036.3A CN202211361036A CN115834729A CN 115834729 A CN115834729 A CN 115834729A CN 202211361036 A CN202211361036 A CN 202211361036A CN 115834729 A CN115834729 A CN 115834729A
Authority
CN
China
Prior art keywords
data
service
written
information
identification information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211361036.3A
Other languages
Chinese (zh)
Inventor
赵龙慧
孙平
武年华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Agricultural Bank of China
Original Assignee
Agricultural Bank of China
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 Agricultural Bank of China filed Critical Agricultural Bank of China
Priority to CN202211361036.3A priority Critical patent/CN115834729A/en
Publication of CN115834729A publication Critical patent/CN115834729A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a data transmission method, a data transmission device, data transmission equipment and a data transmission medium, and relates to the technical field of computers. The method comprises the following steps: receiving write data; acquiring service identification information corresponding to the written data, and inquiring service specification information corresponding to the service identification information; the service identification information comprises a data version and a processing operation type; converting the written data into target data according to the service specification information; and sending the target data to a service system corresponding to the service identification information so that the service system processes the target data. According to the technical scheme of the embodiment of the invention, each written data can be uniformly converted into the target data according to the service specification information and sent to the corresponding service system, so that the complexity of data transmission is reduced, and the simplicity of data transmission is improved.

Description

Data transmission method, device, equipment and medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a data transmission method, apparatus, device, and medium.
Background
At present, a service recording process is usually nested in a service scene, and a method of embedding interfaces of a plurality of service systems in the same service scene is adopted, and data of the service process is sent to a corresponding service system by calling the interface of each service system so as to record a service.
According to the method, a plurality of service systems are embedded in each service scene, and if the interface of each service system changes, the related service scenes need to be analyzed and modified one by one, so that the defects of high complexity and high use difficulty exist.
Disclosure of Invention
The invention provides a data transmission method, a data transmission device, data transmission equipment and a data transmission medium, which are used for reducing the complexity of data transmission and improving the simplicity of data transmission.
According to an aspect of the present invention, there is provided a data transmission method, including:
receiving write data;
acquiring service identification information corresponding to the written data, and inquiring service specification information corresponding to the service identification information; the service identification information comprises a data version and a processing operation type;
converting the written data into target data according to the service specification information;
and sending the target data to a service system corresponding to the service identification information so that the service system processes the target data.
According to another aspect of the present invention, there is provided a data transmission apparatus including:
the data receiving module is used for receiving the write-in data;
the identification information acquisition module is used for acquiring service identification information corresponding to the written data and inquiring service specification information corresponding to the service identification information; the service identification information comprises a data version and a processing operation type;
the data conversion module is used for converting the written data into target data according to the service specification information;
and the data sending module is used for sending the target data to the service system corresponding to the service identification information so that the service system processes the target data.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the data transmission method of any of the embodiments of the invention.
According to another aspect of the present invention, there is provided a computer-readable storage medium storing computer instructions for causing a processor to implement the data transmission method of any one of the embodiments of the present invention when the computer instructions are executed.
According to the technical scheme of the embodiment of the invention, the write-in data is received; acquiring service identification information corresponding to the written data, and inquiring service specification information corresponding to the service identification information; the service identification information comprises a data version and a processing operation type; converting the written data into target data according to the service specification information; and sending the target data to a service system corresponding to the service identification information so that the service system processes the target data. According to the technical scheme of the embodiment of the invention, each written data can be uniformly converted into the target data according to the service specification information and sent to the corresponding service system, so that the complexity of data transmission is reduced, and the simplicity of data transmission is improved.
It should be understood that the statements in this section are not intended to identify key or critical features of the embodiments of the present invention, nor are they intended to limit the scope of the invention. Other features of the present invention will become apparent from the following description.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a data transmission method according to an embodiment of the present invention;
fig. 2 is a flowchart of a data transmission method according to a second embodiment of the present invention;
fig. 3 is a flowchart of a data transmission method according to a third embodiment of the present invention;
fig. 4A is a flowchart of a data transmission method according to a fourth embodiment of the present invention;
fig. 4B is a schematic diagram of a data transmission process according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a data transmission apparatus according to a fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device implementing the data transmission method according to the embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "comprises" and "comprising," and any variations thereof, in the description and claims of the present invention and the above-described drawings, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In addition, in the technical scheme of the invention, the collection, storage, use, processing, transmission, provision, disclosure and other processing of the written data and the like all meet the requirements of relevant laws and regulations and do not violate the customs of the public order.
Example one
Fig. 1 is a flowchart of a data transmission method according to an embodiment of the present invention, where the embodiment is applicable to a case of transmitting data, and the method may be executed by a data transmission apparatus, where the data transmission apparatus may be implemented in a form of hardware and/or software, and the data transmission apparatus may be configured in an electronic device.
As shown in fig. 1, the method includes:
s101, receiving write data.
In this embodiment, the written data may be data for recording a service resource transmission process, including but not limited to a service name, a service number, a sending account of a service resource, a receiving account of a service resource, start time of a service resource transmission process, a service resource type, and the like.
In one embodiment, an improved write data input interface may be invoked to receive write data in a unified manner.
S102, acquiring service identification information corresponding to the written data, and inquiring service specification information corresponding to the service identification information; the service identification information includes a data version and a processing operation type.
In this embodiment, the service identification information may include, but is not limited to, a data version and a processing operation type, and is used to uniquely identify corresponding write data and identify a service system to which the write data is sent. Wherein, the data version can be the data version of the written data; the processing operation type can be a processing operation type in a service resource transmission process corresponding to the written data, and corresponds to the service system, and actually different service systems correspond to different processing operation types; the service system may be used for recording write data. The written data in the same service resource transmission process can have a plurality of data versions corresponding to different processing operations in the service resource transmission process, so that the service identification information including the data versions and the processing operation types can uniquely identify the corresponding written data and identify a service system for sending the written data.
In this embodiment, the service specification information may be information for implementing conversion between the written data and data that can be processed by the service system corresponding to the service identification information, and specifically, the service specification information may be information of conversion relationship between the written data and data that can be processed by the service system corresponding to the service identification information, or the service specification information may refer to description information of the data that can be processed by the service system corresponding to the service identification information.
In a specific embodiment, service identification information corresponding to the written data is obtained, and service specification information corresponding to the service identification information is inquired from the cache library. It should be noted that the present invention does not limit the cache library, for example, the cache library may be a Remote Dictionary Server (Redis) cache library, and is equipped with a configuration center to update the service specification information in the cache library at regular time, so as to implement dynamic query of the service specification information corresponding to the service identification information of different processing operation types and the same data version.
And S103, converting the written data into target data according to the service specification information.
The target data is data that can be processed by the service system corresponding to the service identification information.
Specifically, according to the service specification information, the write-in data is converted into data that can be processed by the service system, and the converted write-in data is used as target data.
By adopting the technical scheme, the written data is converted through the service specification information, and when the interface of the corresponding service system is changed subsequently, only the service specification information corresponding to the service system needs to be changed, so that the complexity and the cost in the development process of adaptive data transmission are reduced.
And S104, sending the target data to a service system corresponding to the service identification information so that the service system processes the target data.
Specifically, an interface of the service system corresponding to the service identification information is called, and the target data is sent to the service system corresponding to the service identification information, so that the service system processes the target data, and information of a corresponding service resource transmission process is recorded.
In a specific embodiment, if the interface of the corresponding service system cannot be called due to abnormal communication or fusing, different abnormal messages are generated and fed back according to the abnormal conditions.
In fact, the data transmission method provided by the embodiment of the present invention may be executed by a module configured in the system for generating write data, and the module may be installed in the system for generating write data as a software package. The system for generating the write-in data only needs to transmit the write-in data to the module through the write-in data input interface, and the module can select an input interface of an adaptive service system from input interfaces corresponding to a plurality of service systems according to the specific content of the write-in data and transmit the write-in data to the service systems through the selected input interface.
The embodiment of the invention receives the written data; acquiring service identification information corresponding to the written data, and inquiring service specification information corresponding to the service identification information; the service identification information comprises a data version and a processing operation type; converting the written data into target data according to the service specification information; and sending the target data to a service system corresponding to the service identification information so that the service system processes the target data. According to the technical scheme of the embodiment of the invention, each written data can be uniformly converted into the target data according to the service specification information and sent to the corresponding service system, so that the complexity of data transmission is reduced, and the simplicity of data transmission is improved.
Example two
Fig. 2 is a flowchart of a data transmission method according to a second embodiment of the present invention, and this embodiment performs optimization and improvement on the conversion operation of write data based on the above embodiment.
Further, the step of converting the written data into the target data according to the service specification information is detailed into the step of converting the data format of the written data according to the format standard information in the service specification information; according to the content standard information in the service specification information, adjusting the data content in the written data into the data content corresponding to the content standard information; and determining the adjusted written data as target data "to perfect the conversion operation of the written data.
It should be noted that, for parts not described in detail in the embodiments of the present invention, reference may be made to related descriptions of other embodiments, and further description is omitted here.
As shown in fig. 2, the method includes:
s201, receiving write data.
S202, acquiring service identification information corresponding to the written data, and inquiring service specification information corresponding to the service identification information; the service identification information includes a data version and a processing operation type.
And S203, converting the data format of the written data according to the format standard information in the service specification information.
In this embodiment, the format standard information may be information for implementing conversion between a data format of the written data and a format of data that can be processed by the service system corresponding to the service identification information, or the format standard information may refer to format description information of data that can be processed by the service system corresponding to the service identification information.
Specifically, according to the format standard information in the service specification information, the data format of the written data is converted into a data format that can be processed by the service system corresponding to the service identification information.
Illustratively, the written data is "1-130487", the format "service serial number-service serial number", and the data format that the corresponding service system can process is "service serial number-service serial number", then the written data "1-130487" is converted into "130487-1" according to the format standard information. The data format may be a format in which a numerical value in a reshaped format is converted into a numerical value in a floating-point format.
And S204, according to the content standard information in the service specification information, adjusting the data content in the written data into the data content corresponding to the content standard information.
In this embodiment, the data content may be data content that can be queried in the written data, and may be, for example, a service number, a service name, and the like. The content standard information may be information for realizing conversion of data content of the written data into data content that can be processed by the service system corresponding to the service identification information. The content standard information may be conversion information between the content of the written data and the content of the data that can be processed by the service system corresponding to the service identification information, or the content standard information may refer to content description information of the data that can be processed by the service system corresponding to the service identification information.
Specifically, according to the content standard information in the service specification information, the data content of the written data is converted into the data content which can be processed by the service system corresponding to the service identification information.
Illustratively, if the written data is "1-130487", the content of the written data is the service number "1", and the content of the data that can be processed by the corresponding service system is a 6-bit numerical value, the content "1" in the written data is converted into "000001" according to the content standard information. For another example, if the content of the write data is category a, the content of the data that can be processed in the corresponding service system is 1 (1 represents category a, and 2 represents category B), and the content standard information may be the correspondence between categories a and 1, the write data "category a" is converted to "1" according to the content standard information.
And S205, determining the adjusted write data as target data.
Specifically, the write data with the adjusted data format and/or data content is determined as the target data. It should be noted that, in practice, there may be at least one item of data format and data content of the written data, and the data format and/or data content conforming to the service specification information may not need to be adjusted. And adjusting the data which do not conform to the service specification information.
S206, the target data are sent to the service system corresponding to the service identification information, so that the service system processes the target data.
According to the embodiment of the invention, data format conversion is carried out on the written data according to the format standard information in the service specification information; according to the content standard information in the service specification information, adjusting the data content in the written data into the data content corresponding to the content standard information; and determining the adjusted write data as target data. By adopting the technical scheme, the written data is adjusted into the target data according to the format standard information and the content standard information, and the format and the content of the target data can be identified by the service system corresponding to the service identification information, so that the target data is processed, and the accuracy of the target data is improved.
EXAMPLE III
Fig. 3 is a flowchart of a data transmission method according to a third embodiment of the present invention, and this embodiment optimizes and improves the operation of obtaining service identification information based on the foregoing embodiment.
Further, the step of refining the service identification information corresponding to the acquired written data into the step of verifying the written data; and when the verification is passed, acquiring the service identification information corresponding to the written data so as to perfect the operation of acquiring the service identification information.
It should be noted that, for parts that are not described in detail in the embodiments of the present invention, reference may be made to related descriptions of other embodiments, and details are not repeated herein.
As shown in fig. 3, the method includes:
s301, receiving write data.
S302, verifying the written data.
Optionally, the checking the written data includes at least one of:
checking the element items included in the written data; checking the compliance of the content in the written data; and verifying the repeatability of the written data.
The element may refer to a certain type of content obtained by dividing content included in the written data, where the element may be understood as a field in the written data; the compliance is used for representing whether the content of the service resource transmission process recorded in the written data conforms to a preset rule or not; the repeatability is used to characterize whether the written data has been recorded by the service system. It should be noted that the preset rule may be set by a technician according to actual needs and practical experience, so as to implement control over the verification process and improve the stability of data transmission. Illustratively, a fuzzy substitution rule is added in the preset rule, that is, the content of the field with empty written data is substituted by an 'x' to improve the efficiency of compliance verification.
Specifically, the element entry included in the written data may be checked to determine whether the field entry included in the written data includes all the key fields. If all key fields are included, the element item passes the verification; otherwise, the element item check is not passed. Wherein a critical field can be understood as a field that must be present in the write data. It should be noted that the present invention does not limit the kind and number of the key fields. By adopting the technical method, the element items of the written data are verified, whether the received written data are data for recording the service resource transmission process can be verified, and other data irrelevant to the service resource transmission process are removed.
Specifically, the compliance of the content in the written data is verified, which may be that a preset rule is obtained from the buffer library, and the compliance of the content in the written data is verified according to the preset rule. If the content of the written data accords with a preset rule, the compliance verification is passed; otherwise, the compliance check fails.
In one embodiment, the preset rules may be business account rules and business resource transmission rules. For example, the verification of the compliance of the content in the written data may be: checking whether the account number of a sender and the account number of a receiver of the service resource transmission written in the data record are correct or not according to the service account number rule; and according to the service resource transmission rule, checking whether the network transmission record of the service resource written in the data record is correct or not, and checking whether the service resource in the service transmission process written in the data record is successfully transmitted to a receiving party or not. By adopting the technical scheme, the compliance of the content in the written data is verified, and the information of the service resource transmission process corresponding to the written data can be verified, so that the accuracy of the recorded service resource transmission process is ensured.
Optionally, the checking the repeatability of the written data includes: acquiring record writing information; and detecting whether target record information corresponding to the written data exists in the record written information or not, and determining a repeatability check result.
Wherein recording the write information may refer to recording information of write data that has been transmitted to the service system. The write information is recorded for uniquely characterizing the corresponding written data has been processed.
Specifically, whether the written data is processed or not is determined by detecting whether target record information corresponding to the written data exists in the record writing information, so that a repeatability check result is determined.
By adopting the scheme, the target record information corresponding to the write-in data is detected whether to exist in the record write-in information or not by acquiring the record write-in information, the repeatability check result is determined, and the accuracy of the repeatability verification is improved.
Further, detecting whether target record information corresponding to the write data exists in the record write information, and determining a repeatability check result, wherein the method comprises the following steps: when target record information corresponding to the write-in data exists, detecting whether the record data associated with the corresponding target record information is successfully written in; when the write-in data associated with the corresponding target record information is successfully written, determining that the repeatability check is not passed; and when the record data associated with the corresponding target record information fails to be written, determining that the repeatability check is passed.
The recording data may be write data corresponding to the target recording information.
In an optional embodiment, if the data of the record data associated with the corresponding target record information is not empty and the format is correct, it is determined that the record data is successfully written, that is, the write data has been successfully written by the service system, and at this time, the write data does not need to be sent to the service system again, so that the repeatability check does not pass.
In another optional embodiment, if the data of the record data associated with the corresponding target record information is empty; or if the detection result cannot be obtained within the preset time, it is determined that the writing of the recorded data fails, that is, the written data is not successfully written by the service system, and at this time, the written data needs to be sent to the service system, so that the repeatability check is passed. It should be noted that the preset time can be set by a technician according to actual needs and practical experience, and the present invention is not limited thereto.
In yet another alternative embodiment, if the target record information corresponding to the written data is not detected in the recorded written information, it is determined that the repeatability check is passed.
It can be understood that, by adopting the above scheme, when the target record information corresponding to the written data exists, the repeatability check result is determined by detecting whether the record data associated with the corresponding target record information is successfully written, so that the repeatability check flexibility is improved.
In one embodiment, if the element item included in the write data is checked; checking the compliance of the content in the written data; and if at least one item of verification fails in the repeated verification of the written data, generating information of abnormal verification and feeding back the information.
In another embodiment, the verification of the element items included in the written data, the verification of the compliance of the contents in the written data, and the verification of the repeatability of the written data may be dynamically configured, and at least one of the verification of the written data may be performed according to different configuration information.
And when all the checks pass, sending the write-in data to the service system, so that the condition of sending error data to the service data can be reduced, and the resource waste is reduced. Meanwhile, errors can be reported in time, and the exception handling efficiency is improved.
It can be understood that, by adopting the above scheme, at least one of the element items included in the written data, the compliance of the content in the written data and the repeatability of the written data is verified, the verification mode of the written data is enriched, and the correctness of the obtained written data is improved.
S303, when the verification is passed, acquiring service identification information corresponding to the written data, and inquiring service specification information corresponding to the service identification information; the service identification information includes a data version and a processing operation type.
And S304, converting the written data into target data according to the service specification information.
S305, sending the target data to a service system corresponding to the service identification information so that the service system processes the target data.
In an optional embodiment, the writing result of the recorded data corresponding to the written data is determined by obtaining the processing result of the business system processing target data. If the writing result is a writing success result, performing associated storage on the writing success result and the target record information corresponding to the record data; if the writing result is a writing failure result, the writing failure result and the target record information corresponding to the record data are stored in a correlated mode; and if the processing result cannot be obtained, determining that the writing result of the record data is a writing failure result.
In an embodiment, a plurality of sub-tables with finer granularity may be configured for a main table storing record write information, and target record information corresponding to record data that fails to be written is transferred to the sub-tables, so as to reduce the number of write records in the main table, reduce the pressure on the main table, and improve the efficiency of verifying the repeatability of the write data by the record write information.
The embodiment of the invention verifies the written data; and when the verification is passed, acquiring the service identification information corresponding to the written data. By adopting the technical scheme, the acquired write-in data can be verified, the write-in data which is not verified can be removed, the correctness of the processed write-in data is improved, and the efficiency of data transmission is improved.
Example four
Fig. 4A is a flowchart of a data transmission method according to a fourth embodiment of the present invention, and this embodiment performs additional optimization based on the foregoing embodiment.
Further, after the target data is sent to the service system corresponding to the service identification information, adding' response data fed back by the service system is received; acquiring standard information, and processing the response data by adopting the standard information; and feeding back the processed response data to obtain a processing result of the target data.
It should be noted that, for parts not described in detail in the embodiments of the present invention, reference may be made to related descriptions of other embodiments, and further description is omitted here.
As shown in fig. 4A, the method includes:
s401, receiving write data.
S402, acquiring service identification information corresponding to the written data, and inquiring service specification information corresponding to the service identification information; the service identification information includes a data version and a processing operation type.
And S403, converting the written data into target data according to the service specification information.
S404, the target data are sent to the service system corresponding to the service identification information, so that the service system processes the target data.
And S405, receiving response data fed back by the service system.
The response data may be a processing result fed back by the service system by processing the target data, specifically, a writing result of the written data, for example, the writing result may be a writing success result or a writing failure result.
And S406, acquiring the response standard information, and processing the response data by adopting the response standard information.
The response standard information may be information for realizing conversion between response data and data that can be processed by an output interface corresponding to the write data input interface (i.e., a system corresponding to the write data is generated). The standard information may be conversion information between the response data and data that can be processed by the system that generates the corresponding write data, or the standard information may refer to description information of data that can be processed by the system that generates the corresponding write data. Specifically, the response data is converted into data that can be processed by the output interface according to the standard information.
And S407, feeding back the processed response data.
Specifically, response data is fed back by calling an output interface corresponding to the write data input interface.
In a specific embodiment, the method of the embodiment of the present invention may be deployed in a data transmission module of a service device. The service device is also provided with other modules, such as a service resource management module and the like. The data transmission module acquires write-in data from the service resource management module by calling the uniform write-in data input interface; and response data are fed back to the service resource management module by calling the output interface corresponding to the uniform write-in data input interface.
Fig. 4B is a schematic diagram of a data transfer process that may be performed by a module in a system that generates write data. In the data transmission process, after the verification of the written data is passed, the record information corresponding to the written data may be stored in the record writing information table to update the record writing information table.
As shown in fig. 4B, in the data transmission process, the write data input interface is called to obtain write data sent by the system generating write data by calling the write data input interface; verifying the element items of the written data, if the element items are not verified, generating a verification abnormal message, calling an output interface corresponding to a written data input interface, and feeding back the verification abnormal message to a system generating the written data; if the element item passes the verification and verification, performing compliance verification on the written data, if the compliance verification does not pass, generating a verification abnormal message, calling an output interface corresponding to the written data input interface, and feeding back the verification abnormal message to the system generating the written data; if the compliance verification is passed, performing repeatability verification on the written data; if the verification is not passed, generating a verification abnormal message, calling an output interface corresponding to the input interface of the written data, and feeding back the verification abnormal message to the system generating the written data; if the verification is passed, generating record information corresponding to the write-in data, and storing the record information into the record write-in information so as to update the record write-in information; acquiring service identification information corresponding to the written data, and inquiring corresponding service specification information according to the service identification information; converting the written data into target data according to the service specification information; calling an input interface of the service system corresponding to the service identification information, and sending target data to the corresponding service system; receiving response data of the business system from an output interface corresponding to an input interface of the business system, and converting the response data into data which can be processed by the output interface corresponding to the write-in data input interface according to the response standard information; calling an output interface corresponding to the written data input interface, and sending the processed response data to the system for generating the written data; and according to the processing result of the write data in the response data, migrating the record information corresponding to the record data with write failure from the main table for recording the write information to the sub-table for recording the main table for writing information.
The embodiment of the invention receives the response data fed back by the service system; acquiring response standard information, and processing response data by adopting the response standard information; and feeding back the processed response data. By adopting the technical scheme, the response data can be fed back, and the determination of the processing result of the target data is realized.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a data transmission device according to a fifth embodiment of the present invention, where the data transmission device is applicable to data transmission, the data transmission device may be implemented in a form of hardware and/or software, and the data transmission device may be configured in an electronic device.
As shown in fig. 5, the apparatus includes: a data receiving module 501, an identification information obtaining module 502, a data converting module 503 and a data sending module 504. Wherein the content of the first and second substances,
a data receiving module 501, configured to receive write data;
an identification information obtaining module 502, configured to obtain service identification information corresponding to the written data, and query service specification information corresponding to the service identification information; the service identification information comprises a data version and a processing operation type;
a data conversion module 503, configured to convert the written data into target data according to the service specification information;
and a data sending module 504, configured to send the target data to a service system corresponding to the service identification information, so that the service system processes the target data.
The embodiment of the invention receives the written data through the data receiving module; the identification information acquisition module acquires service identification information corresponding to the written data and inquires service specification information corresponding to the service identification information; the service identification information comprises a data version and a processing operation type; the data conversion module converts the written data into target data according to the service specification information; and the data sending module sends the target data to a service system corresponding to the service identification information so that the service system processes the target data. By adopting the technical scheme, the written data can be uniformly converted into the target data according to the service specification information and sent to the corresponding service system, so that the complexity of data transmission is reduced, and the simplicity of data transmission is improved.
Optionally, the data conversion module 503 includes:
the data format conversion unit is used for performing data format conversion on the written data according to the format standard information in the service specification information;
the data content adjusting unit is used for adjusting the data content in the written data into the data content corresponding to the content standard information according to the content standard information in the service specification information;
and a target data determination unit for determining the adjusted write data as target data.
Optionally, the identification information obtaining module 502 includes:
the data checking unit is used for checking the written data;
and the identification information acquisition unit is used for acquiring the service identification information corresponding to the written data when the verification is passed.
Optionally, the data checking unit includes at least one of:
an element item checking subunit that checks an element item included in the write data;
the compliance checking subunit is used for checking the compliance of the content in the written data; and
and the repeatability checking subunit is used for checking the repeatability of the written data.
Optionally, the repeatability check subunit is specifically configured to:
acquiring record writing information;
and detecting whether target record information corresponding to the written data exists in the record written information or not, and determining a repeatability check result.
Optionally, the repeatability check subunit is specifically configured to:
when target record information corresponding to the write-in data exists, detecting whether the record data associated with the corresponding target record information is successfully written in;
when the record data associated with the corresponding target record information is successfully written, determining that the repeatability check is not passed;
and when the record data associated with the corresponding target record information fails to be written, determining that the repeatability check is passed.
Optionally, the apparatus further comprises:
the response data receiving module is used for receiving response data fed back by the service system;
the standard information acquisition module is used for acquiring response standard information and processing response data by adopting the response standard information;
and the response data feedback module is used for feeding back the processed response data.
The data transmission device provided by the embodiment of the invention can execute the data transmission method provided by any embodiment of the invention, and has the corresponding functional module and beneficial effect of executing the data transmission method.
EXAMPLE six
FIG. 6 illustrates a schematic diagram of an electronic device 600 that may be used to implement embodiments of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 6, the electronic device 600 includes at least one processor 601, and a memory communicatively coupled to the at least one processor 601, such as a Read Only Memory (ROM) 602, a Random Access Memory (RAM) 603, and so on, wherein the memory stores computer programs executable by the at least one processor, and the processor 601 may perform various suitable actions and processes according to the computer programs stored in the Read Only Memory (ROM) 602 or loaded from a storage unit 608 into the Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the electronic apparatus 600 can also be stored. The processor 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Various components in the electronic device 600 are connected to the I/O interface 605, including: an input unit 606 such as a keyboard, a mouse, or the like; an output unit 607 such as various types of displays, speakers, and the like; a storage unit 608, such as a magnetic disk, optical disk, or the like; and a communication unit 609 such as a network card, modem, wireless communication transceiver, etc. The communication unit 609 allows the electronic device 600 to exchange information/data with other devices through a computer network such as the internet and/or various telecommunication networks.
Processor 601 may be a variety of general and/or special purpose processing components with processing and computing capabilities. Some examples of processor 601 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, or the like. The processor 601 performs the various methods and processes described above, such as a data transmission method.
In some embodiments, the data transfer method may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 608. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 600 via the ROM 602 and/or the communication unit 609. When the computer program is loaded into the RAM 603 and executed by the processor 601, one or more steps of the data transmission method described above may be performed. Alternatively, in other embodiments, the processor 601 may be configured to perform the data transfer method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be performed. A computer program can execute entirely on a machine, partly on a machine, as a stand-alone software package partly on a machine and partly on a remote machine or entirely on a remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user may provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present invention may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired result of the technical solution of the present invention can be achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method of data transmission, the method comprising:
receiving write data;
acquiring service identification information corresponding to the written data, and inquiring service specification information corresponding to the service identification information; the service identification information comprises a data version and a processing operation type;
converting the written data into target data according to the service specification information;
and sending the target data to a service system corresponding to the service identification information so that the service system processes the target data.
2. The method of claim 1, wherein the converting the write data into target data according to the service specification information comprises:
performing data format conversion on the written data according to format standard information in the service specification information;
according to content standard information in the service specification information, adjusting the data content in the written data into data content corresponding to the content standard information;
and determining the adjusted write data as target data.
3. The method according to claim 1, wherein the obtaining the service identification information corresponding to the written data comprises:
verifying the written data;
and when the verification is passed, acquiring the service identification information corresponding to the written data.
4. The method of claim 3, wherein the verifying the write data comprises at least one of:
checking the element items included in the written data;
checking the compliance of the content in the written data; and
and checking the repeatability of the written data.
5. The method of claim 4, wherein the verifying the repeatability of the written data comprises:
acquiring record writing information;
and detecting whether the target record information corresponding to the written data exists in the record written information or not, and determining a repeatability check result.
6. The method according to claim 5, wherein the detecting whether the target record information corresponding to the written data exists in the record writing information and determining a repeatability check result comprises:
when target record information corresponding to the written data exists, detecting whether the record data associated with the corresponding target record information is successfully written;
when the record data associated with the corresponding target record information is successfully written, determining that the repeatability check is not passed;
and when the record data associated with the corresponding target record information fails to be written, determining that the repeatability check is passed.
7. The method according to claim 1, further comprising, after sending the target data to a service system corresponding to the service identification information:
receiving response data fed back by the service system;
acquiring response standard information, and processing the response data by adopting the response standard information;
and feeding back the processed response data.
8. A data transmission apparatus, comprising:
the data receiving module is used for receiving the written data;
an identification information obtaining module, configured to obtain service identification information corresponding to the written data, and query service specification information corresponding to the service identification information; the service identification information comprises a data version and a processing operation type;
the data conversion module is used for converting the written data into target data according to the service specification information;
and the data sending module is used for sending the target data to a service system corresponding to the service identification information so as to enable the service system to process the target data.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the data transfer method of any one of claims 1-7.
10. A computer-readable storage medium storing computer instructions for causing a processor to perform the data transmission method of any one of claims 1 to 7 when executed.
CN202211361036.3A 2022-11-02 2022-11-02 Data transmission method, device, equipment and medium Pending CN115834729A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211361036.3A CN115834729A (en) 2022-11-02 2022-11-02 Data transmission method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211361036.3A CN115834729A (en) 2022-11-02 2022-11-02 Data transmission method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN115834729A true CN115834729A (en) 2023-03-21

Family

ID=85526195

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211361036.3A Pending CN115834729A (en) 2022-11-02 2022-11-02 Data transmission method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN115834729A (en)

Similar Documents

Publication Publication Date Title
CN112269706A (en) Interface parameter checking method and device, electronic equipment and computer readable medium
CN113011848A (en) Method, device, equipment and storage medium for accessing approval service
CN115834729A (en) Data transmission method, device, equipment and medium
CN115309730A (en) Data auditing method and device, electronic equipment and storage medium
CN114217790A (en) Interface scheduling method and device, electronic equipment and medium
CN112261072B (en) Service calling method, device, equipment and storage medium
CN114138397A (en) Page display method and device, electronic equipment and storage medium
CN115525614A (en) Data access method, device, equipment, system and storage medium
CN115794255A (en) Data processing method and device, electronic equipment and storage medium
CN115658026A (en) Service processing method, device, equipment and storage medium
CN114896322A (en) JSON (Java Server object notation) -based configuration data conversion method, device, equipment and medium
CN115309717A (en) Database loading method, device, equipment, medium and computer program product
CN115756575A (en) Submission record acquisition method, device, equipment and storage medium
CN115529271A (en) Service request distribution method, device, equipment and medium
CN115114244A (en) Method and device for processing uniqueness of service data
CN115131137A (en) Operation risk checking method, device, equipment and storage medium
CN113934708A (en) Method, device and equipment for verifying labeled data and storage medium
CN115510838A (en) Template generation method and device, electronic equipment and storage medium
CN115048159A (en) Exception handling method, device, equipment and storage medium
CN115509543A (en) Method and device for determining document validity, electronic equipment and storage medium
CN117648315A (en) Data quality inspection system, method, device and equipment
CN115629690A (en) Method, device, equipment and storage medium for generating FIO working file
CN115063109A (en) Data processing method, device, equipment and medium
CN116862638A (en) Adaptation method, device, equipment and storage medium of system difference
CN114491674A (en) Log processing method, device and equipment based on block chain

Legal Events

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