CN109086442A - The methods of exhibiting and device of business datum - Google Patents
The methods of exhibiting and device of business datum Download PDFInfo
- Publication number
- CN109086442A CN109086442A CN201810934827.8A CN201810934827A CN109086442A CN 109086442 A CN109086442 A CN 109086442A CN 201810934827 A CN201810934827 A CN 201810934827A CN 109086442 A CN109086442 A CN 109086442A
- Authority
- CN
- China
- Prior art keywords
- field
- displaying
- business datum
- original
- transfer function
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Abstract
The invention discloses a kind of methods of exhibiting of business datum and devices, are related to electronic information field, this method comprises: determining the displaying style information for each displaying field for including in business datum;Field is shown for each respectively, original field associated with the displaying field is determined from the corresponding data source of business datum, to determine field transfer function corresponding to the displaying field;Wherein, field transfer function corresponding to the displaying field is used to original field associated with the displaying field being converted to the displaying field;Field is shown for each respectively, conversion process is carried out using the original field associated with the displaying field of field transfer function pair corresponding to the displaying field, the each displaying field for including in business datum is obtained, and each displaying field for including in business datum is shown.Which is avoided using the field errors problem in renewal process.
Description
Technical field
The present invention relates to electronic information fields, and in particular to a kind of methods of exhibiting and device of business datum.
Background technique
Increasingly developed with network application, the type and quantity of business datum are also increasing.Due to business datum
Exhibition method is various, in order to adapt to the demand of different business scene, in many network applications, require for initial data into
Obtain needing to show the business datum of user after the default processing of row.It is each in business datum in traditional processing mode
Show that the method for determination of field is as follows: firstly, at application and development initial stage, the quantity of the displaying field for including in business datum compared with
It is few, displaying field is directly determined according to corresponding original field, accordingly, it is desirable to formulate be converted to from original field it is corresponding
Show the transfer function of field.Next, with the continuous renewal of application, the quantity for the displaying field for including in business datum
Gradually increase, at this point, much newly-increased displaying field is often directly according to existing displaying field or according to existing conversion
The intermediate conversion result of function determines, is converted to from existing displaying field or intermediate conversion result accordingly, it is desirable to formulate
The corresponding newly-increased transfer function for showing field.
But inventor is in the implementation of the present invention, at least there are the following problems in the prior art for discovery: due to
Newly-increased displaying field dependent on existing displayings field or intermediate conversion as a result, therefore, once for existing displaying field
Or the transfer function of intermediate conversion result is updated, then will lead to dependent on these existing displaying fields or intermediate conversion
As a result there is mistake in the displaying result of newly-increased displaying field.Moreover, can not determine each displaying in the numerous scenes of field
Relation of interdependence between field, therefore pull one hair and move the whole body, the update of a displaying field, which is often brought, to be expected not
The serious error arrived.It can be seen that show that the dependence between field is complicated in existing business datum conversion regime,
It is easy error at no point in the update process so as to cause each displaying field.
Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind
State the methods of exhibiting and device of a kind of business datum of problem.
According to an aspect of the invention, there is provided a kind of methods of exhibiting of business datum, comprising: determine the business number
The displaying style information for each displaying field for including in;
Field is shown for each respectively, is determined and the displaying field phase from the corresponding data source of the business datum
Associated original field, to determine field transfer function corresponding to the displaying field;Wherein, word corresponding to the displaying field
Section transfer function is used to the original field associated with the displaying field being converted to the displaying field;
Field is shown for each respectively, using field transfer function corresponding to the displaying field to the described and exhibition
Show that the associated original field of field carries out conversion process, obtains each displaying field for including in the business datum, and right
The each displaying field for including in the business datum is shown.
Optionally, the step of field transfer function corresponding to the determination displaying field specifically includes:
It whether inquires in preset public function library comprising public function associated with the field transfer function;
If so, the public function associated with the field transfer function is determined as in the field transfer function
The first subfunction for including;
The second subfunction for including in the field transfer function is determined according to first subfunction, according to described first
Subfunction and second subfunction determine the field transfer function.
Optionally, the step of field transfer function corresponding to the determination displaying field specifically includes:
When determining that at least one subfunction for including in the field transfer function meets the addition of preset public function
When regular, at least one described subfunction is added in the public function library;
Wherein, each public function in the public function library is provided with the calling interface for calling, also, each
The state of public function is can not editing mode.
Optionally, the step that at least one described subfunction is added in the public function library specifically includes:
Original field corresponding at least one described subfunction is determined, by the corresponding original word of at least one described subfunction
Section associated storage is into the public function library;
It whether include then public letter associated with the field transfer function in the preset public function library of inquiry
Several steps specifically include:
According to original field associated with the displaying field, inquire in preset public function library whether include and the original
The public function of beginning field associated storage.
Optionally, when the original field associated with the displaying field is multiple, the basis and the displaying word
Whether the associated original field of section inquires in preset public function library comprising original field associated with the displaying field
The step of public function of associated storage, specifically includes:
Respectively according to each original field associated with the displaying field, inquires in preset public function library and whether wrap
Containing the public function with the original field associated storage.
Optionally, the step of displaying style information for each displaying field for including in the determination business datum tool
Body includes:
Show that request determines that the front end of the business datum shows rule according to the data received, according to the front end exhibition
Show that rule determines the quantity for the displaying field for including in the business datum and the displaying style information of each displaying field;Its
In, the data show that request includes: initial setting up request, and/or update setting request.
Optionally, each displaying field for obtaining including in the business datum, and to being wrapped in the business datum
After the step of each displaying field contained is shown, further comprise:
According to receive field change request, determine include in the business datum to the field change request it is related
Displaying field;
Field transfer function corresponding to relevant displaying field is requested to be modified field change, to be changed
Displaying field afterwards.
Optionally, described to show that field includes: that first presented in the list page of shop shows field, and/or shop details
Second presented in page shows field.
According to a further aspect of the invention, a kind of displaying device of business datum is provided, comprising:
Determining module is adapted to determine that the displaying style information for each displaying field for including in the business datum;
Conversion module is suitable for showing field for each respectively, determine from the corresponding data source of the business datum
Original field associated with the displaying field, to determine field transfer function corresponding to the displaying field;Wherein, the displaying
Field transfer function corresponding to field is used to the original field associated with the displaying field being converted to the displaying word
Section;
Display module is suitable for showing field for each respectively, converts letter using field corresponding to the displaying field
Several to carry out conversion process to the original field associated with the displaying field, obtain including in the business datum is each
It shows field, and each displaying field for including in the business datum is shown.
Optionally, the conversion module is particularly adapted to:
It whether inquires in preset public function library comprising public function associated with the field transfer function;
If so, the public function associated with the field transfer function is determined as in the field transfer function
The first subfunction for including;
The second subfunction for including in the field transfer function is determined according to first subfunction, according to described first
Subfunction and second subfunction determine the field transfer function.
Optionally, the conversion module is particularly adapted to:
When determining that at least one subfunction for including in the field transfer function meets the addition of preset public function
When regular, at least one described subfunction is added in the public function library;
Wherein, each public function in the public function library is provided with the calling interface for calling, also, each
The state of public function is can not editing mode.
Optionally, the conversion module is particularly adapted to:
Determine original field corresponding at least one described subfunction, at least one described subfunction is corresponding
Original field associated storage into the public function library;According to original field associated with the displaying field, inquiry is pre-
If public function library in whether include public function with the original field associated storage.
Optionally, when the original field associated with the displaying field is multiple, the conversion module is specifically fitted
In: respectively according to each original field associated with the displaying field, inquire in preset public function library whether comprising with
The public function of the original field associated storage.
Optionally, the determining module is particularly adapted to:
Show that request determines that the front end of the business datum shows rule according to the data received, according to the front end exhibition
Show that rule determines the quantity for the displaying field for including in the business datum and the displaying style information of each displaying field;Its
In, the data show that request includes: initial setting up request, and/or update setting request.
Optionally, described device further comprises:
Change module, suitable for according to receive field change request, determine include in the business datum with the word
Duan Genggai requests relevant displaying field;
Field transfer function corresponding to relevant displaying field is requested to be modified field change, to be changed
Displaying field afterwards.
Optionally, described to show that field includes: that first presented in the list page of shop shows field, and/or shop details
Second presented in page shows field.
According to the present invention in another aspect, providing a kind of electronic equipment, comprising: processor, memory, communication interface and
Communication bus, the processor, the memory and the communication interface complete mutual communication by the communication bus;
For the memory for storing an at least executable instruction, it is as above that the executable instruction executes the processor
The corresponding operation of the methods of exhibiting for the business datum stated.
According to the present invention in another aspect, provide a kind of computer storage medium, be stored in the storage medium to
A few executable instruction, the executable instruction make processor execute the corresponding behaviour of methods of exhibiting such as above-mentioned business datum
Make.
The methods of exhibiting and device of the business datum provided according to the present invention, respectively for the exhibition of each of business datum
Show that field is individually handled, also, when handling each displaying field, directly determine for will with show field it is associated
Original field is converted to the field transfer function for showing field, so that original field is directly converted to displaying field.Thus may be used
See, in the above method, respectively using each displaying field as unit independent process, so as to avoid phase between each displaying field
Mutually interdependent phenomenon.Also, each field transfer function for showing field is used to realize original field (rather than intermediate conversion knot
Fruit) to the conversion shown between field, therefore, each displaying field is independent of existing displaying field or intermediate conversion knot
Fruit will not bring the displaying mistake of associate field even if existing displaying field or intermediate conversion result are updated.By
This is as it can be seen which is avoided using the field errors problem in renewal process.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention,
And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field
Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention
Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows a kind of flow chart of the methods of exhibiting of business datum of the offer of the embodiment of the present invention one;
Fig. 2 shows a kind of flow charts of the methods of exhibiting of business datum provided by Embodiment 2 of the present invention;
Fig. 3 shows a kind of structure chart of the displaying device of business datum of the offer of the embodiment of the present invention three;
Fig. 4 shows the structural schematic diagram of a kind of electronic equipment of the offer of the embodiment of the present invention five;
Fig. 5 a shows conversion regime in the prior art;
Figure 5b shows that the conversion regimes in the present invention;
The second exhibition that Fig. 6 a shows the first displaying field presented in the list page of shop and presents in the details page of shop
Show the original effect of field;
The second exhibition that Fig. 6 b shows the first displaying field presented in the list page of shop and presents in the details page of shop
Show the effect of field when the error occurs;
The second exhibition that Fig. 6 c shows the first displaying field presented in the list page of shop and presents in the details page of shop
Show the desired effects of field;
FIG. 6d shows that the second exhibitions presented in the first displaying field and shop details page that present in the list page of shop
Show effect when field updates.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
It is fully disclosed to those skilled in the art.
Embodiment one
Fig. 1 shows a kind of flow chart of the methods of exhibiting of business datum of the offer of the embodiment of the present invention one.Such as Fig. 1 institute
Show, this method comprises:
Step S110: the displaying style information for each displaying field for including in business datum is determined.
Wherein, each displaying field for including in business datum can be used in showing that product name, price, producer etc. are all kinds of
Information, the present invention show content without limitation to the type and quantity for showing field and specifically.In addition, showing the displaying of field
Style information may include: the font for showing field, color, length, show the various informations such as rule.Wherein, rule packet is shown
It includes: showing N after decimal point rules, N is natural number, the rule to round up etc. greater than 1.In short, the present invention does not limit
Show the specific intension of style information, all various informations relevant to the displaying process of field, which can be used as, shows pattern letter
Breath.
Step S120: showing field for each respectively, determining and displaying from the corresponding data source of business datum
The associated original field of field, to determine field transfer function corresponding to the displaying field.
Wherein, field transfer function corresponding to the displaying field is for will original field associated with the displaying field
Be converted to the displaying field.In other words, each field transfer function is for realizing original field to the conversion shown between field.
Specifically, in the present embodiment, it needs to be respectively processed as unit of each displaying field.For each exhibition
Show field, is determined according to the business intension and create-rule of the displaying field associated original with the displaying field in data source
Then field determines that the field for original field associated with the displaying field to be converted to the displaying field converts letter
Number.
Step S130: field is shown for each respectively, utilizes field transfer function pair corresponding to the displaying field
Original field associated with the displaying field carries out conversion process, obtains each displaying field for including in business datum, and
The each displaying field for including in business datum is shown.
Specifically, in this step, show that field carries out conversion process specifically when conversion and can lead to for each respectively
It crosses various mathematical logics to be converted, for example, both can disposably complete original field by a function to displaying field
Conversion can also complete original field to the conversion for showing field by multiple subfunctions and point multiple steps.The present invention is to tool
The conversion regime of body without limitation, but it is noted that field transfer function for realizing original field to show field between
Conversion.
It can be seen that in the above method, respectively using each displaying field as unit independent process, so as to avoid each
The phenomenon that showing interdependence between field.Also, each field transfer function for showing field is used to realize original field
(rather than intermediate conversion result) to the conversion shown between field, therefore, each displaying field is independent of existing displaying word
Section or intermediate conversion will not bring associated characters as a result, even if existing displaying field or intermediate conversion result are updated
The displaying mistake of section.It can be seen which is avoided using the field errors problem in renewal process.
Fig. 2 shows a kind of flow charts of the methods of exhibiting of business datum provided by Embodiment 2 of the present invention.Such as Fig. 2 institute
Show, this method comprises:
Step S210: show that the front end for requesting to determine business datum shows rule according to the data received, according to front end
Show that rule determines the quantity for the displaying field for including in business datum and the displaying style information of each displaying field.
Wherein, above-mentioned data show that request can be arranged by Production Engineer according to the actual displayed demand of product.Example
Such as, which shows that request can be the initial setting up request for creating each displaying field in one group of business datum, uses
In newly-increased one group of business datum in the application, and show each displaying field in this group of business datum.For another example, which shows
Request is also possible to the update setting request for being modified for each displaying field in one group of existing business datum,
For changing one group of existing business datum in the application, and show each displaying word in this group of business datum after change
Section.
Specifically, the front end of business datum show rule for define business datum to show pattern, data content etc. each
Kind information relevant to displaying.The displaying style information for showing field is to show what rule determined according to above-mentioned front end.In addition,
The quantity for the displaying field for including in business datum may be to be multiple, when the quantity for the displaying field for including in business datum is more
When a, need to determine each displaying style information for showing field respectively.
Step S220: showing field for each respectively, determining and displaying from the corresponding data source of business datum
The associated original field of field, to determine field transfer function corresponding to the displaying field.
Firstly, it is necessary to determine the quantity and title of original field associated with the displaying field.Wherein, with the displaying word
The associated original field of section may be one or more, be specifically dependent upon the specific business intension for showing field and mathematics fortune
Calculation relationship.For example, associated original field may include: price is original when showing field is that merchandise news shows field
Field and the original field of unit, so as to make the merchandise news for showing the price of per unit.
Then, it needs to determine field corresponding to the displaying field according to original field associated with the displaying field
Transfer function.Wherein, which can pass through for realizing original field to the conversion shown between field, the conversion
One step is completed, and can also be completed by multistep, and specific business scenario is depended on.When conversion need to be completed by multistep, the word
Section transfer function further comprises multiple subfunctions for corresponding respectively to each sub-steps, and each subfunction has corresponding centre
Transformation result.
When showing that field is large number of, possible multiple displaying fields correspond respectively to multiple subfunctions, part therein
Subfunction may be implemented for other intermediate conversion processes for showing field.Therefore, field is shown in order to promote other
Conversion speed increases the reusability of each subfunction, in the present embodiment, is further provided with public function library, public letter
Number library is used to store the subfunction in each field transfer function for showing field included, using these subfunctions as calling
Public function.For the ease of calling, the calling interface that each public function is provided with for calling, also, close in order to prevent
Join the mistake of field, the state of each public function is can not editing mode.That is, each public in public function library
Function can only be increased newly or be deleted, and cannot be modified, thus prevented from source to depend on public function and established field conversion letter
After number because public function is updated cause corresponding displaying field malfunction the problem of.
Correspondingly, in this step, the field transfer function for showing that field needs to be made up of multiple subfunctions when one
When obtaining, whether need to inquire in preset public function library comprising public function associated with field transfer function;If so,
Public function associated with field transfer function is determined as to the first subfunction in field transfer function included;According to first
Subfunction determines the second subfunction for including in field transfer function, determines field according to the first subfunction and the second subfunction
Transfer function.Which can directly be multiplexed existing public function in public function library, to promote field transfer function
Formation efficiency.
In addition, in order to expand public function library, in this step, when determining to wrap in field transfer function
When at least one subfunction contained meets preset public function addition rule, at least a subfunction it will be added to public function
In library, to realize the continuous renewal in public function library.Wherein, preset public function addition rule may include a variety of, for example,
It in a kind of mode, is inquired for each subfunction for including in field transfer function, is to determine in public function library
It is no to be stored with the subfunction, if not, it is determined that the subfunction meets preset public function addition rule.For another example, another
In kind mode, for each subfunction for including in field transfer function, original field corresponding to the subfunction is first determined
Whether quantity is greater than preset quantity, and/or, it is default to determine whether the frequency of use of original field corresponding to the subfunction is greater than
Frequency is only when the judgment result is yes just inquired for the subfunction, to determine in public function library whether stored
There is the subfunction, if not, it is determined that the subfunction meets preset public function addition rule.Wherein, if original field makes
Whether it is greater than predeterminated frequency with frequency, then illustrates that original field is common field, therefore, the probability that corresponding subfunction is re-used
It is higher.If whether the quantity of original field is greater than preset quantity, illustrate the quantity of original field associated by the subfunction compared with
It is more, in general, processing mode when being handled for multiple original fields may be relatively fixed, therefore, in corresponding subfunction
The probability that is re-used of processing logic it is higher.
In addition, will at least a subfunction is added to public function library when, for the ease of realize public function it is quick
Inquiry, can store corresponding subfunction according to original field.In particular it is required that determination is corresponding at least one subfunction
Original field, by the corresponding original field associated storage of an at least subfunction into public function library.That is,
In this way, the corresponding original field of each subfunction is associated storage, quick according to original field to realize
Inquire the effect of subfunction.Correspondingly, whether comprising associated with field transfer function in inquiring preset public function library
Public function when, according to original field associated with the displaying field, inquire in preset public function library whether include
With the public function of the original field associated storage.That is: original field associated with the displaying field is first determined, further according to
The corresponding public function of original field quick search.
In addition, when original field associated with the displaying field is multiple, according to associated with the displaying field
Original field, whether inquire in preset public function library comprising original field associated storage associated with the displaying field
Public function when, in order to avoid omitting, need respectively according to each original field associated with the displaying field, inquiry is pre-
If public function library in whether include public function with the original field associated storage.
Step S230: field is shown for each respectively, utilizes field transfer function pair corresponding to the displaying field
Original field associated with the displaying field carries out conversion process, obtains each displaying field for including in business datum.
Specifically, in this step, show that field carries out conversion process specifically when conversion and can lead to for each respectively
It crosses various mathematical logics to be converted, for example, both can disposably complete original field by a function to displaying field
Conversion can also complete original field to the conversion for showing field by multiple subfunctions and point multiple steps.The present invention is to tool
The conversion regime of body without limitation, but it is noted that field transfer function for realizing original field to show field between
Conversion.
And it is further desired that it is noted that in this step, each displaying field carries out conversion process independently of each other, respectively
It is not depended on mutually between a displaying field.Wherein, the meaning not depended on mutually refers to: any one shows field both independent of any
Existing displaying field, the intermediate result generated in conversion process also not dependent on any displaying field.
Step S240: each displaying field for including in business datum is shown.
When specific displaying, the displayed page comprising each displaying field in business datum can be constructed in server end,
And the displayed page built is pushed to client, so that client is shown.Alternatively, can also will be wrapped in business datum
The each displaying field and its displaying style information contained is pushed to client, so that client includes industry according to above- mentioned information building
The displayed page of each displaying field in business data is simultaneously shown.In short, this step is for each displaying after converting
Field is shown in client-side.
Step S250: according to the field change request received, determine that include in business datum asks with field change
Seek relevant displaying field;Field transfer function corresponding to relevant displaying field is requested to be modified field change,
With the displaying field after being changed.
This step is intended to illustrate, when showing that field needs to be modified according to the field change request received, directly
Field transfer function corresponding to relevant displaying field is requested to be modified field change.Since field transfer function is used
In realizing original field to the conversion shown between field, therefore, the mode for directly changing field transfer function not will lead to
Other show therefore the mistake of field, will not lead to other moreover, each function in public function library does not allow to modify
Show the problem of field malfunctions because depending on intermediate conversion result.
Finally, to facilitate the understanding of the present invention, with the conversion process of a specific example detailed description step S220.Figure
5a and Figure 5b shows that the exemplary transition diagram is related to the data positioned at server-side as shown in Figure 5 a, in the present embodiment
Source, data conversion layer and service display data Layer, there are also can both be located at server-side or be located at the front end of client
(being also front end presentation layer).Wherein, data source can be used for the corresponding initial data of storage service data by database realizing;
Data conversion layer is for realizing the conversion between initial data to business datum;After service display data Layer is used for conversion
Business datum is packaged, to realize the display of business datum;After front end is used on the user equipmenies such as client show encapsulation
Business datum.Fig. 5 a shows conversion regime in the prior art, and Figure 5b shows that the conversion regimes in the present invention.
As shown in Figure 5 a, in the prior art, it is assumed that need { a, b, c } three original fields being converted to { a ', b ', d ' }
Three displaying fields, then flow path switch is as follows: firstly, passing through f1 function f1 (a, b, c)={ a ', b ', c ' } for tri- originals of a, b, c
Beginning field is converted to a ', b ', c ', wherein c ' is intermediate conversion result.Then, by f2 function f2 (a ', b ', c ')=a ',
B ', b '+c ' }=three a ', b ', c ' fields are converted to a ', b ', d ' by { a ', b ', d ' }, wherein d ' need further by b '+
C ' is determined.
Specifically, such as Fig. 5 a, f1 function further comprises tri- subfunctions of f11, f12 and f13.Wherein, f11 is used for
A is converted into a ', f12 is used to be converted to b b ', and f13 is used to c being converted to c '.F2 function mainly includes f21 function, the letter
Number is for being converted to d ' for b ', c '.
It can be seen that the process that b is converted to b ' not only affects field b's ' as a result, also having affected indirectly the knot of d '
Fruit.Such conversion regime certainly will bring following problem: if server-side is needed through multiple function linear process (usual situations
There are many lower meeting: such as 4 to 7 or more) it can just be converted into the format of front end needs, it will be difficult to and assessment is modified certain section of logic and (is compared
Such as the value of b or the conversion logic of b ') a series of influences of bring afterwards, there is mistake so as to cause multiple fields of front end.
As shown in Figure 5 b, in the present invention, aiming field is converted directly into using original field in conversion process (to open up
Show field), without generating public field (referring here to b '), it is as follows that specific { a, b, c } is converted to { a ', b ', d ' } process:
F11 (a)={ a ' }
F12 (b)={ b ' }
F13 (b, c)={ d ' }
It can be seen that each displaying field is individually handled, in conversion process of the invention respectively with each displaying word
Section is unit, determines field transfer function corresponding to each displaying field.For example, first determining its pass for field d ' is shown
The original field of connection is then b, c are directly realized by original field b by field transfer function f13, between c to displaying field d '
Conversion.Therefore, each field transfer function is used to realize that original field to the conversion for showing field, is tied independent of centre
Fruit shows field more independent from others.Mode in the present invention, which at least has the following beneficial effects:, in practical situations can
Having a lot of reasons to result in the need for the logic in modification f12 function, (for example front end edition upgrading needs compatible early version or product
Demand or the compatibility of different browsers etc.), which of front end displaying can be intuitively seen very much when modifying the logic in f12 function
Field will receive influence (because being to be converted directly into aiming field using original field information in conversion process), it will not
Lead to the mistake of other fields.
In addition, inventor has found in the implementation of the present invention, above-mentioned conversion regime may generate duplicate logic.
For example, f13 function may include the first subfunction for b to be converted to b ', the second subfunction for c to be converted to c ',
And the third subfunction for b ', c ' to be converted to d ', it may be assumed that the second subfunction in f13 function is identical as f12 function, is
It can be used mentioned above public convenient for the logic in multiplexing f12 function to provide convenience for writing for f13 function
Function library is realized.For example, public function library is added in f12 function, to call directly in the compiling procedure of f13 function.But
Be, in order to avoid because f12 function modification after cause d ' to be affected, in the present invention, each public letter in public function library
Several allow to increase newly, do not allow to modify.Specific in this example, it is assumed that need to change the flex spline of b ' in later service logic
Formula after modified, need to pass through f12 ' function and realizes that the conversion of b to b ' correspondingly can be modified to f12 function
To increase f12 ' function in public function library, still, the f12 function in public function library that f13 function is called is will not
It changes, therefore, the numerical value of d ' is unaffected.
Specific in actual APP product, lead in the different field that product homepage (such as shop list page) needs to show
Chang Duoda more than 50, these fields need the original field transfer from general 40 or so to change.Wherein, some fields are not necessarily to
Conversion, and the conversion process of some fields is then intricate, since different responsible persons safeguards different conversion logics,
Once personnel change, same section of conversion logic may be safeguarded by multiple responsible persons.Correspondingly, even if being mentioned according to Production Engineer
When demand out shows that field is changed a little to some (such as some is only shown that the length reduction of field is original one
Half), then developer also will comprehensively assess simply modify certain section of conversion logic after bring other associations influence it is (usually logical
Read relevant code: commonly taking up general 1 day or more time), the development cycle is increased while bringing very big hidden danger,
Waste exploitation manpower and test manpower.
For example, Fig. 6 a is to FIG. 6d shows that a specific schematic diagrames in actual APP product.Fig. 6 a shows shop column
Second presented in the first displaying field and shop details page presented in table page shows the original effect of field.Such as Fig. 6 a institute
Show, when specifically showing, needs at the first original field 40000 for including in data source and the second original field 1244
Reason shows field with obtain presenting in the present in the list page of shop first displaying field and shop details page second.?
In original scheme shown in Fig. 6 a, since the first displaying field shows that field is identical with second, in data conversion layer
Between converted using a set of conversion logic.Which is it is to be understood that pass through a transfer function reality in data conversion layer
The conversion that existing first original field and the second original field show field to first, then, the second displaying field directly replicate the
One shows field.That is: second shows that field shows that field generates dependent on first.Fig. 6 b, which is shown, to be presented in the list page of shop
Second presented in first displaying field and shop details page shows the effect (bug effect) of field when the error occurs.Such as figure
Shown in 6b, when needing to change the display mode of the first displaying field (such as need to carry out as unit of ten thousand for the first field
Round up processing), accordingly, it is desirable in the logic of data conversion layer modification transfer function, so that first shows that field updates
For 4.1W.But due to second displaying field by directly duplication first displaying field obtain, second displaying field
4.1W can be mistakenly updated to.
The second exhibition that Fig. 6 c shows the first displaying field presented in the list page of shop and presents in the details page of shop
Show the desired effects of field, i.e., using the effect after the present invention.As fig. 6 c, when specific displaying, it is still necessary to data source
In include the first original field 40000 and the second original field 1244 handled, to obtain presenting in the list page of shop
First displaying field and shop details page in present second show field.In the present invention program shown in Fig. 6 c, i.e.,
So that the first displaying field is shown that field is identical with second, still shows field and the second displaying field for first respectively
Different transfer functions is set.FIG. 6d shows that be in the first displaying field and shop details page that present in the list page of shop
Effect when the second existing displaying field updates.As shown in fig 6d, when the display mode for needing to change the first displaying field
When (such as need for the first field the processing that rounds up is carried out as unit of ten thousand), accordingly, it is desirable to be repaired in data conversion layer
Change the logic of transfer function, so that the first displaying field is updated to 4.1W.Since the transfer function of the second displaying field is independent
, therefore, it not will lead to the second displaying field and mistakenly updated.
It in summary, can be very the present invention provides a kind of practicable page presentation information service end constructing technology
The maintainability that software is improved in big degree, is reduced to a great extent unnecessary hidden danger: the original field in data source is led to
It crosses a conversion logic and is converted into the field information that front end can be shown, it can (front end can be with by multiple aiming fields
The field of displaying) shared middle field generates, influences so as to avoid evaluated linkage is not easy.
Embodiment three
Fig. 3 shows a kind of structural schematic diagram of the displaying device of business datum of the offer of the embodiment of the present invention three, the dress
It sets and includes:
Determining module 31 is adapted to determine that the displaying style information for each displaying field for including in the business datum;
Conversion module 32 is suitable for showing field for each respectively, from the corresponding data source of the business datum really
Fixed original field associated with the displaying field, to determine field transfer function corresponding to the displaying field;Wherein, the exhibition
Show field transfer function corresponding to field for the original field associated with the displaying field to be converted to the displaying
Field;
Display module 33 is suitable for showing field for each respectively, be converted using field corresponding to the displaying field
Function carries out conversion process to the original field associated with the displaying field, and obtain including in the business datum is each
A displaying field, and each displaying field for including in the business datum is shown.
Optionally, the conversion module 32 is particularly adapted to:
It whether inquires in preset public function library comprising public function associated with the field transfer function;
If so, the public function associated with the field transfer function is determined as in the field transfer function
The first subfunction for including;
The second subfunction for including in the field transfer function is determined according to first subfunction, according to described first
Subfunction and second subfunction determine the field transfer function.
Optionally, the conversion module 32 is particularly adapted to:
When determining that at least one subfunction for including in the field transfer function meets the addition of preset public function
When regular, at least one described subfunction is added in the public function library;
Wherein, each public function in the public function library is provided with the calling interface for calling, also, each
The state of public function is can not editing mode.
Optionally, the conversion module 32 is particularly adapted to:
Determine original field corresponding at least one described subfunction, at least one described subfunction is corresponding
Original field associated storage into the public function library;According to original field associated with the displaying field, inquiry is pre-
If public function library in whether include public function with the original field associated storage.
Optionally, when the original field associated with the displaying field is multiple, the conversion module 32 is specific
Be suitable for: respectively according to each original field associated with the displaying field, inquire in preset public function library whether include
With the public function of the original field associated storage.
Optionally, the determining module 31 is particularly adapted to:
Show that request determines that the front end of the business datum shows rule according to the data received, according to the front end exhibition
Show that rule determines the quantity for the displaying field for including in the business datum and the displaying style information of each displaying field;Its
In, the data show that request includes: initial setting up request, and/or update setting request.
Optionally, described device further comprises:
Change module, suitable for according to receive field change request, determine include in the business datum with the word
Duan Genggai requests relevant displaying field;
Field transfer function corresponding to relevant displaying field is requested to be modified field change, to be changed
Displaying field afterwards.
Optionally, described to show that field includes: that first presented in the list page of shop shows field, and/or shop details
Second presented in page shows field.
It can refer to the description of corresponding portion in embodiment of the method about the specific structure and working principle of above-mentioned modules,
Details are not described herein again.
Example IV
The embodiment of the present application four provides a kind of nonvolatile computer storage media, the computer storage medium storage
There is an at least executable instruction, which can be performed the exhibition of the business datum in above-mentioned any means embodiment
Show method.Executable instruction specifically can be used for so that processor executes corresponding each operation in above method embodiment.
Embodiment five
Fig. 4 shows the structural schematic diagram of according to embodiments of the present invention five a kind of electronic equipment, present invention specific implementation
Example does not limit the specific implementation of electronic equipment.
As shown in figure 4, the electronic equipment may include: processor (processor) 402, communication interface
(Communications Interface) 406, memory (memory) 404 and communication bus 408.
Wherein:
Processor 402, communication interface 406 and memory 404 complete mutual communication by communication bus 408.
Communication interface 406, for being communicated with the network element of other equipment such as client or other servers etc..
Processor 402 can specifically execute in the methods of exhibiting embodiment of above-mentioned business datum for executing program 410
Correlation step.
Specifically, program 410 may include program code, which includes computer operation instruction.
Processor 402 may be central processor CPU or specific integrated circuit ASIC (Application
Specific Integrated Circuit), or be arranged to implement the integrated electricity of one or more of the embodiment of the present invention
Road.The one or more processors that electronic equipment includes can be same type of processor, such as one or more CPU;It can also
To be different types of processor, such as one or more CPU and one or more ASIC.
Memory 404, for storing program 410.Memory 404 may include high speed RAM memory, it is also possible to further include
Nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.
Program 510 specifically can be used for so that processor 502 executes corresponding each operation in above method embodiment.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein.
Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system
Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various
Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair
Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention
Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects,
Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect
Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself
All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment
Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or
Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any
Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed
All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power
Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose
It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments
In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention
Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed
Meaning one of can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors
Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice
Microprocessor or digital signal processor (DSP) realize the prize drawing according to an embodiment of the present invention based on voice input information
The some or all functions of some or all components in system.The present invention is also implemented as being retouched here for executing
The some or all device or device programs (for example, computer program and computer program product) for the method stated.
It is such to realize that program of the invention can store on a computer-readable medium, or can have one or more signal
Form.Such signal can be downloaded from an internet website to obtain, be perhaps provided on the carrier signal or with it is any its
He provides form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability
Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not
Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real
It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch
To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame
Claim.
Claims (10)
1. a kind of methods of exhibiting of business datum, comprising:
Determine the displaying style information for each displaying field for including in the business datum;
Field is shown for each respectively, and determination is associated with the displaying field from the business datum corresponding data source
Original field, with determine the displaying field corresponding to field transfer function;Wherein, field corresponding to the displaying field turns
Exchange the letters number is used to the original field associated with the displaying field being converted to the displaying field;
Field is shown for each respectively, using field transfer function corresponding to the displaying field to the described and displaying word
The associated original field of section carries out conversion process, obtains each displaying field for including in the business datum, and to described
The each displaying field for including in business datum is shown.
2. according to the method described in claim 1, wherein, the step of field transfer function corresponding to the determination displaying field
Suddenly it specifically includes:
It whether inquires in preset public function library comprising public function associated with the field transfer function;
If so, the public function associated with the field transfer function is determined as in the field transfer function include
The first subfunction;
The second subfunction for including in the field transfer function is determined according to first subfunction, according to the described first sub- letter
Several and described second subfunction determines the field transfer function.
3. according to the method described in claim 2, wherein, the step of field transfer function corresponding to the determination displaying field
Suddenly it specifically includes:
When determining that at least one subfunction for including in the field transfer function meets preset public function addition rule
When, at least one described subfunction is added in the public function library;
Wherein, each public function in the public function library is provided with the calling interface for calling, also, each public
The state of function is can not editing mode.
4. described that at least one described subfunction is added to the public function according to the method described in claim 3, wherein
Step in library specifically includes: determine original field corresponding at least one described subfunction, it will at least one described son
The corresponding original field associated storage of function is into the public function library;
It whether include then public function associated with the field transfer function in the preset public function library of inquiry
Step specifically includes:
According to original field associated with the displaying field, inquire in preset public function library whether include and the original word
The public function of section associated storage.
5. according to the method described in claim 4, wherein, when the original field associated with the displaying field is multiple
When, the basis original field associated with the displaying field, inquire in preset public function library whether include and the exhibition
The step of showing the public function of the associated original field associated storage of field specifically includes:
Respectively according to each original field associated with the displaying field, inquire in preset public function library whether comprising with
The public function of the original field associated storage.
6. -5 any method according to claim 1, wherein each displaying for including in the determination business datum
The step of displaying style information of field, specifically includes:
It shows that request determines that the front end of the business datum shows rule according to the data received, is shown and advised according to the front end
Then determine the quantity for the displaying field for including in the business datum and the displaying style information of each displaying field;Wherein,
The data show that request includes: initial setting up request, and/or update setting request.
7. -6 any method according to claim 1, wherein each displaying for obtaining including in the business datum
Field, and after the step of being shown to each displaying field for including in the business datum, further comprise:
According to the field change request received, the exhibition relevant to field change request for including in the business datum is determined
Show field;
Field transfer function corresponding to relevant displaying field is requested to be modified field change, after being changed
Show field.
8. a kind of displaying device of business datum, comprising:
Determining module is adapted to determine that the displaying style information for each displaying field for including in the business datum;
Conversion module is determined and is somebody's turn to do from the corresponding data source of the business datum suitable for showing field for each respectively
The associated original field of field is shown, to determine field transfer function corresponding to the displaying field;Wherein, the displaying field
Corresponding field transfer function is used to the original field associated with the displaying field being converted to the displaying field;
Display module is suitable for showing field for each respectively, utilizes field transfer function pair corresponding to the displaying field
The original field associated with the displaying field carries out conversion process, obtains each displaying for including in the business datum
Field, and each displaying field for including in the business datum is shown.
9. a kind of electronic equipment, comprising: processor, memory, communication interface and communication bus, the processor, the storage
Device and the communication interface complete mutual communication by the communication bus;
The memory executes the processor as right is wanted for storing an at least executable instruction, the executable instruction
Ask the corresponding operation of the methods of exhibiting of business datum described in any one of 1-7.
10. a kind of computer storage medium, an at least executable instruction, the executable instruction are stored in the storage medium
Processor is set to execute the corresponding operation of methods of exhibiting such as business datum of any of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810934827.8A CN109086442B (en) | 2018-08-16 | 2018-08-16 | Business data display method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810934827.8A CN109086442B (en) | 2018-08-16 | 2018-08-16 | Business data display method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109086442A true CN109086442A (en) | 2018-12-25 |
CN109086442B CN109086442B (en) | 2021-07-06 |
Family
ID=64793460
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810934827.8A Active CN109086442B (en) | 2018-08-16 | 2018-08-16 | Business data display method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109086442B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110069678A (en) * | 2019-04-12 | 2019-07-30 | 中国银行股份有限公司 | A kind of data processing method and device |
CN110334144A (en) * | 2019-06-13 | 2019-10-15 | 平安银行股份有限公司 | Message methods of exhibiting, device, computer equipment and storage medium |
CN111008189A (en) * | 2019-11-26 | 2020-04-14 | 浙江电子口岸有限公司 | Dynamic data model construction method |
CN111078668A (en) * | 2019-12-13 | 2020-04-28 | 北京明略软件系统有限公司 | Data generation method and device, electronic equipment and storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2007047900A2 (en) * | 2005-10-18 | 2007-04-26 | The Macgregor Group, Inc. | System and method for displaying data on a thin client |
CN103399926A (en) * | 2013-08-05 | 2013-11-20 | 河海大学 | Water conservancy general survey data multidimensional analysis and service system and encapsulation and achieving method thereof |
CN105354237A (en) * | 2015-10-09 | 2016-02-24 | 上海瀚之友信息技术服务有限公司 | Business data display method |
CN105512139A (en) * | 2014-09-26 | 2016-04-20 | 阿里巴巴集团控股有限公司 | Method and device for implementing data visualization |
CN107451270A (en) * | 2017-08-03 | 2017-12-08 | 掌阅科技股份有限公司 | Page display method, electronic equipment and computer-readable storage medium |
CN107526806A (en) * | 2017-08-22 | 2017-12-29 | 北京奇虎科技有限公司 | The conversion method and device of data |
CN108170833A (en) * | 2018-01-11 | 2018-06-15 | 上海壹账通金融科技有限公司 | Multi-dimensional data methods of exhibiting, application server and computer readable storage medium |
CN108228790A (en) * | 2017-12-29 | 2018-06-29 | 北京奇虎科技有限公司 | Push the methods of exhibiting and device of picture |
-
2018
- 2018-08-16 CN CN201810934827.8A patent/CN109086442B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2007047900A2 (en) * | 2005-10-18 | 2007-04-26 | The Macgregor Group, Inc. | System and method for displaying data on a thin client |
CN103399926A (en) * | 2013-08-05 | 2013-11-20 | 河海大学 | Water conservancy general survey data multidimensional analysis and service system and encapsulation and achieving method thereof |
CN105512139A (en) * | 2014-09-26 | 2016-04-20 | 阿里巴巴集团控股有限公司 | Method and device for implementing data visualization |
CN105354237A (en) * | 2015-10-09 | 2016-02-24 | 上海瀚之友信息技术服务有限公司 | Business data display method |
CN107451270A (en) * | 2017-08-03 | 2017-12-08 | 掌阅科技股份有限公司 | Page display method, electronic equipment and computer-readable storage medium |
CN107526806A (en) * | 2017-08-22 | 2017-12-29 | 北京奇虎科技有限公司 | The conversion method and device of data |
CN108228790A (en) * | 2017-12-29 | 2018-06-29 | 北京奇虎科技有限公司 | Push the methods of exhibiting and device of picture |
CN108170833A (en) * | 2018-01-11 | 2018-06-15 | 上海壹账通金融科技有限公司 | Multi-dimensional data methods of exhibiting, application server and computer readable storage medium |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110069678A (en) * | 2019-04-12 | 2019-07-30 | 中国银行股份有限公司 | A kind of data processing method and device |
CN110334144A (en) * | 2019-06-13 | 2019-10-15 | 平安银行股份有限公司 | Message methods of exhibiting, device, computer equipment and storage medium |
CN110334144B (en) * | 2019-06-13 | 2023-07-25 | 平安银行股份有限公司 | Message display method, device, computer equipment and storage medium |
CN111008189A (en) * | 2019-11-26 | 2020-04-14 | 浙江电子口岸有限公司 | Dynamic data model construction method |
CN111008189B (en) * | 2019-11-26 | 2023-08-25 | 浙江电子口岸有限公司 | Dynamic data model construction method |
CN111078668A (en) * | 2019-12-13 | 2020-04-28 | 北京明略软件系统有限公司 | Data generation method and device, electronic equipment and storage medium |
CN111078668B (en) * | 2019-12-13 | 2023-03-21 | 北京明略软件系统有限公司 | Data generation method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109086442B (en) | 2021-07-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109086442A (en) | The methods of exhibiting and device of business datum | |
US10942712B2 (en) | Visual programming system | |
CN111177231B (en) | Report generation method and report generation device | |
US6144984A (en) | Method and apparatus for controlling connected computers without programming | |
US20080196015A1 (en) | Formatting and viewing source objects | |
CA2889778A1 (en) | Virtual interactive learning environment | |
US20080313610A1 (en) | Discoscript: a simplified distributed computing scripting language | |
CN104933142A (en) | Animation display method and device | |
US10013478B2 (en) | System and method for modular business applications | |
US11734264B2 (en) | Generation of optimized logic from a schema | |
CN112650766A (en) | Database data operation method, system and server | |
CN111881042A (en) | Automatic test script generation method and device and electronic equipment | |
US20060206659A1 (en) | Reducing Time to Load Device Description in Management of Field Devices | |
CN103984554B (en) | The generation method and device of Software for Design document | |
US5898874A (en) | Dynamic codeset translation environment | |
CN103678687B (en) | Establishment of item method and device based on configuration system | |
JP2008269515A (en) | Method for dynamically generating image layout by parameter | |
CN114564207A (en) | Software product processing method and device, computer equipment and storage medium | |
CN104200181A (en) | Dual-function intelligent programming module and method | |
CN114237687A (en) | Software version acquisition method and system, electronic equipment and storage medium | |
Milovanovic et al. | Python Data Visualization Cookbook | |
CN113485799B (en) | Method, device, equipment and storage medium for executing same timing task by multiple libraries | |
Lefebvre | WordPress Plugin Development Cookbook | |
Pitt | React Components | |
CN102446207A (en) | Method, device, equipment and system for acquiring and presenting display information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |