CN108804629A - A kind of processing method, device, storage medium and the equipment of screening item - Google Patents

A kind of processing method, device, storage medium and the equipment of screening item Download PDF

Info

Publication number
CN108804629A
CN108804629A CN201810552797.4A CN201810552797A CN108804629A CN 108804629 A CN108804629 A CN 108804629A CN 201810552797 A CN201810552797 A CN 201810552797A CN 108804629 A CN108804629 A CN 108804629A
Authority
CN
China
Prior art keywords
screening
item
configuration file
parameter
page
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
CN201810552797.4A
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 58 Information Technology Co Ltd
Original Assignee
Beijing 58 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 58 Information Technology Co Ltd filed Critical Beijing 58 Information Technology Co Ltd
Priority to CN201810552797.4A priority Critical patent/CN108804629A/en
Publication of CN108804629A publication Critical patent/CN108804629A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Abstract

The invention discloses a kind of processing method, device, storage medium and the equipment of screening item, including:Server will screen the configuration of item characteristic information and be sent to terminal in configuration file, and by the configuration file;So that the terminal generates the screening page according to configuration file, wherein presenting the screening item generated according to the screening item characteristic information in configuration file in the screening page;Receive the screening parameter for carrying out being generated when screening selection in the screening page of terminal;The selection result is obtained according to configuration file and screening parameter, and the selection result is fed back to the screening page of terminal.Beneficial effects of the present invention are, the present invention is when needing to add new screening item, new sieve option configuration need to only be can be realized to the process from page presentation to screening server in configuration file, the development cost of screening item is reduced to the greatest extent, when needing to change screening item, screening item can be changed directly in configuration file, reduce maintenance cost.

Description

