Attendance statistics method and device, computing equipment and computer readable storage medium

By detecting the attendance statistics trigger event in the target time zone in the attendance system, obtaining the clock data and determining the attendance group for statistics based on the corresponding relationship, the problem of unified attendance statistics of employees in different time zones is solved, computing efficiency and accuracy are improved, and employee experience is improved.

CN119887137APending Publication Date: 2025-04-25ZHONGKE YUNGU TECH
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411995367.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-04-25

AI Technical Summary

Technical Problem

The existing attendance statistics method cannot conduct unified attendance statistics for different employees in different time zones, and the calculation efficiency is low.

Method used

By detecting the attendance statistics trigger event in the target time zone, the clock-in data of all employees in the target time zone is obtained, and the matching attendance group is determined for statistics based on the correspondence between the preset time zone and the attendance group.

Benefits of technology

It realizes timely and accurate unified attendance statistics for employees in different time zones, avoids statistical errors caused by time zone differences, improves computing efficiency and accuracy, and improves employee user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119887137A_ABST
    Figure CN119887137A_ABST
Patent Text Reader

Abstract

The invention discloses an attendance statistics method and device, computing equipment and a computer readable storage medium, and the method comprises the steps: responding to a detected attendance statistics trigger event for a target time zone, and obtaining the card punching data of all employees in the target time zone in a day to be checked; according to a preset corresponding relationship between different time zones and different attendance groups, determining at least one attendance group matched with the target time zone; the attendance group comprises a country calendar, a post type, an attendance personnel list and shifts for describing attendance rules; and performing attendance statistics on all the employees according to the at least one attendance group and the card punching data to obtain attendance statistics results of all the employees in the to-be-checked day. Therefore, unified attendance statistics can be timely and accurately carried out on employees in different time zones, attendance statistics errors caused by time zone differences are avoided, the calculation efficiency and accuracy of the attendance situation are improved, and the use experience of the employees is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of attendance technology, and in particular to an attendance statistics method, device, computing equipment and computer-readable storage medium. Background Art

[0002] Traditional employee attendance records usually rely on employee clock-in and clock-out data, which will be collected in a database. When an employee clicks to view the employee attendance list view, the employee's attendance record status is calculated. However, in global business, subsidiaries in different time zones need to implement their own attendance systems, store their employees' clock-in data in different databases, and perform attendance statistics for their employees separately. Therefore, the existing attendance statistics method has the problem of being unable to perform unified attendance statistics for different employees in different time zones, and the calculation efficiency of attendance is low. Summary of the invention

[0003] The purpose of this application is to provide an attendance statistics method, device, computing equipment and computer-readable storage medium, which can realize timely and accurate unified attendance statistics for employees in different time zones, avoid attendance statistics errors caused by time zone differences, improve the calculation efficiency and accuracy of attendance, and improve the employee experience.

[0004] To achieve the above objectives:

[0005] In a first aspect, an embodiment of the present application provides an attendance statistics method, comprising:

[0006] In response to detecting an attendance statistics trigger event for a target time zone, obtaining clock-in data of all employees in the target time zone on the attendance day to be recorded;

[0007] According to the preset correspondence between different time zones and different attendance groups, at least one attendance group matching the target time zone is determined; the attendance group includes a national calendar, a job type, an attendance personnel list, and a shift for describing attendance rules;

[0008] Attendance statistics are performed on all the employees respectively according to the at least one attendance group and the punch-in data, so as to obtain attendance statistics results of all the employees respectively on the attendance days.

[0009] Optionally, before the detection of the attendance statistics triggering event for the target time zone, the method includes:

[0010] Taking the current local time zone as the timing reference time zone, determining the target trigger time point according to the current local time zone, the target time zone and the reference trigger time point;

[0011] If the current local time reaches the target trigger time point, an attendance statistics trigger event for the target time zone is generated.

[0012] Optionally, if the current local time reaches the target trigger time point, generating an attendance statistics trigger event for the target time zone includes:

[0013] Determine a scheduled task corresponding to the target trigger time point;

[0014] The timing task is executed to generate an attendance statistics trigger event for the target time zone when the current local time reaches the target trigger time point.

