Work hour acquisition method, work hour acquisition device, terminal device, and server

By obtaining operation logs from the work page and using the server to calculate work hours, the problem of existing work hour statistics methods failing to accurately reflect users' actual work behavior is solved, achieving more accurate work hour statistics and performance evaluation.

CN114503136BActive Publication Date: 2026-02-06SHENZHEN HEYTAP TECHNOLOGY CO LTD +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN201980099899.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-11-27
Publication Date
2026-02-06
Estimated Expiration
2039-11-27

AI Technical Summary

Technical Problem

Existing methods for calculating working hours fail to accurately reflect users' actual work behavior, resulting in significant errors in performance evaluation.

Method used

By obtaining user operation logs on the work page, including user identification information, the time period to which the operation was performed, and task identification information, the server calculates working hours based on the operation logs to ensure the accuracy of working hour statistics.

Benefits of technology

It improves the accuracy of work hour statistics, provides an objective reference for performance evaluation, and reduces errors caused by not basing them on actual work behavior.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114503136B_ABST
    Figure CN114503136B_ABST
Patent Text Reader

Abstract

A work hour acquisition method, a work hour acquisition device, a terminal device, a server and a computer readable storage medium, the work hour acquisition method comprises: acquiring the operation performed by a user on a work page (S201); if the operation performed on the work page is a preset operation, acquiring the operation log of the user (S202); and reporting the operation log to a preset message system (S203), wherein the preset message system provides the operation log for a server, and the work hour of the user performing a task is acquired by the server according to the operation log, wherein the task refers to a task corresponding to the task identification information. Through the method, the work hour of the user performing the task can be accurately acquired.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The application belongs to the technical field of work hour statistics, and particularly relates to a work hour acquisition method, a work hour acquisition device, a terminal device, a server and a computer readable storage medium. BACKGROUND

[0002] Work hour, also known as man-hour, is a unit of measurement of working time, and is an important unit of measurement for enterprises to calculate labor time of employees, make labor quota, prepare plans and measure development level of labor productivity. Through the statistics of work hours of employees, the work efficiency of employees can be measured to provide objective and valuable reference for performance appraisal of employees. SUMMARY

[0003] The application provides a work hour acquisition method, a work hour acquisition device, a terminal device, a server and a computer readable storage medium, which can accurately acquire work hours of a user performing a task.

[0004] In a first aspect, an embodiment of the application provides a work hour acquisition method, which comprises the following steps.

[0005] Obtaining an operation performed by a user on a work page;

[0006] If the operation performed on the work page is a preset operation, obtaining an operation log of the user, wherein the operation log comprises user identity information, a time period to which an operation execution time belongs, and task identification information, the time period to which the operation execution time belongs refers to a time period to which a time of performing the operation on the work page belongs, and the task identification information refers to identification information of a task to which the work page belongs;

[0007] Reporting the operation log to a preset message system, wherein the preset message system provides the operation log for a server, and work hours of the user performing a task are acquired by the server according to the operation log, and the task refers to a task corresponding to the task identification information.

[0008] In a second aspect, an embodiment of the application provides a work hour acquisition method, which comprises the following steps.

[0009] Obtaining an operation log, wherein the operation log comprises user identity information, a time period to which an operation execution time belongs, and task identification information, the time period to which the operation execution time belongs refers to a time period to which a time of performing the operation on the work page belongs, and the task identification information refers to identification information of a task to which the work page belongs;

[0010] Obtaining the time period to which the operation execution time belongs from the operation log;

[0011] According to a time period to which the operation execution time belongs, obtain work hours of the user performing a task, wherein the user is a user corresponding to the user identity information, and the task is a task corresponding to the task identity information.

[0012] In a third aspect, an embodiment of the present application provides a work hour obtaining device, the work hour obtaining device comprises:

[0013] An operation obtaining module is configured to obtain an operation performed by a user on a work page.

[0014] A log obtaining module is configured to, if the operation performed on the work page is a preset operation, obtain an operation log of the user, wherein the operation log comprises user identity information, a time period to which an operation execution time belongs, and task identity information, the time period to which the operation execution time belongs refers to a time period to which a time of performing the operation on the work page belongs, and the task identity information refers to identity information of a task to which the work page belongs.

[0015] A log reporting module is configured to report the operation log to a preset message system, wherein the preset message system provides the operation log for a server, and the server obtains work hours of the user performing a task according to the operation log, and the task refers to a task corresponding to the task identity information.

[0016] In a fourth aspect, an embodiment of the present application provides a work hour obtaining device, the work hour obtaining device comprises:

[0017] An information obtaining module is configured to obtain an operation log, wherein the operation log comprises user identity information, a time period to which an operation execution time belongs, and task identity information, the time period to which the operation execution time belongs refers to a time period to which a time of performing the operation on the work page belongs, and the task identity information refers to identity information of a task to which the work page belongs.

[0018] A time period obtaining module is configured to obtain the time period to which the operation execution time belongs from the operation log.

[0019] A work hour obtaining module is configured to, according to the time period to which the operation execution time belongs, obtain work hours of the user performing a task, wherein the user is a user corresponding to the user identity information, and the task is a task corresponding to the task identity information.

[0020] In a fifth aspect, an embodiment of the present application provides a terminal device, which comprises a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and the processor implements steps of the work hour obtaining method according to the first aspect when executing the computer program.

[0021] In a sixth aspect, an embodiment of the present application provides a server, comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and the processor implements the steps of the work hour acquisition method according to the second aspect when executing the computer program.

[0022] In a seventh aspect, an embodiment of the present application provides a computer readable storage medium, which stores a computer program, and the computer program, when executed by a processor, implements the steps of the work hour acquisition method according to the first aspect, or the computer program, when executed by a processor, implements the steps of the work hour acquisition method according to the second aspect.

[0023] In an eighth aspect, an embodiment of the present application provides a computer program product, which, when running on a terminal device, causes the terminal device to execute the steps of the work hour acquisition method according to the first aspect, or which, when running on a server, causes the server to execute the steps of the work hour acquisition method according to the second aspect. BRIEF DESCRIPTION OF DRAWINGS

[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or prior art description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0025] Figure 1 FIG. 1 is a network architecture diagram of a work hour acquisition system according to an embodiment of the present application;

[0026] Figure 2 FIG. 2 is a flowchart of an implementation process of a work hour acquisition method according to an embodiment of the present application;

[0027] Figure 3 FIG. 3 is a flowchart of an implementation process of a work hour acquisition method according to another embodiment of the present application;

[0028] Figure 4 FIG. 4 is a structural diagram of a work hour acquisition device according to an embodiment of the present application;

[0029] Figure 5 FIG. 5 is a structural diagram of a work hour acquisition device according to another embodiment of the present application;

[0030] Figure 6 FIG. 6 is a structural diagram of a terminal device according to an embodiment of the present application;

[0031] Figure 7is a structural schematic diagram of a server provided by an embodiment of the present application. DETAILED DESCRIPTION