A kind of processing method, device, storage medium and the equipment of screening item
Technical field
The present invention relates to network technique field more particularly to a kind of screening processing method of item, device, storage medium and set It is standby.
Background technology
Currently, the screening item of data displayed page has become the necessary functions of all kinds of websites or application APP, and One of most commonly used function of user.However, in the prior art, the screening item of data displayed page needs to pass through developer The hard coded write-in page and background logic item by item so that need to be required for changing simultaneously when adjusting screening item every time terminal page and Business is screened in rear end, and it is more to be related to content, leads to that development and maintenance cost is high, be easy error and system data safety is poor.
Invention content
The embodiment of the present invention provides a kind of processing method, device, storage medium and the equipment of screening item, existing to solve The screening item of skill data during operation displayed page needs that the page and background logic is written in hard coded item by item by developer, causes out Hair and the high problem of maintenance cost.
In a first aspect, the embodiment of the present invention provides a kind of processing method of screening item, including:
Server will screen the configuration of item characteristic information and be sent to terminal in configuration file, and by the configuration file;With The terminal is set to generate the screening page according to the configuration file, wherein being presented in the screening page according to configuration text The screening item that the screening item characteristic information in part generates;
Receive the screening parameter for carrying out being generated when screening selection in the screening page of the terminal;
The selection result is obtained according to the configuration file and the screening parameter, and the selection result is fed back to described The screening page of terminal.
Optionally, described that the selection result is obtained according to the configuration file and the screening parameter, further comprise:
Restrictive verification is carried out to the screening parameter according to the configuration file, with the determination screening parameter whether In the screening item that the screening item characteristic information in the configuration file limits, if so, according to the configuration file and institute It states screening parameter and obtains the selection result.
Optionally, described that the selection result is obtained according to the configuration file and the screening parameter, including:
The corresponding screening range of each parameter is determined according to the screening parameter;
The screening logic that logic restriction is carried out to the screening range is determined according to the configuration file;
Screening conditions are generated according to the screening range, the screening logic and the screening item, according to the screening item Part inquires the selection result.
Optionally, the screening item characteristic information is configured in the following way in the configuration file:
In such a way that configuration item is set;Or
In such a way that self-defined transformation rule is set;Or
In such a way that data source is set.
Optionally, the screening item includes:
Sieve option-tag;And/or
Sieve option content.
Second aspect, the embodiment of the present invention provide a kind of processing unit of screening item, including:
Configuration module, for making server that will screen the configuration of item characteristic information in configuration file, and the configuration is literary Part is sent to terminal;So that the terminal generates the screening page according to the configuration file, wherein being presented in the screening page The screening item that the screening item characteristic information in the with good grounds configuration file generates;
Receiving module, for receiving the screening ginseng for carrying out generating when screening selection in the screening page of the terminal Number;
Screening module, for obtaining the selection result according to the configuration file and the screening parameter, and by the screening As a result the screening page of the terminal is fed back to.
Optionally, further include:
Correction verification module, for carrying out restrictive verification to the screening parameter according to the configuration file, described in determination Whether screening parameter is in the screening item that the screening item characteristic information in the configuration file limits, if so, according to institute It states configuration file and the screening parameter obtains the selection result.
Optionally, the screening module, including:
Range determination module, for determining the corresponding screening range of each parameter according to the screening parameter;
Logic determining module, for determining the screening for carrying out logic restriction to the screening range according to the configuration file Logic;
Enquiry module, for generating screening conditions, root according to the screening range, the screening logic and the screening item The selection result is inquired according to the screening conditions.
Optionally, the screening item includes:
Sieve option-tag;And/or
Sieve option content.
The third aspect, the embodiment of the present invention provide a kind of computer readable storage medium, the computer-readable storage medium Computer program is stored in matter, the step of computer program realizes following method when being executed by processor:
Server will screen the configuration of item characteristic information and be sent to terminal in configuration file, and by the configuration file;With The terminal is set to generate the screening page according to the configuration file, wherein being presented in the screening page according to configuration text The screening item that the screening item characteristic information in part generates;
Receive the screening parameter for carrying out being generated when screening selection in the screening page of the terminal;
The selection result is obtained according to the configuration file and the screening parameter, and the selection result is fed back to described The screening page of terminal.
Fourth aspect, the embodiment of the present invention provide a kind of computer equipment, and the computer equipment includes:Memory, place It manages device and is stored in the computer program that can be run on the memory and on the processor, the computer program is by institute State the step of realizing following method when processor executes:
Server will screen the configuration of item characteristic information and be sent to terminal in configuration file, and by the configuration file;With The terminal is set to generate the screening page according to the configuration file, wherein being presented in the screening page according to configuration text The screening item that the screening item characteristic information in part generates;
Receive the screening parameter for carrying out being generated when screening selection in the screening page of the terminal;
The selection result is obtained according to the configuration file and the screening parameter, and the selection result is fed back to described The screening page of terminal.
The embodiment of the present invention has the beneficial effect that:
The screening item of acquisition is illustrated in the screening page of terminal by the embodiment of the present invention according to configuration file, and terminal will sieve The screening parameter generated in choosing selection passes to server, by the selection result retrieved is fed back to end after server process Only new sieve option configuration need to be can be realized in configuration file from page presentation when needing to add new screening item for end To the process of screening server, the development cost of screening item is reduced to the greatest extent, it, can be direct when needing to change screening item Screening item is changed in configuration file, reduces maintenance cost.
Above description is only the general introduction of technical solution of the present invention, in order to better understand the technical means of the present invention, And can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, below the special specific implementation mode for lifting the present invention.
Description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit are common for this field Technical staff will become clear.Attached drawing only for the purpose of illustrating preferred embodiments, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 is the flow chart of the processing method for the screening item that first embodiment of the invention provides;
Fig. 2 is the flow chart of the processing method for the screening item that second embodiment of the invention provides;
Fig. 3 is the flow chart of the processing method for the screening item that third embodiment of the invention provides;
Fig. 4 is the structure diagram of the processing unit for the screening item that the present invention the four, the 5th and sixth embodiment provide;
Fig. 5 is that the sieve option configuration that seventh embodiment of the invention provides disguises the structure diagram set;
Fig. 6 is that the sieve option configuration that seventh embodiment of the invention provides disguises the work flow diagram set;
1- configuration modules, 2- receiving modules, 3- screening modules, 31- range determination modules, 32- logic determining modules, 33- Enquiry module, 4- correction verification modules;
01- screens item generating means, and 02- screens item calibration equipment, and 03- screens item and retrieves device.
Specific implementation mode
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Completely it is communicated to those skilled in the art.
First embodiment of the invention provides a kind of processing method of screening item, as shown in Figure 1, including step in detail below:
Step S11, server will screen the configuration of item characteristic information and be sent to end in configuration file, and by configuration file End;So that terminal generates the screening page according to configuration file, wherein being presented according to the screening in configuration file in the screening page The screening item that item characteristic information generates;In alternative embodiment of the present invention, terminal can be the front end page that application program is opened, Can be the clients such as mobile phone, computer, when terminal is front end, server can exist in the form of rear end, and screening item includes using The screening content that selection carries out screening and filtering is clicked in the screening label of the meaning of label screening item, and for user.
In alternative embodiment of the present invention, screening item characteristic information configures in configuration file in the following way:
In such a way that configuration item is set;Or
In such a way that self-defined transformation rule is set;Or
In such a way that data source is set.
In alternative embodiment of the present invention, if server is existed screening item characteristic information configuration by way of configuration item is arranged In configuration file, then can directly will screening item characteristic information configure by hand-coding mode or by code building mode with It sets in file, here, the embodiment of the present invention does not do unique restriction for the mode of writing or generating mode, is then configured by reading File directly acquires screening item, and screening item is presented in the screening page, optionally, such as:It is recorded in configuration file, Fieldname=is directly acquired, city, Beijing:010;Chengdu:028;Chongqing:023, that is, Beijing indicates that Chengdu is used with 010 028 indicates, Chongqing 023 indicates that specific representation can not be done uniquely herein according to developer's self-defining, the present invention forever It limits, then city is presented in the screening page and screens item, and the screenings such as selection Beijing, Chengdu and Chongqing can be clicked for user Item content, and their actual value is respectively 010,028,023.
In alternative embodiment of the present invention, if server will sieve option feature letter by way of self-defined transformation rule is arranged Breath configuration can then generate the screening item being presented in the screening page, here in configuration file by self-defined transformation rule Self-defined transformation rule includes generating or obtaining screening item according to transformation rule i.e. transfer algorithm, such as:0 representative can be shown as having The today on body date, -1 represents yesterday and 0 represents this week, and -1 represents this month etc., and specific transformation rule can be according to practical need (here, the embodiment of the present invention does not make transformation rule unique restriction) depending on transfer function determined by asking.For example, in configuration text It records fieldname=escapes in part to obtain, in date created, transformation rule is as follows:
Today:0;Yesterday:-1;The day before yesterday:- 2, that is, indicated with number 0 today, yesterday is indicated with number -1, day before yesterday number Word -2 indicates, then the screening item of date created is presented in the screening page, and selection today, yesterday, preceding can be clicked for user It etc. sieves option content.It is divided into preposition conversion according to the opportunity of rule conversion (to convert before user terminal operations, user passes when selecting Pull over back-end server is that transformed value such as selects today, and that pass server-side back is 2018-05-15) and postposition conversion (use Converted after the terminal operation of family, user select when be passed back to server be conversion before value such as select today, pass server-side back It is 0,2018-05-15 is converted into back-end server).Screening item is generated about by self-defined transformation rule, more into one Step is abstract, it can be understood as there are one abstract tables to store:Configuration item, display items, transmission item, application item etc., then making by oneself It is exactly the process for obtaining other items by configuration item and utilizing that adopted transformation rule, which generates screening item,.
In alternative embodiment of the present invention, if server is existed screening item characteristic information configuration by way of data source is arranged It, then can be by calculating screening item from data source in configuration file, data source needs to first pass through data source when obtaining screening item Sieve option content is got, then is presented in the screening page to select for user by the screening item of generation, fall into a trap from data source It includes by from the select distince modes and the libraries solr in relational database to calculate and obtain screening itemDeng, Unique restriction is not done herein.Optionally, when obtaining screening item by data source, for example, by being recorded in configuration file, Fieldname=data sources obtain, city, then screen and screening item in city is presented on the page, but specific screening item is to pass through pass It is that select distinct fieldname in database obtain out, or by from Solr databases Fieldname obtains out, or by way of other data sources etc., does not do unique restriction herein.
Step S12 receives the screening parameter for carrying out being generated when screening selection in the screening page of terminal;
Step S13 obtains the selection result according to configuration file and screening parameter, and the selection result is fed back to the sieve of terminal Page selection face.
The screening item of acquisition is illustrated in the screening page of terminal by the embodiment of the present invention according to configuration file, and user is sieving The screening parameter for carrying out generating when screening selection on page selection face passes to server such as rear end, and screening related service is carried out by rear end Processing, the selection result retrieved is fed back into terminal after the processing that rear end carries out screening related service, at the screening of rear end Only new sieve option configuration need to can be realized in configuration file when needing to add new screening item for reason process Zero-code The process screened from page presentation to rear end reduces the development cost of screening item to the greatest extent, is needing to change screening item When, screening item can be changed directly in configuration file, reduce maintenance cost.
Second embodiment of the invention provides a kind of processing method of screening item, as shown in Fig. 2, including step in detail below:
S21, server will screen the configuration of item characteristic information and be sent to end in configuration file, and by the configuration file End;So that the terminal generates the screening page according to the configuration file, wherein being presented in the screening page according to The screening item that the screening item characteristic information in configuration file generates;
S22 receives the screening parameter for carrying out being generated when screening selection in the screening page of terminal;
S23 carries out restrictive verification, to determine screening parameter whether in configuration file according to configuration file to screening parameter In the screening item that interior screening item characteristic information limits, if so, the selection result is obtained according to configuration file and screening parameter, and The selection result is fed back to the screening page of terminal, is checked for user to show the selection result on the screening page of terminal Confirm.
Server in the embodiment of the present invention is in the screening parameter for receiving user and in terminal generate when screening selection Afterwards, restrictive verification is carried out to screening parameter, checks that screening parameter whether in agreement range, that is, confirms it in configuration file institute In specified screening item.Terminal is avoided to forge screening item and cause some potential risks, server fails to verify by binding character Shi Jinhang correlations prompt, and obtain the selection result according to configuration file and screening parameter by server after constraining verification, and will sieve Result is selected to feed back to the screening page of terminal.Improve system data safety.
Third embodiment of the invention provides a kind of processing method of screening item, as shown in figure 3, including step in detail below:
S31, server will screen the configuration of item characteristic information and be sent to terminal in configuration file, and by configuration file;With Terminal is set to generate the screening page according to configuration file, wherein being presented according to the sieve option feature in configuration file in the screening page The screening item that information generates;
S32 receives the screening parameter for carrying out being generated when screening selection in the screening page of terminal;
S33 carries out restrictive verification, to determine screening parameter whether in configuration file according to configuration file to screening parameter In the screening item that interior screening item characteristic information limits;If so, thening follow the steps S35-S37;
S34 determines the corresponding screening range of each parameter, such as according to screening parameter:Some occurrence, two occurrences it Between, multiple hashed values etc., the embodiment of the present invention does not do unique restriction herein;
S35 determines the screening logic that logic restriction is carried out to screening range according to configuration file, such as:It is equal to, is more than, is small In, be more than or equal to, be less than or equal to, the embodiment of the present invention does not do unique restriction herein;
S36 generates screening conditions according to screening range, screening logic and screening item, screening is inquired according to screening conditions As a result, and by the selection result feed back to the screening page of terminal.
Server can be generated according to the screening parameter that configuration file and terminal are transmitted to as a result, meets retrieval logic sum The retrieval sentence of range inquires the selection result for rear end screening, to which the selection result to be fed back to the screening page of terminal, supplies User refers to so that user can obtain desired information.
Fourth embodiment of the invention provides a kind of processing unit of screening item, as shown in figure 4, including:
Configuration module 1 is sent out for making server that will screen the configuration of item characteristic information in configuration file, and by configuration file Give terminal;So that terminal generates the screening page according to configuration file, wherein being presented according in configuration file in the screening page Screening item characteristic information generate screening item;In alternative embodiment of the present invention, screening item characteristic information is matched in the following way It sets in the configuration file:
In such a way that configuration item is set;Or
In such a way that self-defined transformation rule is set;Or
In such a way that data source is set.
Optionally, the screening item in the embodiment of the present invention includes the screening label for the meaning of label screening item, and is supplied User clicks the screening content that selection carries out screening and filtering.
In alternative embodiment of the present invention, if the configuration of screening item characteristic information is being configured text by way of configuration item is arranged In part, then can directly it be configured in configuration file by screening item characteristic information by hand-coding mode or by code building mode Interior, here, the embodiment of the present invention does not do unique restriction for the mode of writing or generating mode, then generation module 2 passes through reading Configuration file directly acquires screening item, and screening item is presented in the screening page, optionally, such as:It is recorded in configuration file, Fieldname=is directly acquired, city, Beijing:010;Chengdu:028;Chongqing:023, that is, Beijing indicates that Chengdu is used with 010 028 indicates, Chongqing 023 indicates that specific representation can not be done uniquely herein according to developer's self-defining, the present invention forever It limits, then city is presented in the screening page and screens item, and the screenings such as selection Beijing, Chengdu and Chongqing can be clicked for user Item content, and their actual value is respectively 010,028,023.
In alternative embodiment of the present invention, if will screening item characteristic information configuration by way of self-defined transformation rule is arranged In configuration file, then generation module 2 can generate the screening item being presented in the screening page by self-defined transformation rule, here Self-defined transformation rule include generate or obtain according to transformation rule i.e. transfer algorithm screening item, such as:0 represents and can be shown as This exact date, -1 represents yesterday and 0 represents this week, and -1 represents this month etc., and specific transformation rule can be according to reality Depending on transfer function determined by demand (here, the embodiment of the present invention does not make transformation rule unique restriction).For example, configuring It records fieldname=escapes in file to obtain, in date created, transformation rule is as follows:
Today:0;Yesterday:-1;The day before yesterday:- 2, that is, indicated with number 0 today, yesterday is indicated with number -1, day before yesterday number Word -2 indicates that then the screening item of date created is presented in the screening page for generation module 2, and can be modern for user's click selection It, yesterday, the sieve option content such as day before yesterday.Generation module 2 is divided into preposition conversion (user terminal operations according to the opportunity of rule conversion Preceding conversion, what user was passed back to back-end server when selecting is that transformed value such as selects today, and that pass server-side back is 2018- 05-15) (converted after user terminal operations, what user was passed back to server when selecting is the value such as choosing before conversion with postposition conversion Today is selected, pass server-side back is 0, and 2018-05-15 is converted into back-end server).It is advised about by self-defined conversion Screening item is then generated, it is further abstract, it can be understood as there are one abstract tables to store:Configuration item, display items, transmission Item, application item etc., then it is exactly to obtain other items by configuration item that generation module 2 generates screening item by self-defined transformation rule And the process utilized.
In alternative embodiment of the present invention, if the configuration of screening item characteristic information is being configured text by way of data source is arranged In part, then generation module 2 can be by calculating screening item from data source, wherein needs elder generation when obtaining screening item from data source Get sieve option content by data source, then generation module 2 by the screening item of generation be presented on screening the page in come for Family select, from data source calculate obtain screening item include by from relational database select distince modes and In the libraries solrDeng not doing unique restriction herein.Optionally, by data source obtain screening item when, for example, by It is recorded in configuration file, fieldname=data sources obtain, city, then screen and screening item in city is presented on the page, but is specific Screening item is to obtain out by the select distinct fieldname in relational database, or by from Solr numbers According in libraryFieldname obtains out, or by way of other data sources etc., does not do unique restriction herein.
Receiving module 2, for receiving the screening parameter for carrying out being generated when screening selection in the screening page of terminal;
The selection result for obtaining the selection result according to configuration file and screening parameter, and is fed back to end by screening module 3 The screening page at end.
The embodiment of the present invention will screen the configuration of item characteristic information in configuration file by configuration module 1, by configuration file After being sent to terminal, the screening item of acquisition is illustrated in the screening page according to configuration file by terminal, receiving module 2, which receives, to be used Family carries out screening related service in the screening parameter for carrying out generating when screening selection on the screening page of terminal by server Processing, the selection result retrieved feeds back to end by screening module 3 after carrying out the processing of screening related service by server End, screen the processing unit of item reduces development cost when carrying out the exploitation of similar functions new demand, additionally it is possible to which reduction is carrying out Screen maintenance cost when item change.
Fifth embodiment of the invention provides the processing unit of screening item, as shown in figure 4, including:
Configuration module 1 is sent out for making server that will screen the configuration of item characteristic information in configuration file, and by configuration file Give terminal;So that terminal generates the screening page according to configuration file, wherein being presented according in configuration file in the screening page Screening item characteristic information generate screening item;
Receiving module 2, for receiving the screening parameter for carrying out being generated when screening selection in the screening page of terminal;
The selection result for obtaining the selection result according to configuration file and screening parameter, and is fed back to end by screening module 3 The screening page at end.
Optionally, further include:
Correction verification module 4, for carrying out restrictive verification to screening parameter according to configuration file, whether to determine screening parameter In the screening item that screening item characteristic information in configuration file limits, if so, screening module 3 is according to configuration file and screening Parameter acquiring the selection result, and the selection result is fed back to the screening page of terminal.
Correction verification module 4 in the embodiment of the present invention receives user by server and in terminal generate when screening selects Screening parameter after, restrictive verification is carried out to screening parameter, checks screening parameter whether in agreement range, that is, confirm its In screening item specified by configuration file.Terminal is avoided to forge screening item and cause some potential risks, server fails to pass through Related prompt is carried out when binding character verification, server obtains screening knot according to configuration file and screening parameter after being verified by constraint Fruit, and the selection result is fed back to the screening page of terminal.The embodiment of the present invention carries out about screening parameter by correction verification module 4 Beam verification enhances system data safety.
Sixth embodiment of the invention provides the processing unit of screening item, as shown in figure 4, including:
Configuration module 1, for making server that will screen the configuration of item characteristic information in configuration file, and the configuration is literary Part is sent to terminal;So that the terminal generates the screening page according to the configuration file, wherein being presented in the screening page The screening item that the screening item characteristic information in the with good grounds configuration file generates;
Receiving module 2, for receiving the screening parameter for carrying out being generated when screening selection in the screening page of terminal;
The selection result for obtaining the selection result according to configuration file and screening parameter, and is fed back to end by screening module 3 The screening page at end.
Optionally, further include:
Correction verification module 4, for carrying out restrictive verification to screening parameter according to configuration file, whether to determine screening parameter In the screening item that screening item characteristic information in configuration file limits, if so, screening module 3 is according to configuration file and screening Parameter acquiring the selection result, and the selection result is fed back to the screening page of terminal.
Optionally, screening module 3, including:
Range determination module 31, for determining the corresponding screening range of each parameter according to screening parameter, such as:Some is specific Value, between two occurrences, multiple hashed values etc., the embodiment of the present invention does not do unique restriction herein;
Logic determining module 32, for determining the screening logic for carrying out logic restriction to screening range according to configuration file, Such as:It is equal to, is more than, is less than, is more than or equal to, is less than or equal to, the embodiment of the present invention does not do unique restriction herein;
Enquiry module 33, for generating screening conditions according to screening range, screening logic and screening item, according to screening conditions Inquire the selection result.
Screening module 3 can be generated by server according to the screening parameter that configuration file and terminal are transmitted to as a result, The retrieval sentence for meeting retrieval logic and range, the selection result is inquired by enquiry module 33 for screening server, to sieve It selects result to feed back to the screening page of terminal, is referred to for user so that user can obtain desired information.
Seventh embodiment of the invention, the embodiment of the present invention are on the basis of above-mentioned six embodiments, to screen the place of item Reason device is that sieve option configuration makeup is set, server is rear end and for terminal is front end, and a sheet is introduced in conjunction with attached drawing 5, Fig. 6 The application example of invention.
As shown in figure 5, the sieve option configuration makeup in the embodiment of the present invention is set including screening item generating means 01, screening item Calibration equipment 02 and screening item retrieve device 03.Screening item is configured in configuration file by screening item generating means 01, passes through reading Configuration file is taken flexibly to generate the screening page.The page is screened to generate sieve option-tag according to configuration file content, screen in item Hold, all screening items are selected the screening parameter of situation to be transmitted to rear end and carry out phase by the screening page automatically when user clicks screening item Close business processing.Screening item calibration equipment 02 carries out about the screening parameter that front end passes over according to configuration file by rear end Whether beam is verified, check screening parameter in agreement range.Front end is avoided to forge screening item and cause some potential risks.Afterwards End fails by carrying out related prompt when restrictive verify, and after constraining verification, screening item retrieval device 03 is passed according to front end The screening parameter and configuration file passed generate satisfaction retrieval logic and the retrieval sentence of range is screened for rear end.Screening The workflow that item configuration makeup is set specifically refers to Fig. 6.
In Fig. 6:
1) it is screening item can be directly acquired by configuration item, according to rule life according to configuration file content that, which generates screening item, At screening item, screening item is calculated from data source.
If directly acquiring screening item by way of configuration item, a generating means 01 are screened by item is screened and are configured to configuration When in file, can directly it be configured in configuration file by screening item by hand-coding mode or by code building mode, This, the embodiment of the present invention does not do unique restriction for the mode of writing or generating mode, then by reading configuration file come directly Screening item is obtained, screening item is presented in the screening page, optionally, such as:It is recorded in configuration file, fieldname=is straight It obtains and takes, city, Beijing:010;Chengdu:028;Chongqing:023, that is, Beijing indicates that Chengdu is indicated with 028 with 010, and Chongqing is forever 023 indicates, specific representation can not do unique restriction according to developer's self-defining, the present invention, then screen herein City is presented in the page and screens item, and the sieve option content such as selection Beijing, Chengdu and Chongqing can be clicked for user, and they Actual value be respectively 010,028,023.
Item is screened if being generated according to rule, item will be screened when being configured in configuration file by screening a generating means 01, can Screening item is generated or obtained according to transformation rule, that is, transfer algorithm, such as:0 represents the today that can be shown as exact date, -1 generation Table yesterday and 0 represent this week, -1 represents this month etc., and specific transformation rule can be according to converting letter determined by actual demand Depending on number (here, the embodiment of the present invention does not make transformation rule unique restriction).For example, being recorded in configuration file Fieldname=escapes obtain, and in date created, transformation rule is as follows:
Today:0;Yesterday:-1;The day before yesterday:- 2, that is, indicated with number 0 today, yesterday is indicated with number -1, day before yesterday number Word -2 indicates, then screens a generating means 01 and the screening item of date created is presented in the screening page, and can be clicked for user Today, yesterday, day before yesterday of selection etc. sieve option content.Being divided into preposition conversion according to the opportunity of rule conversion, (user front end operates Preceding conversion, what user was passed back to back-end server when selecting is that transformed value such as selects today, and that pass server-side back is 2018- 05-15) converts and (converted after user front end operation, what user was passed back to server when selecting is the value such as choosing before conversion with postposition Today is selected, pass server-side back is 0, and 2018-05-15 is converted into back-end server).It is screened about being generated by rule , it is further abstract, it can be understood as there are one abstract tables to store:Configuration item, display items, transmission item, application item etc., It is exactly the process for obtaining other items by configuration item and utilizing so to be generated by rule and screen item.
If calculating screening item by the way that data source is arranged, a generating means 01 are screened by item is screened and are configured to configuration file It, can be by calculating screening item from data source when middle, wherein need to first pass through data source when obtaining screening item from data source and obtain Sieve option content is got, then is presented in the screening page to select for user by the screening item of generation, be calculated from data source It includes by from the select distince modes and the libraries solr in relational database to obtain screening itemDeng, This does not do unique restriction.Optionally, when obtaining screening item by data source, for example, by being recorded in configuration file, Fieldname=data sources obtain, city, then screen and screening item in city is presented on the page, but specific screening item is to pass through pass It is that select distinct fieldname in database obtain out, or by from Solr databases Fieldname obtains out, or by way of other data sources etc., does not do unique restriction herein.
2) verification of binding characters is to screen the screening parameter that item calibration equipment 02 transmits front end to verify, confirm its In screening item specified by configuration file.
3) parsings screening range is that screening item retrieval device 03 obtains the corresponding inquiry model of each parameter according to screening parameter It encloses, such as:Between some occurrence, two occurrences, multiple hashed values etc..
4) parsings screening logic is to screen item retrieval device 03 to carry out logic limit to the value for screening range according to configuration file It is fixed, such as:It is equal to, be more than, be less than, be more than or equal to, is less than or equal to.
5) it is that screening item retrieval device 03 is generated according to screening range, screening logic, sieve option content that, which generates screening conditions, The query statement of the selection result can be inquired.
Sieve option configuration makeup in the embodiment of the present invention, which is set, to be realized from configuration file to page presentation, rear end screening zero Coding, carry out similar functions new demand exploitation when reduce development cost, carry out screening item change when reduce maintenance at This, carries out enhancing system data safety when restrictive verification.Height is set in sieve option configuration makeup provided in an embodiment of the present invention Cohesion, code utilization rate are high, are conducive to code refactoring and optimization.
Eighth embodiment of the invention provides a kind of computer readable storage medium, is stored on computer readable storage medium Computer program, the step of following method is realized when computer program is executed by processor:
Step S11, server will screen the configuration of item characteristic information and be sent to end in configuration file, and by configuration file End;So that terminal generates the screening page according to configuration file, wherein being presented according to the screening in configuration file in the screening page The screening item that item characteristic information generates;
Step S12 receives the screening parameter for carrying out being generated when screening selection in the screening page of terminal;
Step S13 obtains the selection result according to configuration file and screening parameter, and the selection result is fed back to the sieve of terminal Page selection face.
The specific embodiment process of above method step can be found in second and arrive 3rd embodiment, and the present embodiment is no longer heavy herein It repeats again.
Ninth embodiment of the invention provides a kind of computer equipment, and computer equipment includes:Memory, processor and storage On a memory and the computer program that can run on a processor, following method is realized when computer program is executed by processor The step of:
Step S11, server will screen the configuration of item characteristic information and be sent to end in configuration file, and by configuration file End;So that terminal generates the screening page according to configuration file, wherein being presented according to the screening in configuration file in the screening page The screening item that item characteristic information generates;
Step S12 receives the screening parameter for carrying out being generated when screening selection in the screening page of terminal;
Step S13 obtains the selection result according to configuration file and screening parameter, and the selection result is fed back to the sieve of terminal Page selection face.
The specific embodiment process of above method step can be found in second and arrive 3rd embodiment, and the present embodiment is no longer heavy herein It repeats again.
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements include not only those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this There is also other identical elements in the process of element, method, article or device.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited in above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, all of these belong to the protection of the present invention.

