Method for time recording and related device

By defining query conditions and applying configuration rules during software development, the problem of low efficiency in time statistics was solved, achieving high efficiency and accuracy in time statistics.

CN115168419BActive Publication Date: 2026-07-14SHENZHEN XISHIMA DATA TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SHENZHEN XISHIMA DATA TECH CO LTD
Filing Date
2022-06-30
Publication Date
2026-07-14

AI Technical Summary

Technical Problem

In existing technologies, the time statistics for software development are inefficient and inaccurate, leading to errors in project time calculations.

Method used

By defining multiple query conditions, and based on the mapping relationship between preset query conditions and configuration rules, the configuration rule corresponding to each query condition is determined, and the multiple query conditions are processed to obtain the target query conditions, and finally the working hour information of the target project is queried.

Benefits of technology

This improved the efficiency and accuracy of work hour statistics, reduced query time, and ensured the precision of work hour statistics.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115168419B_ABST
    Figure CN115168419B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a work hour statistics method and related device, wherein the method comprises: determining a plurality of query conditions; determining a configuration rule corresponding to each query condition according to a mapping relationship between the preset query conditions and the configuration rules; processing the plurality of query conditions according to the configuration rule corresponding to each query condition to obtain a target query condition; determining a target project according to the target query condition, and querying work hour information corresponding to the target project under the constraint of the target query condition. The embodiments of the present application are beneficial to improving the accuracy of work hour statistics.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electronic equipment technology, specifically to a method for calculating working hours and related devices. Background Technology

[0002] With the rapid development of the computer and internet industry, people's lives are becoming increasingly intelligent in all aspects, from clothing and food to housing and transportation. This intelligent lifestyle is inseparable from the development of various applications. In software development, specifically application development, the accuracy of workload statistics and analysis is becoming increasingly important. Currently, different roles in different projects have different standards for workload input and progress tracking. Therefore, the workload of each developer or project is usually calculated manually, which is time-consuming, labor-intensive, and inefficient. Sometimes, accidental calculation errors can lead to inaccuracies in the overall project's work time calculation. Summary of the Invention

[0003] This application provides a method and related apparatus for calculating working hours, which helps to improve the efficiency and accuracy of working hour statistics.

[0004] The first aspect of this application provides a method for calculating working hours, including:

[0005] Define multiple query conditions;

[0006] Based on the mapping relationship between preset query conditions and configuration rules, determine the configuration rule corresponding to each query condition;

[0007] Based on the configuration rules corresponding to each query condition, the multiple query conditions are processed to obtain the target query condition;

[0008] Based on the target query conditions, determine the target project and query the working hour information corresponding to the target project under the constraints of the target query conditions.

[0009] A second aspect of this application provides a time statistics device, the device comprising: a determining unit, a processing unit, and a querying unit, wherein...

[0010] The determining unit is used to determine multiple query conditions, and to determine the configuration rule corresponding to each query condition according to the preset mapping relationship between query conditions and configuration rules.

[0011] The processing unit is used to process the multiple query conditions according to the configuration rules corresponding to each query condition to obtain the target query condition.

[0012] The query unit is used to determine the target project based on the target query conditions, and to query the working hour information corresponding to the target project under the constraints of the target query conditions.

[0013] A third aspect of this application provides an electronic device including: a processor and a memory; and one or more programs stored in the memory and configured to be executed by the processor, the programs including instructions for some or all of the steps as described in the first aspect.

[0014] A fourth aspect of this application provides a computer-readable storage medium for storing a computer program that causes a computer to perform some or all of the steps described in the first aspect of this application.

[0015] A fifth aspect of this application provides a computer program product, comprising a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps described in the first aspect of this application. This computer program product may be a software installation package.

[0016] Implementing the embodiments of this application has the following beneficial effects:

[0017] As can be seen, the time statistics method and related apparatus described in this application determine multiple query conditions; based on the mapping relationship between preset query conditions and configuration rules, the configuration rule corresponding to each query condition is determined; based on the configuration rule corresponding to each query condition, the multiple query conditions are processed to obtain target query conditions; based on the target query conditions, target items are determined, and time information corresponding to the target items under the constraints of the target query conditions is queried. Thus, multiple query conditions input by the user can be filtered or reorganized according to configuration rules to obtain target query conditions, which helps reduce query time and improve the efficiency of time statistics; finally, by filtering the target query conditions, the corresponding time information can be retrieved, which helps improve the accuracy of time statistics. Attached Figure Description

[0018] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1A This is a schematic diagram of the system architecture of a time statistics method provided in an embodiment of this application;

[0020] Figure 1B This is a schematic diagram of the interface of a time statistics system provided in an embodiment of this application;

[0021] Figure 1C This is a schematic flowchart of an embodiment of a time statistics method provided in this application;

