Intelligent attendance checking method, system and equipment based on clock-in information, and storage medium
By automatically accumulating and compensating for excess working hours, the troubles of overtime and rest adjustment operations in the existing intelligent attendance system are solved, and automatic rest adjustment and high-reliability attendance record management are realized.
Patent Information
- Application Number
- CN202411849884.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-16
- Publication Date
- 2025-05-06
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
When handling overtime and rest requests, staff members need to manually query and operate, resulting in troublesome operation, high possibility of error operation, poor user experience, and low reliability of attendance records.
An intelligent attendance method based on punch-in information is proposed, which automatically accumulates the excess working hours and uses the excess hours to automatically compensate for the absence hours without staff operations, ensuring the accuracy of attendance records.
Automatic rest adjustment is achieved, which improves the intelligence and reliability of attendance, reduces the operating burden of staff, and enhances the accuracy and user experience of attendance records.
Smart Images

Figure CN119941211A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent attendance technology, and in particular to an intelligent attendance method, system, device and storage medium based on punch-in information. Background Art
[0002] There are many types of personnel in property management companies, including office management and development personnel, as well as on-site personnel in residential areas or office buildings. Different staff members may have different working hours and work locations, making attendance management more complicated. With the development of smart clock-in technology, it is now possible to clock in remotely through smart terminals with attendance programs installed. The attendance program uses positioning technology to determine the location of the staff member, and generates available clock-in records based on the staff member's fingerprint or face scan. Attendance personnel can set the working time period for each staff member in the application system, and automatically generate attendance information based on available clock-in records, greatly improving the efficiency of attendance management.
[0003] In daily work, staff may have to work overtime. Property management companies can adjust the time off or provide relevant financial rewards for the excess working hours every day. In related technologies, when initiating the adjustment, it is necessary to query the available time off or overtime date in the application, and initiate the adjustment request based on the queried information. If the overtime date is far away from the current date, the staff needs to spend more time to query, and the operation is cumbersome. In addition, the operation threshold is high for on-site personnel who are not familiar with the operation of smart devices, which may cause incorrect operation, poor user experience, and the reliability of attendance records cannot be guaranteed. Summary of the invention
[0004] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention proposes an intelligent attendance method, system, device, and storage medium based on punch-in information, which can automatically accumulate excess working hours and automatically compensate for absence hours using excess working hours without the need for staff operation, thereby ensuring the accuracy of attendance records.
[0005] In a first aspect, an embodiment of the present invention provides an intelligent attendance method based on punch-in information, which is applied to an intelligent attendance system. The method includes:
[0006] Determine a first working time based on first punch-in information of a first account on a first date, determine a reference time based on the shift information of the first account on the first date, and determine a difference between the first working time and the reference time as a deviation time, wherein the first date is any attendance date in the attendance time period;
[0007] When the deviation duration satisfies the first condition or the second condition, the excess duration is updated based on the deviation duration, and the attendance status of the first date is marked as normal, wherein the first condition is that the deviation duration is greater than zero, and the second condition is that the deviation duration is less than zero, and the absolute value of the deviation duration is less than or equal to the excess duration;
[0008] When the deviation duration satisfies the third condition, the attendance status of the first date is marked as absent, and the deviation duration is recorded, wherein the third condition is that the deviation duration is less than zero, and the absolute value of the deviation duration is greater than the excess duration;
[0009] When the excess duration after updating on the second date is greater than or equal to the deviation duration, after compensating the deviation duration based on the excess duration, marking the attendance status of the first date as normal, wherein the second date is any attendance date after the first date within the attendance time period;
[0010] When an attendance statistics instruction based on the attendance time period is obtained, an attendance record for the first account is generated based on the excess time updated on the third date and the attendance status of each attendance date in the attendance time period, wherein the third date is the last attendance date in the attendance time period.
[0011] According to some embodiments of the present invention, the intelligent attendance system is in communication with a target terminal, the target terminal is a user terminal bound to the first account, and determining the first working hours based on the first punch-in information of the first account on the first date includes:
[0012] When an attendance start signal or an attendance end signal sent by the target terminal is obtained, the first positioning information of the target terminal is obtained, and the preset attendance area of the first account is obtained;
[0013] When the first positioning information is located in the preset attendance area, the time when the attendance start signal is sent is determined as the attendance start time, and the time when the attendance end signal is sent is determined as the attendance end time;
[0014] When the first positioning information is not located in the preset attendance area, updating the first positioning information in real time, and when the updated first positioning information is located in the preset attendance area, determining the update time of the first positioning information as the attendance start time or the attendance end time;
[0015] The first punch-in information is determined based on the attendance start time and the attendance end time.
[0016] According to some embodiments of the present invention, when the deviation duration satisfies the third condition, marking the attendance status of the first date as an absence status, and recording the deviation duration, comprises:
[0017] Obtaining a preset absence queue, wherein the absence queue records a plurality of optional absence dates, and each of the optional absence dates is associated with a corresponding optional absence duration;
[0018] The first date and the deviation duration are added to the absence queue, wherein the first date is the new optional absence date, and the deviation duration is the new optional absence duration.
[0019] According to some embodiments of the present invention, when the excess duration after updating on the second date is greater than or equal to the deviation duration, after compensating the deviation duration based on the excess duration, marking the attendance status of the first date as normal includes:
[0020] After the excess duration is updated on the second date, traversing the absence queue based on the excess duration, determining the optional absence duration that is less than or equal to the excess duration as the candidate absence duration;
[0021] Based on all the candidate absence durations, multiple candidate duration combinations are obtained by permutation and combination, wherein each candidate duration combination includes at least one candidate absence duration, and the sum of all the candidate absence durations in each candidate duration combination is less than or equal to the excess duration;
[0022] Determine the candidate duration combination with the largest number of candidate absence durations as the target duration combination, and determine the candidate absence durations of the target duration combination as the target absence duration;
[0023] The current excess duration is shortened based on the sum of the target absence durations, and the attendance status of the optional absence dates corresponding to each target absence duration is updated to the normal status, wherein when the deviation duration is the target absence duration, the attendance status of the first date is updated to the normal status.
[0024] According to some embodiments of the present invention, when the deviation duration satisfies the first condition or the second condition, updating the excess duration based on the deviation duration includes:
[0025] Obtaining a preset validity period, and determining a first expiration date of the deviation duration based on the preset validity period and the first date;
[0026] Acquire a preset mapping table for the excess duration, record the first expiration date and the deviation duration in the preset mapping table, and extend the excess duration based on the deviation duration;
[0027] After reaching the first expiration date, the excess duration is shortened based on the deviation duration.
[0028] According to some embodiments of the present invention, after determining the difference between the first working duration and the reference duration as the deviation duration, the method further includes:
[0029] When the deviation duration is less than zero, sending an absence reminder message to the first account;
[0030] When obtaining the second punch-in information fed back by the first account based on the absence reminder information, forwarding the second punch-in information to the second account, wherein the second account is the parent account of the first account;
[0031] When confirmation information of the second account based on the second punch-in information is obtained, the first working time and the deviation time are updated based on the second punch-in information.
[0032] According to some embodiments of the present invention, after generating the attendance record of the first account, the method further includes:
[0033] Sending the attendance record to the second account, and pushing the first option and the second option to the second account;
[0034] In response to the second account selecting the first option, updating the first expiration date of the deviation duration based on the preset validity period;
[0035] In response to the second account selecting the second option, the excess time is cleared and the preset mapping table is cleared.
[0036] In a second aspect, an embodiment of the present invention provides an intelligent attendance system based on punch-in information, comprising at least one control processor and a memory for communicating with the at least one control processor; the memory stores instructions executable by the at least one control processor, and the instructions are executed by the at least one control processor so that the at least one control processor can execute the intelligent attendance method based on punch-in information as described in the first aspect above.
[0037] In a third aspect, an embodiment of the present invention provides an electronic device, comprising the intelligent attendance system based on punch-in information as described in the second aspect above.
[0038] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute the intelligent attendance method based on punch-in information as described in the first aspect above.
[0039] According to the embodiment of the present invention, the intelligent attendance method based on punch-in information has at least the following beneficial effects: determining a first working time based on the first punch-in information of a first account on a first date, determining a reference time based on the shift information of the first account on the first date, and determining the difference between the first working time and the reference time as a deviation time, wherein the first date is any attendance date in the attendance time period; when the deviation time satisfies the first condition or the second condition, updating the excess time based on the deviation time, and marking the attendance status of the first date as a normal state, wherein the first condition is that the deviation time is greater than zero, and the second condition is that the deviation time is less than zero, and the absolute value of the deviation time is less than or equal to the excess time; when the deviation time satisfies the third condition, the first day is marked as normal. The attendance status of the first period is marked as absent, and the deviation duration is recorded, wherein the third condition is that the deviation duration is less than zero, and the absolute value of the deviation duration is greater than the excess duration; when the excess duration updated on the second date is greater than or equal to the deviation duration, after compensating the deviation duration based on the excess duration, the attendance status of the first date is marked as normal, wherein the second date is any attendance date after the first date in the attendance time period; when the attendance statistics instruction based on the attendance time period is obtained, the attendance record of the first account is generated based on the excess duration updated on the third date and the attendance status of each attendance date in the attendance time period, wherein the third date is the last attendance date in the attendance time period. According to the technical solution of the embodiment of the present invention, the absence duration of the previous date can be dynamically compensated according to the excess duration updated every day, and the attendance status is updated synchronously, so as to realize automatic adjustment and improve the intelligence and reliability of attendance. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 is a schematic diagram of an intelligent attendance system provided by an embodiment of the present invention;
[0041] Figure 2 is a flow chart of an intelligent attendance method based on punch-in information provided by another embodiment of the present invention;
[0042] Figure 3 is a complete flow chart of an intelligent attendance method based on punch-in information provided by another embodiment of the present invention;
[0043] Figure 4 It is a structural diagram of an intelligent attendance system based on punch-in information provided by another embodiment of the present invention. DETAILED DESCRIPTION
[0044] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0045] In the description of the present invention, it should be understood that descriptions involving orientations, such as up, down, front, back, left, right, etc., and orientations or positional relationships indicated are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.
[0046] In the description of the present invention, "several" means one or more, "more" means more than two, "greater than", "less than", "exceed" etc. are understood as not including the number itself, and "above", "below", "within" etc. are understood as including the number itself. If there is a description of "first" or "second", it is only used for the purpose of distinguishing the technical features, and cannot be understood as indicating or implying the relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.
[0047] In the description of the present invention, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in the present invention in combination with the specific content of the technical solution.
[0048] An embodiment of the present invention provides an intelligent attendance method, system, device, and storage medium based on punch-in information, wherein the intelligent attendance method based on punch-in information includes: determining a first working time based on the first punch-in information of a first account on a first date, determining a reference time based on the scheduling information of the first account on the first date, and determining the difference between the first working time and the reference time as a deviation time, wherein the first date is any attendance date in the attendance time period; when the deviation time satisfies a first condition or a second condition, updating the excess time based on the deviation time, and marking the attendance status of the first date as a normal state, wherein the first condition is that the deviation time is greater than zero, and the second condition is that the deviation time is less than zero, and the absolute value of the deviation time is less than or equal to the excess time; when the deviation time satisfies The third condition is to mark the attendance status of the first date as absent and record the deviation duration, wherein the third condition is that the deviation duration is less than zero and the absolute value of the deviation duration is greater than the excess duration; when the excess duration updated on the second date is greater than or equal to the deviation duration, after compensating the deviation duration based on the excess duration, the attendance status of the first date is marked as normal, wherein the second date is any attendance date after the first date in the attendance time period; when the attendance statistics instruction based on the attendance time period is obtained, the attendance record of the first account is generated based on the excess duration updated on the third date and the attendance status of each attendance date in the attendance time period, wherein the third date is the last attendance date in the attendance time period. According to the technical solution of the embodiment of the present invention, the absence duration of the previous date can be dynamically compensated according to the excess duration updated every day, and the attendance status is updated synchronously, so as to realize automatic adjustment and improve the intelligence and reliability of attendance.
[0049] First, refer to Figure 1 , Figure 1 This is a schematic diagram of an intelligent attendance system provided in an embodiment of the present invention. The intelligent attendance system 10 of this embodiment is communicatively connected with a plurality of user terminals 20 .
[0050] It should be noted that each user terminal 20 can send a punch-in instruction to the smart attendance system 10 through a pre-deployed application. This embodiment does not limit the specific punch-in method. For example, the user terminal 20 can punch in by face recognition, fingerprint punching, password punching, etc. After the punch-in instruction is triggered, the user terminal 20 sends the punch-in information and positioning information to the smart attendance system 10. The smart attendance system 10 determines the working time according to the sending time of the first punch-in information every day, and determines the off-duty time in the same way, thereby determining the working hours of each day. Those skilled in the art are familiar with how to determine the working hours of each day based on the punch-in information, and will not be elaborated here.
[0051] The following is based on the Figure 1 The intelligent attendance system shown is used to further illustrate the technical solution of the embodiment of the present invention.
[0052] Reference Figure 2 , Figure 2 A flowchart of an intelligent attendance method based on punch-in information provided by an embodiment of the present invention includes but is not limited to the following steps:
[0053] S10, determining a first working time based on first punch-in information of a first account on a first date, determining a reference time based on the shift information of the first account on the first date, and determining a difference between the first working time and the reference time as a deviation time, wherein the first date is any attendance date in the attendance time period;
[0054] S20, when the deviation duration satisfies the first condition or the second condition, the excess duration is updated based on the deviation duration, and the attendance status of the first date is marked as normal, wherein the first condition is that the deviation duration is greater than zero, and the second condition is that the deviation duration is less than zero, and the absolute value of the deviation duration is less than or equal to the excess duration;
[0055] S30, when the deviation time meets the third condition, marking the attendance status of the first date as absent, and recording the deviation time, wherein the third condition is that the deviation time is less than zero, and the absolute value of the deviation time is greater than the excess time;
[0056] S40, when the excess duration after update on the second date is greater than or equal to the deviation duration, after compensating the deviation duration based on the excess duration, marking the attendance status of the first date as normal, wherein the second date is any attendance date after the first date in the attendance time period;
[0057] S50, when the attendance statistics instruction based on the attendance time period is obtained, the attendance record of the first account is generated based on the excess time updated on the third date and the attendance status of each attendance date in the attendance time period, wherein the third date is the last attendance date of the attendance time period.
[0058] It should be noted that the first account can generate a punch-in information on each attendance date. Since the present embodiment involves automatic adjustment of leave, the attendance date is not limited to a working day. This embodiment takes any working day as the first date as an example, and the technical solution of this embodiment is executed once a day for intelligent attendance. After obtaining the first punch-in information on the first date, since the first punch-in information must include the attendance start time and the attendance end time, the first working time can be determined according to the time span represented by the first punch-in information. Those skilled in the art are familiar with how to determine the working time based on the punch-in information, and will not be elaborated here. Since the shift information corresponding to the first account is known in advance, for example, the working time on the first date is from time A to time B (A and B are positive numbers), and the reference time is BA. For example, when the first date is a non-working day, the reference time can be determined as 0.
[0059] It should be noted that the attendance time period can be set according to actual needs. For example, if it is set to one month, the first day of each month is the first attendance date, and the last day is the last attendance date.
[0060] It should be noted that if Figure 1 As shown, after determining the reference duration, this embodiment determines the difference between the first working duration and the reference duration as the deviation duration. If the first working duration is greater than the reference duration, that is, the target employee works overtime on that day, the first working duration is greater than the reference duration configured during scheduling, and the deviation duration is a positive number. On the contrary, since the purpose of using this embodiment is to save the manual adjustment of employees, if the target employee has the intention to adjust the day, it only needs to perform a punch-in operation when leaving the post to obtain the first working duration. The intelligent attendance system automatically recognizes that the target employee has the intention to adjust the day on the first date based on the negative deviation duration, and performs subsequent operations to achieve automatic duration compensation. Of course, if the first working duration is equal to the reference duration, the target employee will leave work on time. Since it does not involve the automatic adjustment of the present embodiment, this embodiment does not discuss the scenario where the deviation duration is zero, and it is automatically recorded as normal attendance.
[0061] It should be noted that if Figure 1 As shown, under the first condition, the deviation duration is a positive number, resulting in additional duration beyond the reference duration. This embodiment maintains an excess duration for each first account. When the deviation duration is greater than zero, it is added to the excess duration, and the excess duration is used as the adjustable duration of the first account.
[0062] For example, when the reference duration is 8 hours and the first working duration is 12 hours, the deviation duration is 4 hours, which is extended by 4 hours in the excess duration. In the subsequent process, the 4 hours of absence duration can be deducted to achieve automatic adjustment. Of course, the accumulated deviation duration of each attendance date is different, and it is sufficient to perform the judgment once a day according to the first condition.
[0063] It should be noted that if Figure 1 As shown, under the second condition, the deviation duration is a negative number, and the target employee corresponding to the first account leaves the job early with the intention of taking a leave. At this time, the deviation duration is less than zero, but because the excess duration is greater than the deviation duration, that is, the accumulated excess duration of the first account can cover the deviation duration generated on that day. After shortening the excess duration according to the deviation duration, the first date is marked as normal.
[0064] For example, the reference time is 8 hours, the first working time is 6 hours, and the deviation time is 2 hours. If the excess time is 4 hours, the excess time will be updated to 4-2=2 hours, and the accumulated excess time will be automatically used to adjust 2 hours of rest on the same day. Although the first working time represented by the first punch-in information of the first date is less than the reference time, automatic adjustment can still be achieved, so that the attendance status of the first date is marked as normal.
[0065] It should be noted that if Figure 1 As shown, under the third condition, the deviation duration is negative. Similar to the second condition, the target user has the intention to adjust the day off. Therefore, the first working time represented by the first punch-in information is less than the reference time. However, under the third condition, the excess duration is less than the deviation duration, that is, the excess duration is not enough to offset the deviation duration. This embodiment marks the first date as an absence and records the deviation duration, so that the target employee can first adjust the day off, and compensate for the corresponding deviation duration on the subsequent attendance date in the attendance time period, thereby improving employee experience and attendance flexibility. It is worth noting that the absence status of this embodiment is not an unmodifiable status. If the compensation for the deviation duration of the first date is completed on the subsequent attendance date, the attendance status of the first day can be modified by the user to achieve flexible attendance.
[0066] For example, the reference time is 8 hours, the first working time is 3 hours, and the deviation time is 5 hours. If the excess time is 4 hours, the excess time is not enough to cover the deviation time. The deviation time is recorded as 5 hours, and the excess time is still maintained at 4 hours. The attendance status of the first date is marked as absent.
[0067] It should be noted that if the second date is any attendance date after the first date with a deviation duration greater than zero, and if the deviation duration of an attendance date still meets the third condition, it will not be determined as the second date, but the deviation duration will be recorded using the solution in the third condition. After the excess duration is updated on the second date, if the excess duration can compensate for the deviation duration of the first date, the deviation duration will be used to update the excess duration for the second time on the second date in real time, and since the deviation duration of the first date has been compensated, the attendance status of the first date is adjusted to the normal status, thereby realizing automatic attendance.
[0068] For example, referring to the strength of the third condition above, the deviation time on the first date is 5 hours, the excess time is 4 hours, and the second working time generated on the second date is 10 hours. Based on the reference time of 8 hours, a deviation time of 2 hours is generated. Therefore, the excess time is extended from 4 hours to 6 hours. At this time, the 5 hours of the first date can be deducted, and the 6 hours of excess time updated later can be used to compensate for the 5 hours of deviation time generated earlier. The updated excess time is 1 hour, and the attendance status of the first date is updated to normal.
[0069] It should be noted that this embodiment only uses the information interaction generated on any two days to illustrate the technical solution of this embodiment. The same judgment is performed once every day after the punch-in information is generated, and it will not be repeated here.
[0070] It should be noted that after initiating the attendance statistics instruction, since the excess duration is updated every day, and according to the above embodiment, the excess duration can compensate for the deviation duration previously recorded in real time, it can be determined that after the excess duration is updated on the third date, the deviation duration that can be compensated has been fully compensated. If the deviation duration is still not zero, it can be determined that the target user's absence duration in the current attendance time period is the accumulated deviation duration. If the excess duration is a positive number, it can be determined that the target user has excess working time in the current attendance time period. It is worth noting that in the description of the above second date, the updated excess duration needs to be greater than the deviation duration so that the automatic adjustment of leave can be counted in days, but on the third date, since it is necessary to generate an attendance record, the sum of the deviation duration and the excess duration can be determined as the attendance duration, which is convenient for attendance statistics.
[0071] Exemplarily, the third date is the last day of each month. After the excess duration is updated according to the above embodiment, the excess duration is 2 hours and the deviation duration is 0. Then the first account works 2 hours in excess in the current attendance cycle, and the attendance status of all attendance dates is normal, thereby generating an attendance record. When the deviation duration of date A is 3 hours and the deviation duration of date B is 4 hours, the excess duration of 2 hours can be used to compensate the deviation duration of date A to 1 hour. In the attendance record, it is recorded that date A is absent for 1 hour and date B is absent for 4 hours. Compensation can be made according to the order of the dates, which will not be repeated here.
[0072] It is worth noting that when the excess time is still greater than zero after the attendance record statistics are completed, it can be continued to the next attendance time period, or relevant rewards can be calculated, and it can be adjusted according to actual management needs.
[0073] In addition, in one embodiment, referring to Figure 3The target terminal is a user terminal bound to the first account. In step S10, the first working hours are determined based on the first clock-in information of the first account on the first date, including but not limited to the following steps:
[0074] S11, when an attendance start signal or an attendance end signal sent by a target terminal is obtained, first positioning information of the target terminal is obtained, and a preset attendance area of the first account is obtained;
[0075] S12, when the first positioning information is located in the preset attendance area, the time when the attendance start signal is sent is determined as the attendance start time, and the time when the attendance end signal is sent is determined as the attendance end time;
[0076] S13, when the first positioning information is not located in the preset attendance area, updating the first positioning information in real time, and when the updated first positioning information is located in the preset attendance area, determining the update time of the first positioning information as the attendance start time or the attendance end time;
[0077] S14, determining the first punch-in information based on the attendance start time and the attendance end time.
[0078] It should be noted that if Figure 1 As shown, the first account is an employee account, so each employee account can be bound to a user terminal 20. This embodiment takes any user terminal of the first account as the target terminal as an example, and each employee account can independently execute the technical solution of this embodiment.
[0079] It should be noted that when the target terminal initiates a punch-in operation, the first punch-in information may carry the first positioning information. The target terminal may be an electronic device such as a mobile phone. Acquiring the current positioning information is a technology well known to those skilled in the art.
[0080] It should be noted that after obtaining the first positioning information, since the office areas of property management employees are not necessarily the same and are relatively scattered, this embodiment pre-sets a preset attendance area for the first account, and the target employee can be determined as a valid punch-in after entering the preset attendance area and performing a clock-in operation. For example, for managers working in office buildings, the preset attendance area is the area corresponding to the office building, and for property management personnel on duty at the gate of a community, the preset attendance area can be an area with a certain width radiating from the gate of the community. The specific preset attendance area can be set according to actual needs.
[0081] It should be noted that the attendance start signal and the attendance end signal can be determined by the intelligent attendance system. The first punch-in signal sent by the target terminal to the intelligent attendance terminal every day is the attendance start signal, and the next one is the attendance end signal. This embodiment does not limit the attendance start signal and the attendance end signal to come from the same day, so as to avoid missing recognition of the scenario where employees work overtime across working days.
[0082] It should be noted that when the first positioning information is located in the preset attendance area, the sending time corresponding to the attendance start signal is determined as the attendance start time, and the sending time corresponding to the attendance end signal is determined as the attendance end time.
[0083] It should be noted that, in order to accurately count the working hours, the recognition of the attendance start time and attendance end time in this embodiment occurs in the preset attendance area. When the first positioning information is not located in the preset attendance area, the first account initiates a clock-in at a location outside the preset attendance area. After the intelligent attendance system recognizes this scenario, it updates the first positioning information of the target terminal in real time. When the first positioning information enters the preset attendance area, the update time is determined as the attendance start time or the attendance end time. For example, the first account initiates a clock-in through the target terminal at time 1. At this time, the target terminal is not in the preset attendance area. At time 2, the target terminal enters the preset attendance area, and time 2 is recorded as the attendance start time.
[0084] In addition, in one embodiment, referring to Figure 3 Step S30 specifically includes but is not limited to the following steps:
[0085] S31, obtaining a preset absence queue, wherein the absence queue records a plurality of optional absence dates, and each optional absence date is associated with a corresponding optional absence duration;
[0086] S32, adding the first date and the deviation duration to the absence queue, wherein the first date is a new optional absence date, and the deviation duration is a new optional absence duration.
[0087] It should be noted that there are multiple attendance dates within an attendance time period, and each attendance date independently executes the judgment of this embodiment. This embodiment introduces an absence queue to record all absence dates. After excess time is generated, any optional absence date can be determined from the absence queue for compensation, thereby improving the flexibility of adjustment and compensation.
[0088] It should be noted that the initial state of the absence queue is empty. Each time the third condition is triggered, the current attendance date is recorded as the optional absence date in the absence queue, and the deviation duration generated on that day is determined as the corresponding optional absence duration. Therefore, when the third condition is triggered within the first date, the first date is used as the new optional absence date, the deviation duration is determined as the optional absence duration, and the corresponding optional absence date and optional absence duration are recorded as a set of data in the absence queue, so as to facilitate daily compensation in subsequent operations.
[0089] In addition, in one embodiment, referring to Figure 3 Step S40 specifically includes but is not limited to the following steps:
[0090] S41, after the excess duration is updated on the second date, traverse the absence queue based on the excess duration, and determine the optional absence duration that is less than or equal to the excess duration as the candidate absence duration;
[0091] S42, performing permutations and combinations based on all candidate absence durations to obtain a plurality of candidate duration combinations, wherein each candidate duration combination includes at least one candidate absence duration, and the sum of all candidate absence durations in each candidate duration combination is less than or equal to the excess duration;
[0092] S43, determining the candidate duration combination with the largest number of candidate absence durations as the target duration combination, and determining the candidate absence durations of the target duration combination as the target absence duration;
[0093] S44, shortening the current excess duration based on the sum of the target absence durations, and updating the attendance status of the optional absence dates corresponding to the respective target absence durations to a normal status, wherein when the deviation duration is the target absence duration, updating the attendance status of the first date to a normal status.
[0094] It should be noted that since the absence queue records multiple optional absence dates, after the excess duration is updated on the second date, compensation can be made for any optional absence date that meets the conditions. This embodiment does not limit the compensation to the first date, but compensation can be made for the first date when the deviation duration corresponding to the first date can be compensated.
[0095] It should be noted that this embodiment first traverses the absence queue based on the excess duration. If the excess duration cannot compensate for any optional absence duration, it is not within the scope of discussion of this embodiment. The second date is skipped and the excess duration continues to be accumulated on subsequent attendance dates until the excess duration can compensate for at least one optional absence duration.
[0096] It should be noted that when there is only one candidate absence duration, or there are multiple candidate absence durations, and the excess duration is sufficient to be fully compensated, the candidate absence duration can be directly compensated and the excess duration can be updated. For example, if the target employee works overtime for 12 hours on a non-working day, resulting in 12 hours of excess duration, and the matched optional absence durations include 3 hours, 2 hours, 2 hours, and 5 hours, then all 12 hours can be compensated, and step S42 and step S43 can be skipped, and step S44 can be directly executed.
[0097] It should be noted that when the excess duration is insufficient to compensate for all candidate absence durations, this embodiment performs permutations and combinations based on all candidate absence durations, and each candidate absence duration can be reused for multiple candidate duration combinations. For example, there are candidate absence duration A, candidate absence duration B, and candidate absence duration C, and the combined candidate duration combinations are 6, namely {candidate absence duration A}, {candidate absence duration B}, {candidate absence duration C}, {candidate absence duration A, candidate absence duration B}, {candidate absence duration B, candidate absence duration C}, {candidate absence duration A, candidate absence duration C}, and {candidate absence duration A, candidate absence duration B, candidate absence duration C}. Of course, the sum of the candidate absence durations of each candidate duration combination needs to be less than the excess duration, otherwise it is not within the scope of discussion.
[0098] It should be noted that, in this embodiment, the candidate duration combination with the largest number of candidate absence durations is determined as the target duration combination, so that the excess duration can compensate for as many candidate absence dates as possible. Since the candidate duration combination does not make an exclusive combination of candidate absence durations, the number of target duration combinations must be one. For example, referring to the above combination example, if the sum of candidate absence duration A, candidate absence duration B and candidate absence duration C is less than the excess duration, two target duration combinations {candidate absence duration A} and {candidate absence duration B, candidate absence duration C} will not be matched, and there must be a target duration combination {candidate absence duration A, candidate absence duration B, candidate absence duration C} that meets the conditions. If at this time there is still one {candidate absence duration A, candidate absence duration B, candidate absence duration D} that meets the conditions, and the number of both is 3, the one with the largest sum of candidate absence durations can be selected as the target duration combination.
[0099] It should be noted that after determining the target duration combination, the attendance status of the corresponding attendance date can be determined as normal according to each target absence duration of the target duration combination for excess duration compensation, and the remaining optional absence dates are maintained as absence status.
[0100] In addition, in one embodiment, referring to Figure 3 Step S20 specifically includes but is not limited to the following steps:
[0101] S21, obtaining a preset validity period, and determining a first expiration date of the deviation time based on the preset validity period and the first date;
[0102] S22, obtaining a preset mapping table for excess duration, recording the first expiration date and the deviation duration in the preset mapping table, and extending the excess duration based on the deviation duration;
[0103] S23, after reaching the first expiration date, shortening the excess duration based on the deviation duration.
[0104] It should be noted that the present embodiment further introduces a preset validity period, so that the accumulated deviation duration each day has a certain validity period. For example, the preset validity period is set to 1 month, and the deviation duration generated on the first date is valid for one month. If it is not used to compensate for the target absence duration within one month, the corresponding deviation duration will be deducted from the excess duration, thereby providing more configuration options for intelligent attendance.
[0105] It should be noted that in the above embodiment, when compensating the target absence duration based on the excess duration, the duration close to the expiration date can be preferentially selected for compensation to improve the employee experience. For example, the accumulated excess duration on date A is 2 hours, and the accumulated excess duration on date B is 5 hours. Date A is before date B. If 4 hours need to be compensated, 2 hours of date A are used first, and then 2 hours are obtained from date B for compensation. After compensation, the remaining excess duration is 3 hours of date B.
[0106] In addition, in one embodiment, referring to Figure 3 After executing step S10, the method further includes but is not limited to the following steps:
[0107] S61, when the deviation duration is less than zero, sending an absence reminder message to the first account;
[0108] S62, when obtaining the second punch-in information fed back by the first account based on the absence reminder information, forwarding the second punch-in information to the second account, wherein the second account is the parent account of the first account;
[0109] S63: When the confirmation information of the second account based on the second punch-in information is obtained, the first working time and the deviation time are updated based on the second punch-in information.
[0110] It should be noted that, in this embodiment, absence reminder information is triggered after each attendance date is determined as an optional absence date, and the deviation duration caused by the current date is recorded in the absence reminder information. For example, under the premise of triggering the third condition, the deviation duration is 2 hours, and an absence reminder information is sent to the first account to inform the first account of the absence for 2 hours, and remind the first account to generate 2 hours of excess time as soon as possible to compensate.
[0111] It should be noted that, in this embodiment, after sending the absence reminder information, the first account can feedback the second punch-in information on the target terminal. The second punch-in information can record the actual attendance start time and attendance end time. The second punch-in information is manually reviewed by the second account of the first account superior as a compensation mechanism for missed punch-ins to ensure that the rights and interests of employees are guaranteed.
[0112] For example, the first account forgets to punch in after arriving at time A, punches in at time B to generate the attendance start time, and punches in at time C when it is normal to get off work to generate the attendance end time. At this time, the deviation time is BA, the first working time is CB, the deviation time is D-(CB), and D is the reference time. After sending the absence reminder message to the first account, the first account feedbacks time A as the attendance start time, and the second punching information records time A and sends it to the second account. After receiving the second punching information, the second account manually confirms it, and re-updates the first working time of the first account on that day as CA according to time A, and the deviation time is D-(CA).
[0113] In addition, in one embodiment, referring to Figure 3 After executing step S50, the method further includes but is not limited to the following steps:
[0114] S71, sending the attendance record to the second account, and pushing the first option and the second option to the second account;
[0115] S72, in response to the second account selecting the first option, updating the first expiration date of the deviation duration based on the preset validity period;
[0116] S73, in response to the second account selecting the second option, clearing the excess time and clearing the preset mapping table.
[0117] It should be noted that after the attendance record within the attendance time period is generated, the attendance record will be sent to the second account, the second account can be the account of the attendance management personnel, and the first option and the second option will be pushed to the second account. The second account can choose any option according to actual needs. The first option will continue the current accumulated excess time of the first account, so that the first account can continue to use the accumulated excess time in the previous attendance time period for adjustment and rest compensation in the next attendance time period; when the second account chooses the second option, the accumulated excess time in the current attendance time period will be cleared, and re-accumulated in the next attendance time period. You can choose the first option or the second option according to actual management needs.
[0118] like Figure 4 As shown, Figure 4 : is a structural diagram of an intelligent attendance system based on punch-in information provided by an embodiment of the present invention. The present invention also provides an intelligent attendance system based on punch-in information, including:
[0119] The processor 401 may be implemented by a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;
[0120] The memory 402 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 402 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 402, and the processor 401 calls and executes the intelligent attendance method based on punch-in information in the embodiment of this application;
[0121] Input / output interface 403, used to implement information input and output;
[0122] Communication interface 404, used to realize communication interaction between the device and other devices, which can be realized through wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WI FI, Bluetooth, etc.);
[0123] Bus 405 , which transmits information between various components of the device (e.g., processor 401 , memory 402 , input / output interface 403 , and communication interface 404 );
[0124] The processor 401 , the memory 402 , the input / output interface 403 and the communication interface 404 are connected to each other in communication within the device via the bus 405 .
[0125] An embodiment of the present application also provides an electronic device, including the intelligent attendance system based on punch-in information as described above.
[0126] An embodiment of the present application also provides a storage medium, which is a computer-readable storage medium. The storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned intelligent attendance method based on punch-in information is implemented.
[0127] As a non-transient computer-readable storage medium, the memory can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage devices. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and are implemented to be located in one place, or may also be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.
[0128] It will be appreciated by those skilled in the art that all or some of the steps and systems in the disclosed method above may be implemented as software, firmware, hardware and appropriate combinations thereof. Some physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or may be implemented as hardware, or may be implemented as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or a non-transitory medium) and a communication medium (or a temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that may be used to store desired information and may be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically include computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0129] The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the above-mentioned implementation mode. Technical personnel familiar with the field can also make various equivalent deformations or substitutions under the shared conditions without violating the spirit of the present invention. These equivalent deformations or substitutions are all included in the scope defined by the claims of the present invention.
Claims
1. An intelligent attendance method based on punch-in information, characterized in that: Applied to the intelligent attendance system, the method comprises: Determine a first working time based on first punch-in information of a first account on a first date, determine a reference time based on the shift information of the first account on the first date, and determine a difference between the first working time and the reference time as a deviation time, wherein the first date is any attendance date in the attendance time period; When the deviation duration satisfies the first condition or the second condition, the excess duration is updated based on the deviation duration, and the attendance status of the first date is marked as normal, wherein the first condition is that the deviation duration is greater than zero, and the second condition is that the deviation duration is less than zero, and the absolute value of the deviation duration is less than or equal to the excess duration; When the deviation duration satisfies the third condition, the attendance status of the first date is marked as absent, and the deviation duration is recorded, wherein the third condition is that the deviation duration is less than zero, and the absolute value of the deviation duration is greater than the excess duration; When the excess duration after updating on the second date is greater than or equal to the deviation duration, after compensating the deviation duration based on the excess duration, marking the attendance status of the first date as normal, wherein the second date is any attendance date after the first date within the attendance time period; When an attendance statistics instruction based on the attendance time period is obtained, an attendance record for the first account is generated based on the excess time updated on the third date and the attendance status of each attendance date in the attendance time period, wherein the third date is the last attendance date in the attendance time period.
2. The intelligent attendance method based on punch-in information according to claim 1 is characterized in that: The intelligent attendance system is in communication connection with a target terminal, the target terminal being a user terminal bound to the first account, and determining a first working time based on first clock-in information of the first account on a first date, including: When an attendance start signal or an attendance end signal sent by the target terminal is obtained, the first positioning information of the target terminal is obtained, and the preset attendance area of the first account is obtained; When the first positioning information is located in the preset attendance area, the time when the attendance start signal is sent is determined as the attendance start time, and the time when the attendance end signal is sent is determined as the attendance end time; When the first positioning information is not located in the preset attendance area, updating the first positioning information in real time, and when the updated first positioning information is located in the preset attendance area, determining the update time of the first positioning information as the attendance start time or the attendance end time; The first punch-in information is determined based on the attendance start time and the attendance end time.
3. The intelligent attendance method based on punch-in information according to claim 1 is characterized in that: When the deviation duration satisfies the third condition, marking the attendance status of the first date as absent status and recording the deviation duration, including: Obtaining a preset absence queue, wherein the absence queue records a plurality of optional absence dates, and each of the optional absence dates is associated with a corresponding optional absence duration; The first date and the deviation duration are added to the absence queue, wherein the first date is the new optional absence date, and the deviation duration is the new optional absence duration.
4. The intelligent attendance method based on punch-in information according to claim 3 is characterized in that: When the excess duration after updating on the second date is greater than or equal to the deviation duration, after compensating the deviation duration based on the excess duration, marking the attendance status of the first date as normal, including: After the excess duration is updated on the second date, traversing the absence queue based on the excess duration, determining the optional absence duration that is less than or equal to the excess duration as the candidate absence duration; Based on all the candidate absence durations, multiple candidate duration combinations are obtained by permutation and combination, wherein each candidate duration combination includes at least one candidate absence duration, and the sum of all the candidate absence durations in each candidate duration combination is less than or equal to the excess duration; Determine the candidate duration combination with the largest number of candidate absence durations as the target duration combination, and determine the candidate absence durations of the target duration combination as the target absence duration; The current excess duration is shortened based on the sum of the target absence durations, and the attendance status of the optional absence dates corresponding to each target absence duration is updated to the normal status, wherein when the deviation duration is the target absence duration, the attendance status of the first date is updated to the normal status.
5. The intelligent attendance method based on punch-in information according to claim 1 is characterized in that: When the deviation duration satisfies the first condition or the second condition, updating the excess duration based on the deviation duration includes: Obtaining a preset validity period, and determining a first expiration date of the deviation duration based on the preset validity period and the first date; Acquire a preset mapping table for the excess duration, record the first expiration date and the deviation duration in the preset mapping table, and extend the excess duration based on the deviation duration; After reaching the first expiration date, the excess duration is shortened based on the deviation duration.
6. The intelligent attendance method based on punch-in information according to claim 5 is characterized in that: After determining the difference between the first working duration and the reference duration as the deviation duration, the method further includes: When the deviation duration is less than zero, sending an absence reminder message to the first account; When obtaining the second punch-in information fed back by the first account based on the absence reminder information, forwarding the second punch-in information to the second account, wherein the second account is the parent account of the first account; When confirmation information of the second account based on the second punch-in information is obtained, the first working time and the deviation time are updated based on the second punch-in information.
7. The intelligent attendance method based on punch-in information according to claim 6 is characterized in that: After generating the attendance record of the first account, the method further includes: Sending the attendance record to the second account, and pushing the first option and the second option to the second account; In response to the second account selecting the first option, updating the first expiration date of the deviation duration based on the preset validity period; In response to the second account selecting the second option, the excess time is cleared and the preset mapping table is cleared.
8. An intelligent attendance system based on punch-in information, characterized in that: It includes at least one control processor and a memory for communicating with the at least one control processor; the memory stores instructions that can be executed by the at least one control processor, and the instructions are executed by the at least one control processor so that the at least one control processor can execute the intelligent attendance method based on punch-in information as described in any one of claims 1 to 7.
9. An electronic device, characterized in that: Including the intelligent attendance system based on punch-in information as described in claim 8.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the intelligent attendance method based on punch-in information as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Work attendance statistics system and method
CN106548328A
Data processing method and device, equipment and storage medium
CN114757639A
Attendance card punching method, device and equipment and storage medium
CN117423174A
Overtime attendance management method, device and equipment and storage medium
CN118246894A