[0032] In the following description, for the purposes of explanation and not limitation, specific details are set forth, such as particular sequences of steps, techniques, etc., in order to provide a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application can be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known methods, devices, circuits, and

[0033] It should be understood that the term "comprises" when used in this specification and the appended claims indicates the presence of the described features, integers, steps, operations, elements, and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.

[0034] It should also be understood that the term "and / or" when used in this specification and the appended claims indicates that the associated listed items can be present one or more of the associated listed items, and that the items are not limited to only one of the associated listed items.

[0035] It should be understood that the size of the serial number of each step in the embodiments does not mean the order of execution, and the execution order of each process should be determined according to its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0036] In order to illustrate the technical solutions described in the present application, the following will be described by specific embodiments.

[0037] Embodiment 1

[0038] Reference Figure 1 is a network architecture of a work hour acquisition system provided by an embodiment of the present application, and only the part related to the embodiments of the present application is shown for the convenience of description.

[0039] As Figure 1 shown, the work hour acquisition system includes a terminal device 11, a preset message system 12, and a server 13. The terminal device 11 and the preset message system 12 can be connected and communicated through a wireless manner, the preset message system 12 and the server 13 can be connected and communicated through a wireless manner, and the terminal device 11 and the server 13 can be connected and communicated through a wired or wireless manner.

[0040] The terminal device 11 can refer to any device capable of executing the work hour acquisition method, and specifically can be a web end executing the above work hour acquisition method, that is, a web page version of the computer end. The web is a global, dynamic interactive, cross-platform distributed graphical information system based on hypertext and hypertext transfer protocol (HTTP). It is a network server established on the Internet, which provides a graphical and easy-to-access intuitive interface for users to search and browse information on the Internet. The documents and hyperlinks in it organize the information nodes on the Internet into a mesh structure that is associated with each other.

[0041] The preset message system 12 can refer to a system for message delivery and subscription of various Internet platforms, including but not limited to Kafka. Kafka is an open source, high availability and high throughput distributed message system.

[0042] The server 13 can refer to a device integrated with a computing system capable of real-time processing of data, including but not limited to Storm, which is an open source distributed real-time computation system suitable for real-time processing of massive data. Storm Trident is a highly abstracted real-time computation model of Storm, which can seamlessly combine high-throughput (million-level per second) data input, stateful stream processing and low-latency distributed query. Trident has functions such as join, aggregation, grouping, function and filter. Trident provides basic primitives for stateful, incremental processing on top of databases or other persistent storage. A key problem of real-time computation is how to manage the state so that the update process after failure and retry operation is still idempotent. Errors are inevitable, so batch processing operations need to be retried when node failure or other problems occur. However, the biggest problem here is how to perform a suitable state update operation (whether for external databases or internal state of the topology) so that each message can be executed and only executed once. Trident solves this problem by the following two things: 1) a unique id is marked for each data block in Trident, which can be called "transaction id". If the data block is rolled back due to failure, the transaction id it holds will not change. 2) The update operation of the state is performed in the order of the data block. That is, the update operation of block 3 will not be performed until the update operation of block 2 is successfully performed. Based on these two basic characteristics, the state update can achieve exactly-once semantics. Any method can be used to implement the storage operation of the state, such as database, redis, hdfs, etc.

[0043] Redis is an open source key-value storage system based on high-speed access in memory and its distributed scalable characteristics, providing an efficient solution for high concurrency and high availability of Internet applications. It is commonly used as a cache layer for distributed applications, sharing data between various server instances, providing fast feedback for client requests, and relieving the pressure on the underlying application database. Its rich data structures and APIs provide strong support for various application scenarios.

[0044] In order to accurately obtain the working hours of the user performing the task, the terminal device 11 can obtain the operation performed by the user on the work page, and when the operation performed on the work page is a preset operation, obtain the operation log of the user, report the operation log to the preset message system 12, and the server 13 obtains the operation log from the preset message system 12, obtains the time period to which the operation execution time belongs from the operation log, and according to the time period to which the operation execution time belongs, obtains the working hours of the user performing the task.

[0045] Optionally, the terminal device 11 obtains the time period to which the operation execution time belongs from the operation log, and reports the operation log to the preset message system 12 at the end time of the time period to which the operation execution time belongs.

[0046] Optionally, the terminal device 11 enters the piecework system through the browser, and when the start instruction of any work page in the piecework system is obtained, the work page corresponding to the start instruction is displayed.

[0047] Optionally, the terminal device 11 sends a working hour query request information to the server 13, and the server 13 feeds back the working hours of the user performing the task to the terminal device 11 when receiving the working hour query request information.

[0048] Optionally, the server 13 obtains the working hours of the user performing the task in the time period to which the operation execution time belongs according to the time period to which the operation execution time belongs; detects whether the working hours of the user performing the task exist before obtaining the operation log; if the working hours of the user performing the task exist, the working hours of the user performing the task in the time period to which the operation execution time belongs and the working hours of the user performing the task are accumulated, and the working hours of the user performing the task are updated to the accumulated value; if the working hours of the user performing the task do not exist, the working hours of the user performing the task in the time period to which the operation execution time belongs are determined as the working hours of the user performing the task.

[0049] Optionally, the server 13 detects whether there are multiple tasks in the time period to which the operation execution time belongs; if there are no multiple tasks in the time period to which the operation execution time belongs, the duration of the time period to which the operation execution time belongs is obtained, and the duration is determined as the working hours of the user performing the task in the time period to which the operation execution time belongs; if there are multiple tasks in the time period to which the operation execution time belongs, the working hours of the user performing each task in the time period to which the operation execution time belongs are obtained according to the time period to which the operation execution time belongs and a preset strategy.

[0050] Optionally, the server 13 obtains the duration of the time period to which the operation execution time belongs; divides the duration by the number of multiple tasks to determine the value obtained as the working hours of the user performing each task in the time period to which the operation execution time belongs.

[0051] Optionally, the server 13 acquires the first acquired task in the plurality of tasks, acquires the length of the time period to which the operation execution time belongs, and determines that the length of time is the working hours of the user in executing the first acquired task in the time period to which the operation execution time belongs, and the working hours of other tasks in the plurality of tasks in the time period to which the operation execution time belongs is zero.

[0052] Optionally, the server 13 determines that there is one task in the time period to which the operation execution time belongs when one operation log corresponds to one time period of operation execution time, or a plurality of operation logs correspond to one time period of operation execution time and the task identification information of the plurality of operation logs is the same, and determines that there are a plurality of tasks in the time period to which the operation execution time belongs when a plurality of operation logs correspond to one time period of operation execution time and the task identification information of the plurality of operation logs is different.

[0053] Optionally, the server 13 determines that the operation corresponding to the plurality of tasks in the time period of operation execution time is an abnormal operation when there are a plurality of tasks in the time period of operation execution time, and sends an abnormal operation prompt information to the terminal device 11, and the terminal device 11 displays the abnormal operation prompt information and / or prohibits the user from performing operations on the work page after receiving the abnormal operation prompt information.

[0054] Optionally, the server 13 acquires the operation log from the preset message system 12.