Claims (11)

1. a kind of processing method of screening item, which is characterized in that including:
Server will screen the configuration of item characteristic information and be sent to terminal in configuration file, and by the configuration file;So that institute It states terminal and the terminal screening page is generated according to the configuration file, wherein being presented in the screening page according to configuration text The screening item that the screening item characteristic information in part generates;
Receive the screening parameter for carrying out being generated when screening selection in the screening page of the terminal;
The selection result is obtained according to the configuration file and the screening parameter, and the selection result is fed back into the terminal The screening page.
2. the method as described in claim 1, which is characterized in that described to be obtained according to the configuration file and the screening parameter The selection result further comprises:
Restrictive verification is carried out to the screening parameter according to the configuration file, with the determination screening parameter whether described In the screening item that the screening item characteristic information in configuration file limits, if so, according to the configuration file and the sieve Select the selection result described in parameter acquiring.
3. the method as described in claim 1, which is characterized in that described to be obtained according to the configuration file and the screening parameter The selection result, including:
The corresponding screening range of each parameter is determined according to the screening parameter;
The screening logic that logic restriction is carried out to the screening range is determined according to the configuration file;
Screening conditions are generated according to the screening range, the screening logic and the screening item, are looked into according to the screening conditions Ask out the selection result.
4. the method as described in claim 1, which is characterized in that the screening item characteristic information is configured in the following way in institute It states in configuration file:
In such a way that configuration item is set;Or
In such a way that self-defined transformation rule is set;Or
In such a way that data source is set.
5. the method as described in claim 1-4 is any, which is characterized in that the screening item includes:
Sieve option-tag;And/or
Sieve option content.
6. a kind of processing unit of screening item, which is characterized in that including:
Configuration module is sent out for making server that will screen the configuration of item characteristic information in configuration file, and by the configuration file Give terminal;So that the terminal generates the screening page according to the configuration file, wherein presenting root in the screening page The screening item generated according to the screening item characteristic information in the configuration file;
Receiving module, for receiving the screening parameter for carrying out being generated when screening selection in the screening page of the terminal;
Screening module, for obtaining the selection result according to the configuration file and the screening parameter, and by the selection result Feed back to the screening page of the terminal.
7. device as claimed in claim 6, which is characterized in that further include:
Correction verification module, for carrying out restrictive verification to the screening parameter according to the configuration file, with the determination screening Whether parameter is in the screening item that the screening item characteristic information in the configuration file limits, if so, being matched according to described It sets file and the screening parameter obtains the selection result.
8. method as claimed in claim 6, which is characterized in that the screening module, including:
Range determination module, for determining the corresponding screening range of each parameter according to the screening parameter;
Logic determining module, for determining that the screening for carrying out logic restriction to the screening range is patrolled according to the configuration file Volume;
Enquiry module, for generating screening conditions according to the screening range, the screening logic and the screening item, according to institute It states screening conditions and inquires the selection result.
9. the device as described in claim 6-8 is any, which is characterized in that the screening item includes:
Sieve option-tag;And/or
Sieve option content.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program, the step of method as described in any one of claim 1 to 5 is realized when the computer program is executed by processor.
11. a kind of computer equipment, which is characterized in that the computer equipment includes:It memory, processor and is stored in described It is real when the computer program is executed by the processor on memory and the computer program that can run on the processor Now the step of method as described in any one of claim 1 to 5.
CN201810552797.4A 2018-05-31 2018-05-31 A kind of processing method, device, storage medium and the equipment of screening item Pending CN108804629A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810552797.4A CN108804629A (en) 2018-05-31 2018-05-31 A kind of processing method, device, storage medium and the equipment of screening item

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810552797.4A CN108804629A (en) 2018-05-31 2018-05-31 A kind of processing method, device, storage medium and the equipment of screening item