[0015] Optionally, performing attendance statistics for all employees respectively according to the at least one attendance group and the punch-in data to obtain attendance statistics results for all employees respectively on the attendance days to be recorded includes:

[0016] Determine a target attendance group from the at least one attendance group according to the country and job type corresponding to the target employee and the attendance personnel list of each attendance group; the target employee is any employee;

[0017] The attendance statistics result of the target employee on the day to be checked is determined according to the national calendar and shift of the target attendance group and the punch-in data of the target employee on the day to be checked.

[0018] Optionally, determining the attendance statistics result of the target employee on the day to be checked according to the national calendar and shift of the target attendance group and the punch-in data of the target employee on the day to be checked includes:

[0019] Determining the date type of the attendance day to be recorded according to the national calendar of the target attendance group;

[0020] When the date type of the attendance day to be recorded is a working day or a holiday, the attendance statistics result of the target employee on the attendance day to be recorded is determined according to the shift of the target attendance group and the punch-in data.

[0021] Optionally, the shift includes on-duty attendance time, off-duty attendance time, clock-in number rule and clock-in time rule; and determining the attendance statistics result of the target employee on the attendance day according to the shift of the target attendance group and the clock-in data includes:

[0022] Determine the punch-in status of the target employee on the attendance day according to the punch-in data, the punch-in frequency rule and the punch-in time rule;

[0023] When the punch-in status is a preset punch-in status, the working hours of the target employee on the attendance day are determined according to the on-duty attendance time, the off-duty attendance time and the punch-in data.

[0024] Optionally, the method further comprises:

[0025] According to the attendance statistics results of all employees on the attendance days, obtaining the attendance calendar of each employee within a preset time range; the preset time range includes at least one attendance day;

[0026] Output the attendance calendar to the corresponding employee.

[0027] In a second aspect, an embodiment of the present application provides an attendance statistics device, comprising:

[0028] An acquisition module, configured to, in response to detecting an attendance statistics trigger event for a target time zone, acquire the clock-in data of all employees in the target time zone on the attendance day to be recorded;

[0029] A processing module, used for determining at least one attendance group matching the target time zone according to the preset correspondence between different time zones and different attendance groups; the attendance group includes a national calendar, a job type, an attendance personnel list and a shift for describing attendance rules;

[0030] The statistical module is used to perform attendance statistics on all the employees according to the at least one attendance group and the punch-in data, and obtain the attendance statistical results of all the employees on the attendance days.

[0031] In a third aspect, an embodiment of the present application provides a computing device, including: a processor and a memory storing a computer program, and when the processor runs the computer program, the above-mentioned attendance statistics method is implemented.

[0032] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the above-mentioned attendance statistics method is implemented.

[0033] The attendance statistics method, device, computing device and computer-readable storage medium provided by the embodiment of the present application include: in response to the detection of the attendance statistics trigger event for the target time zone, obtaining the punch-in data of all employees in the target time zone on the day to be attended; determining at least one attendance group matching the target time zone according to the preset correspondence between different time zones and different attendance groups; the attendance group includes the national calendar, job type, attendance personnel list and the shift used to describe the attendance rules; performing attendance statistics for all employees respectively according to at least one attendance group and the punch-in data, and obtaining the attendance statistics results of all employees respectively on the day to be attended. In this way, the punch-in data of employees in the corresponding time zone is obtained through the attendance statistics trigger event of different time zones, and then the attendance statistics are performed according to the employee's punch-in data and the attendance group corresponding to the time zone, so that the unified attendance statistics of employees in different time zones can be realized in a timely and accurate manner, and the attendance statistics errors caused by time zone differences can be avoided, the calculation efficiency and accuracy of the attendance situation are improved, and the employee experience is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 A flow chart of an attendance statistics method provided by an embodiment of the present invention;

[0035] Figure 2 A schematic diagram of the structure of an attendance statistics device provided by an embodiment of the present invention;

[0036] Figure 3 A schematic diagram of the structure of a computing device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0037] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0038] It should be noted that, in this article, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element. In addition, components, features, and elements with the same name in different embodiments of the present application may have the same meaning or different meanings, and their specific meanings need to be determined by their explanation in the specific embodiment or further combined with the context of the specific embodiment.