[0055] Optionally, the server 13 listens to the preset message system 12 and acquires the operation log from the preset message system 12 when it is listened that the preset message system 12 receives the operation log.

[0056] Optionally, the server 13 feeds back the working hours of the user in executing the task to the device sending the working hours query request information when receiving the working hours query request information, wherein the device sending the working hours query request information to the server 13 can be the terminal device 11 or other devices, which is not limited herein.

[0057] The embodiment of the present application can accurately acquire the working hours of the user in executing each task by acquiring the valid operation of the user on the work page and acquiring the operation log of the user according to the valid operation, improve the accuracy of the acquired working hours, avoid the error caused by not according to the real working behavior of the user in the existing working hours statistical method, and provide valuable reference for objective and effective performance evaluation.

[0058] Embodiment 2

[0059] Referring to Figure 2 is a schematic diagram of the implementation process of the working hours acquisition method provided by the second embodiment of the present application, and the working hours acquisition method is applied to a terminal device. As shown in the figure, the working hours acquisition method can include the following steps:

[0060] In step S201, an operation performed by a user on a work page is acquired.

[0061] In the embodiments of the present application, the work page can be a task page, and a task to be performed is displayed on the work page. The user can perform the corresponding task by performing an operation on the work page. For example, the work page is a page on which content labeling is required, and a labeler can label the content to be labeled on the page. The operation performed on the work page can be any operation performed on the work page, such as a sliding operation, a clicking operation, and an input operation on the work page. The input operation can be an operation of inputting content on the work page.

[0062] Optionally, before the operation performed by the user on the work page is acquired, the method further includes:

[0063] The user enters the piecework system through a browser.

[0064] When the start instruction for any work page in the piecework system is acquired, the work page corresponding to the start instruction is displayed.

[0065] In the embodiments of the present application, any browser or a specified browser on the terminal device can be started, and the URL of the piecework system is input into the URL input box of the started browser. The login page of the corresponding piecework system is entered through the URL, the user inputs an account and a password on the login page, the terminal device acquires the input account and password, and sends the account and password to the background of the piecework system. The background of the piecework system verifies whether the account and password are correct. If both the account and the password are correct, the work interface of the piecework system is entered, and the work interface of the piecework system is displayed on the terminal device. The piecework system includes at least one work page, and the user can select a work page to be started from the displayed at least one work page. When the start instruction for any work page is acquired, the terminal device displays the work page corresponding to the start instruction. The piecework system can be a web online piecework system, and can be some business system. The user can complete some work tasks on the work page of the piecework system. For example, the labeling system is an online piecework system, and after the user logs in the labeling system through the web page, the user can perform different types of standard tasks such as text classification labeling, pattern classification labeling, and audio / video semantic recognition on the work page of the labeling system.

[0066] In step S202, if the operation performed on the work page is a preset operation, the operation log of the user is acquired.

[0067] The operation log includes, but is not limited to, user identity information, operation execution time belonging to a time period, and task identification information. The operation execution time belonging to a time period refers to a time period to which the operation execution time on the work page belongs. The task identification information refers to identification information of a task to which the work page belongs (the identification information is used to distinguish different tasks). The user identity information can refer to identification information of a user performing the operation on the work page (the identification information is used to distinguish different users). Specifically, the user identity information can be an account successfully logged into the piecework system, and one account corresponds to one user. The operation execution time can refer to the time of performing the operation on the work page. For example, if a click operation on the work page is detected at 8:15:10, the click operation execution time is 8:15:10.

[0068] Optionally, the specific content of the operation log can be set by the user according to actual needs. For example, the operation log can also include the type of the task, and the annotation information can be divided into different task types such as text, picture, voice, and video.

[0069] In the embodiment of the present application, the time can be divided into multiple time periods according to a fixed time interval. After the operation execution time is obtained, the time period to which the operation execution time belongs can be obtained. For example, the fixed time interval is 5 seconds, and 1 minute can be divided into (0, 5], (5, 10], (10, 15], (15, 20], (20, 25], (25, 30], (30, 35], (35, 40], (40, 45], (45, 50], (50, 55], (55, 60], and 12 time intervals. If the time of performing a click operation on the work page is 8:15:08, the time period to which the click operation execution time belongs is (5, 10] corresponding to 8:15. Each time period can be the smallest statistical unit of the operation performed by the user on the work page. Optionally, the user can set the fixed time interval according to actual needs, for example, the fixed time interval is set to 5 seconds or 2 seconds, which is not limited herein.

[0070] In the embodiment of the present application, the preset operation can refer to a pre-set operation. The preset operation can be one operation, or a combination of multiple operations (the multiple operations can include the same operation, or completely different operations), which is not limited herein. For example, the preset operation is a click operation, or a combination of a click operation and an input operation. By judging whether the operation performed on the work page is a preset operation, it can be judged whether the operation performed on the work page is a valid operation. If it is a valid operation, it is determined that there is a valid operation in the time period to which the operation performed on the work page belongs. At this time, the operation log of the valid operation can be recorded.

[0071] In step S203, the operation log is reported to a preset message system.

[0072] The preset message system provides the operation log for the server, and the server obtains the working hours of the user performing the task according to the operation log, where the task refers to a task corresponding to the task identification information.

[0073] Optionally, the operation log is reported to the preset message system, and the method comprises the following steps:

[0074] The operation execution time belongs to a time period is obtained from the operation log.

[0075] At the end time of the time period to which the operation execution time belongs, the operation log is reported to the preset message system.

[0076] The time period divided according to the fixed time interval comprises a start time and an end time, and the difference between the end time and the start time is the length of the time period. After recording the operation log, the terminal device can serialize the operation log in a preset format, and report the serialized operation log to the preset message system at the end time of the corresponding time period. The server can pull the operation log from the preset message system, and process the operation log in real time according to the time period to which the operation execution time in the operation log belongs. For example, the storm in the server pulls the operation log from the kafka, and uses the high-level abstraction Trident (to ensure that the data is processed exactly once, and has transaction characteristics) to process the operation log in real time according to the time interval.

[0077] By obtaining the operation performed by the user on the work page, the operation log of the user can be obtained when the operation is a valid operation, so that the server can accurately obtain the working hours of the user performing each task according to the operation log, avoid the error caused by not according to the real working behavior of the user in the existing working hour statistical method, and objectively and effectively provide valuable reference for performance evaluation.

[0078] Embodiment 3

[0079] Referring to Figure 3 is a schematic diagram of the implementation process of the working hour acquisition method provided in Embodiment 3 of the present application, and the working hour acquisition method is applied to a server. As shown in the figure, the working hour acquisition method can comprise the following steps:

[0080] In step S301, an operation log is obtained.

[0081] The operation log comprises but is not limited to user identity information, a time period to which an operation execution time belongs, and task identification information. The time period to which the operation execution time belongs refers to a time period to which the time of performing the operation on the work page belongs, and the task identification information refers to the identification information of the task to which the work page belongs.

[0082] Optionally, the operation log is obtained from a preset message system.

[0083] The operation log is obtained from a preset message system.

