CN110069755A - Method, apparatus, computer equipment and the storage medium that data are sent - Google Patents
Method, apparatus, computer equipment and the storage medium that data are sent Download PDFInfo
- Publication number
- CN110069755A CN110069755A CN201910218787.1A CN201910218787A CN110069755A CN 110069755 A CN110069755 A CN 110069755A CN 201910218787 A CN201910218787 A CN 201910218787A CN 110069755 A CN110069755 A CN 110069755A
- Authority
- CN
- China
- Prior art keywords
- parameter
- data format
- data
- property
- format
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2455—Query execution
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/12—Use of codes for handling textual entities
- G06F40/126—Character encoding
Abstract
This application discloses method, apparatus, computer equipment and storage mediums that a kind of data are sent, and wherein method includes: to read the parameter to be committed to rear end;According to position of the parameter in front-end interface, the property of the parameter is obtained;According to the property of the parameter, obtained and first data format in the property of preset parameter and the mapping table of data format;The character types for reading the parameter obtain corresponding second data format of the character types;Judge whether second data format is identical as first data format;If so, sending the rear end for the parameter.The application is detected automatically by front end and to be sent to the data of rear end and whether meet corresponding call format to reduce and send the case where invalid data is to rear end.When the data that discovery will be sent to rear end when front end do not meet corresponding data format, corresponding format is converted thereof into automatically, and the speed that operation system generates order can be improved.
Description
Technical field
This application involves big data technical field is arrived, method, apparatus, the computer of a kind of data transmission are especially related to
Equipment and storage medium.
Background technique
In the operation system of some networks, when user fills in data in webpage, the front end where webpage reads use
The data information that family is filled in is sent to rear end, and rear end carries out checking treatment to these data again, is then sent to server with life
At the demand information of user.Certain customers are during inputting information on the webpage of front end, due to being unfamiliar with to operation system,
Occur when inputting information abnormal operation, input data format not pair or other reasons, cause the data for being submitted to rear end different
Often, effective demand information can not be generated.
Summary of the invention
The main purpose of the application is to provide a kind of data that the data that be sent to rear end to front end automatically are tested
Method, apparatus, computer equipment and the storage medium of transmission.
In order to achieve the above-mentioned object of the invention, the application proposes a kind of method that data are sent, comprising:
Read the parameter to be committed to rear end that the user inputs in front-end interface;
According to position of the parameter in front-end interface, the property of the parameter is obtained;
According to the property of the parameter, acquisition and institute in the property of preset parameter and the mapping table of data format
State the first data format;
The character types for reading the parameter obtain corresponding second data format of the character types;
Judge whether second data format is identical as first data format;
If so, sending the rear end for the parameter.
Further, described the step of sending the rear end for the parameter, comprising:
Judge whether the parameter has preset threshold range according to the property of the parameter;
If so, judging whether the parameter exceeds the threshold range;
If it is not, sending the rear end for the parameter.
Further, the property of the parameter is the date, second data format for judging the parameter whether with institute
After stating the identical step of the first data format, comprising:
If the second data format of the parameter is different from first data format, by the Parameter Switch at it is described
The parameter of the identical format of first data format;
The rear end is sent by the parameter after the format transformation.
Further,
It is described by the Parameter Switch at format identical with first data format parameter the step of, comprising:
According to semantic analysis technology, the exact date information of the parameter is parsed;
The exact date information is converted into the text of the first data format.
Further, second data format for judging parameter step whether identical with first data format
After rapid, comprising:
If the second data format of the parameter is different from first data format, standby signal is loaded in output device
On.
Further, the position according to the parameter in front-end interface, the step of obtaining the property of the parameter
Later, comprising:
If the property of the parameter is preset privacy property, load after the parameter desensitization process is existed
On the display screen of front end.
Further, if the property of the parameter is preset privacy property, after the parameter desensitization process
Load is after the step on the display screen of front end, comprising:
The parameter is sent to the user terminal, in order to which user confirms.
The application also provides a kind of device that data are sent, comprising:
Read parameter module, the parameter to be committed to rear end inputted for reading the user in front-end interface;
It obtains attribute modules and obtains the property of the parameter for the position according to the parameter in front-end interface;
First format module, for the property according to the parameter, in the property of preset parameter and pair of data format
It answers in relation table and obtains and first data format;
Second format module obtains corresponding second number of the character types for reading the character types of the parameter
According to format;
Judge format module, for judge the parameter the second data format whether with the first data format phase
Together;
First sending module, if the second data format for the parameter is identical as first data format, by institute
It states parameter and is sent to the rear end.
The application also provides a kind of computer equipment, including memory and processor, and the memory is stored with computer
The step of program, the processor realizes any of the above-described the method when executing the computer program.
The application also provides a kind of computer readable storage medium, is stored thereon with computer program, the computer journey
The step of method described in any of the above embodiments is realized when sequence is executed by processor.
Method, apparatus, computer equipment and the storage medium that the data of the application are sent, being detected automatically by front end will send out
Whether the data for giving rear end meet corresponding call format to reduce and send the case where invalid data is to rear end.When front end is found
When being sent to the data of rear end and not meeting corresponding data format, corresponding format is converted thereof into automatically, industry can be improved
The speed of business system generation order.
Detailed description of the invention
Fig. 1 is the flow diagram for the method that the data of one embodiment of the application are sent;
Fig. 2 is the structural schematic block diagram for the device that the data of one embodiment of the application are sent;
Fig. 3 is the structural schematic block diagram of the first format module of the device that the data of one embodiment of the application are sent;
Fig. 4 is the structural schematic block diagram for the device that the data of one embodiment of the application are sent;
Fig. 5 is the structural schematic block diagram of the conversion module for the device that the data of one embodiment of the application are sent;
Fig. 6 is the structural schematic block diagram for the device that the data of one embodiment of the application are sent;
Fig. 7 is the structural schematic block diagram for the device that the data of one embodiment of the application are sent;
Fig. 8 is the structural schematic block diagram of the computer equipment of one embodiment of the application.
The embodiments will be further described with reference to the accompanying drawings for realization, functional characteristics and the advantage of the application purpose.
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.
Referring to Fig.1, the embodiment of the present application provides a kind of method that data are sent, comprising steps of
S1, the parameter to be committed to rear end is read;
S2, the position according to the parameter in front-end interface, obtain the property of the parameter;
S3, according to the property of the parameter, obtained in the property of preset parameter and the mapping table of data format
With first data format;
S4, the character types for reading the parameter, obtain corresponding second data format of the character types;
S5, judge whether second data format is identical as first data format;
S6, if so, sending the rear end for the parameter.
As described in above-mentioned steps S1, front end, that is, website front end part operates in the end PC, is presented on the browsers such as mobile terminal
The webpage of user's browsing, can also define front end is the end PC or mobile terminal etc. for sending data to the terminal of rear end.Front end with
Rear end is connected by back end communications.User inputs data into rear end by front end, is interacted with rear end, can handle on line one
A little business.For user in transacting business, rear end needs to receive some information of user's input, including various types of ginsengs
Number.Such as the parameter of the kind seed type such as user time, quantity, name for being inputted by front end.User has input parameter in front end
Afterwards, indicate that these parameters will be submitted to rear end, then the parameter of user's input is read in front end.In one embodiment, join
When number is the date on identity card, the identity card scanned picture of user's input is read in front end, then uses at specified position
OCR technique automatically identifies the parameter.
As described in above-mentioned steps S2, when the parameter of user is read in front end, while parameter is read in the position of front-end interface, root
According to parameter in the position of front-end interface, the property of the parameter is got.Because front-end interface is ginseng fixed, that each position is filled in
Number is fixed property, therefore, front end can according to parameter in the position of front-end interface come property getparms.Parameter
Property refers to the attribute that client needs the information submitted to rear end.For example, a insurance of client's on-line purchase, then need to fill in body
Part card number, client input 18 bit digitals in the position for filling in identification card number of front-end interface, then front end gets user's input
The property of this 18 bit digital is identification card number.
As described in above-mentioned steps S3, after front end gets the property of parameter, then preset property is corresponding with data format
In relation table, find and the first data format.The property of parameter and the corresponding relationship of data format are staff according to industry
The type of business and be stored in rear end after pre-setting, after front end is opened, the corresponding relationship is loaded into front end automatically.One
In specific embodiment, rear end is the server of the marketing insurance of an insurance company, the property of partial parameters and data format
Corresponding relationship is as follows:
As described in above-mentioned steps S4, parameter is read in front end first, and parameter includes the character of multiple character types, different number
Character and different types of character combine and form different data format, server is according to the type of each character of parameter
And quantity obtains the second data format of the parameter.Character includes a plurality of types of characters such as number, letter, Chinese character, symbol;
Corresponding relationship included by data format and parameter between character types and quantity is to preset in the server.Server tune
With the character types after the preset corresponding relationship further according to the parameter read, the second data format is obtained.Same data lattice
Formula can have the combination of the different type of various ways and the character of quantity.
As described in above-mentioned steps S5, get the second data format of parameter, then judge the data format of parameter with it is upper
Whether identical state the first data format.For example, the property for getting parameter is cell-phone number, then find in the above correspondence relationship
Data format is 11 bit digitals, then judges whether the second data format of the parameter is 11 bit digitals, if 11 bit digitals, then sentence
It is correct for determining the second data format of parameter.
As described in above-mentioned steps S6, if it is decided that the second data format of parameter is identical as the first data format, illustrates visitor
Family is correctly, therefore, to control the parameter and be sent to rear end, client is allowed to continue to handle phase on format in the information that front end is filled in
The business answered.
It in one embodiment, will if the second data format of the above-mentioned parameter is identical as first data format
The step of parameter is sent to the rear end, comprising:
S61, judge whether the parameter has preset threshold range according to the property of the parameter;
S62, if so, judging whether the parameter exceeds the threshold range;
S63, if it is not, sending the rear end for the parameter.
In the present embodiment, if the second data format for getting parameter is identical as first data format, critical parameter
Second data format be correctly, for further avoid client's input error either undesirable parameter, also according to
The property of the parameter of user's input judges whether the numerical value of the parameter of user's input is in correct range.Therefore, sentence first
Whether the parameter for being sent to rear end of breaking has threshold range, and each parameter with threshold range is added with by staff
Label, also, it is provided with the mapping table of each parameter and each threshold range.Whether front end has label to sentence according to parameter
It is disconnected whether to be preset with threshold range.Likewise, the corresponding threshold range of the property of each parameter is different.Staff
According to the type of business, the property of each parameter of the business and the corresponding relationship of threshold range are set, after being then store in
The corresponding relationship is loaded into front end automatically after front end is opened by end.Front end is according to the property of parameter, first by whether having
Label is when being determined with, then corresponding with the relationship of threshold range in the property of the parameter to determine whether there is preset threshold range
The corresponding threshold range of parameter is found in table.After front end gets threshold range, judge whether above-mentioned parameter exceeds the threshold value
Range.If further determining that parameter that user fills in meets the requirement of rear end without departing from the threshold range, then sending out parameter
It is sent to rear end, convenient for the cracking business for handling above-mentioned client according to parameter in rear end.This programme further decreases data exception
May, to the experience of the more preferably more rapid transacting business of user.
In one embodiment, in the purchase page of a certain insurance products, the purchase age of the insurance products is 18
Between year to 50 years old.It is then 18-50 in the corresponding threshold range of this parameter that the property of parameter is the age, if before user passes through
Holding in the number for the position input for filling in the age is between 18-50, then without departing from threshold range, then this parameter is sent out in front end
It is sent to rear end, to handle the related service of the client.
In one embodiment, the property of above-mentioned parameter is the date, and the second data format of the above-mentioned judgement parameter is
After the no step identical as first data format, comprising:
If the second data format of S7, the parameter is different from first data format, by the Parameter Switch at
The parameter of the identical format of first data format;
S8, the rear end is sent by the parameter after the format transformation.
In the present embodiment, if the second data format of parameter is different from the first data format, front end recognition goes out the of parameter
Then gap between two data formats and the first data format is adjusted the second format of parameter according to default rule
It is whole, to make parameter be automatically adjusted to format identical with data format, directly the parameter of user's input is carried out convenient for rear end
Processing.When the property of parameter is cell-phone number, first data format is 11 continuous numbers, and front end reads parameter
When number is not 11 continuous numbers, the space in the parameter is deleted with the parameter after being adjusted, if adjusted
Second data format of parameter is identical as the first data format, then parameter adjusted is directly sent to rear end, avoids client
Manually adjust the second format of parameter, elapsed time.When the property of parameter is the date of birth, first data format is 8
The continuous number in position, the number that front end reads parameter is not 8 continuous numbers, judges whether the second format of parameter is the date
Then the date is converted into 8 representation methods continuously counted if it is, reading the date represented by parameter by format,
Then parameter adjusted is sent to rear end.
In one embodiment, it is above-mentioned by the Parameter Switch at the parameter of format identical with first data format
The step of, comprising:
S71, according to semantic analysis technology, parse the exact date information of the parameter;
S72, the text that the exact date information is converted into the first data format.
In the present embodiment, semantic analysis technology is understood that out the meaning of each character.According to the semanteme of each character, parsing
The exact date information of parameter out.According to the meaning that each character of the first data format represents, exact date information is parsed, is had
Body date information include year information, month information, day information.Then the year, month, day information in exact date information is filled into again
Designated position in the corresponding format module of first data format, to form the exact date letter of the text of the first data format
Breath.
In one embodiment, above-mentioned the second data format for judging the parameter whether with the first data format phase
After same step, comprising:
If the second data format of S9, the parameter is different from first data format, load standby signal is being exported
On device.
In the present embodiment, when the second data format of the parameter that user inputs in front end and the first data format be not identical
When, judge that the data of client's input are wrong, is not used to handle corresponding business, therefore generate standby signal, and add prompt letter
Number load on the output device of front end.Output device refers to the device that client can be allowed to see or hear, such as display screen, LED
Lamp, loudspeaker, buzzer etc., these output devices belong to front end.Standby signal corresponds to output device setting.Such as, exist
The dialog box of format error is popped up on display screen, or control loudspeaker issues the sound of format error, for reminding user.
In one embodiment, the above-mentioned position according to the parameter in front-end interface, obtains the property of the parameter
The step of after, comprising:
If the property of S211, the parameter are preset privacy property, by load after the parameter desensitization process preceding
On the display screen at end.
In the present embodiment, after parameter is input to front end by client, front end is loaded data on display screen in order to client
The correctness of parameter is checked, but handles hall etc. when front end is in public occasion, such as in bank, the parameter of client can quilt
Other people see, are possible to be seen the privacy parameters of client by other people in this way, generate the risk that privacy leaks.Therefore, having must
The parameter of present customers in public is protected.The ginseng that front end is inputted by client in the designated position of front-end interface
After property of the number to get parameter, judge whether the property is the privacy property belonged in privacy property list, if it is,
It will be loaded on the display screen of front end after the parameter desensitization process, if it is not, then being loaded directly into the parameter in front end display screen
On.When by parameter desensitization process, according to the specific nature of parameter by parameter whole desensitization process or part desensitization process, preferably
Be by argument section desensitization process so that the content that client can check parameter is unlikely to spy upon privacy information by other people again
It arrives.Wherein, privacy property list is background work personnel privacy information according to required for the business on backstage and deposits after setting
The corresponding relationship is loaded into front end automatically after front end is opened in rear end by storage.
In one embodiment, if the property of the above-mentioned parameter is preset privacy property, the parameter is desensitized
Load is after the step on the display screen of front end after processing, comprising:
S212, the parameter is sent to the user terminal, in order to which user confirms.
In the present embodiment, when parameter is privacy property, needs user to confirm, parameter is subjected to desensitization process, in order to
The privacy for protecting user, avoids the privacy of user from being shown in front end and is seen by other people;Parameter is sent to what user specified simultaneously
User terminal, for example the mobile phone of user is sent to by short message or is sent to the reserved account end of user by wechat or mail
It holds, confirms in the terminal for passing through oneself in order to user.
In one embodiment, the above-mentioned date is the date of birth, and the above-mentioned parameter by after the format transformation is sent to institute
Before the step of stating rear end, comprising:
S801, the date of birth for reading the parameter;
S802, judge the birth phase of the parameter whether in preset date range;
S803, the parameter after the format transformation is sent to the instruction of the rear end if so, generating.
In the present embodiment, when the second data format of above-mentioned parameter is not the format of preset date of birth, first by ginseng
Number is converted into preset date of birth format, and parameter is updated.Parameter is the date of birth, and there are many formats on date, according to
Character has number, Chinese character, number plus Chinese character to combine three kinds to divide;There are date, day month year, month day year etc. more to divide according to sequence
Kind format.The parameter for the date of birth that front end will acquire, when the date format of parameter and preset format are different, then by its turn
Change preset specified format into.Then the parameter for reading the specified format after conversion, reads out year, month, day, respectively to read out
Whether then exact date calls preset date range, judge above-mentioned parameter corresponding exact date in preset date model
In enclosing, if parameter corresponding exact date is in preset date range, critical parameter is effective parameter, therefore will
Parameter after format transformation is sent to rear end.
In conclusion the method that the data of the application are sent, the data of rear end will be sent to by, which being detected automatically by front end, is
It is no to meet corresponding call format to reduce and send the case where invalid data is to rear end.When front end, discovery will be sent to the number of rear end
When according to not meeting corresponding data format, corresponding format is converted thereof into automatically, and operation system can be improved and generate order
Speed.
Referring to Fig. 2, a kind of device that data are sent also is provided in the embodiment of the present application, comprising:
Read parameter module 1, the parameter to be committed to rear end inputted for reading the user in front-end interface;
It obtains attribute modules 2 and obtains the property of the parameter for the position according to the parameter in front-end interface;
First format module 3, for the property according to the parameter, in the property of preset parameter and pair of data format
It answers in relation table and obtains and first data format;
Second format module 4 obtains corresponding second number of the character types for reading the character types of the parameter
According to format;
Format module 5 is judged, for judging whether second data format is identical as first data format;
First sending module 6, if the second data format for the parameter is identical as first data format, by institute
It states parameter and is sent to the rear end.
In the present embodiment, front end, that is, website front end part operates in the end PC, and it is clear to be presented to user on the browsers such as mobile terminal
The webpage look at, can also define front end is the end PC or mobile terminal etc. for sending data to the terminal of rear end.Front and rear end is logical
Later end communication connection.User inputs data into rear end by front end, is interacted with rear end, and some industry can be handled on line
Business.For user in transacting business, rear end needs to receive some information of user's input, including various types of parameters.Example
Time that such as user is inputted by front end, quantity, the parameter of name kind seed type.After user has input parameter in front end, table
Show that these parameters will be submitted to rear end, then reads the parameter that parameter module 1 reads user's input.In a specific embodiment
In, when parameter is the date on identity card, the identity card scanned picture of user's input is read in front end, then at specified position
Using OCR technique, the parameter is automatically identified.
When the parameter of user is read in front end, while obtaining attribute modules 2 and reading parameter in the position of front-end interface, according to ginseng
Number gets the property of the parameter in the position of front-end interface.Because front-end interface be it is fixed, the parameter that each position is filled in is
Fixed property, therefore, front end can according to parameter in the position of front-end interface come property getparms.The property of parameter
Refer to the attribute that client needs the information submitted to rear end.For example, a insurance of client's on-line purchase, then need to fill in identity card
Number, client front-end interface fill in identification card number position input 18 bit digitals, then front end get user input this 18
The property of bit digital is identification card number.
After front end gets the property of parameter, corresponding relationship of first format module 3 in preset property and data format
In table, find and the first data format.The property of parameter and the corresponding relationship of data format are staff according to business
Type and be stored in rear end after pre-setting, after front end is opened, the corresponding relationship is loaded into front end automatically.It is specific one
In embodiment, rear end is the server of the marketing insurance of an insurance company, and the property of partial parameters is corresponding with data format
Relationship is as follows:
Second format module 4 reads parameter first, and parameter includes the character of multiple character types, the character of different number with
And different types of character combines and forms different data formats, the second format module 4 is according to the type of each character of parameter
And quantity obtains the second data format of the parameter.Character includes a plurality of types of characters such as number, letter, Chinese character, symbol;
Corresponding relationship included by data format and parameter between character types and quantity is to preset in the server.Server tune
With the character types after the preset corresponding relationship further according to the parameter read, the second data format is obtained.Same data lattice
Formula can have the combination of the different type of various ways and the character of quantity.
Parameter is read in front end first, gets the second data format of parameter, then judges that format module 5 judges parameter
Whether the second data format and above-mentioned first data format are identical.For example, the property for getting parameter is cell-phone number, then above-mentioned
It is 11 bit digitals that data format is found in corresponding relationship, then judges whether the second data format of the parameter is 11 bit digitals,
If 11 bit digitals, then the second data format of critical parameter is correct.
If it is determined that the second data format of parameter is identical as the first data format, illustrate the information that client fills in front end
It is that correctly, therefore, the first sending module 6 controls the parameter and is sent to rear end on format, client is allowed to continue to handle accordingly
Business.
Referring to Fig. 3, in one embodiment, above-mentioned first sending module 6 includes:
Threshold cell 61 is obtained, for judging whether the parameter has preset threshold value model according to the property of the parameter
It encloses;
Judgment threshold unit 62 judges whether the parameter exceeds institute if having preset threshold range for the parameter
State threshold range;
Transmission unit 63, if sending the rear end for the parameter without departing from the threshold range for the parameter.
In the present embodiment, if the second data format for getting parameter is identical as first data format, critical parameter
Second data format be correctly, for further avoid client's input error either undesirable parameter, also according to
The property of the parameter of user's input judges whether the numerical value of the parameter of user's input is in correct range.Likewise, each
The corresponding threshold range of the property of parameter is different.Staff sets each of the business according to the type of business
The property of parameter and the corresponding relationship of threshold range, are then store in rear end, after front end is opened, automatically add the corresponding relationship
It is downloaded to front end.Front end obtains whether threshold cell 61 has label to determine whether having by parameter first according to the property of parameter
Preset threshold range then obtains threshold cell 61 in the property of the parameter and the corresponding table of the relationship of threshold range when being determined with
In find the corresponding threshold range of parameter.After front end gets threshold range, judgment threshold unit 62 judges that above-mentioned parameter is
It is no to exceed the threshold range.If further determining that the parameter that user fills in meets wanting for rear end without departing from the threshold range
It asks, transmission unit 63 then sends rear end for parameter, convenient for the cracking business for handling above-mentioned client according to parameter in rear end.We
Case further decreases the possibility of data exception, to the experience of the more preferably more rapid transacting business of user.
In one embodiment, in the purchase page of a certain insurance products, the purchase age of the insurance products is 18
Between year to 50 years old.It is then 18-50 in the corresponding threshold range of this parameter that the property of parameter is the age, if before user passes through
Holding in the number for the position input for filling in the age is between 18-50, then without departing from threshold range, then this parameter is sent out in front end
It is sent to rear end, to handle the related service of the client.
Referring to Fig. 4, in one embodiment, the property of above-mentioned parameter is the date, the device that above-mentioned data are sent further include:
Conversion module 7, if the second data format for the parameter is different from first data format, by the ginseng
Number is converted into the parameter of format identical with first data format;
Second sending module 8, for sending the rear end for the parameter after the format transformation.
In the present embodiment, if the second data format of parameter is different from the first data format, conversion module 7 identifies parameter
The second data format and the first data format between gap, then the second format of parameter is carried out according to default rule
Adjustment, to make parameter be automatically adjusted to format identical with data format, convenient for rear end directly to user input parameter into
Row processing.When the property of parameter is cell-phone number, first data format is 11 continuous numbers, and front end reads parameter
Number when not being 11 continuous numbers, the space in the parameter is deleted with the parameter after being adjusted, if after adjustment
Parameter the second data format it is identical as the first data format, then parameter adjusted is directly sent to rear end, avoids visitor
Family manually adjusts the second format of parameter, elapsed time.When the property of parameter is the date of birth, first data format is
8 continuous numbers, the number that front end reads parameter is not 8 continuous numbers, judges whether the second format of parameter is day
Then the date is converted into 8 expression sides continuously counted if it is, reading the date represented by parameter by phase format
Method, then parameter adjusted is sent to rear end by the second sending module 8.
Referring to Fig. 5, in one embodiment, above-mentioned conversion module 7 includes:
Resolution unit 71, for parsing the exact date information of the parameter according to semantic analysis technology;
Converting unit 72, for the exact date information to be converted into the text of the first data format.
In the present embodiment, semantic analysis technology is understood that out the meaning of each character.Resolution unit 71 is according to each character
Semanteme, parse the exact date information of parameter.According to the meaning that each character of the first data format represents, parse specific
Date information, exact date information include year information, month information, day information.Then converting unit 72 is again by exact date information
In year, month, day information be filled into the designated position in the corresponding format module of the first data format, to form the first data lattice
The exact date information of the text of formula.
Referring to Fig. 6, in one embodiment, the device that above-mentioned data are sent further include:
Cue module 9, if the second data format for the parameter is different from first data format, load prompt
Signal is on an output device.
In the present embodiment, when the second data format of the parameter that user inputs in front end and the first data format be not identical
When, judge that the data of client's input are wrong, is not used to handle corresponding business, therefore cue module 9 generates standby signal, and
Add standby signal load on the output device of front end.Output device refers to the device that client can be allowed to see or hear, such as aobvious
Display screen, LED light, loudspeaker, buzzer etc., these output devices belong to front end.Standby signal corresponds to output device and sets
It sets.Such as, the dialog box of format error is popped up on a display screen, or control loudspeaker issues the sound of format error, for reminding
User.
Referring to Fig. 7, in one embodiment, the device that above-mentioned data are sent further include:
Desensitize module 211, if the property for the parameter is preset privacy property, by the parameter desensitization process
It is loaded on the display screen of front end afterwards.
In the present embodiment, after parameter is input to front end by client, front end is loaded data on display screen in order to client
The correctness of parameter is checked, but handles hall etc. when front end is in public occasion, such as in bank, the parameter of client can quilt
Other people see, are possible to be seen the privacy parameters of client by other people in this way, generate the risk that privacy leaks.Therefore, having must
The parameter of present customers in public is protected.The ginseng that front end is inputted by client in the designated position of front-end interface
After property of the number to get parameter, judge whether the property is the privacy property belonged in privacy property list, if so, de-
Quick module 211 will then load on the display screen of front end after the parameter desensitization process, if it is not, then the parameter is loaded directly into
On the display screen of front end.It is according to the specific nature of parameter that parameter whole desensitization process or part is de- when by parameter desensitization process
Quick processing, preferably by argument section desensitization process so that the content that client can check parameter is unlikely to make privacy information again
It is spied upon and arrives by other people.Wherein, privacy property list be background work personnel privacy information according to required for the business on backstage and
It is stored in rear end after setting, after front end is opened, the corresponding relationship is loaded into front end automatically.
In one embodiment, the device that above-mentioned data are sent further include:
Confirmation module 212, for the parameter to be sent to the user terminal, in order to which user confirms.
In the present embodiment, when parameter is privacy property, needs user to confirm, parameter is subjected to desensitization process, in order to
The privacy for protecting user, avoids the privacy of user from being shown in front end and is seen by other people;Parameter is sent to by confirmation module 212 simultaneously
The user terminal that user specifies, for example the mobile phone of user is sent to by short message or the pre- of user is sent to by wechat or mail
The account terminal stayed, in order to which user in oneself terminal by confirming.
In one embodiment, the above-mentioned date is the date of birth, the device that above-mentioned data are sent further include:
Date module is read, for reading the date of birth of the parameter;
Date module is judged, for judging the birth phase of the parameter whether in preset date range;
Instruction module is generated, if the birth phase for the parameter in preset date range, generates the conversion
Parameter after format is sent to the instruction of the rear end.
In the present embodiment, when the second data format of above-mentioned parameter is not the format of preset date of birth, first by ginseng
Number is converted into preset date of birth format, and parameter is updated.Parameter is the date of birth, and there are many formats on date, according to
Character has number, Chinese character, number plus Chinese character to combine three kinds to divide;There are date, day month year, month day year etc. more to divide according to sequence
Kind format.The parameter for reading the date of birth that date module obtains, when the date format of parameter and preset format are different, then
Convert thereof into preset specified format.Then the parameter for reading the specified format after conversion, reads out year, month, day respectively, with
It reads out exact date, then judges that date module calls preset date range, judge above-mentioned parameter corresponding exact date
Whether in preset date range, if parameter corresponding exact date is the critical parameter in preset date range
It is effective parameter, generates instruction module and therefore generate the instruction for sending the parameter after format transformation to rear end.
In conclusion the device that the data of the application are sent, the data of rear end will be sent to by, which being detected automatically by front end, is
It is no to meet corresponding call format to reduce and send the case where invalid data is to rear end.When front end, discovery will be sent to the number of rear end
When according to not meeting corresponding data format, corresponding format is converted thereof into automatically, and operation system can be improved and generate order
Speed.
Referring to Fig. 8, a kind of computer equipment is also provided in the embodiment of the present application, which can be server,
Its internal structure can be as shown in Figure 8.The computer equipment includes processor, the memory, network connected by system bus
Interface and database.Wherein, the processor of the Computer Design is for providing calculating and control ability.The computer equipment is deposited
Reservoir includes non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program
And database.The internal memory provides environment for the operation of operating system and computer program in non-volatile memory medium.It should
The database of computer equipment for storing data format, parameter the data such as threshold range.The network of the computer equipment connects
Mouth with external terminal by network connection for being communicated.To realize a kind of data hair when the computer program is executed by processor
The method sent.
Above-mentioned processor executes the step of method that above-mentioned data are sent: read the user front-end interface input to
It is submitted to the parameter of rear end;According to position of the parameter in front-end interface, the property of the parameter is obtained;According to the ginseng
Several property obtains and first data format in the property of preset parameter and the mapping table of data format;It reads
The character types for taking the parameter obtain corresponding second data format of the character types;Judge second data format
It is whether identical as first data format;If so, sending the rear end for the parameter.
In one embodiment, the step of parameter is sent the rear end by above-mentioned processor execution, comprising: according to
The property of the parameter judges whether the parameter has preset threshold range;If so, it is described to judge whether the parameter exceeds
Threshold range;If it is not, sending the rear end for the parameter.
In one embodiment, the property of above-mentioned parameter is the date, and above-mentioned processor execution judges the second of the parameter
Whether data format after the step identical as first data format, comprising: if the second data format of the parameter with
First data format is different, by the Parameter Switch at the parameter of format identical with first data format;By institute
Parameter after stating format transformation is sent to the rear end.
In one embodiment, above-mentioned processor execute it is described by the Parameter Switch at the first data format phase
The step of parameter of same format, comprising: according to semantic analysis technology, parse the exact date information of the parameter;It will be described
Exact date information is converted into the text of the first data format.
In one embodiment, whether above-mentioned processor executes the second data format for judging the parameter with described first
After the identical step of data format, comprising: if the second data format of the parameter is different from first data format,
Load standby signal on an output device.
In one embodiment, above-mentioned processor executes the position according to the parameter in front-end interface, described in acquisition
After the step of property of parameter, comprising: if the property of the parameter is preset privacy property, at the parameter desensitization
Load is on the display screen of front end after reason.
In one embodiment, if the property that above-mentioned processor executes the parameter is preset privacy property, by institute
Load is after the step on the display screen of front end after stating parameter desensitization process, comprising: the parameter is sent to the user terminal,
In order to which user confirms.
In conclusion whether the computer equipment of the application is detected automatically by front end and to be sent to the data of rear end and meet
Corresponding call format reduces the case where sending invalid data to rear end.The data that discovery will be sent to rear end when front end are not inconsistent
When closing corresponding data format, corresponding format is converted thereof into automatically, and the speed that operation system generates order can be improved.
It will be understood by those skilled in the art that structure shown in Fig. 8, 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.
One embodiment of the application also provides a kind of computer readable storage medium, is stored thereon with computer program, calculates
Machine program realizes a kind of method that data are sent when being executed by processor, specifically: it reads the user and is inputted in front-end interface
The parameter to be committed to rear end;According to position of the parameter in front-end interface, the property of the parameter is obtained;According to institute
The property for stating parameter obtains and the first data lattice in the property of preset parameter and the mapping table of data format
Formula;The character types for reading the parameter obtain corresponding second data format of the character types;Judge second data
Whether format is identical as first data format;If so, sending the rear end for the parameter.
In one embodiment, the step of parameter is sent the rear end by above-mentioned processor execution, comprising: according to
The property of the parameter judges whether the parameter has preset threshold range;If so, it is described to judge whether the parameter exceeds
Threshold range;If it is not, sending the rear end for the parameter.
In one embodiment, the property of above-mentioned parameter is the date, and above-mentioned processor execution judges the second of the parameter
Whether data format after the step identical as first data format, comprising: if the second data format of the parameter with
First data format is different, by the Parameter Switch at the parameter of format identical with first data format;By institute
Parameter after stating format transformation is sent to the rear end.
In one embodiment, above-mentioned processor executes
It is described by the Parameter Switch at format identical with first data format parameter the step of, comprising: root
According to semantic analysis technology, the exact date information of the parameter is parsed;The exact date information is converted into the first data lattice
The text of formula.
In one embodiment, whether above-mentioned processor executes the second data format for judging the parameter with described first
After the identical step of data format, comprising: if the second data format of the parameter is different from first data format, add
Carry standby signal on an output device.
In one embodiment, above-mentioned processor executes the position according to the parameter in front-end interface, described in acquisition
After the step of property of parameter, comprising: if the property of the parameter is preset privacy property, at the parameter desensitization
Load is on the display screen of front end after reason.
In one embodiment, if the property that above-mentioned processor executes the parameter is preset privacy property, by institute
Load is after the step on the display screen of front end after stating parameter desensitization process, comprising: the parameter is sent to the user terminal,
In order to which user confirms.
In conclusion the computer readable storage medium of the application detects the data that be sent to rear end by front end automatically
Whether corresponding call format is met to reduce and send the case where invalid data is to rear end.When front end, discovery will be sent to rear end
When data do not meet corresponding data format, corresponding format is converted thereof into automatically, and operation system can be improved and generate order
Speed.
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
Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer
In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein,
Any reference used in provided herein and embodiment to memory, storage, database or other media,
Including 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 speed are according to rate SDRAM (SSRSDRAM), 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..
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, device, article or the method that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, device, article or method institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, device of element, article or method.
The foregoing is merely preferred embodiment of the present application, are not intended to limit the scope of the patents of the application, all utilizations
Equivalent structure or equivalent flow shift made by present specification and accompanying drawing content is applied directly or indirectly in other correlations
Technical field, similarly include in the scope of patent protection of the application.
Claims (10)
1. a kind of method that data are sent, the data are the parameter that user inputs in front-end interface characterized by comprising
Read the parameter to be committed to rear end that the user inputs in front-end interface;
According to position of the parameter in front-end interface, the property of the parameter is obtained;
According to the property of the parameter, obtained and the ginseng in the property of preset parameter and the mapping table of data format
Corresponding first data format of several property;
The character types for reading the parameter obtain corresponding second data format of the character types;
Judge whether second data format is identical as first data format;
If so, sending the rear end for the parameter.
2. the method that data as described in claim 1 are sent, which is characterized in that described to send the rear end for the parameter
The step of, comprising:
Judge whether the parameter has preset threshold range according to the property of the parameter;
If so, judging whether the parameter exceeds the threshold range;
If it is not, sending the rear end for the parameter.
3. the method that data as described in claim 1 are sent, which is characterized in that the property of the parameter is the date, described to sentence
Whether the second data format of the parameter of breaking is after the step identical as first data format, comprising:
If the second data format of the parameter is different from first data format, by the Parameter Switch at described first
The parameter of the identical format of data format;
The rear end is sent by the parameter after the format transformation.
4. the method that data as claimed in claim 3 are sent, which is characterized in that it is described by the Parameter Switch at described the
The step of parameter of the identical format of one data format, comprising:
According to semantic analysis technology, the exact date information of the parameter is parsed;
The exact date information is converted into the text of the first data format.
5. the method that data as described in claim 1 are sent, which is characterized in that the second data lattice of the judgement parameter
Whether formula is after the step identical as first data format, comprising:
If the second data format of the parameter is different from first data format, load standby signal is on an output device.
6. the method that data as described in claim 1 are sent, which is characterized in that it is described according to the parameter in front-end interface
Position, after the step of obtaining the property of the parameter, comprising:
If the property of the parameter is preset privacy property, the display screen in front end will be loaded after the parameter desensitization process
On.
7. the method that data as claimed in claim 6 are sent, which is characterized in that if the property of the parameter is preset
Privacy property, then by load after the parameter desensitization process after the step on the display screen of front end, comprising:
The parameter is sent to the user terminal, in order to which user confirms.
8. the device that a kind of data are sent, the data are the parameter that user inputs in front-end interface characterized by comprising
Read parameter module, the parameter to be committed to rear end inputted for reading the user in front-end interface;
It obtains attribute modules and obtains the property of the parameter for the position according to the parameter in front-end interface;
First format module, for the property according to the parameter, in the property of preset parameter pass corresponding with data format
It is that the first data format corresponding with the property of the parameter is obtained in table;
Second format module obtains the corresponding second data lattice of the character types for reading the character types of the parameter
Formula;
Format module is judged, for judging whether second data format is identical as first data format;
First sending module, if the second data format for the parameter is identical as first data format, by the ginseng
Number is sent to the rear end.
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 7 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 7 is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910218787.1A CN110069755A (en) | 2019-03-21 | 2019-03-21 | Method, apparatus, computer equipment and the storage medium that data are sent |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910218787.1A CN110069755A (en) | 2019-03-21 | 2019-03-21 | Method, apparatus, computer equipment and the storage medium that data are sent |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110069755A true CN110069755A (en) | 2019-07-30 |
Family
ID=67366496
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910218787.1A Pending CN110069755A (en) | 2019-03-21 | 2019-03-21 | Method, apparatus, computer equipment and the storage medium that data are sent |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110069755A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111026763A (en) * | 2019-12-13 | 2020-04-17 | 中国建设银行股份有限公司 | Data processing method, device, equipment and storage medium |
CN112598478A (en) * | 2020-12-29 | 2021-04-02 | 深圳市富途网络科技有限公司 | Order acquisition method and related device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104391934A (en) * | 2014-11-21 | 2015-03-04 | 深圳市银雁金融配套服务有限公司 | Data calibration method and device |
CN107437179A (en) * | 2017-08-09 | 2017-12-05 | 中国银行股份有限公司 | A kind of banking channels system that risk monitoring and control and special service are provided |
CN109344183A (en) * | 2018-01-30 | 2019-02-15 | 深圳壹账通智能科技有限公司 | Data interactive method, device, computer equipment and storage medium |
CN109413154A (en) * | 2018-09-26 | 2019-03-01 | 平安普惠企业管理有限公司 | Conversion method of data format, device, computer equipment and storage medium |
-
2019
- 2019-03-21 CN CN201910218787.1A patent/CN110069755A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104391934A (en) * | 2014-11-21 | 2015-03-04 | 深圳市银雁金融配套服务有限公司 | Data calibration method and device |
CN107437179A (en) * | 2017-08-09 | 2017-12-05 | 中国银行股份有限公司 | A kind of banking channels system that risk monitoring and control and special service are provided |
CN109344183A (en) * | 2018-01-30 | 2019-02-15 | 深圳壹账通智能科技有限公司 | Data interactive method, device, computer equipment and storage medium |
CN109413154A (en) * | 2018-09-26 | 2019-03-01 | 平安普惠企业管理有限公司 | Conversion method of data format, device, computer equipment and storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111026763A (en) * | 2019-12-13 | 2020-04-17 | 中国建设银行股份有限公司 | Data processing method, device, equipment and storage medium |
CN112598478A (en) * | 2020-12-29 | 2021-04-02 | 深圳市富途网络科技有限公司 | Order acquisition method and related device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104412272B (en) | User is set to sign in the method, system and equipment of browser | |
US20040015369A1 (en) | Workflow system for managing versions of a document, and method for managing versions of a document using the same | |
US10560484B2 (en) | Managing access in one or more computing systems | |
US20110047385A1 (en) | Methods and Systems for Digitally Signing a Document | |
CN110287119A (en) | A kind of automatic interface testing method and device based on python | |
CN108132926A (en) | Contract generating means and system | |
US20110213857A1 (en) | Communication system for process-oriented acquisition, storage, transmission, and provision of data | |
CN111243596A (en) | Insurance information acquisition method, device and equipment based on voice recognition and storage medium | |
CN107634947A (en) | Limitation malice logs in or the method and apparatus of registration | |
CN110312048A (en) | Intelligent calling-out method, device, computer equipment and storage medium | |
CN108833265A (en) | Message treatment method, device, server and storage medium | |
CN110069755A (en) | Method, apparatus, computer equipment and the storage medium that data are sent | |
CN106992975A (en) | The recognition methods of malice network address and device | |
US20150193123A1 (en) | Transfer of data between applications using intermediate user interface | |
CN108062714A (en) | Annuity data transmission method for uplink, device, computer equipment and storage medium | |
CN108062713A (en) | Annuity data file acquisition methods, device, computer equipment and storage medium | |
CN109544100B (en) | Case processing reminding method, device, equipment and medium based on deep learning | |
CN107329945A (en) | Method for displaying and processing, displaying processing unit and the mobile terminal of short message | |
CN116308236A (en) | Mail processing method, mail processing device, electronic equipment and storage medium | |
CN115984047A (en) | Document processing method, device, equipment and medium for realizing IA by combining RPA and AI | |
CN116644473A (en) | Data desensitization method and device | |
CN109857941A (en) | A kind of input method and device of policy information | |
EP1953723A2 (en) | System for providing automatic responses to a massive input of messages. | |
CN114492358A (en) | RPA and AI-based method, device, equipment and medium for processing pre-family notification document | |
CN114238585A (en) | Query method and device based on 5G message, 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 |