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

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

Info

Publication number
CN108694249B
CN108694249B CN201810539634.2A CN201810539634A CN108694249B CN 108694249 B CN108694249 B CN 108694249B CN 201810539634 A CN201810539634 A CN 201810539634A CN 108694249 B CN108694249 B CN 108694249B
Authority
CN
China
Prior art keywords
data
interface
background data
background
data processing
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.)
Active
Application number
CN201810539634.2A
Other languages
Chinese (zh)
Other versions
CN108694249A (en
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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201810539634.2A priority Critical patent/CN108694249B/en
Priority to PCT/CN2018/101879 priority patent/WO2019227702A1/en
Publication of CN108694249A publication Critical patent/CN108694249A/en
Application granted granted Critical
Publication of CN108694249B publication Critical patent/CN108694249B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the invention discloses a data processing method, a data processing device, computer equipment and a storage medium, wherein the method comprises the following steps: a data transmission channel of a data processing interface and a URL interface is pre-established; acquiring background data in the URL interface according to the data transmission channel; decoupling background data in the URL interface according to a preset decoupling rule; and processing the decoupled background data according to a preset processing rule so as to simplify the background data. The embodiment of the invention can simplify the processing logic of the background data to a great extent and improve the processing efficiency of the background data.

Description

Data processing method, data processing device, computer equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a data processing method and apparatus, a computer device, and a storage medium.
Background
According to project requirements, data returned by a background often needs to be processed, for example, dividing by ten thousand by hundred million, and taking decimal fraction. These processes are generally direct processes in the code or call corresponding processing methods. If the codes are used for processing data returned by the background, corresponding codes need to be found, or for the same service processing mode, only the data takes the slight difference of ten thousand or hundred million, and branch judgment is carried out in the codes for processing respectively, so that the code amount is increased; if the data returned by the background is not processed by using the codes, ten thousand or hundred million levels of data in the background are too large in magnitude, so that the operation efficiency of a user is low, and a large amount of time is wasted.
Disclosure of Invention
In view of this, embodiments of the present invention provide a data processing method, an apparatus, a computer device, and a storage medium, which can greatly simplify processing logic of background data and improve processing efficiency of the background data.
In one aspect, an embodiment of the present invention provides a data processing method, where the method includes:
a data transmission channel of a data processing interface and a URL interface is pre-established;
acquiring background data in the URL interface according to the data transmission channel;
decoupling background data in the URL interface according to a preset decoupling rule;
and processing the decoupled background data according to a preset processing rule so as to simplify the background data.
In another aspect, an embodiment of the present invention provides a data processing apparatus, where the apparatus includes:
the establishing unit is used for pre-establishing a data transmission channel between the data processing interface and the URL interface;
the first acquisition unit is used for acquiring background data in the URL interface according to the data transmission channel;
the decoupling unit is used for decoupling the background data in the URL interface according to a preset decoupling rule;
and the processing unit is used for processing the decoupled background data according to a preset processing rule so as to simplify the background data.
In yet another aspect, an embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the data processing method described above is implemented.
In still another aspect, the present invention provides a computer-readable storage medium, which stores one or more programs, where the one or more programs are executable by one or more processors to implement the data processing method as described above.
The embodiment of the invention provides a data processing method, a data processing device, computer equipment and a storage medium, wherein the method comprises the following steps: a data transmission channel of a data processing interface and a URL interface is pre-established; acquiring background data in the URL interface according to the data transmission channel; decoupling background data in the URL interface according to a preset decoupling rule; and processing the decoupled background data according to a preset processing rule, thereby achieving the purpose of simplifying the background data. The embodiment of the invention can simplify the processing logic of the background data to a great extent and improve the processing efficiency of the background data.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are 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 schematic flow chart diagram of a data processing method provided by an embodiment of the invention;
FIG. 2 is a schematic flow chart diagram of a data processing method provided by an embodiment of the invention;
FIG. 3 is a schematic flow chart diagram of a data processing method according to another embodiment of the present invention;
FIG. 4 is a schematic flow chart diagram of a data processing method according to another embodiment of the present invention;
FIG. 5 is a schematic block diagram of a data processing apparatus provided by an embodiment of the present invention;
FIG. 6 is another schematic block diagram of a data processing apparatus according to an embodiment of the present invention;
FIG. 7 is another schematic block diagram of a data processing apparatus according to an embodiment of the present invention;
FIG. 8 is another schematic block diagram of a data processing apparatus according to an embodiment of the present invention;
FIG. 9 is another schematic block diagram of a data processing apparatus according to an embodiment of the present invention
Fig. 10 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
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 some, not all, embodiments of the present invention. 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 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 is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
Referring to fig. 1, fig. 1 is a schematic flow chart of a data processing method according to an embodiment of the present invention. The method can be operated in terminals such as smart phones (such as Android phones, IOS phones and the like), tablet computers, notebook computers, smart devices and the like. The data processing method of the embodiment of the invention can reduce the time for compiling the test code to a great extent and improve the test efficiency. Fig. 1 is a schematic flow chart of a data processing method according to an embodiment of the present invention. As shown in fig. 1, the method includes steps S101 to S104.
S101, a data transmission channel of the data processing interface and the URL interface is established in advance.
In the embodiment of the present invention, the data transmission channel refers to a transmission channel between a URL interface and a data processing interface, and when the URL interface acquires background data, the background data is transmitted to the data processing interface in real time through the data transmission channel, specifically, interface objects are respectively set in the URL interface and the data processing interface, and a configuration path between the interface object of the URL interface and the interface object of the data processing interface is set to be the same, so as to ensure that a rule of acquiring data by the URL interface and the data processing interface is consistent, where the configuration path refers to a path for acquiring the background data, and when the interface object of the URL interface and the rule of acquiring data by the interface object of the data processing interface are consistent, the transmission channel between the URL interface and the data processing interface is established.
Further, as shown in fig. 2, the step S101 includes steps S201 to S204.
S201, creating a URL interface object.
In this embodiment of the present invention, the URL interface object refers to an object created in a URL interface, where the URL interface object is used for the URL interface to obtain background data, and establish a transmission channel with the data processing interface object in step S202, for example, a URL interface object is created in the URL interface, named URL, and a configuration path of the URL interface object is set to 'group'. 0 '. personal', and an attribute value corresponding to the configuration path of the URL interface object is a URL address, such as migrate/getgroup cluster, of the URL interface to obtain background data.
S202, creating a data processing interface object.
In this embodiment of the present invention, the data processing interface object refers to an object created in the data processing interface, and the data processing interface object is used for establishing a transmission channel between the data processing interface and the URL interface object in step S202, and obtaining background data through the transmission channel, for example, creating a data processing interface object named dataRules in the data processing interface.
S203, setting the URL interface object and the data processing interface object to be the same path.
In this embodiment of the present invention, the URL interface object and the data processing interface object are set to be the same path, that is, the configuration path of the URL interface object is set to be consistent with the configuration path of the data processing interface object, for example, a URL interface object is created in the URL interface and named URL, and the configuration path of the URL interface object is set to be 'group'. 0 '. personal', a data processing interface object is created in the data processing interface and named datarales, and the configuration path of the data processing interface object is set to be 'group'. 0 '. personal', where the attribute value set by the configuration path of the URL interface object is the URL address of the URL interface for acquiring background data, and the attribute value set by the configuration path of the data processing interface object may be defined by the user The same is true.
And S204, establishing the data transmission channel according to the set same path.
In the embodiment of the invention, by setting the configuration path of the URL interface object to be consistent with the configuration path of the data processing interface object, when the URL interface acquires background data through the URL address of the URL interface object, because the configuration path in the data processing interface object of the data processing interface is the same as the URL interface, the data processing interface can acquire the background data acquired by the URL interface object through the data processing interface object in real time, so that a data transmission channel between the URL interface and the data processing interface is established in a manner of configuring the same configuration path.
And S102, acquiring background data in the URL interface according to the data transmission channel.
In the embodiment of the invention, after a data transmission channel between a URL interface and a data processing interface is established by setting a configuration path of the URL interface object to be consistent with a configuration path of the data processing interface object, if an acquisition instruction is received, background data is acquired through a URL address in the URL interface, and when the background data is acquired through the URL address in the URL interface, the background data acquired through the URL interface is transmitted to the data processing interface in real time through the data transmission channel, wherein the acquisition instruction can be an instruction formed by clicking operation of a user, specifically, a corresponding virtual control can be set on a confirmation page determined by the user, the user generates the acquisition instruction through operating the set virtual control, and the acquisition instruction triggers the URL interface to start a program for acquiring the background data.
S103, decoupling the background data in the URL interface according to a preset decoupling rule.
In the embodiment of the present invention, decoupling is performed on background data by using a preset decoupling rule in a data processing interface, and the step of decoupling the background data according to the preset decoupling rule specifically includes: determining a data field name corresponding to background data; creating a configuration object according to the data field name; decoupling the background data according to the configuration object; specifically, the data field name corresponding to the background data is determined, where the data field name refers to a name when the background data is stored in a field format, for example, the obtained background data field names are 'internus num', 'crnNewUserNum', the configuration object according to the field names specifically is to use the obtained data field names as key values of key names in the configuration object, each key name corresponds to one key value, each key value corresponds to one data field name, for example, if the data field names of the background code are 'internus num', 'crNewUserNum', we can name the configuration object as dataKey, and define two key names of the object dataKey as 'num 0', 'num 1', the method for assigning the data field names to the key names by using a preset assignment rule can be 'key names', and finally, the data field names of the code are assigned as two key names in the JSON object, obtaining 'num 0': interusersnum 'and' num1 ': crnNewUserNum', wherein the operation of configuring the configuration object by the data field name is completed by giving the key name to the data field name as a key value, the background data is decoupled according to the configuration object, specifically, the background data corresponding to the background data field name is obtained according to the configuration object and is used as decoupling data, the decoupling of the background data is completed, the decoupling of the background data is performed by setting the configuration object, the coupling relation between the data field name corresponding to the background data and the data field name corresponding to the front-end logic code can be weakened, if the data field name corresponding to the front-end logic code is changed, a lot of places using the data field name of the background data in the front-end logic code cannot be modified greatly due to the change of the data field name of the background data; the method for acquiring the decoupling data is to obtain the decoupling data corresponding to the data field name intUsers Num in the background data by writing and calling a data.
And S104, processing the decoupled background data according to a preset processing rule so as to simplify the background data.
In the embodiment of the invention, the preset processing rule refers to converting background data into data in a format required by a user according to the data processing requirement, so that the aim of simplifying the background data is fulfilled; the specific processing rule can be defined by the user, and is not limited herein, for example, we often simplify hundreds of millions of background data, and obtain simplified data divided by tens of thousands or hundreds of millions, and take fractions of a few bits after a percentile for display, and the alternative simplified method is: defining a data processing object in a data processing interface, defining a data processing rule in the data processing object, if one piece of background data is 1836000000, the data format required by us is 1.84 hundred million, then we need to divide the data by 10000000 and take two bits after decimal point, obtaining decoupled background data 1836000000 in the data processing object by calling a function getmuledata (), dividing the decoupled background data by one hundred million by defining a background data processing array [ 'yi', 2], and reserving two bits of decimal point, and finally obtaining 1.84 hundred million required simplified data; for another example, the background data is 1836000000, the data format we need is 183600 ten thousand, that we need to divide the data by 10000, and take 1 bit after the decimal point, get decoupled background data 1836000000 in the data processing object by calling function getresult data (), divide the decoupled background data by ten thousand by defining the background data processing array [ 'wan', 1], and keep one decimal, and finally get the required simplified data 183600.0 ten thousand.
As can be seen from the above, in the embodiment of the present invention, the data transmission channel between the data processing interface and the URL interface is pre-established; acquiring background data in the URL interface according to the data transmission channel; decoupling background data in the URL interface according to a preset decoupling rule; and processing the decoupled background data according to a preset processing rule, thereby achieving the purpose of simplifying the background data. The embodiment of the invention can simplify the processing logic of the background data to a great extent and improve the processing efficiency of the background data.
Referring to fig. 3, fig. 3 is a schematic flow chart of a data processing method according to an embodiment of the present invention. The method can be operated in terminals such as smart phones (such as Android phones, IOS phones and the like), tablet computers, notebook computers, smart devices and the like. As shown in fig. 3, the method includes steps S301 to S305.
S301, a data transmission channel of the data processing interface and the URL interface is established in advance.
In the embodiment of the present invention, the data transmission channel refers to a transmission channel between a URL interface and a data processing interface, and when the URL interface acquires background data, the background data is transmitted to the data processing interface in real time through the data transmission channel, specifically, interface objects may be respectively set in the URL interface and the data processing interface, and a configuration path of the interface object of the URL interface and an configuration path of the interface object of the data processing interface are set to be the same, so as to ensure that a rule of acquiring data by the URL (Uniform Resource Locator) interface and the data processing interface is the same, where the configuration path refers to a path for acquiring the background data, and when the rule of acquiring data by the interface object of the URL interface and the interface object of the data processing interface is the same, the transmission channel between the URL interface and the data processing interface is established.
S302, the URL interface acquires the background data according to a preset configuration path.
In the embodiment of the present invention, the configuration path is set in the URL interface object created by the URL interface, the attribute value of the configuration path is a URL address for the URL interface to acquire background data, and when the URL address for acquiring background data is added to the attribute value of the configuration path of the URL interface, the background data is acquired through the URL address configured by the configuration path.
S303, obtaining background data in the URL interface according to the data transmission channel.
In the embodiment of the invention, after a data transmission channel between a URL interface and a data processing interface is established by setting a configuration path of the URL interface object to be consistent with a configuration path of the data processing interface object, if an acquisition instruction is received, background data is acquired through a URL address in the URL interface, and when the background data is acquired through the URL address in the URL interface, the background data acquired through the URL interface is transmitted to the data processing interface in real time through the data transmission channel, wherein the acquisition instruction can be an instruction formed by clicking operation of a user, specifically, a corresponding virtual control can be set on a confirmation page determined by the user, the user generates the acquisition instruction through operating the set virtual control, and the acquisition instruction triggers the URL interface to start a program for acquiring the background data.
S304, decoupling the background data in the URL interface according to a preset decoupling rule.
In the embodiment of the present invention, decoupling is performed on background data by using a preset decoupling rule in a data processing interface, and the step of decoupling the background data according to the preset decoupling rule specifically includes: determining a data field name corresponding to background data; creating a configuration object according to the data field name; decoupling the background data according to the configuration object; specifically, the data field name corresponding to the background data is determined, where the data field name refers to a name when the background data is stored in a field format, for example, the obtained background data field names are ' internus num ', ' crnNewUserNum ', the configuration object according to the field names is specifically to use the obtained data field names as key values of key names in the configuration object, each key name corresponds to one key value, each key value corresponds to one data field name, for example, if the data field names of the background code are ' internus num ', ' crNewUserNum ', we can name the configuration object as dataKey, and define two key names of the object dataKey as ' num0 ', ' num1 ', respectively, the method for assigning the data field names to the key names by using a preset assignment rule can be ' key name ' data field name ', and finally, the data field name of the background data is used as a key value to assign two key names in the JSON object, obtaining 'num 0': interusersnum 'and' num1 ': crnNewUserNum', wherein the operation of configuring the configuration object by the data field name is completed by giving the key name to the data field name as a key value, the background data is decoupled according to the configuration object, specifically, the background data corresponding to the background data field name is obtained according to the configuration object and is used as decoupling data, the decoupling of the background data is completed, the decoupling of the background data is performed by setting the configuration object, the coupling relation between the data field name corresponding to the background data and the data field name corresponding to the front-end logic code can be weakened, if the data field name corresponding to the front-end logic code is changed, a lot of places using the data field name of the background data in the front-end logic code cannot be modified greatly due to the change of the data field name of the background data; the method for acquiring the decoupling data is to obtain the decoupling data corresponding to the data field name intUsers Num in the background data by writing and calling a data.
S305, processing the decoupled background data according to a preset processing rule so as to simplify the background data.
In this embodiment of the present invention, the preset processing rule refers to converting background data into data in a format required by a user according to a data processing requirement, and a specific processing rule may be defined by the user, which is not limited herein, for example, we often simplify hundreds of millions of background data, and obtain simplified data divided by ten thousands or hundreds of millions, and take a fraction of several bits after a percentile to display, and optionally, the simplified method is as follows: defining a data processing object in a data processing interface, defining a data processing rule in the data processing object, if one piece of background data is 1836000000, the data format required by us is 1.84 hundred million, then we need to divide the data by 10000000 and take two bits after decimal point, obtaining decoupled background data 1836000000 in the data processing object by calling a function getmuledata (), dividing the decoupled background data by one hundred million by defining a background data processing array [ 'yi', 2], and reserving two bits of decimal point, and finally obtaining 1.84 hundred million required simplified data; for another example, the background data is 1836000000, the data format we need is 183600 ten thousand, that we need to divide the data by 10000, and take 1 bit after the decimal point, get decoupled background data 1836000000 in the data processing object by calling function getresult data (), divide the decoupled background data by ten thousand by defining the background data processing array [ 'wan', 1], and keep one decimal, and finally get the required simplified data 183600.0 ten thousand.
Referring to fig. 4, fig. 4 is a schematic flow chart of a data processing method according to an embodiment of the present invention. The method can be operated in terminals such as smart phones (such as Android phones, IOS phones and the like), tablet computers, notebook computers, smart devices and the like. As shown in fig. 4, the method includes steps S401 to S407.
S401, a data transmission channel of the data processing interface and the URL interface is established in advance.
In the embodiment of the present invention, the data transmission channel refers to a transmission channel between a URL interface and a data processing interface, and when the URL interface acquires background data, the background data is transmitted to the data processing interface in real time through the data transmission channel, specifically, interface objects are respectively set in the URL interface and the data processing interface, and a configuration path between the interface object of the URL interface and the interface object of the data processing interface is set to be the same, so as to ensure that a rule of acquiring data by the URL interface and the data processing interface is consistent, where the configuration path refers to a path for acquiring the background data, and when the interface object of the URL interface and the rule of acquiring data by the interface object of the data processing interface are consistent, the transmission channel between the URL interface and the data processing interface is established.
S402, obtaining background data in the URL interface according to the data transmission channel.
In the embodiment of the present invention, after a data transmission channel between a URL interface and a data processing interface is established by setting a configuration path of the URL interface object to be consistent with a configuration path of the data processing interface object, if an acquisition instruction is received, background data is acquired through a URL address in the URL interface, and when the background data is acquired through the URL address in the URL interface, the background data acquired through the URL interface is transmitted to the data processing interface in real time through the data transmission channel, where the acquisition instruction may be an instruction formed by a user's click operation, specifically, a corresponding virtual control may be set on a confirmation page for the user to determine, and the user generates the acquisition instruction by operating the set virtual control, and triggers the URL interface to start a program for acquiring the background data through the acquisition instruction.
And S403, decoupling the background data in the URL interface according to a preset decoupling rule.
In the embodiment of the present invention, decoupling is performed on background data by using a preset decoupling rule in a data processing interface, and the step of decoupling the background data according to the preset decoupling rule specifically includes: determining a data field name corresponding to background data; creating a configuration object according to the data field name; decoupling the background data according to the configuration object; specifically, the data field name corresponding to the background data is determined, where the data field name refers to a name when the background data is stored in a field format, for example, the obtained background data field names are ' internus num ', ' crnNewUserNum ', the configuration object according to the field names is specifically to use the obtained data field names as key values of key names in the configuration object, each key name corresponds to one key value, each key value corresponds to one data field name, for example, if the data field names of the background code are ' internus num ', ' crNewUserNum ', we can name the configuration object as dataKey, and define two key names of the object dataKey as ' num0 ', ' num1 ', respectively, the method for assigning the data field names to the key names by using a preset assignment rule can be ' key name ' data field name ', and finally, the data field name of the background data is used as a key value to assign two key names in the JSON object, obtaining 'num 0': interusersnum 'and' num1 ': crnNewUserNum', wherein the operation of configuring the configuration object by the data field name is completed by giving the key name to the data field name as a key value, the background data is decoupled according to the configuration object, specifically, the background data corresponding to the background data field name is obtained according to the configuration object and is used as decoupling data, the decoupling of the background data is completed, the decoupling of the background data is performed by setting the configuration object, the coupling relation between the data field name corresponding to the background data and the data field name corresponding to the front-end logic code can be weakened, if the data field name corresponding to the front-end logic code is changed, a lot of places using the data field name of the background data in the front-end logic code cannot be modified greatly due to the change of the data field name of the background data; the method for acquiring the decoupling data is to obtain the decoupling data corresponding to the data field name intUsers Num in the background data by writing and calling a data.
S404, processing the decoupled background data according to a preset processing rule so as to simplify the background data.
In this embodiment of the present invention, in the embodiment of the present invention, the preset processing rule refers to converting background data into data in a format required by a user according to a data processing requirement, and a specific processing rule may be defined by the user, for example, we often simplify hundreds of millions of background data, and obtain simplified data divided by ten thousands or hundreds of millions, and take fractions of several bits after a percentile to display, and optionally, the simplified method is as follows: defining a data processing object in a data processing interface, defining a data processing rule in the data processing object, if one piece of background data is 1836000000, the data format required by us is 1.84 hundred million, then we need to divide the data by 10000000 and take two bits after decimal point, obtaining decoupled background data 1836000000 in the data processing object by calling a function getmuledata (), dividing the decoupled background data by one hundred million by defining a background data processing array [ 'yi', 2], and reserving two bits of decimal point, and finally obtaining 1.84 hundred million required simplified data; for another example, the background data is 1836000000, the data format we need is 183600 ten thousand, that we need to divide the data by 10000, and take 1 bit after the decimal point, get decoupled background data 1836000000 in the data processing object by calling function getresult data (), divide the decoupled background data by ten thousand by defining the background data processing array [ 'wan', 1], and keep one decimal, and finally get the required simplified data 183600.0 ten thousand.
S405, acquiring characteristic parameters of the processed background data.
In the embodiment of the present invention, the characteristic parameter of the background data processed by the preset processing rule is obtained, where the characteristic parameter is used to distinguish the background data to be processed from the processed background data, and optionally, the characteristic parameter may be a digital unit obtained by simplifying the background data, such as "thousands" or "tens of thousands" or the like.
S406, judging whether the characteristic parameters are matched with the preset data format parameters.
In the embodiment of the present invention, before determining the data format of the feature parameter, the data format of the feature parameter after the background data is subjected to data processing may be defined, for example, the background data is 1836000000, and the data format required by us is 183600 ten thousand, then the data format after the background data is processed is defined in advance as divided by ten thousand, the unit of the processed number is "ten thousand", and for different feature parameters of the background data, if the data format of the processed feature parameter does not conform to the predefined data format, it may be determined that the processed background data is invalid.
S407, if the characteristic parameters are matched with the predefined data format parameters, the processed background data is determined to be valid.
In the embodiment of the invention, for the processed background data, if the data format of the processed characteristic parameter conforms to the predefined data format, the processed background data is determined to be valid.
Referring to fig. 5, in response to the above-mentioned data processing method, an embodiment of the present invention further provides a data processing apparatus, where the apparatus 100 includes: the device comprises a building unit 101, a first acquiring unit 102, a decoupling unit 103 and a processing unit 104.
The establishing unit 101 is configured to establish a data transmission channel between a data processing interface and a URL interface in advance.
And the transmission unit 102 is configured to obtain the background data in the URL interface according to the data transmission channel.
And the decoupling unit 103 is used for decoupling the background data in the URL interface according to a preset decoupling rule.
The processing unit 104 is configured to process the decoupled background data according to a preset processing rule, so as to simplify the background data.
As can be seen from the above, in the embodiment of the present invention, the data transmission channel between the data processing interface and the URL interface is pre-established; acquiring background data in the URL interface according to the data transmission channel; decoupling background data in the URL interface according to a preset decoupling rule; and processing the decoupled background data according to a preset processing rule, thereby achieving the purpose of simplifying the background data. The embodiment of the invention can simplify the processing logic of the background data to a great extent and improve the processing efficiency of the background data.
As shown in fig. 6, the establishing unit 101 includes:
a first creating unit 1011 for creating a URL interface object.
A second creating unit 1012 for creating a data processing interface object.
The setting unit 1013 is configured to set the URL interface object and the data processing interface object to be the same path.
An establishing subunit 1014, configured to establish the data transmission channel according to the set same path.
As shown in fig. 7, the decoupling unit 103 includes:
the determining unit 1031 is configured to determine a data field name corresponding to the background data.
A third creating unit 1032, configured to create a configuration object according to the data field name.
A decoupling subunit 1033, configured to decouple the background data according to the configuration object.
Referring to fig. 8, in response to the above-mentioned data processing method, an embodiment of the invention further provides a data processing apparatus, where the apparatus 200 includes: the device comprises a establishing unit 201, a second acquiring unit 202, a first acquiring unit 203, a decoupling unit 204 and a processing unit 205.
The establishing unit 201 is configured to establish a data transmission channel between a data processing interface and a URL interface in advance.
A second obtaining unit 202, configured to obtain the background data according to a preset configuration path by the URL interface.
A first obtaining unit 203, configured to obtain background data in the URL interface according to the data transmission channel.
The decoupling unit 204 is configured to decouple the background data in the URL interface according to a preset decoupling rule.
The processing unit 205 is configured to process the decoupled background data according to a preset processing rule, so as to simplify the background data.
Referring to fig. 9, in response to the above-mentioned data processing method, an embodiment of the present invention further provides a data processing apparatus, where the apparatus 200 includes: the device comprises a establishing unit 201, a first acquiring unit 202, a decoupling unit 203, a processing unit 204, a third acquiring unit 205, a judging unit 206 and a judging unit 207.
The establishing unit 201 is configured to establish a data transmission channel between a data processing interface and a URL interface in advance.
A first obtaining unit 202, configured to obtain background data in the URL interface according to the data transmission channel.
The decoupling unit 203 is configured to decouple the background data in the URL interface according to a preset decoupling rule.
The processing unit 204 is configured to process the decoupled background data according to a preset processing rule, so as to simplify the background data.
A third obtaining unit 205, configured to obtain a feature parameter of the processed background data.
A judging unit 206, configured to judge whether the characteristic parameter matches a predefined data format parameter.
A determining unit 207, configured to determine that the processed background data is valid if the feature parameter matches a predefined data format parameter.
The data processing apparatus and the data processing method correspond to each other one to one, and the specific principle and process thereof are the same as those of the method described in the above embodiment and are not described again.
The data processing apparatus described above may be implemented in the form of a computer program which may be run on a computer device as shown in fig. 10.
FIG. 10 is a schematic diagram of a computer device according to the present invention. The device can be a terminal or a server, wherein the terminal can be an electronic device with a communication function, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant and a wearable device. The server may be an independent server or a server cluster composed of a plurality of servers. Referring to fig. 10, the computer apparatus 500 includes a processor 502, a nonvolatile storage medium 503, an internal memory 504, and a network interface 505, which are connected by a system bus 501. The non-volatile storage medium 503 of the computer device 500 may store, among other things, an operating system 5031 and a computer program 5032, which, when executed, may cause the processor 502 to perform a data processing method. The processor 502 of the computer device 500 is used to provide computing and control capabilities that support the overall operation of the computer device 500. The internal memory 504 provides an environment for the execution of the computer program 5032 in the non-volatile storage medium 503, which, when executed by the processor, causes the processor 502 to perform a data processing method. The network interface 505 of the computer device 500 is used for network communication such as sending assigned tasks and the like. Those skilled in the art will appreciate that the architecture shown in fig. 10 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
Wherein the processor 502 implements the following operations when executing the computer program:
a data transmission channel of a data processing interface and a URL interface is pre-established;
acquiring background data in the URL interface according to the data transmission channel;
decoupling background data in the URL interface according to a preset decoupling rule;
and processing the decoupled background data according to a preset processing rule so as to simplify the background data.
In one embodiment, the pre-establishing a data transmission channel between the data processing interface and the URL interface includes:
creating a URL interface object;
creating a data processing interface object;
setting the URL interface object and the data processing interface object to be the same path;
and establishing the data transmission channel according to the set same path.
In one embodiment, the processor 502, when executing the computer program, further performs the following:
and the URL interface acquires the background data according to a preset configuration path.
In one embodiment, decoupling the background data in the URL interface according to a preset decoupling rule includes:
determining a data field name corresponding to background data;
creating a configuration object according to the data field name;
decoupling the background data according to the configuration object.
In one embodiment, the processor 502, when executing the computer program, further performs the following:
acquiring characteristic parameters of the processed background data;
judging whether the characteristic parameters are matched with preset data format parameters or not;
and if the characteristic parameters are matched with the preset data format parameters, judging that the processed background data is valid.
Those skilled in the art will appreciate that the embodiment of a computer device illustrated in fig. 10 does not constitute a limitation on the specific construction of the computer device, and that in other embodiments a computer device may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components. For example, in some embodiments, the computer device only includes a memory and a processor, and in such embodiments, the structures and functions of the memory and the processor are the same as those of the embodiment shown in fig. 10, and are not described herein again.
The present invention provides a computer readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to perform the steps of:
a data transmission channel of a data processing interface and a URL interface is pre-established;
acquiring background data in the URL interface according to the data transmission channel;
decoupling background data in the URL interface according to a preset decoupling rule;
and processing the decoupled background data according to a preset processing rule so as to simplify the background data.
In one embodiment, the pre-establishing a data transmission channel between the data processing interface and the URL interface includes:
creating a URL interface object;
creating a data processing interface object;
setting the URL interface object and the data processing interface object to be the same path;
and establishing the data transmission channel according to the set same path.
In one embodiment, the following steps are also implemented:
and the URL interface acquires the background data according to a preset configuration path.
In one embodiment, decoupling the background data in the URL interface according to a preset decoupling rule includes:
determining a data field name corresponding to background data;
creating a configuration object according to the data field name;
decoupling the background data according to the configuration object.
In one embodiment, the following steps are also implemented:
acquiring characteristic parameters of the processed background data;
judging whether the characteristic parameters are matched with preset data format parameters or not;
and if the characteristic parameters are matched with the preset data format parameters, judging that the processed background data is valid.
The foregoing storage medium of the present invention includes: various media that can store program codes, such as a magnetic disk, an optical disk, and a Read-Only Memory (ROM).
The elements of all embodiments of the present invention may be implemented by a general purpose Integrated Circuit, such as a CPU (Central Processing Unit), or by an ASIC (Application Specific Integrated Circuit).
The steps in the data processing method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs.
The units in the data processing device of the embodiment of the invention can be merged, divided and deleted according to actual needs.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (8)

1. A method of data processing, the method comprising:
a data transmission channel of a data processing interface and a URL interface is pre-established;
acquiring background data in the URL interface according to the data transmission channel;
decoupling background data in the URL interface according to a preset decoupling rule;
processing the decoupled background data according to a preset processing rule to simplify the background data;
the pre-established data transmission channel of the data processing interface and the URL interface comprises the following steps:
creating a URL interface object;
creating a data processing interface object;
setting the URL interface object and the data processing interface object to be the same path;
and establishing the data transmission channel according to the set same path.
2. The method of claim 1, wherein prior to obtaining the background data in the URL interface according to the data transfer channel, the method comprises:
and the URL interface acquires the background data according to a preset configuration path.
3. The method of claim 1, wherein decoupling background data in the URL interface according to preset decoupling rules comprises:
determining a data field name corresponding to background data;
creating a configuration object according to the data field name;
decoupling the background data according to the configuration object.
4. The method of claim 1, wherein the method further comprises:
acquiring characteristic parameters of the processed background data;
judging whether the characteristic parameters are matched with preset data format parameters or not;
and if the characteristic parameters are matched with the preset data format parameters, judging that the processed background data is valid.
5. A data processing apparatus, characterized in that the apparatus comprises:
the establishing unit is used for pre-establishing a data transmission channel between the data processing interface and the URL interface;
the first acquisition unit is used for acquiring background data in the URL interface according to the data transmission channel;
the decoupling unit is used for decoupling the background data in the URL interface according to a preset decoupling rule;
the processing unit is used for processing the decoupled background data according to a preset processing rule so as to simplify the background data;
the establishing unit comprises:
the first creating unit is used for creating a URL interface object;
the second creating unit is used for creating a data processing interface object;
the setting unit is used for setting the URL interface object and the data processing interface object to be the same path;
and the establishing subunit is used for establishing the data transmission channel according to the set same path.
6. The apparatus of claim 5, wherein the apparatus further comprises:
and the second acquisition unit is used for acquiring the background data by the URL interface according to a preset configuration path.
7. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the data processing method according to any of claims 1-4 when executing the computer program.
8. A computer-readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the data processing method of any one of claims 1-4.
CN201810539634.2A 2018-05-30 2018-05-30 Data processing method, data processing device, computer equipment and storage medium Active CN108694249B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810539634.2A CN108694249B (en) 2018-05-30 2018-05-30 Data processing method, data processing device, computer equipment and storage medium
PCT/CN2018/101879 WO2019227702A1 (en) 2018-05-30 2018-08-23 Data processing method and apparatus, and computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810539634.2A CN108694249B (en) 2018-05-30 2018-05-30 Data processing method, data processing device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108694249A CN108694249A (en) 2018-10-23
CN108694249B true CN108694249B (en) 2022-02-25

Family

ID=63848281

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810539634.2A Active CN108694249B (en) 2018-05-30 2018-05-30 Data processing method, data processing device, computer equipment and storage medium

Country Status (2)

Country Link
CN (1) CN108694249B (en)
WO (1) WO2019227702A1 (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101278354A (en) * 2005-09-30 2008-10-01 莫塞德技术公司 Multiple independent serial link memory
CN102197281A (en) * 2008-10-24 2011-09-21 约翰尼斯海登海恩博士股份有限公司 Device and method for the data transfer between a position measurement device and subsequent electronics
CN103136153A (en) * 2011-11-21 2013-06-05 宏碁股份有限公司 Interface apparatus, cascading system thereof and cascading method thereof
CN103647652A (en) * 2013-12-20 2014-03-19 北京奇虎科技有限公司 Method, device and server for achieving data transmission
CN104065678A (en) * 2013-03-21 2014-09-24 中国科学院声学研究所 Dual-mode data reception and access method based on embedded browser
CN104252481A (en) * 2013-06-27 2014-12-31 阿里巴巴集团控股有限公司 Dynamic check method and device for consistency of main and salve databases
CN104317369A (en) * 2014-10-17 2015-01-28 国家电网公司 Anti-electromagnetic interference communication port for high voltage relay protection microcomputer system
CN105739970A (en) * 2016-01-20 2016-07-06 北京京东尚科信息技术有限公司 Method and device for mapping data into custom class object
CN107220274A (en) * 2017-04-13 2017-09-29 江苏曙光信息技术有限公司 One kind visualization data-interface fairground implementation method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101387957B (en) * 2008-09-12 2011-04-20 成都市华为赛门铁克科技有限公司 Multi-path software implementing apparatus and method
CN101710336A (en) * 2009-12-14 2010-05-19 浪潮通信信息系统有限公司 Method for accelerating data processing by using relational middleware
US9489166B2 (en) * 2011-08-19 2016-11-08 Novatek Microelectronics Corp. Data transmission method and display driving system
CN105488162B (en) * 2015-11-30 2019-04-16 用友优普信息技术有限公司 Data processing method and device
CN106202551A (en) * 2016-07-27 2016-12-07 广东欧珀移动通信有限公司 A kind of file management method, device and mobile terminal
CN106911707B (en) * 2017-03-15 2020-01-03 中国科学技术大学 Bidirectional decoupling transmission control method and system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101278354A (en) * 2005-09-30 2008-10-01 莫塞德技术公司 Multiple independent serial link memory
CN102197281A (en) * 2008-10-24 2011-09-21 约翰尼斯海登海恩博士股份有限公司 Device and method for the data transfer between a position measurement device and subsequent electronics
CN103136153A (en) * 2011-11-21 2013-06-05 宏碁股份有限公司 Interface apparatus, cascading system thereof and cascading method thereof
CN104065678A (en) * 2013-03-21 2014-09-24 中国科学院声学研究所 Dual-mode data reception and access method based on embedded browser
CN104252481A (en) * 2013-06-27 2014-12-31 阿里巴巴集团控股有限公司 Dynamic check method and device for consistency of main and salve databases
CN103647652A (en) * 2013-12-20 2014-03-19 北京奇虎科技有限公司 Method, device and server for achieving data transmission
CN104317369A (en) * 2014-10-17 2015-01-28 国家电网公司 Anti-electromagnetic interference communication port for high voltage relay protection microcomputer system
CN105739970A (en) * 2016-01-20 2016-07-06 北京京东尚科信息技术有限公司 Method and device for mapping data into custom class object
CN107220274A (en) * 2017-04-13 2017-09-29 江苏曙光信息技术有限公司 One kind visualization data-interface fairground implementation method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
面向TV视频业务的系统解耦方案;刘雨涵等;《邮电设计技术》;20170420(第04期);全文 *
高速网络环境下入侵检测系统结构研究;陈训逊等;《计算机研究与发展》;20040916(第09期);全文 *

Also Published As

Publication number Publication date
CN108694249A (en) 2018-10-23
WO2019227702A1 (en) 2019-12-05

Similar Documents

Publication Publication Date Title
CN109542399B (en) Software development method and device, terminal equipment and computer readable storage medium
CN107896162B (en) Deployment method and device of monitoring system, computer equipment and storage medium
CN108776587B (en) Data acquisition method and device, computer equipment and storage medium
CN108388515B (en) Test data generation method, device, equipment and computer readable storage medium
CN108459964B (en) Test case selection method, device, equipment and computer readable storage medium
CN108287708B (en) Data processing method and device, server and computer readable storage medium
CN108536745B (en) Shell-based data table extraction method, terminal, equipment and storage medium
CN106547580B (en) Method and device for hooking function, mobile terminal and storage medium
CN110647490B (en) Data transmission method, device, equipment and computer storage medium
CN111125057B (en) Method and device for processing service request and computer system
CN113393367B (en) Image processing method, apparatus, device and medium
CN111144402A (en) OCR recognition accuracy calculation method, device, equipment and storage medium
CN108415998B (en) Application dependency relationship updating method, terminal, device and storage medium
CN113282580A (en) Method, storage medium and server for executing timed task
CN110688305B (en) Test environment synchronization method, device, medium and electronic equipment
CN111369237A (en) Data processing method and device and computer storage medium
CN109032612B (en) Interface calling method and device of hybrid application and computer readable storage medium
CN108062401B (en) Application recommendation method and device and storage medium
CN110750295B (en) Information processing method, device, electronic equipment and storage medium
CN108694249B (en) Data processing method, data processing device, computer equipment and storage medium
CN106533718B (en) Data processing method and device
CN113747423B (en) Cloud mobile phone state synchronization method, device, equipment, storage medium and program product
CN110928672B (en) Task arranging method, device and equipment and storage medium
CN113779122A (en) Method and apparatus for exporting data
CN111367634A (en) Information processing method, information processing device and terminal equipment

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
GR01 Patent grant
GR01 Patent grant