Publications (1)

Publication Number Publication Date
CN108804629A true CN108804629A (en) 2018-11-13

Family

ID=64089907

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810552797.4A Pending CN108804629A (en) 2018-05-31 2018-05-31 A kind of processing method, device, storage medium and the equipment of screening item

Country Status (1)

Country Link
CN (1) CN108804629A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109783134A (en) * 2019-01-17 2019-05-21 无锡华云数据技术服务有限公司 Front end page configuration method, device and electronic equipment
CN113254730A (en) * 2021-04-23 2021-08-13 北京车智赢科技有限公司 Data searching method, computing device and readable medium
CN113449221A (en) * 2021-03-22 2021-09-28 北京新氧科技有限公司 Page screening method and device, terminal equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102567032A (en) * 2010-12-08 2012-07-11 金蝶软件(中国)有限公司 Common interface configuration method and computer
WO2013174200A1 (en) * 2012-05-24 2013-11-28 腾讯科技(深圳)有限公司 Code analysis method and code analysis system, computer storage media
CN103678585A (en) * 2013-12-11 2014-03-26 北京先进数通信息技术股份公司 User data screening method and system
CN106776644A (en) * 2015-11-24 2017-05-31 大唐软件技术股份有限公司 A kind of reporting system collocation method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102567032A (en) * 2010-12-08 2012-07-11 金蝶软件(中国)有限公司 Common interface configuration method and computer
WO2013174200A1 (en) * 2012-05-24 2013-11-28 腾讯科技(深圳)有限公司 Code analysis method and code analysis system, computer storage media
CN103678585A (en) * 2013-12-11 2014-03-26 北京先进数通信息技术股份公司 User data screening method and system
CN106776644A (en) * 2015-11-24 2017-05-31 大唐软件技术股份有限公司 A kind of reporting system collocation method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109783134A (en) * 2019-01-17 2019-05-21 无锡华云数据技术服务有限公司 Front end page configuration method, device and electronic equipment
CN113449221A (en) * 2021-03-22 2021-09-28 北京新氧科技有限公司 Page screening method and device, terminal equipment and storage medium
CN113449221B (en) * 2021-03-22 2023-09-01 北京新氧科技有限公司 Page screening method and device, terminal equipment and storage medium
CN113254730A (en) * 2021-04-23 2021-08-13 北京车智赢科技有限公司 Data searching method, computing device and readable medium
CN113254730B (en) * 2021-04-23 2024-03-15 北京车智赢科技有限公司 Data searching method, computing device and readable medium

