Enterprise information query method and device and electronic equipment
By configuring query condition groups and calculation methods on the client, using memory and server to obtain enterprise ID data, and perform intersection or union operations, the problem of low efficiency of multi-dimensional query in the existing technology is solved, and fast response and efficient display are achieved enterprise information query.
Patent Information
- Application Number
- CN202411620798.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-14
- Publication Date
- 2024-12-17
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing enterprise information query scheme is inefficient in multi-dimensional query, and cannot respond quickly and effectively display enterprise information that meets the criteria.
By configuring the query condition group and operation method on the client, first obtain the enterprise ID data from memory. If it does not exist, then obtain it from the server. Intersection or union operations are performed based on the enterprise ID data of a single dimension to obtain the enterprise in multiple dimensions ID data and display it in pagination.
It significantly improves the efficiency and response speed of enterprise information query, facilitates users to configure condition groups and computing methods, and improves user experience and usage rate.
Smart Images

Figure CN119149587A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of the construction industry, and in particular to a method, device and electronic equipment for querying enterprise information. Background Art
[0002] Compared with traditional enterprises, enterprises in the construction industry have multi-dimensional characteristics. Enterprise information includes: winning performance, enterprise personnel, enterprise qualifications, enterprise honors, enterprise credit, enterprise business scope, enterprise registered capital, establishment time, filing location and other different dimensional data. When preparing bids or analyzing potential competitors, bidders often need to query qualified enterprise information based on multi-dimensional data or conditions.
[0003] In the existing enterprise information query solution, users can select multiple data dimensions for query at the same time. The backend performs comprehensive calculations on all data under multiple dimensions, and the query results are transmitted to the frontend for display. This information query method has low information query efficiency. Summary of the invention
[0004] The purpose of the present application is to provide a method, device and electronic device for enterprise information query. Based on the user's condition group configuration and operation mode configuration under at least one enterprise information dimension, the enterprise ID data corresponding to the query condition is obtained from the memory in advance. If not, the enterprise ID data under the query condition is obtained from the request server, and then the enterprise ID data under each query condition under a single dimension is calculated based on the enterprise ID data and operation mode. Finally, the enterprise ID data under multiple dimensions is obtained by taking the intersection operation, and information is searched and displayed. This can greatly improve the efficiency of enterprise information query and the speed of information response, and facilitate users to configure condition groups and operation modes, thereby improving user usage rate and experience.
[0005] In a first aspect, the present application provides a method for querying enterprise information, which is applied to a client; the method includes: responding to a user's configuration operation of a query condition group and an operation method for at least one target enterprise information dimension, and for each query condition in the query condition group under each target enterprise information dimension, determining whether there is enterprise ID data corresponding to the query condition in the memory; if yes, obtaining the enterprise ID data corresponding to the query condition from the memory; if not, sending an enterprise information query request carrying the query condition to a server, so that the server returns the enterprise ID data corresponding to the query condition; for each target enterprise information dimension, calculating the enterprise ID data under the target enterprise information dimension according to the enterprise ID data of each query condition under the target enterprise information dimension and the corresponding operation method; calculating the intersection between the enterprise ID data corresponding to multiple target enterprise information dimensions, to obtain the enterprise ID data under multiple target enterprise information dimensions; responding to the user's information display request, obtaining the enterprise information corresponding to the enterprise ID data under multiple target enterprise information dimensions from the server for display.
[0006] Furthermore, after the above step of obtaining the enterprise ID data under multiple target enterprise information dimensions, it also includes: displaying quantity prompt information; the quantity prompt information is used to remind the user of the number of enterprise data currently retrieved; if the number is 0, it is used to remind the user to reconfigure.
[0007] Furthermore, the above-mentioned operation method is an intersection operation; according to the enterprise ID data of each query condition under the target enterprise information dimension and the corresponding operation method, the step of calculating the enterprise ID data under the target enterprise information dimension includes: executing a first preset method to realize the intersection operation between the enterprise ID data under multiple query conditions to obtain the enterprise ID data under the target enterprise information dimension; wherein, the first preset method is obtained by secondary encapsulation of the third-party library of lodash; the input of the first preset method is a two-dimensional array, and the output is a new intersection array set.
[0008] Furthermore, the above-mentioned operation method is a union operation; according to the enterprise ID data of each query condition under the target enterprise information dimension and the corresponding operation method, the step of calculating the enterprise ID data under the target enterprise information dimension includes: executing the second preset method to realize the union operation between the enterprise ID data under multiple query conditions to obtain the enterprise ID data under the target enterprise information dimension; wherein, the input of the second preset method is a two-dimensional array, and the method performs recursive operations and deduplication operations to output a new one-dimensional array set.
[0009] Furthermore, after the step of sending the enterprise information query request carrying the query condition to the server so that the server returns the enterprise ID data corresponding to the query condition, the method further includes: storing the enterprise ID data under the query condition into the memory.
[0010] Furthermore, the above-mentioned step of obtaining enterprise information corresponding to enterprise ID data under multiple target enterprise information dimensions from the server and displaying the same includes: dividing the enterprise ID data under multiple target enterprise information dimensions according to the number of enterprise information that can be displayed on a single page to obtain multiple groups of enterprise ID sub-data; and displaying the enterprise information obtained from the server corresponding to the multiple groups of enterprise ID sub-data in pages for users to view.
[0011] Furthermore, before the above-mentioned step of displaying the enterprise information obtained from the server corresponding to multiple groups of enterprise ID sub-data in pages, it also includes: obtaining the authority configuration information of the user performing the configuration operation; if the authority configuration information meets the requirements, continue to execute the data display step; otherwise, do not display the data.
[0012] In a second aspect, the present application also provides an enterprise information query device, which is applied to a client; the device includes: a data acquisition module, which is used to respond to the user's configuration operation of a query condition group and an operation method for at least one target enterprise information dimension, and for each query condition in the query condition group under each target enterprise information dimension, determine whether there is enterprise ID data corresponding to the query condition in the memory; if so, obtain the enterprise ID data corresponding to the query condition from the memory; if not, send an enterprise information query request carrying the query condition to the server, so that the server returns the enterprise ID data corresponding to the query condition; a first data calculation module, which is used to calculate the enterprise ID data under the target enterprise information dimension according to the enterprise ID data of each query condition under the target enterprise information dimension and the corresponding operation method; a second data calculation module, which is used to calculate the intersection between the enterprise ID data corresponding to multiple target enterprise information dimensions, and obtain the enterprise ID data under multiple target enterprise information dimensions; an information display module, which is used to respond to the user's information display request, and obtain the enterprise information corresponding to the enterprise ID data under multiple target enterprise information dimensions from the server for display.
[0013] In a third aspect, the present application further provides an electronic device, comprising a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the method described in the first aspect above.
[0014] In a fourth aspect, the present application further provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the method described in the first aspect above.
[0015] In the enterprise information query method, device and electronic device provided by the present application, based on the user's condition group configuration and operation mode configuration under at least one enterprise information dimension, the enterprise ID data corresponding to the query condition is obtained from the memory in advance. If not, the enterprise ID data under the query condition is obtained from the server by requesting it, and then the enterprise ID data under each query condition under a single dimension is calculated based on the enterprise ID data and operation mode. Finally, the enterprise ID data under multiple dimensions is obtained by taking the intersection operation, and information is searched and displayed. This can greatly improve the efficiency of enterprise information query and the speed of information response, and facilitate users to configure condition groups and operation modes, thereby improving user usage rate and experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the specific implementation methods of the present application or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0017] Figure 1 A flowchart of a method for querying enterprise information provided in an embodiment of the present application; Figure 2 A schematic diagram of a single-dimensional enterprise information query process provided in an embodiment of the present application; Figure 3 A schematic diagram of a multi-dimensional enterprise information query process provided in an embodiment of the present application; Figure 4 A structural block diagram of an enterprise information query device provided in an embodiment of the present application; Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0018] The technical solution of the present application will be described clearly and completely below in conjunction with the embodiments. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0019] In the existing enterprise information query solution, the backend performs comprehensive calculations on all data under multiple dimensions, obtains query results and transmits them to the front end for display. This information query method has the technical problem of low information query efficiency.
[0020] The embodiments of the present application provide a method, device and electronic device for querying enterprise information. The client can be used to configure a condition group and an operation method under at least one target enterprise information dimension, and the enterprise ID data corresponding to the query condition can be obtained from the memory in advance. For query conditions for which there is no data in the memory, the server can be requested to obtain the corresponding data, and then for each dimension, calculation is performed according to the corresponding operation method to obtain the enterprise ID data under the dimension, and finally the intersection is taken to obtain the enterprise ID data under multiple dimensions, and information is searched and displayed, which can greatly improve the efficiency of enterprise information query and the speed of information response, and facilitate users to configure condition groups and operation methods, thereby improving user usage and experience.
[0021] To facilitate understanding of this embodiment, a method for querying enterprise information disclosed in the embodiment of the present application is first introduced in detail.
[0022] Figure 1 A flowchart of an enterprise information query method provided in an embodiment of the present application, wherein the enterprise information query method is applied to a client; Figure 2 A schematic diagram of a single-dimensional enterprise information query process is shown; Figure 3 Shows a schematic diagram of the multi-dimensional enterprise information query process; combined Figure 2 , Figure 3 The method specifically comprises the following steps: Step S102, in response to the configuration operation of the query condition group and the operation mode for at least one target enterprise information dimension by the user, for each query condition in the query condition group under each target enterprise information dimension, it is determined whether there is enterprise ID data corresponding to the query condition in the memory; if yes, the enterprise ID data corresponding to the query condition is obtained from the memory; if not, an enterprise information query request carrying the query condition is sent to the server, so that the server returns the enterprise ID data corresponding to the query condition; The enterprise information dimensions corresponding to the enterprise information include: basic enterprise information, enterprise performance, enterprise personnel, enterprise qualifications, enterprise honors, enterprise credit, enterprise business scope, etc. The above target enterprise information dimension is one of the above multiple dimensions. Of course, the user can also configure multiple target enterprise information dimensions separately to initiate a request.
[0023] In this embodiment, the user can perform information query in the client interface, and the interface is configured with multiple recommended query conditions under each enterprise information dimension. When querying enterprise information, the user can configure at least one query condition for at least one dimension, thereby completing the configuration of the query condition group. In addition, the corresponding operation method can also be configured for the query condition group, such as taking an intersection operation or a union operation.
[0024] For example, the query conditions corresponding to the above-mentioned enterprise basic information dimension include: registration place, registration time, registration amount, enterprise nature, etc.; the query conditions corresponding to the enterprise performance dimension include: winning region, winning amount, platform of the winning bidder (four databases, provincial databases of various provinces, etc.), winning performance type (housing construction, municipal engineering, etc.). The query conditions corresponding to the enterprise honor dimension include: honor category (project type, enterprise type, personnel type), honor level (national, provincial, etc.) and honor name, etc.
[0025] Users can configure several query conditions and calculation methods under each dimension to initiate information query requests.
[0026] After the client responds to the user's configuration operation, it must first determine whether the enterprise ID data corresponding to the query conditions added by the user already exists in the memory. If so, there is no need to obtain the data through the back-end server, and it can be obtained directly from the memory. If not, it is obtained through the subsequent server. The specific process is: send an enterprise information query request carrying the query conditions to the server, so that the server returns the enterprise ID data corresponding to the query conditions.
[0027] This feature can solve the problem of "how to quickly display the results without going through the backend interface when deleting and re-adding the same set of query conditions under a single dimension". In other words, after the user configures the query condition group, he can first check whether there is corresponding enterprise ID data in the memory. If there is, he can use it directly, which can greatly improve the efficiency of information query.
[0028] The above-mentioned memory stores the enterprise ID data corresponding to a single query condition, and the above-mentioned server returns the corresponding enterprise ID data according to the enterprise information query request carrying the query condition. These two features can solve the problem of "how to quickly calculate the intersection or union data of multiple query conditions under a single dimension when the user switches the operation mode". That is to say, the client can obtain the data of each query condition from the memory and the server, rather than the data that has been calculated according to the configured operation mode. Therefore, when the user switches the operation mode of the query condition group, calculation can be conveniently performed based on the data obtained for each query condition, thereby improving the efficiency of information query.
[0029] Step S104, for each target enterprise information dimension, according to the enterprise ID data of each query condition under the target enterprise information dimension and the corresponding operation method, calculate the enterprise ID data under the target enterprise information dimension; The client further calculates the enterprise ID data corresponding to the multiple query conditions for each dimension according to the calculation method corresponding to the query condition group configured at the beginning, and obtains the enterprise ID data under each target enterprise information dimension.
[0030] Step S106, calculating the intersection of the enterprise ID data corresponding to the multiple target enterprise information dimensions respectively, to obtain the enterprise ID data under the multiple target enterprise information dimensions; In the case of multiple target enterprise information dimensions, it is also necessary to perform an intersection operation to obtain the enterprise ID data under multiple target enterprise information dimensions; Step S108, in response to the user's information display request, obtain the enterprise information corresponding to the enterprise ID data under multiple target enterprise information dimensions from the server for display.
[0031] In this step, the client can display the corresponding enterprise information based on the enterprise ID data under multiple target enterprise information dimensions. In order to improve the display efficiency, the number of enterprise IDs that need to be displayed on each page can be determined, and then when the page needs to be displayed, the corresponding enterprise information is obtained from the back-end server according to the corresponding enterprise ID for display. Compared with directly receiving all the queried enterprise information sent by the server for display, this is more efficient and can also reduce server consumption.
[0032] The above features can solve the problem of "how to quickly calculate the final result according to different conditions in multiple dimensions, and how to display the filtered results". That is to say, through the first few steps in the above embodiment, the enterprise ID data in each dimension can be easily determined, and then the client further performs intersection operations on the enterprise ID data in multiple dimensions to obtain the final enterprise ID data. Furthermore, the information display method of obtaining enterprise information by paging can greatly improve the efficiency of enterprise information display in multiple dimensions.
[0033] The enterprise information query method provided in the embodiment of the present application obtains the enterprise ID data corresponding to the query condition from the memory in advance based on the condition group configuration and operation mode configuration of the user under at least one enterprise information dimension. If not, the enterprise ID data under the query condition is obtained from the request server, and then the enterprise ID data under each query condition under a single dimension is calculated based on the enterprise ID data and operation mode. Finally, the enterprise ID data under multiple dimensions is obtained by taking the intersection operation, and information is searched and displayed. This can greatly improve the efficiency of enterprise information query and the speed of information response, and facilitate users to configure condition groups and operation modes, thereby improving user usage rate and experience.
[0034] The embodiment of the present application also provides another enterprise information query method, which is implemented on the basis of the above embodiment; this embodiment focuses on describing the information calculation method and display method.
[0035] In this embodiment, after the step of obtaining enterprise ID data under multiple target enterprise information dimensions, it also includes: displaying quantity prompt information; the quantity prompt information is used to remind the user the number of currently retrieved enterprise data; if the number is 0, it is used to remind the user to reconfigure.
[0036] That is, this solution supports adding multiple query conditions in a single dimension, as well as deleting the conditions that have been added. On this basis, the number of enterprise data currently retrieved will be displayed. The purpose of this is to allow users to quickly see whether the added conditions exist in the enterprise, so as to make configuration modifications. In other words, if the wrong condition is selected, it can be deleted.
[0037] Multiple query conditions can be added under a single enterprise information dimension, such as Figure 2 Conditions A, B, C, etc. shown in the figure generate a unique value (key) through MD5 for each query condition added to the filter, and the array returned after requesting the query condition to the backend interface is used as the value, and then cached in the memory. That is, the key-value pair data consisting of each query condition and the corresponding enterprise ID data is stored in the memory; if the user deletes a single-choice condition and wants to add it back, the data is directly read from the memory and recalculated quickly at this time, and the last calculated value is used as the result of this dimension to calculate the intersection with other dimensions.
[0038] See also Figure 3 As shown, in the embodiment of the present application, the user adds the conditions of each dimension in turn, and the data results of each dimension can be set to be satisfied simultaneously or arbitrarily (take the intersection or union of the same dimension) to query the results of each dimension, and finally calculate the data results of multiple dimensions (take the intersection of data of multiple dimensions) to query the companies that meet the conditions.
[0039] The following describes in detail the operation method in the embodiment of the present application: First, the above operation method is an intersection operation; The step of calculating the enterprise ID data under the target enterprise information dimension according to the enterprise ID data of each query condition under the target enterprise information dimension and the corresponding operation method includes: Execute the first preset method to realize the intersection operation between the enterprise ID data under multiple query conditions, and obtain the enterprise ID data of the query condition group under the corresponding operation mode under the target enterprise information dimension; wherein, the first preset method is obtained by secondary encapsulation of the third-party library of lodash; the input of the first preset method is a two-dimensional array, and the output is a new intersection array set.
[0040] Second, the above operation method is a union operation; The step of calculating the enterprise ID data under the target enterprise information dimension according to the enterprise ID data of each query condition under the target enterprise information dimension and the corresponding operation method includes: Execute the second preset method to realize the union operation between the enterprise ID data under multiple query conditions, and obtain the enterprise ID data of the query condition group under the corresponding operation mode under the target enterprise information dimension; wherein, the input of the second preset method is a two-dimensional array, and the method outputs a new one-dimensional array set through recursive operation and deduplication operation.
[0041] When the user switches back and forth between the simultaneous or arbitrary options, that is, when switching between intersection operations or union operations, the front-end intersection and union multidimensional array algorithm can be used to improve the calculation speed. When there are a small amount of data between multiple arrays, the array intersection or union calculation is very fast, but when the amount of data between arrays is large and reaches more than 100,000 levels, it is very performance-consuming. The final result of the single-dimensional calculation affects the final calculation result. The use of high-performance algorithms can improve efficiency.
[0042] The implementation scheme in the embodiment of the present application is as follows: when taking the intersection, a method is encapsulated twice with the help of the third-party library of lodash. The method passes in a two-dimensional array and returns a new intersection array set. When taking the union, a two-dimensional array is passed in, and a new one-dimensional array set is returned through recursive operations, deduplication operations, etc.
[0043] When displaying information, this embodiment adopts visual condition management, and displays and manages data of multiple dimensions such as basic information of the enterprise, enterprise performance, enterprise personnel, enterprise qualifications, enterprise honors, enterprise credit, enterprise business scope, etc. through a graphical interface to improve user experience.
[0044] When the obtained result data that meets the conditions is very large, how to display these data on the front end requires an optimization solution. In this embodiment, information display is performed in the following manner.
[0045] (1) Based on the amount of enterprise information that can be displayed on a single page, the enterprise ID data under multiple target enterprise information dimensions are divided to obtain multiple groups of enterprise ID sub-data; (2) The enterprise information obtained from the server corresponding to the multiple sets of enterprise ID sub-data is displayed in pages for users to view.
[0046] Furthermore, before the above-mentioned step of displaying the enterprise information obtained from the server corresponding to multiple groups of enterprise ID sub-data in pages, it also includes: obtaining the authority configuration information of the user performing the configuration operation; if the authority configuration information meets the requirements, continue to execute the data display step; otherwise, do not display the data.
[0047] In this embodiment, when the result is too large, consider storing the result in the front-end browser IndexDb. Due to the limitation of browser localstorage (cannot exceed 5Mb), the reading of IndexDb is encapsulated twice, so that when viewing the result, the query result is displayed in pages, which improves the page loading speed and user experience. Access control is performed on the query results, and only members are allowed to view them. If the user is a guest, no display is performed, which saves bandwidth while protecting data security.
[0048] The enterprise information query method provided in the embodiment of the present application helps hundreds of thousands of companies to complete the preparation of bidding documents and provides accurate and reliable data support. This query method is different from the traditional solution of passing all conditions to the back end, and then the back end calculates the final enterprise results. It has the following advantages: 1. High degree of freedom. Single-dimensional data can freely add one or more conditions, or reduce any one or more conditions. Multi-dimensional data can also clear data of any dimension, or add data of any dimension. 2. Fast response speed. Only one query condition data is requested each time, which greatly reduces the response time compared with the traditional approach. Each time the data is requested, it will be stored in the memory. When the same condition is added for the second time, the result is directly obtained through the memory, which greatly saves the server pressure. The calculation of each dimension is placed on the front-end calculation instead of the back-end calculation, which saves the server pressure. 3. Fast calculation speed. A set of methods for taking intersection and union of multiple arrays is independently encapsulated. When the user switches back and forth, a large amount of data can be quickly calculated.
[0049] Based on the above method embodiment, the present application embodiment also provides an enterprise information query device, and the method is applied to the client; see Figure 4As shown, the device includes: a data acquisition module 42, which is used to respond to the user's configuration operation of the query condition group and the operation method for at least one target enterprise information dimension, and for each query condition in the query condition group under each target enterprise information dimension, determine whether there is enterprise ID data corresponding to the query condition in the memory; if so, obtain the enterprise ID data corresponding to the query condition from the memory; if not, send an enterprise information query request carrying the query condition to the server, so that the server returns the enterprise ID data corresponding to the query condition; a first data calculation module 44, which is used to calculate the enterprise ID data under the target enterprise information dimension according to the enterprise ID data of each query condition under the target enterprise information dimension and the corresponding operation method; a second data calculation module 46, which is used to calculate the intersection between the enterprise ID data corresponding to multiple target enterprise information dimensions, and obtain the enterprise ID data under multiple target enterprise information dimensions; an information display module 48, which is used to respond to the user's information display request, and obtain the enterprise information corresponding to the enterprise ID data under multiple target enterprise information dimensions from the server for display.
[0050] Furthermore, the above-mentioned device also includes: a quantity display module, which is used to display quantity prompt information after the step of obtaining enterprise ID data under multiple target enterprise information dimensions; the quantity prompt information is used to remind the user the number of currently retrieved enterprise data; when the quantity is 0, it is used to remind the user to reconfigure.
[0051] Furthermore, the above-mentioned operation method is an intersection operation; the data acquisition module 42 is used to execute the first preset method to realize the intersection operation between the enterprise ID data under multiple query conditions, and obtain the enterprise ID data under the target enterprise information dimension; wherein, the first preset method is obtained by secondary encapsulation of the third-party library of lodash; the input of the first preset method is a two-dimensional array, and the output is a new intersection array set.
[0052] Furthermore, the above-mentioned operation method is a union operation; the data acquisition module 42 is used to execute the second preset method to realize the union operation between the enterprise ID data under multiple query conditions, and obtain the enterprise ID data under the target enterprise information dimension; wherein, the input of the second preset method is a two-dimensional array, and the method performs recursive operations and deduplication operations to output a new one-dimensional array set.
[0053] Furthermore, the above-mentioned device also includes: a storage module, which is used to send an enterprise information query request carrying the query condition to the server so that the server returns the enterprise ID data corresponding to the query condition, and then stores the enterprise ID data under the query condition into the memory.
[0054] Furthermore, the above-mentioned information display module 48 is used to divide the enterprise ID data under multiple target enterprise information dimensions according to the number of enterprise information that can be displayed on a single page, and obtain multiple groups of enterprise ID sub-data; and display the enterprise information obtained from the server corresponding to the multiple groups of enterprise ID sub-data in pages for users to view.
[0055] Furthermore, the above-mentioned information display module 48 is used to obtain the permission configuration information of the user performing the configuration operation before the step of paging and displaying the enterprise information obtained from the server corresponding to multiple groups of enterprise ID sub-data respectively; if the permission configuration information meets the requirements, continue to execute the data display step; otherwise, do not display the data.
[0056] The device provided in the embodiment of the present application has the same implementation principle and technical effects as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the embodiment of the device, reference may be made to the corresponding contents in the aforementioned method embodiment.
[0057] The present application also provides an electronic device, such as Figure 5 As shown, it is a schematic diagram of the structure of the electronic device, wherein the electronic device includes a processor 51 and a memory 50, the memory 50 stores computer executable instructions that can be executed by the processor 51, and the processor 51 executes the computer executable instructions to implement the above method.
[0058] exist Figure 5 In the illustrated embodiment, the electronic device further includes a bus 52 and a communication interface 53 , wherein the processor 51 , the communication interface 53 and the memory 50 are connected via the bus 52 .
[0059] Among them, the memory 50 may include a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 53 (which can be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. can be used. The bus 52 can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus 52 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0060] The processor 51 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 51. The above processor 51 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to execute, or the hardware and software modules in the decoding processor are combined and executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor 51 reads the information in the memory and completes the steps of the method of the above embodiment in combination with its hardware.
[0061] An embodiment of the present application also provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the above method. The specific implementation can be found in the aforementioned method embodiment, which will not be repeated here.
[0062] The computer program products of the methods, devices, and electronic devices provided in the embodiments of the present application include a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the previous method embodiments. The specific implementation can be found in the method embodiments, which will not be repeated here.
[0063] Unless otherwise specifically stated, the relative steps, numerical expressions and values of the components and steps set forth in these embodiments do not limit the scope of the present application.
[0064] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0065] In the description of the present application, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present application. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0066] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims
1. A method for querying enterprise information, characterized in that: The method is applied to a client; the method comprises: In response to the configuration operation of the query condition group and the operation mode for at least one target enterprise information dimension by the user, for each query condition in the query condition group under each target enterprise information dimension, it is determined whether there is enterprise ID data corresponding to the query condition in the memory; if yes, the enterprise ID data corresponding to the query condition is obtained from the memory; if not, an enterprise information query request carrying the query condition is sent to the server, so that the server returns the enterprise ID data corresponding to the query condition; For each of the target enterprise information dimensions, the enterprise ID data under the target enterprise information dimension is calculated according to the enterprise ID data of each query condition under the target enterprise information dimension and the corresponding operation method; Calculate the intersection of the enterprise ID data corresponding to the multiple target enterprise information dimensions respectively to obtain the enterprise ID data under the multiple target enterprise information dimensions; In response to the user's information display request, the enterprise information corresponding to the enterprise ID data under the multiple target enterprise information dimensions is obtained from the server for display.
2. The method according to claim 1, characterized in that After the step of obtaining the enterprise ID data under the target enterprise information dimension, the method further includes: Display quantity prompt information; the quantity prompt information is used to remind the user the number of enterprise data currently retrieved; if the number is 0, it is used to remind the user to reconfigure.
3. The method according to claim 1, characterized in that: The operation method is an intersection operation; the step of calculating the enterprise ID data under the target enterprise information dimension according to the enterprise ID data of each query condition under the target enterprise information dimension and the corresponding operation method includes: Execute the first preset method to realize the intersection operation between the enterprise ID data under multiple query conditions to obtain the enterprise ID data under the target enterprise information dimension; wherein, the first preset method is obtained by secondary encapsulation of the third-party library of lodash; the input of the first preset method is a two-dimensional array, and the output is a new intersection array set.
4. The method according to claim 1, characterized in that The operation method is a union operation; the step of calculating the enterprise ID data under the target enterprise information dimension according to the enterprise ID data of each query condition under the target enterprise information dimension and the corresponding operation method includes: Execute the second preset method to realize the union operation between the enterprise ID data under multiple query conditions to obtain the enterprise ID data under the target enterprise information dimension; wherein, the input of the second preset method is a two-dimensional array, and the method outputs a new one-dimensional array set through recursive operation and deduplication operation.
5. The method according to claim 1, characterized in that After the step of sending an enterprise information query request carrying the query condition to the server so that the server returns the enterprise ID data corresponding to the query condition, the step further includes: The enterprise ID data corresponding to the query condition is stored in the memory.
6. The method according to claim 1, characterized in that The step of obtaining enterprise information corresponding to the enterprise ID data under the target enterprise information dimension from the server for display includes: According to the amount of enterprise information that can be displayed on a single page, the enterprise ID data under the multiple target enterprise information dimensions are divided to obtain multiple groups of enterprise ID sub-data; The enterprise information obtained from the server corresponding to the multiple groups of enterprise ID sub-data is displayed in pages for users to view.
7. The method according to claim 6, characterized in that Before the step of displaying the enterprise information obtained from the server corresponding to the multiple sets of enterprise ID sub-data in pages, the step further includes: Get the permission configuration information of the user who performs the configuration operation; If the permission configuration information meets the requirements, continue to perform the data display step; otherwise, do not display the data.
8. An enterprise information query device, characterized in that: The device is applied to a client; the device comprises: The data acquisition module is used to respond to the configuration operation of the query condition group and the operation mode for at least one target enterprise information dimension by the user, and for each query condition in the query condition group under each target enterprise information dimension, determine whether there is enterprise ID data corresponding to the query condition in the memory; if yes, obtain the enterprise ID data corresponding to the query condition from the memory; if not, send an enterprise information query request carrying the query condition to the server, so that the server returns the enterprise ID data corresponding to the query condition; A first data calculation module is used to calculate, for each target enterprise information dimension, the enterprise ID data under the target enterprise information dimension according to the enterprise ID data of each query condition under the target enterprise information dimension and the corresponding operation method; A second data calculation module is used to calculate the intersection of the enterprise ID data corresponding to the multiple target enterprise information dimensions, and obtain the enterprise ID data under the multiple target enterprise information dimensions; The information display module is used to respond to the user's information display request and obtain the enterprise information corresponding to the enterprise ID data under the target enterprise information dimension from the server for display.
9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Enterprise report display method and system, electronic equipment and readable storage medium
CN115525698A
Cited By
Data processing method, system and equipment of enterprise exhaustion information display system and medium
CN120216583A