[0084] Optionally, the operation log is obtained from a preset message system.

[0085] The preset message system is listened to.

[0086] If the preset message system is found to receive the operation log, the operation log is obtained from the preset message system.

[0087] For example, the terminal device detects a click operation on a work page at 8:45:8 and the click operation is a preset operation, it is determined that the click operation execution time belongs to the time period (5, 10] corresponding to 8:45, and the operation log of the click operation is uploaded to a preset message system at 8:45:10. A server listens to the preset message system in real time, and once the operation log is found in the preset message system, the operation log is obtained from the preset message system.

[0088] In step S302, the operation execution time belongs to a time period.

[0089] In step S303, the operation execution time belongs to a time period.

[0090] The user is a user corresponding to the user identity information, and the task is a task corresponding to the task identity information.

[0091] In the embodiments of the present application, for the same user, one operation log is usually obtained in a time period. The operation log with the same task identity information and user identity information received successively can be accumulated in work hours, that is, multiple operations can be performed when one task is executed, and the multiple operations usually correspond to multiple operation logs. When the work hours of the above-mentioned one task are counted, the work hours corresponding to the multiple operation logs can be accumulated, and the accumulated value is the work hours of the above-mentioned one task, that is, the total time spent to complete the above-mentioned one task.

[0092] Optionally, the operation execution time belongs to a time period.

[0093] According to the operation execution time belongs to a time period, the work hours of the user in the operation execution time belongs to a time period.

[0094] detecting whether the work hours of the user performing the task exist before the operation log is acquired, wherein the task performed by the user is the same as the task corresponding to the task identification information in the operation log;

[0095] if the work hours of the user performing the task exist, then the work hours of the user performing the task in the time period to which the operation execution time belongs and the work hours of the user performing the task are accumulated, and the work hours of the user performing the task are updated as the accumulated value;

[0096] if the work hours of the user performing the task do not exist, then the work hours of the user performing the task in the time period to which the operation execution time belongs are determined as the work hours of the user performing the task.

[0097] For example, the server acquires an operation log A, which records that the user A performs the task A in the time period (5, 10] corresponding to eight fifteen. According to the time period (5, 10] in the operation log, the work hours (e.g. 5 seconds) of the user A performing the task A in the time period (5, 10] can be acquired. It is detected whether the work hours of the user A performing the task A exist before the operation log A is acquired. If the work hours exist (e.g. the work hours of the user A performing the task A that exist in the server are 30 minutes), then the work hours 30 minutes and the work hours 5 seconds are accumulated, and the work hours 30 minutes are updated as 30 minutes 5 seconds. If the work hours do not exist, it is determined that the user A performs the task A for the first time, and the work hours of the user A performing the task A are 5 seconds.

[0098] Optionally, the work hours of the user performing the task in the time period to which the operation execution time belongs are acquired according to the time period to which the operation execution time belongs, and the work hours of the user performing the task in the time period to which the operation execution time belongs are acquired according to the time period to which the operation execution time belongs.

[0099] It is detected whether multiple tasks exist in the time period to which the operation execution time belongs.

[0100] if multiple tasks do not exist in the time period to which the operation execution time belongs, then the length of the time period to which the operation execution time belongs is acquired, and the length is determined as the work hours of the user performing the task in the time period to which the operation execution time belongs;

[0101] if multiple tasks exist in the time period to which the operation execution time belongs, then the work hours of the user performing each task in the time period to which the operation execution time belongs are acquired according to the time period to which the operation execution time belongs and a preset strategy.

[0102] In the embodiments of the present application, for the same user, the terminal device usually obtains one operation log in a time period, but there can also be a case that the terminal device obtains multiple operation logs in a time period (for example, the user opens the piecework system through multiple browsers respectively, or the user opens multiple work pages in one browser and switches between the multiple work pages in a time period), and when the server obtains the work hours of the user performing the task in the time period according to the operation execution time belonging to the time period in the obtained operation log, the work hours of the user performing each task in the time period can be processed according to the number of tasks in the time period. The multiple tasks refer to multiple different tasks, that is, the task identification information of the multiple tasks is different. There is no multiple task in the time period refers to there is one task in the time period.

[0103] In the embodiments of the present application, when there are multiple tasks in a time period, the multiple tasks can be processed according to a preset rule, which includes but is not limited to a split strategy and a first acquisition strategy. The split strategy refers to that when there are multiple tasks in the same time period, the time length of the time period is divided into the multiple tasks, for example, the time length of the time period is 5 seconds, and there are five tasks in the time period, so the time spent by each task in the time period is 1 second. The first acquisition strategy can refer to that when there are multiple tasks in the same time period, the time length of the time period is taken as the work hours of the task acquired first by the server, and the work hours of the remaining tasks in the time period is zero. Optionally, when the terminal device obtains multiple operation logs in the same time period, the multiple operation logs can be sorted according to the operation execution time, and the multiple operation logs are sequentially reported to the preset message system according to the arrangement order (for example, the operation is performed first and the operation log is reported first) at the end time of the time period, so that the server can sequentially obtain the multiple operation logs.

[0104] Optionally, the obtaining of the work hours of the user performing each task in the time period according to the operation execution time belonging to the time period and the preset strategy includes:

[0105] obtaining the time length of the time period to which the operation execution time belongs;

[0106] dividing the time length by the number of the multiple tasks, and determining the obtained value as the work hours of the user performing each task in the time period to which the operation execution time belongs.

[0107] Optionally, the obtaining of the work hours of the user performing each task in the time period according to the operation execution time belonging to the time period and the preset strategy includes:

[0108] obtaining the task acquired first in the multiple tasks;

[0109] acquire a length of a time period to which the operation execution time belongs;

[0110] determine that the length is a working hour of the user performing the first acquired task in the time period to which the operation execution time belongs, and working hours of other tasks in the plurality of tasks performed in the time period to which the operation execution time belongs are zero.

[0111] Optionally, the detecting whether there are a plurality of tasks in the time period to which the operation execution time belongs includes:

[0112] if one operation execution time belongs to one operation log, or one operation execution time belongs to a plurality of operation logs and task identification information of the plurality of operation logs is same, it is determined that there is one task in the time period to which the operation execution time belongs;

[0113] if one operation execution time belongs to a plurality of operation logs and task identification information of the plurality of operation logs is different, it is determined that there are a plurality of tasks in the time period to which the operation execution time belongs.

[0114] Optionally, the embodiment of the present application further includes:

[0115] if there are a plurality of tasks in the time period to which the operation execution time belongs, it is determined that the operation corresponding to the plurality of tasks is an abnormal operation;

[0116] sending abnormal operation prompt information to a terminal device, the abnormal operation prompt information being used to instruct the terminal device to display the abnormal operation prompt information and / or to prohibit the user from performing an operation on the work page.

[0117] In the embodiment of the present application, the preset policy can further include a rejection policy, requiring the user to handle one task in the same time period, if the user handles a plurality of tasks in the same time period, the user will be regarded as an abnormal operation, the user identity information of the user will be counted into an abnormal operation list, and abnormal operation prompt information will be generated, the abnormal operation prompt information will be sent to the terminal device, after receiving the abnormal operation prompt information, the terminal device can display the abnormal operation prompt information, or can prohibit the user from continuing to perform an operation on the work page.

