CN110765067A - Data processing method and device - Google Patents

Data processing method and device Download PDF

Info

Publication number
CN110765067A
CN110765067A CN201910859376.0A CN201910859376A CN110765067A CN 110765067 A CN110765067 A CN 110765067A CN 201910859376 A CN201910859376 A CN 201910859376A CN 110765067 A CN110765067 A CN 110765067A
Authority
CN
China
Prior art keywords
service field
service
file
data format
format
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
CN201910859376.0A
Other languages
Chinese (zh)
Inventor
刘三高
张大旺
周贤谦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jin Zheng Science And Technology Co Ltd Of Shenzhen
Original Assignee
Jin Zheng Science And Technology Co Ltd Of Shenzhen
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 Jin Zheng Science And Technology Co Ltd Of Shenzhen filed Critical Jin Zheng Science And Technology Co Ltd Of Shenzhen
Priority to CN201910859376.0A priority Critical patent/CN110765067A/en
Publication of CN110765067A publication Critical patent/CN110765067A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/116Details of conversion of file system types or formats

Abstract

The application is applicable to the technical field of computers, and provides a data processing method, which comprises the following steps: acquiring a first service field, wherein the data format of the first service field is a first data format; determining a format conversion file corresponding to the first service field according to the service type corresponding to the first service field; and converting the first service field into a second service field according to the format conversion file, wherein the data format of the second service field is a second data format different from the first data format. By the method, the data format conversion efficiency of the service data can be improved.

Description

