CN112835962A - Information display method and device, electronic equipment and storage medium - Google Patents

Information display method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112835962A
CN112835962A CN202110055440.7A CN202110055440A CN112835962A CN 112835962 A CN112835962 A CN 112835962A CN 202110055440 A CN202110055440 A CN 202110055440A CN 112835962 A CN112835962 A CN 112835962A
Authority
CN
China
Prior art keywords
field
displayed
display
template
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110055440.7A
Other languages
Chinese (zh)
Inventor
邓龙腾
邹伟力
何洁珍
朱伙
王海潮
钟博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202110055440.7A priority Critical patent/CN112835962A/en
Publication of CN112835962A publication Critical patent/CN112835962A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/248Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/087Inventory or stock management, e.g. order filling, procurement or balancing against orders
    • G06Q10/0875Itemisation or classification of parts, supplies or services, e.g. bill of materials

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Economics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Development Economics (AREA)
  • Finance (AREA)
  • Computational Linguistics (AREA)
  • Human Resources & Organizations (AREA)
  • Accounting & Taxation (AREA)
  • Entrepreneurship & Innovation (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a display method and device of information, electronic equipment and a storage medium, and relates to the technical field of computers. One embodiment of the method comprises: receiving a display request sent by terminal equipment, wherein the display request comprises a user identifier; inquiring a display template corresponding to the user identification from a preset template library, wherein the display template comprises template information of fields to be displayed and data information of the fields to be displayed; acquiring service data corresponding to the field to be displayed according to the data information of the field to be displayed; determining a target display field in the display template according to the service data corresponding to the field to be displayed; and sending the template information and the service data of the target display field to the terminal equipment so as to facilitate the rendering display of the terminal equipment. The method and the device for displaying the order information can solve the problems that the flexibility of a mode for displaying the order information according to the fixed template is low, and personalized display of different users or enterprises cannot be achieved.

Description

Information display method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for displaying information, an electronic device, and a storage medium.
Background
The supply chain generally refers to a functional network structure that connects suppliers, manufacturers, distributors, and users of products into a whole. With the popularization of the mobile internet, the way of providing services by an online supply chain system has also been rapidly developed, and the supply chain service system usually records the processing flow and state of the corresponding product according to the execution of the order. In order to improve the service quality of the supply chain system and expand the service range, the supply chain system can provide order information display service for corresponding users, enterprises and the like. When order information is displayed, a fixed display template is generally formulated, and order information corresponding to the fixed template is displayed for users, enterprises and the like. Because the template for displaying the information is fixed, the same fixed content can be displayed for different users and enterprises, but the information to be checked for different users and enterprises is not necessarily completely the same, so the flexibility of the mode for displaying the order information according to the fixed template is low, and the personalized display for different users or enterprises cannot be realized.
Disclosure of Invention
In view of this, embodiments of the present invention provide an information display method and apparatus, an electronic device, and a storage medium, which can solve the problem that a mode for displaying order information according to a fixed template is low in flexibility and cannot realize personalized display for different users or enterprises.
To achieve the above object, according to an aspect of an embodiment of the present invention, there is provided a display method of information.
The information display method of the embodiment of the invention comprises the following steps: receiving a display request sent by terminal equipment, wherein the display request comprises a user identifier; inquiring a display template corresponding to the user identification from a preset template library, wherein the display template comprises template information of fields to be displayed and data information of the fields to be displayed; acquiring service data corresponding to the field to be displayed according to the data information of the field to be displayed; determining a target display field in the display template according to the service data corresponding to the field to be displayed; and sending the template information and the service data of the target display field to the terminal equipment so as to facilitate the terminal equipment to render and display.
In an embodiment, the determining, according to the service data corresponding to the field to be displayed, a target display field in the display template includes:
judging whether the service data corresponding to the field to be displayed meets a preset condition or not;
if so, determining the field to be displayed as the target display field;
if not, determining that the field to be displayed is not the target display field.
In another embodiment, the display template further includes a switch identifier corresponding to the field to be displayed;
determining a target display field in the display template according to the service data corresponding to the field to be displayed, including:
and determining a target display field in the display template according to the service data and the switch identifier corresponding to the field to be displayed.
In another embodiment, the determining a target display field in the display template according to the service data and the switch identifier corresponding to the field to be displayed includes:
if the service data corresponding to the field to be displayed meets a preset condition and the switch identifier corresponding to the field to be displayed is an open identifier, determining that the field to be displayed is the target display field;
and if the service data corresponding to the field to be displayed does not meet the preset condition or the switch identifier corresponding to the field to be displayed is not an opening identifier, determining that the field to be displayed is not the target display field.
In another embodiment, the preset condition includes that the service data is not empty, or the type of the service data belongs to a target type.
In another embodiment, before querying the display template corresponding to the user identifier from the preset template library, the method further includes:
receiving a construction instruction of the display template, wherein the construction instruction comprises the user identification, the field to be displayed included in the display template and the template information of the field to be displayed;
determining data information of the field to be displayed according to the corresponding relation between the field to be displayed and the service data;
and constructing the display template according to the template information of the field to be displayed and the data information of the field to be displayed, and establishing the corresponding relation between the display template and the user identification.
In yet another embodiment, before the receiving the construction instruction of the display template, the method further includes:
and establishing a field for display, and identifying the field of the field and data information corresponding to the field, wherein the field comprises the field to be displayed.
In yet another embodiment, the method further comprises:
receiving a change instruction of template information, wherein the change instruction comprises the user identification and the template change information;
and inquiring a display template corresponding to the user identification from the template library, and updating the display template according to the template change information.
In another embodiment, the template change information includes a field to be changed and the updated template information of the field to be changed;
the updating the display template according to the template change information includes:
and updating the template information of the field to be changed into the updated template information of the field to be changed.
In yet another embodiment, the display request further comprises an order identification;
the acquiring the service data corresponding to the field to be displayed according to the data information of the field to be displayed includes:
obtaining order information corresponding to the order identification;
and determining the business data corresponding to the field to be displayed from the order information according to the data information of the field to be displayed.
In yet another embodiment, the fields to be displayed include a supplier name corresponding to the order, an order number, a billing date corresponding to the order, an order payment date, an order amount, and/or order inclusion item information.
In yet another embodiment, the template information includes a display identification of the field to be displayed.
To achieve the above object, according to another aspect of the embodiments of the present invention, there is provided an apparatus for displaying information.
An information display device according to an embodiment of the present invention includes: the terminal equipment comprises a receiving unit, a display unit and a display unit, wherein the receiving unit is used for receiving a display request sent by the terminal equipment, and the display request comprises a user identifier; the query unit is used for querying a display template corresponding to the user identifier from a preset template library, wherein the display template comprises template information of fields to be displayed and data information of the fields to be displayed; the acquisition unit is used for acquiring the service data corresponding to the field to be displayed according to the data information of the field to be displayed; the determining unit is used for determining a target display field in the display template according to the service data corresponding to the field to be displayed; and the sending unit is used for sending the template information and the service data of the target display field to the terminal equipment so as to facilitate the terminal equipment to render and display.
In one embodiment, the determining unit is specifically configured to:
judging whether the service data corresponding to the field to be displayed meets a preset condition or not;
if so, determining the field to be displayed as the target display field;
if not, determining that the field to be displayed is not the target display field.
In another embodiment, the display template further includes a switch identifier corresponding to the field to be displayed; the determining unit is specifically configured to:
and determining a target display field in the display template according to the service data and the switch identifier corresponding to the field to be displayed.
In another embodiment, the determining unit is specifically configured to:
if the service data corresponding to the field to be displayed meets a preset condition and the switch identifier corresponding to the field to be displayed is an open identifier, determining that the field to be displayed is the target display field;
and if the service data corresponding to the field to be displayed does not meet the preset condition or the switch identifier corresponding to the field to be displayed is not an opening identifier, determining that the field to be displayed is not the target display field.
In another embodiment, the preset condition includes that the service data is not empty, or the type of the service data belongs to a target type.
In a further embodiment, the receiving unit is further configured to receive a construction instruction of the display template, where the construction instruction includes the user identifier and template information of the display template plate including the field to be displayed and the field to be displayed;
the determining unit is further configured to determine data information of the field to be displayed according to a corresponding relationship between the field to be displayed and the service data;
the device further comprises:
and the establishing unit is used for establishing the display template according to the template information of the field to be displayed and the data information of the field to be displayed and establishing the corresponding relation between the display template and the user identifier.
In yet another embodiment, the establishing unit is further configured to establish a field for display, and a field identifier of the field and data information corresponding to the field, where the field includes the field to be displayed.
In another embodiment, the establishing unit is further configured to receive a change instruction of the template information, where the change instruction includes the user identifier and the template change information;
the device further comprises:
and the updating unit is also used for inquiring a display template corresponding to the user identification from the template library and updating the display template according to the template change information.
In another embodiment, the template change information includes a field to be changed and the updated template information of the field to be changed;
the update unit is specifically configured to:
and updating the template information of the field to be changed into the updated template information of the field to be changed.
In yet another embodiment, the display request further comprises an order identification;
the obtaining unit is specifically configured to:
obtaining order information corresponding to the order identification;
and determining the business data corresponding to the field to be displayed from the order information according to the data information of the field to be displayed.
In yet another embodiment, the fields to be displayed include a supplier name corresponding to the order, an order number, a billing date corresponding to the order, an order payment date, an order amount, and/or order inclusion item information.
To achieve the above object, according to still another aspect of an embodiment of the present invention, there is provided an electronic apparatus.
An electronic device of an embodiment of the present invention includes: one or more processors; the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors realize the information display method provided by the embodiment of the invention.
To achieve the above object, according to still another aspect of an embodiment of the present invention, there is provided a computer-readable medium.
A computer-readable medium of an embodiment of the present invention has stored thereon a computer program that, when executed by a processor, implements a display method of information provided by an embodiment of the present invention.
One embodiment of the above invention has the following advantages or benefits: in the embodiment of the invention, after receiving a display request sent by a terminal device, a display template corresponding to a user identifier can be inquired from a preset template library according to the fact that the display request comprises the user identifier, the display template comprises template information of a field to be displayed and data information of the field to be displayed, then business data corresponding to the field to be displayed can be obtained according to the data information of the field to be displayed, a target display field in the display template is determined according to the business data corresponding to the field to be displayed, and then the template information and the business data of the target display field are sent to the terminal device, so that the terminal device can render and display. In the embodiment of the invention, the corresponding display template is configured for each user identifier, the service data is acquired according to the data information in the corresponding template after the display request is received, and the target display field is further determined according to the acquisition result of the service data, so that the flexible display and the personalized display of the information of different users and enterprises are realized.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
fig. 1 is a schematic view of a main flow of a display method of order information according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a main flow of a method for determining a target display field according to an embodiment of the present invention;
fig. 3 is a schematic diagram of the main units of the display device of order information according to the embodiment of the present invention;
FIG. 4 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
FIG. 5 is a schematic block diagram of a computer system suitable for use in implementing embodiments of the present invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict.
The embodiment of the invention provides an information display system, which can be used in an information display scene, for example, in a supply chain service, a user or an enterprise inquires about relevant information of the supply chain service through terminal equipment, and the relevant information of the supply chain service is displayed on the terminal equipment of the user or the enterprise. In particular, the information related to the supply chain service may include various information, such as order information. In general, the supply chain service system may be disposed in a server, where a display template corresponding to query information display is set for each user or enterprise in the server, and when display is needed, the corresponding content is determined based on the display template and sent to the terminal device for rendering display.
An embodiment of the present invention provides a method for displaying information, which may be executed by a server, as shown in fig. 1, and the method includes the following steps.
S101: and receiving a display request sent by the terminal equipment.
Wherein the display request includes a user identification. The user can inquire the information through the terminal equipment, namely, the user sends a display request to the server through the terminal equipment to request to display the information to be inquired.
In the embodiment of the invention, each page to be displayed on the terminal equipment can be preset in the display template corresponding to each user, and the corresponding relation between the display template and the user identifier is established, so that when the user inquires information through the terminal equipment, a display request can be sent to the server through the terminal equipment, and the display request comprises the user identifier, so that personalized content corresponding to the user identifier can be displayed when the information is displayed.
It should be noted that, because the contents displayed on different pages are different and the corresponding display templates are also different, the display request in this step may further include an identifier indicating the display page, such as a page address, a request interface, and the like. In this step, after receiving the display request, it may be determined which page is requested to be displayed by the terminal device, and further, the content to be displayed may be determined.
S102: and inquiring a display template corresponding to the user identification from a preset template library.
The display template comprises template information of fields to be displayed and data information of the fields to be displayed.
The template library is preset in the server. For each display page, the server can set a corresponding display template for each user identifier, store the display template in the template library and establish a corresponding relationship, so that the display page can be determined according to the display request in the step, and the corresponding display template can be inquired from the template library according to the user identifier.
The information in the page can be displayed through the fields, so the fields to be displayed can be set in the display template. The field display usually includes two parts, which are respectively a display identifier for indicating a field and service data corresponding to the field, so that the display template may include template information and data information of the field to be displayed, where the template information includes the display identifier of the field to be displayed, which may be a field name, and the data information indicates information for acquiring the service data corresponding to the field. For example, in a scene of displaying order information, a page display may include an order date field, and for a certain user, a display identifier when the user displays the page display is order time, and the obtaining manner is to obtain from an order generation date of the order information, so that a display template corresponding to the user identifier of the user includes a field to be displayed of the order date, template information of the field to be displayed is order time, and data information of the field to be displayed is a corresponding relationship between the field and the order generation date in the order information, so as to obtain service data corresponding to the field to be displayed through the corresponding relationship.
It should be noted that, when the application scenario is a display scenario of order information in the embodiment of the present invention, the display request may further include an order identifier to indicate which order information is to be displayed, and a field to be displayed included in the display template may be a supplier name, an order number, a billing date corresponding to the order, an order payment date, an order amount, and/or item information included in the order, which corresponds to the order.
S103: and acquiring the service data corresponding to the field to be displayed according to the data information of the field to be displayed.
The data information of the field to be displayed comprises a mode of acquiring the service data corresponding to the field to be displayed, so that the service data corresponding to the field to be displayed can be acquired according to the data information of the field to be displayed after the display template is determined.
Specifically, the display request further includes an order identifier, that is, the page corresponding to the display request is a display page of the order information, and this step may be specifically executed as: acquiring order information corresponding to the order identification; and determining the business data corresponding to the field to be displayed from the order information according to the data information of the field to be displayed.
Since the display request includes the order identifier, it can be determined which order information of the order is displayed this time, that is, the order information corresponding to the order identifier can be obtained, and then the service data corresponding to the field to be displayed can be determined from the order information according to the data information of the field to be displayed. For example, the display template includes a field to be displayed of an order date, the template information of the field to be displayed is order time, and the data information of the field to be displayed is a corresponding relationship between the field and an order generation date in the order information.
S104: and determining a target display field in the display template according to the service data corresponding to the field to be displayed.
After the service data is acquired, whether the field to be displayed is displayed or not, that is, whether the field to be displayed is the target display field or not, may be determined according to the result of acquiring the service data for each field to be displayed. The target display field indicates a field displayed in the terminal device.
It should be noted that, in the process of acquiring the service data, because there may be situations such as incomplete order information or incorrect order information, and problems such as null acquired service data or an incorrect type of service data, a condition, that is, a preset condition, may be preset in the embodiment of the present invention, and whether the acquired service data is successful or not may be determined by the preset condition. If the service data is not successfully acquired, the accurate service data cannot be displayed, and the field to be displayed can not be displayed any more, so that errors in displayed information are avoided.
In the embodiment of the present invention, the preset condition may be set according to a scene, for example, specifically set that the service data is not empty, or the type of the service data belongs to a target type, and the like.
In the embodiment of the invention, switch identifiers can be further arranged on the fields to be displayed in the display template, so that whether the fields to be displayed are displayed or not can be flexibly controlled. Wherein the switch identifier may include an open identifier and a closed identifier. The open identifier indicates that the field to be displayed is a displayable field, and the close identifier indicates that the field cannot be displayed, so that the step can be executed as follows: and determining a target display field in the display template according to the service data and the switch identifier corresponding to the field to be displayed. The method specifically comprises the following steps: if the service data corresponding to the field to be displayed meets the preset conditions and the switch identifier corresponding to the field to be displayed is an open identifier, determining that the field to be displayed is a target display field; and if the service data corresponding to the field to be displayed does not meet the preset condition or the switch identifier corresponding to the field to be displayed is not an opening identifier, determining that the field to be displayed is not the target display field.
It should be noted that, in the embodiment of the present invention, the field to be displayed in the display template may be controlled by adjusting the switch identifier.
S105: and sending the template information and the service data of the target display field to the terminal equipment so as to facilitate the rendering display of the terminal equipment.
After the server determines the target display field, the server can send the template information and the service data of the target display field to the terminal device, so that the terminal device can render the page according to the target display field, and display of information is achieved.
In the embodiment of the invention, each user identification is configured with a corresponding display template, after a display request is received, the service data is acquired according to the data information in the corresponding template, and the target display field is further determined according to the acquisition result of the service data, so that the flexible display and the personalized display of the information of different users and enterprises are realized.
In the embodiment of the invention, the display template in the template library is pre-established.
Specifically, the display template may be constructed according to the instruction, and specifically may be executed as: receiving a construction instruction of a display template, wherein the construction instruction comprises a user identifier, and a display template plate comprises a field to be displayed and template information of the field to be displayed; determining data information of the field to be displayed according to the corresponding relation between the field to be displayed and the service data; and constructing a display template according to the template information of the field to be displayed and the data information of the field to be displayed, and establishing a corresponding relation between the display template and the user identifier.
The construction instruction comprises a field to be displayed included in the display template and template information of the field to be displayed. The template information of the fields to be displayed in different display templates is not necessarily completely the same, so that the template information of the fields to be displayed in the display templates can be indicated through a construction instruction, and then the data information of the fields to be displayed can be determined according to the acquisition mode of the corresponding service data of the fields to be displayed when the fields to be displayed are displayed, specifically, the corresponding relation between the fields to be displayed and the service data can be considered. Therefore, after the template information and the data information of the field to be displayed included in the display template are determined, the display template can be constructed and stored, and the corresponding relation between the display template and the user identification is established, so that the display template can be conveniently inquired through the user identification.
Because each user identifier may set a personalized display template, but the fields to be displayed included in the display template may overlap, in order to simplify the establishment process of the display template, in the embodiment of the present invention, the fields for display may also be established in advance, and then the fields included in the display template are selected from the established fields for display according to the requirements of the user, and are used as the fields to be displayed of the display template, that is, the fields for display include the fields to be displayed in the display template. The field for display may include a field identifier and data information corresponding to the field when establishing the field, and the field identifier may be used to uniquely identify one field, and meanwhile, since the obtaining manners of the service data corresponding to each field are generally the same, the data information of the field may be determined when establishing the field for display. And receiving a construction instruction of the display template, wherein the construction instruction comprises the user identification, the field to be displayed included in the display template and the template information of the field to be displayed, screening the field to be displayed from the established field, and constructing the display template by combining the construction instruction.
Taking the display scene of the order information as an example, the established fields may include: supplier name, order number, billing date, payment date, order amount, title of the order including the item, ID of the order including the item, model number of the order including the item, unit of measure, quantity of the order including the item, and the like.
For different industries and users, the number and name of fields (template information) in the displayed order information can be different, so that a display template corresponding to each user identifier can be established based on the fields, so that the terminal equipment of each user can dynamically display the order information. For example, taking the template information of the field to be displayed in the display template as an example, in the pharmaceutical industry, the field to be displayed of the "supplier name" in the order information display may be displayed as "pharmaceutical manufacturer", so the template information of the "supplier name" is "pharmaceutical manufacturer", and the field to be displayed of the "order number" in the order information display may be displayed as "pharmaceutical order number", so the template information of the "order number" is "pharmaceutical order number"; in the power industry, the field to be displayed of the "supplier name" in the order information display can be displayed as "power enterprise", so the template information of the "supplier name" is "power enterprise", the field to be displayed of the "order number" in the order information display can be displayed as "payment order number", so the template information of the "order number" is "payment order number".
It should be noted that, in the embodiment of the present invention, the field to be displayed and the template information in the display template, and the field to be displayed and the template information may be stored in a key-value form, and the specific display template may be assembled in a key-value form LIST array. For example, fields are established in which supplier name is indicated by supliername, order number is indicated by ORDERID, billing date is indicated by orderidate, payment date is indicated by PAYDATE, order amount is indicated by PAYMONEY, item title is indicated by prodame, item ID is indicated by prodype, item model is indicated by produit, metering unit is indicated by produinit, quantity of items is indicated by PRODNUM, and so forth. The template information of the fields to be displayed in the display template established in the pharmaceutical industry can be expressed as: supplier of supliername-drugs, order-drug document number, order-drug document date, PAYDATE-payment date, payname-drug amount, prodime-drug name, PRODID-drug ID, proddype-drug model, prodenit-drug unit, prodenum-drug quantity.
The following specifically describes, with reference to a system architecture shown in fig. 1, a method for determining a target display field in the embodiment of the present invention, where the embodiment of the present invention takes an example in which a display template includes a switch identifier of a field to be displayed, and describes processing of each field to be displayed, as shown in fig. 2, the method includes the following steps.
S201: and judging whether the switch identifier of the field to be displayed is an opening identifier.
The field to be displayed can not be displayed if the switch identifier is not the opening identifier, and then the field to be displayed can be directly determined not to be the target display field.
S202: if yes, judging whether the service data of the field to be displayed meets the preset conditions.
After the switch identifier of the field to be displayed is determined to be the open identifier, whether the service data of the field to be displayed meets the preset condition needs to be judged.
S203: and if so, determining the field to be displayed as a target display field.
And if the service data of the field to be displayed meets the preset conditions, which indicates that the service data of the field to be displayed is successfully acquired, determining that the field to be displayed is the target display field.
S204: if not, determining that the field to be displayed is not the target display field.
And if the service data of the field to be displayed does not meet the preset condition, which indicates that the service data of the field to be displayed is not successfully acquired, determining that the field to be displayed is not the target display field.
It should be noted that, the processes in the above embodiments may be performed on data to be displayed in the display template to determine whether the data is a template display field.
In the embodiment of the invention, each user identification is configured with a corresponding display template, after a display request is received, the service data is acquired according to the data information in the corresponding template, and the target display field is further determined according to the acquisition result of the service data, so that the flexible display and the personalized display of the information of different users and enterprises are realized.
In order to solve the problems in the prior art, an embodiment of the present invention provides an order information display apparatus 300, as shown in fig. 3, the apparatus 300 includes:
a receiving unit 301, configured to receive a display request sent by a terminal device, where the display request includes a user identifier;
a querying unit 302, configured to query, from a preset template library, a display template corresponding to the user identifier, where the display template includes template information of a field to be displayed and data information of the field to be displayed;
an obtaining unit 303, configured to obtain, according to the data information of the field to be displayed, service data corresponding to the field to be displayed;
a determining unit 304, configured to determine a target display field in the display template according to the service data corresponding to the field to be displayed;
a sending unit 305, configured to send the template information of the target display field and the service data to the terminal device, so that the terminal device renders and displays the template information and the service data.
It should be understood that the manner of implementing the embodiment of the present invention is the same as the manner of implementing the embodiment shown in fig. 1, and the description thereof is omitted.
In an implementation manner of the embodiment of the present invention, the determining unit 304 is specifically configured to:
judging whether the service data corresponding to the field to be displayed meets a preset condition or not;
if so, determining the field to be displayed as the target display field;
if not, determining that the field to be displayed is not the target display field.
In another implementation manner of the embodiment of the present invention, the display template further includes a switch identifier corresponding to the field to be displayed; the determining unit 304 is specifically configured to:
and determining a target display field in the display template according to the service data and the switch identifier corresponding to the field to be displayed.
In another implementation manner of the embodiment of the present invention, the determining unit 304 is specifically configured to:
if the service data corresponding to the field to be displayed meets a preset condition and the switch identifier corresponding to the field to be displayed is an open identifier, determining that the field to be displayed is the target display field;
and if the service data corresponding to the field to be displayed does not meet the preset condition or the switch identifier corresponding to the field to be displayed is not an opening identifier, determining that the field to be displayed is not the target display field.
In another implementation manner of the embodiment of the present invention, the preset condition includes that the service data is not empty, or the type of the service data belongs to a target type.
In another implementation manner of the embodiment of the present invention, the receiving unit 301 is further configured to receive a construction instruction of the display template, where the construction instruction includes the user identifier and the template information that the display template plate includes the field to be displayed and the field to be displayed;
the determining unit 304 is further configured to determine data information of the field to be displayed according to a corresponding relationship between the field to be displayed and the service data;
the apparatus 300 further comprises:
and the establishing unit is used for establishing the display template according to the template information of the field to be displayed and the data information of the field to be displayed and establishing the corresponding relation between the display template and the user identifier.
In another implementation manner of the embodiment of the present invention, the establishing unit is further configured to establish a field for display, and a field identifier of the field and data information corresponding to the field, where the field includes the field to be displayed.
In another implementation manner of the embodiment of the present invention, the establishing unit is further configured to receive a change instruction of template information, where the change instruction includes the user identifier and the template change information;
the apparatus 300 further comprises:
and the updating unit is also used for inquiring a display template corresponding to the user identification from the template library and updating the display template according to the template change information.
In another implementation manner of the embodiment of the present invention, the template change information includes a field to be changed and template information after the field to be changed is updated;
the update unit is specifically configured to:
and updating the template information of the field to be changed into the updated template information of the field to be changed.
In another implementation manner of the embodiment of the present invention, the display request further includes an order identifier;
the obtaining unit 303 is specifically configured to:
obtaining order information corresponding to the order identification;
and determining the business data corresponding to the field to be displayed from the order information according to the data information of the field to be displayed.
In another implementation manner of the embodiment of the present invention, the field to be displayed includes a name of a supplier corresponding to the order, an order number, a billing date corresponding to the order, an order payment date, an order amount, and/or order-including article information.
It should be understood that the embodiment of the present invention is implemented in the same manner as the embodiment shown in fig. 1 or fig. 2, and is not repeated herein.
In the embodiment of the invention, each user identification is configured with a corresponding display template, after a display request is received, the service data is acquired according to the data information in the corresponding template, and the target display field is further determined according to the acquisition result of the service data, so that the flexible display and the personalized display of the information of different users and enterprises are realized.
According to an embodiment of the present invention, an electronic device and a readable storage medium are also provided.
The electronic device of the embodiment of the invention comprises: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the processor, and the instructions are executed by the at least one processor to cause the at least one processor to execute the method for displaying order information provided by the embodiment of the invention.
Fig. 4 shows an exemplary system architecture 400 of a display method of order information or a display apparatus of order information to which an embodiment of the present invention can be applied.
As shown in fig. 4, the system architecture 400 may include terminal devices 401, 402, 403, a network 404, and a server 405. The network 404 serves as a medium for providing communication links between the terminal devices 401, 402, 403 and the server 405. Network 404 may include various types of connections, such as wire, wireless communication links, or fiber optic cables, to name a few.
A user may use terminal devices 401, 402, 403 to interact with a server 405 over a network 404 to receive or send messages or the like. Various client applications may be installed on the terminal devices 401, 402, 403.
The terminal devices 401, 402, 403 may be, but are not limited to, smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 405 may be a server that provides various services, and the server may analyze and perform processing on data such as a received display request and feed back a processing result to the terminal device.
It should be noted that the order information display method provided in the embodiment of the present invention is generally executed by the server 405, and accordingly, the order information display device is generally disposed in the server 405.
It should be understood that the number of terminal devices, networks, and servers in fig. 4 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 5, a block diagram of a computer system 500 suitable for use in implementing embodiments of the present invention is shown. The computer system illustrated in FIG. 5 is only an example and should not impose any limitations on the scope of use or functionality of embodiments of the invention.
As shown in fig. 5, the computer system 500 includes a Central Processing Unit (CPU)501 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage section 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data necessary for the operation of the system 500 are also stored. The CPU 501, ROM 502, and RAM 503 are connected to each other via a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
The following components are connected to the I/O interface 505: an input portion 506 including a keyboard, a mouse, and the like; an output portion 507 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. The driver 510 is also connected to the I/O interface 505 as necessary. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as necessary, so that a computer program read out therefrom is mounted into the storage section 508 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 509, and/or installed from the removable medium 511. The computer program performs the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 501.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a unit, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present invention may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes a receiving unit, an inquiring unit, an acquiring unit, a determining unit, and a transmitting unit. Where the names of these elements do not in some cases constitute a limitation of the element itself, for example, a receiving element may also be described as "an element of the function of the receiving element".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer-readable medium carries one or more programs which, when executed by a device, cause the device to perform the method for displaying order information provided by the present invention.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (20)

1. A method of displaying information, comprising:
receiving a display request sent by terminal equipment, wherein the display request comprises a user identifier;
inquiring a display template corresponding to the user identification from a preset template library, wherein the display template comprises template information of fields to be displayed and data information of the fields to be displayed;
acquiring service data corresponding to the field to be displayed according to the data information of the field to be displayed;
determining a target display field in the display template according to the service data corresponding to the field to be displayed;
and sending the template information and the service data of the target display field to the terminal equipment so as to facilitate the terminal equipment to render and display.
2. The method according to claim 1, wherein the determining a target display field in the display template according to the service data corresponding to the field to be displayed comprises:
judging whether the service data corresponding to the field to be displayed meets a preset condition or not;
if so, determining the field to be displayed as the target display field;
if not, determining that the field to be displayed is not the target display field.
3. The method according to claim 1, wherein the display template further comprises a switch identifier corresponding to the field to be displayed;
determining a target display field in the display template according to the service data corresponding to the field to be displayed, including:
and determining a target display field in the display template according to the service data and the switch identifier corresponding to the field to be displayed.
4. The method according to claim 3, wherein the determining the target display field in the display template according to the service data and the switch identifier corresponding to the field to be displayed comprises:
if the service data corresponding to the field to be displayed meets a preset condition and the switch identifier corresponding to the field to be displayed is an open identifier, determining that the field to be displayed is the target display field;
and if the service data corresponding to the field to be displayed does not meet the preset condition or the switch identifier corresponding to the field to be displayed is not an opening identifier, determining that the field to be displayed is not the target display field.
5. The method according to claim 2 or 4, wherein the preset condition comprises that the service data is not empty or that the type of the service data belongs to a target type.
6. The method according to claim 1, wherein before querying the display template corresponding to the user identifier from a preset template library, the method further comprises:
receiving a construction instruction of the display template, wherein the construction instruction comprises the user identification, the field to be displayed included in the display template and the template information of the field to be displayed;
determining data information of the field to be displayed according to the corresponding relation between the field to be displayed and the service data;
and constructing the display template according to the template information of the field to be displayed and the data information of the field to be displayed, and establishing the corresponding relation between the display template and the user identification.
7. The method of claim 6, further comprising, prior to said receiving instructions for constructing the display template:
and establishing a field for display, and identifying the field of the field and data information corresponding to the field, wherein the field comprises the field to be displayed.
8. The method of claim 1, further comprising:
receiving a change instruction of template information, wherein the change instruction comprises the user identification and the template change information;
and inquiring a display template corresponding to the user identification from the template library, and updating the display template according to the template change information.
9. The method of claim 8, wherein the template change information comprises a field to be changed and the template information after the field to be changed is updated;
the updating the display template according to the template change information includes:
and updating the template information of the field to be changed into the updated template information of the field to be changed.
10. The method of claim 1, wherein the display request further comprises an order identification;
the acquiring the service data corresponding to the field to be displayed according to the data information of the field to be displayed includes:
obtaining order information corresponding to the order identification;
and determining the business data corresponding to the field to be displayed from the order information according to the data information of the field to be displayed.
11. The method of claim 10, wherein the fields to be displayed comprise a supplier name corresponding to the order, an order number, a billing date corresponding to the order, an order payment date, an order amount, and/or an order including item information.
12. The method of claim 1, wherein the template information comprises a display identifier of the field to be displayed.
13. An order information display device, comprising:
the terminal equipment comprises a receiving unit, a display unit and a display unit, wherein the receiving unit is used for receiving a display request sent by the terminal equipment, and the display request comprises a user identifier;
the query unit is used for querying a display template corresponding to the user identifier from a preset template library, wherein the display template comprises template information of fields to be displayed and data information of the fields to be displayed;
the acquisition unit is used for acquiring the service data corresponding to the field to be displayed according to the data information of the field to be displayed;
the determining unit is used for determining a target display field in the display template according to the service data corresponding to the field to be displayed;
and the sending unit is used for sending the template information and the service data of the target display field to the terminal equipment so as to facilitate the terminal equipment to render and display.
14. The apparatus according to claim 13, wherein the determining unit is specifically configured to:
judging whether the service data corresponding to the field to be displayed meets a preset condition or not;
if so, determining the field to be displayed as the target display field;
if not, determining that the field to be displayed is not the target display field.
15. The apparatus according to claim 13, wherein the display template further comprises a switch identifier corresponding to the field to be displayed; the determining unit is specifically configured to:
and determining a target display field in the display template according to the service data and the switch identifier corresponding to the field to be displayed.
16. The apparatus according to claim 15, wherein the determining unit is specifically configured to:
if the service data corresponding to the field to be displayed meets a preset condition and the switch identifier corresponding to the field to be displayed is an open identifier, determining that the field to be displayed is the target display field;
and if the service data corresponding to the field to be displayed does not meet the preset condition or the switch identifier corresponding to the field to be displayed is not an opening identifier, determining that the field to be displayed is not the target display field.
17. The apparatus according to claim 14 or 16, wherein the preset condition comprises that the service data is not empty or that the type of the service data belongs to a target type.
18. The apparatus according to claim 14 or 16, wherein the receiving unit is further configured to receive a construction instruction of the display template, where the construction instruction includes the user identifier and template information of the display template plate including the field to be displayed and the field to be displayed;
the determining unit is further configured to determine data information of the field to be displayed according to a corresponding relationship between the field to be displayed and the service data;
the device further comprises:
and the establishing unit is used for establishing the display template according to the template information of the field to be displayed and the data information of the field to be displayed and establishing the corresponding relation between the display template and the user identifier.
19. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-12.
20. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-12.
CN202110055440.7A 2021-01-15 2021-01-15 Information display method and device, electronic equipment and storage medium Pending CN112835962A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110055440.7A CN112835962A (en) 2021-01-15 2021-01-15 Information display method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110055440.7A CN112835962A (en) 2021-01-15 2021-01-15 Information display method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112835962A true CN112835962A (en) 2021-05-25

Family

ID=75928490

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110055440.7A Pending CN112835962A (en) 2021-01-15 2021-01-15 Information display method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112835962A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114625458A (en) * 2022-02-16 2022-06-14 中国建设银行股份有限公司 Page data processing method and device, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114625458A (en) * 2022-02-16 2022-06-14 中国建设银行股份有限公司 Page data processing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107203629B (en) Page presentation method, system and device
CN112308552B (en) Method and device for ordering medical insurance medicine
CN112817562B (en) Service processing method and device
CN112947919A (en) Method and device for constructing service model and processing service request
CN111787041B (en) Method and device for processing data
CN112258104A (en) Transfer information generation method, article transfer method, apparatus, device and medium
CN113420010B (en) Database management method, device, electronic equipment and storage medium
CN112835962A (en) Information display method and device, electronic equipment and storage medium
CN114185941A (en) Report data query method and device, electronic equipment and storage medium
CN111666166A (en) Service providing method, device, equipment and storage medium
CN116737662A (en) Method, device, electronic equipment and storage medium for processing business data
CN113656506B (en) Electronic specification acquisition method and device and readable medium
CN114722108A (en) Customer service data processing method and device, electronic equipment and storage medium
CN113821430B (en) Multi-service testing method and device
CN114997977A (en) Data processing method and device, electronic equipment and computer readable medium
CN116185806A (en) Digital currency system testing method and device
CN113496321B (en) Method and device for determining workload
CN112579428B (en) Interface testing method, device, electronic equipment and storage medium
CN114625458A (en) Page data processing method and device, electronic equipment and storage medium
CN115442420A (en) Block chain cross-chain service management method and device
CN113485902A (en) Method, device, equipment and computer readable medium for testing service platform
CN112445987A (en) Webpage updating method, device and system
CN111597784A (en) Information sending method, device, terminal equipment and medium
CN113762865A (en) Inventory information processing method and device
CN113448602A (en) Version updating method and device

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