CN111966703B - Engineering cost data query method, device, server and storage medium - Google Patents
Engineering cost data query method, device, server and storage medium Download PDFInfo
- Publication number
- CN111966703B CN111966703B CN202010612748.2A CN202010612748A CN111966703B CN 111966703 B CN111966703 B CN 111966703B CN 202010612748 A CN202010612748 A CN 202010612748A CN 111966703 B CN111966703 B CN 111966703B
- Authority
- CN
- China
- Prior art keywords
- menu item
- operation information
- secondary menu
- data
- client
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 40
- 238000004590 computer program Methods 0.000 claims description 14
- 230000001960 triggered effect Effects 0.000 claims description 6
- 238000010276 construction Methods 0.000 abstract description 11
- 230000009286 beneficial effect Effects 0.000 abstract description 2
- 239000000463 material Substances 0.000 description 14
- 238000010586 diagram Methods 0.000 description 6
- 238000005034 decoration Methods 0.000 description 4
- 238000009434 installation Methods 0.000 description 4
- 238000007728 cost analysis Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000001419 dependent effect Effects 0.000 description 1
- 230000004069 differentiation Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000007619 statistical method Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/242—Query formulation
- G06F16/2428—Query predicate definition using graphical user interfaces, including menus and forms
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2453—Query optimisation
- G06F16/24534—Query rewriting; Transformation
- G06F16/24539—Query rewriting; Transformation using cached or materialised query results
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2455—Query execution
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Mathematical Physics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The application relates to a construction cost data query method, a device, a server and a storage medium. The method comprises the following steps: the server receives a data query request sent by a client, wherein the data query request carries the identity of a current user, and a reference user matched with the role of the current user in the engineering cost database system is obtained according to the identity; acquiring prediction operation information of a current user for a second-level menu item corresponding to the first-level menu item based on the historical query operation information of the reference user; acquiring a target secondary menu item from the secondary menu items corresponding to the primary menu item according to the prediction operation information; and then acquiring the data associated with the target secondary menu item and sending the data to the client so that the client caches the data associated with the target secondary menu item. The method and the device are beneficial to improving the data loading efficiency of the secondary menu items of the client and reducing the loading waiting time of the client user.
Description
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method, an apparatus, a server, and a storage medium for querying engineering cost data.
Background
Because of the specificity of the engineering cost industry, the engineering cost data usually contains a great amount of detail data, and the content of the covered engineering cost data is different from engineering cost project to engineering cost project. The existing storage mode for the engineering cost data is that the engineering cost data is filled in based on engineering cost programming software to obtain programming files, the gathering of the engineering cost data is realized based on the programming files, and then the gathered data is integrally imported into a pre-established database system for storage.
The database system provides a plurality of menu options, such as primary menu items including project information, cost analysis, list material information, statistical analysis and the like, and a plurality of secondary menu items are arranged under each primary menu, such as secondary menus including a project cost summary table, a cost composition analysis table, a building decoration statistical table, a building decoration content table, an electromechanical installation statistical table, an electromechanical installation content table and the like under the cost analysis primary menu items. After the user logs in the database system, the user can query each item of engineering cost data according to the multi-level menu item provided by the database system.
However, for one item of engineering cost data, after a user selects a certain primary menu item, when a specific secondary menu item is entered, the data content loading delay problem corresponding to the secondary menu exists because of more detail data in the engineering cost data.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a construction cost data query method, device, server, and storage medium that can alleviate the problem of loading delay in querying construction cost data.
One aspect provides a method for querying engineering cost data, including:
receiving a data query request sent by a client, wherein the data query request is triggered by operation information of a current user of the client on a first-level menu item provided by an engineering cost database system; the data query request carries the identity of the current user; the identity is used for identifying the role of the current user in the corresponding engineering cost project;
acquiring a reference user matched with the role of the current user in the engineering cost database system according to the identity;
acquiring prediction operation information of a current user for a second-level menu item corresponding to the first-level menu item based on the historical query operation information of the reference user;
acquiring a target secondary menu item from the secondary menu items corresponding to the primary menu item according to the prediction operation information;
and acquiring the data associated with the target secondary menu item and sending the data to the client so that the client caches the data associated with the target secondary menu item.
In one embodiment, the secondary menu items corresponding to the primary menu items are multiple items; the method further comprises the steps of:
according to the prediction operation information, ordering a plurality of secondary menu items corresponding to the primary menu items;
and sending the ordering result of the plurality of secondary menu items to the client so that the client displays the plurality of secondary menu items according to the order of the ordering result.
In one embodiment, the obtaining, based on the historical query operation information of the reference user, the prediction operation information of the current user for the second-level menu item corresponding to the first-level menu item includes:
acquiring an operation sequence and/or an operation frequency of a secondary menu item corresponding to the primary menu item by the reference user based on the historical query operation information of the reference user;
according to the operation sequence and/or the operation frequency, obtaining the predicted operation information of the current user for the secondary menu item corresponding to the primary menu item;
the obtaining, according to the prediction operation information, a target secondary menu item from the secondary menu items corresponding to the primary menu item includes:
and acquiring the second-level menu item with the first operation sequence and/or the second-level menu item with the highest operation frequency from the second-level menu items corresponding to the first-level menu item to obtain a target second-level menu item.
In one embodiment, the obtaining, based on the historical query operation information of the reference user, the prediction operation information of the current user for the second-level menu item corresponding to the first-level menu item further includes:
acquiring historical loading time-consuming information corresponding to each secondary menu item based on the historical query operation information of the reference user;
obtaining the predicted operation information of the current user for the secondary menu item corresponding to the primary menu item according to the time consumption of the historical loading corresponding to each secondary menu item;
the obtaining, according to the prediction operation information, a target secondary menu item from the secondary menu items corresponding to the primary menu item includes:
and acquiring the secondary menu item with the most time consuming history loading from the secondary menu items corresponding to the primary menu items to obtain a target secondary menu item.
In one embodiment, the method further comprises: acquiring the priority of each secondary menu item;
the obtaining, based on the historical query operation information of the reference user, prediction operation information of the current user for the second menu item corresponding to the first menu item further includes:
acquiring preliminary prediction operation information of a current user for a second menu item corresponding to the first menu item based on the historical query operation information of the reference user;
and adjusting the preliminary prediction operation information by adopting the priority of each secondary menu item to obtain the prediction operation information of the current user for the secondary menu item corresponding to the primary menu item.
In one embodiment, the acquiring the priority corresponding to each secondary menu item includes:
acquiring the data quantity of engineering cost data associated with each secondary menu item;
determining the priority of each secondary menu item according to the data volume; the priority of each secondary menu item is in positive correlation with the amount of data associated therewith.
In one embodiment, the acquiring the data associated with the target secondary menu item and sending the data to the client includes:
acquiring a priority level preset by each item of data associated with the target secondary menu item;
acquiring the data with the highest priority level from the data associated with the target secondary menu item as target data;
and sending the target data to the client.
In another aspect, there is provided an engineering cost data query apparatus, comprising:
the request receiving module is used for receiving a data query request sent by the client, wherein the data query request is triggered by the current user of the client aiming at the operation information of the first-level menu item provided by the engineering cost database system; the data query request carries the identity of the current user; the identity is used for identifying the role of the current user in the corresponding engineering cost project;
the reference user acquisition module is used for acquiring a reference user matched with the role of the current user in the engineering cost database system according to the identity;
the operation prediction module is used for acquiring the prediction operation information of the current user for the second-level menu item corresponding to the first-level menu item based on the historical query operation information of the reference user;
the target menu acquisition module is used for acquiring target secondary menu items from the secondary menu items corresponding to the primary menu items according to the prediction operation information;
and the data acquisition module is used for acquiring the data associated with the target secondary menu item and sending the data to the client so that the client caches the data associated with the target secondary menu item.
In yet another aspect, a server is provided, including a memory and a processor, where the memory stores a computer program, and the processor executes the computer program to implement the steps of the engineering cost data query method described above.
A further aspect provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the engineering cost data querying method described above.
The engineering cost data query method, the engineering cost data query device, the computer equipment and the storage medium are characterized in that a server receives a data query request sent by a client, the data query request carries an identity of a current user, and a reference user matched with the role of the current user in an engineering cost database system is obtained according to the identity; further, based on the historical query operation information of the reference user, obtaining the prediction operation information of the current user for the second-level menu item corresponding to the first-level menu item; further, according to the prediction operation information, a target secondary menu item is obtained from the secondary menu items corresponding to the primary menu item; and then acquiring the data associated with the target secondary menu item and sending the data to the client so that the client caches the data associated with the target secondary menu item. The server can predict the operation information of the current user on the second-level menu item based on the historical operation information of the reference user corresponding to the current user, so that the target second-level menu item which is most likely to be operated by the current user first can be obtained according to the predicted operation information, after the current user triggers the first-level menu item provided by the engineering cost database system, engineering cost data associated with the target second-level menu item is sent to the client cache in advance, so that when the current user triggers the target second-level menu item subordinate to the first-level menu item after entering the first-level menu item, the corresponding engineering cost data can be accelerated to be loaded from the data of the local cache, the data loading efficiency of the second-level menu item of the client can be improved, and the loading waiting time of the user of the client can be reduced.
Drawings
FIG. 1 is a diagram of an application environment for a method of querying project cost data in one embodiment;
FIG. 2 is a schematic diagram of an engineering cost data query interface in one embodiment;
FIG. 3 is a flow chart of a method of querying project cost data in one embodiment;
FIG. 4 is a schematic diagram of an engineering cost data query interface in another embodiment;
FIG. 5 is a block diagram of an embodiment of an engineering cost data query device;
fig. 6 is an internal structural diagram of a server in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The engineering cost data query method provided by the application can be applied to an application environment shown in figure 1. Wherein the terminal 102 communicates with the server 104 via a network. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smartphones, tablet computers, etc., and the server 104 may be implemented as a stand-alone server or a server cluster composed of a plurality of servers. The terminal 102 is provided with a corresponding client, which may be a specific application program or a web browser, and a user may access the server 104 through the client, thereby accessing a construction cost database system locally set in the server 104, or a construction cost database system set in other devices and to which the server 104 may be connected.
When the engineering cost database system is disposed in other devices than the server 104, the engineering cost database system may be a distributed database system, and the application environment may further include a distributed storage terminal 106, where the distributed storage terminal 106 may be, but is not limited to, various terminal devices such as a personal computer, a notebook computer, a smart phone, a tablet computer, and other servers. A corresponding database is provided in each distributed storage terminal 106.
In the application, the menu items provided by the engineering cost database system at least comprise two levels of menu items, and the associated user of the engineering cost items can log in the engineering cost database system through the client of the terminal 102 and inquire corresponding engineering cost data through the menu items provided by the engineering cost database system.
In the prior art, after a user logs in an engineering cost database system, the user operates the primary menu item, and can enter a query interface of the primary menu item, and a plurality of secondary menu items contained under the primary menu item can be displayed in the query interface, for example, a secondary menu such as a project cost summary table, a cost composition analysis table, a building decoration statistical table, a building decoration content table, an electromechanical installation statistical table, an electromechanical installation content table and the like is arranged under the cost analysis primary menu item. Based on the primary menu item and the secondary menu item, the user can query project cost data of different collections. However, since the engineering cost data generally includes a large amount of detail data, when a user selects a certain primary menu item and then selects a certain secondary menu item, a certain data loading time is required because of the large amount of detail data in the engineering cost data associated with the secondary menu item, so that the user can only see an empty page for a long time, for example, as shown in fig. 2.
In one embodiment, as shown in fig. 3, there is provided a construction cost data query method, which is illustrated by way of example as being applied to the server 104 in fig. 1, and includes the following steps:
step S210, receiving a data query request sent by a client, wherein the data query request is triggered by operation information of a first-level menu item provided by a current user of the client for an engineering cost database system; the data query request carries the identity of the current user; the identity is used for identifying the role of the current user in the corresponding engineering cost project.
In the field of construction cost, the associated users of one construction cost project can comprise project total contractors, single project contractors, project subsection contractors, various basic service implementation users under the subsection project, various levels of supervision users related to the project and the like. Thus, the roles of the users in the corresponding engineering projects may also be varied. In some cases, the role of the user in the corresponding project cost project may be a guest role in addition to the roles described above. For different roles, different user identities may be employed for differentiation.
Step S220, acquiring a reference user matched with the role of the current user in the engineering cost database system according to the identity;
step S230, based on the historical query operation information of the reference user, obtaining the prediction operation information of the current user for the second-level menu item corresponding to the first-level menu item;
step S240, according to the prediction operation information, acquiring a target secondary menu item from the secondary menu items corresponding to the primary menu item;
step S250, obtaining the data associated with the target secondary menu item and sending the data to the client, so that the client caches the data associated with the target secondary menu item.
According to the embodiment, the server can predict the operation information of the current user on the second-level menu item based on the historical operation information of the reference user corresponding to the current user, and further can obtain the target second-level menu item which is most likely to be operated first by the current user according to the predicted operation information, after the current user triggers the first-level menu item provided by the engineering cost database system, engineering cost data associated with the target second-level menu item is sent to the client cache in advance, so that when the current user triggers the target second-level menu item subordinate to the first-level menu item after entering the first-level menu item, the corresponding engineering cost data can be accelerated to be loaded from the locally cached data, the data loading efficiency of the second-level menu item of the client can be improved, and the loading waiting time of the client user can be reduced.
In one embodiment, the project cost database system provides a plurality of corresponding secondary menu items below the primary menu item. Correspondingly, the method further comprises:
according to the prediction operation information, ordering a plurality of secondary menu items corresponding to the primary menu items; and sending the ordering result of the plurality of secondary menu items to the client so that the client displays the plurality of secondary menu items according to the order of the ordering result.
For example, as shown in fig. 2, the "complete list information table", "material TOP-N" and "material classification statistics table" are the second menu items of "list material information", and the result of sorting the second menu items obtained according to the prediction operation information is "complete list information table", "material TOP-N" and "material classification statistics table", and the result of sorting is sent to the client, so that the "complete list information table", "material TOP-N" and "material classification statistics table" are displayed on the client according to the sorting, where the "complete list information table" is shown in the first position.
According to the method and the device, the operation information of the current user on the secondary menu items is predicted based on the historical operation information of the reference user, and on the basis, the corresponding secondary menu items under the primary menu items are displayed according to the corresponding sequences, so that the secondary menu item which is possibly operated first by the current user is displayed at the most prominent position, for example, at the first position or at the most middle position, and other secondary menu items are sequentially displayed at the relatively unobtrusive position according to the corresponding sequences, the secondary menu item at the most prominent position is further guided to be preferentially operated by the current user, and the utilization rate of data cached by the client is further improved.
In one embodiment, in the step S230, based on the historical query operation information of the reference user, the predicted operation information of the current user for the second-level menu item corresponding to the first-level menu item is obtained, and specifically includes:
acquiring the operation sequence and/or the operation frequency of the reference user aiming at each secondary menu item based on the historical query operation information of the reference user; and obtaining the predicted operation information of the current user for the secondary menu item corresponding to the primary menu item according to the operation sequence and/or the operation frequency.
Wherein, the operation sequence of the reference user for the secondary menu items refers to the sequence of which secondary menu item is operated first and which secondary menu item is operated again; the operation frequency of the reference user for the secondary menu items refers to the operation frequency of the reference user for each secondary menu item in the historical operation information of the reference user, namely the operation frequency of the reference user for each secondary menu item, namely the operation frequency of the reference user for the engineering cost data corresponding to each secondary menu item. Based on a certain amount of historical query operation information of the reference users, the operation habit of the reference users with the same roles as the current users on the secondary menu items can be determined, which secondary menu item is operated first, or which secondary menu item data is queried for the maximum times, based on the operation habit, the next operation of the current users, namely which secondary menu item is operated first, can be effectively predicted, so that the engineering cost data of the current users are cached in advance at a client before the current users actually operate the secondary menu item, and the time for waiting for data loading of the users is reduced.
In addition to the examples of the above embodiments, when determining the predicted operation information of the current user for the secondary menu items, the dependency relationship between the secondary menu items may be increased, and the predicted operation information determined based on the historical query information of the reference user may be adjusted to obtain more reliable predicted operation information. For example: in fig. 2, the "material TOP-N" depends on the "material information table", and if the "material TOP-N" is ranked prior to the "material information table" in the predicted operation information based on the historical query information of the reference user, the ranking order of the two materials can be adjusted through the dependency relationship between the two materials, so that the data associated with the dependent secondary menu items is preferentially cached in advance.
Based on the foregoing embodiment, in step S240, the obtaining, according to the prediction operation information, the target secondary menu item from the secondary menu items corresponding to the primary menu item may include:
and acquiring the second-level menu item with the first operation sequence and/or the second-level menu item with the highest operation frequency from the second-level menu items corresponding to the first-level menu item to obtain a target second-level menu item.
In practical situations, more secondary menu items can be determined to be target secondary menu items based on the storage performance of the terminal where the client is located, namely, the target secondary menu items can be one item or more than two items, and if the target secondary menu items are more than two items, the selection can be performed from high to low based on the operation ordering and the operation frequency corresponding to the secondary menu items.
Further, in one embodiment, the obtaining, based on the historical query operation information of the reference user, the predicted operation information of the current user for the second-level menu item corresponding to the first-level menu item may further include:
acquiring preliminary prediction operation information of a current user for a second menu item corresponding to the first menu item based on the historical query operation information of the reference user; and acquiring the priority of each secondary menu item, and adjusting the preliminary prediction operation information by adopting the priority of each secondary menu item to obtain the prediction operation information of the current user aiming at the secondary menu item corresponding to the primary menu item.
In the process of determining the prediction operation information corresponding to the current user, the embodiment increases the consideration of the priority of each secondary menu item, and can further improve the reliability of the prediction operation information.
In the embodiment of the present application, the method for obtaining the priority corresponding to each secondary menu item may include:
acquiring the history loading time consumption corresponding to each secondary menu item based on the history query operation information of the reference user; determining the priority of each secondary menu item according to the time consumption of the historical loading corresponding to each secondary menu item; the priority of each secondary menu item is in positive correlation with the corresponding historical loading time consumption.
The priority of each secondary menu item is determined by referring to historical loading time-consuming information of historical query of each secondary menu item of a user, the priority of the secondary menu item with longer time consumption in historical operation can be set to be higher priority, and further when the target secondary menu item is determined, more secondary menu items can be used as the target secondary menu item, so that a client side preferentially caches engineering cost data associated with the secondary menu item, and the problem of loading delay when the user actually queries data corresponding to the secondary menu item is avoided.
Here, in other embodiments, the manner of acquiring the priority corresponding to each secondary menu item may further include:
acquiring the data quantity of engineering cost data associated with each secondary menu item; determining the priority of each secondary menu item according to the data volume; the priority of each secondary menu item is in positive correlation with the amount of data associated therewith.
According to the method and the device, the priority of each secondary menu item is determined based on the data quantity corresponding to each secondary menu item, so that the secondary menu item with more associated data quantity can be determined to be a target secondary menu item more likely, and associated engineering cost data is cached in advance. Because the actual loading time consumption is closely related to the number and the size of the association, the query time of the data corresponding to the secondary menu item with larger associated data size can be obviously reduced through the embodiment.
Further, in addition to predicting the next operation of the current user based on the historical operation information of the reference user corresponding to the current user, in order to reduce the cache pressure of the terminal and the time required for caching the data of the target secondary menu item, in the embodiment of the application, the preset priority level of each item of data associated with the target secondary menu item can also be obtained; acquiring the data with the highest priority level from the data associated with the target secondary menu item as target data; and sending the target data to the client.
By this embodiment, the data amounts of the project cost data associated with different secondary menu items may be different, after determining the target secondary menu item, it is possible to cache not all the project cost data associated with the target secondary menu item in advance, but rather the project cost data with higher priority level, for example, in the data associated with the secondary menu item "project cost project summary table" in fig. 4, the title (H office modification projects), the data attribute (metering time, region, year, season, month, province, city, district, etc.), the profile data (project total cost, building area, single project, etc.), the form data and the specific data for each index, etc., where the priority level of the form data and the title data is higher, and the user needs to display these data preferentially after operating the corresponding secondary menu item, so that the page seen by the user is avoided and the empty page is beneficial to improving the user experience. In addition, through the embodiment, since the client only needs to cache part of data in advance, even if the user operates the target secondary menu item in a short time after entering the primary menu item, the waiting time of the user can be shortened, and the query experience of the user can be improved.
It should be understood that, although the steps in the flowchart of fig. 2 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least a portion of the steps in fig. 2 may include a plurality of steps or stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily sequential, but may be performed in rotation or alternatively with at least a portion of the steps or stages in other steps or other steps.
In one embodiment, as shown in fig. 5, there is provided an engineering cost data query apparatus applied to a server, the apparatus comprising:
a request receiving module 501, configured to receive a data query request sent by a client, where the data query request is triggered by operation information of a first-level menu item provided by a current user of the client for an engineering cost database system; the data query request carries the identity of the current user; the identity is used for identifying the role of the current user in the corresponding engineering cost project;
a reference user obtaining module 502, configured to obtain, according to the identity, a reference user in the engineering cost database system that matches with a role of a current user;
an operation prediction module 503, configured to obtain, based on the historical query operation information of the reference user, prediction operation information of a current user for a second level menu item corresponding to the first level menu item;
a target menu obtaining module 504, configured to obtain a target secondary menu item from the secondary menu items corresponding to the primary menu item according to the prediction operation information; the method comprises the steps of,
the data obtaining module 505 is configured to obtain data associated with the target secondary menu item and send the data to the client, so that the client caches the data associated with the target secondary menu item.
In one embodiment, the secondary menu items corresponding to the primary menu items are multiple items;
the apparatus further comprises:
the sorting module is used for sorting a plurality of secondary menu items corresponding to the primary menu items according to the prediction operation information; the method comprises the steps of,
and the ordering and transmitting module is used for transmitting the ordering result of the plurality of secondary menu items to the client so that the client displays the plurality of secondary menu items according to the order of the ordering result.
In one embodiment, the operation prediction module 503 is specifically configured to: acquiring the operation sequence and/or the operation frequency of the reference user aiming at each secondary menu item based on the historical query operation information of the reference user; and obtaining the predicted operation information of the current user for the secondary menu item corresponding to the primary menu item according to the operation sequence and/or the operation frequency.
In one embodiment, the target menu obtaining module 504 is specifically configured to:
and acquiring the second-level menu item with the first operation sequence and/or the second-level menu item with the highest operation frequency from the second-level menu items corresponding to the first-level menu item to obtain a target second-level menu item.
In one embodiment, the operation prediction module 503 may be further configured to: acquiring preliminary prediction operation information of a current user for a second menu item corresponding to the first menu item based on the historical query operation information of the reference user; and acquiring the priority of each secondary menu item, and adjusting the preliminary prediction operation information by adopting the priority of each secondary menu item to obtain the prediction operation information of the current user aiming at the secondary menu item corresponding to the primary menu item.
In one embodiment, the apparatus further comprises:
the first priority determining module is used for acquiring the historical loading time consumption corresponding to each secondary menu item based on the historical query operation information of the reference user; determining the priority of each secondary menu item according to the time consumption of the historical loading corresponding to each secondary menu item; the priority of each secondary menu item is in positive correlation with the corresponding historical loading time consumption.
In one embodiment, the apparatus further comprises:
the second priority determining module is used for acquiring the data quantity of the engineering cost data associated with each secondary menu item; determining the priority of each secondary menu item according to the data volume; the priority of each secondary menu item is in positive correlation with the amount of data associated therewith.
In one embodiment, the data acquisition module 505 is specifically configured to: acquiring a priority level preset by each item of data associated with the target secondary menu item; acquiring the data with the highest priority level from the data associated with the target secondary menu item as target data; and sending the target data to the client.
The construction cost data query device may be specifically defined by the construction cost data query method, and will not be described herein. The various modules in the engineering cost data query device can be realized in whole or in part by software, hardware and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a server is provided, the internal structure of which may be as shown in FIG. 6. The server includes a processor, memory, and a network interface connected by a system bus. Wherein the processor of the server is configured to provide computing and control capabilities. The memory of the server includes nonvolatile storage medium and internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the server is used for storing the data of the engineering cost data query device. The network interface of the server is used for communicating with an external terminal through a network connection. The computer program when executed by a processor implements a construction cost data query method.
It will be appreciated by those skilled in the art that the structure shown in fig. 6 is merely a block diagram of a portion of the structure associated with the present inventive arrangements and is not limiting of the server to which the present inventive arrangements are applied, and that a particular server may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a server is provided that includes a memory having a computer program stored therein and a processor that when executing the computer program performs the steps of the engineering cost data query method of any of the embodiments described above.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon which, when executed by a processor, implements the steps of the engineering cost data query method of any of the embodiments described above.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, or the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.
Claims (10)
1. A method for querying engineering cost data, comprising:
receiving a data query request sent by a client, wherein the data query request is triggered by operation information of a current user of the client on a first-level menu item provided by an engineering cost database system; the data query request carries the identity of the current user; the identity is used for identifying the role of the current user in the corresponding engineering cost project;
acquiring a reference user matched with the role of the current user in the engineering cost database system according to the identity;
based on the historical query operation information of the reference user, obtaining the prediction operation information of the current user for the second-level menu item corresponding to the first-level menu item comprises the following steps: acquiring the operation sequence and/or the operation frequency of the reference user aiming at each secondary menu item based on the historical query operation information of the reference user; according to the operation sequence and/or the operation frequency, obtaining the predicted operation information of the current user for the secondary menu item corresponding to the primary menu item;
acquiring a target secondary menu item from the secondary menu items corresponding to the primary menu item according to the prediction operation information;
and acquiring the data associated with the target secondary menu item and sending the data to the client so that the client caches the data associated with the target secondary menu item.
2. The method of claim 1, wherein the secondary menu item corresponding to the primary menu item is a plurality of items;
the method further comprises the steps of:
according to the prediction operation information, ordering a plurality of secondary menu items corresponding to the primary menu items;
and sending the ordering result of the plurality of secondary menu items to the client so that the client displays the plurality of secondary menu items according to the order of the ordering result.
3. The method according to claim 2, wherein the obtaining, according to the prediction operation information, the target secondary menu item from the secondary menu items corresponding to the primary menu item includes:
and acquiring the second-level menu item with the first operation sequence and/or the second-level menu item with the highest operation frequency from the second-level menu items corresponding to the first-level menu item to obtain a target second-level menu item.
4. The method according to claim 2, wherein the obtaining, based on the historical query operation information of the reference user, the predicted operation information of the current user for the secondary menu item corresponding to the primary menu item further includes:
acquiring preliminary prediction operation information of a current user for a second menu item corresponding to the first menu item based on the historical query operation information of the reference user;
and acquiring the priority of each secondary menu item, and adjusting the preliminary prediction operation information by adopting the priority of each secondary menu item to obtain the prediction operation information of the current user aiming at the secondary menu item corresponding to the primary menu item.
5. The method of claim 4, wherein the obtaining the priority corresponding to each secondary menu item comprises:
acquiring the history loading time consumption corresponding to each secondary menu item based on the history query operation information of the reference user;
determining the priority of each secondary menu item according to the time consumption of the historical loading corresponding to each secondary menu item; the priority of each secondary menu item is in positive correlation with the corresponding historical loading time consumption.
6. The method according to any one of claims 1 to 5, wherein the acquiring and transmitting the data associated with the target secondary menu item to the client comprises:
acquiring a priority level preset by each item of data associated with the target secondary menu item;
acquiring the data with the highest priority level from the data associated with the target secondary menu item as target data;
and sending the target data to the client.
7. An engineering cost data query device, comprising:
the request receiving module is used for receiving a data query request sent by the client, wherein the data query request is triggered by the current user of the client aiming at the operation information of the first-level menu item provided by the engineering cost database system; the data query request carries the identity of the current user; the identity is used for identifying the role of the current user in the corresponding engineering cost project;
the reference user acquisition module is used for acquiring a reference user matched with the role of the current user in the engineering cost database system according to the identity;
the operation prediction module is used for acquiring the prediction operation information of the current user for the second-level menu item corresponding to the first-level menu item based on the historical query operation information of the reference user, and comprises the following steps: acquiring the operation sequence and/or the operation frequency of the reference user aiming at each secondary menu item based on the historical query operation information of the reference user; according to the operation sequence and/or the operation frequency, obtaining the predicted operation information of the current user for the secondary menu item corresponding to the primary menu item;
the target menu acquisition module is used for acquiring target secondary menu items from the secondary menu items corresponding to the primary menu items according to the prediction operation information;
and the data acquisition module is used for acquiring the data associated with the target secondary menu item and sending the data to the client so that the client caches the data associated with the target secondary menu item.
8. The apparatus of claim 7, wherein the secondary menu item corresponding to the primary menu item is a plurality of items;
the apparatus further comprises:
the sorting module is used for sorting a plurality of secondary menu items corresponding to the primary menu items according to the prediction operation information; the method comprises the steps of,
and the ordering and transmitting module is used for transmitting the ordering result of the plurality of secondary menu items to the client so that the client displays the plurality of secondary menu items according to the order of the ordering result.
9. A server comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any one of claims 1 to 6 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010612748.2A CN111966703B (en) | 2020-06-30 | 2020-06-30 | Engineering cost data query method, device, server and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010612748.2A CN111966703B (en) | 2020-06-30 | 2020-06-30 | Engineering cost data query method, device, server and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111966703A CN111966703A (en) | 2020-11-20 |
CN111966703B true CN111966703B (en) | 2023-11-03 |
Family
ID=73360898
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010612748.2A Active CN111966703B (en) | 2020-06-30 | 2020-06-30 | Engineering cost data query method, device, server and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111966703B (en) |
Citations (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103109293A (en) * | 2012-08-24 | 2013-05-15 | 华为技术有限公司 | User motion processing system and method |
CN103593479A (en) * | 2013-11-29 | 2014-02-19 | 谢天添 | Application program menu recommendation method and device |
CN104750824A (en) * | 2015-03-31 | 2015-07-01 | 北京百度网讯科技有限公司 | Application functional data processing method and device |
CN108279931A (en) * | 2016-12-30 | 2018-07-13 | 谷歌有限责任公司 | Context pastes target prediction |
CN109117874A (en) * | 2018-07-25 | 2019-01-01 | 北京小米移动软件有限公司 | Operation behavior prediction technique and device |
CN109284044A (en) * | 2018-08-29 | 2019-01-29 | 中国建设银行股份有限公司 | A kind of function menu methods of exhibiting and relevant device based on big data |
CN109376868A (en) * | 2018-09-30 | 2019-02-22 | 北京字节跳动网络技术有限公司 | Information management system |
CN109389447A (en) * | 2017-08-04 | 2019-02-26 | 北京京东尚科信息技术有限公司 | Item recommendation method, item recommendation system and computer-readable medium |
CN110148028A (en) * | 2018-02-13 | 2019-08-20 | 北京京东尚科信息技术有限公司 | Recommend the method, apparatus and computer readable storage medium of menu to user |
CN110287709A (en) * | 2019-05-22 | 2019-09-27 | 深圳壹账通智能科技有限公司 | User's operation authority control method, device, equipment and medium |
CN110334242A (en) * | 2019-07-10 | 2019-10-15 | 北京奇艺世纪科技有限公司 | A kind of generation method, device and the electronic equipment of phonetic order advisory information |
CN110456921A (en) * | 2019-08-01 | 2019-11-15 | 吉旗(成都)科技有限公司 | Predict the method and device of user's keyboard operation behavior |
CN110532259A (en) * | 2019-07-22 | 2019-12-03 | 中国平安人寿保险股份有限公司 | Base table querying method, device, computer equipment and storage medium |
CN110543272A (en) * | 2019-09-09 | 2019-12-06 | 珠海格力电器股份有限公司 | Software menu arrangement method and system |
CN110766206A (en) * | 2019-09-29 | 2020-02-07 | 东软睿驰汽车技术(沈阳)有限公司 | Information prediction method and device |
CN111177093A (en) * | 2019-12-31 | 2020-05-19 | 山东蚁动网络科技有限公司 | Method, device and medium for sharing scientific and technological resources |
-
2020
- 2020-06-30 CN CN202010612748.2A patent/CN111966703B/en active Active
Patent Citations (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103109293A (en) * | 2012-08-24 | 2013-05-15 | 华为技术有限公司 | User motion processing system and method |
CN103593479A (en) * | 2013-11-29 | 2014-02-19 | 谢天添 | Application program menu recommendation method and device |
CN104750824A (en) * | 2015-03-31 | 2015-07-01 | 北京百度网讯科技有限公司 | Application functional data processing method and device |
CN108279931A (en) * | 2016-12-30 | 2018-07-13 | 谷歌有限责任公司 | Context pastes target prediction |
CN109389447A (en) * | 2017-08-04 | 2019-02-26 | 北京京东尚科信息技术有限公司 | Item recommendation method, item recommendation system and computer-readable medium |
CN110148028A (en) * | 2018-02-13 | 2019-08-20 | 北京京东尚科信息技术有限公司 | Recommend the method, apparatus and computer readable storage medium of menu to user |
CN109117874A (en) * | 2018-07-25 | 2019-01-01 | 北京小米移动软件有限公司 | Operation behavior prediction technique and device |
CN109284044A (en) * | 2018-08-29 | 2019-01-29 | 中国建设银行股份有限公司 | A kind of function menu methods of exhibiting and relevant device based on big data |
CN109376868A (en) * | 2018-09-30 | 2019-02-22 | 北京字节跳动网络技术有限公司 | Information management system |
CN110287709A (en) * | 2019-05-22 | 2019-09-27 | 深圳壹账通智能科技有限公司 | User's operation authority control method, device, equipment and medium |
CN110334242A (en) * | 2019-07-10 | 2019-10-15 | 北京奇艺世纪科技有限公司 | A kind of generation method, device and the electronic equipment of phonetic order advisory information |
CN110532259A (en) * | 2019-07-22 | 2019-12-03 | 中国平安人寿保险股份有限公司 | Base table querying method, device, computer equipment and storage medium |
CN110456921A (en) * | 2019-08-01 | 2019-11-15 | 吉旗(成都)科技有限公司 | Predict the method and device of user's keyboard operation behavior |
CN110543272A (en) * | 2019-09-09 | 2019-12-06 | 珠海格力电器股份有限公司 | Software menu arrangement method and system |
CN110766206A (en) * | 2019-09-29 | 2020-02-07 | 东软睿驰汽车技术(沈阳)有限公司 | Information prediction method and device |
CN111177093A (en) * | 2019-12-31 | 2020-05-19 | 山东蚁动网络科技有限公司 | Method, device and medium for sharing scientific and technological resources |
Non-Patent Citations (1)
Title |
---|
大数据实时交互式分析;袁喆 等;《软件学报》;第31卷(第01期);162-182 * |
Also Published As
Publication number | Publication date |
---|---|
CN111966703A (en) | 2020-11-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8732406B1 (en) | Mechanism for determining read-ahead length in a storage system | |
US10489476B2 (en) | Methods and devices for preloading webpages | |
US8539161B2 (en) | Pre-fetching content items based on social distance | |
US7721288B2 (en) | Organizing transmission of repository data | |
CN110347651B (en) | Cloud storage-based data synchronization method, device, equipment and storage medium | |
US20180260438A1 (en) | Processing records in dynamic ranges | |
CN111562889B (en) | Data processing method, device, system and storage medium | |
CN104702625A (en) | Method and device for scheduling access request in CDN (Content Delivery Network) | |
CN112015820A (en) | Method, system, electronic device and storage medium for implementing distributed graph database | |
CN103077197A (en) | Data storing method and device | |
Kim et al. | Efficient distributed selective search | |
US20230359561A1 (en) | Method and apparatus for adjusting data storage and computer device | |
US7552300B2 (en) | Method for migrating objects in content management systems through exploitation of file properties, temporal locality, and spatial locality | |
CN115617762A (en) | File storage method and equipment | |
CN116680276A (en) | Data tag storage management method, device, equipment and storage medium | |
CN110032578B (en) | Mass data query caching method and device | |
CN111966703B (en) | Engineering cost data query method, device, server and storage medium | |
EP3555767A1 (en) | Partial storage of large files in distinct storage systems | |
CN109101621A (en) | A kind of batch processing method and system of data | |
CN113448739B (en) | Data processing method and device | |
CN114218170A (en) | File reading method and device | |
CN118132520B (en) | Storage system file processing method, electronic device, storage medium and program product | |
CN111309724A (en) | Method and system for processing big data | |
CN116389444B (en) | Traffic scheduling method and system based on user web application | |
CN113672644B (en) | Deep search optimization method, system, terminal and storage medium based on ES service |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20240117 Address after: Room 203, No. 11 Qingyi 8th Street, Qifu New Village, Shiguang Road, Panyu District, Guangzhou City, Guangdong Province, 510000 Patentee after: Wu Zhiyong Address before: Room 1305, No. 266 Huangpu East Road, Huangpu District, Guangzhou City, Guangdong Province, 510700 (office only) Patentee before: GUANGZHOU MAIAN INFORMATION TECHNOLOGY CO.,LTD. |