Data processing method and device
Technical Field
The present application belongs to the field of computer technologies, and in particular, to a data processing method and apparatus.
Background
In many business operations, business data is often transmitted (or exchanged) between different computer systems. When the data formats supported by different computer systems are different, data format conversion needs to be performed on the service data to be transmitted.
Currently, the general data format conversion modes are: the developer develops corresponding customized codes for services corresponding to the service data of the data format to be converted, and converts the data format of the service data through the customized codes.
Disclosure of Invention
The embodiment of the application provides a data processing method and device, which can solve the problem that the data format conversion efficiency of the current service data is low.
In a first aspect, an embodiment of the present application provides a data processing method, including:
acquiring a first service field, wherein the data format of the first service field is a first data format;
determining a format conversion file corresponding to the first service field according to the service type corresponding to the first service field;
and converting the first service field into a second service field according to the format conversion file, wherein the data format of the second service field is a second data format different from the first data format.
In a first possible implementation manner of the first aspect, before the obtaining the first service field, the method includes:
if a service message with a data format of a first data format is received, splitting a first service field from the service message with the data format of the first data format according to a first service field file, wherein the first service field file comprises at least one definition of the first service field.
In a second possible implementation manner of the first aspect, after the converting the first service field into the second service field according to the format conversion file, the method includes:
and generating a service message corresponding to the second service field according to a second service field file, wherein the second service field file is used for defining the data type of at least one second service field.
Based on the second possible implementation manner of the first aspect of the present application, in a third possible implementation manner,
after the generating the service packet corresponding to the second service field according to the second service field file, the method includes:
and receiving a feedback service message aiming at the service message corresponding to the second service field.
In a fourth possible implementation manner of the first aspect, if the first service field includes at least one sub-service field, the converting the first service field into the second service field according to the format conversion file includes:
determining a conversion function corresponding to the sub-service field from conversion functions defined in the format conversion file;
and converting the first service field into a second service field according to the conversion function corresponding to the sub-service field.
In a fifth possible implementation manner of the first aspect, if the first service field does not include a sub-service field, the converting the first service field into the second service field according to the format conversion file includes:
and converting the first service field into a corresponding second service field according to a conversion relation template in the format conversion file.
Based on any one of the above first aspects of the present application, in a sixth possible implementation manner, the method includes:
receiving a format conversion file modification instruction;
and modifying the format conversion file according to the format conversion file modification instruction.
In a second aspect, an embodiment of the present application provides a data processing apparatus, including:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a first service field, and the data format of the first service field is a first data format;
a determining unit, configured to determine, according to the service type corresponding to the first service field, a format conversion file corresponding to the first service field;
and the conversion unit is used for converting the first service field into a second service field according to the format conversion file, wherein the data format of the second service field is a second data format different from the first data format.
In a third aspect, an embodiment of the present application provides a terminal device, including: a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the data processing method as described when executing the computer program.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, including: the computer-readable storage medium stores a computer program which, when executed by a processor, implements the steps of the data processing method as described.
In a fifth aspect, an embodiment of the present application provides a computer program product, which, when run on a terminal device, causes the terminal device to execute the steps of the data processing method according to any one of the first aspect.
It is understood that the beneficial effects of the second aspect to the fifth aspect can be referred to the related description of the first aspect, and are not described herein again.
Compared with the prior art, the embodiment of the application has the advantages that: the method comprises the steps of obtaining a first service field with a first data format, determining a format conversion file corresponding to the first service field according to a service type corresponding to the first service field, and converting the first service field into a second service field with a second data format according to the format conversion file, so that the data format conversion of service data is realized.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flow chart of a data processing method according to an embodiment of the present application;
FIG. 2 is a schematic flow chart diagram illustrating a data processing method according to another embodiment of the present application;
fig. 3 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
The data processing method provided by the embodiment of the application can be applied to terminal devices such as a mobile phone, a tablet personal computer, a wearable device, a vehicle-mounted device, an Augmented Reality (AR)/Virtual Reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA), and the like, and the embodiment of the application does not limit the specific type of the terminal device at all.
The first embodiment is as follows:
fig. 1 shows a schematic flow chart of a first data processing method provided in an embodiment of the present application, which is detailed as follows:
step S101, a first service field is obtained, and the data format of the first service field is a first data format.
By way of example and not limitation, the first data format includes, but is not limited to: an Extensible Markup Language (XML) format or a binary format.
For example, in the step S101, the step S101 may be to obtain a first service field with an XML format.
Optionally, to enable data format conversion of service data in the service message, before step S101, the method includes: if a service message with a data format of a first data format is received, splitting a first service field from the service message with the data format of the first data format according to a first service field file, wherein the first service field file comprises at least one definition of the first service field.
Wherein the definition of the first service field comprises: the defining of the field label of the first service field and the defining of the field type of the first service field, where splitting the first service field from the service packet whose data format is the first data format according to the first service field file includes: according to the definition of the field label of the first service field prestored in the first service field file and the definition of the field type of the first service field prestored in the first service field file, the first service field is split from the service message of which the data format is the first data format.
The data format of the data constituting the first service field file is an XML format, and the splitting of the first service field from the service packet with the data format being the first data format according to the first service field file is a process of deserializing the service packet with the data format being the first data format according to the first service field file.
Step S102, determining a format conversion file corresponding to the first service field according to the service type corresponding to the first service field.
Specifically, the number of the service type corresponding to the first service field is determined, and the format conversion file with the file name carrying the number of the service type is determined as the format conversion file corresponding to the first service field, wherein the numbers of different service types correspond to different format conversion files.
By way of example and not limitation, the service type corresponding to the first service field may be a financial service, which includes but is not limited to: and in the securities, insurance or trust, assuming that the number of the service type corresponding to the first service field is 100101, determining the format conversion file with the file name carrying 100101 as the format conversion file corresponding to the first service field.
Step S103, converting the first service field into a second service field according to the format conversion file, wherein the data format of the second service field is a second data format different from the first data format.
By way of example and not limitation, the second data format includes, but is not limited to: the first data format is assumed to be XML format, and correspondingly, the second data format can be binary format; assuming that the first data format is a binary format, correspondingly, the second data format may be an XML format.
For example, in the step S103, assuming that the first data format is an XML format and the second data format is a binary format, the step S103 specifically includes: and converting the first service field with the data format of XML into a second service field with the data format of binary format according to the format conversion file.
In the embodiment of the application, the data format conversion of the service data is realized by acquiring the first service field with the data format being the first data format, determining the format conversion file corresponding to the first service field according to the service type corresponding to the first service field, and converting the first service field into the second service field with the data format being the second data format according to the format conversion file.
Example two:
fig. 2 shows a schematic flow chart of a second data processing method provided in the embodiment of the present application, where step S201, step S202, and step S203 in this embodiment are respectively the same as step S101, step S102, and step S103 in the first embodiment, and are not repeated here:
step S201, a first service field is obtained, and a data format of the first service field is a first data format.
Step S202, determining a format conversion file corresponding to the first service field according to the service type corresponding to the first service field.
Step S203, converting the first service field into a second service field according to the format conversion file, where a data format of the second service field is a second data format different from the first data format.
Optionally, if the first service field includes at least one sub-service field, the difficulty of converting the data format of the first service field is high, which results in low efficiency of converting the data format of the first service field including at least one sub-service field, and in order to improve the efficiency of converting the data format of the first service field including at least one sub-service field, therefore, if the first service field includes at least one sub-service field, the step S203 includes:
a1, determining the conversion function corresponding to the sub-service field from the conversion functions defined in the format conversion file.
A2, converting the first service field into a second service field according to the conversion function corresponding to the sub service field.
Specifically, the step a2 includes: and taking the sub-service field in the first service field as an entry parameter of a conversion function corresponding to the sub-service field, and acquiring an exit result corresponding to the entry parameter according to the conversion function corresponding to the sub-service field, wherein the exit result is a second service field.
It should be noted that, in the above step a1, when the number of the sub-service fields is equal to or greater than 2, the following two cases may occur: (1) different sub-service fields correspond to different conversion functions; (2) the same conversion function exists in the conversion functions corresponding to different sub-service fields.
Correspondingly, the step a2 is specifically:
and converting the sub-service field with the data format being the first data format into the sub-service field with the data format being the second data format according to the conversion functions corresponding to the different sub-service fields. The conversion functions corresponding to different sub-service fields may be the same conversion function or different conversion functions.
By way of example and not limitation, assume that the first traffic field includes three sub-traffic fields, respectively: the method comprises the steps that the financial product data combination number, the financial product codes and the paid financial product number correspond to the same conversion function, the conversion function A is assumed, the three sub-service fields are used as parameter input parameters of the conversion function A, parameter output results of the three sub-service fields are obtained according to the conversion function A, the parameter output results are second service fields, and a carrier of the conversion function is a script written by adopting the lua language.
Optionally, if the first service field does not include a sub-service field, the step S203 includes: and converting the first service field into a corresponding second service field according to a conversion relation template in the format conversion file, wherein the conversion relation template in the format conversion file can directly map the corresponding relation between the first service field and the second service field, and the first service field is not required to be converted into the corresponding second service field through complex operation, so that the data format conversion efficiency of the first service field without the sub-service field can be improved.
By way of example and not limitation, a first service field in an XML format is converted to a second service field in a binary format according to a conversion relationship template in the format conversion file.
And the data format of the data forming the conversion relation template is an XML format.
Step S204, generating a service message corresponding to the second service field according to a second service field file, wherein the second service field file is used for defining the data type of at least one second service field.
Specifically, the data length of a second service field is determined according to the data type of the second service field defined by a second service field file, and a service packet corresponding to the second service field is generated according to the data length, wherein the file format of the second service field file is Object Notation (JSON).
By way of example and not limitation, the data types include, but are not limited to: char or int, the data type being different from the data format.
Optionally, in order to improve the generation efficiency of the service packet corresponding to the second service field with the number greater than one, therefore, the second service field file further includes the serialization definition of the second service field with the number greater than one, and correspondingly, the step S204 includes: and according to the serialization definition of the second service fields with the number greater than one included in the second service field file, serializing the second service fields with the number greater than one into the service messages corresponding to the second service fields with the number greater than one.
Optionally, before the step S201, a specified gateway is started according to the gateway start instruction, and after the specified gateway is started, the format conversion file, the first service field file, and the second service field file are loaded.
By way of example, and not limitation, the designated gateway may be a stock exchange gateway.
Optionally, in order to enable bidirectional communication, after step S204, the method includes: after the generating the service packet corresponding to the second service field according to the second service field file, the method includes: and receiving a feedback service message aiming at the service message corresponding to the second service field.
Specifically, a feedback service packet for the service packet corresponding to the second service field is received from the designated server, and a data format of the feedback service packet is a second data format.
Optionally, in order to be able to convert the feedback service packet with the data format being the second data format into the first data format, after receiving the feedback service packet for the service packet corresponding to the second service field, the method includes: splitting a feedback service field with a data format of a second data format from the feedback service message according to the second service field file; determining a format conversion file corresponding to the feedback service field with the data format being the second data format according to the service type corresponding to the feedback service field with the data format being the second data format; and converting the feedback service field with the data format being the second data format into the feedback service field with the data format being the first data format according to the format conversion file corresponding to the feedback service field with the second data format, and generating a service message corresponding to the feedback service field with the data format being the first data format according to the first service field file.
Optionally, the data processing method further includes: receiving a format conversion file modification instruction; and modifying the format conversion file according to the format conversion file modification instruction.
Specifically, a format conversion file modification instruction is received, a storage position of a format conversion file corresponding to the format conversion file modification instruction is determined, and the corresponding format conversion file is modified according to the storage position and the format conversion file modification instruction.
Optionally, the data processing method further includes: receiving a business field file modification instruction; and modifying the corresponding service field file according to the service field file modification instruction, wherein the service field file comprises the first service field file or/and the second service field file.
Because the service type corresponding to the service field to be subjected to data format conversion is not invariable, in order to meet the actual service requirement as much as possible, when a format conversion file modification instruction is received, the format conversion file can be modified according to the format conversion file modification instruction, or/and when a service field file modification instruction is received, the corresponding service field file can be modified according to the service field file modification instruction, so that the data format conversion of the service field of the corresponding service type can be realized by utilizing the modified file, the process does not need to modify a program code for data format conversion, and the uncertainty risk generated by program code modification is avoided.
In the embodiment of the application, the time length required for generating the service message corresponding to the second service field according to the second service field file is shorter, so that the generation efficiency of the service message corresponding to the second service field is greatly improved.
Example three:
corresponding to the above embodiments, fig. 3 shows a schematic structural diagram of a data processing apparatus provided in the embodiments of the present application, and for convenience of description, only the parts related to the embodiments of the present application are shown.
The data processing apparatus includes: an acquisition unit 301, a determination unit 302, and a conversion unit 303.
The obtaining unit 301 is configured to obtain a first service field, where a data format of the first service field is a first data format.
Optionally, to enable data format conversion of service data in the service message, the data processing apparatus further includes: before the obtaining unit 301 performs the obtaining of the first service field, if a service packet with a data format of the first data format is received, splitting the first service field from the service packet with the data format of the first data format according to a first service field file, where the first service field file includes at least one definition of the first service field.
The determining unit 302 is configured to determine, according to the service type corresponding to the first service field, a format conversion file corresponding to the first service field.
The converting unit 303 is configured to convert the first service field into a second service field according to the format conversion file, where a data format of the second service field is a second data format different from the first data format.
Optionally, if the first service field includes at least one sub-service field, the difficulty of converting the data format of the first service field is high, which results in low efficiency of converting the data format of the first service field including the at least one sub-service field, and in order to improve the efficiency of converting the data format of the first service field including the at least one sub-service field, if the first service field includes the at least one sub-service field, the converting unit 303 is specifically configured to, when the converting of the first service field into the second service field according to the format conversion file is performed:
a1, determining the conversion function corresponding to the sub-service field from the conversion functions defined in the format conversion file.
A2, converting the first service field into a second service field according to the conversion function corresponding to the sub service field.
Optionally, if the first service field does not include a sub-service field, the converting unit 303 is specifically configured to, when the converting the first service field into the second service field according to the format conversion file is executed: and converting the first service field into a corresponding second service field according to a conversion relation template in the format conversion file, wherein the conversion relation template in the format conversion file can directly map the corresponding relation between the first service field and the second service field, and the first service field is not required to be converted into the corresponding second service field through complex operation, so that the data format conversion efficiency of the first service field without the sub-service field can be improved.
Optionally, the data processing apparatus further comprises: and a message generating unit.
The message generating unit is used for: after the converting unit 303 executes the conversion of the first service field into a second service field according to the format conversion file, a service packet corresponding to the second service field is generated according to a second service field file, where the second service field file is used to define a data type of at least one second service field.
Optionally, in order to improve the generation efficiency of the service packet corresponding to the second service field whose number is greater than one, therefore, the second service field file further includes a serialization definition of the second service field whose number is greater than one, and correspondingly, the packet generation unit is specifically configured to: and according to the serialization definition of the second service fields with the number greater than one included in the second service field file, serializing the second service fields with the number greater than one into the service messages corresponding to the second service fields with the number greater than one.
Optionally, the data processing apparatus further comprises: and a message receiving unit.
The message receiving unit is used for: and after the message generating unit executes the generation of the service message corresponding to the second service field according to the second service field file, receiving a feedback service message aiming at the service message corresponding to the second service field.
Optionally, in order to convert the feedback service packet with the data format being the second data format into the first data format, the data processing apparatus further includes: and a message processing unit.
The message processing unit is used for: after the message receiving unit executes the receiving of the feedback service message aiming at the service message corresponding to the second service field, splitting a feedback service field with a data format of a second data format from the feedback service message according to the second service field file; determining a format conversion file corresponding to the feedback service field with the data format being the second data format according to the service type corresponding to the feedback service field with the data format being the second data format; and converting the feedback service field with the data format being the second data format into the feedback service field with the data format being the first data format according to the format conversion file corresponding to the feedback service field with the second data format, and generating a service message corresponding to the feedback service field with the data format being the first data format according to the first service field file.
Optionally, the data processing apparatus further comprises: and a file loading unit.
The file loading unit is used for: before the obtaining unit 301 performs the obtaining of the first service field, a specified gateway is started according to a gateway start instruction, and after the specified gateway is started, a format conversion file, a first service field file, and a second service field file are loaded.
Optionally, the data processing method further includes: a first file modification unit.
The first file modification unit is used for: receiving a format conversion file modification instruction; and modifying the format conversion file according to the format conversion file modification instruction.
Optionally, the data processing method further includes: and a second file modification unit.
The second file modification unit is configured to: receiving a business field file modification instruction; and modifying the corresponding service field file according to the service field file modification instruction, wherein the service field file comprises the first service field file or/and the second service field file.
Because the service type corresponding to the service field to be subjected to data format conversion is not invariable, in order to meet the actual service requirement as much as possible, when a format conversion file modification instruction is received, the format conversion file can be modified according to the format conversion file modification instruction, or/and when a service field file modification instruction is received, the corresponding service field file can be modified according to the service field file modification instruction, so that the data format conversion of the service field of the corresponding service type can be realized by utilizing the modified file, the process does not need to modify a program code for data format conversion, and the uncertainty risk generated by program code modification is avoided.
In the embodiment of the application, the data format conversion of the service data is realized by acquiring the first service field with the data format being the first data format, determining the format conversion file corresponding to the first service field according to the service type corresponding to the first service field, and converting the first service field into the second service field with the data format being the second data format according to the format conversion file.
Example four:
fig. 4 is a schematic structural diagram of a data processing terminal device according to an embodiment of the present application. As shown in fig. 4, the data processing terminal device 4 of this embodiment includes: at least one processor 40 (only one shown in fig. 4), a memory 41, and a computer program 42 stored in the memory 41 and executable on the at least one processor 40, the processor 40 implementing the steps in any of the various data processing method embodiments described above when executing the computer program 42.
The data processing terminal device 4 may be a desktop computer, a notebook computer, a palm computer, a cloud server, or other computing devices. The data processing terminal device may include, but is not limited to, a processor 40, a memory 41. Those skilled in the art will appreciate that fig. 4 is only an example of the data processing terminal device 4, and does not constitute a limitation to the data processing terminal device 4, and may include more or less components than those shown, or combine some components, or different components, for example, and may also include input and output devices, network access devices, and the like.
The Processor 40 may be a Central Processing Unit (CPU), and the Processor 40 may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 41 may in some embodiments be an internal storage unit of the data processing terminal device 4, such as a hard disk or a memory of the data processing terminal device 4. In other embodiments, the memory 41 may also be an external storage device of the data processing terminal 4, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a flash Card (FlashCard), or the like, provided on the data processing terminal 4. Further, the memory 41 may also include both an internal storage unit and an external storage device of the data processing terminal device 4. The memory 41 is used for storing an operating system, an application program, a BootLoader (BootLoader), data, and other programs, such as program codes of the computer program. The memory 41 may also be used to temporarily store data that has been output or is to be output.
It should be noted that, because the contents of information interaction, execution process, and the like between the above units are based on the same concept as that of the embodiment of the method of the present application, specific functions and technical effects thereof may be specifically referred to a part of the embodiment of the method, and details thereof are not described herein again.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the above-mentioned method embodiments.
The embodiments of the present application provide a computer program product, which when running on a mobile terminal, enables the mobile terminal to implement the steps in the above method embodiments when executed.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or apparatus capable of carrying computer program code to a photographing terminal device, a recording medium, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed network device and method may be implemented in other ways. For example, the above described network device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical functional division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A data processing method, comprising:
acquiring a first service field, wherein the data format of the first service field is a first data format;
determining a format conversion file corresponding to the first service field according to the service type corresponding to the first service field;
and converting the first service field into a second service field according to the format conversion file, wherein the data format of the second service field is a second data format different from the first data format.
2. The data processing method of claim 1, wherein prior to said obtaining the first traffic field, comprising:
if a service message with a data format of a first data format is received, splitting a first service field from the service message with the data format of the first data format according to a first service field file, wherein the first service field file comprises at least one definition of the first service field.
3. The data processing method of claim 1, wherein after said converting the first traffic field to a second traffic field according to the format conversion file, comprising:
and generating a service message corresponding to the second service field according to a second service field file, wherein the second service field file is used for defining the data type of at least one second service field.
4. The data processing method according to claim 3, wherein after the generating the service packet corresponding to the second service field according to the second service field file, the method comprises:
and receiving a feedback service message aiming at the service message corresponding to the second service field.
5. The data processing method of claim 1, wherein if the first service field includes at least one sub-service field, the converting the first service field into a second service field according to the format conversion file comprises:
determining a conversion function corresponding to the sub-service field from conversion functions defined in the format conversion file;
and converting the first service field into a second service field according to the conversion function corresponding to the sub-service field.
6. The data processing method of claim 1, wherein if the first service field does not include a sub-service field, the converting the first service field into a second service field according to the format conversion file comprises:
and converting the first service field into a corresponding second service field according to a conversion relation template in the format conversion file.
7. The data processing method of any of claims 1 to 6, further comprising:
receiving a format conversion file modification instruction;
and modifying the format conversion file according to the format conversion file modification instruction.
8. A data processing apparatus, comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a first service field, and the data format of the first service field is a first data format;
a determining unit, configured to determine, according to the service type corresponding to the first service field, a format conversion file corresponding to the first service field;
and the conversion unit is used for converting the first service field into a second service field according to the format conversion file, wherein the data format of the second service field is a second data format different from the first data format.
9. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN201910859376.0A 2019-09-11 2019-09-11 Data processing method and device Pending CN110765067A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910859376.0A CN110765067A (en) 2019-09-11 2019-09-11 Data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910859376.0A CN110765067A (en) 2019-09-11 2019-09-11 Data processing method and device

Publications (1)

Publication Number Publication Date
CN110765067A true CN110765067A (en) 2020-02-07

Family

ID=69329441

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910859376.0A Pending CN110765067A (en) 2019-09-11 2019-09-11 Data processing method and device

Country Status (1)

Country Link
CN (1) CN110765067A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111371780A (en) * 2020-03-02 2020-07-03 中国农业银行股份有限公司 Message transmission method, system and device
CN111368512A (en) * 2020-03-04 2020-07-03 北京软通智慧城市科技有限公司 Service data conversion method, device, equipment and storage medium
CN112055062A (en) * 2020-08-21 2020-12-08 深圳市信锐网科技术有限公司 Data communication method, device, equipment and readable storage medium
CN113222693A (en) * 2021-04-28 2021-08-06 北京京东拓先科技有限公司 Electronic order processing method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103294652A (en) * 2012-02-27 2013-09-11 腾讯科技(深圳)有限公司 Data conversion method and system
CN109344183A (en) * 2018-01-30 2019-02-15 深圳壹账通智能科技有限公司 Data interactive method, device, computer equipment and storage medium
CN109547474A (en) * 2018-12-21 2019-03-29 深圳市创梦天地科技有限公司 A kind of data transmission method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103294652A (en) * 2012-02-27 2013-09-11 腾讯科技(深圳)有限公司 Data conversion method and system
CN109344183A (en) * 2018-01-30 2019-02-15 深圳壹账通智能科技有限公司 Data interactive method, device, computer equipment and storage medium
CN109547474A (en) * 2018-12-21 2019-03-29 深圳市创梦天地科技有限公司 A kind of data transmission method and device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111371780A (en) * 2020-03-02 2020-07-03 中国农业银行股份有限公司 Message transmission method, system and device
CN111371780B (en) * 2020-03-02 2022-06-03 中国农业银行股份有限公司 Message transmission method, system and device
CN111368512A (en) * 2020-03-04 2020-07-03 北京软通智慧城市科技有限公司 Service data conversion method, device, equipment and storage medium
CN111368512B (en) * 2020-03-04 2023-08-22 北京软通智慧科技有限公司 Service data conversion method, device, equipment and storage medium
CN112055062A (en) * 2020-08-21 2020-12-08 深圳市信锐网科技术有限公司 Data communication method, device, equipment and readable storage medium
CN112055062B (en) * 2020-08-21 2024-04-09 深圳市信锐网科技术有限公司 Data communication method, device, equipment and readable storage medium
CN113222693A (en) * 2021-04-28 2021-08-06 北京京东拓先科技有限公司 Electronic order processing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110765067A (en) Data processing method and device
CN110838071B (en) Policy data processing method, device and server
CN111143446A (en) Data structure conversion processing method and device of data object and electronic equipment
CN111143087A (en) Interface calling method and device, storage medium and server
CN112631649A (en) Intelligent contract management method, device, terminal equipment and medium
CN113076153A (en) Interface calling method and device
CN114331416A (en) Data processing method and device, electronic equipment and storage medium
CN110619204A (en) Invitation code generation method and device, terminal equipment and storage medium
CN110598993A (en) Data processing method and device
CN111324645B (en) Block chain data processing method and device
CN111176641B (en) Flow node execution method, device, medium and electronic equipment
CN111142863B (en) Page generation method and device
CN109324838B (en) Execution method and execution device of single chip microcomputer program and terminal
CN114218175A (en) Resource cross-platform sharing method and device, terminal equipment and storage medium
CN115904317A (en) Method, device, equipment and storage medium for uniformly calling front-end interface and back-end interface
CN111190750B (en) Data processing method and system
CN111796865B (en) Byte code file modification method, device, terminal equipment and medium
CN112463409A (en) Data interaction method and device, electronic equipment and computer readable storage medium
CN112925523A (en) Object comparison method, device, equipment and computer readable medium
CN113313492A (en) Electronic certificate generation method and related device
CN112114870A (en) Method and device for packaging codes, terminal equipment and storage medium
CN113448960A (en) Method and device for importing form file
CN112181839B (en) Information processing method, information processing device and terminal equipment
CN113268230B (en) Feedback information generation method and device, terminal and storage medium
CN109376023B (en) Method and equipment for generating calling information and issuing return code group

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200207