CN109165266A - List generation method, device, computer equipment and storage medium - Google Patents
List generation method, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN109165266A CN109165266A CN201811023314.8A CN201811023314A CN109165266A CN 109165266 A CN109165266 A CN 109165266A CN 201811023314 A CN201811023314 A CN 201811023314A CN 109165266 A CN109165266 A CN 109165266A
- Authority
- CN
- China
- Prior art keywords
- list
- configuration rule
- rule information
- verification
- information
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 43
- 238000012795 verification Methods 0.000 claims description 101
- 238000004590 computer program Methods 0.000 claims description 23
- 241001269238 Data Species 0.000 claims description 10
- 230000005540 biological transmission Effects 0.000 claims description 3
- 238000012937 correction Methods 0.000 claims description 3
- 201000010099 disease Diseases 0.000 description 16
- 208000037265 diseases, disorders, signs and symptoms Diseases 0.000 description 16
- 238000010586 diagram Methods 0.000 description 5
- 230000001186 cumulative effect Effects 0.000 description 3
- 239000004744 fabric Substances 0.000 description 3
- 230000001360 synchronised effect Effects 0.000 description 3
- 238000013459 approach Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 239000000203 mixture Substances 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000009534 blood test Methods 0.000 description 1
- 238000013524 data verification Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000002708 enhancing effect Effects 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000002604 ultrasonography Methods 0.000 description 1
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
This application involves a kind of list generation method, device, computer equipment and storage medium based on data resource.The described method includes: receiving the list that terminal is sent generates instruction;Instruction, which is generated, according to list obtains corresponding configuration rule information;Obtain multiple rules properties corresponding with configuration rule information;The default display order of multiple rules properties is obtained, and page layout is generated according to default display order;The corresponding attribute information of rules properties is obtained, and list content is generated according to attribute information;Multiple lists are generated according to page layout and list content, multiple lists are sent to terminal.Page layout can be generated according to the default display order of rules properties using this method, page layout is constructed in real time according to demand without developer, list content can be generated according to the corresponding attribute information of rules properties, solves the mode for needing developer to write list in real time according to business demand, the problem of bring human resources largely consume reduces human resources consumption.
Description
Technical field
This application involves field of computer technology, more particularly to a kind of list generation method, device, computer equipment and
Storage medium.
Background technique
With the development of computer technology, list is also widely used, user during online often
Encounter various lists, such as the list for acquiring registration information, log-on message, configuration information etc..Currently, list master
It is used for server by utilizing terminal and carries out data acquisition, generally comprise form tags, form fields and list button.Traditionally, it is
The form list content of system usually all be fixation finish writing in list, versatility is not high, need by list developer according to
Business demand is completed with writing program mode (PM) written in code line by line, and each system can usually have adding for many pages
Adduction modification operation, such as using business scenario each input content of variation and list increase etc., it is therefore desirable to
It puts into very big manpower to go to complete required operation to be performed, human resources consumption is huge.
Summary of the invention
Based on this, it is necessary to which aiming at the problem that above-mentioned list develops operation and consumes a large amount of manpower data, providing one kind can
Reduce list generation method, device, computer equipment and the storage medium of human resources consumption.
A kind of list generation method, which comprises
It receives the list that terminal is sent and generates instruction;
Instruction, which is generated, according to the list obtains corresponding configuration rule information;
Obtain multiple rules properties corresponding with the configuration rule information;
The default display order of multiple rules properties is obtained, and page cloth is generated according to the default display order
Office;
The corresponding attribute information of the rules properties is obtained, and list content is generated according to the attribute information;
Multiple lists are generated according to the page layout and the list content, multiple lists are sent to the end
End.
The configuration rule information includes configuration rule information field in one of the embodiments: the method is also wrapped
It includes:
Pre-set configuration rule information field is obtained, generates SQL statement using the configuration rule information field;
Corresponding configuration rule information is read in multiple source datas library by the SQL statement;
Target database is written into the configuration rule information read.
In one of the embodiments, it is described according to the list generate instruction obtain corresponding configuration rule information it
Before, comprising:
It is generated and is instructed according to the list, inquired configuration rule corresponding with list generation instruction in database and believe
Breath;
When corresponding configuration rule information is not present in the database, obtains the list and generate the corresponding rule of instruction
Then attribute;
According to the rules properties, corresponding display order and attribute information are set;
Corresponding configuration rule information is generated according to the display order and the attribute information.
In one of the embodiments, the method also includes:
Obtain data type corresponding with multiple rules properties;
Corresponding verification type is preset according to multiple data types, and is multiple verification type settings pair
The check logic answered;
The verification request that terminal is sent is received, and parses the verification request, obtains page corresponding with the verification request
The data type that face includes;
The corresponding verification type is obtained according to the data type, and obtains verification corresponding with the verification type
Logic.
In one of the embodiments, the method also includes:
Obtain the input information of terminal;
The input information is verified using the check logic;
When the input information is by the verification, sends and verify successful information to the terminal.
A kind of list generating means, described device include:
List generates command reception module, and the list for receiving terminal transmission generates instruction;
Configuration rule data obtaining module obtains corresponding configuration rule information for generating instruction according to the list;
Rules properties obtain module, for obtaining multiple rules properties corresponding with the configuration rule information;
Page layout generation module, for obtaining the default display order of multiple rules properties, and according to described pre-
If display order generates page layout;
List content generating module is believed for obtaining the corresponding attribute information of the rules properties, and according to the attribute
Breath generates list content;
List generation module, for generating multiple lists according to the page layout and the list content, by multiple institutes
It states list and is sent to the terminal.
Described device further includes synchronization module in one of the embodiments, for obtaining pre-set configuration rule
Information field generates SQL statement using the configuration rule information field;
Corresponding configuration rule information is read in multiple source datas library by the SQL statement;
Target database is written into the configuration rule information read.
Described device further includes correction verification module in one of the embodiments, for obtaining and multiple rules properties
Corresponding data type;
Corresponding verification type is preset according to multiple data types, and is multiple verification type settings pair
The check logic answered;
The verification request that terminal is sent is received, and parses the verification request, obtains page corresponding with the verification request
The data type that face includes;
The corresponding verification type is obtained according to the data type, and obtains verification corresponding with the verification type
Logic.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the processing
Device performs the steps of when executing the computer program
It receives the list that terminal is sent and generates instruction;
Instruction, which is generated, according to the list obtains corresponding configuration rule information;
Obtain multiple rules properties corresponding with the configuration rule information;
The default display order of multiple rules properties is obtained, and page cloth is generated according to the default display order
Office;
The corresponding attribute information of the rules properties is obtained, and list content is generated according to the attribute information;
Multiple lists are generated according to the page layout and the list content, multiple lists are sent to the end
End.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor
It is performed the steps of when row
It receives the list that terminal is sent and generates instruction;
Instruction, which is generated, according to the list obtains corresponding configuration rule information;
Obtain multiple rules properties corresponding with the configuration rule information;
The default display order of multiple rules properties is obtained, and page cloth is generated according to the default display order
Office;
The corresponding attribute information of the rules properties is obtained, and list content is generated according to the attribute information;
Multiple lists are generated according to the page layout and the list content, multiple lists are sent to the end
End.
Above-mentioned list generation method, device, computer equipment and storage medium, by obtaining page corresponding with page request
The list that face includes generates instruction, generates instruction according to list and obtains corresponding configuration rule information, obtains and advise with the configuration
The then corresponding multiple rules properties of information obtain the default display order of multiple rules properties, and raw according to default display order
At page layout, the corresponding attribute information of rules properties is obtained, and list content is generated according to attribute information, according to page layout
Multiple lists are generated with list content, multiple lists are sent to terminal.According to the corresponding rules properties of configuration rule information
Default display order generates page layout, constructs page layout in real time according to demand without developer, can be according to from database
The attribute information corresponding with rules properties of middle acquisition generates list content, solves and need developer according to business demand
The problem of real-time mode for writing list, bring human resources largely consume, reduces human resources consumption.
Detailed description of the invention
Fig. 1 is the application scenario diagram of list generation method in one embodiment;
Fig. 2 is the flow diagram of list generation method in one embodiment;
Fig. 3 is the flow diagram of list generation method in another embodiment;
Fig. 4 is the structural block diagram of list generating means in one embodiment;
Fig. 5 is the internal structure chart of computer equipment in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood
The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not
For limiting the application.
List generation method provided by the present application, can be applied in application environment as shown in Figure 1.Wherein, terminal 102
It is communicated with server 104 by network by network.Server 104 receives the list that terminal 102 is sent and generates instruction, root
Instruction is generated according to list and obtains corresponding configuration rule information, is obtained multiple rules properties corresponding with configuration rule information, is obtained
The default display order of multiple rules properties is taken, and page layout is generated according to default display order, it is corresponding to obtain rules properties
Attribute information, and list content is generated according to attribute information, multiple lists is generated according to page layout and list content, will be more
A list is sent to terminal 102.Wherein, terminal 102 can be, but not limited to be various personal computers, laptop and plate
Computer, server 104 can be realized with the server cluster of the either multiple server compositions of independent server.
In one embodiment, as shown in Fig. 2, providing a kind of list generation method, it is applied in Fig. 1 in this way
It is illustrated for server, comprising the following steps:
S202, the list that server receiving terminal is sent generate instruction.
S204, server generate instruction according to list and obtain corresponding configuration rule information.
Specifically, list generates instruction and parses to obtain for the list acquisition request sent according to terminal, and terminal needs to access
When some page, list acquisition request is sent to server, after server parses the list acquisition request, list generation is obtained and refers to
It enables, and responds the list and generate instruction, instruction is generated according to the list and obtains corresponding configuration rule information from database.
S206, server obtain multiple rules properties corresponding with configuration rule information.
Specifically, multiple rules properties in configuration rule information, including rule number, attribute English name, attribute Chinese
Title, data type and default display order.Rule number is corresponding with each rules properties, including 1 to 5, corresponding attribute English
Title includes minAge, maxAge, minSumIll, maxSumIll and ruleTip, corresponding Chinese are as follows: most off year
Age, max age, minimum accumulative weight disease physical examination insurance, largest cumulative weight disease physical examination insurance and prompt, corresponding data type
Are as follows: Integer, Integer, BigDecimal, BigDecimal and string, corresponding display order are 1 to 5.
Wherein, Integer indicates integer/integer, opposite with decimal/floating number, and for storing integer, integer includes just
Integer, negative integer and zero, also to the data according to storage come the data type of indicator variable.BigDecimal is used to being more than
The number of 16 significance bits carries out accurate operation.It is as shown in table 1 that specific rules properties configure relevant list content.
1 rules properties of table configure the list table of contents for including
S208 obtains the default display order of multiple rules properties, and generates page layout according to default display order.
Specifically, the default display order of multiple rules properties is obtained, wherein the display order of minAge (minimal ages)
Display order for 1, maxAge (max age) is that the display order of 2, minSumIll (the accumulative weight disease physical examination insurance of minimum) is
The display order that the display order of 3, maxSumIll (the accumulative weight disease physical examination insurances of minimum) is 4, ruleTip (prompt) is 5, root
According to multiple rules properties and corresponding generation page layout.
S210, server obtains the corresponding attribute information of rules properties, and generates list content according to attribute information.
S212 generates multiple lists according to page layout and list content, multiple lists is sent to terminal.
Specifically, the corresponding attribute information of rules properties includes the specific value of each attribute, and server is according to rule number
The configured content of loading rule specifically includes attribute English name, attribute Chinese including the specific object that every rule uses
Title and data type, and particular content, i.e. attribute information are configured to respective attributes, and generate in list according to attribute information
Hold.Multiple rules properties and corresponding value or concrete configuration content are as shown in table 2.
2 rules properties particular content table of table
Wherein, when warrantee reaches the standard of physical examination, prompt information shows the mark of the accumulative weight disease physical examination protection amount of warrantee
It is quasi-, that is to say, that prompt information provides the project that warrantee needs to check UP.
Specifically, if warrantee's weight strong wind danger is insured amount to be greater than 0, and the age of warrantee is more than or equal to minimal ages, small
In being equal to max age, and to be greater than minimum weight disease physical examination insured amount for the accumulative weight disease physical examination risk of warrantee, is more than or equal to maximum weight disease
Physical examination is insured amount, then, warrantee reaches physical examination standard, that is to say, that the accumulative weight disease physical examination protection amount of warrantee reaches weight disease physical examination
Insured amount standard.
For example, the age of some warrantee was between maximum small 18 years old age and max age 40 years old, add up weight disease
Physical examination protection amount adds up between physical examination protection amount 600000.00 and largest cumulative weight disease physical examination protection amount 800000.00 in minimum, so by
Guarantor reaches physical examination standard, and associated prompt information is general inspection+blood test+B ultrasound.
Server generates multiple lists according to obtained page layout and list content, and multiple lists are sent to pair
The terminal answered.
Above-mentioned list generation method generates instruction by obtaining the list that the page corresponding with page request includes, according to
List generates instruction and obtains corresponding configuration rule information, obtains multiple rules properties corresponding with configuration rule information, obtains
The default display order of multiple rules properties, and page layout is generated according to default display order, it is corresponding to obtain rules properties
Attribute information, and list content is generated according to attribute information, multiple lists are generated according to page layout and list content, it will be multiple
List is sent to terminal.According to the default display order of the corresponding rules properties of configuration rule information, page layout is generated, is not necessarily to
Developer constructs page layout in real time according to demand, can be believed according to the attribute corresponding with rules properties obtained from database
Breath generates list content, solves the mode for needing developer to write list in real time according to business demand, bring manpower money
The problem of source largely consumes reduces human resources consumption.
In one embodiment, as shown in figure 3, providing a kind of list generation method, comprising:
S302, server obtain data type corresponding with multiple rules properties.
Specifically, data type corresponding with multiple rules properties include Integer (integer/integer),
BigDecimal (floating number accurate operational) and string (character string), server from database by obtaining multiple rules
The different types of data of attribute.
S304, server presets corresponding verification type according to multiple data types, and sets for multiple verification types
Set corresponding check logic.
Specifically, server is different data by first obtaining the corresponding data type of multiple rules properties, and in advance
Corresponding verification type, including integer data verification type, floating number accurate operational verification type and character string number is arranged in type
According to verification type, respectively with Integer (integer/integer), BigDecimal (floating number accurate operational) and string (word
Symbol string) it is corresponding.
Wherein, when needing to increase new Rule Information, need to fill in the relevant specifying information of each attribute, for example,
It is Integer that this attribute of minimal ages, which needs the data type inserted, i.e. integer data type, that is to say, that cannot insert it
His data type, such as string class and BigDecimal class, if filling mistake, by the verification of appearance " integer can only be inputted "
Information.It is BigDecimal when needing the data type inserted in minimum accumulative this insured amount attribute of weight disease physical examination, cannot inserts
Other data types, such as Integer class or string class, for example Chinese character cannot be inputted, when inputting Chinese character, it may appear that " only
The check information of energy input number ".
S306, the verification request that server receiving terminal is sent, and verification request is parsed, it obtains corresponding with verification request
The data type that the page includes.
S308, server based on data type obtain corresponding verification type, and obtain verification corresponding with verification type
Logic.
Specifically, after the verification request that server receiving terminal is sent, verification request is parsed, obtains and verifies
The rules properties for requesting the corresponding page to include, and data type server corresponding with rules properties is obtained according to acquired in
Data type, corresponding with data type verification type is obtained from database, and the acquisition pair from the verification type
The check logic answered.
S310, server obtains the input information of terminal, and is verified using check logic to input information.
S312, when input information passes through verification, server, which is sent, verifies successful information to terminal.
Specifically, the input information of terminal acquired in server includes that list generates instruction, and is generated according to list
The configuration rule information obtained is instructed, is verified according to configuration rule information of the check logic to acquisition.When input information is logical
When crossing corresponding verification, that is to say, that rules properties and data type and default display order etc. in input information correspond
When, expression verifies successfully, which will be sent to terminal by the information verified by corresponding verification.
Wherein, check logic includes: that it is relevant specific to need to fill in each attribute when needing to increase new Rule Information
Information, for example, needing the data type inserted in this attribute of minimal ages is Integer, i.e. integer data type, that is,
Other data types cannot be inserted by saying, such as string class and BigDecimal class, " can only be defeated by appearance if filling mistake
Enter integer " check information.When the data type inserted in minimum accumulative insured amount this attribute needs of weight disease physical examination is
BigDecimal cannot insert other data types, such as Integer class or string class, for example cannot input Chinese character, when defeated
When entering Chinese character, it may appear that the check information of " number can only be inputted ".
Above-mentioned list generation method, server is by obtaining the corresponding data type of multiple rules properties, according to multiple numbers
Corresponding verification type is preset according to type, corresponding check logic is set for multiple verification types, receives what terminal was sent
Verification request, and verification request is parsed, the data type that the page corresponding with verification request includes is obtained, is obtained according to data type
Corresponding verification type is taken, and obtains check logic corresponding with verification type, the input information of terminal is obtained, is patrolled using verification
It collects and input information is verified, when input information passes through verification, send and verify successful information to terminal.It can be by generation
List is divided into three different data types and is verified, when reducing due to data type and verifying type not to correspondence
Duplication check problem improves the efficiency of list verification.
In one embodiment, a kind of list generation method, this method are provided further include:
Server obtains pre-set configuration rule information field, generates SQL statement using configuration rule information field;
Corresponding configuration rule information is read in multiple source datas library by SQL statement;The configuration rule information read is written
Target database.
Specifically configuration rule information includes configuration rule information field, and configuration rule information field includes: configuration rule
Multiple rules properties in information, including rule number, attribute English name, attribute Chinese, data type and default display
Sequentially.Rule is number corresponding with each rules properties, including 1 to 5, corresponding attribute English name include minAge, maxAge,
MinSumIll, maxSumIll and ruleTip, corresponding Chinese are as follows: minimal ages, max age, minimum accumulative weight
Disease physical examination insurance, largest cumulative weight disease physical examination insurance and prompt, corresponding data type are as follows: Integer, Integer,
BigDecimal, BigDecimal and string, corresponding display order are 1 to 5.
Source database can be one or more.Source database and target database can be deployed in same clothes respectively
Business device, can also be on a different server.Source database and target database may each be relevant database, such as Sql
Server database, oracle database or MySql database etc.;It is also possible to non-relational database etc..
Terminal obtains pre-set keyword, corresponding SQL statement is generated according to keyword, using SQL statement more
Corresponding configuration rule information field is read in a source database respectively, will configuration rule information relevant to keyword respectively from
It is extracted in source database, and target database is written into the configuration rule information read.
The above method by reading out the configuration rule information in multiple source datas library, and is synchronized to local mesh
It marks in database, can be provided convenience for the acquisition of configuration rule information.
In one embodiment, a kind of list generation method is provided, obtains corresponding match generating instruction according to list
Before setting Rule Information, this method further include:
Server is generated according to list and is instructed, and inquires configuration rule information corresponding with list generation instruction in database;
When corresponding configuration rule information is not present in database, obtains list and generate the corresponding rules properties of instruction;According to rule
Corresponding display order and attribute information is arranged in attribute;Corresponding configuration rule letter is generated according to display order and attribute information
Breath.
Specifically, server is generated according to list obtained and is instructed, and is inquired in database and is generated with the presence or absence of with list
Corresponding rule configuration information is instructed, when having inquired corresponding configuration rule information, the rule that server is inquired is matched
Confidence breath extracts.When server can not inquire corresponding configuration rule information in the database, server obtains table
It is single to generate the corresponding rules properties of instruction, and corresponding display order and attribute are set according to acquired rules properties
Information.
Further, it when server does not inquire corresponding rule configuration information in the database, sends and believes to terminal
Acquisition request is ceased, after terminal receives the information acquisition request, the request is responded, corresponding configuration will be inquired from local data base
Rule Information, and the configuration rule information inquired is sent to service place database, what breath of concurrently delivering letters had transmitted disappears
Breath after server receives the message, inquires database to server again, and corresponding configuration rule letter is obtained from database
Breath.
The above method, for server whether after receiving list and generating instruction, inquiring has corresponding configuration rule in database
Then information, when corresponding information is not present, server generates the corresponding rules properties of instruction by obtaining list, regenerates
Corresponding configuration rule information, to terminal, terminal receives request and sends corresponding configuration rule information for also transmittable request
Database where to server, while server is sent a message to, server can reacquire corresponding configuration rule information, mention
The high speed of acquisition of information, while thering is approach to guarantee that information successfully obtains, improve working efficiency.
It should be understood that although each step in the flow chart of Fig. 2-3 is successively shown according to the instruction of arrow,
These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps
Execution there is no stringent sequences to limit, these steps can execute in other order.Moreover, at least one in Fig. 2-3
Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps
Completion is executed, but can be executed at different times, the execution sequence in these sub-steps or stage is also not necessarily successively
It carries out, but can be at least part of the sub-step or stage of other steps or other steps in turn or alternately
It executes.
In one embodiment, as shown in figure 4, providing a kind of list generating means, comprising: list generates command reception
Module 402, configuration rule data obtaining module 404, rules properties obtain module 406, page layout generation module 408, list
Content generating module 410 and list generation module 412, in which:
List generates command reception module 402, and the list for receiving terminal transmission generates instruction.
Configuration rule data obtaining module 404 obtains corresponding configuration rule information for generating instruction according to list.
Rules properties obtain module 406, for obtaining multiple rules properties corresponding with configuration rule information.
Page layout generation module 408, for obtaining the default display order of multiple rules properties, and according to default display
It is sequentially generated page layout.
List content generating module 410 for obtaining the corresponding attribute information of rules properties, and is generated according to attribute information
List content.
List generation module 412 sends multiple lists for generating multiple lists according to page layout and list content
To terminal.
Above-mentioned list generating means generate instruction by obtaining the list that the page corresponding with page request includes, according to
List generates instruction and obtains corresponding configuration rule information, obtains multiple rules properties corresponding with configuration rule information, obtains
The default display order of multiple rules properties, and page layout is generated according to default display order, it is corresponding to obtain rules properties
Attribute information, and list content is generated according to attribute information, multiple lists are generated according to page layout and list content, it will be multiple
List is sent to terminal.According to the default display order of the corresponding rules properties of configuration rule information, page layout is generated, is not necessarily to
Developer constructs page layout in real time according to demand, can be believed according to the attribute corresponding with rules properties obtained from database
Breath generates list content, solves the mode for needing developer to write list in real time according to business demand, bring manpower money
The problem of source largely consumes reduces human resources consumption.
In one embodiment, a kind of list generating means are provided, further includes: synchronization module is set in advance for obtaining
The configuration rule information field set generates SQL statement using configuration rule information field;By SQL statement in multiple source datas
Corresponding configuration rule information is read in library;Target database is written into the configuration rule information read.
Above-mentioned list generating means by reading out the configuration rule information in multiple source datas library, and are synchronized to
In local target database, it can be provided convenience for the acquisition of configuration rule information.
In one embodiment, a kind of list generating means are provided, further includes: configuration rule information inquiry module is used
It is instructed in being generated according to list, inquires configuration rule information corresponding with list generation instruction in database;When in database not
There are when corresponding configuration rule information, obtain list to generate the corresponding rules properties of instruction;It is arranged according to rules properties and is corresponded to
Display order and attribute information;Corresponding configuration rule information is generated according to display order and attribute information.
Above-mentioned apparatus, for server whether after receiving list and generating instruction, inquiring has corresponding configuration rule in database
Then information, when corresponding information is not present, server generates the corresponding rules properties of instruction by obtaining list, regenerates
Corresponding configuration rule information, to terminal, terminal receives request and sends corresponding configuration rule information for also transmittable request
Database where to server, while server is sent a message to, server can reacquire corresponding configuration rule information, mention
The high speed of acquisition of information, while thering is approach to guarantee that information successfully obtains, improve working efficiency.
In one embodiment, a kind of list generating means are provided, further include correction verification module, for obtaining and multiple rule
The then corresponding data type of attribute;Corresponding verification type is preset according to multiple data types, and is multiple verification types
Corresponding check logic is set;The verification request that terminal is sent is received, and parses verification request, is obtained corresponding with verification request
The data type that the page includes;Corresponding verification type is obtained according to data type, and obtains verification corresponding with verification type
Logic;Obtain the input information of terminal;Input information is verified using check logic;When input information passes through verification,
It sends and verifies successful information to terminal.
Above-mentioned apparatus, server are pre- according to multiple data types by obtaining the corresponding data type of multiple rules properties
Corresponding verification type is first set, corresponding check logic is set for multiple verification types, receives the verification request that terminal is sent,
And verification request is parsed, the data type that the page corresponding with verification request includes is obtained, is obtained according to data type corresponding
Type is verified, and obtains check logic corresponding with verification type, the input information of terminal is obtained, using check logic to input
Information is verified, and when input information passes through verification, is sent and is verified successful information to terminal.The list of generation can be divided into
Three different data types are verified, and are reduced due to data type and are verified type not to duplication check when corresponding to
Problem improves the efficiency of list verification.
Specific about list generating means limits the restriction that may refer to above for list generation method, herein not
It repeats again.Modules in above-mentioned list generating means can be realized fully or partially through software, hardware and combinations thereof.On
Stating each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also store in a software form
In memory in computer equipment, the corresponding operation of the above modules is executed in order to which processor calls.
In one embodiment, a kind of computer equipment is provided, which can be server, internal junction
Composition can be as shown in Figure 5.The computer equipment include by system bus connect processor, memory, network interface and
Database.Wherein, the processor of the computer equipment is for providing calculating and control ability.The memory packet of the computer equipment
Include non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program and data
Library.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating
The database of machine equipment is used for storage configuration Rule Information data.The network interface of the computer equipment is used for and external terminal
It is communicated by network connection.To realize a kind of list generation method when the computer program is executed by processor.
It will be understood by those skilled in the art that structure shown in Fig. 5, only part relevant to application scheme is tied
The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment
It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of computer equipment, including memory and processor are provided, which is stored with
Computer program, the processor perform the steps of when executing computer program
It receives the list that terminal is sent and generates instruction;
Instruction, which is generated, according to list obtains corresponding configuration rule information;
Obtain multiple rules properties corresponding with configuration rule information;
The default display order of multiple rules properties is obtained, and page layout is generated according to default display order;
The corresponding attribute information of rules properties is obtained, and list content is generated according to attribute information;
Multiple lists are generated according to page layout and list content, multiple lists are sent to terminal.
In one embodiment, it is also performed the steps of when processor executes computer program
Pre-set configuration rule information field is obtained, generates SQL statement using configuration rule information field;
Corresponding configuration rule information is read in multiple source datas library by SQL statement;
Target database is written into the configuration rule information read.
In one embodiment, it is also performed the steps of when processor executes computer program
It is generated and is instructed according to list, inquire configuration rule information corresponding with list generation instruction in database;
When corresponding configuration rule information is not present in database, obtains list and generate the corresponding rules properties of instruction;
According to rules properties, corresponding display order and attribute information are set;
Corresponding configuration rule information is generated according to display order and attribute information.
In one embodiment, it is also performed the steps of when processor executes computer program
Obtain data type corresponding with multiple rules properties;
Corresponding verification type is preset according to multiple data types, and corresponding verification is set for multiple verification types
Logic;
The verification request that terminal is sent is received, and parses verification request, obtaining the page corresponding with verification request includes
Data type;
Corresponding verification type is obtained according to data type, and obtains check logic corresponding with verification type;
Obtain the input information of terminal;
Input information is verified using check logic;
When input information passes through verification, sends and verify successful information to the terminal.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated
Machine program performs the steps of when being executed by processor
It receives the list that terminal is sent and generates instruction;
Instruction, which is generated, according to list obtains corresponding configuration rule information;
Obtain multiple rules properties corresponding with configuration rule information;
The default display order of multiple rules properties is obtained, and page layout is generated according to default display order;
The corresponding attribute information of rules properties is obtained, and list content is generated according to attribute information;
Multiple lists are generated according to page layout and list content, multiple lists are sent to terminal.
In one embodiment, it is also performed the steps of when computer program is executed by processor
Pre-set configuration rule information field is obtained, generates SQL statement using configuration rule information field;
Corresponding configuration rule information is read in multiple source datas library by SQL statement;
Target database is written into the configuration rule information read.
In one embodiment, it is also performed the steps of when computer program is executed by processor
It is generated and is instructed according to list, inquire configuration rule information corresponding with list generation instruction in database;
When corresponding configuration rule information is not present in database, obtains list and generate the corresponding rules properties of instruction;
According to rules properties, corresponding display order and attribute information are set;
Corresponding configuration rule information is generated according to display order and attribute information.
In one embodiment, it is also performed the steps of when computer program is executed by processor
Obtain data type corresponding with multiple rules properties;
Corresponding verification type is preset according to multiple data types, and corresponding verification is set for multiple verification types
Logic;
The verification request that terminal is sent is received, and parses verification request, obtaining the page corresponding with verification request includes
Data type;
Corresponding verification type is obtained according to data type, and obtains check logic corresponding with verification type;
Obtain the input information of terminal;
Input information is verified using check logic;
When input information passes through verification, sends and verify successful information to the terminal.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Instruct relevant hardware to complete by computer program, computer program to can be stored in a non-volatile computer readable
It takes in storage medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, this Shen
Please provided by any reference used in each embodiment to memory, storage, database or other media, may each comprise
Non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM
(PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include
Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms,
Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing
Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM
(RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment
In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance
Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art
It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application
Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.
Claims (10)
1. a kind of list generation method, which comprises
It receives the list that terminal is sent and generates instruction;
Instruction, which is generated, according to the list obtains corresponding configuration rule information;
Obtain multiple rules properties corresponding with the configuration rule information;
The default display order of multiple rules properties is obtained, and page layout is generated according to the default display order;
The corresponding attribute information of the rules properties is obtained, and list content is generated according to the attribute information;
Multiple lists are generated according to the page layout and the list content, multiple lists are sent to the terminal.
2. the method according to claim 1, wherein the configuration rule information includes configuration rule information word
Section: the method also includes:
Pre-set configuration rule information field is obtained, generates SQL statement using the configuration rule information field;
Corresponding configuration rule information is read in multiple source datas library by the SQL statement;
Target database is written into the configuration rule information read.
3. the method according to claim 1, wherein described corresponding according to list generation instruction acquisition
Before configuration rule information, comprising:
It is generated and is instructed according to the list, inquire configuration rule information corresponding with list generation instruction in database;
When corresponding configuration rule information is not present in the database, obtains the list and generate the corresponding rule category of instruction
Property;
According to the rules properties, corresponding display order and attribute information are set;
Corresponding configuration rule information is generated according to the display order and the attribute information.
4. method according to any one of claims 1 to 3, which is characterized in that the method also includes:
Obtain data type corresponding with multiple rules properties;
Corresponding verification type is preset according to multiple data types, and corresponding for multiple verification type settings
Check logic;
The verification request that terminal is sent is received, and parses the verification request, obtains page packet corresponding with the verification request
The data type included;
The corresponding verification type is obtained according to the data type, and obtains verification corresponding with the verification type and patrols
Volume.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
Obtain the input information of terminal;
The input information is verified using the check logic;
When the input information is by the verification, sends and verify successful information to the terminal.
6. a kind of list generating means, which is characterized in that described device includes:
List generates command reception module, and the list for receiving terminal transmission generates instruction;
Configuration rule data obtaining module obtains corresponding configuration rule information for generating instruction according to the list;
Rules properties obtain module, for obtaining multiple rules properties corresponding with the configuration rule information;
Page layout generation module, for obtaining the default display order of multiple rules properties, and according to described default aobvious
Show and is sequentially generated page layout;
List content generating module, for obtaining the corresponding attribute information of the rules properties, and it is raw according to the attribute information
At list content;
List generation module, for generating multiple lists according to the page layout and the list content, by multiple tables
Singly it is sent to the terminal.
7. device according to claim 6, which is characterized in that described device further includes synchronization module, for obtaining in advance
The configuration rule information field of setting generates SQL statement using the configuration rule information field;
Corresponding configuration rule information is read in multiple source datas library by the SQL statement;
Target database is written into the configuration rule information read.
8. device according to claim 6, which is characterized in that described device further includes correction verification module, is used to obtain and more
The corresponding data type of a rules properties;
Corresponding verification type is preset according to multiple data types, and corresponding for multiple verification type settings
Check logic;
The verification request that terminal is sent is received, and parses the verification request, obtains page packet corresponding with the verification request
The data type included;
The corresponding verification type is obtained according to the data type, and obtains verification corresponding with the verification type and patrols
Volume.
9. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists
In the step of processor realizes any one of claims 1 to 5 the method when executing the computer program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
The step of method described in any one of claims 1 to 5 is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811023314.8A CN109165266A (en) | 2018-09-03 | 2018-09-03 | List generation method, device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811023314.8A CN109165266A (en) | 2018-09-03 | 2018-09-03 | List generation method, device, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109165266A true CN109165266A (en) | 2019-01-08 |
Family
ID=64893944
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811023314.8A Pending CN109165266A (en) | 2018-09-03 | 2018-09-03 | List generation method, device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109165266A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109933760A (en) * | 2019-01-28 | 2019-06-25 | 平安科技(深圳)有限公司 | List generation method, device, computer equipment and computer readable storage medium |
CN110767275A (en) * | 2019-12-03 | 2020-02-07 | 中国医学科学院北京协和医院 | Disease information management system |
CN110908657A (en) * | 2019-11-15 | 2020-03-24 | 中国人民财产保险股份有限公司 | Product generation method and device |
CN111462843A (en) * | 2020-03-02 | 2020-07-28 | 心医国际数字医疗系统(大连)有限公司 | Form generation method and device, computer equipment and storage medium |
CN111722881A (en) * | 2020-05-22 | 2020-09-29 | 广东浪潮大数据研究有限公司 | Resource expansion method, system and device of container cloud platform |
WO2020199599A1 (en) * | 2019-04-04 | 2020-10-08 | 平安科技(深圳)有限公司 | Information presentation method and apparatus for work queue, and computer device and storage medium |
CN112016283A (en) * | 2020-08-18 | 2020-12-01 | 杭州指令集智能科技有限公司 | Form generation method and device |
CN112307729A (en) * | 2020-11-04 | 2021-02-02 | 恒瑞通(福建)信息技术有限公司 | Online filling report generation method and terminal |
CN113128186A (en) * | 2019-12-30 | 2021-07-16 | 陕西西部资信股份有限公司 | Form processing method and device |
CN115061866A (en) * | 2022-06-21 | 2022-09-16 | 苏州浪潮智能科技有限公司 | Simulation data generation method and system and computer equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050114765A1 (en) * | 2003-11-25 | 2005-05-26 | Gudenkauf John C. | Producing a page of information based on a dynamic edit form and one or more transforms |
CN104331290A (en) * | 2014-10-31 | 2015-02-04 | 北京思特奇信息技术股份有限公司 | Resource type management and page display method and system |
CN107015957A (en) * | 2017-03-16 | 2017-08-04 | 深圳市沃易科技有限公司 | User's list generation method and device |
CN107203595A (en) * | 2017-05-03 | 2017-09-26 | 北京海顿中科技术有限公司 | A kind of method of the dynamic generation web interface based on flexible form |
CN107656910A (en) * | 2016-07-26 | 2018-02-02 | 北京京东尚科信息技术有限公司 | Method and apparatus for generating list |
-
2018
- 2018-09-03 CN CN201811023314.8A patent/CN109165266A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050114765A1 (en) * | 2003-11-25 | 2005-05-26 | Gudenkauf John C. | Producing a page of information based on a dynamic edit form and one or more transforms |
CN104331290A (en) * | 2014-10-31 | 2015-02-04 | 北京思特奇信息技术股份有限公司 | Resource type management and page display method and system |
CN107656910A (en) * | 2016-07-26 | 2018-02-02 | 北京京东尚科信息技术有限公司 | Method and apparatus for generating list |
CN107015957A (en) * | 2017-03-16 | 2017-08-04 | 深圳市沃易科技有限公司 | User's list generation method and device |
CN107203595A (en) * | 2017-05-03 | 2017-09-26 | 北京海顿中科技术有限公司 | A kind of method of the dynamic generation web interface based on flexible form |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109933760A (en) * | 2019-01-28 | 2019-06-25 | 平安科技(深圳)有限公司 | List generation method, device, computer equipment and computer readable storage medium |
WO2020199599A1 (en) * | 2019-04-04 | 2020-10-08 | 平安科技(深圳)有限公司 | Information presentation method and apparatus for work queue, and computer device and storage medium |
CN110908657A (en) * | 2019-11-15 | 2020-03-24 | 中国人民财产保险股份有限公司 | Product generation method and device |
CN110767275A (en) * | 2019-12-03 | 2020-02-07 | 中国医学科学院北京协和医院 | Disease information management system |
CN113128186A (en) * | 2019-12-30 | 2021-07-16 | 陕西西部资信股份有限公司 | Form processing method and device |
CN111462843A (en) * | 2020-03-02 | 2020-07-28 | 心医国际数字医疗系统(大连)有限公司 | Form generation method and device, computer equipment and storage medium |
CN111722881A (en) * | 2020-05-22 | 2020-09-29 | 广东浪潮大数据研究有限公司 | Resource expansion method, system and device of container cloud platform |
CN111722881B (en) * | 2020-05-22 | 2023-08-08 | 广东浪潮大数据研究有限公司 | Resource expansion method, system and device of container cloud platform |
CN112016283A (en) * | 2020-08-18 | 2020-12-01 | 杭州指令集智能科技有限公司 | Form generation method and device |
CN112307729A (en) * | 2020-11-04 | 2021-02-02 | 恒瑞通(福建)信息技术有限公司 | Online filling report generation method and terminal |
CN115061866A (en) * | 2022-06-21 | 2022-09-16 | 苏州浪潮智能科技有限公司 | Simulation data generation method and system and computer equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109165266A (en) | List generation method, device, computer equipment and storage medium | |
CN109474578B (en) | Message checking method, device, computer equipment and storage medium | |
CN110147413A (en) | Date storage method, data query method, apparatus, equipment and storage medium | |
WO2020186783A1 (en) | Data importing method and apparatus, and computer device and storage medium | |
CN108133007A (en) | A kind of method of data synchronization and system | |
CN109829287A (en) | Api interface permission access method, equipment, storage medium and device | |
CN108628743A (en) | Applied program testing method, device, equipment and storage medium | |
CN110928802A (en) | Test method, device, equipment and storage medium based on automatic generation of case | |
CN110399294A (en) | Method for generating test case, device, computer equipment and storage medium | |
CN110362542B (en) | Nuclear power station file encoding method and device, computer equipment and storage medium | |
US20190325043A1 (en) | Method, device and computer program product for replicating data block | |
CN109816364A (en) | Transaction data processing method, device, computer equipment and storage medium | |
CN109389299A (en) | Work process flow dispositions method, device, computer equipment and storage medium | |
CN110109712A (en) | Service Component loading method, device, computer equipment and storage medium | |
CN111209061B (en) | User information filling method, device, computer equipment and storage medium | |
CN107357588B (en) | Object code generation method and device | |
CN111159040A (en) | Test data generation method, device, equipment and storage medium | |
CN109542962B (en) | Data processing method, data processing device, computer equipment and storage medium | |
CN106990974B (en) | APP updating method and device and electronic equipment | |
CN108776665B (en) | Data processing method and device | |
CN114386853A (en) | Data auditing processing method, device and equipment based on universal auditing model | |
CN109359176A (en) | Data extraction method, device, computer equipment and storage medium | |
CN109669977A (en) | Data cut-in method, device, computer equipment and the storage medium of integration across database | |
CN108196921B (en) | Document development method and device, computer equipment and storage medium | |
CN109767072A (en) | Accreditation data creation method, device, computer 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 |