Similar Documents

Publication Publication Date Title
US20210056259A1 (en) System and method for reliable extraction and mapping of data to and from customer forms
CN102117202B (en) J2EE architecture-based code generating device
CN108804629A (en) A kind of processing method, device, storage medium and the equipment of screening item
US9224132B1 (en) Case management system
CA2497742A1 (en) Real-time aggregation of data within an enterprise planning environment
CN105915438A (en) Message pushing method, apparatus, and system
US20080091700A1 (en) Network-based document generation and processing
WO2001061569A2 (en) A system and method for automating the assembly, processing and delivery of documents
EP1573615A2 (en) Deploying multiple enterprise planning models across clusters of applications servers
CA2498436A1 (en) Selective deployment of software extensions within an enterprise modeling environment
Martin et al. Cataloging e-books and vendor records
KR20190004043A (en) Integrated management method and system of online shopping mall based on API
CN106651562A (en) Tax-related information acquisition method and system
CN113191127A (en) Nuclear power management information-based user-defined form system and method
US8280896B2 (en) Reporting row structure for generating reports using focus areas
CN110826896A (en) Data processing control method and device, computer equipment and storage medium
US20100162143A1 (en) Systems and methods for business driven application development
CN109213782A (en) Configuration, display methods, device and the communication equipment of search interface
CN104040537B (en) The system and method for automatically generating and performing of data base querying
Joyfong et al. Preparation of Smart Card Data for Food Purchase Analysis of Students through Process Mining
MXPA04001294A (en) Use of data mapping to drive document contents and distribution settings.
CN104182433A (en) Pivot analysis method using condition group
US7065741B2 (en) Method of designing organizational information processing and operational system based upon information providers and information consumers
US11960489B2 (en) System, method and software for digitizing and automating the auditing process
US20070179638A1 (en) Process configuration tool

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181113