[0118] Optionally, after acquiring the working hour of the user performing the task, the embodiment of the present application further includes:

[0119] if the working hour query request information is received, the working hour of the user performing the task is fed back to the device sending the working hour query request information.

[0120] In the embodiment of the present application, after obtaining the work hours of the user performing the task, the server can save the work hours of the user performing the task (for example, after obtaining the work hours of the user performing the task by the server through Storm, the work hours can be saved to an external storage through the state of Trident, and the external storage includes but is not limited to a database or redis), and other devices can view the work hours of the user performing the task by querying the system, for example, inputting the user identity information and the task identity information in the query system, and obtaining the work hours of the user performing the task corresponding to the task identity information corresponding to the user identity information through the query system.

[0121] The server in the embodiment of the present application can accurately obtain the work hours of the user performing each task according to the operation log obtained according to the valid operation performed on the work page, avoid the error caused by not according to the real work behavior of the user in the existing work hour statistical method, and objectively and effectively provide valuable reference for performance evaluation.

[0122] Embodiment 4

[0123] Reference Figure 4 FIG. 4 is a structural schematic diagram of a work hour acquisition device provided in the fourth embodiment of the present application, and the work hour acquisition device can be integrated in a terminal device. For ease of illustration, only the part related to the embodiments of the present application is shown.

[0124] The work hour acquisition device includes:

[0125] The operation acquisition module 41 is configured to acquire the operation performed by the user on the work page.

[0126] The log acquisition module 42 is configured to acquire the operation log of the user if the operation performed on the work page is a preset operation, wherein the operation log includes user identity information, an operation execution time belonging time period, and task identity information, the operation execution time belonging time period refers to a time period to which the time of performing the operation on the work page belongs, and the task identity information refers to the identity information of the task to which the work page belongs.

[0127] The log reporting module 43 is configured to report the operation log to a preset message system, wherein the preset message system provides the operation log for a server, and the work hours of the user performing the task are obtained by the server according to the operation log, and the task refers to the task corresponding to the task identity information.

[0128] Optionally, the log reporting module 43 includes:

[0129] The acquisition unit is configured to acquire the operation execution time belonging time period from the operation log.

[0130] A reporting unit is configured to report the operation log to the preset message system at an end time of the time period to which the operation execution time belongs.

[0131] Optionally, the work hour obtaining apparatus further comprises:

[0132] A system entering module is configured to enter the piecework system through a browser.

[0133] A page displaying module is configured to display a work page corresponding to the starting instruction when the starting instruction for any work page in the piecework system is obtained.

[0134] Optionally, the work hour obtaining apparatus further comprises:

[0135] A request information sending module is configured to send work hour query request information to the server, wherein the work hour query request information is used to instruct the server to feed back the work hour of the user performing a task.

[0136] An abnormal operation processing module is configured to display the abnormal operation prompt information and / or prohibit the user from performing operation on the work page when the abnormal operation prompt information is received.

[0137] The work hour obtaining apparatus provided by the embodiment of the present application can be applied in the second method embodiment described above, and details are described in the second method embodiment described above, which will not be repeated here.

[0138] Embodiment 5

[0139] Referring to Figure 5 is a structural schematic diagram of the work hour obtaining apparatus provided by the fifth embodiment of the present application, and the work hour obtaining apparatus can be integrated in a server. For the convenience of description, only the parts related to the embodiments of the present application are shown.

[0140] An information obtaining module 51 is configured to obtain an operation log, wherein the operation log comprises user identity information, a time period to which an operation execution time belongs, and task identification information, the time period to which the operation execution time belongs refers to a time period to which the time of performing operation on the work page belongs, and the task identification information refers to identification information of a task to which the work page belongs;

[0141] A time period obtaining module 52 is configured to obtain the time period to which the operation execution time belongs from the operation log.

[0142] A work hour obtaining module 53 is configured to obtain the work hour of the user performing the task according to the time period to which the operation execution time belongs, wherein the user is a user corresponding to the user identity information, and the task is a task corresponding to the task identification information.

[0143] Optionally, the work hour obtaining module 53 comprises:

[0144] a work hour obtaining unit, configured to obtain work hours of the user in a time period to which the operation execution time belongs for performing a task in the time period to which the operation execution time belongs;

[0145] a work hour detecting unit, configured to detect whether work hours of the user for performing the task exist before the operation log is obtained, wherein the task performed by the user is the same as a task corresponding to the task identification information in the operation log;

[0146] a work hour accumulating unit, configured to, if the work hours of the user for performing the task exist, accumulate the work hours of the user in the time period to which the operation execution time belongs for performing the task and the work hours of the user for performing the task, and update the work hours of the user for performing the task as the accumulated value;

[0147] a work hour determining unit, configured to, if the work hours of the user for performing the task do not exist, determine the work hours of the user in the time period to which the operation execution time belongs for performing the task as the work hours of the user for performing the task.

[0148] Optionally, the work hour obtaining unit comprises:

[0149] a detecting subunit, configured to detect whether multiple tasks exist in the time period to which the operation execution time belongs;

[0150] a first obtaining subunit, configured to, if the multiple tasks do not exist in the time period to which the operation execution time belongs, obtain a time length of the time period to which the operation execution time belongs, and determine the time length as the work hours of the user in the time period to which the operation execution time belongs for performing the task;

[0151] a second obtaining subunit, configured to, if the multiple tasks exist in the time period to which the operation execution time belongs, obtain work hours of the user in the time period to which the operation execution time belongs for performing each of the tasks according to the time period to which the operation execution time belongs and a preset strategy.

[0152] Optionally, the second obtaining subunit is specifically configured to:

[0153] obtain a time length of the time period to which the operation execution time belongs;

[0154] divide the time length by a number of the multiple tasks, and determine a resultant value as the work hours of the user in the time period to which the operation execution time belongs for performing each of the tasks.

[0155] Optionally, the second obtaining subunit is specifically configured to:

[0156] obtain a task that is obtained first among the multiple tasks;

[0157] acquire a length of a time period to which the operation execution time belongs;

[0158] determine that the length is a work time of the user performing the first acquired task in the time period to which the operation execution time belongs, and work times of other tasks in the plurality of tasks performed in the time period to which the operation execution time belongs are zero.

[0159] Optionally, the detection subunit is specifically configured to:

[0160] if one operation execution time belongs to one operation log, or one operation execution time belongs to a plurality of operation logs and task identification information of the plurality of operation logs is same, it is determined that there is one task in the time period to which the operation execution time belongs;

[0161] if one operation execution time belongs to a plurality of operation logs and task identification information of the plurality of operation logs is different, it is determined that there are a plurality of tasks in the time period to which the operation execution time belongs.

[0162] Optionally, the work time acquisition device further comprises:

[0163] an abnormal operation determination module, configured to, if there are a plurality of tasks in the time period to which the operation execution time belongs, determine that operations corresponding to the plurality of tasks are abnormal operations;