[0022] Figure 2 This is a schematic flowchart of an embodiment of a time statistics method provided in this application;

[0023] Figure 3 This is a schematic diagram of an embodiment of a time statistics device provided in this application;

[0024] Figure 4 This is a schematic diagram of an embodiment of an electronic device provided in this application. Detailed Implementation

[0025] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0026] The terms "first," "second," "third," and "fourth," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.

[0027] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The presentation of this phrase in various locations throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0028] The electronic devices involved in the embodiments of this application may include various handheld devices, wearable devices, computing devices, or other processing devices connected to a wireless modem with wireless communication capabilities, as well as various forms of user equipment (UE), mobile station (MS), terminal device, etc. For ease of description, the devices mentioned above are collectively referred to as electronic devices. In one example, the electronic device may also be a server used for timekeeping statistics, which is not limited here.

[0029] The embodiments of this application will be described in detail below.

[0030] Please see Figure 1A , Figure 1A This is a schematic diagram of the system architecture of a time statistics method provided in an embodiment of this application. Figure 1A As shown, the system architecture includes: a front-end platform 110 and a rule database 120.

[0031] Users can enter or select multiple query conditions on the front-end page or work hour statistics interface corresponding to the front-end platform 110.

[0032] The electronic device may further include a rule database 120, which may include at least one rule database and multiple preset configuration rules. These preset configuration rules can be pre-defined for all attribute information corresponding to each query condition. The electronic device may also store the mapping relationship between the rule database and attribute information, thereby locating the rule database through the target attribute information and determining the preset configuration rule corresponding to each target attribute information.

[0033] As can be seen, in this embodiment, the electronic device can determine multiple query conditions on the front-end platform 110; based on the mapping relationship between preset query conditions and configuration rules, determine the configuration rule corresponding to each query condition from the rule database; process the multiple query conditions according to the configuration rule corresponding to each query condition to obtain target query conditions; determine the target project according to the target query conditions, and query the working hour information corresponding to the target project under the constraints of the target query conditions. Thus, multiple query conditions input by the user can be filtered or reorganized according to the configuration rules to obtain the target query conditions, which helps reduce query time and improve the efficiency of working hour statistics; finally, by filtering the target query conditions, the corresponding working hour information can be obtained, which helps improve the accuracy of working hour statistics.

[0034] Consistent with the above, please refer to Figure 1CThis is a flowchart illustrating an embodiment of a time statistics method provided in this application. It is applied to, for example... Figure 1A The electronic device shown, and the time statistics method described in this embodiment, include the following steps:

[0035] 101. Define multiple query conditions.

[0036] Electronic devices may include, for example Figure 1A The time statistics system shown can be implemented through, for example... Figure 1B In the displayed work hour statistics interface, select query conditions to select constraints, and retrieve work hour information for one or more personnel through multiple query conditions.

[0037] It should be noted that in this application, "multiple" can refer to two or more, which will not be elaborated further. Furthermore, the above... Figure 1B The time statistics interface shown can be set by the user or by the system default, and is not limited to such... Figure 1B The interface for calculating work hours can include six query conditions. For each query condition, you can select the corresponding attribute information. For example, if query condition 1 is "department," the department could include Department 1, Department 2, Department 3, etc. Different query conditions correspond to different attribute information.

[0038] Each of the above query conditions may correspond to at least one attribute. The attribute information is used to characterize the query information or query parameters corresponding to that query condition, or the type of query parameters and / or query information, etc., which is not limited here. For example, for start time and / or end time, the corresponding attribute information may be numbers or dates, etc.; for task name, the corresponding attribute information may include at least one of the following: project number, project location, nature, and company name, etc., which is not limited here. Different query conditions may correspond to different attribute information.

[0039] The query criteria may include at least one of the following: department, task name, project size, start time, end time, employee name, employee's corresponding job level, etc., without limitation. The project size can be used to indicate whether there are sub-projects under the corresponding task name. The electronic device can receive multiple query criteria selected by the user in the above-mentioned work hour statistics interface, so as to retrieve the corresponding target project and the work hour information of at least one employee corresponding to that target project, etc., without limitation.

[0040] The aforementioned work hour statistics system supports queries based on one or more search criteria. Users can freely set or randomly combine search criteria to query the work hours of a specific individual across multiple projects.

[0041] The query conditions mentioned above can be decoupled or related. For example, query condition 1 and query condition 2 are related. If a user selects query condition 1, which is related to query condition 2, then query condition 2 will be selected by default. The specific selection can be adapted according to the user's actual application scenario.

[0042] 102. Based on the mapping relationship between the preset query conditions and configuration rules, determine the configuration rule corresponding to each query condition.

[0043] In this context, the electronic device can preset the mapping relationship between query conditions and configuration rules. This mapping relationship can be set by the user or by the system default, and is not limited here.