[0039] It should be understood that, although the terms first, second, third, etc. may be used to describe various information in this article, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this article, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein can be interpreted as "at the time of..." or "when..." or "in response to determination". Furthermore, as used in this article, the singular forms "one", "one" and "the" are intended to also include plural forms, unless there is an opposite indication in the context. It should be further understood that the terms "comprising", "including" indicate that there are described features, steps, operations, elements, components, projects, kinds, and / or groups, but do not exclude the existence, occurrence or addition of one or more other features, steps, operations, elements, components, projects, kinds, and / or groups. The terms "or" and "and / or" used herein are interpreted as inclusive, or mean any one or any combination. Thus, “A, B, or C” or “A, B and / or C” means “any of the following: A; B; C; A and B; A and C; B and C; A, B, and C.” An exception to this definition will occur only when a combination of elements, functions, steps, or operations are inherently mutually exclusive in some manner.

[0040] It should be understood that, although the various steps in the flowchart in the embodiment of the present application are displayed in sequence according to the indication of the arrows, these steps are not necessarily performed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and it can be performed in other orders. Moreover, at least a portion of the steps in the figure may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and their execution order is not necessarily performed in sequence, but can be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

[0041] It should be noted that, in this article, step codes such as S101, S102, etc. are used for the purpose of expressing the corresponding content more clearly and concisely, and do not constitute a substantial limitation on the sequence. When implementing the step, those skilled in the art may execute S102 first and then S101, etc., but these should all be within the scope of protection of this application.

[0042] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0043] In the subsequent description, the suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present application, and have no specific meanings. Therefore, "module", "component" or "unit" can be used in a mixed manner.

[0044] See also Figure 1 , is an attendance statistics method provided in an embodiment of the present application. The attendance statistics method can be executed by an attendance statistics device provided in an embodiment of the present application. The attendance statistics device can be implemented in software and / or hardware, such as a computing device such as a computer or a server. The attendance statistics method provided in this embodiment includes:

[0045] Step S101: in response to detecting an attendance statistics triggering event for a target time zone, obtaining the clock-in data of all employees in the target time zone on the attendance days to be recorded.

[0046] Among them, the attendance statistics trigger event is used to trigger the acquisition of punch-in data. Punch-in data refers to the data generated by employees operating the attendance equipment or attendance application used to punch in and out. Specifically, it may include employee identification information, on-duty punch-in time, off-duty punch-in time, etc. Employee identification information may include employee name or employee code, etc. The target time zone can be any time zone on the earth, such as East 8, East 6, etc. The punch-in data of employees in different time zones on the day to be attended will be stored in the corresponding preset server or database. For example, the punch-in data of employees in East 8 can be stored in the first server, and the punch-in data of employees in East 7 can be stored in the second server, etc. The duration corresponding to the day to be attended is 24 hours. The date type of the day to be attended can be a working day or a holiday, and of course it can also be other types of dates.

[0047] In one embodiment, before the attendance statistics triggering event for the target time zone is detected, the process includes:

[0048] Using the current local time zone as the timing reference time zone, determining the target trigger time point according to the current local time zone, the target time zone and the reference trigger time point;

[0049] If the current local time reaches the target trigger time point, an attendance statistics trigger event for the target time zone is generated.

[0050] The benchmark trigger time point refers to the time point for generating the attendance statistics trigger event for the current local time zone. It is necessary to ensure that the employee has completed the clocking in on the attendance day. Usually, the time 23:59:59 can be used as the benchmark trigger time point.

[0051] It can be understood that since the computing device usually uses the standard time of the time zone of the location, that is, the local time zone, as its own system time, in order to be able to obtain the punch-in data of employees in different time zones accurately and regularly, the current local time zone can be used as the timing base time zone, and then the target trigger time point is determined based on the time zone difference between the current local time zone and the target time zone and the base trigger time point. For example, assuming that the current local time zone is East 8, the base trigger time point is 23:59:59. If the target time zone is East 9, then the time 22:59:59 can be used as the target trigger time point; if the target time zone is East 10, then the time 21:59:59 can be used as the target trigger time point, etc. When the current local time reaches the target trigger time point, it means that it is necessary to obtain the punch-in data of all employees in the target time zone on the day to be attended, and then generate an attendance statistics trigger event for the target time zone.