[0164] an abnormal operation sending module, configured to send abnormal operation prompt information to a terminal device, the abnormal operation prompt information being used to instruct the terminal device to display the abnormal operation prompt information and / or prohibit the user from performing operations on the work page.

[0165] Optionally, the information acquisition module 51 is specifically configured to:

[0166] acquire the operation log from a preset message system.

[0167] Optionally, the information acquisition module 51 comprises:

[0168] a listening unit, configured to listen to the preset message system;

[0169] a log acquisition unit, configured to, if it is listened that the preset message system receives the operation log, acquire the operation log from the preset message system.

[0170] Optionally, the work time acquisition device further comprises:

[0171] a work time sending module, configured to, if a work time query request information is received, feed back work time of the user performing a task to a device sending the work time query request information.

[0172] The man-hour acquisition device provided by the embodiment of the application can be applied in the third method embodiment, and details are referred to the description of the third method embodiment, which will not be repeated here.

[0173] Embodiment 6

[0174] Referring to Figure 6 is a structural schematic diagram of a terminal device provided by the sixth embodiment of the application. As shown in the figure, the terminal device can include one or more processors 601 (only one is shown in the figure), one or more input devices 602 (only one is shown in the figure), one or more output devices 603 (only one is shown in the figure), and a memory 604. The above-mentioned processor 601, input device 602, output device 603 and memory 604 are connected through a bus 605. The memory 604 is used to store instructions, and the processor 601 is used to execute the instructions stored in the memory 604. Among them:

[0175] The processor 601 is configured to acquire an operation performed by a user on a work page, and acquire an operation log of the user if the operation performed on the work page is a preset operation, wherein the operation log includes user identity information, a time period to which an operation execution time belongs, task identification information, the time period to which the operation execution time belongs refers to a time period to which the time of performing the operation on the work page belongs, and the task identification information refers to identification information of a task to which the work page belongs; and report the operation log to a preset message system, wherein the preset message system provides the operation log for a server, and a man-hour of the user performing a task is acquired by the server according to the operation log, and the task refers to a task corresponding to the task identification information.

[0176] Optionally, the processor 601 is specifically configured to:

[0177] acquire the time period to which the operation execution time belongs from the operation log;

[0178] report the operation log to the preset message system at an end time of the time period to which the operation execution time belongs.

[0179] Optionally, the processor 601 is further configured to:

[0180] enter a piecework system through a browser;

[0181] display a work page corresponding to the start instruction of the piecework system when the start instruction of any work page in the piecework system is acquired.

[0182] Optionally, the processor 601 is further configured to:

[0183] The processor 601 is further configured to send work time query request information to the server, wherein the work time query request information is used to instruct the server to feed back work time of the user performing a task.

[0184] Optionally, the processor 601 is further configured to:

[0185] When the abnormal operation prompt information is received, the abnormal operation prompt information is displayed and / or the user is prohibited from performing operation on the work page.

[0186] It should be understood that, in the embodiments of the present application, the processor 601 can be a central processing unit (CPU), and the processor can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor.

[0187] The input device 602 can include a touchpad, a fingerprint acquisition sensor (used to acquire fingerprint information and direction information of a fingerprint of a user), a microphone, a data receiving interface, etc. The output device 603 can include a display (LCD, etc.), a loudspeaker, a data sending interface, etc.

[0188] The memory 604 can include read-only memory and random access memory, and provide instructions and data for the processor 601. A part of the memory 604 can also include non-volatile random access memory. For example, the memory 604 can also store device type information.

[0189] In specific implementations, the processor 601, the input device 602, the output device 603 and the memory 604 described in the embodiments of the present application can perform the implementation manners described in the embodiments of the work time acquisition method provided in Embodiment 2, and can also perform the implementation manners described in the work time acquisition apparatus in Embodiment 4, which will not be described here.

[0190] Embodiment 7

[0191] Referring to Figure 7Fig. 7 is a structural schematic diagram of a server provided in an embodiment of the present application. The server shown in the figure can include one or more processors 701 (only one is shown in the figure), one or more input devices 702 (only one is shown in the figure), one or more output devices 703 (only one is shown in the figure) and a memory 704. The above-mentioned processor 701, input device 702, output device 703 and memory 704 are connected through a bus 705. The memory 704 is used to store instructions, and the processor 701 is used to execute the instructions stored in the memory 704. Among them:

[0192] The processor 701 is configured to obtain an operation log, wherein the operation log includes user identity information, an operation execution time belonging time period, task identification information, the operation execution time belonging time period refers to a time period to which the time of performing an operation on the work page belongs, and the task identification information refers to identification information of a task to which the work page belongs; obtain the operation execution time belonging time period from the operation log; and obtain work hours of a user performing a task according to the operation execution time belonging time period, wherein the user is a user corresponding to the user identity information, and the task is a task corresponding to the task identification information.

[0193] Optionally, the processor 701 is specifically configured to:

[0194] obtain work hours of the user performing the task in the operation execution time belonging time period according to the operation execution time belonging time period;

[0195] detect whether work hours of the user performing the task exist before the operation log is obtained, wherein the task performed by the user is the same as a task corresponding to the task identification information in the operation log;

[0196] if the work hours of the user performing the task exist, add the work hours of the user performing the task in the operation execution time belonging time period and the work hours of the user performing the task, and update the work hours of the user performing the task as an accumulated value;

[0197] if the work hours of the user performing the task do not exist, determine the work hours of the user performing the task in the operation execution time belonging time period as the work hours of the user performing the task.

[0198] Optionally, the processor 701 is specifically configured to:

[0199] detect whether a plurality of tasks exist in the operation execution time belonging time period;

[0200] If there are multiple tasks in the time period to which the operation execution time belongs, the duration of the time period to which the operation execution time belongs is obtained, and the duration is determined as the working hours of the user in the time period to which the operation execution time belongs.

[0201] If there are multiple tasks in the time period to which the operation execution time belongs, the duration of the time period to which the operation execution time belongs is obtained, and the duration is determined as the working hours of the user in the time period to which the operation execution time belongs.

[0202] Optionally, the processor 701 is specifically configured to:

[0203] obtain the duration of the time period to which the operation execution time belongs;

[0204] divide the duration by the number of the multiple tasks, and determine the obtained value as the working hours of the user in the time period to which the operation execution time belongs.

[0205] Optionally, the processor 701 is specifically configured to:

[0206] obtain the first obtained task in the multiple tasks;

[0207] obtain the duration of the time period to which the operation execution time belongs;

[0208] determine the duration as the working hours of the user in the time period to which the operation execution time belongs to perform the first obtained task, and the working hours of other tasks in the multiple tasks in the time period to which the operation execution time belongs is zero.

[0209] Optionally, the processor 701 is specifically configured to:

[0210] If one operation execution time belongs to one operation log, or one operation execution time belongs to multiple operation logs and the task identification information of the multiple operation logs is same, it is determined that there is one task in the time period to which the operation execution time belongs.