[0044] The configuration rules described above can be used to configure different attribute information corresponding to different query conditions. It doesn't simply mean that the system will automatically return or display query information or parameters to the user based on their input of query conditions. The electronic device determines the configuration rules corresponding to each query condition through a preset mapping relationship between query conditions and configuration rules. The same query condition can also correspond to different attribute information.

[0045] For example, configuration rules can be preset for each query condition. For instance, since each employee cannot belong to multiple departments, it can be set that the employee can choose one or two departments, meaning that the user can choose one or two departments. Another example is the configuration rule for task name: only one can be selected. Yet another example is the configuration rule for start and end time: the end time must be later than the start time. At least one configuration rule can be preset for different query conditions.

[0046] In other words, the attribute information corresponding to the query conditions includes one or more attributes, and the specific attribute information is different under different configuration rules.

[0047] Optionally, since query conditions may be related to each other, meaning their corresponding attribute information may be related, to ensure the accuracy of the retrieved work hour information, configuration rules corresponding to each query condition can be preset according to the actual application scenario. Specifically, the current application scenario can be determined, and based on the current application scenario, the interrelationships between multiple query conditions can be determined, i.e., whether they are decoupled or interrelated. Furthermore, based on the interrelationships between multiple query conditions, configuration rules corresponding to each query condition can be preset. When the query relationships are interrelated, their corresponding configuration rules should also be interrelated or mutually restrictive.

[0048] For example, in application scenario A, three query conditions (e.g., query condition 1, query condition 2, and query condition 3) might be needed to obtain the corresponding work hour information. In application scenario B, five query conditions (e.g., query condition 1, query condition 2, query condition 3, query condition 4, and query condition 5) might be needed to obtain the corresponding work hour information. For the same query condition 1, the attribute information corresponding to the same query condition can be set to be different in different scenarios. This can include one or more conditions, and the corresponding configuration rules will also be different. The specific configuration rules can be set according to the application scenario.

[0049] 103. Process the multiple query conditions according to the configuration rules corresponding to each query condition to obtain the target query condition.

[0050] The purpose of processing multiple query conditions is to filter or reorganize them.

[0051] Since users select different query conditions in different application scenarios, the attribute information corresponding to the query conditions is different, and the relationship between query conditions is also unknown, multiple query conditions can be processed to filter or reorganize the query conditions to obtain the target query condition, which may include at least one of the above query conditions.

[0052] In one possible example, the method for determining the configuration rule corresponding to each query condition based on the mapping relationship between preset query conditions and configuration rules may include the following steps: determining at least one target attribute information corresponding to each query condition; determining a preset configuration rule corresponding to each target attribute information based on the mapping relationship between a preset rule database and attribute information, wherein the rule database includes multiple preset configuration rules; and filtering the configuration rule from the multiple preset configuration rules corresponding to each query condition.

[0053] Each query condition can correspond to at least one target attribute. For example, for the query condition "department," the corresponding target attribute could be "Department 1," "Department 2," etc. Similarly, for the query condition "employee name," it could include multiple developers. The target attribute can be obtained by filtering the attribute information corresponding to each query condition.

[0054] The electronic device may include a rule database, which may include multiple preset configuration rules, and preset configuration rules can be set in advance for all attribute information corresponding to each query condition.

[0055] The electronic device can store multiple preset configuration rules through one or more databases. It can also store the mapping relationship between the rule database and attribute information, thereby locating the rule database through the target attribute information and determining the preset configuration rule corresponding to each target attribute.

[0056] Optionally, the above-mentioned selection of configuration rules from multiple preset configuration rules corresponding to each query condition may include the following steps: determining the interrelationship between multiple query conditions; if there exists an interrelationship between any two query conditions, namely the first target attribute information and the second target attribute information corresponding to the first query condition and the second query condition respectively, then determining the first preset configuration rule corresponding to the first query condition; and determining the second preset configuration rule corresponding to the second query condition adapted to the first preset configuration rule according to the first preset configuration rule; and using the first preset configuration rule and the second preset configuration rule as the above-mentioned configuration rules.

[0057] Since the relationships between query conditions and the corresponding configuration rules should also be interrelated or mutually restrictive, the configuration rules can be further determined through these relationships. This will help improve the efficiency of filtering and the accuracy of time statistics.

[0058] For example, for the query condition of task name, if the task name shows that its corresponding project number (target attribute information) indicates that the corresponding developer has a higher job level, namely an expert type developer (target attribute information), then the job level of the developers corresponding to that project must include developers with the job level of expert. In this way, the query personnel for task name are associated with job level. After determining that the configuration rule corresponding to task name has been selected, the configuration rule corresponding to the other related query condition can be directly filtered out, namely the configuration rule for job level of expert.

