CN108205529A - The display methods and device of detailed data - Google Patents

The display methods and device of detailed data Download PDF

Info

Publication number
CN108205529A
CN108205529A CN201611168402.8A CN201611168402A CN108205529A CN 108205529 A CN108205529 A CN 108205529A CN 201611168402 A CN201611168402 A CN 201611168402A CN 108205529 A CN108205529 A CN 108205529A
Authority
CN
China
Prior art keywords
name
detailed data
data
row
configuration file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201611168402.8A
Other languages
Chinese (zh)
Inventor
关威
史明玉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology 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 Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201611168402.8A priority Critical patent/CN108205529A/en
Publication of CN108205529A publication Critical patent/CN108205529A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/951Indexing; Web crawling techniques

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

Present disclose provides a kind of display methods of detailed data, wherein, this method includes:Multiple configuration files are established, each configuration file includes gauge outfit name, the row name of a kind of detailed data;When receiving the inquiry request of default detailed data of front end submission, respond the inquiry request and obtain a primary data and the primary data is encapsulated as default detailed data form;Configuration file corresponding with the default detailed data is read, to obtain the gauge outfit name of the default detailed data, row name, gauge outfit name sequence and row name sequentially;According to the gauge outfit name, row name, gauge outfit name of the default detailed data sequence and row name sequentially, the default detailed data is obtained from the primary data of the preset data form and is sent to the front end and shown.The disclosure only shows all detailed datas by a page, effective to simplify operation, simpler convenience.

Description

