Method, apparatus, processor and storage medium for attendance analysis
The access control attendance system records the employee's entry and exit time and analyzes it based on the preset time nodes and the number of records. The problem of unrefined attendance analysis in the existing technology is solved, and more accurate attendance results and data management is achieved.
Patent Information
- Application Number
- CN202211478157.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-23
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2042-11-23
AI Technical Summary
The existing attendance analysis results are not refined enough to accurately judge employees' attendance behavior, and it is easy to forget to bring a work card or replace clocking in.
The access control attendance system records the time when employees enter and exit the office location, and use the preset time nodes and the number of access control attendance records to analyze the attendance results of employees, including normal work card, late arrival, early departure, missed clocking in.
It improves the authenticity of attendance data and the accuracy of analysis results, can accurately analyze employees' attendance behavior, avoiding the phenomenon of forgetting to bring a work card or replacing clocking in, and realizing the refined management of attendance data.
Smart Images

Figure CN115810223B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and particularly to a method, device, processor and storage medium for attendance analysis. Background Art
[0002] Employee attendance is the basic work of enterprise organizational discipline management. Enterprise managers can understand the human resources situation such as employees' going to and leaving work at any time based on attendance data. At present, most enterprises adopt on-site work card swiping or mobile card swiping on the mobile phone as the attendance card swiping method. The attendance analysis method usually judges whether a user has lateness or early leaving behavior based on the first attendance record and the last attendance record of the user every day. However, the actual application scenarios of users are relatively complex, and the existing attendance analysis results are not refined enough. Summary of the Invention
[0003] The purpose of the embodiments of the present invention is to provide a method, device, processor and storage medium for attendance analysis to solve the problem that the existing attendance analysis results are not refined enough.
[0004] To achieve the above purpose, the first aspect of the embodiments of the present invention provides a method for attendance analysis, which is applied to an access control attendance system and includes:
[0005] Obtain the access control attendance record of a user;
[0006] Analyze the access control attendance record according to the access control attendance record, a preset time node and the number of access control attendance records to obtain the attendance analysis result of the user.
[0007] In the embodiments of the present invention, the preset time node includes a first preset time node, where the first preset time node is the work start time node of the first shift; analyzing the access control attendance record according to the access control attendance record, the preset time node and the number of access control attendance records to obtain the attendance analysis result of the user includes: judging whether there is an access control attendance record within a first preset time period before the first preset time node; when it is determined that there is an access control attendance record within the first preset time period, determining a first number of the access control attendance records within the first preset time period; judging whether the first number is odd; when it is determined that the first number is odd, determining that the attendance analysis result of the user corresponding to the first shift is that the work card is normal.
[0008] In an embodiment of the present invention, the preset time node further includes a second preset time node, where the second preset time node is the off-duty time node of the first shift; the method further includes: when it is determined that there is no access control attendance record within the first preset time period or the first quantity is not odd, determining whether there is an access control attendance record between the first preset time node and the second preset time node; when it is determined that there is an access control attendance record between the first preset time node and the second preset time node, determining that the attendance analysis result corresponding to the user in the first shift is an abnormal work card, where the abnormal work card includes being late.
[0009] In an embodiment of the present invention, the preset time node further includes a third preset time node, where the third preset time node is the off-duty time node of the second shift, and the second shift is after the first shift; the method further includes: when it is determined that there is no access control attendance record between the first preset time node and the second preset time node, determining the second quantity of the access control attendance record between the second preset time node and the third preset time node; determining whether the second quantity is odd; when it is determined that the second quantity is odd, determining that the attendance analysis result corresponding to the user in the first shift is no work card record.
[0010] In an embodiment of the present invention, the method further includes: when it is determined that the second quantity is not odd, determining that the attendance analysis result corresponding to the user in the first shift is a missed work card punch.
[0011] In an embodiment of the present invention, the method further includes: determining the work card time point corresponding to the user in the first shift; determining whether there is an access control attendance record between the work card time point and the second preset time node; when it is determined that there is an access control attendance record between the work card time point and the second preset time node, determining the third quantity of the access control attendance record between the work card time point and the second preset time node; when it is determined that the third quantity is odd, determining that the attendance analysis result corresponding to the user in the first shift is an abnormal off-duty card, where the abnormal off-duty card includes leaving early; when it is determined that there is no access control attendance record between the work card time point and the second preset time node or the third quantity is not odd, determining that the attendance analysis result corresponding to the user in the first shift is a normal off-duty card.
[0012] In an embodiment of the present invention, the preset time node further includes a fourth preset time node, where the fourth preset time node is the on-duty time node of the second shift; the method further includes: when it is determined that the attendance analysis result corresponding to the user in the first shift is a normal work card or an abnormal work card, determining the fourth quantity of the access control attendance record between the second preset time node and the fourth preset time node; determining whether the fourth quantity is odd; when it is determined that the fourth quantity is not odd, determining that the attendance analysis result corresponding to the user in the second shift is a normal work card.
[0013] In an embodiment of the present invention, the method further includes: when it is determined that the fourth quantity is odd, determining whether there is an access control attendance record between the fourth preset time node and the third preset time node; when it is determined that there is an access control attendance record between the fourth preset time node and the third preset time node, determining that the attendance analysis result corresponding to the user in the second shift is an abnormal work entry card.
[0014] In an embodiment of the present invention, the method further includes: when it is determined that there is no access control attendance record between the fourth preset time node and the third preset time node, determining that the attendance analysis result corresponding to the user in the second shift is no work entry card record.
[0015] In an embodiment of the present invention, the method further includes: when it is determined that the attendance analysis result corresponding to the user in the first shift is an abnormal work exit card or no work entry card record, determining whether there is an access control attendance record between the second preset time node and the third preset time node; when it is determined that there is no access control attendance record between the second preset time node and the third preset time node, determining that the attendance analysis result corresponding to the user in the second shift is no work entry card record.
[0016] In an embodiment of the present invention, the method further includes: when it is determined that there is an access control attendance record between the second preset time node and the third preset time node, determining whether the fourth quantity is odd; when it is determined that the fourth quantity is odd, determining that the attendance analysis result corresponding to the user in the second shift is a normal work entry card.
[0017] In an embodiment of the present invention, the method further includes: when it is determined that the fourth quantity is not odd, determining whether there is an access control attendance record between the fourth preset time node and the third preset time node; when it is determined that there is an access control attendance record between the fourth preset time node and the third preset time node, determining that the attendance analysis result corresponding to the user in the second shift is an abnormal work entry card; when it is determined that there is no access control attendance record between the fourth preset time node and the third preset time node, determining that the attendance analysis result corresponding to the user in the second shift is no work entry card record.
[0018] In an embodiment of the present invention, the method further includes: determining the work entry card time point corresponding to the user in the second shift; determining the fifth quantity of the access control attendance records between the work entry card time point and the third preset time node; determining whether the fifth quantity is odd; when it is determined that the fifth quantity is odd, determining that the attendance analysis result corresponding to the user in the second shift is an abnormal work exit card.
[0019] In an embodiment of the present invention, the method further includes: when it is determined that the fifth quantity is not an odd number, determining a sixth quantity of access control attendance records within a second preset time period after a third preset time node; determining whether the sixth quantity is zero; when it is determined that the sixth quantity is not zero, determining that the attendance analysis result corresponding to the user in the second shift is that the off-duty card is normal; when it is determined that the sixth quantity is zero, determining that the attendance analysis result corresponding to the user in the second shift is that the off-duty card is missed.
[0020] In an embodiment of the present invention, the method further includes: determining the effective working hours of the user according to the attendance analysis result.
[0021] In an embodiment of the present invention, determining the effective working hours of the user according to the attendance analysis result includes: determining the on-duty card time point corresponding to the user in a preset shift and the off-duty card time point corresponding to the preset shift; determining that there are access control attendance records with close and paired times among the access control attendance records corresponding to the preset shift except for the access control attendance records corresponding to the on-duty card time point and the access control attendance records corresponding to the off-duty card time point; determining the out-of-office duration of the user in the preset shift according to the time points corresponding to the access control attendance records with close and paired times; and determining the effective working hours of the user in the preset shift according to the on-duty card time point, the off-duty card time point, and the out-of-office duration.
[0022] A second aspect of an embodiment of the present invention provides a processor configured to execute the method for attendance analysis according to the above.
[0023] A third aspect of an embodiment of the present invention provides a device for attendance analysis, applied to an access control attendance system, including:
[0024] A record acquisition module, configured to acquire the access control attendance records of the user;
[0025] An attendance analysis module, configured to analyze the access control attendance records according to the access control attendance records, preset time nodes, and the quantity of the access control attendance records to obtain the attendance analysis result of the user.
[0026] A fourth aspect of an embodiment of the present invention provides a machine-readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the method for attendance analysis according to the above is implemented.
[0027] The above technical solution adopts the access control attendance system to record the user's attendance, which can avoid the phenomenon that the user forgets to bring the work card or punches in instead, and improves the authenticity of the attendance data. By obtaining the user's access control attendance record and analyzing the access control attendance record according to the access control attendance record, the preset time node and the number of access control attendance records, the user's attendance analysis result is obtained, and the number and time of the user's entry and exit of the office are linked to the attendance data, which overcomes the disadvantage of the existing technology that the application scenarios are not refined enough, can accurately analyze the user's attendance behavior, and improve the accuracy and precision of the attendance data analysis results.
[0028] Other features and advantages of the embodiments of the present invention will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present invention, but do not constitute a limitation on the embodiments of the present invention. In the accompanying drawings:
[0030] Figure 1 The flowchart of the method for attendance analysis in one embodiment of the present invention is schematically shown;
[0031] Figure 2 A schematic diagram of the system architecture of a door access control and attendance system in one embodiment of the present invention is shown;
[0032] Figure 3 The following is a schematic diagram showing the process of attendance data collection and analysis in one embodiment of the present invention;
[0033] Figure 4 The flowchart of the attendance analysis logic of the work card in one embodiment of the present invention is schematically shown;
[0034] Figure 5 The flowchart of the morning attendance analysis logic in one embodiment of the present invention is schematically shown;
[0035] Figure 6 The flowchart of the afternoon attendance analysis logic in one embodiment of the present invention is schematically shown;
[0036] Figure 7 The flowchart of the attendance analysis logic of the off-duty card in one embodiment of the present invention is schematically shown;
[0037] Figure 8 The following is a schematic diagram showing the flow of the out-of-office duration analysis logic in one embodiment of the present invention;
[0038] Figure 9Schematically shown is a schematic block diagram of a device for attendance analysis in an embodiment of the present invention. Detailed implementation manners
[0039] The following will detail the specific implementation manners of the embodiments of the present invention with reference to the accompanying drawings. It should be understood that the specific implementation manners described herein are only for explaining and illustrating the embodiments of the present invention, and are not used to limit the embodiments of the present invention.
[0040] It should be noted that if there are directional indications (such as up, down, left, right, front, back...) involved in the embodiments of the present invention, the directional indications are only used to explain the relative positional relationship and movement conditions between components in a specific posture (as shown in the accompanying drawings). If this specific posture changes, the directional indications will also change accordingly.
[0041] In addition, if there are descriptions such as "first", "second", etc. involved in the embodiments of the present invention, the descriptions of "first", "second", etc. are only for descriptive purposes, and cannot be understood as indicating or implying their relative importance or implicitly indicating the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include at least one such feature. In addition, the technical solutions between various embodiments can be combined with each other, but it must be based on the fact that those skilled in the art can implement them. When the combination of technical solutions results in contradictions or cannot be implemented, it should be considered that such a combination of technical solutions does not exist and is not within the protection scope required by the present invention.
[0042] Figure 1 Schematically shown is a schematic flowchart of a method for attendance analysis in an embodiment of the present invention. As Figure 1 shown, in an embodiment of the present invention, a method for attendance analysis is provided, which is applied to an access control attendance system. Taking the method applied to a processor as an example for illustration, the method may include the following steps:
[0043] Step S102, obtain the access control attendance records of the user.
[0044] Step S104, analyze the access control attendance records according to the access control attendance records, preset time nodes, and the quantity of the access control attendance records to obtain the attendance analysis result of the user.
[0045] It can be understood that an access control attendance system is a system that uses access control as the attendance principle. The access control attendance system can record the time when a user enters and exits the office location each time. For example, the access control attendance system can be an attendance machine based on face recognition, etc. The access control attendance record is the historical access control attendance data of the user over a period of time. The preset time node is the time node of the preset shift time period, such as 8 am or 12 noon, etc. The attendance analysis result is the result of judging whether the user's attendance behavior is normal based on the analysis of the user's access control attendance data. For example, the work entry card is normal or the work entry card is abnormal, etc.
[0046] Specifically, the processor can obtain the user's access control attendance record, and then can analyze the access control attendance record according to the access control attendance record, the preset time node, and the number of access control attendance records to obtain the user's attendance analysis result. For example, when the preset time node is 8 am, if there are three access control attendance records of the user before 8 am, it means that there are three access control in-and-out records of the user before 8 am, corresponding to one entry, one exit, and one entry respectively. At this time, it can be determined that the user's attendance analysis result is that the work entry card is normal, and it can be determined that the time point of the user's work entry card is the time point corresponding to the access control attendance record closest to 8 am among the three access control attendance records. That is to say, the time when the user last entered the office location is the effective work time. Another example, when the preset time node is 8 am, if there is one access control attendance record of the user before 8 am and one access control attendance record after 8 am, corresponding to one entry and one exit respectively, it can indicate that the user has an early leave behavior in the morning, that is, it indicates that the user's attendance analysis result is early leave in the morning.
[0047] The above method for attendance analysis uses an access control attendance system to record the user's attendance situation, which can avoid the phenomenon of users forgetting to bring their work cards or proxy punching, improving the authenticity of attendance data. By obtaining the user's access control attendance record and analyzing the access control attendance record according to the access control attendance record, the preset time node, and the number of access control attendance records to obtain the user's attendance analysis result, the number of times and time of the user entering and exiting the office location are linked to the attendance data, overcoming the shortcoming of the existing technology that the application scenario is not refined enough, being able to accurately analyze the user's attendance behavior, and improving the accuracy and fineness of the attendance data analysis result.
[0048] In one embodiment, the preset time node includes a first preset time node, where the first preset time node is the working time node of the first shift; the access control attendance records are analyzed according to the access control attendance records, the preset time node, and the number of access control attendance records to obtain the attendance analysis result of the user, including: determining whether there are access control attendance records within a first preset time period before the first preset time node; in the case of determining that there are access control attendance records within the first preset time period, determining the first number of access control attendance records within the first preset time period; determining whether the first number is odd; in the case of determining that the first number is odd, determining that the attendance analysis result corresponding to the user in the first shift is that the work card is normal.
[0049] It can be understood that the first shift can be the first shift for the user to go to work in a day, such as the morning shift, and its corresponding time period can be from 8 am to 12 noon. The first preset time node is the working time node of the first shift, such as 8 am. The first preset time period is a preset time period, such as 2 hours or 3 hours. The first number is the number of access control attendance records within the first preset time period before the first preset time node.
[0050] Specifically, the processor can determine whether there are access control attendance records within a first preset time period (for example, 3 hours) before the first preset time node (for example, 8 am), for example, determine whether there are access control attendance records from 5 am to 8 am. When it is determined that there are access control attendance records within this time period (for example, from 5 am to 8 am), the first number of access control attendance records within this time period (for example, from 5 am to 8 am) can be determined, and it can be determined whether the first number is odd. If it is determined that the first number is odd, it can be determined that the attendance analysis result corresponding to the user in the first shift (for example, the morning shift) is that the work card is normal. Taking the first number as 3 times as an example, the corresponding actual application scenario is that the user enters and exits the office location once, then enters again before the first preset time node. Since the last access control attendance record of entering the office location is before the first preset time node, the work card check-in for the morning period is normal. At this time, the time point corresponding to the last access control attendance record of entering the office location can be taken as the work card time point for the morning period. It can be understood that the embodiment of the present application improves the accuracy of the attendance analysis result and realizes the refined management of attendance data.
[0051] In one embodiment, the preset time node further includes a second preset time node, where the second preset time node is the off-duty time node of the first shift; the method for attendance analysis further includes: when it is determined that there is no access control attendance record within the first preset time period or the first quantity is not odd, determining whether there is an access control attendance record between the first preset time node and the second preset time node; when it is determined that there is an access control attendance record between the first preset time node and the second preset time node, determining that the attendance analysis result corresponding to the user in the first shift is an abnormal work card, where the abnormal work card includes being late for work.
[0052] It can be understood that the second preset time node is the off-duty time node of the first shift. When the first shift is from 8:00 am to 12:00 noon, the second preset time node can be 12:00 noon.
[0053] Specifically, when the processor determines that there is no access control attendance record within the first preset time period (for example, 3 hours) before the first preset time node (for example, 8:00 am), it can indicate that the user did not punch the card before 8:00 am, or when it is determined that the first quantity of the access control attendance records within the first preset time period is not odd, for example, the first quantity is 0 or an even number, it can indicate that the user's access records before 8:00 am are one entry and one exit. It can be determined whether there is an access control attendance record between the first preset time node (for example, 8:00 am) and the second preset time node (for example, 12:00 noon). When there is an access control attendance record between the first preset time node and the second preset time node, it can be determined that the attendance analysis result corresponding to the user in the first shift is an abnormal work card, that is, being late for work in the first shift.
[0054] In one embodiment, the preset time node further includes a third preset time node, where the third preset time node is the off-duty time node of the second shift, and the second shift is after the first shift; the method further includes: when it is determined that there is no access control attendance record between the first preset time node and the second preset time node, determining the second quantity of the access control attendance records between the second preset time node and the third preset time node; determining whether the second quantity is odd; when it is determined that the second quantity is odd, determining that the attendance analysis result corresponding to the user in the first shift is no work card record.
[0055] It can be understood that the second shift can be the second shift that the user works in a day, which is after the first shift. For example, when the first shift is the morning shift, the second shift can be the afternoon shift, and the corresponding time period of the second shift can be from 2:00 pm to 5:00 pm. The third preset time node is the off-duty time node of the second shift, for example, 5:00 pm. The second quantity is the quantity of the access control attendance records between the second preset time node and the third preset time node.
[0056] Specifically, when the processor determines that there is no access control attendance record within the first preset time period or the first quantity is not odd, it further determines that there is no access control attendance record between the first preset time node (e.g., 8:00 am) and the second preset time node (e.g., 12:00 noon). At this time, it can determine the second quantity of the access control attendance records between the second preset time node (e.g., 12:00 noon) and the third preset time node (e.g., 5:00 pm), and determine whether the second quantity is odd. When it is determined that the second quantity is odd, it is determined that the attendance analysis result corresponding to the user in the first shift is no record of the work entry card. For example, if the second quantity is 3, it means that the user's access records from 12:00 noon to 5:00 pm are one entry, one exit, and one entry. Here, since the processor analyzes the attendance behavior of the first shift, it can be defaulted that the work exit card of the second shift is normal, that is, there is an access control attendance record after the third preset time node. Therefore, it can be determined that the attendance analysis result corresponding to the user in the first shift is no record of the work entry card, that is, there is no swiping record of the work entry card in the first shift.
[0057] In one embodiment, the method for attendance analysis further includes: when it is determined that the second quantity is not odd, determining that the attendance analysis result corresponding to the user in the first shift is a missed work entry card.
[0058] Specifically, if the second quantity is not odd, for example, it is 2, and assuming that the work exit card of the second shift is normal, it means that the user's access records from 12:00 noon to 5:00 pm are one exit and one entry. Therefore, it can be confirmed that the user missed the work entry card of the first shift, that is, it is determined that the attendance analysis result corresponding to the user in the first shift is a missed work entry card. Further, if the attendance analysis result is a missed work entry card, the time point of the work entry card of the first shift can be defaulted to the first preset time node, or the user can be confirmed about the actual time point of the work entry card of the first shift.
[0059] In one embodiment, the method for attendance analysis further includes: determining the time point of the work entry card corresponding to the user in the first shift; determining whether there is an access control attendance record between the time point of the work entry card and the second preset time node; when it is determined that there is an access control attendance record between the time point of the work entry card and the second preset time node, determining the third quantity of the access control attendance records between the time point of the work entry card and the second preset time node; when it is determined that the third quantity is odd, determining that the attendance analysis result corresponding to the user in the first shift is an abnormal work exit card, where the abnormal work exit card includes leaving early; when it is determined that there is no access control attendance record between the time point of the work entry card and the second preset time node or the third quantity is not odd, determining that the attendance analysis result corresponding to the user in the first shift is a normal work exit card.
[0060] It can be understood that the third quantity is the quantity of the access control attendance records between the time point of the work entry card and the second preset time node.
[0061] Specifically, if there is an attendance analysis result for the work card of the first shift, for example, the work card of the first shift is normal or abnormal, then the attendance analysis of the off-work card corresponding to the first shift can be performed; otherwise, the attendance analysis of the off-work card corresponding to the first shift is not required. The processor can determine the time point of the work card corresponding to the first shift according to the attendance analysis result of the work card of the first shift, and determine whether there is an access control attendance record between the time point of the work card and the second preset time node (for example, 12:00 noon). If it is determined that there is an access control attendance record, at this time, the third quantity of the access control attendance record between the time point of the work card and the second preset time node can be determined. If the third quantity is odd, for example, 1 time, then it can be determined that the attendance analysis result of the user corresponding to the first shift is that the off-work card is abnormal, that is, the user leaves early from work in the first shift. If it is determined that there is no access control attendance record between the time point of the work card and the second preset time node (for example, 12:00 noon) or the third quantity is not odd, then it can be determined that the attendance analysis result of the user corresponding to the first shift is that the off-work card is normal, that is, the off-work card is punched normally in the first shift.
[0062] In one embodiment, the preset time node further includes a fourth preset time node, where the fourth preset time node is the work time node of the second shift; the method for attendance analysis further includes: when it is determined that the attendance analysis result of the user corresponding to the first shift is that the work card is normal or the work card is abnormal, determining the fourth quantity of the access control attendance record between the second preset time node and the fourth preset time node; judging whether the fourth quantity is odd; when it is determined that the fourth quantity is not odd, determining that the attendance analysis result of the user corresponding to the second shift is that the work card is normal.
[0063] It can be understood that the fourth preset time node is the work time node of the second shift. For example, when the second shift is from 2:00 pm to 5:00 pm, the fourth preset time node can be 2:00 pm. The fourth quantity is the quantity of the access control attendance record between the second preset time node and the fourth preset time node.
[0064] Specifically, when the processor determines that the attendance analysis result of the user corresponding to the first shift is that the work card is normal or the work card is abnormal, that is, when the user punches the work card normally in the first shift or is late for work in the first shift, the processor can determine the fourth quantity of the access control attendance record between the second preset time node (for example, 12:00 noon) and the fourth preset time node (for example, 2:00 pm), and judge whether the fourth quantity is odd. If the fourth quantity is not odd, for example, 2 times, then the corresponding access scenario is one entry and one exit, indicating that the attendance analysis result of the user corresponding to the second shift is that the work card is normal, that is, the user punches the work card normally for work in the second shift.
[0065] In one embodiment, the method for attendance analysis may further include: when it is determined that the fourth quantity is odd, determining whether there is an access control attendance record between the fourth preset time node and the third preset time node; when it is determined that there is an access control attendance record between the fourth preset time node and the third preset time node, determining that the attendance analysis result corresponding to the user in the second shift is an abnormal work entry card.
[0066] Specifically, if the fourth quantity is odd, for example, 1 time, the corresponding access scenario may be one entry. Then the processor may further determine whether there is an access control attendance record between the fourth preset time node (for example, 2:00 pm) and the third preset time node (for example, 5:00 pm). If there is an access control attendance record, it can be determined that the attendance analysis result corresponding to the user in the second shift is an abnormal work entry card, such as being late for work.
[0067] In one embodiment, the method for attendance analysis may further include: when it is determined that there is no access control attendance record between the fourth preset time node and the third preset time node, determining that the attendance analysis result corresponding to the user in the second shift is no work entry card record.
[0068] Specifically, if the processor further determines that there is no access control attendance record between the fourth preset time node (for example, 2:00 pm) and the third preset time node (for example, 5:00 pm), it can be determined that the attendance analysis result corresponding to the user in the second shift is no work entry card record.
[0069] In one embodiment, the method for attendance analysis may further include: when it is determined that the attendance analysis result corresponding to the user in the first shift is an abnormal work exit card or no work entry card record, determining whether there is an access control attendance record between the second preset time node and the third preset time node; when it is determined that there is no access control attendance record between the second preset time node and the third preset time node, determining that the attendance analysis result corresponding to the user in the second shift is no work entry card record.
[0070] Specifically, when the processor determines that the attendance analysis result corresponding to the user in the first shift is an abnormal work exit card or no work entry card record, where the abnormal work exit card is, for example, leaving early, it may further determine whether there is an access control attendance record between the second preset time node (for example, 12:00 noon) and the third preset time node (for example, 5:00 pm). If there is no access control attendance record, it can be determined that the attendance analysis result corresponding to the user in the second shift is no work entry card record, that is, there is no work entry card record in the second shift.
[0071] In one embodiment, the method for attendance analysis may further include: when it is determined that there is an access control attendance record between the second preset time node and the third preset time node, determining whether the fourth quantity is odd; when it is determined that the fourth quantity is odd, determining that the attendance analysis result corresponding to the user in the second shift is that the work entry card is normal.
[0072] Specifically, if the processor further determines that there is an access control attendance record between the second preset time node (e.g., 12:00 noon) and the third preset time node (e.g., 5:00 p.m.), and determines whether the fourth quantity of the access control attendance records between the second preset time node (e.g., 12:00 noon) and the fourth preset time node (e.g., 2:00 p.m.) is odd. If the fourth quantity is odd, for example, 1 time, the corresponding access scenario may be one entry. At this time, it can be determined that the attendance analysis result corresponding to the user in the second shift is that the work entry card is normal.
[0073] In one embodiment, the method for attendance analysis may further include: when it is determined that the fourth quantity is not odd, determining whether there is an access control attendance record between the fourth preset time node and the third preset time node; when it is determined that there is an access control attendance record between the fourth preset time node and the third preset time node, determining that the attendance analysis result corresponding to the user in the second shift is that the work entry card is abnormal; when it is determined that there is no access control attendance record between the fourth preset time node and the third preset time node, determining that the attendance analysis result corresponding to the user in the second shift is that there is no work entry card record.
[0074] Specifically, if the processor determines that the fourth quantity is not odd, for example, 2 times, the corresponding access scenario may be one entry and one exit. Then it can be further determined whether there is an access control attendance record between the fourth preset time node (e.g., 2:00 p.m.) and the third preset time node (e.g., 5:00 p.m.). If there is an access control attendance record, it can be determined that the attendance analysis result corresponding to the user in the second shift is that the work entry card is abnormal, that is, the work entry card is late; if there is no access control attendance record, it can be determined that the attendance analysis result corresponding to the user in the second shift is that there is no work entry card record.
[0075] In one embodiment, the method for attendance analysis may further include: determining the work entry card time point corresponding to the user in the second shift; determining the fifth quantity of the access control attendance records between the work entry card time point and the third preset time node; determining whether the fifth quantity is odd; when it is determined that the fifth quantity is odd, determining that the attendance analysis result corresponding to the user in the second shift is that the work exit card is abnormal.
[0076] It can be understood that the fifth quantity is the quantity of the access control attendance records between the work entry card time point of the second shift and the third preset time node.
[0077] Understandably, if there is an attendance analysis result for the work card of the second shift, for example, the work card of the second shift is normal or abnormal, the attendance analysis of the off-work card corresponding to the second shift can be performed; otherwise, the attendance analysis of the off-work card corresponding to the second shift is not required. Specifically, the processor can determine the time point of the work card of the user corresponding to the second shift according to the attendance analysis result of the work card of the second shift. For example, the work card time point closest to and not reaching the fourth preset time node is taken as the valid work card time point, and the fifth quantity of the access control attendance records between the work card time point and the third preset time node (for example, 5 pm) is determined, and it is judged whether the fifth quantity is odd. If it is determined that the fifth quantity is odd, for example, 3 times, the corresponding access scenario can be one entry, one exit, and one entry. It can be determined that the attendance analysis result of the user corresponding to the second shift is that the off-work card is abnormal, that is, the user leaves early from work in the second shift.
[0078] In one embodiment, the method for attendance analysis may further include: when it is determined that the fifth quantity is not odd, determining the sixth quantity of the access control attendance records within the second preset time period after the third preset time node; judging whether the sixth quantity is zero; when it is determined that the sixth quantity is not zero, determining that the attendance analysis result of the user corresponding to the second shift is that the off-work card is normal; when it is determined that the sixth quantity is zero, determining that the attendance analysis result of the user corresponding to the second shift is that the off-work card is missed.
[0079] It can be understood that the second preset time period is a preset time period, such as 3 hours or 4 hours, etc. The sixth quantity is the quantity of the access control attendance records within the second preset time period after the third preset time node.
[0080] Specifically, if the processor further determines that the fifth quantity is not odd, for example, 2 times, the corresponding access scenario can be one entry and one exit. At this time, the sixth quantity of the access control attendance records within the second preset time period after the third preset time node (for example, 5 pm) can be determined. For example, the sixth quantity can be the quantity of the access control attendance records from 5 pm to 12 pm. If the sixth quantity is not zero, it can be determined that the attendance analysis result of the user corresponding to the second shift is that the off-work card is normal. If the sixth quantity is zero, it can be determined that the attendance analysis result of the user corresponding to the second shift is that the off-work card is missed.
[0081] In one embodiment, the method for attendance analysis may further include: determining the effective working hours of the user according to the attendance analysis result.
[0082] It can be understood that the effective working hours are the actual working hours of the user at the office location.
[0083] Specifically, taking the first shift as an example, when the attendance analysis result of the user in the first shift shows that the morning punch card is normal and the afternoon punch card is normal, the processor can determine the effective working hours of the user in the first shift based on the time point of the morning punch card corresponding to the morning punch card and the time point of the afternoon punch card corresponding to the afternoon punch card. For example, by subtracting the time point of the morning punch card from the time point of the afternoon punch card, the effective working hours of the first shift can be obtained. For example, when the preset time nodes include 8:00 am and 12:00 noon, if there is a punch card record before 8:00 am and after 12:00 noon in the access control attendance record of the user, it can be determined that the attendance analysis result of the user is that the morning punch card is normal and the afternoon punch card is normal, so that the effective working hours of the user can be determined to be 4 hours according to this attendance analysis result. If there is a punch card record before 8:00 am and at 10:00 am respectively in the access control attendance record of the user, it can be determined that the attendance analysis result of the user is that the morning punch card is normal and the afternoon punch card is abnormal, so that the effective working hours of the user can be determined to be 2 hours.
[0084] In the embodiment of the present application, the clear and effective time points of the morning punch card and the afternoon punch card can be determined according to the attendance analysis result, and then the effective working hours of the user can be accurately determined, improving the intelligence and refinement of the attendance system.
[0085] In one embodiment, determining the effective working hours of the user according to the attendance analysis result includes: determining the time point of the morning punch card corresponding to the preset shift and the time point of the afternoon punch card corresponding to the preset shift; determining that there are time-close and paired access control attendance records in the access control attendance record corresponding to the preset shift except for the access control attendance record corresponding to the time point of the morning punch card and the access control attendance record corresponding to the time point of the afternoon punch card; determining the out-of-office duration of the user corresponding to the preset shift according to the time points corresponding to the time-close and paired access control attendance records; and determining the effective working hours of the user corresponding to the preset shift according to the time point of the morning punch card, the time point of the afternoon punch card, and the out-of-office duration.
[0086] It can be understood that the preset shift is a pre-set work shift, such as the first shift or the second shift. The first shift can be a morning shift, and the second shift can be an afternoon shift.
[0087] Specifically, the processor can determine the user's clock-in time point corresponding to the preset shift and the clock-out time point corresponding to the preset shift according to the method of the foregoing embodiments. If there is a situation of missing the clock-in or clock-out card, the true attendance time can be obtained from the user, or the default clock-in time node or clock-out time node of the preset shift can be selected as the user's clock-in time point or clock-out time point corresponding to the preset shift. When the user goes out during the working hours, etc., it is further possible to determine that there are time-close and paired access control attendance records in the access control attendance record corresponding to the preset shift except for the access control attendance record corresponding to the clock-in time point and the access control attendance record corresponding to the clock-out time point, and determine the user's out duration corresponding to the preset shift according to the time points corresponding to the time-close and paired access control attendance records. For example, subtract the earlier time point from the later time point to obtain the out duration. Further, the number of out times can be one or more, so that the user's effective working hours corresponding to the preset shift can be determined according to the clock-in time point, the clock-out time point, and the out duration. Further, when the preset shift includes the first shift and the second shift, the processor can determine the user's effective working hours corresponding to the first shift and the user's effective working hours corresponding to the second shift, and can add them up, so that the total effective working hours of the user in the first shift and the second shift can be obtained, and thus the accurate calculation of the user's effective working hours can be realized.
[0088] In a specific embodiment, an access control attendance system is provided, as Figure 2 shown, the access control attendance system is mainly divided into five modules: attendance data collection and analysis, attendance management, shift scheduling management, personnel management, and process management. Attendance machines based on face recognition can be installed at the enterprise attendance entrances and exits. Adopting the principle that access control is attendance, accurately record the time of each employee's entry and exit from the office location, and establish an attendance data analysis platform based on big data analysis. Collect the attendance data of employees on the face recognition attendance machines, and combine the process data such as the employees' leave and going out, and accurately analyze the employees' effective working hours and overtime hours.
[0089] (1) Attendance data collection and analysis: This module realizes face management, attendance machine management, attendance data upload, and attendance data analysis.
[0090] 1.1) Face management: This module includes the entry, update, deletion, and distribution of face information, and combines with hardware devices to complete the function of face recognition.
[0091] 1.2) Attendance machine management: Used for the management of existing attendance machines, and based on the situation of attendance data upload, realize the fault detection and alarm of attendance machines.
[0092] 1.3) Attendance data upload: Regularly collect the face recognition data in the terminal attendance device.
[0093] The attendance data collection and analysis process is as follows (for reference, see Figure 3 as shown):
[0094] 1.4) Attendance data analysis: Based on the collected original attendance records, leave records, and shift scheduling data, the attendance results of employees are analyzed in a batch data processing manner. Combining with overtime data, cross-verify whether the overtime applications submitted by employees are valid, and count the effective working hours of employees. The specific logic is as follows (taking the shift from 8:00 - 12:00 in the morning and 14:00 - 17:00 in the afternoon as an example).
[0095] 1.4.1) Attendance analysis logic for the morning arrival card (for reference, see Figure 4 as shown)
[0096] 1. Determine whether the punches from 3 hours before the start of the shift to the start time of the shift are paired. If they are not paired and the valid card closest to the start time of the shift is the morning arrival card. If they are paired, take the earliest valid card from after the start of the shift to the end time of the morning shift segment as the morning arrival card.
[0097] 2. If there is no punch record within 3 hours before the start of the shift, take the earliest valid card from after the start of the shift to the end time of the morning shift segment as the morning arrival card.
[0098] 3. If there is no punch record during the period from after the start of the shift to the end of the morning shift segment, and the number of punch records before the end of the day's shift is odd, it is considered that there is no punch record in the morning; otherwise, it is considered that the morning arrival card is missed.
[0099] 1.4.2) Attendance analysis logic for the morning (for reference, see Figure 5 as shown)
[0100] 1. If there is no morning arrival card, there is no need to analyze the morning attendance.
[0101] 2. If there is a morning arrival card, and there are punch records from the time after the morning arrival card is punched to the end time of the morning shift segment, and the number of punch records is odd, it is considered that the employee leaves early in the morning, and record the closest punch to the end time of the morning shift segment as the morning departure time; otherwise, record the end time of the morning shift segment as the morning departure time.
[0102] 1.4.3) Attendance analysis logic for the afternoon (for reference, see Figure 6 as shown)
[0103] 1. If there is no early departure in the morning and there are punch records in the morning, that is, the employee goes to work normally or is late in the morning. If the punches during the noon break are paired or there is no punch record, take the afternoon start time of the shift as the afternoon arrival card.
[0104] 2. If there is no early leave in the morning, there is a card swiping record in the morning, and the punch-in records during the noon break period are not paired. If there is a card swiping record during the afternoon working period, it is considered late in the afternoon, and the nearest valid card to the afternoon working time of the shift is the afternoon working time; otherwise, it is considered that there is no card swiping record in the afternoon.
[0105] 3. If there is an early leave in the morning (or no card swiping record in the morning), and the punch-in records during the noon break period are paired or there is no punch-in record. If there is a card swiping record during the afternoon working period, it is considered late in the afternoon, and the nearest valid card to the afternoon working time of the shift is the afternoon working time; otherwise, it is considered that there is no card swiping record in the afternoon.
[0106] 4. If there is an early leave in the morning (or no card swiping record in the morning), and the punch-in records during the noon break period are not paired, then the afternoon working time of the shift is taken as the afternoon working card.
[0107] 1.4.4) Attendance analysis logic for punch-out cards (for reference Figure 7 as shown)
[0108] 1. If the afternoon working card does not exist, there is no need to analyze the afternoon attendance.
[0109] 2. After the afternoon working card until the end time of the afternoon shift, the punch-in records are paired or there is no punch-in record. If there is no punch-in record from the end time of the shift until 3 o'clock the next day, it is considered that the punch-out card is missed; otherwise, the nearest valid punch-out card after the end time of the shift is taken as the punch-out card.
[0110] 3. After the afternoon working card until the end time of the afternoon shift, the punch-in records are not paired, then it is considered an early leave from work, and the last valid card before the end time of the shift is taken as the punch-out card.
[0111] 1.4.5) Analysis logic for out - of - office duration (for reference Figure 8 as shown)
[0112] 1. Morning out - of - office duration: Judge whether the punch - in records are paired between the morning working card and the morning punch - out card. If paired, calculate the total sum of the interval time for each pair of punch - in records. If it exceeds 2 hours, it is considered that the morning out - of - office time is too long;
[0113] 2. Afternoon out - of - office duration: Judge whether the punch - in records are paired between the afternoon working card and the afternoon punch - out card. If paired, calculate the total sum of the interval time for each pair of punch - in records. If it exceeds 2 hours, it is considered that the afternoon out - of - office time is too long;
[0114] 3. All - day out - of - office duration: Judge whether the sum of the morning out - of - office duration and the afternoon out - of - office duration exceeds two hours, then it is considered that the out - of - office time for the day is too long.
[0115] (2) Personnel management: It includes the management of entry, transfer, departure, and transfer of various types of employees, organizational management, and permission management;
[0116] 2.1) Entry, Transfer, Departure Management: This module is mainly responsible for employee onboarding, departure, transfer, etc., and sets default attendance rules according to employee types.
[0117] 2.2) Organization Management: Synchronize organizational data from SAP and complete the construction of the organizational tree.
[0118] 2.3) Permission Management: This module is used to set the permissions of enterprise managers, as well as the permissions for HR to set attendance rules, query attendance data, etc.
[0119] (3) Attendance Management: This module includes sub-modules such as attendance rule management, attendance data query, leave management, and attendance exception feedback management.
[0120] 3.1) Attendance Rule Management: Used for diverse configuration of attendance rules, and rules such as early / late departure, overtime, maximum / minimum working hours, and maximum absenteeism days can be set.
[0121] 3.2) Attendance Data Query: Used for employees, managers, and HR to query original attendance punch records and attendance exception detail data.
[0122] 3.3) Leave Management: Used for employees to query the balance of various types of leave, leave systems, leave days, etc.
[0123] 3.4) Attendance Exception Feedback Management: When attendance anomalies occur, employees can provide feedback on the anomalies, and the feedback results are determined by the employee's supervisor or human resources as the final attendance results, which are used for performance evaluation, salary payment, etc.
[0124] (4) Scheduling Management: This module includes scheduling rule management, team setting, employee scheduling, and work calendar setting.
[0125] 4.1) Scheduling Rule Management: This module is used to set different scheduling rules for employees of different job types, different types, and different regions, and can be default-assigned according to employee attributes.
[0126] 4.2) Team Setting: This module can set attendance groups according to employees and organizations. The same team can be associated with a scheduling rule, and the personnel within the group will be subject to attendance according to the rule.
[0127] 4.3) Employee Scheduling Query: Used to query an employee's personal scheduling data, or for a supervisor to query the scheduling situation of employees within an organization.
[0128] 4.4) Work Calendar Setting: Set the dates of national statutory holidays, company anniversary holidays, etc.
[0129] (5) Process Management: Leave and Outgoing Management, Overtime Management, Approval Permission Management.
[0130] 5.1) Leave and Outgoing Management: It is used for employees to submit processes such as leave, going out, and business trips, and provides a function for canceling leave, which is used for the withdrawal of employees' processes.
[0131] 5.2) Overtime Management: It is used for employees to submit overtime applications in advance, providing data basis for overtime meals, overtime pay, etc. The overtime application needs to be approved by the superior.
[0132] 5.3) Approval Authority Management: Set the approval authorities for processes such as leave and overtime at each level.
[0133] The beneficial effects of the technical solutions in the embodiments of the present invention include:
[0134] (1) This solution uses an attendance machine with face recognition as the attendance and access control device, accurately records the records of employees entering and leaving the office location, and avoids problems such as forgetting to bring the card, forgetting to punch the card, and proxy punching.
[0135] (2) Based on the paired punching rule, the attendance anomaly analysis can accurately calculate the effective working hours of employees, avoiding phenomena such as abnormal leaving the post and being out for too long.
[0136] (3) This solution records all the entry and exit records of all employees in the company within a day, and the amount of attendance data increases significantly. Therefore, a batch processing-based method is used to quickly analyze the attendance data, greatly improving the performance of attendance data analysis.
[0137] The embodiments of the present invention provide a processor configured to execute the method for attendance analysis according to the above embodiments.
[0138] Figure 9 Schematically shows a schematic block diagram of the structure of the device for attendance analysis in an embodiment of the present invention. As Figure 9 shown, the embodiments of the present invention provide a device 900 for attendance analysis, which is applied to the access control and attendance system. The device 900 may include:
[0139] A record acquisition module 910, configured to acquire the access control and attendance records of users.
[0140] An attendance analysis module 920, configured to analyze the access control and attendance records according to the access control and attendance records, preset time nodes, and the number of access control and attendance records, so as to obtain the attendance analysis result of the user.
[0141] The above-mentioned device for attendance analysis uses an access control attendance system to record the attendance of users, which can avoid the phenomenon of users forgetting to bring their work cards or proxy punching, improve the authenticity of attendance data, and analyze the access control attendance records by obtaining the access control attendance records of users and according to the access control attendance records, preset time nodes, and the number of access control attendance records, so as to obtain the attendance analysis results of users. By linking the number and time of users entering and leaving the workplace with the attendance data, it overcomes the drawback of the existing technology that the application scenario is not refined enough, can accurately analyze the attendance behavior of users, and improves the accuracy and fineness of the attendance data analysis results.
[0142] In one embodiment, the above-mentioned device 900 for attendance analysis can also be implemented according to any one or a combination of multiple ones of the methods for attendance analysis in the above-mentioned embodiments.
[0143] The embodiment of the present invention provides a machine-readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, it realizes the method for attendance analysis in the above-mentioned embodiments.
[0144] In summary, the technical solution provided by the embodiment of the present invention uses a face recognition attendance machine, closely combines access control and attendance, and accurately records the attendance punch records of employees. While facilitating employees' attendance punching, it can effectively prevent situations such as employees cheating in attendance punching. It designs a set of attendance analysis principles based on paired punching and adopts a data analysis architecture of big data batch processing, which can quickly and accurately calculate the effective working hours of employees.
[0145] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0146] The present application is described with reference to the flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of flows and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices generate for implementing in the process Figure 1 one process or multiple processes and / or blocksFigure 1 means for the functions specified in one or more boxes.
[0147] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured article including an instruction means that implements the functions specified in one Figure 1 process or more processes and / or boxes Figure 1 means for the functions specified in one or more boxes.
[0148] These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, and thus the instructions executed on the computer or other programmable device provide for implementing the functions specified in one Figure 1 process or more processes and / or boxes Figure 1 steps for the functions specified in one or more boxes.
[0149] In a typical configuration, a computing device includes one or more processors (CPUs), an input / output interface, a network interface, and memory.
[0150] The memory may include non-permanent memory in computer-readable media, random access memory (RAM) and / or non-volatile memory in the form of, for example, read-only memory (ROM) or flash memory (flash RAM). The memory is an example of computer-readable media.
[0151] Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology for information storage. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette tapes, magnetic disk storage or other magnetic storage devices, or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media, such as modulated data signals and carrier waves.
[0152] It should also be noted that the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, such that a process, method, commodity or device comprising a series of elements not only includes those elements but also other elements not expressly listed, or elements inherent to such process, method, commodity or device. Without further limitation, an element defined by the phrase "comprising an..." does not exclude the presence of additional identical elements in the process, method, commodity or device comprising the element.
[0153] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, various changes and modifications can be made to the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included within the scope of the claims of the present application.
Claims
1. A method for attendance analysis, characterized in that, Applied to an access control and attendance system, including: Obtain the access control and attendance records of users; Analyze the access control and attendance records based on the access control and attendance records, preset time nodes, and the quantity of the access control and attendance records to obtain the attendance analysis result of the user. Among them, the preset time nodes include a first preset time node, a second preset time node, and a third preset time node. The first preset time node is the working time node of the first shift, the second preset time node is the off-duty time node of the first shift, the third preset time node is the off-duty time node of the second shift, and the second shift is after the first shift; The analyzing the access control and attendance records based on the access control and attendance records, preset time nodes, and the quantity of the access control and attendance records to obtain the attendance analysis result of the user includes: Judge whether there are access control and attendance records within a first preset time period before the first preset time node; When it is determined that there are access control and attendance records within the first preset time period, determine the first quantity of the access control and attendance records within the first preset time period; Judge whether the first quantity is odd; When it is determined that the first quantity is odd, determine that the attendance analysis result of the user corresponding to the first shift is that the work card is normal; When it is determined that there are no access control and attendance records within the first preset time period or the first quantity is not odd, judge whether there are access control and attendance records between the first preset time node and the second preset time node; When it is determined that there are access control and attendance records between the first preset time node and the second preset time node, determine that the attendance analysis result of the user corresponding to the first shift is that the work card is abnormal, where the work card abnormality includes being late; When it is determined that there are no access control and attendance records between the first preset time node and the second preset time node, determine the second quantity of the access control and attendance records between the second preset time node and the third preset time node; Judge whether the second quantity is odd; When it is determined that the second quantity is odd, determine that the attendance analysis result of the user corresponding to the first shift is that there is no record of the work card; 2. The method according to claim 1, wherein The method further includes: When it is determined that the second quantity is not odd, determine that the attendance analysis result of the user corresponding to the first shift is that the work card for going to work is missed; 3. The method according to claim 1, wherein The method further includes: Determine the work card time point of the user corresponding to the first shift; Judge whether there are access control and attendance records between the work card time point and the second preset time node; When it is determined that there are access control and attendance records between the work card time point and the second preset time node, determine the third quantity of the access control and attendance records between the work card time point and the second preset time node; When it is determined that the third quantity is odd, determine that the attendance analysis result of the user corresponding to the first shift is that the off-duty card is abnormal, where the off-duty card abnormality includes leaving early; In the case that there is no access control attendance record between the work entry card time point and the second preset time node or the third quantity is not odd, determine that the attendance analysis result of the user corresponding to the first shift is that the work exit card is normal.
4. The method according to claim 1, wherein The preset time node further includes a fourth preset time node, where the fourth preset time node is the work entry time node of the second shift; the method further includes: In the case that it is determined that the attendance analysis result of the user corresponding to the first shift is that the work entry card is normal or the work entry card is abnormal, determine the fourth quantity of the access control attendance records between the second preset time node and the fourth preset time node; Judge whether the fourth quantity is odd; In the case that it is determined that the fourth quantity is not odd, determine that the attendance analysis result of the user corresponding to the second shift is that the work entry card is normal.
5. The method according to claim 4, wherein The method further includes: In the case that it is determined that the fourth quantity is odd, judge whether there is an access control attendance record between the fourth preset time node and the third preset time node; In the case that it is determined that there is an access control attendance record between the fourth preset time node and the third preset time node, determine that the attendance analysis result of the user corresponding to the second shift is that the work entry card is abnormal.
6. The method according to claim 5, characterized in that The method further includes: In the case that it is determined that there is no access control attendance record between the fourth preset time node and the third preset time node, determine that the attendance analysis result of the user corresponding to the second shift is that there is no work entry card record.
7. The method according to claim 4, wherein The method further includes: In the case that it is determined that the attendance analysis result of the user corresponding to the first shift is that the work exit card is abnormal or there is no work entry card record, judge whether there is an access control attendance record between the second preset time node and the third preset time node; In the case that it is determined that there is no access control attendance record between the second preset time node and the third preset time node, determine that the attendance analysis result of the user corresponding to the second shift is that there is no work entry card record.
8. The method according to claim 7, wherein The method further includes: In the case that it is determined that there is an access control attendance record between the second preset time node and the third preset time node, judge whether the fourth quantity is odd; In the case that it is determined that the fourth quantity is odd, determine that the attendance analysis result of the user corresponding to the second shift is that the work entry card is normal.
9. The method according to claim 8, wherein The method further includes: In the case that it is determined that the fourth quantity is not odd, judge whether there is an access control attendance record between the fourth preset time node and the third preset time node; In the case that it is determined that there is an access control attendance record between the fourth preset time node and the third preset time node, determine that the attendance analysis result of the user corresponding to the second shift is that the work entry card is abnormal; In the case that it is determined that there is no access control attendance record between the fourth preset time node and the third preset time node, determine that the attendance analysis result of the user corresponding to the second shift is that there is no work entry card record.
10. The method according to claim 4, wherein The method further includes: Determine the work entry card time point of the user corresponding to the second shift; Determine the fifth quantity of access control attendance records between the work entry card time point and the third preset time node; Judge whether the fifth quantity is odd; When it is determined that the fifth quantity is odd, determine that the attendance analysis result corresponding to the user in the second shift is an abnormal work exit card.
11. The method according to claim 10, characterized in that, The method further includes: When it is determined that the fifth quantity is not odd, determine the sixth quantity of access control attendance records within the second preset time period after the third preset time node; Judge whether the sixth quantity is zero; When it is determined that the sixth quantity is not zero, determine that the attendance analysis result corresponding to the user in the second shift is a normal work exit card; When it is determined that the sixth quantity is zero, determine that the attendance analysis result corresponding to the user in the second shift is a missed work exit card.
12. The method according to claim 1, wherein The method further includes: Determine the effective working hours of the user according to the attendance analysis result.
13. The method according to claim 12, wherein The determining the effective working hours of the user according to the attendance analysis result includes: Determine the work entry card time point corresponding to the user in the preset shift and the work exit card time point corresponding to the preset shift; Determine that there are access control attendance records with close and paired time points except for the access control attendance records corresponding to the work entry card time point and the access control attendance records corresponding to the work exit card time point in the access control attendance records corresponding to the preset shift; Determine the out - of - office duration of the user in the preset shift according to the time points corresponding to the access control attendance records with close and paired time points; Determine the effective working hours of the user in the preset shift according to the work entry card time point, the work exit card time point, and the out - of - office duration.
14. A processor, characterized in that, Configured to execute the method for attendance analysis according to any one of claims 1 to 13.
15. An apparatus for attendance analysis, characterized in that, Applied to an access control attendance system, including: A record acquisition module, configured to acquire the access control attendance records of the user; An attendance analysis module, configured to analyze the access control attendance records according to the access control attendance records, preset time nodes, and the quantity of the access control attendance records to obtain the attendance analysis result of the user, wherein the preset time nodes include a first preset time node, a second preset time node, and a third preset time node, the first preset time node is the work entry time point of the first shift, the second preset time node is the work exit time point of the first shift, the third preset time node is the work exit time point of the second shift, and the second shift is after the first shift; The attendance analysis module is further configured to: determine whether there are access control attendance records within a first preset time period before the first preset time node; in the case of determining that there are access control attendance records within the first preset time period, determine a first quantity of the access control attendance records within the first preset time period; determine whether the first quantity is odd; in the case of determining that the first quantity is odd, determine that the attendance analysis result corresponding to the user in the first shift is that the work entry card is normal; in the case of determining that there are no access control attendance records within the first preset time period or the first quantity is not odd, determine whether there are access control attendance records between the first preset time node and the second preset time node; in the case of determining that there are access control attendance records between the first preset time node and the second preset time node, determine that the attendance analysis result corresponding to the user in the first shift is that the work entry card is abnormal, where the work entry card abnormality includes being late; in the case of determining that there are no access control attendance records between the first preset time node and the second preset time node, determine a second quantity of the access control attendance records between the second preset time node and the third preset time node; determine whether the second quantity is odd; in the case of determining that the second quantity is odd, determine that the attendance analysis result corresponding to the user in the first shift is that there is no record of the work entry card.
16. A machine-readable storage medium, characterized in that, The machine-readable storage medium stores a program or instructions, and when the program or the instructions are executed by a processor, the method for attendance analysis according to any one of claims 1 to 13 is implemented.
Citation Information
Patent Citations
Production workshop personnel positioning supervision method and system
CN110889919A
Attendance checking method and attendance checking system for non-fixed shifts
CN114333095A