[0059] As can be seen in this example, the target attribute information of another related query condition can be quickly located based on the target attribute information of one query condition, and the configuration rule corresponding to the other query condition can be quickly located based on the relationship between the two target attribute information. This helps to improve the efficiency of matching or filtering and achieve accurate positioning between attribute information, thereby enabling the recombination or filtering of multiple query conditions and improving the accuracy of work hour statistics.

[0060] In one possible example, the method of filtering the configuration rules from multiple preset configuration rules corresponding to each query condition may include the following steps: determining the user identity corresponding to the multiple query conditions; determining the target query permission corresponding to the user identity based on the preset mapping relationship between user identity and query permission; and filtering the configuration rules from multiple preset configuration rules corresponding to each query condition based on the query permission.

[0061] The electronic device can preset a mapping relationship between user identity and query permissions, thereby restricting the scope of access for users who query work hours or perform work hour statistics based on their identity information. The aforementioned user identity may include their corresponding employee ID, job title, national ID number, etc.

[0062] As can be seen in this example, query permissions can be restricted by user identity to improve information security.

[0063] In one possible example, processing the multiple query conditions according to the configuration rules corresponding to each query condition to obtain the target query condition may include the following steps: determining the importance parameter corresponding to each query condition; generating an importance parameter matrix corresponding to the multiple query conditions; generating multiple query parameter matrices corresponding to the configuration rules according to the configuration rules corresponding to each query condition; generating a target query matrix according to the query parameter matrix and the importance parameter matrix; and determining the target query condition according to the target query matrix.

[0064] Different query conditions have varying degrees of importance in the final work hour calculation. For example, regarding start and end times, if the electronic device needs to calculate the work hours for an entire project, then the two query conditions mentioned above are not important for the final work hour statistics. Therefore, the electronic device can set a corresponding importance parameter, i.e., weight, for each query condition. The range of each importance parameter can be [-0.1, 0.1].

[0065] Because the weights of the query conditions selected by the user vary, the resulting importance parameter matrices will also differ. This importance parameter matrix can be an m×m symmetric matrix, where m represents the importance parameters of different attribute information.

[0066] In practice, since the attribute information corresponding to the query conditions includes one or more attributes, and the specific attribute information is different under different configuration rules, a query parameter matrix of attribute information corresponding to each configuration rule can be generated based on the configuration rule corresponding to each query condition. The parameters in this matrix can be attribute parameters. The above query parameter matrix can be an m×1 matrix.

[0067] Furthermore, the query parameter matrix can be optimized based on the aforementioned importance parameter matrix to obtain the target query matrix. This involves optimizing the relevant data in the query parameter matrix for each importance parameter in the importance parameter matrix, i.e., matrix perturbation, and outputting the possible values ​​corresponding to each importance parameter to obtain the target query matrix. Based on the new query parameters in the target query matrix, target query conditions are generated to remove the attribute information corresponding to unnecessary query conditions, which helps to improve query efficiency.

[0068] In one possible example, generating the importance parameter matrix corresponding to the plurality of query conditions may include the following steps: determining the parameter information corresponding to each target attribute information in at least one target attribute information corresponding to each query condition; determining the importance factor corresponding to each target attribute information; and generating the importance parameter matrix corresponding to the plurality of query conditions based on the importance factor corresponding to each target attribute information and the parameter information corresponding to each target attribute information.

[0069] In practice, the position of each target attribute in the importance parameter matrix can be determined based on the parameter information corresponding to each target attribute, and the corresponding importance factor can be input at the corresponding position to obtain the importance parameter matrix.

[0070] 104. Based on the target query conditions, determine the target project and query the working hour information corresponding to the target project under the constraints of the target query conditions.

[0071] Specifically, the target query criteria can be used to locate the task name, thereby pinpointing the specific target project. This target project can refer to a large software development project, a target project composed of multiple sub-projects within a large software development project, or multiple sub-projects that need to be completed within a certain period.

[0072] The aforementioned working hours information may refer to the working hours corresponding to each developer in the aforementioned software development project, or it may refer to the working hours corresponding to the completion of a software development project, or multiple sub-projects, or the working hours corresponding to any one of the sub-projects, without any limitation.

[0073] In one possible example, the query for the working hour information corresponding to the target project under the constraints of the target query conditions may include the following steps: determining the sub-project corresponding to any target person of the target project according to the target query conditions; determining the sub-working hour information corresponding to each sub-project of the target person; and comprehensively calculating the sub-working hour information corresponding to each target person to obtain the working hour information.

[0074] The aforementioned target personnel may refer to at least one developer who completed the target project, or at least one developer located based on the query conditions; there is no limitation on this.