[0052] In one embodiment, if the current local time reaches the target trigger time point, an attendance statistics trigger event for the target time zone is generated, including:

[0053] Determine the scheduled task corresponding to the target trigger time point;

[0054] Execute a scheduled task to generate an attendance statistics trigger event for the target time zone when the current local time reaches the target trigger time point.

[0055] Among them, since it is necessary to obtain the punch-in data of employees in the corresponding time zone on the attendance day at different time points, in order to facilitate timely acquisition of the punch-in data of the corresponding time zone, the generation of the attendance statistics trigger event can be triggered by setting a scheduled task. Specifically, a scheduled task corresponding to the target trigger time point is generated for the target trigger time point, and the scheduled task is executed to generate the attendance statistics trigger event for the target time zone when the current local time reaches the target trigger time point.

[0056] Step S102: Determine at least one attendance group matching the target time zone according to the preset correspondence between different time zones and different attendance groups; the attendance group includes a national calendar, a job type, an attendance personnel list, and a shift for describing attendance rules.

[0057] Among them, due to the influence of geographical location, the attendance time of different employees in the same time zone may be different, and the corresponding punch-in time is also different. For example, assuming that employee A and employee B are located in the east and west of a country respectively, since the sunrise and sunset times of employee A's location are earlier than the sunrise and sunset times of employee B's location, the corresponding punch-in time and punch-out time of employee A will usually be earlier than the corresponding punch-in time and punch-out time of employee B. In addition, different employees in the same time zone may also be in different countries, and the corresponding punch-in time and / or working days of different employees in different countries may also be different. For example, the working days in a week in country a may be Monday to Friday, while the working days in a week in country b may be Tuesday to Saturday, etc.

[0058] Specifically, the correspondence between different preset time zones and different attendance groups is queried according to the target time zone, and at least one attendance group matching the target time zone is determined. Among them, the same time zone can be associated with one or more attendance groups, and each attendance group can include a national calendar, a job type, an attendance personnel list, and a shift for describing the attendance rules. The national calendar is used to indicate the number of days per year and per month in the country, as well as information such as working days and holiday settings, and can specifically include the country, year, date list, working day setting list (Monday to Sunday), etc. The job type can be used to indicate the specific job responsibilities of employees, such as R&D engineers, after-sales service engineers, etc., and the attendance personnel list is used to indicate the set of employees who need attendance. In order to facilitate unified management of attendance, in this embodiment, personnel belonging to the same country, the same time zone, and the same job type are added to the same attendance group. Among them, the shift can be used to indicate the date when normal work should be done, as well as the daily attendance start time and attendance end time and other clock-in rules, etc. The shift in each attendance group is unique, so as to ensure that the attendance time of each employee in the attendance group using the shift is consistent. In addition, shifts may also include shifts on working days and shifts on non-working days (ie holidays), etc.

[0059] Step S103: Perform attendance statistics for all employees according to at least one attendance group and the punch-in data, and obtain attendance statistics results for all employees on the days to be attended.

[0060] Specifically, after determining at least one attendance group matching the target time zone, attendance statistics can be performed for all employees in the target time zone according to the national calendar, job type, attendance personnel list, and shifts used to describe attendance rules contained in the attendance group, thereby obtaining attendance statistics results for all employees on the days to be attended. The attendance statistics results may include the punch-in status and working hours of the employees on the days to be attended, and may also include information such as overtime hours.

[0061] In one embodiment, attendance statistics are performed on all employees according to at least one attendance group and punch-in data to obtain attendance statistics results of all employees on the days to be attended, including:

[0062] According to the country and job type corresponding to the target employee and the attendance personnel list of each attendance group, determine the target attendance group from at least one attendance group; the target employee is any employee;

[0063] Determine the attendance statistics of the target employee on the day to be attended based on the national calendar and shift of the target attendance group and the punch-in data of the target employee on the day to be attended.