The display methods and device of detailed data
Technical field
This disclosure relates to database application technical field, a kind of display methods in particular to detailed data and A kind of display device of detailed data.
Background technology
At present in Web system, constantly change with the complexity and diversity of business, constantly increasing using data volume Long, various reports summarize and query statistic system is come into being.In most of such query statistic systems, all exist aobvious Registration is according to the page of detailed details, and the data at this detail interface are largely that the one of data summarized is shown in detail, page The overall style in face is basically identical or similar, only the row name of display data difference and corresponding with row name specific Data value it is different.
Existing detailed data display technology scheme is:The displaying page of detailed data is directed in existing query statistic system Face is stand-alone development mostly, and a detailed displayed page need to correspond to a front end page displayed separately while corresponding a set of inquiry Service code, these pages are only that the value of the row name and specific data shown is different, and whole development process is similar 's.But as there is problems in the growth of detailed data quantity that show and inquire in business:First, a detail page Face can only show a corresponding database table, during if there is a large amount of database table, then need the displaying establishment for each table One page, and these pages, other than row name and specific data differ, other parts are identical;When front end page needs When showing multiple detailed datas, then need to create multiple corresponding detailed pages, write the corresponding inquiry code of more sets;Work as industry When the inquiry of detailed data is more in business, the file that the operations for covering inquiry codes be easy to cause system more is too fat to move, big so as to generate The redundant code of amount increases workload.If the 2nd, corresponding columns is more in a database, to every columns on the page According to reading then need a correspondence and read to find out respective column name, heavy workload easily malfunctions.If it the 3rd, to repair Change database data, will be remodified from gauge outfit to data read portion in the page, it is maintainable poor.
Therefore, it is necessary to study a kind of display methods of detailed data.
It should be noted that information is only used for strengthening the reason to the background of the disclosure disclosed in above-mentioned background technology part Solution, therefore can include not forming the information to the prior art known to persons of ordinary skill in the art.
Invention content
The disclosure is designed to provide a kind of display methods of detailed data, so overcome at least to a certain extent by One or more problem caused by the limitation of the relevant technologies and defect.
Other characteristics and advantages of the disclosure will be by the following detailed description apparent from or partially by the disclosure Practice and acquistion.
According to one aspect of the disclosure, a kind of display methods of detailed data is provided, including:
Multiple configuration files are established, each configuration file includes gauge outfit name, the row name of a kind of detailed data;
When receiving the inquiry request of default detailed data of front end submission, respond the inquiry request and obtain at the beginning of one The primary data is simultaneously encapsulated as default detailed data form by beginning data;
Read configuration file corresponding with the default detailed data, with obtain the gauge outfit name of the default detailed data, Row name, gauge outfit name sequence and row name sequence;
According to the gauge outfit name, row name, gauge outfit name of the default detailed data sequence and row name sequence, from the present count It is shown according to obtaining the default detailed data in the primary data of form and being sent to the front end.
In a kind of exemplary embodiment of the disclosure, the display methods of the detailed data further includes:The configuration text Part is using the configuration file of xml forms or the configuration file of Properties attributes.
In a kind of exemplary embodiment of the disclosure, the display methods of the detailed data further includes:The configuration text The gauge outfit name sequence of part is identical with the gauge outfit name sequence of the default detailed data.
In a kind of exemplary embodiment of the disclosure, the display methods of the detailed data further includes:The configuration text The row name sequence of part is identical with the row name sequence of the default detailed data.
In a kind of exemplary embodiment of the disclosure, the display methods of the detailed data further includes:
When showing the default detailed data in the front end, the first row of the default detailed data passes through for showing The gauge outfit name of the default detailed data of cycle acquisition is carried out to the gauge outfit name of the configuration file;
When showing the default detailed data in the front end, the second row of the default detailed data passes through for showing The default detailed data that cycle nested to the row name progress of the primary data with the configuration file obtains.
In a kind of exemplary embodiment of the disclosure, the display methods of the detailed data further includes:
In the nested cycle of the row name progress to the primary data with the configuration file, by the primary data First layer cycle is carried out, to obtain the default detailed data from the primary data of the default detailed data form;
In the nested cycle of the row name progress to the primary data with the configuration file, by the configuration file Row name carry out second layer cycle, with from the primary data of the default detailed data form obtain with it is described configuration text The corresponding default detailed data of row name of part.
In a kind of exemplary embodiment of the disclosure, the display methods of the detailed data further includes:By to described The default detailed data that the nested cycle of the row name progress of primary data and the configuration file obtains is Map type data.
According to another aspect of the present disclosure, a kind of display device of detailed data is provided, including:
Configuration file unit, for establishing multiple configuration files, each configuration file includes a kind of detailed data Gauge outfit name, row name;
Form encapsulation unit, for when receiving the inquiry request of default detailed data of front end submission, responding institute Inquiry request is stated to obtain a primary data and the primary data is encapsulated as default detailed data form;
Information reading unit, for reading configuration file corresponding with the default detailed data, to obtain described preset Gauge outfit name, row name, gauge outfit name sequence and the row name sequence of detailed data;
Page display unit, for gauge outfit name, row name, gauge outfit name sequence and the row name according to the default detailed data Sequentially, the default detailed data is obtained from the primary data of the preset data form and be sent to the front end into Row display.
In a kind of exemplary embodiment of the disclosure, the configuration file unit includes:
File format setting unit, which is characterized in that the configuration file be xml forms configuration file or The configuration file of Properties attributes.
Gauge outfit name sequence setting unit, which is characterized in that gauge outfit name sequence and the default detail of the configuration file The gauge outfit name sequence of data is identical.
Row name sequence setting unit, which is characterized in that row name sequence and the default detailed data of the configuration file Row name sequence it is identical.
In a kind of exemplary embodiment of the disclosure, the page display unit includes:
The first row display unit during for showing the default detailed data in the front end, showing in the first row and passing through The gauge outfit name of the default detailed data of cycle acquisition is carried out to the gauge outfit name of the configuration file;
Second row display unit during for showing the default detailed data in the front end, showing in the second row and passing through The default detailed data that cycle nested to the row name progress of the primary data with the configuration file obtains.
In a kind of exemplary embodiment of the disclosure, the page display unit includes:
First circulation unit, for the row name progress to the primary data with the configuration file it is nested cycle when, By carrying out first layer cycle to the primary data, to be obtained from the primary data of the default detailed data form The default detailed data;
Second circulation unit, for the row name progress to the primary data with the configuration file it is nested cycle when, By carrying out second layer cycle to the row name of the configuration file, with from the primary data of the default detailed data form It is middle to obtain the default detailed data corresponding with the row name of the configuration file.
In a kind of exemplary embodiment of the disclosure, the page display unit further includes:By to the initial number According to the row name progress with the configuration file it is nested cycle obtain the default detailed data be Map type data.
The display methods of detailed data that a kind of embodiment of the disclosure is provided, by using that will inquire, code is unified to be sealed Dress up the mode of the data format of front end needs, by all detailed pages only use a general page complete display without Each detailed data is needed using a page and an inquiry system, therefore effective simplify operates, simpler convenience.Together When, on the one hand the disclosure by the way that all detailed pages are completed display using a Universal page, reduces the page of system generation Face file;On the other hand, inquiry code is uniformly packaged into the data format of front end needs, primary configuration is realized, is used for multiple times Purpose.
It should be understood that above general description and following detailed description are only exemplary and explanatory, not The disclosure can be limited.
Description of the drawings
Attached drawing herein is incorporated into specification and forms the part of this specification, shows the implementation for meeting the disclosure Example, and for explaining the principle of the disclosure together with specification.It should be evident that the accompanying drawings in the following description is only the disclosure Some embodiments, for those of ordinary skill in the art, without creative efforts, can also basis These attached drawings obtain other attached drawings.
Fig. 1 is a kind of flow chart of detailed data display methods of the disclosure.
Fig. 2 is a kind of system construction drawing of detailed data display methods of the disclosure.
Fig. 3 is a kind of schematic diagram of detailed data form of the disclosure.
Fig. 4 is a kind of structure chart of detailed data display device of the disclosure.
Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be with a variety of shapes Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, these embodiments are provided so that the disclosure will more Fully and completely, and by the design of example embodiment comprehensively it is communicated to those skilled in the art.Described feature, knot Structure or characteristic can be in any suitable manner incorporated in one or more embodiments.In the following description, it provides perhaps More details fully understand embodiment of the present disclosure so as to provide.It it will be appreciated, however, by one skilled in the art that can One or more in the specific detail are omitted with technical solution of the disclosure or others side may be used Method, constituent element, device, step etc..In other cases, be not shown in detail or describe known solution to avoid a presumptuous guest usurps the role of the host and So that all aspects of this disclosure thicken.
In addition, attached drawing is only the schematic illustrations of the disclosure, it is not necessarily drawn to scale.Identical attached drawing mark in figure Note represents same or similar part, thus will omit repetition thereof.Attached some block diagrams shown in figure are work( Can entity, not necessarily must be corresponding with physically or logically independent entity.Software form may be used to realize these work( Entity or these functional entitys can be realized in one or more hardware modules or integrated circuit or at heterogeneous networks and/or place These functional entitys are realized in reason device device and/or microcontroller device.
A kind of display methods of detailed data is provided firstly in this example embodiment.Such as Fig. 1, data are can be applied to Display system, the data presentation system can be made of background processing system and front end page display system, wherein background process System can be by carrying out the mass data in database query processing, and the primary data inquired is packaged into front end and is asked Seek the form of the default detailed data of inquiry;Front end page display system is displayed for the process background process system received Completely one be packaged into front end requesting query default detailed data form primary data particular content.With reference to shown in figure 1, The detailed data display methods may comprise steps of:
Step S1. establishes multiple configuration files, and each configuration file includes the gauge outfit name of a kind of detailed data, row Name;
Step S2. responds the inquiry request when receiving the inquiry request of default detailed data of front end submission It obtains a primary data and the primary data is encapsulated as default detailed data form;
Step S3. reads configuration file corresponding with the default detailed data, to obtain the default detailed data Gauge outfit name, row name, gauge outfit name sequence and row name sequence;
Step S4. is according to gauge outfit name, row name, gauge outfit the name sequence of the default detailed data and row name sequence, from institute It states to obtain the default detailed data in the primary data of preset data form and be sent to the front end and be shown.
In the detailed data display methods that this example embodiment is provided, on the one hand, all data are logical according to one The page is shown, you can to show different data results in a page, without using traditional one bright It counts accurately according to the corresponding display page, avoids a large amount of redundant code, reduce workload;On the other hand, when a data When data inquiry request in library is more, all data in database can be handled by background processing system, Data corresponding with inquiry request are extracted, avoid malfunctioning.
In the following, it is more detailed to each step progress of the detailed data display methods in this example embodiment to combine Fig. 1 Thin explanation.
In step sl, establish multiple configuration files, each configuration file include a kind of detailed data gauge outfit name, Row name.
In this example embodiment, in order to realize that the page shows that page table first place is corresponding with the data shown, Ke Yiwei Each database table establishes a configuration file, such as the configuration file can be xml document, and the document manages for description Data and management function.In specific environment, it can modify to file but not need to modification source code, therefore manage Data and management function can be shared and be interacted between multiple systems.The configuration file of foundation can use the title of database table It is named, the configuration file can include the gauge outfit name, row name, table that are shown with the default detailed data of front end requesting query First place sequence and the corresponding English of row name sequence, Chinese gauge outfit name, row name, gauge outfit name sequence and row name sequence.Specifically Ground when reading configuration file, first reads English gauge outfit name, row name, gauge outfit the name sequence of configuration file and row name sequence, leads to It crosses a cycle and the English gauge outfit name, row name, gauge outfit name sequence and row name is sequentially converted into Chinese gauge outfit name, row name, table First place sequence and row name sequence are sent to front end and are shown.Wherein database table first place is corresponded with row name.
In this example embodiment, above-mentioned configuration file can also be the document of Properties attributes. For Properties documents for describing specific configuration information, file format is the one-to-one form of key assignments.In this example reality It applies in mode, can be searched by the content in the function pairs Properties files such as get, load, set, store, clear The operations such as rope, loading, calling, storage, removing.When need content to be shown changes in front end, function loops can be passed through The data of the page, simpler convenience are directly modified and shown without modification front end from the beginning to the end to configuration file.
In step s 2, when receiving the inquiry request of default detailed data of front end submission, the inquiry is responded The primary data is simultaneously encapsulated as default detailed data form by one primary data of acquisition request.
In this process, the detailed data of front end requesting query can be arranged to the number of a fixed form first According to;Then judge whether system receives detailed data inquiry request, judge system receive detailed data inquiry please When asking, primary data corresponding with the data of requesting query, and the initial number that will be inquired from database are obtained from database According to the form for the detailed data for being packaged into fixed requesting query.For example, Fig. 3 show the primary data obtained from database Parameter format, wherein ResultList be return to front end displaying as a result, i.e. preset detailed data;In ResultList Content format be Map types;Key and value in each Map set correspond to the row name and train value of every group of data respectively, and every Key and value in a set are corresponded.
In this example embodiment, by front end need detailed data form to be shown be arranged to (name, gender, the age, Phone) form, when background system receive inquiry Zhang San detailed data request when, being recalled from database has with Zhang San Close all primary datas (name, gender, address, age, phone) and by the primary data of acquisition be packaged into and front end need The form of detailed data form to be shown identical (name, gender, address, age, phone).It is inquired in encapsulation initial During data format, the sequence of primary data can not exclusively need the sequence consensus of detailed data to be shown with front end, Primary data, which can include front end, needs detailed data to be shown and front end to be not required to detailed data to be shown.
In step s3, configuration file corresponding with the default detailed data is read, to obtain the default detail number According to gauge outfit name, row name, gauge outfit name sequence and row name sequence.
In this example embodiment, gauge outfit name, row name, gauge outfit name sequence and row name sequence are that front end page display is detailed The information that data need.Wherein, configuration file gauge outfit name, the sequence of row name need the table of default detailed data to be shown with front end First place, the sequence of row name are identical, for being matched with the default detailed data finally obtained.Configuration file can include Chinese and English gauge outfit name, row name, gauge outfit name sequence and row name sequence, read first the English gauge outfit name of configuration file, row name, Gauge outfit name sequence and row name sequence, parse English gauge outfit name by a cycle, generate gauge outfit list of file names;Then by English Literary gauge outfit name, row name, gauge outfit name sequence and row name are sequentially converted into Chinese gauge outfit name, row name, gauge outfit name sequence and row name Sequence is sent to front end and is shown.That is, English gauge outfit name, row name, gauge outfit name sequence and row name sequence can be with For the reading of configuration file, Chinese gauge outfit name, row name, gauge outfit name sequence and row name sequence can be used for the display of data.
When system receives request (Zhang San, gender, age, the phone) of inquiry detailed data, recalled from database Such as (name, age, gender, address, phone, work), the primary data obtained from database is encapsulated for all primary datas Into the form of (Zhang San, age, gender, phone), according to the gauge outfit name, row name, gauge outfit of front end default detailed data to be shown Name sequence and row name sequence set gauge outfit name, row name, gauge outfit the name sequence of the configuration file and row name sequence.For example, Front end form to be shown is (Zhang San, gender, age, phone).First, the English form of configuration file is also corresponding is arranged to The form of all information, such as (Name, sex, age, phone, address) are shown including front end;Next, reading and institute The corresponding configuration file of default detailed data is stated, resolution table first place Name obtains match corresponding with Zhangsan by a cycle Put file;Then it according to the row name of front end default detailed data to be shown and row name sequence, obtains and default detailed data The completely the same English row name of format sequential and row name sequence such as (Zhangsan, sex, age, phone);Finally pass through one again English row name and row name are sequentially converted into Chinese row name and row name sequence such as (Zhang San, gender, age, phone) and sent by cycle It is shown to front end.
In step s 4, according to the gauge outfit name, row name, gauge outfit name of the default detailed data sequence and row name sequentially, The default detailed data is obtained from the primary data of the preset data form and is sent to the front end and is shown Show.
In this example embodiment, when to show the content in a database to the page, first according to query statement Associated data set to be shown is inquired from database;Followed by gauge outfit name and the processing procedure of primary data.Read this The corresponding configuration file of a table, the Chinese name of node each in configuration file is placed in order in a List and (is named Data), its corresponding English name is processed into get** with a function, is placed in another List and (is named getter), in this way Row name Chinese name in gauge outfit in data is with taking the method sequence of the column data just corresponding in getter;Followed by data list Data per a line in List with a cycle, are taken out in turn each row, and form by generating process with the method in getter One character string, as soon as these character strings are added in a List and (are named getters), the data order in set each in this way It is corresponding with gauge outfit name.
In this example embodiment, when front end page shows detail, corresponding configuration file generation gauge outfit is first read List of file names recycles the correspondence of gauge outfit name and row name, the primary data inquired is arranged in and the corresponding number of row name According to list.When the page is shown, first resolution table first place list generation gauge outfit name, then parsing generation data row is carried out to data list. According to default detailed data in the configuration file gauge outfit name, row name, gauge outfit name sequence and row name sequence it is corresponding English gauge outfit name and row name, obtained in the primary data of inquiry needs row name to be shown corresponding described default bright with front end It counts evidence accurately, and English gauge outfit name and row name is converted into Chinese gauge outfit name and row name is sent to front end page and shows.For example, Then it according to the row name of front end default detailed data to be shown and row name sequence, obtains and default detailed data format sequential Completely the same English row name and row name sequence such as (Zhangsan, sex, age, phone);It, will finally again by a cycle English row name and row name be sequentially converted into Chinese row name and row name sequence as (Zhang San, gender, age, phone) be sent to front end into Row display.
The tool of front end requesting query (Zhang San, gender, age, phone) and (Li Si, gender, age, phone, address) form Body detailed data.First, the English row name format of configuration file is also corresponding is arranged to include front end to show all information Form, such as (Name, sex, age, phone), the data information of configuration file setting are not limited to only being the gender, year Age, phone can also include other information such as address, work;Next, it reads corresponding with the default detailed data Configuration file, resolution table first place Name obtains gauge outfit list of file names corresponding with Zhangsan and Lisi;Then, according to gauge outfit List of file names Zhangsan and Lisi inquire corresponding primary data in the database;Finally according to the content of preset detailed data And sequence, recycle the correspondence of gauge outfit name and row name by the data arrangement inquired into list corresponding with gauge outfit name;Sieve Select desired specific detailed data.For example, configuration file corresponding with the default detailed data is read, parsing gauge outfit Name Name, obtain gauge outfit list of file names corresponding with Zhangsan and Lisi and English row name corresponding with default detailed data with And row name sequence:(Zhangsan, sex, age, phone) and (Lisi, sex, age, phone, address);According to gauge outfit name List Zhangsan and Lisi inquire corresponding primary data in the database, to be shown described default further according to front end page Gauge outfit name, row name, gauge outfit name sequence and the row name sequence of detailed data, at corresponding configuration file English gauge outfit name and row name Chinese is managed into, corresponding with the row name of requirement display (Zhang San, gender, age, electricity are obtained from the corresponding primary data of inquiry Words) and (Li Si, gender, age, phone, address) form default detailed data and be sent to front end and shown.
In addition, in this example embodiment, above-mentioned detailed data display methods can also include:
When showing the default detailed data in the front end, the first row of the default detailed data passes through for showing The gauge outfit name of the default detailed data of cycle acquisition is carried out to the gauge outfit name of the configuration file;
When showing the default detailed data in the front end, the second row of the default detailed data passes through for showing The default detailed data that cycle nested to the row name progress of the primary data with the configuration file obtains.
In this example embodiment, front end page show it is main with above treated data lists come display gauge head, use Getters lists carry out display data.It is the gauge outfit part for parsing data lists generation page tabular first, with a cycle, takes Go out the element in data and be added in sequence in each row of table the first row;Then parsing getters lists generation page The data row in face with a cycle, takes out the data in getters, it is corresponding each to be added to table current line in sequence In row.
For example, when system receive detailed data inquiry request (Zhang San, gender, age, phone) when, first read with The corresponding configuration file of the default detailed data, resolution table first place Name obtain gauge outfit list of file names corresponding with Zhangsan And English row name corresponding with default detailed data and row name are sequentially (Zhangsan, sex, age, phone);Then basis Gauge outfit list of file names Zhangsan recalled from database with the relevant all primary datas of Zhang San (Zhang San, gender, the age, phone, Address), and the primary data of acquisition is packaged into the form of (Zhang San, age, gender, phone);Next, matched by reading The English gauge outfit name and row name (Name, sex, age, phone) in file are put, Chinese gauge outfit name is processed into a cycle With the form of row name (name, gender, age, phone), and it is illustrated in sequence in each row of the first row;Finally with one Cycle, by the data in primary data corresponding with configuration file (Name, sex, age, phone) per a line according to extraction row name Sequence extract, be illustrated in each row of the second row, generate corresponding with each row name data row, for example, with (Name, Sex, age, phone) corresponding (Zhang San, man, 20,130***).
In addition, in this example embodiment, above-mentioned detailed data display methods can also include:
In the nested cycle of the row name progress to the primary data with the configuration file, by the primary data First layer cycle is carried out, to obtain the default detailed data from the primary data of the default detailed data form;
In the nested cycle of the row name progress to the primary data with the configuration file, by the configuration file Row name carry out second layer cycle, with from the primary data of the default detailed data form obtain with it is described configuration text The corresponding default detailed data of row name of part.
In this example embodiment, after reading configuration file corresponding with default detailed data, inquire and preset The corresponding all primary datas of detailed data, then first layer cycle is carried out to the primary data, from the default detailed data The default detailed data is obtained in the primary data of form.Then pair configuration file corresponding with default detailed data Row name carries out second layer cycle, obtains the corresponding data of row name with the configuration file, and by it according to the configuration text Part row name is ranked sequentially.For example, after receiving data inquiry request (Zhang San, age, gender, phone), read first and institute State the corresponding configuration file of default detailed data, resolution table first place Name, obtain gauge outfit list of file names corresponding with Zhangsan with And English row name corresponding with default detailed data and row name are sequentially:(Zhangsan、sex、age、phone);Then basis Zhangsan in gauge outfit list of file names reads corresponding configuration file (Name, age, sex, phone, job, address) and accordingly Primary data is obtained from database, and the primary data of acquisition is packaged into the form of (Zhang San, age, gender, phone);It connects Get off, by reading English gauge outfit name and row name (Name, sex, age, phone) in configuration file, recycled with one by it The form of Chinese gauge outfit name and row name (name, gender, age, phone) is processed into, and first layer cycle is carried out to primary data, Generate data list;Finally second is carried out to each row name to recycle, obtain a corresponding column data with each row name, such as Row name (Name, age, sex, phone) is recycled successively, is respectively obtained corresponding with row name age, sex, phone specific Data, so as to which the specific data for obtaining (Zhang San, man, 20,130***) are sent to front end and are shown.
Same mode carries out the row name (Name, age, sex) in (Li Si, gender, age, phone, address) successively Cycle, obtains the specific data of (Li Si, female, 20) form.
In this example embodiment, system can also recycle a certain row name, filter out qualified specific number According to and show.For example, the proprietary information that the age is 25 years old in system request inquiry database, it can be by reading configuration text Part English gauge outfit name and row entitled (Name, age, sex, phone, address) are converted to Chinese gauge outfit name and row by cycle Name (name, age, gender, phone, address), after obtaining corresponding primary data, recycles row name age, can obtain Age is the proprietary information of 25 years old.Data row corresponding with row name are filtered out by circulating in all primary datas, it can To avoid the mode searched one by one, reduce workload and error rate.
In addition, in this example embodiment, above-mentioned detailed data display methods can also include:
The default detail obtained is recycled by the way that the row name progress to the primary data with the configuration file is nested Data are Map type data.
The one-to-one key-value pair (key, value) of Map types data storage, ensure that the uniqueness of key key, can pass through Function put, clear, contains, get to Map gather in data (key, value) be added, delete, judge and The operations such as acquisition.When need change database when, avoid be shown to data read portion from row name in the page will be again The complex process of modification improves the maintainability of system.
In the example embodiment of the disclosure, a kind of detailed data display device is also disclosed.With reference to shown in Fig. 4, this is bright Thin data presentation device 400 can include:Configuration file unit 410, form encapsulation unit 420, Information reading unit 430, page Face display unit 440.Wherein:
Configuration file unit, for establishing multiple configuration files, each configuration file includes a kind of detailed data Gauge outfit name, row name;
Form encapsulation unit, for when receiving the inquiry request of default detailed data of front end submission, responding institute Inquiry request is stated to obtain a primary data and the primary data is encapsulated as default detailed data form;
Information reading unit, for reading configuration file corresponding with the default detailed data, to obtain described preset Gauge outfit name, row name, gauge outfit name sequence and the row name sequence of detailed data;
Page display unit, for gauge outfit name, row name, gauge outfit name sequence and the row name according to the default detailed data Sequentially, the default detailed data is obtained from the primary data of the preset data form and be sent to the front end into Row display.
In a kind of exemplary embodiment of the disclosure, the configuration file unit 410 includes:
File format setting unit, which is characterized in that the configuration file be xml forms configuration file or The configuration file of Properties attributes.
Gauge outfit name sequence setting unit, which is characterized in that gauge outfit name sequence and the default detail of the configuration file The gauge outfit name sequence of data is identical.
Row name sequence setting unit, which is characterized in that row name sequence and the default detailed data of the configuration file Row name sequence it is identical.
In a kind of exemplary embodiment of the disclosure, the page display unit 440 includes:
First display unit, during for showing the default detailed data in the front end, the first row show by pair The gauge outfit name of the configuration file carries out the gauge outfit name of the default detailed data of cycle acquisition;
Second display unit, during for showing the default detailed data in the front end, the second row show by pair The row name progress of the primary data and the configuration file is nested to recycle the default detailed data obtained.
In a kind of exemplary embodiment of the disclosure, the page display unit 440 further includes:
First circulation unit, for the row name progress to the primary data with the configuration file it is nested cycle when, By carrying out first layer cycle to the primary data, to be obtained from the primary data of the default detailed data form The default detailed data;
Second circulation unit, for the row name progress to the primary data with the configuration file it is nested cycle when, By carrying out second layer cycle to the row name of the configuration file, with from the primary data of the default detailed data form It is middle to obtain the default detailed data corresponding with the row name of the configuration file.
In a kind of exemplary embodiment of the disclosure, the page display unit 440 includes:By to the initial number According to the row name progress with the configuration file it is nested cycle obtain the default detailed data be Map type data.
The detail of each detailed data display device unit is in corresponding detailed data display methods in above-mentioned It is described in detail, therefore details are not described herein again.
It should be noted that although several modules or list for acting the equipment performed are referred in above-detailed Member, but this division is not enforceable.In fact, according to embodiment of the present disclosure, it is above-described two or more The feature and function of module either unit can embody in a module or unit.A conversely, above-described mould Either the feature and function of unit can be further divided into being embodied by multiple modules or unit block.
In addition, although describing each step of method in the disclosure with particular order in the accompanying drawings, this does not really want Asking or implying must could realize according to the particular order come the step for performing these steps or having to carry out shown in whole Desired result.It is additional or alternative, it is convenient to omit certain steps, by multiple steps merge into a step perform and/ Or a step is decomposed into execution of multiple steps etc..
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented Mode can be realized by software, can also be realized in a manner that software is with reference to necessary hardware.Therefore, according to the disclosure The technical solution of embodiment can be embodied in the form of software product, the software product can be stored in one it is non-volatile Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions so that a calculating Equipment (can be personal computer, server, mobile terminal or network equipment etc.) is performed according to disclosure embodiment Method.
Those skilled in the art will readily occur to the disclosure its after considering specification and putting into practice invention disclosed herein Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principle of the disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as illustratively, and the true scope and spirit of the disclosure are by appended Claim is pointed out.

Claims (12)

1. a kind of detailed data display methods, which is characterized in that including:
Multiple configuration files are established, each configuration file includes gauge outfit name, the row name of a kind of detailed data;
When receiving the inquiry request of default detailed data of front end submission, respond the inquiry request and obtain an initial number Default detailed data form is encapsulated as according to and by the primary data;
Read configuration file corresponding with the default detailed data, with obtain the gauge outfit name of the default detailed data, row name, Gauge outfit name sequence and row name sequence;
According to the gauge outfit name, row name, gauge outfit name of the default detailed data sequence and row name sequence, from the preset data lattice The default detailed data is obtained in the primary data of formula and is sent to the front end and is shown.
2. detailed data display methods according to claim 1, which is characterized in that the configuration file uses xml forms Configuration file or properties attributes configuration file.
3. detailed data display methods according to claim 1, which is characterized in that the gauge outfit name sequence of the configuration file It is identical with the gauge outfit name sequence of the default detailed data.
4. detailed data display methods according to claim 1, which is characterized in that the configuration file row name sequence with The row name sequence of the default detailed data is identical.
5. detailed data display methods according to claim 1, which is characterized in that the method further includes:
When showing the default detailed data in the front end, the first row of the default detailed data is used to show by institute The gauge outfit name for stating configuration file recycle the gauge outfit name of the default detailed data of acquisition;
When showing the default detailed data in the front end, the second row of the default detailed data is used to show by institute State the default detailed data that primary data cycle nested with the row name progress of the configuration file obtains.
6. detailed data display methods according to claim 5, which is characterized in that the method further includes:
In the nested cycle of the row name progress to the primary data with the configuration file, by being carried out to the primary data First layer recycles, to obtain the default detailed data from the primary data of the default detailed data form;
By carrying out second layer cycle to the row name of the configuration file, with from the described initial of the default detailed data form The default detailed data corresponding with the row name of the configuration file is obtained in data.
7. detailed data display methods according to claim 6, which is characterized in that by the primary data and described It is Map type data that the row name of configuration file, which carries out the default detailed data that nested cycle obtains,.
8. a kind of detailed data display device, which is characterized in that including:
Configuration file unit, for establishing multiple configuration files, each configuration file includes the gauge outfit of a kind of detailed data Name, row name;
Form encapsulation unit, for when receiving the inquiry request of default detailed data of front end submission, being looked into described in response It askes one primary data of acquisition request and the primary data is encapsulated as default detailed data form;
Information reading unit, for reading configuration file corresponding with the default detailed data, to obtain the default detail Gauge outfit name, row name, gauge outfit name sequence and the row name sequence of data;
Page display unit, for according to the default detailed data gauge outfit name, row name, gauge outfit name sequence and row name it is suitable Sequence obtains the default detailed data from the primary data of the preset data form and is sent to the front end progress Display.
9. detailed data display device according to claim 8, which is characterized in that the configuration file unit includes:
File format setting unit, which is characterized in that the configuration file is that the configuration file of xml forms or properties belong to The configuration file of property.
Gauge outfit name sequence setting unit, which is characterized in that gauge outfit name sequence and the default detailed data of the configuration file Gauge outfit name sequence it is identical;
Row name sequence setting unit, which is characterized in that the row name sequence of the configuration file and the row of the default detailed data Name sequence is identical.
10. detailed data display device according to claim 8, which is characterized in that the page display unit includes:
The first row display unit during for showing the default detailed data in the front end, is shown in the first row by institute The gauge outfit name for stating configuration file recycle the gauge outfit name of the default detailed data of acquisition;
Second row display unit during for showing the default detailed data in the front end, is shown in the second row by institute State the default detailed data that primary data cycle nested with the row name progress of the configuration file obtains.
11. detailed data display device according to claim 10, which is characterized in that the page display unit includes:
First circulation unit, in the nested cycle of the row name progress to the primary data with the configuration file, passing through First layer cycle is carried out to the primary data, described in being obtained from the primary data of the default detailed data form Default detailed data;
Second circulation unit, in the nested cycle of the row name progress to the primary data with the configuration file, passing through Second layer cycle is carried out to the row name of the configuration file, to be obtained from the primary data of the default detailed data form Take the default detailed data corresponding with the row name of the configuration file.
12. detailed data display device according to claim 11, which is characterized in that by the primary data and institute The default detailed data for stating the nested cycle acquisition of row name progress of configuration file is Map type data.
CN201611168402.8A 2016-12-16 2016-12-16 The display methods and device of detailed data Pending CN108205529A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611168402.8A CN108205529A (en) 2016-12-16 2016-12-16 The display methods and device of detailed data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611168402.8A CN108205529A (en) 2016-12-16 2016-12-16 The display methods and device of detailed data

Publications (1)

Publication Number Publication Date
CN108205529A true CN108205529A (en) 2018-06-26

Family

ID=62602583

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611168402.8A Pending CN108205529A (en) 2016-12-16 2016-12-16 The display methods and device of detailed data

Country Status (1)

Country Link
CN (1) CN108205529A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070055679A1 (en) * 2005-08-25 2007-03-08 Fujitsu Limited Data expansion method and data processing method for structured documents
CN102456033A (en) * 2010-10-28 2012-05-16 金蝶软件(中国)有限公司 General page querying method, system and terminal
CN103150391A (en) * 2013-03-21 2013-06-12 河海大学 General database table webpage displaying method based on configuration files
CN104375818A (en) * 2013-10-11 2015-02-25 北京金辉东方科技有限公司 System and method for achieving general data form inputting through configuration files

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070055679A1 (en) * 2005-08-25 2007-03-08 Fujitsu Limited Data expansion method and data processing method for structured documents
CN102456033A (en) * 2010-10-28 2012-05-16 金蝶软件(中国)有限公司 General page querying method, system and terminal
CN103150391A (en) * 2013-03-21 2013-06-12 河海大学 General database table webpage displaying method based on configuration files
CN104375818A (en) * 2013-10-11 2015-02-25 北京金辉东方科技有限公司 System and method for achieving general data form inputting through configuration files

Similar Documents

Publication Publication Date Title
CA2636429C (en) Presenting digitized content on a network
US9235636B2 (en) Presenting data in response to an incomplete query
JP2019530921A (en) Method and system for server-side rendering of native content for presentation
US20150302110A1 (en) Decoupling front end and back end pages using tags
US20170277672A1 (en) Information processing device, information processing method, and computer program product
WO2017024236A1 (en) Building and managing data-processing attributes for modeled data sources
CN108897874B (en) Method and apparatus for processing data
US11079987B2 (en) Creation of component templates
CN110704476A (en) Data processing method, device, equipment and storage medium
CN105550206A (en) Version control method and device for structured query language
CN110738038A (en) Contract text generation method, device, equipment and computer readable storage medium
US20210124752A1 (en) System for Data Collection, Aggregation, Storage, Verification and Analytics with User Interface
CN104239067B (en) The preparation method and device of miniature client
CN115544183A (en) Data visualization method and device, computer equipment and storage medium
CN111090803A (en) Data processing method and device, electronic equipment and storage medium
CN114155921A (en) Configuration method and device of medical form, computer equipment and storage medium
US20120317073A1 (en) Replication Support for Procedures with Arguments of Unsupported Types
KR20130126012A (en) Method and apparatusfor providing report of business intelligence
CN105677847A (en) Method for medicine information intelligent inquiry based on database
US20220164377A1 (en) Method and apparatus for distributing content across platforms, device and storage medium
CN108205529A (en) The display methods and device of detailed data
CN112162731B (en) Data expansion method, device, storage medium and electronic device
CN116263659A (en) Data processing method, apparatus, computer program product, device and storage medium
CN104156358B (en) A kind of batch read method of table for database, device and system
CN114610803A (en) Data processing 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180626

RJ01 Rejection of invention patent application after publication