[0075] The target query conditions mentioned above may include at least one of the following: department, task name, project size, start time, end time, personnel name, corresponding job level, etc., without limitation. It may include target attribute information corresponding to multiple target query conditions after filtering or processing.

[0076] In practice, the time information for each target person under the target query conditions can be obtained by deduplicating and summing the sub-time information used by each developer in the corresponding sub-project.

[0077] In one possible example, the target query conditions include: start time and end time. The step of determining the sub-project corresponding to any target person corresponding to the target project based on the target query conditions includes: determining a target time period based on the start time and end time; and determining the sub-project corresponding to each target person within the target time period.

[0078] Specifically, based on the target time period corresponding to the start and end times of the project, multiple time nodes within the target time period can be determined for the target personnel, and based on these time nodes, at least one sub-project for the target personnel from the start time to the end time can be determined.

[0079] As can be seen in this application example, time nodes can be located based on target query conditions, and it can be determined that the target user has completed or needs to complete at least one sub-project at each time node or within any two time nodes.

[0080] As can be seen, the time statistics method provided in this application, when applied to an electronic device, determines multiple query conditions; based on the mapping relationship between preset query conditions and configuration rules, it determines the configuration rule corresponding to each query condition; based on the configuration rule corresponding to each query condition, it processes the multiple query conditions to obtain target query conditions; based on the target query conditions, it determines the target project and queries the time information corresponding to the target project under the constraints of the target query conditions. Thus, based on the configuration rules, multiple query conditions input by the user can be filtered or reorganized to obtain the target query conditions, which helps reduce query time and improve the efficiency of time statistics; finally, by filtering the target query conditions, the corresponding time information can be retrieved, which helps improve the accuracy of time statistics.

[0081] Consistent with the above, please refer to Figure 2This is a schematic flowchart illustrating an embodiment of a time-counting method provided in this application. The time-counting method described in this embodiment is applied to electronic devices and includes the following steps:

[0082] 201. Define multiple query conditions.

[0083] 202. Determine at least one target attribute information corresponding to each of the above query conditions.

[0084] 203. Based on the mapping relationship between the preset rule database and attribute information, determine the preset configuration rule corresponding to each target attribute information. The rule database includes multiple preset configuration rules.

[0085] 204. The configuration rules are obtained by filtering from the multiple preset configuration rules corresponding to each query condition.

[0086] 205. Process the multiple query conditions according to the configuration rules corresponding to each query condition to obtain the target query condition.

[0087] 206. Based on the target query conditions, determine the target project and query the working hour information corresponding to the target project under the constraints of the target query conditions.

[0088] Optionally, the specific description of steps 201-206 above can be found in [reference]. Figure 1C The corresponding steps 101-104 of the described time statistics method will not be repeated here.

[0089] As can be seen, the time statistics method provided in this application, when applied to an electronic device, determines multiple query conditions; determines at least one target attribute information corresponding to each query condition; determines a preset configuration rule corresponding to each target attribute information based on the mapping relationship between a preset rule database and the attribute information, wherein the rule database includes multiple preset configuration rules; filters the configuration rules from the multiple preset configuration rules corresponding to each query condition; processes the multiple query conditions according to the configuration rules corresponding to each query condition to obtain target query conditions; determines target items based on the target query conditions, and queries the time information corresponding to the target items under the constraints of the target query conditions. Thus, the target attribute information corresponding to multiple query conditions can be located, and further, the multiple query conditions input by the user can be filtered or reorganized according to the configuration rules to obtain target query conditions. This helps reduce query time and improve the efficiency of time statistics; finally, the corresponding time information can be obtained by filtering the target query conditions, which helps improve the accuracy of time statistics.

[0090] Consistent with the above, the following is the apparatus for implementing the above-described time statistics method, specifically as follows:

[0091] Please see Figure 3 This is a schematic diagram illustrating the structure of an embodiment of a time statistics device provided in this application. The time statistics device described in this embodiment is applied to an electronic device and includes: a determining unit 301, a processing unit 302, and a query unit 303, wherein...

[0092] The determining unit 301 is used to determine multiple query conditions and, based on the mapping relationship between preset query conditions and configuration rules, determine the configuration rule corresponding to each query condition.

[0093] The processing unit 302 is used to process the multiple query conditions according to the configuration rules corresponding to each query condition to obtain the target query condition.

[0094] The query unit 303 is used to determine the target project according to the target query conditions, and query the working hour information corresponding to the target project under the constraints of the target query conditions.

[0095] The determining unit 301 can be used to implement the method described in step 101, the processing unit 302 can be used to implement the method described in steps 102-103, the query unit 303 can be used to implement the method described in step 104, and so on.