[0064] Among them, the target employee can be any employee in the target time zone, and the country and job type corresponding to the target employee can be included in the punch-in data of the target employee. Since the target time zone may include multiple countries, and different countries may have the same job type, in order to accurately obtain the target attendance group corresponding to the target employee, at least one candidate attendance group can be determined from at least one attendance group according to the country and job type corresponding to the target employee, that is, the attendance group matching the country and job type corresponding to the target employee can be determined, and then according to the attendance personnel list of each candidate attendance group, the candidate attendance group containing the target employee in the attendance personnel list is selected as the target attendance group. After determining the target attendance group where the target employee belongs, the target employee can be counted on the day to be attended according to the national calendar and shift of the target attendance group and the punch-in data of the target employee on the day to be attended, so as to determine the attendance statistics result of the target employee on the day to be attended. It should be noted that the national calendar can include national information, that is, the country corresponding to the national calendar can be known according to the national calendar.

[0065] In one embodiment, the attendance statistics of the target employee on the day to be attended are determined according to the national calendar and shift of the target attendance group and the punch-in data of the target employee on the day to be attended, including:

[0066] Determine the date type of the attendance day to be recorded according to the national calendar of the target attendance group;

[0067] When the date type of the attendance day to be recorded is a working day or a compensatory holiday, the attendance statistics result of the target employee on the attendance day to be recorded is determined according to the shift and punch-in data of the target attendance group.

[0068] According to the national calendar of the target attendance group, the date type of the attendance day to be recorded relative to the target employee can be determined, such as whether the date type of the attendance day to be recorded is a working day, a compensatory holiday, or a rest day. When the date type of the attendance day to be recorded is a working day or a compensatory holiday, it means that the target employee needs to be recorded on the attendance day to be recorded. Then, according to the shift of the target attendance group and the punch-in data of the target employee on the attendance day to be recorded, the attendance statistics result of the target employee on the attendance day to be recorded can be determined. The attendance statistics result can include the punch-in status and working hours. The punch-in status can be used to indicate whether the employee punches in normally, is absent, leaves early, or is late, etc. The working hours are used to indicate the number of working hours of the employee counted on the attendance day to be recorded. When the punch-in status of the target employee is absent, the corresponding working hours can be recorded as zero, etc. When the date type of the attendance day to be recorded is a holiday, the target employee may not be recorded on the attendance day.

[0069] In one embodiment, the shift includes the on-duty attendance time, the off-duty attendance time, the clock-in number rule, and the clock-in time rule; according to the shift and clock-in data of the target attendance group, the attendance statistics of the target employee on the attendance day to be determined include:

[0070] Determine the punch-in status of the target employee on the day to be recorded based on the punch-in data, punch-in frequency rules, and punch-in time rules;

[0071] When the clock-in status is the preset clock-in status, the working hours of the target employee on the attendance day are determined based on the start attendance time, the end attendance time and the clock-in data.

[0072] The punch-in data may include information such as the punch-in time of the target employee and / or the punch-in time of leaving work, that is, the punch-in data includes not only the punch-in times of the target employee on the attendance day, but also the corresponding specific punch-in time. The punch-in times rule is used to indicate the conditions that the punch-in times need to meet. For example, when the punch-in times need to meet the requirement of punching in once, if there is a punch-in record, it is recorded as a successful punch-in; and when the punch-in times need to meet the requirement of punching in multiple times, the punch-in records need to be multiple times accordingly. For example, when punching in twice, if there is a pair of punch-in records for coming on and punch-in records for leaving work, it is recorded as a successful punch-in, etc. At the same time, the punch-in time rule may include the normal coming on punch-in rule, the late coming punch-in rule, the early leaving punch-in rule, etc. The coming on punch-in rule can be used to specify the latest time for clocking in and the earliest time for clocking out, the late coming punch-in rule can be used to specify how long the coming on punch-in time is later than the coming attendance time to be recorded as late, and the early leaving punch-in rule can be used to specify how long the leaving get off work punch-in time is earlier than the leaving attendance time to be recorded as early leaving, etc. Therefore, the punching status of the target employee on the day to be attended can be determined based on the punching data, the punching frequency rule and the punching time rule. In addition, when the punching status is the preset punching status, since the attendance time on duty and the attendance time off duty determine the statistical range of the attendance time, the working hours of the target employee on the day to be attended can be determined based on the attendance time on duty, the attendance time off duty and the punching data. The preset punching status can be any of the following: normal punching, early leaving, late. For example, when the punching status is early leaving, the working hours of the target employee on the day to be attended can be determined based on the attendance time on duty and the punching time off duty of the target employee. In addition, when the preset punching status is early leaving or late arrival, the attendance statistics of the target employee on the day to be attended can also include the length of early leaving and the length of late arrival, etc.

