CN108776587A - Data capture method, device, computer equipment and storage medium - Google Patents

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

Info

Publication number
CN108776587A
CN108776587A CN201810514814.5A CN201810514814A CN108776587A CN 108776587 A CN108776587 A CN 108776587A CN 201810514814 A CN201810514814 A CN 201810514814A CN 108776587 A CN108776587 A CN 108776587A
Authority
CN
China
Prior art keywords
data
key
name
field name
data field
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.)
Granted
Application number
CN201810514814.5A
Other languages
Chinese (zh)
Other versions
CN108776587B (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 CN201810514814.5A priority Critical patent/CN108776587B/en
Priority to PCT/CN2018/101080 priority patent/WO2019223136A1/en
Publication of CN108776587A publication Critical patent/CN108776587A/en
Application granted granted Critical
Publication of CN108776587B publication Critical patent/CN108776587B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses a kind of data capture method, device, computer equipment and storage mediums, wherein the method includes:When detecting the call instruction of back-end data, according to the key name carried in the call instruction corresponding key assignments is searched in configuring object, the configuration object includes one or more key name, any key name in the entitled configuration object of object key, each key name corresponds to a key assignments, each key-value pair answers one data word section name, and each data field name is corresponding with corresponding data in the back-end data;Corresponding data field name is determined according to the key assignments searched, and data corresponding with identified data field name are obtained from the back-end data.The acquisition logic that the embodiment of the present invention can largely simplify back-end data improves the reusability of code in the case where that need not change logical code.

Description

Data capture method, device, computer equipment and storage medium
Technical field
The present invention relates to field of computer technology more particularly to a kind of data capture method, device, computer equipment and Storage medium.
Background technology
In the prior art, front end exploitation depends critically upon backstage return data, from the background finish writing in advance interface or The data field name that person connects return does not determine also or later that field name has a modification, and front end finds mistake and modification mistake Difficulty is just very big.
If back office interface is not finished writing, the personnel for handling front end can appoint number in advance with handling the personnel on backstage According to structure type and data-interface name, then in local from fraud data, but many times interface name error and backstage may When can change interface name, it will go to change the field name using data in many branch codes, data volume is few, when logic is simple changes Cost can be said to be low, when page interface is more, data volume is big, and when field name is not only more but also complicated, number is corresponded in front end logic code According to when just be very easy to error, and change and safeguard difficulty it is very big, in addition, front-end processing logical code with backstage return The superfluous conjunction of interface name height, be unfavorable for code reuse.
Invention content
In view of this, a kind of data capture method of offer of the embodiment of the present invention, device, computer equipment and storage are situated between Matter can largely simplify the acquisition logic of back-end data, in the case where that need not change logical code, improve generation The multiplexing of code.
On the one hand, an embodiment of the present invention provides a kind of data capture method, this method includes:
When detecting the call instruction of back-end data, according to the key name carried in the call instruction in configuring object Corresponding key assignments is searched, the configuration object includes one or more key name, in the entitled configuration object of object key Any key name, each key name corresponds to a key assignments, and each key-value pair answers one data word section name, each data field name It is corresponding with corresponding data in the back-end data;
Determine corresponding data field name according to the key assignments searched, and obtain from the back-end data with it is identified The corresponding data of data field name.
On the other hand, an embodiment of the present invention provides a kind of data acquisition facility, described device includes:
Searching unit, for when detecting the call instruction of back-end data, according to the key carried in the call instruction Name searches corresponding key assignments in configuring object, and the configuration object includes one or more key name, and the object key is entitled Any key name in the configuration object, each key name correspond to a key assignments, and each key-value pair answers one data word section name, each The data field name is corresponding with corresponding data in the back-end data;
First determination unit, for determining corresponding data field name according to the key assignments searched, and the number of units after described Data corresponding with identified data field name are obtained according to middle.
Another aspect, the embodiment of the present invention additionally provide a kind of computer equipment, including memory, processor and are stored in On the memory and the computer program that can run on the processor, when the processor executes the computer program Realize data capture method as described above.
It is described computer-readable to deposit in another aspect, the embodiment of the present invention additionally provides a kind of computer readable storage medium Storage media storage there are one either more than one program the one or more programs can by one or more than one Processor execute, to realize data capture method as described above.
A kind of data capture method of offer of the embodiment of the present invention, device, computer equipment and storage medium, wherein method Including:When detecting the call instruction of back-end data, looked into configuring object according to the key name carried in the call instruction Corresponding key assignments is looked for, the configuration object includes one or more key name, in the entitled configuration object of object key Any key name, each key name correspond to a key assignments, and each key-value pair answers one data word section name, and each data field name is right There should be corresponding data in the back-end data;Corresponding data field name is determined according to the key assignments searched, and after described Number of units obtains data corresponding with identified data field name in.The embodiment of the present invention can largely simplify The acquisition logic of back-end data improves the reusability of code in the case where that need not change logical code.
Description of the drawings
Technical solution in order to illustrate the embodiments of the present invention more clearly, below will be to needed in embodiment description Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, general for this field For logical technical staff, without creative efforts, other drawings may also be obtained based on these drawings.
Fig. 1 is a kind of schematic flow diagram of data capture method provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic flow diagram of data capture method provided in an embodiment of the present invention;
Fig. 3 is a kind of schematic flow diagram of data capture method provided in an embodiment of the present invention;
Fig. 4 is a kind of schematic flow diagram for data capture method that another embodiment of the present invention provides;
Fig. 5 is a kind of schematic block diagram of data acquisition facility provided in an embodiment of the present invention;
Fig. 6 is a kind of another schematic block diagram of data acquisition facility provided in an embodiment of the present invention;
Fig. 7 is a kind of another schematic block diagram of data acquisition facility provided in an embodiment of the present invention;
Fig. 8 is a kind of schematic block diagram for data acquisition facility that another embodiment of the present invention provides;
Fig. 9 is a kind of structure composition schematic diagram of computer equipment provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
It should be appreciated that ought use in this specification and in the appended claims, term " comprising " and "comprising" instruction Described feature, entirety, step, operation, the presence of element and/or component, but one or more of the other feature, whole is not precluded Body, step, operation, element, component and/or its presence or addition gathered.
It is also understood that the term used in this description of the invention is merely for the sake of the mesh for describing specific embodiment And be not intended to limit the present invention.As description of the invention and it is used in the attached claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singulative, "one" and "the" are intended to include plural form.
Referring to Fig. 1, Fig. 1 is a kind of schematic flow diagram of data processing method provided in an embodiment of the present invention.This method It may operate in smart mobile phone (such as Android phone, IOS mobile phones), tablet computer, laptop and smart machine etc. In terminal.Data processing method described in the embodiment of the present invention can largely simplify the acquisition logic of back-end data, In the case where logical code need not be changed, the reusability of code is improved.Fig. 1 is data processing provided in an embodiment of the present invention The schematic flow diagram of method.As shown in Figure 1, the method comprising the steps of S101~S102.
S101 is being configured when detecting the call instruction of back-end data according to the key name carried in the call instruction Corresponding key assignments is searched in object.The configuration object includes one or more key name, the entitled configuration of object key Any key name in object, each key name correspond to a key assignments, and each key-value pair answers one data word section name, each data Field name is corresponding with corresponding data in the back-end data.
In embodiments of the present invention, back-end data is stored in the tables of data of background data base in the form of fields, described Data field name is the row name for the tables of data for being stored with back-end data, and the data field name embodies field in back-end data In address.User can send call instruction in front end logic code to configuration object, which is to obtain backstage The instruction of data carries key name in the call instruction;Wherein, the configuration object includes one or more key name, described Any key name in the entitled configuration object of object key, each key name correspond to a key assignments, and each key-value pair answers a data Field name, each data field name are corresponding with corresponding data in the back-end data;Therefore, call instruction can be passed through Entrained key name finds corresponding key assignments in configuring object, and configures each key-value pair set in object and answer one Data field name, and each data field name corresponds to corresponding data in back-end data, in this way, call instruction can be passed through Obtain required data in back-end data.In the present embodiment, for example, back-end data be stored in the data in tables of data institute it is right The data field name answered includes ' intUsersNum', ' crnNewUserNum', ' grpNewUserNum', ' CrnNewUserNumPct', in practical applications, if the data field of the front end logic code data to be obtained it is entitled ' IntUsersNum', ' crnNewUserNum', then only obtain data field name ' intUsersNum', ' Data corresponding to crnNewUserNum'.
S102 determines corresponding data field name, and acquisition and institute from the back-end data according to the key assignments searched The determining corresponding data of data field name.
In the same embodiment, as shown in Fig. 2, the method for the configuration configuration object includes step S201~S202.
S201 obtains data field name corresponding with the back-end data.
Specifically, as shown in figure 3, the step S201 specifically includes step S301~S302.
S301 determines tables of data to be treated.
In embodiments of the present invention, back-end data to be treated is selected according to the actual needs of developer, according to after this Number of units can be preserved specifically according to the corresponding tables of data of determination, the tables of data in the database, such as ORACLE databases, this implementation Example obtains the tables of data by connecting ORACLE databases, optionally, can pass through JDBC (Java DataBase Connectivity, java database connect) mode connects ORACLE databases, and obtains the data in ORACLE databases Table;The method of connection ORACLE databases can be specially the specified data of load in development environment (such as MyEclipse environment) The JDBC drivers in library pass through the Class.forName functions (letter of the driver of specified database in developing program Number) load and add the JDBC drivers;ORACLE database connection objects are created by DriverManager classes Connection, DriverManager class act between exploitation program and JDBC drivers, for checking loaded drive Whether dynamic program can establish connection, then by the getConnection methods of DriverManager classes, according to ORACLE The URL link of database, username and password create a JDBC Connection object, wherein the format of URL link is Protocol name+IP address (domain name)+port+database-name, username and password refer to being made when logging in ORACLE databases Username and password;A Statement is created by createStatement () method of Connection objects Object, the Statement objects are used to execute static SQL statements and return to the object of its generated result;Call Statement The correlation technique of object executes corresponding SQL statement, and number is closed in time finally by close () method of Connection According to connection.
S302 obtains the data field in identified tables of data corresponding to all data fields according to JAVA reflex mechanisms Name.
In embodiments of the present invention, which refers in running state of programs, all for any one class It is able to know that all properties and method of this class, can know the value of all fields in data, while can also call this Any one method and attribute of a class are the functions of a kind of dynamic access information and the method for dynamic call object, pass through JAVA reflex mechanisms obtain all data field names in back-end data.
S202 according to the data field name creation and configures the configuration object.
In embodiments of the present invention, in the configuration object user can with self-defined one or more required key name, The key assignments of each key name is directed toward the data field name, which can be a JSON object, and the JSON objects are preceding It being created in the logical code of end, includes one or more key name in the JSON objects, each key name corresponds to a key assignments, In, key name can be the value assigned to key name by user's self-defining, key assignments, normally be returned in background logic code Data key assignments name, if backstage developer carries out function not yet, such as there are no the name for playing good data, then front end Developer first oneself names the data name of a hypothesis in this configuration object, when with backstage joint debugging, it is only necessary to will The key assignments under corresponding key name in configuration object is changed to the truthful data field name of background logic code return.
It should be noted that in application and development, the data word using background logic code is needed in front end logic code Section name carries out data call, but the data field name in the code of backstage changes, then many in front end logic code The place for using the data field name is required for changing, in front end logic code create configuration object by way of, will before End logical code is changed to front end logic code using the mode of the data field name in background logic code and uses front end logic generation Key assignments in the configuration object that code is created is replaced, when the change of the data field name of background logic code, it is only necessary to The key assignments corresponding to key name is changed in the configuration object of front end logic code can complete to change, before not needing to modification in this way The logical code at end or backstage.
In the same embodiment, the method for configuring the configuration object is further comprising the steps of:
S203 defines the title of the configuration object according to the data field name, wherein the title of the configuration object It is corresponding with the data field name.
In embodiments of the present invention, the title of the configuration object can be by user's self-defining, and in practical applications, this is matched Title associated with front-end code and backstage code can be defined by setting object oriented, if such as data field it is entitled ' IntUsersNum', define it is described configuration object entitled IntUsersNum, if data field it is entitled ' CrnNewUserNum' defines the entitled CrnNewUserNum etc. of the configuration object.
As seen from the above, the present invention is carried when detecting the call instruction of back-end data according in the call instruction Key name corresponding key assignments is searched in configuring object, the configuration object includes one or more key name, the object key Any key name in the entitled configuration object, each key name correspond to a key assignments, and each key-value pair answers one data word section name, Each data field name is corresponding with corresponding data in the back-end data;Corresponding number is determined according to the key assignments searched According to field name, and data corresponding with identified data field name are obtained from the back-end data.The embodiment of the present invention The acquisition logic that back-end data can largely be simplified improves code in the case where that need not change logical code Reusability.
Referring to Fig. 4, Fig. 4 is a kind of schematic flow diagram of data capture method provided in an embodiment of the present invention.This method It may operate in smart mobile phone (such as Android phone, IOS mobile phones), tablet computer, laptop and smart machine etc. In terminal.As shown in figure 4, the method comprising the steps of S401~S403.
S401 replaces the configuration pair when the modification instruction for the key assignments for receiving configuration object using data field name Key assignments as in, and the key assignments replaced is assigned to the key name in the configuration object.
In embodiments of the present invention, in the configuration object for starting to create, can there are the key assignments of acquiescence, such as the key of acquiescence Value is ' 0', and acquired data field name is replaced to key assignments that the key name of configuration object is given tacit consent to optionally will be acquired Data field name directly replaces the key assignments given tacit consent to of key name of configuration object, for example, acquired data field it is entitled ' IntUsersNum', ' crnNewUserNum', the configuration object includes two key names, each key name corresponds to a key Value, such as key assignments 1, key assignments 2, then directly by the acquiescence key assignments of the two key names using data field it is entitled ' IntUsersNum', ' crnNewUserNum' is replaced, and it is ' intUsersNum', key assignments 2 be ' to obtain key assignments 1 crnNewUserNum';Each key name uniquely corresponds to a key assignments, if the key assignments 1 directly replaced be ' IntUsersNum', key assignments 2 be ' crnNewUserNum', corresponding key assignments 1, key assignments 2 key name be key name 1, key name 2, using pre- If key assignments 1 and key assignments 2 are assigned to the corresponding key name of the configuration object by assignment rule, the preset data assignment rule Format can be ' key name ':' key assignments ', and obtain ' key name 1':' intUsersNum', ' key name 2':'crnNewUserNum'.
S402 is being configured when detecting the call instruction of back-end data according to the key name carried in the call instruction Corresponding key assignments is searched in object.The configuration object includes one or more key name, the entitled configuration of object key Any key name in object, each key name correspond to a key assignments, and each key-value pair answers one data word section name, each data Field name is corresponding with corresponding data in the back-end data.
In embodiments of the present invention, back-end data is stored in the tables of data of background data base in the form of fields, described Data field name is the row name for the tables of data for being stored with back-end data, and the data field name embodies field in back-end data In address.User can send call instruction in front end logic code to configuration object, which is to obtain backstage The instruction of data carries key name in the call instruction;Wherein, the configuration object includes one or more key name, described Any key name in the entitled configuration object of object key, each key name correspond to a key assignments, and each key-value pair answers a data Field name, each data field name are corresponding with corresponding data in the back-end data;Therefore, call instruction can be passed through Entrained key name finds corresponding key assignments in configuring object, and configures each key-value pair set in object and answer one Data field name, and each data field name corresponds to corresponding data in back-end data, in this way, call instruction can be passed through Obtain required data in back-end data.In the present embodiment, for example, back-end data be stored in the data in tables of data institute it is right The data field name answered includes ' intUsersNum', ' crnNewUserNum', ' grpNewUserNum', ' CrnNewUserNumPct', in practical applications, if the data field of the front end logic code data to be obtained it is entitled ' IntUsersNum', ' crnNewUserNum', then only obtain data field name ' intUsersNum', ' Data corresponding to crnNewUserNum'.
S403 determines corresponding data field name, and acquisition and institute from the back-end data according to the key assignments searched The determining corresponding data of data field name.
Referring to Fig. 5, a kind of corresponding above-mentioned data capture method, the embodiment of the present invention also proposes a kind of data acquisition dress It sets, which includes:Searching unit 101, the first determination unit 102.
Wherein, the searching unit 101, for when detecting the call instruction of back-end data, being referred to according to the calling The key name carried in order searches corresponding key assignments in configuring object, and the configuration object includes one or more key name, institute Any key name in the entitled configuration object of object key is stated, each key name corresponds to a key assignments, and each key-value pair answers a number According to field name, each data field name is corresponding with corresponding data in the back-end data.
First determination unit 102, for determining corresponding data field name according to the key assignments searched, and from the backstage Data corresponding with identified data field name are obtained in data.
In the same embodiment, as shown in fig. 6, described device further includes:Acquiring unit 103, is determined dispensing unit 104 Adopted unit 105.
The acquiring unit 103, for obtaining data field name corresponding with the back-end data.
Dispensing unit 104, for according to the data field name creation and configuring the configuration object.
Definition unit 105, the title for defining the configuration object according to the data field name, wherein the configuration The title of object is corresponding with the data field name.
In the same embodiment, as shown in fig. 7, the acquiring unit 103, including:
Second determination unit 103a, for determining tables of data to be treated.
Subelement 103b is obtained, for obtaining all data field institutes in identified tables of data according to JAVA reflex mechanisms Corresponding data field name.
Referring to Fig. 8, a kind of corresponding above-mentioned data capture method, the embodiment of the present invention also proposes a kind of data acquisition dress It sets, which includes:Replacement unit 201, searching unit 202, the first determination unit 203.
Wherein, the replacement unit 201, for when receiving the modification instruction for the key assignments for configuring object, using data Field name replaces the key assignments in the configuration object, and the key assignments replaced is assigned to the key name in the configuration object.
Searching unit 202, for when detecting the call instruction of back-end data, according to what is carried in the call instruction Key name searches corresponding key assignments in configuring object.The configuration object includes one or more key name, the target key name For any key name in the configuration object, each key name corresponds to a key assignments, and each key-value pair answers one data word section name, often A data field name is corresponding with corresponding data in the back-end data.
First determination unit 203, for determining corresponding data field name according to the key assignments searched, and from the backstage Data corresponding with identified data field name are obtained in data.
Above-mentioned data acquisition facility and above-mentioned data capture method one-to-one correspondence, specific principle and process and above-mentioned reality It is identical to apply the method, repeats no more.
Above-mentioned data acquisition facility can be implemented as a kind of form of computer program, and computer program can be in such as Fig. 9 Shown in run on computer equipment.
Fig. 9 is a kind of structure composition schematic diagram of computer equipment of the present invention.The equipment can be terminal, can also be clothes Business device, wherein terminal can be smart mobile phone, tablet computer, laptop, desktop computer, personal digital assistant and wearing Formula device etc. has the electronic device of communication function.Server can be independent server, can also be multiple server groups At server cluster.With reference to Fig. 9, the computer equipment 500 include the processor 502 connected by system bus 501, it is non-easily The property lost storage medium 503, built-in storage 504 and network interface 505.Wherein, the non-volatile memories of the computer equipment 500 are situated between Matter 503 can storage program area 5031 and computer program 5032, which is performed, and may make processor 502 execute a kind of data capture method.The processor 502 of the computer equipment 500 is for providing calculating and control ability, support The operation of entire computer equipment 500.The built-in storage 504 is the computer program 5032 in non-volatile memory medium 503 Operation provide environment, when which is executed by processor, processor 502 may make to execute a kind of data recipient Method.The network interface 505 of computer equipment 500 such as sends the task dispatching of distribution for carrying out network communication.People in the art Member it is appreciated that Fig. 9 shown in structure, only with the block diagram of the relevant part-structure of application scheme, constitute pair The restriction for the computer equipment that application scheme is applied thereon, specific computer equipment may include than as shown in the figure more More or less component either combines certain components or is arranged with different components.
Wherein, following operation is realized when the processor 502 executes the computer program:
When detecting the call instruction of back-end data, according to the key name carried in the call instruction in configuring object Corresponding key assignments is searched, the configuration object includes one or more key name, in the entitled configuration object of object key Any key name, each key name corresponds to a key assignments, and each key-value pair answers one data word section name, each data field name It is corresponding with corresponding data in the back-end data;
Determine corresponding data field name according to the key assignments searched, and obtain from the back-end data with it is identified The corresponding data of data field name.
In one embodiment, following operation is also realized when the processor 502 executes the computer program:
Obtain data field name corresponding with the back-end data;
According to the data field name creation and configure the configuration object.
In one embodiment, the acquisition data field name corresponding with the back-end data, including:
Determine tables of data to be treated;
The data field name in identified tables of data corresponding to all data fields is obtained according to JAVA reflex mechanisms.
In one embodiment, following operation is also realized when the processor 502 executes the computer program:
According to the data field name define it is described configuration object title, wherein it is described configuration object title with it is described Data field name is corresponding.
In one embodiment, following operation is also realized when the processor 502 executes the computer program:
When the modification instruction for the key assignments for receiving configuration object, replaced in the configuration object using data field name Key assignments, and the key assignments replaced is assigned to the key name in the configuration object.
It will be understood by those skilled in the art that the embodiment of computer equipment shown in Fig. 9 is not constituted to computer The restriction of equipment specific composition, in other embodiments, computer equipment may include components more more or fewer than diagram, or Person combines certain components or different components arrangement.For example, in some embodiments, computer equipment only includes memory And processor, in such embodiments, the structure and function of memory and processor are consistent with embodiment illustrated in fig. 9, herein It repeats no more.
The present invention provides a kind of computer readable storage medium, computer-readable recording medium storage there are one or one A procedure above, the one or more programs can be executed by one or more than one processor, with realize with Lower step:
When detecting the call instruction of back-end data, according to the key name carried in the call instruction in configuring object Corresponding key assignments is searched, the configuration object includes one or more key name, in the entitled configuration object of object key Any key name, each key name corresponds to a key assignments, and each key-value pair answers one data word section name, each data field name It is corresponding with corresponding data in the back-end data;
Determine corresponding data field name according to the key assignments searched, and obtain from the back-end data with it is identified The corresponding data of data field name.
In one embodiment, following steps are also realized:
Obtain data field name corresponding with the back-end data;
According to the data field name creation and configure the configuration object.
In one embodiment, the acquisition data field name corresponding with the back-end data, including:
Determine tables of data to be treated;
The data field name in identified tables of data corresponding to all data fields is obtained according to JAVA reflex mechanisms.
In one embodiment, following steps are also realized:
According to the data field name define it is described configuration object title, wherein it is described configuration object title with it is described Data field name is corresponding.
In one embodiment, following steps are also realized:
When the modification instruction for the key assignments for receiving configuration object, replaced in the configuration object using data field name Key assignments, and the key assignments replaced is assigned to the key name in the configuration object.
Present invention storage medium above-mentioned includes:Magnetic disc, CD, read-only memory (Read-Only Memory, The various media that can store program code such as ROM).
Unit in all embodiments of the invention can pass through universal integrated circuit, such as CPU (Central
Processing Unit, central processing unit), or pass through ASIC (Application Specific Integrated Circuit, application-specific integrated circuit) it realizes.
Step in data capture method of the embodiment of the present invention can according to actual needs the adjustment of carry out sequence, merge and delete Subtract.
Unit in data acquisition facility of the embodiment of the present invention can be combined, divided and deleted according to actual needs.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or replace It changes, these modifications or substitutions should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with right It is required that protection domain subject to.

Claims (10)

1. a kind of data capture method, which is characterized in that the method includes:
When detecting the call instruction of back-end data, searched in configuring object according to the key name carried in the call instruction Corresponding key assignments, the configuration object includes one or more key name, appointing in the entitled configuration object of object key One key name, each key name correspond to a key assignments, and each key-value pair answers one data word section name, and each data field name corresponds to There are corresponding data in the back-end data;
Corresponding data field name is determined according to the key assignments searched, and is obtained and identified data from the back-end data The corresponding data of field name.
2. the method as described in claim 1, which is characterized in that the method further includes:
Obtain data field name corresponding with the back-end data;
According to the data field name creation and configure the configuration object.
3. method as claimed in claim 2, which is characterized in that described to obtain data field corresponding with the back-end data Name, including:
Determine tables of data to be treated;
The data field name in identified tables of data corresponding to all data fields is obtained according to JAVA reflex mechanisms.
4. method as claimed in claim 2, which is characterized in that the method further includes:
The title of the configuration object is defined according to the data field name, wherein the title and the data of the configuration object Field name is corresponding.
5. the method as described in claim 1, which is characterized in that the method further includes:
When the modification instruction for the key assignments for receiving configuration object, the key in the configuration object is replaced using data field name Value, and the key assignments replaced is assigned to the key name in the configuration object.
6. a kind of data acquisition facility, which is characterized in that described device includes:
Searching unit, for when detecting the call instruction of back-end data, being existed according to the key name carried in the call instruction Corresponding key assignments is searched in configuration object, the configuration object includes one or more key name, and the object key is entitled described Any key name in object is configured, each key name corresponds to a key assignments, and each key-value pair answers one data word section name, each described Data field name is corresponding with corresponding data in the back-end data;
First determination unit, for determining corresponding data field name according to the key assignments searched, and from the back-end data Obtain data corresponding with identified data field name.
7. device as claimed in claim 6, which is characterized in that described device further includes:
Acquiring unit, for obtaining data field name corresponding with the back-end data;
Dispensing unit, for according to the data field name creation and configuring the configuration object.
8. device as claimed in claim 7, which is characterized in that the acquiring unit, including:
Second determination unit, for determining tables of data to be treated;
Subelement is obtained, for obtaining the number in identified tables of data corresponding to all data fields according to JAVA reflex mechanisms According to field name.
9. a kind of computer equipment, including memory, processor and it is stored on the memory and can be on the processor The computer program of operation, which is characterized in that the processor realizes that claim 1-5 such as appoints when executing the computer program Data capture method described in one.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage there are one or More than one program, the one or more programs can be executed by one or more than one processor, to realize Data capture method as described in any one in claim 1-5.
CN201810514814.5A 2018-05-25 2018-05-25 Data acquisition method and device, computer equipment and storage medium Active CN108776587B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810514814.5A CN108776587B (en) 2018-05-25 2018-05-25 Data acquisition method and device, computer equipment and storage medium
PCT/CN2018/101080 WO2019223136A1 (en) 2018-05-25 2018-08-17 Data acquisition method and apparatus, and computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810514814.5A CN108776587B (en) 2018-05-25 2018-05-25 Data acquisition method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108776587A true CN108776587A (en) 2018-11-09
CN108776587B CN108776587B (en) 2020-07-17

Family

ID=64027555

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810514814.5A Active CN108776587B (en) 2018-05-25 2018-05-25 Data acquisition method and device, computer equipment and storage medium

Country Status (2)

Country Link
CN (1) CN108776587B (en)
WO (1) WO2019223136A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111274051A (en) * 2020-01-19 2020-06-12 中信银行股份有限公司 Data processing method and device, electronic equipment and computer readable storage medium
CN111400675A (en) * 2020-03-16 2020-07-10 同盾(广州)科技有限公司 Object obfuscation method, device, electronic equipment and computer readable medium
CN111414330A (en) * 2019-01-04 2020-07-14 阿里巴巴集团控股有限公司 Data editing method and system, data processing device and storage medium
CN113296832A (en) * 2021-05-31 2021-08-24 广州探途网络技术有限公司 Data processing method and device and electronic equipment
CN113505159A (en) * 2021-07-16 2021-10-15 马上消费金融股份有限公司 Data detection method, device and equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1633080A (en) * 2003-12-24 2005-06-29 华为技术有限公司 Method for implementing log in network management system
US20130238557A1 (en) * 2012-03-08 2013-09-12 International Business Machines Corporation Managing tenant-specific data sets in a multi-tenant environment
CN106407404A (en) * 2016-09-22 2017-02-15 成都快乐家网络技术有限公司 A data storage method, a data management method and system, a database and a client
CN107368563A (en) * 2017-06-30 2017-11-21 北京奇虎科技有限公司 The delet method and device of database data, electronic equipment, storage medium
US9830319B1 (en) * 2016-11-18 2017-11-28 8Kdata Technology S.L. Hierarchical data extraction mapping and storage machine

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2537873A (en) * 2015-04-29 2016-11-02 Fujitsu Ltd Data constraints for polyglot data tiers
CN104881490B (en) * 2015-06-10 2019-11-22 中科宇图天下科技有限公司 A kind of WEB form data access method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1633080A (en) * 2003-12-24 2005-06-29 华为技术有限公司 Method for implementing log in network management system
US20130238557A1 (en) * 2012-03-08 2013-09-12 International Business Machines Corporation Managing tenant-specific data sets in a multi-tenant environment
CN106407404A (en) * 2016-09-22 2017-02-15 成都快乐家网络技术有限公司 A data storage method, a data management method and system, a database and a client
US9830319B1 (en) * 2016-11-18 2017-11-28 8Kdata Technology S.L. Hierarchical data extraction mapping and storage machine
CN107368563A (en) * 2017-06-30 2017-11-21 北京奇虎科技有限公司 The delet method and device of database data, electronic equipment, storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
BELENS: "Java反射 获取某个类的属性值、字段名、注解等常用代码", 《HTTPS://BLOG.CSDN.NET/PROGRAMMER_SIR/ARTICLE/DETAILS/41950519》 *
FOT: "《IPEmotion_Software_Manual_Release_2018_R1》", 15 March 2018 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111414330A (en) * 2019-01-04 2020-07-14 阿里巴巴集团控股有限公司 Data editing method and system, data processing device and storage medium
CN111414330B (en) * 2019-01-04 2024-03-22 阿里巴巴集团控股有限公司 Data editing method and system, data processing device and storage medium
CN111274051A (en) * 2020-01-19 2020-06-12 中信银行股份有限公司 Data processing method and device, electronic equipment and computer readable storage medium
CN111274051B (en) * 2020-01-19 2023-08-22 中信银行股份有限公司 Data processing method and device, electronic equipment and computer readable storage medium
CN111400675A (en) * 2020-03-16 2020-07-10 同盾(广州)科技有限公司 Object obfuscation method, device, electronic equipment and computer readable medium
CN113296832A (en) * 2021-05-31 2021-08-24 广州探途网络技术有限公司 Data processing method and device and electronic equipment
CN113505159A (en) * 2021-07-16 2021-10-15 马上消费金融股份有限公司 Data detection method, device and equipment
CN113505159B (en) * 2021-07-16 2023-04-25 马上消费金融股份有限公司 Data detection method, device and equipment

Also Published As

Publication number Publication date
CN108776587B (en) 2020-07-17
WO2019223136A1 (en) 2019-11-28

Similar Documents

Publication Publication Date Title
CN108776587A (en) Data capture method, device, computer equipment and storage medium
CN105913316B (en) Rule configuration method and device
CN103810196A (en) Method for testing performance of database on basis of business model
CN108196879A (en) Method for processing business, device, equipment and computer readable storage medium
CN106484544B (en) Method and device for virtualizing Internet of things equipment
CN110022315A (en) Weight management method, device and equipment in a kind of piece of chain type account book
CN109740129B (en) Report generation method, device and equipment based on blockchain and readable storage medium
CN105678625A (en) Method and equipment for determining identity information of user
CN109558191A (en) A kind of method, apparatus, storage medium and computer equipment configuring the page
CN107145493B (en) Information processing method and device
CN108415998A (en) Using dependence update method, terminal, equipment and storage medium
CN108154024A (en) A kind of data retrieval method, device and electronic equipment
CN111159040A (en) Test data generation method, device, equipment and storage medium
CN107391003A (en) Navigation data processing method
CN110334103A (en) The update method of recommendation service provides device, access mechanism and recommender system
CN111930363B (en) Block interface code generation method and device
CN110442636B (en) Data reading and writing method and device and data reading and writing equipment
CN112068812A (en) Micro-service generation method and device, computer equipment and storage medium
CN110830492A (en) Method and system for mutually scheduling edge applications based on CoreDNS registration service
CN111259619A (en) Control method and device for configuration object, storage medium and verification platform
CN104536887A (en) Communication data detection method and device
CN112162731B (en) Data expansion method, device, storage medium and electronic device
CN114358936A (en) Intelligent contract operation method based on micro-service block chain
CN114020769A (en) Data blood margin analysis method and device and storage medium
CN112749159A (en) Form generation method and device, electronic equipment and storage medium

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