[0096] As can be seen, the time statistics device described in this application determines multiple query conditions; based on the mapping relationship between preset query conditions and configuration rules, it determines the configuration rule corresponding to each query condition; based on the configuration rule corresponding to each query condition, it processes the multiple query conditions to obtain target query conditions; based on the target query conditions, it determines the target project and queries the time information corresponding to the target project under the constraints of the target query conditions. Thus, based on the configuration rules, multiple query conditions input by the user can be filtered or reorganized to obtain the target query conditions, which helps reduce query time and improve the efficiency of time statistics; finally, by filtering the target query conditions, the corresponding time information can be retrieved, which helps improve the accuracy of time statistics.

[0097] In one possible example, regarding the query of the working hour information corresponding to the target project under the constraints of the target query conditions, the query unit 303 is specifically used for:

[0098] Based on the target query conditions, determine the sub-project corresponding to any target person in the target project;

[0099] Determine the sub-work hour information corresponding to the sub-project for each of the target personnel;

[0100] The working time information is obtained by comprehensively calculating the sub-working time information corresponding to each target person.

[0101] In one possible example, regarding determining the configuration rule corresponding to each query condition based on the mapping relationship between preset query conditions and configuration rules, the determining unit 301 is specifically used for:

[0102] Determine at least one target attribute information corresponding to each of the query conditions;

[0103] Based on the mapping relationship between the preset rule database and attribute information, the preset configuration rule corresponding to each target attribute information is determined. The rule database includes multiple preset configuration rules.

[0104] The configuration rules are obtained by filtering from multiple preset configuration rules corresponding to each query condition.

[0105] In one possible example, regarding the process of filtering the configuration rules from multiple preset configuration rules corresponding to each query condition, the determining unit 301 is specifically used for:

[0106] Determine the user identity corresponding to the multiple query conditions;

[0107] Based on the preset mapping relationship between user identity and query permissions, the target query permission corresponding to the user identity is determined;

[0108] Based on the query permissions, the configuration rules are selected from multiple preset configuration rules corresponding to each query condition.

[0109] In one possible example, regarding the processing of the multiple query conditions according to the configuration rules corresponding to each query condition to obtain the target query condition, the processing unit 302 is specifically used for:

[0110] Determine the importance parameter corresponding to each query condition;

[0111] Generate an importance parameter matrix corresponding to the multiple query conditions;

[0112] Based on the configuration rules corresponding to each query condition, generate multiple query parameter matrices corresponding to the configuration rules;

[0113] Based on the query parameter matrix and the importance parameter matrix, generate the target query matrix;

[0114] The target query conditions are determined based on the target query matrix.

[0115] In one possible example, in generating the importance parameter matrix corresponding to the plurality of query conditions, the processing unit 302 is specifically used for:

[0116] Determine the parameter information corresponding to each target attribute information in at least one target attribute information corresponding to each query condition;

[0117] Determine the importance factor corresponding to each target attribute information;

[0118] Based on the importance factor corresponding to each target attribute information and the parameter information corresponding to each target attribute information, an importance parameter matrix corresponding to the multiple query conditions is generated.

[0119] In one possible example, the target query conditions include: start time and end time; in determining the sub-project corresponding to any target person corresponding to the target project based on the target query conditions, the determining unit 301 is specifically used for:

[0120] Based on the start and end times, determine the target time period;

[0121] Determine the sub-project corresponding to each target person within the target time period.

[0122] It is understood that the functions of each program module of the time statistics device in this embodiment can be specifically implemented according to the methods in the above method embodiments. The specific implementation process can be referred to the relevant descriptions in the above method embodiments, which will not be repeated here.

[0123] Consistent with the above, please refer to Figure 4 This is a schematic diagram illustrating the structure of an electronic device according to an embodiment of this application. As shown in the figure, the electronic device described in this embodiment includes a processor, a memory, a communication interface, and one or more programs. These programs are stored in the memory and configured to be executed by the processor. In this embodiment, the programs include instructions for performing the following steps:

[0124] Define multiple query conditions;

[0125] Based on the mapping relationship between preset query conditions and configuration rules, determine the configuration rule corresponding to each query condition;

[0126] Based on the configuration rules corresponding to each query condition, the multiple query conditions are processed to obtain the target query condition;

[0127] Based on the target query conditions, determine the target project and query the working hour information corresponding to the target project under the constraints of the target query conditions.

[0128] As can be seen, the electronic device described in this application's embodiments determines multiple query conditions; based on the mapping relationship between preset query conditions and configuration rules, it determines the configuration rule corresponding to each query condition; based on the configuration rule corresponding to each query condition, it processes the multiple query conditions to obtain target query conditions; based on the target query conditions, it determines target items and queries the working hour information corresponding to the target items under the constraints of the target query conditions. Thus, based on the configuration rules, multiple query conditions input by the user can be filtered or reorganized to obtain target query conditions, which helps reduce query time and improve the efficiency of working hour statistics; finally, by filtering the target query conditions, the corresponding working hour information can be retrieved, which helps improve the accuracy of working hour statistics.