[0211] If one operation execution time belongs to multiple operation logs and the task identification information of the multiple operation logs is different, it is determined that there are multiple tasks in the time period to which the operation execution time belongs.

[0212] Optionally, the processor 701 is further configured to:

[0213] If there are multiple tasks in the time period to which the operation execution time belongs, it is determined that the operation corresponding to the multiple tasks is an abnormal operation.

[0214] The terminal device is sent abnormal operation prompt information, the abnormal operation prompt information is used for indicating the terminal device to display the abnormal operation prompt information and / or prohibiting the user to perform operation on the work page.

[0215] Optionally, the processor 701 is specifically configured to:

[0216] The operation log is acquired from a preset message system.

[0217] Optionally, the processor 701 is specifically configured to:

[0218] The preset message system is listened to.

[0219] If the preset message system receives the operation log is listened to, the operation log is acquired from the preset message system.

[0220] Optionally, the processor 701 is further configured to:

[0221] If the work time query request information is received, the work time of the user performing the task is fed back to the device sending the work time query request information.

[0222] It should be understood that, in the embodiments of the present application, the processor 701 can be a CPU, and the processor can also be other general-purpose processors, DSPs, ASICs, FPGAs or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.

[0223] The input device 702 can include a touchpad, a fingerprint acquisition sensor (used for acquiring fingerprint information and direction information of the fingerprint of the user), a microphone, a data receiving interface, etc. The output device 703 can include a display (LCD, etc.), a loudspeaker, a data sending interface, etc.

[0224] The memory 704 can include read-only memory and random access memory, and provide instructions and data for the processor 701. A part of the memory 704 can also include non-volatile random access memory. For example, the memory 704 can also store device type information.

[0225] In a specific implementation, the processor 701, the input device 702, the output device 703 and the memory 704 described in the embodiments of the present application can execute the implementation manner described in the embodiments of the work time acquisition method provided in the third embodiment of the present application, and can also execute the implementation manner described in the work time acquisition device described in the fifth embodiment, which will not be described here.

[0226] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the above-mentioned division of each functional unit and module is exemplified, and in actual application, the above-mentioned functions can be completed by different functional units and modules according to needs, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment can be integrated in one processing unit, or each unit can be physically present separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be realized in the form of hardware or software function unit. In addition, the specific name of each functional unit and module is only for the convenience of mutual distinction, and does not limit the protection scope of the present application. The specific working process of the unit and module in the above system can refer to the corresponding process in the foregoing method embodiment, which will not be described here.

[0227] In the above embodiments, the description of each embodiment has its own emphasis, and the parts not described or recorded in detail in a certain embodiment can be referred to the related description of other embodiments.

[0228] Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be realized in electronic hardware or a combination of computer software and electronic hardware. Whether the functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.

[0229] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the above-described device embodiments are only schematic, for example, the division of the modules or units is only a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the shown or discussed mutual units can be indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.

[0230] The units described as separate components can or can not be physically separated, and the components shown as units can or can not be physical units, that is, they can be located in one place, or can be distributed on multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.

[0231] In addition, each of the functional units in the various embodiments of the present application can be integrated in one processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The integrated unit can be implemented in the form of hardware or in the form of a software functional unit.

[0232] The integrated module / unit, if implemented in the form of a software functional unit and sold or used as an independent product, can be stored in a computer readable storage medium. Based on such an understanding, all or part of the processes in the above-mentioned embodiment methods can also be completed by a computer program instructing related hardware, and the computer program can be stored in a computer readable storage medium. The computer program can implement the steps of each method embodiment described above when executed by a processor. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or some intermediate forms. The computer readable medium can include any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal, and software distribution medium, etc. It should be noted that the computer readable medium can include appropriate contents according to the requirements of legislation and patent practice in the jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.

[0233] The above-mentioned embodiment methods can also be completed by a computer program product, which, when running on a terminal device, causes the terminal device to execute the steps of the above-mentioned embodiment two, or when running on a server, causes the server to execute the steps of the above-mentioned embodiment three.

[0234] The above-mentioned embodiments are only used to illustrate the technical solutions of the present application, rather than limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement for part of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application.

Claims

1. A work hour acquisition method characterized by comprising: The man-hour acquisition method comprises: acquiring an operation performed by a user on a work page, the work page being a task page on which a task to be performed is displayed; if the operation performed on the work page is a preset operation, acquiring an operation log of the user, wherein the operation log comprises user identity information, a time period to which an operation execution time belongs, and task identification information, the time period to which the operation execution time belongs being a time period to which a time of performing the operation on the work page belongs, and the task identification information being identification information of a task to which the work page belongs; reporting the operation log to a preset message system, wherein the preset message system provides the operation log for a server, so that the server acquires the time period to which the operation execution time belongs from the operation log, and detects whether multiple tasks exist within the time period to which the operation execution time belongs; if no multiple tasks exist within the time period to which the operation execution time belongs, a length of the time period to which the operation execution time belongs is acquired, and the length is determined as man-hour of the user for performing a task within the time period to which the operation execution time belongs; if multiple tasks exist within the time period to which the operation execution time belongs, man-hour of the user for performing each task within the time period to which the operation execution time belongs is acquired according to the time period to which the operation execution time belongs and a preset strategy; and man-hour of the user for performing a task is acquired according to the man-hour of the user for performing a task within the time period to which the operation execution time belongs, wherein the user is a user corresponding to the user identity information, and the task is a task corresponding to the task identification information.

2. The work hour acquisition method according to claim 1, wherein The reporting of the operation log to the preset message system comprises: acquiring the time period to which the operation execution time belongs from the operation log; reporting the operation log to the preset message system at an end time of the time period to which the operation execution time belongs.

3. The work hour acquisition method according to claim 1, wherein Before the acquiring of the operation performed by the user on the work page, the method further comprises: entering a piecework system through a browser; when a start instruction for any work page in the piecework system is acquired, displaying the work page corresponding to the start instruction.

4. The work hour acquisition method according to Claim 1, wherein After the reporting of the operation log to the preset message system, the method further comprises: sending a man-hour query request information to the server, wherein the man-hour query request information is used to instruct the server to feed back the man-hour of the user for performing a task.

5. The work hour acquisition method according to any one of claims 1 to 4, characterized by, The man-hour acquisition method further comprises: when an abnormal operation prompt information is received, displaying the abnormal operation prompt information and / or prohibiting the user from performing an operation on the work page.