[0073] In this embodiment, the attendance statistics are explained by taking the case that there is only one on-duty attendance time and one off-duty attendance time on the attendance day. It can be understood that based on the punch-in data of the target employee on the attendance day, the on-duty punch-in time and off-duty punch-in time of the target employee on the attendance day can be known, and based on the shift of the target employee on the attendance day, the attendance start time and attendance end time of the target employee on the attendance day can be known. Among them, if the target employee's clock-in time on the day to be attended is earlier than the clock-in time, the clock-in time can be used as the corresponding work start time of the target employee on the day to be attended; if the target employee's clock-in time on the day to be attended is later than the clock-in time, the clock-in time can be used as the corresponding work start time of the target employee on the day to be attended; if the target employee's clock-in time off on the day to be attended is earlier than the clock-out time, the clock-in time off can be used as the corresponding work end time of the target employee on the day to be attended; if the target employee's clock-in time off on the day to be attended is later than the clock-out time, the clock-out time off can be used as the corresponding work end time of the target employee on the day to be attended, and then the working hours can be determined based on the work start time and the work end time. In this way, the accurate statistics of the attendance statistics of the target employee on the day to be attended can be achieved, further improving the calculation efficiency and accuracy of the attendance situation.

[0074] In summary, in the attendance statistics method provided by the above embodiment, the punch-in data of employees in the corresponding time zone is obtained through the attendance statistics trigger events in different time zones, and then the attendance statistics are performed according to the employees' punch-in data and the attendance group corresponding to the time zone. This can achieve timely and accurate unified attendance statistics for employees in different time zones, avoid attendance statistics errors caused by time zone differences, improve the calculation efficiency and accuracy of the attendance situation, and improve the employee usage experience.

[0075] In one embodiment, the method further comprises:

[0076] According to the attendance statistics of all employees on the days to be attended, obtain the attendance calendar of each employee within the preset time range; the preset time range includes at least one attendance day;

[0077] Output attendance calendar to corresponding employees.

[0078] Among them, after obtaining the attendance statistics results of all employees in each day to be attended within the preset time range, the attendance calendar of each employee within the preset time range can be obtained according to the attendance statistics results of all employees in each day to be attended within the preset time range, and the attendance calendar can be output to the corresponding employee. Here, outputting the attendance calendar to the corresponding employee can be output to the corresponding employee after receiving the employee's request to view the attendance calendar, or it can be output to the corresponding employee at a preset time point, such as outputting the employee's attendance calendar of the previous month on the first day of each month. In addition, the attendance calendar of each employee is only displayed to the employee to improve the privacy of information. In this way, by outputting the attendance calendar to the employee, the viewing and management of the attendance data is more convenient and transparent, which improves the user experience.

[0079] Based on the same inventive concept as the above-mentioned embodiment, the present application embodiment provides an attendance statistics device, such as Figure 2 As shown, including:

[0080] An acquisition module, for acquiring the clock-in data of all employees in the target time zone on the attendance day in response to detecting an attendance statistics trigger event for the target time zone;

[0081] A processing module, used for determining at least one attendance group matching the target time zone according to the preset correspondence between different time zones and different attendance groups; the attendance group includes a national calendar, a job type, a list of attendance personnel, and a shift for describing attendance rules;

[0082] The statistics module is used to perform attendance statistics on all employees according to at least one attendance group and punch-in data, and obtain attendance statistics results of all employees on the days to be attended.

[0083] In one embodiment, the device further comprises a timing module, configured to:

[0084] Using the current local time zone as the timing reference time zone, determining the target trigger time point according to the current local time zone, the target time zone and the reference trigger time point;

[0085] If the current local time reaches the target trigger time point, an attendance statistics trigger event for the target time zone is generated.

[0086] In one implementation, the timing module is specifically configured to:

[0087] Determine the scheduled task corresponding to the target trigger time point;

[0088] Execute a scheduled task to generate an attendance statistics trigger event for the target time zone when the current local time reaches the target trigger time point.

[0089] In one embodiment, the statistics module is specifically used for:

