Service attribute display method and device
By receiving and processing business attribute configuration and displaying instructions, and generating and displaying attribute values of sub-attributes, the problems of bloated code and high operation and maintenance costs are solved, and the reusability of code and the reduction of operation and maintenance costs are achieved.
Patent Information
- Application Number
- CN202311753492.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-19
- Publication Date
- 2025-06-20
AI Technical Summary
During the operation of an enterprise, the adjustment of multiple businesses requires the development of docking codes for different business attributes, resulting in bloated codes and high operation and maintenance costs.
By receiving configuration instructions for target attributes, the attribute information of the target attributes is determined, including business information, display information and processing information of sub-attributes, and the attribute value of the sub-attributes is generated, and when the display instruction is received, the attribute value of the sub-attributes corresponding to the target attributes is displayed according to the service information.
There is no need to develop docking codes for different business attributes to improve code reusability and reduce operation and maintenance costs.
Smart Images

Figure CN120179216A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular, to a method and apparatus for displaying service attributes. Background Art
[0002] During the operation of an enterprise, it may be necessary to continuously adjust multiple services. The services come from multiple service lines, and different service lines have different service characteristics. Each service line corresponds to different service attributes, and different service attributes correspond to different processing information and evaluation criteria. Therefore, when docking different service attributes, it is necessary to develop docking codes for different service attributes respectively, resulting in bloated codes and high operation and maintenance costs. Summary of the Invention
[0003] In view of this, embodiments of the present invention provide a method and apparatus for displaying service attributes, which do not require developing docking codes for different service attributes respectively, can improve the reusability of the codes, and reduce the operation and maintenance costs.
[0004] In a first aspect, an embodiment of the present invention provides a method for displaying service attributes, including:
[0005] Receiving a configuration instruction for a target attribute; wherein the target attribute corresponds to a plurality of sub-attributes;
[0006] Determining the attribute information of the target instruction according to the configuration instruction; wherein the attribute information includes: service information, display information, and processing information of each sub-attribute;
[0007] For each sub-attribute, determining the attribute value of the sub-attribute according to the display information and the processing information of the sub-attribute;
[0008] Receiving a display instruction for the target attribute, and displaying the attribute values of the sub-attributes corresponding to the target attribute according to the service information.
[0009] Optionally, the determining the attribute value of the sub-attribute according to the display information and the processing information of the sub-attribute includes:
[0010] In response to the display information indicating that the target attribute is an achievement rate type attribute or a timeliness rate type attribute, obtaining a first processing value and a second processing value from a database according to the processing information;
[0011] Determining a first calculation formula and a second calculation formula according to the processing information;
[0012] Substituting the first processing value into the first calculation formula to obtain the numerator value of the sub-attribute;
[0013] Substitute the second processing value into the second calculation formula to obtain the denominator value of the sub-attribute;
[0014] Determine the attribute value of the sub-attribute by the ratio of the numerator value to the denominator value.
[0015] Optionally, determining the attribute value of the sub-attribute according to the display information and the processing information of the sub-attribute includes:
[0016] In response to the display information indicating that the target attribute is a single quantity type attribute, obtain the value to be processed from the database according to the processing information;
[0017] Determine the calculation formula corresponding to the sub-attribute according to the processing information;
[0018] Substitute the value to be processed into the calculation formula to obtain the attribute value of the sub-attribute.
[0019] Optionally, determining the attribute value of the sub-attribute according to the display information and the processing information of the sub-attribute includes:
[0020] Determine the attribute values of the sub-attribute in the whole region and each sub-region according to the display information and the processing information of the sub-attribute;
[0021] Receiving a display instruction for the target attribute and displaying the attribute values of the sub-attributes corresponding to the target attribute according to the service information includes:
[0022] In response to the display instruction being a browsing instruction for the target attribute, display the attribute values of each sub-attribute in the whole region according to the service information;
[0023] In response to the display instruction being a drill-down instruction for the sub-attribute, display the attribute values of the sub-attribute in each sub-region according to the service information.
[0024] Optionally, the attribute information further includes: sorting information;
[0025] Displaying the attribute values of the sub-attribute in each sub-region according to the display information includes:
[0026] Sort the attribute values of the sub-attribute in each sub-region according to the sorting information;
[0027] Display the sorted attribute values of the sub-attribute in each sub-region according to the display information.
[0028] Optionally, displaying the attribute values of the sub-attributes corresponding to the target attribute according to the service information includes:
[0029] Determine the business line and attribute type corresponding to the target attribute according to the business information;
[0030] Determine the attribute grouping corresponding to the target attribute according to the business line and attribute type corresponding to the target attribute;
[0031] In the display area corresponding to the attribute grouping, display the attribute values of the sub-attributes corresponding to the target attribute.
[0032] Optionally, the displaying the attribute values of multiple sub-attributes corresponding to the target attribute according to the business information includes:
[0033] Determine the suffix symbol corresponding to the display information;
[0034] For each of the sub-attributes, combine the attribute value of the sub-attribute and the suffix symbol to generate the display value of the sub-attribute;
[0035] According to the business information, display the display values of each of the sub-attributes.
[0036] In a second aspect, an embodiment of the present invention provides a display device for business attributes, including:
[0037] An instruction receiving module, configured to receive a configuration instruction for a target attribute; wherein, the target attribute corresponds to multiple sub-attributes;
[0038] An information determining module, configured to determine the attribute information of the target instruction according to the configuration instruction; wherein, the attribute information includes: business information, display information, and processing information of each of the sub-attributes;
[0039] A value determining module, configured to determine the attribute value of each of the sub-attributes according to the display information and the processing information of the sub-attribute;
[0040] An attribute display module, configured to receive a display instruction for the target attribute, and display the attribute values of the sub-attributes corresponding to the target attribute according to the business information.
[0041] In a third aspect, an embodiment of the present invention provides an electronic device, including:
[0042] One or more processors;
[0043] A storage device, configured to store one or more programs,
[0044] When the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any of the above embodiments.
[0045] Fourthly, an embodiment of the present invention provides a computer-readable medium, on which a computer program is stored, and when the program is executed by a processor, the method described in any of the above embodiments is implemented.
[0046] One embodiment of the above invention has the following advantages or beneficial effects: According to the configuration instruction of the target attribute, the attribute information of the target attribute is determined, and the attribute information may include: service information, display information, processing information of each sub-attribute, etc. According to the attribute information of the target instruction, the attribute values of each sub-attribute corresponding to the target attribute are generated, and when a display instruction for the target attribute is received, the attribute values of the sub-attributes corresponding to the target attribute are displayed. Therefore, in the case of adding or modifying business attributes, the user can set different attribute information for the business attributes through configuration instructions, and the system calculates and displays the sub-attributes corresponding to the business attributes according to the attribute information of the business attributes, without separately developing docking codes for different business attributes, which can improve the code reusability and reduce the maintenance cost.
[0047] The further effects of the above non-conventional optional methods will be described in conjunction with specific embodiments below. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] The drawings are used to better understand the present invention and do not constitute an improper limitation to the present invention. Among them:
[0049] Figure 1 is a schematic diagram of the process of a method for displaying a business attribute provided by an embodiment of the present invention;
[0050] Figure 2 is a schematic diagram of the process of a method for displaying a business attribute provided by another embodiment of the present invention;
[0051] Figure 3 is a schematic diagram of the process of a method for displaying a business attribute provided by still another embodiment of the present invention;
[0052] Figure 4 is a schematic diagram of the structure of a device for displaying a business attribute provided by an embodiment of the present invention;
[0053] Figure 5 is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing the embodiments of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0054] The following describes exemplary embodiments of the present invention with reference to the accompanying drawings. Various details of the embodiments of the present invention are included to facilitate understanding, and they should be considered merely exemplary. Therefore, those of ordinary skill in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, descriptions of well-known functions and structures are omitted in the following description for clarity and conciseness.
[0055] It should be noted that in the technical solutions of the embodiments of the present invention, the acquisition, storage, use, processing, etc. of data all comply with the relevant provisions of national laws and regulations.
[0056] Figure 1 It is a schematic diagram of the process of a method for displaying service attributes provided by an embodiment of the present invention. As Figure 1 shown, the method includes:
[0057] Step 101: Receive a configuration instruction for a target attribute; wherein, the target attribute corresponds to multiple sub-attributes.
[0058] Multiple target attributes can be configured according to business requirements, such as Attribute 1, Attribute 2, Attribute 3, etc. Attributes can be presented and calculated in the form of metrics. Each service attribute corresponds to multiple sub-attributes. For example, the sub-attributes corresponding to Attribute 1 may include: annual target achievement rate of Attribute 1, year-to-date value of Attribute 1, monthly target achievement rate of Attribute 1, month-to-date value of Attribute 1, etc.
[0059] Step 102: Determine the attribute information of the target instruction according to the configuration instruction; wherein, the attribute information includes: business information, display information, and processing information of each sub-attribute.
[0060] The system provides an attribute entry and maintenance module, including functions such as adding attributes and modifying attributes. The system automatically reads data from the attribute information module and dynamically realizes the reading, filtering, processing, and display of attribute data according to the attribute information of the attributes. Operations such as editing and deprecating each attribute can also be performed.
[0061] The business information is used to characterize the business feature information of the target attribute. The business information may include: attribute code, attribute name, business line, attribute type sorting identifier, etc. Using the attribute code as the unique identifier to avoid duplicate attribute configurations. The business line and attribute type can be set according to business requirements. The attribute type may include: time-limit type attributes, service type attributes, security type attributes, etc.
[0062] The display information is information related to the display form of the target attribute. The display information can characterize that the target attribute is an achievement rate type attribute, a timeliness rate type attribute, or a single volume type attribute. The achievement rate type attribute or timeliness rate type attribute is presented in the form of a percentage or per mille, and the single volume type attribute is presented in terms of quantity.
[0063] The processing information is used to characterize the relevant information for generating sub - attributes. The processing information may include: processing value information, calculation formula information, reference value, formula parameters, calculation template identifier, calculation logic description, etc.
[0064] Step 103: For each sub - attribute, determine the attribute value of the sub - attribute according to the display information and the processing information of the sub - attribute.
[0065] According to the processing value information and the calculation formula information in the processing information of the sub - attribute, generate the attribute value of the sub - attribute. The processing value information includes: the mapping relationship between the value to be processed and the target field in the target table of the database. The system automatically calculates the processing value corresponding to the sub - attribute according to the aging information of the sub - attribute, and saves the value to be processed and the update time in the target table. When obtaining the value to be processed, first determine whether the calculation of the value to be processed has been completed according to the update time in the target table. If so, obtain the value to be processed from the target field of the target table.
[0066] Preset multiple calculation formulas in the system and set formula identifiers for each calculation formula. The calculation formula information in the processing information of the sub - attribute may include: formula identifier. By substituting the value to be processed corresponding to the sub - attribute into the calculation formula corresponding to the formula identifier, generate the attribute value of the sub - attribute. The number of values to be processed can be multiple. The number of values to be processed and the form of the calculation formula can both be set and adjusted according to business requirements.
[0067] In an embodiment of the present invention, determining the attribute value of the sub - attribute according to the display information and the processing information of the sub - attribute includes: in response to the display information characterizing the target attribute as an achievement rate type attribute or a timeliness rate type attribute, obtaining a first processing value and a second processing value from the database according to the processing information; determining a first calculation formula and a second calculation formula according to the processing information; substituting the first processing value into the first calculation formula to obtain the numerator value of the sub - attribute; substituting the second processing value into the second calculation formula to obtain the denominator value of the sub - attribute; determining the attribute value of the sub - attribute by taking the ratio of the numerator value to the denominator value.
[0068] For achievement rate type attributes or timeliness rate type attributes, calculate using the ratio of the numerator value to the denominator value. Set in the processing information respectively: the first mapping relationship between the first processing value and the first target field in the first target table, the second mapping relationship between the second processing value and the second target field in the second target table, the first formula identifier and the second formula identifier. Obtain the first processing value according to the first mapping relationship. Obtain the second processing value according to the second mapping relationship. Substitute the first processing value into the first calculation formula corresponding to the first formula identifier to obtain the denominator value. Substitute the second processing value into the second calculation formula corresponding to the second formula identifier to obtain the denominator value.
[0069] It should be noted that when obtaining the value to be processed, first determine whether the calculation of the value to be processed has been completed according to the update times in the first target table and the second target table. If so, obtain the value to be processed from the target field of the target table.
[0070] For example, multiple candidate molecular calculation formulas are preset in the system, including:
[0071] ID1: [(Reference value 1 + Reference value 2) * Monthly target] / Multiple - Reference value 3;
[0072] ID2: Reference value 2.
[0073] Multiple candidate denominator calculation formulas are preset in the system, including:
[0074] ID3: Reference value 1 / Number of days from the beginning of the month to today * Number of days from today to the end of the month;
[0075] ID4: Reference value 1.
[0076] Among them, ID1, ID2, ID3, and ID4 are formula identifiers. The monthly target, multiple, etc. in the calculation formula are reference values or formula parameters, and the reference values or formula parameters can be specified through configuration instructions. Or developers can specify the reference values or formula parameters in the configuration file of the system.
[0077] The system obtains each value to be processed from the database according to the processing information. According to the first formula identifier in the processing information, determine the first calculation formula from multiple candidate molecular calculation formulas. Substitute each first processed value into the first calculation formula to generate a molecular value. According to the second formula identifier in the processing information, determine the second calculation formula from multiple candidate denominator calculation formulas. Substitute the second value into the second calculation formula to generate a denominator value. Finally, determine the attribute value of the sub-attribute as the ratio of the molecular value to the denominator value.
[0078] In an embodiment of the present invention, determining the attribute value of the sub-attribute according to the display information and the processing information of the sub-attribute includes: in response to the display information indicating that the target attribute is a single quantity type attribute, obtain the value to be processed from the database according to the processing information; determine the calculation formula corresponding to the sub-attribute according to the processing information; substitute the value to be processed into the calculation formula to obtain the attribute value of the sub-attribute.
[0079] For the single quantity type attribute, set in the processing information respectively: the mapping relationship between the value to be processed and the target field in the target table, the formula identifier, etc. Obtain the value to be processed according to the mapping relationship. Substitute the value to be processed into the calculation formula corresponding to the formula identifier to obtain the attribute value.
[0080] It should be noted that when obtaining the value to be processed, first determine the update time of the target table to determine whether the calculation of the value to be processed has been completed. If so, obtain the value to be processed from the target field of the target table.
[0081] Step 104: Receive a display instruction for the target attribute, and display the attribute values of the sub-attributes corresponding to the target attribute according to the service information.
[0082] The service information includes: service line and attribute type. Obtain the service line and attribute type corresponding to multiple service attributes; group the multiple service attributes according to the service line and attribute type corresponding to the service attributes to obtain multiple attribute groups. When receiving a display instruction, determine the service line and attribute type corresponding to the display instruction; determine the target group from the multiple attribute groups according to the service line and attribute type corresponding to the display instruction; display the attribute values of the multiple sub-attributes corresponding to each service attribute in the target group.
[0083] It is also possible to determine the attribute group corresponding to the target attribute according to the service line and attribute type corresponding to the target attribute. Receive a display instruction for the target attribute, and display the attribute values of the sub-attributes corresponding to the target attribute in the display area corresponding to the attribute group. Group and display the target attributes according to the service line and attribute type, which is convenient for users to view and browse each attribute value.
[0084] In the embodiments of the present invention, according to the configuration instruction of the target attribute, determine the attribute information of the target instruction. According to the attribute information of the target attribute, generate the attribute values of the sub-attributes corresponding to the target attribute, and display the attribute values of the sub-attributes corresponding to the target attribute when receiving a display instruction for the target attribute. Therefore, in the case of adding or modifying service attributes, users can set different attribute information for the service attributes through configuration instructions, and the system completes the calculation and display of the sub-attributes corresponding to the service attributes according to the attribute information of the service attributes, without developing docking codes for different service attributes separately, which can improve the reusability of the codes and reduce the maintenance cost.
[0085] In addition, after the relevant staff enter the attribute information of each attribute, the system obtains the attribute information of each attribute from the data table, including the update date, service line, attribute attributes, attribute code, cycle, attribute type, area code, area name, park code, warehouse number, and the processing information of each sub-attribute, etc. There is no need for R & D to participate in the coding work, and the system automatically completes the input of attribute data to the display of attribute data, realizing one-time development and long-term reuse. Development and testing do not require understanding of business details, achieving cost reduction and efficiency improvement.
[0086] In addition, without any changes, the system can achieve the docking of new service attributes through configuration instructions. In the case where some attributes need to be changed, the attribute information can also be modified through configuration instructions to achieve quick response and reduce the development cost and operation and maintenance difficulty.
[0087] Figure 2 It is a schematic diagram of the process of a method for displaying service attributes provided by another embodiment of the present invention. As Figure 2 shown, the method includes:
[0088] Step 201: Receive a configuration instruction for a target attribute; wherein, the target attribute corresponds to multiple sub-attributes.
[0089] Step 202: Determine the attribute information of the target instruction according to the configuration instruction; wherein, the attribute information includes: service information, display information, and processing information of each sub-attribute.
[0090] Step 203: For each sub-attribute, determine the attribute values of the sub-attribute in the entire area and each sub-area according to the display information and the processing information of the sub-attribute.
[0091] Step 204: Receive a display instruction for the target attribute.
[0092] Step 205: In response to the display instruction being a browsing instruction for the target attribute, display the attribute values of each sub-attribute in the entire area according to the service information.
[0093] Step 206: In response to the display instruction being a drill-down instruction for the sub-attribute, display the attribute values of the sub-attribute in each sub-area according to the service information.
[0094] The attribute information further includes: sorting information; the attribute values for displaying the attribute values of the sub-attributes in each sub-area according to the display information include: sorting the attribute values of the sub-attributes in each sub-area according to the sorting information; displaying the attribute values of the sorted sub-attributes in each sub-area according to the display information.
[0095] The sorting information can represent ascending sorting or descending sorting. In the case where the sorting information represents ascending sorting, sort the attribute values of the sub-attributes in each sub-area in ascending order and display the attribute values of the sub-attributes in each sub-area after ascending sorting. In the case where the sorting information represents descending sorting, sort the attribute values of the sub-attributes in each sub-area in descending order and display the attribute values of the sub-attributes in each sub-area after descending sorting.
[0096] In an embodiment of the present invention, if the display instruction is a browsing instruction for a target attribute, the attribute values of each sub-attribute in the entire area are displayed. If the display instruction is a drilling-down instruction for a sub-attribute, the attribute values of the sub-attribute in each sub-area are displayed. By setting the browsing instruction and the drilling-down instruction for the target attribute, it is convenient for the user to comprehensively or in detail browse the attribute data as needed.
[0097] Figure 3 It is a schematic diagram of the process of a method for displaying service attributes provided by another embodiment of the present invention. As Figure 3 shown, the method includes:
[0098] Step 301: Receive a configuration instruction for a target attribute; wherein, the target attribute corresponds to multiple sub-attributes.
[0099] Step 302: Determine the attribute information of the target instruction according to the configuration instruction; wherein, the attribute information includes: service information, display information, and processing information of each sub-attribute.
[0100] Step 303: For each sub-attribute, determine the attribute value of the sub-attribute according to the display information and the processing information of the sub-attribute.
[0101] Step 304: Determine the service line and attribute type corresponding to the target attribute according to the service information.
[0102] The service information may include: service line, attribute type, etc. The service line and attribute type can be set according to business requirements. The attribute type may include: time-limit attributes, service attributes, security attributes, etc.
[0103] The system provides a service line creation module. After the service line is created, a service line list is returned through the backend interface, and the front end is used to horizontally select the service line corresponding to the attribute.
[0104] The system provides an attribute type creation module. After the attribute type is created, business import data is obtained through the backend interface, and an attribute type list is returned. The front end is used to select the service type corresponding to the attribute.
[0105] Step 305: Determine the attribute group corresponding to the target attribute according to the service line and attribute type corresponding to the target attribute.
[0106] Attributes with the same service line and attribute type are divided into one attribute group. Different display areas can be set for different attribute groups on the same display page. Different display pages can also be set for different attribute groups. The user selects different attribute groups by clicking on the labels or buttons at the top of the page. The system determines the attribute group selected by the user and jumps to the display page or display area corresponding to the attribute group to display the attribute values in the page group.
[0107] The system can also support attribute filtering according to time dimensions such as daily, weekly, and monthly, such as displaying the data trend of the most recent week, and exporting attribute data according to the set time dimension, etc.
[0108] Step 306: Receive a display instruction for a target attribute, and display the attribute values of the sub-attributes corresponding to the target attribute in the display area corresponding to the attribute group.
[0109] According to the business information, display the attribute values of multiple sub-attributes corresponding to the target attribute, including: determining the suffix symbol corresponding to the display information; for each sub-attribute, combining the attribute value of the sub-attribute and the suffix symbol to generate the display value of the sub-attribute; according to the business information, display the display values of each sub-attribute.
[0110] Different suffix symbols can be set for different display information according to business requirements. When the display information indicates that the target attribute is an achievement rate type attribute or a timely rate type attribute, the suffix symbol can be %, ‰, etc. When the display information indicates that the target attribute is a single volume type attribute, the suffix symbol can be yuan, piece, item, etc. For example, if the sub-attribute is the cumulative amount of the current year, the attribute value is 100, the display information indicates a single volume type attribute, and the suffix symbol is yuan, then the display value is 100 yuan. Another example is that if the sub-attribute is the monthly target achievement rate, the attribute value is 95, the display information indicates an achievement rate type attribute, and the suffix symbol is %, then the display value is 95%. By setting the suffix symbol corresponding to the display information to generate the display values of each sub-attribute, the browsing experience of users can be improved.
[0111] In the embodiment of the present invention, according to the business line and attribute type corresponding to the target attribute, determine the attribute group corresponding to the target attribute. Display the attribute values of the sub-attributes corresponding to the target attribute in the display area corresponding to the attribute group. This facilitates users to find the attribute information they need to browse through the attribute group. In addition, development and operation and maintenance personnel can also classify and manage multiple attributes from multiple business lines through the attribute group.
[0112] Figure 4 It is a schematic structural diagram of a display device for business attributes provided by an embodiment of the present invention. As Figure 4 shown, the device includes:
[0113] An instruction receiving module 401, configured to receive a configuration instruction for a target attribute; wherein, the target attribute corresponds to multiple sub-attributes;
[0114] An information determining module 402, configured to determine the attribute information of the target instruction according to the configuration instruction; wherein, the attribute information includes: business information, display information, and processing information of each sub-attribute;
[0115] A value determination module 403, configured to determine the attribute value of each sub-attribute according to the display information and the processing information of the sub-attribute;
[0116] An attribute display module 404, configured to receive a display instruction for a target attribute and display the attribute values of the sub-attributes corresponding to the target attribute according to the service information.
[0117] Optionally, the information determination module 402 is specifically configured to:
[0118] In response to the display information indicating that the target attribute is an achievement rate type attribute or a timeliness rate type attribute, obtain a first processing value and a second processing value from the database according to the processing information;
[0119] Determine a first calculation formula and a second calculation formula according to the processing information;
[0120] Substitute the first processing value into the first calculation formula to obtain the numerator value of the sub-attribute;
[0121] Substitute the second processing value into the second calculation formula to obtain the denominator value of the sub-attribute;
[0122] Determine the attribute value of the sub-attribute as the ratio of the numerator value to the denominator value.
[0123] Optionally, the information determination module 402 is specifically configured to:
[0124] In response to the display information indicating that the target attribute is a single quantity type attribute, obtain a value to be processed from the database according to the processing information;
[0125] Determine the calculation formula corresponding to the sub-attribute according to the processing information;
[0126] Substitute the value to be processed into the calculation formula to obtain the attribute value of the sub-attribute.
[0127] Optionally, the information determination module 402 is specifically configured to:
[0128] Determine the attribute values of the sub-attribute in the entire region and each sub-region according to the display information and the processing information of the sub-attribute;
[0129] The attribute display module 404 is specifically configured to:
[0130] In response to the display instruction being a browsing instruction for the target attribute, display the attribute values of each sub-attribute in the entire region according to the service information;
[0131] In response to the display instruction being a drill-down instruction for the sub-attribute, display the attribute values of the sub-attribute in each sub-region according to the service information.
[0132] Optionally, the attribute information further includes: sorting information;
[0133] The attribute display module 404 is specifically configured to:
[0134] Sort the attribute values of the sub-attributes in each sub-region according to the sorting information;
[0135] Display the attribute values of the sorted sub-attributes in each sub-region according to the display information.
[0136] Optionally, the attribute display module 404 is specifically configured to:
[0137] Determine the business line and attribute type corresponding to the target attribute according to the business information;
[0138] Determine the attribute group corresponding to the target attribute according to the business line and attribute type corresponding to the target attribute;
[0139] In the display area corresponding to the attribute group, display the attribute values of the sub-attributes corresponding to the target attribute.
[0140] Optionally, the attribute display module 404 is specifically configured to:
[0141] Determine the suffix symbol corresponding to the display information;
[0142] For each sub-attribute, combine the attribute value of the sub-attribute and the suffix symbol to generate a display value of the sub-attribute;
[0143] Display the display values of the sub-attributes according to the business information.
[0144] An embodiment of the present invention provides an electronic device, including:
[0145] One or more processors;
[0146] A storage device for storing one or more programs,
[0147] When the one or more programs are executed by the one or more processors, the one or more processors implement the method of any of the above embodiments.
[0148] Next, refer to Figure 5 , which shows a schematic structural diagram of a computer system 500 of a terminal device suitable for implementing the embodiments of the present invention. Figure 5 The terminal device shown is only an example and should not impose any limitation on the functions and usage scope of the embodiments of the present invention.
[0149] As shown in Figure 5As shown, computer system 500 includes a central processing unit (CPU) 501, which 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 required 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 the bus 504.
[0150] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc. and a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed so that a computer program read therefrom can be installed into the storage section 508 as needed.
[0151] Specifically, according to the embodiments disclosed in the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed in the present invention include a computer program product that includes a computer program carried on a computer-readable medium, and the computer program contains program codes for performing the methods shown in the flowcharts. In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 509, and / or installed from the removable medium 511. When the computer program is executed by a central processing unit (CPU) 501, the above functions defined in the system of the present invention are executed.
[0152] It should be noted that the computer-readable medium shown in the present invention can be a computer-readable signal medium, a computer-readable storage medium, or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the computer-readable storage medium can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, the computer-readable storage medium can be any tangible medium that contains or stores a program, and this program can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present invention, the computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, in which the computer-readable program code is carried. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium can also be any computer-readable medium other than the computer-readable storage medium, and this computer-readable medium can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted by any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0153] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations 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 diagram can represent a module, a program segment, or a part of code, and the above module, program segment, or part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they can sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram or flowchart, and the combination of blocks in the block diagram or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.
[0154] The modules involved in the embodiments of the present invention can be implemented in software or in hardware. The described modules can also be provided in a processor. For example, they can be described as: an instruction receiving module, an information determining module, a value determining module, and an attribute displaying module. Among them, the names of these modules do not constitute a limitation to the modules themselves in some cases. For example, the instruction receiving module can also be described as "receiving a configuration instruction for a target attribute; wherein the target attribute corresponds to multiple sub-attributes".
[0155] As another aspect, the present invention also provides a computer-readable medium, which can be included in the device described in the above embodiments; or can exist separately without being assembled into the device. The above computer-readable medium carries one or more programs. When the one or more programs are executed by the device, the device includes:
[0156] Receiving a configuration instruction for a target attribute; wherein the target attribute corresponds to multiple sub-attributes;
[0157] According to the configuration instruction, determining the attribute information of the target instruction; wherein the attribute information includes: service information, display information, and processing information of each of the sub-attributes;
[0158] For each of the sub-attributes, according to the display information and the processing information of the sub-attribute, determining the attribute value of the sub-attribute;
[0159] Receiving a display instruction for the target attribute, and according to the service information, displaying the attribute values of the sub-attributes corresponding to the target attribute.
[0160] According to the technical solution of the embodiments of the present invention, according to the configuration instruction of the target attribute, the attribute information of the target attribute is determined. The attribute information can include: service information, display information, and processing information of each of the sub-attributes, etc. According to the attribute information of the target instruction, the attribute values of the sub-attributes corresponding to the target attribute are generated, and when a display instruction for the target attribute is received, the attribute values of the sub-attributes corresponding to the target attribute are displayed. Therefore, in the case of adding or modifying service attributes, the user can set different attribute information for the service attributes through the configuration instruction, and the system completes the calculation and display of the sub-attributes corresponding to the service attributes according to the attribute information of the service attributes, without developing docking codes for different service attributes separately, which can improve the code reusability and reduce the maintenance cost.
[0161] The above specific embodiments do not constitute a limitation on the protection scope of the present invention. Those skilled in the art should understand that various modifications, combinations, sub - combinations and substitutions can occur depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.
Claims
1. A method for displaying service attributes, characterized in that, Including: Receiving a configuration instruction for a target attribute; wherein, the target attribute corresponds to multiple sub-attributes; Determining attribute information of the target attribute according to the configuration instruction; wherein, the attribute information includes: service information, display information, and processing information of each sub-attribute; For each sub-attribute, determining an attribute value of the sub-attribute according to the display information and the processing information of the sub-attribute; Receiving a display instruction for the target attribute, and displaying the attribute values of the sub-attributes corresponding to the target attribute according to the service information.
2. The method according to claim 1, characterized in that, The determining the attribute value of the sub-attribute according to the display information and the processing information of the sub-attribute includes: In response to the display information indicating that the target attribute is an achievement rate type attribute or a timeliness rate type attribute, obtaining a first processed value and a second processed value from a database according to the processing information; Determining a first calculation formula and a second calculation formula according to the processing information; Substituting the first processed value into the first calculation formula to obtain a numerator value of the sub-attribute; Substituting the second processed value into the second calculation formula to obtain a denominator value of the sub-attribute; Determining the attribute value of the sub-attribute as the ratio of the numerator value to the denominator value.
3. The method according to claim 1, characterized in that, The determining the attribute value of the sub-attribute according to the display information and the processing information of the sub-attribute includes: In response to the display information indicating that the target attribute is a single quantity type attribute, obtaining a value to be processed from a database according to the processing information; Determining a calculation formula corresponding to the sub-attribute according to the processing information; Substituting the value to be processed into the calculation formula to obtain the attribute value of the sub-attribute.
4. The method according to claim 1, characterized in that, The determining the attribute value of the sub-attribute according to the display information and the processing information of the sub-attribute includes: Determining the attribute values of the sub-attribute in the entire region and each sub-region according to the display information and the processing information of the sub-attribute; The receiving a display instruction for the target attribute and displaying the attribute values of the sub-attributes corresponding to the target attribute according to the service information includes: In response to the display instruction being a browsing instruction for the target attribute, displaying the attribute values of each sub-attribute in the entire region according to the service information; In response to the display instruction being a drill-down instruction for the sub-attribute, displaying the attribute values of the sub-attribute in each sub-region according to the service information.
5. The method according to claim 4, characterized in that, The attribute information further includes: sorting information; The displaying the attribute values of the sub-attribute in each sub-region according to the display information includes: Performing a sorting process on the attribute values of the sub-attribute in each sub-region according to the sorting information; Displaying the attribute values of the sub-attribute in each sub-region after the sorting process according to the display information.
6. The method according to claim 1, characterized in that, The displaying the attribute values of the sub-attributes corresponding to the target attribute according to the service information includes: Determining the service line and attribute type corresponding to the target attribute according to the service information; Determining the attribute group corresponding to the target attribute according to the service line and attribute type corresponding to the target attribute; In the display area corresponding to the attribute grouping, display the attribute values of the sub-attributes corresponding to the target attribute.
7. The method according to claim 1, characterized in that, The displaying the attribute values of multiple sub-attributes corresponding to the target attribute according to the service information includes: Determine the suffix symbol corresponding to the display information; For each of the sub-attributes, combine the attribute value of the sub-attribute and the suffix symbol to generate the display value of the sub-attribute; According to the service information, display the display values of the sub-attributes.
8. A device for displaying service attributes, characterized in that,including: An instruction receiving module, configured to receive a configuration instruction for a target attribute; wherein, the target attribute corresponds to multiple sub-attributes; An information determining module, configured to determine the attribute information of the target instruction according to the configuration instruction; wherein, the attribute information includes: service information, display information, and processing information of each of the sub-attributes; A value determining module, configured to, for each of the sub-attributes, determine the attribute value of the sub-attribute according to the display information and the processing information of the sub-attribute; An attribute display module, configured to receive a display instruction for the target attribute, and display the attribute values of the sub-attributes corresponding to the target attribute according to the service information.
9. An electronic device, characterized in that, including: One or more processors; A storage device, configured to store one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1-7.
10. A computer-readable medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, the method according to any one of claims 1-7 is implemented.