6. A work hour acquisition method characterized by comprising: The man-hour acquisition method comprises: acquiring an operation log, wherein the operation log comprises user identity information, a time period to which an operation execution time belongs, and task identification information, the time period to which the operation execution time belongs being a time period to which a time of performing an operation on a work page belongs, the work page being a task page on which a task to be performed is displayed, and the task identification information being identification information of a task to which the work page belongs; acquiring the time period to which the operation execution time belongs from the operation log; According to a time period to which the operation execution time belongs, obtain a work hour of a user performing a task, wherein the user is a user corresponding to the user identity information, and the task is a task corresponding to the task identity information; The operation execution time belongs to a time period, and the work hour of the user performing the task is obtained according to the operation execution time. Detect whether there are multiple tasks in the time period to which the operation execution time belongs; If there are no multiple tasks in the time period to which the operation execution time belongs, obtain a duration of the time period to which the operation execution time belongs, and determine the duration as the work hour of the user performing the task in the time period to which the operation execution time belongs; If there are multiple tasks in the time period to which the operation execution time belongs, obtain the work hour of the user performing each task in the time period to which the operation execution time belongs according to the time period to which the operation execution time belongs and a preset strategy; According to the work hour of the user performing the task in the time period to which the operation execution time belongs, obtain the work hour of the user performing the task.

7. The work hour acquisition method according to Claim 6, wherein The operation execution time belongs to a time period, and the work hour of the user performing the task is obtained according to the operation execution time. Detect whether there are multiple tasks in the time period to which the operation execution time belongs; If there are no multiple tasks in the time period to which the operation execution time belongs, obtain a duration of the time period to which the operation execution time belongs, and determine the duration as the work hour of the user performing the task in the time period to which the operation execution time belongs; If there are multiple tasks in the time period to which the operation execution time belongs, obtain the work hour of the user performing each task in the time period to which the operation execution time belongs according to the time period to which the operation execution time belongs and a preset strategy; 8. The work hour acquisition method according to claim 6, wherein According to the work hour of the user performing the task in the time period to which the operation execution time belongs, obtain the work hour of the user performing the task. The operation execution time belongs to a time period, and the work hour of the user performing the task is obtained according to the operation execution time. Detect whether there are multiple tasks in the time period to which the operation execution time belongs; 9. The work hour acquisition method according to claim 6, wherein If there are no multiple tasks in the time period to which the operation execution time belongs, obtain a duration of the time period to which the operation execution time belongs, and determine the duration as the work hour of the user performing the task in the time period to which the operation execution time belongs; If there are multiple tasks in the time period to which the operation execution time belongs, obtain the work hour of the user performing each task in the time period to which the operation execution time belongs according to the time period to which the operation execution time belongs and a preset strategy; According to the work hour of the user performing the task in the time period to which the operation execution time belongs, obtain the work hour of the user performing the task. The operation execution time belongs to a time period, and the work hour of the user performing the task is obtained according to the operation execution time.

10. The work hour acquisition method according to claim 6, wherein Detect whether there are multiple tasks in the time period to which the operation execution time belongs; If there are no multiple tasks in the time period to which the operation execution time belongs, obtain a duration of the time period to which the operation execution time belongs, and determine the duration as the work hour of the user performing the task in the time period to which the operation execution time belongs; If there are multiple tasks in the time period to which the operation execution time belongs, obtain the work hour of the user performing each task in the time period to which the operation execution time belongs according to the time period to which the operation execution time belongs and a preset strategy; If the operation execution time belongs to a time period corresponding to multiple operation logs and the task identification information of the multiple operation logs is different, it is determined that there are multiple tasks in the time period to which the operation execution time belongs.

11. The work hour acquisition method according to claim 6, wherein The work hour acquisition method further includes: If there are multiple tasks in the time period to which the operation execution time belongs, it is determined that the operation corresponding to the multiple tasks is an abnormal operation. The terminal device is sent abnormal operation prompt information, and the abnormal operation prompt information is used to instruct the terminal device to display the abnormal operation prompt information and / or prohibit the user from performing an operation on the work page.

12. The work hour acquisition method according to claim 6, wherein The operation log acquisition includes: The operation log is acquired from a preset message system.

13. The work hour acquisition method according to claim 12, wherein The operation log is acquired from the preset message system, which includes: The preset message system is listened to. If the operation log is received by the preset message system, the operation log is acquired from the preset message system.

14. The work hour acquisition method according to any one of claims 6 to 13, characterized by, After the work hours of the user performing a task are acquired, the following is further included: If the work hour query request information is received, the work hours of the user performing a task are fed back to the device sending the work hour query request information.

15. A work hour acquisition device characterized by comprising: The work hour acquisition device includes: An operation acquisition module is configured to acquire an operation performed by a user on a work page, wherein the work page is a task page, and the task page displays a task to be performed. A log acquisition module is configured to acquire an operation log of the user if the operation performed on the work page is a preset operation, wherein the operation log includes user identity identification information, an operation execution time belonging to a time period, and task identification information. A log reporting module is configured to report the operation log to a preset message system, wherein the preset message system provides the operation log to a server, so that the server acquires the operation execution time belonging to the time period from the operation log and detects whether there are multiple tasks in the time period to which the operation execution time belongs.

16. A work hour acquisition apparatus characterized by comprising: If there are no multiple tasks in the time period to which the operation execution time belongs, the duration of the time period is acquired, and the duration is determined as the work hours of the user performing a task in the time period to which the operation execution time belongs. If there are multiple tasks in the time period to which the operation execution time belongs, the work hours of the user performing each task in the time period to which the operation execution time belongs are acquired according to the time period to which the operation execution time belongs and a preset strategy. The work hours of the user performing a task are acquired according to the work hours of the user performing a task in the time period to which the operation execution time belongs. The work hour acquisition device includes: An information obtaining module is configured to obtain an operation log, wherein the operation log comprises user identity information, an operation execution time belonging time period, and task identification information; the operation execution time belonging time period refers to a time period to which an operation execution time on a work page belongs; the work page refers to a task page on which a task to be performed is displayed; and the task identification information refers to identification information of a task to which the work page belongs. A time period obtaining module is configured to obtain the operation execution time belonging time period from the operation log. A work time obtaining module is configured to obtain work time of a user performing a task according to the operation execution time belonging time period, wherein the user is a user corresponding to the user identity information, and the task is a task corresponding to the task identification information. The work time obtaining module is specifically configured to: detect whether there are multiple tasks in the operation execution time belonging time period; if there are no multiple tasks in the operation execution time belonging time period, obtain a time length of the operation execution time belonging time period, and determine the time length as work time of the user performing a task in the operation execution time belonging time period; if there are multiple tasks in the operation execution time belonging time period, obtain work time of the user performing each task in the operation execution time belonging time period according to the operation execution time belonging time period and a preset strategy; and obtain work time of the user performing a task according to work time of the user performing a task in the operation execution time belonging time period.

17. A terminal device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, The processor implements the steps of the work time obtaining method according to any one of claims 1 to 5 when executing the computer program.

18. A server comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, The processor implements the steps of the work time obtaining method according to any one of claims 6 to 14 when executing the computer program. 19.A computer readable storage medium, storing a computer program, characterized in that, The computer program is executed by the processor to implement the steps of the work time obtaining method according to any one of claims 1 to 5, or the computer program is executed by the processor to implement the steps of the work time obtaining method according to any one of claims 6 to 14.

Citation Information

Patent Citations

  • Work information processing method and device, computer equipment and storage medium

    CN108256811A

  • Data processing method, device and equipment based on online monitoring, and storage medium

    CN109246233A

  • System and method for totalizing working hour

    JP2010272063A