[0129] In one possible example, regarding the query for the working hour information corresponding to the target project under the constraints of the target query conditions, the above procedure further includes instructions for performing the following steps:

[0130] Based on the target query conditions, determine the sub-project corresponding to any target person in the target project;

[0131] Determine the sub-work hour information corresponding to the sub-project for each of the target personnel;

[0132] The working time information is obtained by comprehensively calculating the sub-working time information corresponding to each target person.

[0133] In one possible example, regarding determining the configuration rule corresponding to each query condition based on the mapping relationship between preset query conditions and configuration rules, the above program further includes instructions for performing the following steps:

[0134] Determine at least one target attribute information corresponding to each of the query conditions;

[0135] Based on the mapping relationship between the preset rule database and attribute information, the preset configuration rule corresponding to each target attribute information is determined. The rule database includes multiple preset configuration rules.

[0136] The configuration rules are obtained by filtering from multiple preset configuration rules corresponding to each query condition.

[0137] In one possible example, in terms of obtaining the configuration rules from a plurality of preset configuration rules corresponding to each query condition, the above procedure further includes instructions for performing the following steps:

[0138] Determine the user identity corresponding to the multiple query conditions;

[0139] Based on the preset mapping relationship between user identity and query permissions, the target query permission corresponding to the user identity is determined;

[0140] Based on the query permissions, the configuration rules are selected from multiple preset configuration rules corresponding to each query condition.

[0141] In one possible example, in processing the multiple query conditions according to the configuration rules corresponding to each query condition to obtain the target query condition, the above procedure further includes instructions for performing the following steps:

[0142] Determine the importance parameter corresponding to each query condition;

[0143] Generate an importance parameter matrix corresponding to the multiple query conditions;

[0144] Based on the configuration rules corresponding to each query condition, generate multiple query parameter matrices corresponding to the configuration rules;

[0145] Based on the query parameter matrix and the importance parameter matrix, generate the target query matrix;

[0146] The target query conditions are determined based on the target query matrix.

[0147] In one possible example, in generating the importance parameter matrix corresponding to the plurality of query conditions, the above procedure further includes instructions for performing the following steps:

[0148] Determine the parameter information corresponding to each target attribute information in at least one target attribute information corresponding to each query condition;

[0149] Determine the importance factor corresponding to each target attribute information;

[0150] Based on the importance factor corresponding to each target attribute information and the parameter information corresponding to each target attribute information, an importance parameter matrix corresponding to the multiple query conditions is generated.

[0151] In one possible example, the target query criteria include: start time and end time; regarding determining the sub-project corresponding to any target person corresponding to the target project based on the target query criteria, the above procedure further includes instructions for performing the following steps:

[0152] Based on the start and end times, determine the target time period;

[0153] Determine the sub-project corresponding to each target person within the target time period.

[0154] This application also provides a computer storage medium, wherein the computer storage medium may store a program, which, when executed, includes some or all of the steps of any of the time statistics methods described in the above method embodiments.

[0155] Although this application has been described herein in conjunction with various embodiments, those skilled in the art, by reviewing the accompanying drawings, disclosure, and appended claims, will understand and implement other variations of the disclosed embodiments in carrying out the claimed application. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude a plurality. A single processor or other unit can implement several functions listed in the claims. While different dependent claims may recite certain measures, this does not mean that these measures cannot be combined to produce good results.

[0156] Those skilled in the art will understand that embodiments of this application can be provided as methods, apparatus (devices), or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code. The computer program may be stored / distributed in a suitable medium, provided with or as part of other hardware, or may take other distribution forms, such as via the Internet or other wired or wireless telecommunications systems.

[0157] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (devices), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable timekeeping device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable timekeeping device, create means for implementing the functions specified in one or more blocks of the flowchart illustrations and / or one or more blocks of the block diagrams.

[0158] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable timekeeping device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means that implement the functions specified in one or more flowcharts and / or one or more block diagrams.

[0159] These computer program instructions may also be loaded onto a computer or other programmable timekeeping device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, such that the instructions, which execute on the computer or other programmable device, provide steps for implementing the functions specified in one or more flowcharts and / or one or more block diagrams.

[0160] Although this application has been described in conjunction with specific features and embodiments, it is obvious that various modifications and combinations can be made thereto without departing from the spirit and scope of this application. Accordingly, this specification and drawings are merely exemplary illustrations of this application as defined by the appended claims, and are considered to cover any and all modifications, variations, combinations, or equivalents within the scope of this application. Clearly, those skilled in the art can make various alterations and modifications to this application without departing from the spirit and scope of this application. Thus, if such modifications and modifications of this application fall within the scope of the claims of this application and their equivalents, this application is also intended to include such modifications and modifications.