[0090] According to the country and job type corresponding to the target employee and the attendance personnel list of each attendance group, a target attendance group is determined from at least one attendance group; the target employee is any employee;

[0091] Determine the attendance statistics of the target employee on the day to be attended based on the national calendar and shift of the target attendance group and the punch-in data of the target employee on the day to be attended.

[0092] In one embodiment, the statistics module is specifically used for:

[0093] Determine the date type of the attendance day to be recorded according to the national calendar of the target attendance group;

[0094] When the date type of the attendance day to be recorded is a working day or a compensatory holiday, the attendance statistics result of the target employee on the attendance day to be recorded is determined according to the shift and punch-in data of the target attendance group.

[0095] In one embodiment, the shift includes the attendance time for work, the attendance time for leaving work, the clock-in number rule and the clock-in time rule; the statistics module is specifically used for:

[0096] Determine the punch-in status of the target employee on the day to be recorded based on the punch-in data, punch-in frequency rules, and punch-in time rules;

[0097] When the clock-in status is the preset clock-in status, the working hours of the target employee on the attendance day are determined based on the start attendance time, the end attendance time and the clock-in data.

[0098] In one embodiment, the device further comprises an output module;

[0099] The acquisition module is also used to: obtain the attendance calendar of each employee within a preset time range according to the attendance statistics results of all employees on the days to be attended; the preset time range includes at least one attendance day;

[0100] The output module is used to output the attendance calendar to the corresponding employees.

[0101] In summary, in the attendance statistics device provided by the above embodiments, the punch-in data of employees in the corresponding time zone is obtained through the attendance statistics trigger events in different time zones, and then the attendance statistics are performed according to the employees' punch-in data and the attendance group corresponding to the time zone. This can achieve timely and accurate unified attendance statistics for employees in different time zones, avoid attendance statistics errors caused by time zone differences, improve the calculation efficiency and accuracy of the attendance situation, and improve the employee usage experience.

[0102] Based on the same inventive concept as the above embodiments, an embodiment of the present invention provides a computing device, such as Figure 3 As shown, the computing device includes: a processor 310 and a memory 311 storing a computer program; wherein, Figure 3 The processor 310 shown in the figure is not used to indicate that the number of the processor 310 is one, but is only used to indicate the positional relationship of the processor 310 relative to other devices. In actual applications, the number of the processor 310 may be one or more; similarly, Figure 3 The memory 311 shown in the figure has the same meaning, that is, it is only used to refer to the position relationship of the memory 311 relative to other devices. In practical applications, the number of memories 311 can be one or more. When the processor 310 runs the computer program, the attendance statistics method described above is implemented.

[0103] The computing device may also include: at least one network interface 312. The various components in the computing device are coupled together via a bus system 313. It is understood that the bus system 313 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 313 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, the bus system 313 is not used in the example above. Figure 3 Various buses are labeled as bus system 313.

[0104] The memory 311 may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories. The nonvolatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM); the magnetic surface memory may be a disk memory or a tape memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), and direct RAM bus random access memory (DRRAM, Direct Rambus Random Access Memory).The memory 311 described in the embodiments of the present invention is intended to include but is not limited to these and any other suitable types of memories.

[0105] The memory 311 in the embodiment of the present invention is used to store various types of data to support the operation of the computing device. Examples of these data include: any computer program used to operate on the computing device, such as an operating system and an application; contact data; phone book data; messages; pictures; videos, etc. Among them, the operating system includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application program may include various applications, such as a media player (Media Player), a browser (Browser), etc., which are used to implement various application services. Here, the program that implements the method of the embodiment of the present invention may be included in the application program.

[0106] Based on the same inventive concept as the above-mentioned embodiment, this embodiment further provides a computer storage medium, in which a computer program is stored. The computer storage medium may be a ferromagnetic random access memory (FRAM), a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM) or the like; it may also be various devices including one or any combination of the above-mentioned memories, such as a mobile phone, a computer, a tablet device, a personal digital assistant, etc. When the computer program stored in the computer storage medium is executed by the processor, the attendance statistics method described above is implemented. For the specific steps implemented when the computer program is executed by the processor, please refer to Figure 1 The description of the illustrated embodiment will not be repeated here.