Claims

1. A method for calculating working hours, characterized in that, include: Define multiple query conditions; Determine at least one target attribute information corresponding to each of the query conditions; Based on the mapping relationship between the preset rule database and attribute information, a preset configuration rule corresponding to each target attribute information is determined, wherein the rule database includes multiple preset configuration rules; the configuration rule is obtained by filtering from the multiple preset configuration rules corresponding to each query condition. Based on the configuration rules corresponding to each query condition, the multiple query conditions are processed to obtain the target query condition; Based on the target query conditions, determine the target project, and query the working hour information corresponding to the target project under the constraints of the target query conditions; The step of filtering the configuration rules from multiple preset configuration rules corresponding to each query condition includes: determining the interrelationship between the multiple query conditions; if there exists an interrelationship between any two query conditions, namely the first target attribute information and the second target attribute information corresponding to the first query condition and the second query condition respectively, then determining the first preset configuration rule corresponding to the first query condition; and determining the second preset configuration rule corresponding to the second query condition adapted to the first preset configuration rule according to the first preset configuration rule; and using the first preset configuration rule and the second preset configuration rule as the configuration rule.

2. The method according to claim 1, characterized in that, The query, under the constraints of the target query conditions, includes the following working hour information corresponding to the target project: Based on the target query conditions, determine the sub-project corresponding to any target person in the target project; Determine the sub-work hour information corresponding to the sub-project for each of the target personnel; The working time information is obtained by comprehensively calculating the sub-working time information corresponding to each target person.

3. The method according to claim 1, characterized in that, The step of filtering the configuration rules from multiple preset configuration rules corresponding to each query condition includes: Determine the user identity corresponding to the multiple query conditions; Based on the preset mapping relationship between user identity and query permissions, the target query permission corresponding to the user identity is determined; Based on the query permissions, the configuration rules are selected from multiple preset configuration rules corresponding to each query condition.

4. The method according to claim 1 or 3, characterized in that, The step of processing the multiple query conditions according to the configuration rules corresponding to each query condition to obtain the target query condition includes: Determine the importance parameter corresponding to each query condition; Generate an importance parameter matrix corresponding to the multiple query conditions; Based on the configuration rules corresponding to each query condition, generate multiple query parameter matrices corresponding to the configuration rules; Based on the query parameter matrix and the importance parameter matrix, generate the target query matrix; The target query conditions are determined based on the target query matrix.

5. The method according to claim 4, characterized in that, The generation of the importance parameter matrix corresponding to the multiple query conditions includes: Determine the parameter information corresponding to each target attribute information in at least one target attribute information corresponding to each query condition; Determine the importance factor corresponding to each target attribute information; Based on the importance factor corresponding to each target attribute information and the parameter information corresponding to each target attribute information, an importance parameter matrix corresponding to the multiple query conditions is generated.

6. The method according to claim 2, characterized in that, The target query conditions include: start time and end time. The step of determining the sub-project corresponding to any target person for the target project based on the target query conditions includes: Based on the start and end times, determine the target time period; Determine the sub-project corresponding to each target person within the target time period.

7. A timekeeping device, characterized in that, The device includes: a determining unit, a processing unit, and a querying unit, wherein, The determining unit is configured to determine multiple query conditions and at least one target attribute information corresponding to each query condition; determine a preset configuration rule corresponding to each target attribute information according to a preset mapping relationship between a rule database and attribute information, wherein the rule database includes multiple preset configuration rules; and filter the configuration rule from the multiple preset configuration rules corresponding to each query condition; wherein, the step of filtering the configuration rule from the multiple preset configuration rules corresponding to each query condition includes: determining the interrelationship between the multiple query conditions; if there exists an interrelationship between any two query conditions, i.e., the first target attribute information and the second target attribute information corresponding to the first query condition and the second query condition respectively, the first preset configuration rule corresponding to the first query condition is determined; and according to the first preset configuration rule, a second preset configuration rule corresponding to the second query condition adapted to the first preset configuration rule is determined; and the first preset configuration rule and the second preset configuration rule are used as the configuration rule. The processing unit is used to process the multiple query conditions according to the configuration rules corresponding to each query condition to obtain the target query condition. The query unit is used to determine the target project based on the target query conditions, and to query the working hour information corresponding to the target project under the constraints of the target query conditions.

8. An electronic device, characterized in that, It includes a processor and a memory, the memory being used to store one or more programs and configured to be executed by the processor, the programs including instructions for performing the steps of the method as described in any one of claims 1-6.

9. A computer-readable storage medium, characterized in that, A computer program for storing electronic data interchange is provided, wherein the computer program causes a computer to perform the method as described in any one of claims 1-6.