[0107] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0108] In this document, the terms "comprises," "comprising," or any other variations thereof, are intended to cover a non-exclusive inclusion of elements other than those listed and may also include additional elements not expressly listed.

[0109] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A method for attendance statistics, characterized in that: include: In response to detecting an attendance statistics trigger event for a target time zone, obtaining clock-in data of all employees in the target time zone on the attendance day to be recorded; According to the preset correspondence between different time zones and different attendance groups, at least one attendance group matching the target time zone is determined; the attendance group includes a national calendar, a job type, an attendance personnel list, and a shift for describing attendance rules; Attendance statistics are performed on all the employees respectively according to the at least one attendance group and the punch-in data, so as to obtain attendance statistics results of all the employees respectively on the attendance days.

2. The method according to claim 1, characterized in that Before the detection of the attendance statistics triggering event for the target time zone, the method includes: Taking the current local time zone as the timing reference time zone, determining the target trigger time point according to the current local time zone, the target time zone and the reference trigger time point; If the current local time reaches the target trigger time point, an attendance statistics trigger event for the target time zone is generated.

3. The method according to claim 2, characterized in that If the current local time reaches the target trigger time point, an attendance statistics trigger event for the target time zone is generated, including: Determine a scheduled task corresponding to the target trigger time point; The timing task is executed to generate an attendance statistics trigger event for the target time zone when the current local time reaches the target trigger time point.

4. The method according to claim 1, characterized in that: The performing attendance statistics for all employees respectively according to the at least one attendance group and the punch-in data to obtain attendance statistics results for all employees respectively on the attendance days to be recorded includes: Determine a target attendance group from the at least one attendance group according to the country and job type corresponding to the target employee and the attendance personnel list of each attendance group; the target employee is any employee; The attendance statistics result of the target employee on the day to be checked is determined according to the national calendar and shift of the target attendance group and the punch-in data of the target employee on the day to be checked.

5. The method according to claim 4, characterized in that Determining the attendance statistics result of the target employee on the day to be checked according to the national calendar and shift of the target attendance group and the punch-in data of the target employee on the day to be checked, includes: Determining the date type of the attendance day to be recorded according to the national calendar of the target attendance group; When the date type of the attendance day to be recorded is a working day or a holiday, the attendance statistics result of the target employee on the attendance day to be recorded is determined according to the shift of the target attendance group and the punch-in data.

6. The method according to claim 5, characterized in that The shift includes on-duty attendance time, off-duty attendance time, punch-in number rule and punch-in time rule; the attendance statistics result of the target employee on the attendance day to be determined according to the shift of the target attendance group and the punch-in data includes: Determine the punch-in status of the target employee on the attendance day according to the punch-in data, the punch-in frequency rule and the punch-in time rule; When the punch-in status is a preset punch-in status, the working hours of the target employee on the attendance day are determined according to the on-duty attendance time, the off-duty attendance time and the punch-in data.

7. The method according to any one of claims 1 to 6, characterized in that The method further comprises: According to the attendance statistics results of all employees on the attendance days, obtaining the attendance calendar of each employee within a preset time range; the preset time range includes at least one attendance day; Output the attendance calendar to the corresponding employee.

8. An attendance statistics device, characterized in that: include: An acquisition module, configured to, in response to detecting an attendance statistics trigger event for a target time zone, acquire the clock-in data of all employees in the target time zone on the attendance day to be recorded; A processing module, used for determining at least one attendance group matching the target time zone according to the preset correspondence between different time zones and different attendance groups; the attendance group includes a national calendar, a job type, an attendance personnel list and a shift for describing attendance rules; The statistical module is used to perform attendance statistics on all the employees according to the at least one attendance group and the punch-in data, and obtain the attendance statistical results of all the employees on the attendance days.

9. A computing device, characterized in that include: A processor and a memory storing a computer program, wherein when the processor runs the computer program, the attendance statistics method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, characterized in that: A computer program is stored, and when the computer program is executed by a processor, the attendance statistics method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Attendance method, attendance apparatus and attendance system

    CN106940903A

  • Attendance check method and server

    CN107871227A

  • Attendance checking method and attendance checking system for non-fixed shifts

    CN114333095A

  • Diversified attendance checking method, terminal and storage medium

    CN117057768A