Attendance calculation method, device, computer equipment and storage medium

By obtaining and arranging the triggering time points of attendance events and determining attribute tags for attendance calculation, the problem of efficient statistics of multiple attendance events in the same time period is solved, and the statistical efficiency and calculation flexibility are improved.

CN114926148BActive Publication Date: 2025-09-12KINGDEE SOFTWARE(CHINA) CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210689889.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-17
Publication Date
2025-09-12
Estimated Expiration
2042-06-17

AI Technical Summary

Technical Problem

When multiple attendance events may occur in the same time period, it is difficult for existing technologies to efficiently perform attendance event statistics.

Method used

By obtaining the trigger time points of each attendance event in the target attendance shift, arranging them into a time point sequence, determining the attribute tags of adjacent trigger time points, and performing attendance calculation based on the attribute tags that meet the selection conditions, the attendance result is obtained.

Benefits of technology

It improves the statistical efficiency of attendance events, reduces computational complexity, and adapts to various differentiated attendance requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114926148B_ABST
    Figure CN114926148B_ABST
Patent Text Reader

Abstract

The present application relates to an attendance calculation method, apparatus, computer equipment, storage medium, and computer program product. The method comprises: obtaining the trigger time points of each attendance event in a target attendance shift; arranging the trigger time points on a time axis to obtain a time point sequence; determining the attribute tags of each time pair consisting of adjacent trigger time points in the time point sequence; and when the attribute tags meet a selection condition, performing attendance calculation based on the time pairs corresponding to the attribute tags that meet the selection condition to obtain an attendance result. This method can improve the efficiency of attendance calculation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to an attendance calculation method, apparatus, computer equipment, storage medium, and computer program product. Background Art

[0002] With the development of computer technology, attendance management has become an important part of human resources management. When checking employee attendance, multiple attendance events may occur within the same time period. For example, overtime and business trip events may occur in the same time period. When multiple attendance events occur within the same time period, how to efficiently count these events becomes a pressing issue. Summary of the Invention

[0003] Based on this, it is necessary to provide an attendance calculation method, device, computer equipment, computer-readable storage medium and computer program product that can efficiently perform attendance statistics in response to the above technical problems.

[0004] In a first aspect, the present application provides an attendance calculation method. The method comprises:

[0005] Get the triggering time of each attendance event in the target attendance shift;

[0006] Arranging the trigger time points on the time axis to obtain a time point sequence;

[0007] For time pairs consisting of adjacent trigger time points in the time point sequence, determining attribute labels for each of the time pairs;

[0008] When the attribute tag meets the selection condition, attendance calculation is performed according to the time corresponding to the attribute tag meeting the selection condition to obtain the attendance result.

[0009] In a second aspect, the present application further provides an attendance calculation device. The device comprises:

[0010] The acquisition module is used to obtain the triggering time point of each attendance event in the target attendance shift;

[0011] an arrangement module, configured to arrange the trigger time points on a time axis to obtain a time point sequence;

[0012] a determination module, configured to determine, for each time pair consisting of adjacent trigger time points in the time point sequence, an attribute label of each of the time pairs;

[0013] The calculation module is used for performing attendance calculation according to the time corresponding to the attribute tag that meets the selection condition to obtain the attendance result when the attribute tag meets the selection condition.

[0014] In one embodiment, the attribute label includes a label of at least one dimension; the apparatus further includes:

[0015] The acquisition module is further configured to respectively acquire the selection conditions corresponding to the attribute tags of each dimension in response to the condition configuration operation for the attribute tags of each dimension;

[0016] The combination module is further used to combine the selection conditions to obtain a combined selection condition;

[0017] The calculation module is further configured to perform attendance calculation according to the time corresponding to the attribute tag that meets the combination selection condition when the attribute tag meets the combination selection condition.

[0018] In one embodiment, the determining module is further configured to:

[0019] Obtain the tag configuration rules, tag dimensions, and candidate tags under each tag dimension corresponding to the attendance scenario;

[0020] Among the candidate tags under each of the tag dimensions, an attribute tag of each of the time pairs is selected according to the tag configuration rule.

[0021] In one embodiment, the attribute tag is a document tag; and the determination module is further configured to:

[0022] Traversing the trigger time points in the time point sequence, and adjusting the variable value of the document status variable according to the traversed trigger time points;

[0023] When traversing to a starting time point in the time pair, the attribute label of the time pair is determined according to the variable value adjusted for the starting time point.

[0024] In one embodiment, the trigger time point includes the starting point of a shift period; the attribute tag is a period attribute tag; and the determination module is further configured to:

[0025] Traversing the trigger time points in the time point sequence, and if traversing to the starting point of the shift period, adjusting the variable value of the period attribute variable to be consistent with the starting shift period;

[0026] The time period attribute label of the time pair is determined according to the variable value of the time period attribute variable in the time pair.

[0027] In one embodiment, the attribute tag is an attendance status tag; the determination module is further configured to:

[0028] Selecting a time point on the attendance card that triggers a clock-in event from among the trigger time points;

[0029] Determine the effective time point of the attendance card according to the time point of the attendance card and the punching method corresponding to the target attendance shift;

[0030] The attendance status label of the time pair is determined according to the time period attribute label of the time pair and the relationship between the time pair and the valid attendance card time point.

[0031] In one embodiment, the computing module is further configured to:

[0032] Obtaining attendance items configured according to attribute tags of the time pair;

[0033] Calculating the time period length of the time pair corresponding to the attribute tag that meets the selection condition;

[0034] The attendance duration corresponding to the attendance item is determined according to the time period length.

[0035] In one embodiment, the apparatus further comprises:

[0036] A new module is added, configured to respond to a label dimension expansion operation and add candidate labels of the expanded dimension in addition to the candidate labels of the initial dimension;

[0037] The determining module is further configured to:

[0038] Selecting the first attribute label of each time pair from the candidate labels of the initial dimension, and selecting the second attribute label of each time pair from the candidate labels of the expanded dimension;

[0039] The first attribute tag and the second attribute tag constitute the attribute tag of the time pair.

[0040] In one embodiment, the determining module is further configured to:

[0041] Combining adjacent trigger time points in the time point sequence into time pairs;

[0042] The attribute label of each time pair is determined according to the coordinates of each time pair in the two-dimensional coordinate system and the mapping relationship between the coordinates in the two-dimensional coordinate system and the attribute label.

[0043] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are performed:

[0044] Get the triggering time of each attendance event in the target attendance shift;

[0045] Arranging the trigger time points on the time axis to obtain a time point sequence;

[0046] For time pairs consisting of adjacent trigger time points in the time point sequence, determining attribute labels for each of the time pairs;

[0047] When the attribute tag meets the selection condition, attendance calculation is performed according to the time corresponding to the attribute tag meeting the selection condition to obtain the attendance result.

[0048] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the following steps:

[0049] Get the triggering time of each attendance event in the target attendance shift;

[0050] Arranging the trigger time points on the time axis to obtain a time point sequence;

[0051] For time pairs consisting of adjacent trigger time points in the time point sequence, determining attribute labels for each of the time pairs;

[0052] When the attribute tag meets the selection condition, attendance calculation is performed according to the time corresponding to the attribute tag meeting the selection condition to obtain the attendance result.

[0053] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program that, when executed by a processor, implements the following steps:

[0054] Get the triggering time of each attendance event in the target attendance shift;

[0055] Arranging the trigger time points on the time axis to obtain a time point sequence;

[0056] For time pairs consisting of adjacent trigger time points in the time point sequence, determining attribute labels for each of the time pairs;

[0057] When the attribute tag meets the selection condition, attendance calculation is performed according to the time corresponding to the attribute tag meeting the selection condition to obtain the attendance result.

[0058] The attendance calculation method, apparatus, computer device, storage medium, and computer program product described above obtain the triggering time points of each attendance event in a target attendance shift and arrange the triggering time points on a time axis to obtain a time point sequence arranged in chronological order. Therefore, when multiple overlapping attendance events exist within a certain time period of a target attendance shift, the time period within the target attendance shift can be fine-grainedly segmented based on the triggering event points of each attendance event. Then, for time pairs consisting of adjacent triggering time points in the time point sequence, the attribute tags of each time pair are determined, allowing the time pairs to be filtered based on the attribute tags. When the attribute tags meet the selection criteria, attendance calculation is performed based on the time pairs corresponding to the attribute tags that meet the selection criteria to obtain an attendance result. Thus, time pairs can be quickly filtered based on their attribute tags to select the time pairs that need to be counted, improving the efficiency of attendance event statistics and reducing the complexity of attendance calculation. Furthermore, the selection criteria can be customized according to the attendance scenario, adapting to various differentiated attendance requirements and improving the versatility of attendance calculation. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] Figure 1 A diagram showing an application environment of an attendance calculation method in one embodiment;

[0060] Figure 2 Schematic diagram of a flow chart of an attendance calculation method in one embodiment;

[0061] Figure 3 A schematic diagram of attendance shifts in one embodiment;

[0062] Figure 4 is a schematic diagram of a sequence of time points on a time axis in one embodiment;

[0063] Figure 5a A schematic diagram of a flow chart of a method for configuring a combination selection condition in one embodiment;

[0064] Figure 5b A schematic diagram of configuring selection conditions in one embodiment;

[0065] Figure 6 A schematic diagram of a condition configuration page in one embodiment;

[0066] Figure 7 A flowchart of a method for configuring attribute labels according to an attendance scenario in one embodiment;

[0067] Figure 8 A schematic diagram of a tag rule configuration page in one embodiment;

[0068] Figure 9 Schematic diagram of a flow chart of a method for determining attribute labels of time pairs in one embodiment;

[0069] Figure 10 is a schematic diagram of various triggering time points on a time axis in one embodiment;

[0070] Figure 11 Schematic diagram of a flow chart of a method for determining time-period attribute labels in one embodiment;

[0071] Figure 12 A schematic diagram of the starting and ending points of each time period in an attendance shift in one embodiment;

[0072] Figure 13 A flowchart of a method for determining time-based attendance status tags in one embodiment;

[0073] Figure 14 A flowchart of an attendance calculation method according to another embodiment;

[0074] Figure 15 is a structural block diagram of an attendance calculation device in one embodiment;

[0075] Figure 16 is a structural block diagram of an attendance calculation device in one embodiment;

[0076] Figure 17 FIG. 1 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0077] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.

[0078] The attendance calculation method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. The terminal 102 obtains the triggering time points of each attendance event in the target attendance shift; arranges the triggering time points on the time axis to obtain a time point sequence; determines the attribute tags of each time pair composed of adjacent triggering time points in the time point sequence; when the attribute tag meets the selection conditions, the attendance calculation is performed according to the time pair corresponding to the attribute tag that meets the selection conditions to obtain the attendance result. Among them, the terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablets, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc.

[0079] In one embodiment, Figure 2As shown, a method for calculating attendance is provided, which is applied to Figure 1 The terminal in the example is used for illustration. It is understood that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps:

[0080] S202: Obtain the triggering time point of each attendance event in the target attendance shift.

[0081] Among them, the attendance shift is the attendance shift determined according to the attendance scheduling method, including attendance time, attendance frequency, attendance duration, etc. For example, the attendance shift is the day shift on 2022-01-12, the attendance time is 9:00-12:00 and 14:00-17:00, and the attendance frequency is two times. For another example, the attendance shift is the free shift in the first week of March, the attendance time is any time, the attendance frequency is one time, and the attendance duration is two hours. The attendance shift includes multiple attendance periods, such as attendance period, rest period or meal period, etc. For example, Figure 3 As shown, the attendance shift includes attendance periods of 9:00-12:00 and 14:00-18:00, and a rest period of 12:00-14:00. Different attendance shifts can have corresponding punch-in methods. For example, the day shift on Wednesday can be punch-in method 1, the night shift on February 14 can be punch-in method 2, and so on.

[0082] Among them, attendance events are attendance-related events that occur during an attendance shift, including punch-in events, preset events for an attendance shift, and events triggered based on attendance documents. Punch-in events can be, for example, events such as punching in or out. Preset events for an attendance shift are events that are automatically triggered according to the provisions of the attendance shift, such as events that trigger the start of an attendance period. Events triggered based on attendance documents can be, for example, leave events triggered by leave requests and business trip events triggered by business trip requests. The triggering time point is the time point when an attendance event is triggered, such as the time point when a leave event is triggered or the time point when a punch-in event is triggered.

[0083] In one embodiment, the triggering time point includes a valid time card time point; S202 specifically includes: determining the valid time card time point based on the punching method and the time point at which the punching event is triggered. The punching method is the punching rule specified in the attendance shift. For example, the punching method can be a method of punching in at a specified time point, or the punching method can be a method of punching in at any time point within the shift. Specifically, if the punching method is a method of punching in at any time point within the shift, if the punching event is triggered at any time point, it is determined that the attendance person has signed in and out normally, and the valid time card time points are the sign-in and sign-out time points specified in the attendance shift.

[0084] S204: Arrange the trigger time points on the time axis to obtain a time point sequence.

[0085] Among them, the time point sequence is a sequence of time points arranged in chronological order on the time axis. For example, Figure 4 As shown, the time point sequence is a sequence consisting of trigger time points 9:10, 10:00, 10:40, 11:20, 13:30 and 16:30 arranged on the time axis.

[0086] In one embodiment, after S204 , the process further includes: adding time point information to the time point sequence arranged on the time axis, where the time point information includes the shift period to which the triggering time point belongs, the order of the triggering time point and the time point on the attendance card, and the like.

[0087] S206 , for time pairs consisting of adjacent trigger time points in the time point sequence, determine the attribute label of each time pair.

[0088] Among them, attribute tags are tags used to describe the characteristics or attributes of time in attendance, such as document tags, time period attribute tags, attendance status tags, etc. Attribute tags can have multiple dimensions, and each dimension can include multiple tags. The dimensions of attribute tags can include attendance status dimension, time period attribute dimension, document dimension, etc. Attendance status tags under the attendance status dimension include normal sign-in tags, late tags, early leave tags, etc.; time period attribute tags under the time period attribute dimension include attendance time tags, rest time tags, or overtime time tags, etc.; document tags under the document dimension include vacation order tags, business trip order tags, etc.

[0089] In one embodiment, the dimensions of the attribute tags can be expanded, and the number of attribute tags under each dimension can be adjusted by adding, deleting, or modifying. For example, when an attendance item that needs to be counted is added, the dimensions of the attribute tags and the number of tags under the dimension are expanded accordingly.

[0090] In one embodiment, S206 specifically includes: for time pairs consisting of adjacent trigger time points in the time point sequence, obtaining time point information corresponding to each trigger time point, and determining attribute labels of each time pair according to the time point information.

[0091] S208: When the attribute tag meets the selection condition, attendance calculation is performed according to the time corresponding to the attribute tag meeting the selection condition to obtain the attendance result.

[0092] The selection condition is a condition for filtering time pairs based on attribute tags, which can be configured through the condition configuration operation. For example, the selection condition is "Time period attribute tag is Attendance period"; another example is "Attendance status tag is Normal attendance"; another example is "Document tag is Overtime order, and Time period attribute is Out-of-shift period."

[0093] The terminal filters time pairs based on the selection criteria, selecting those with attribute tags that meet the selection criteria from all time pairs on the timeline. Attendance is then calculated based on these filtered time pairs to obtain the attendance results. For example, if the selection criteria is "Time period attribute tag is Attendance period," the terminal filters all time pairs with the Time period attribute tag being Attendance period. Based on these filtered time pairs, the terminal calculates the total duration of these time pairs, thereby obtaining the attendance duration.

[0094] In the above embodiment, the trigger time points of each attendance event in the target attendance shift are obtained and arranged on the time axis to obtain a time point sequence arranged in chronological order. Therefore, when multiple overlapping attendance events exist in a certain time period of the target attendance shift, the time period in the target attendance shift can be fine-grainedly split according to the trigger event points of each attendance event. Then, for the time pairs consisting of adjacent trigger time points in the time point sequence, the attribute tags of each time pair are determined, so that each time pair can be filtered according to the attribute tags. When the attribute tags meet the selection conditions, the attendance calculation is performed based on the time pairs corresponding to the attribute tags that meet the selection conditions to obtain the attendance results. Thus, the time pairs can be quickly filtered using pre-configured selection conditions to select the time pairs that need to be counted, thereby improving the efficiency of attendance event statistics and reducing the complexity of attendance calculation. In addition, the selection conditions can be customized according to the attendance scenario, so that it can adapt to various differentiated attendance needs and improve the versatility of attendance calculation.

[0095] In one embodiment, the attribute label includes a label of at least one dimension; Figure 5a As shown, S208 includes S502-S504 before S208, and S208 specifically includes S506:

[0096] S502 : In response to the condition configuration operation for the attribute tag of each dimension, respectively obtain the selection conditions corresponding to the attribute tag of each dimension.

[0097] Condition configuration involves configuring selection conditions for attribute labels within each dimension. For example, a condition configuration operation might configure selection conditions for the time period attribute dimension, where the configured selection condition might be "Time period attribute label equals attendance period." Another example might be configuring selection conditions for the document dimension, where the configured selection condition might be "Document label includes leave requests."

[0098] In one embodiment, the conditional configuration operation can be an operation triggered on the conditional configuration page. Figure 5b As shown, the conditional configuration operation includes a selection operation of selecting a dimension to be configured and a configuration operation of configuring a selection condition for the selected dimension.

[0099] S504: Combine the selection conditions to obtain a combined selection condition.

[0100] After the terminal obtains the selection conditions corresponding to the attribute labels of each dimension, it can combine the selection conditions through logical operations to obtain the combined selection conditions. Logical operations include AND operations, OR operations, and NAND operations. For example, Figure 6 As shown, T01-T04 are selection conditions configured for the date dimension, time period dimension, attendance status dimension, and document dimension, respectively. The terminal combines these selection conditions T01-T04 through logical operations to obtain a combined selection condition. For example, the resulting combined selection condition can be "(T01 and T03) or T02 or (T01 and T04)."

[0101] S506: When the attribute tags meet the combination selection condition, attendance calculation is performed according to the time pairs corresponding to the attribute tags meeting the combination selection condition.

[0102] If the attribute tags of the time pair meet the combination selection conditions, attendance calculation is performed based on the time pair. For example, if the attribute tags of the time pair include "attendance period, leave request", and the combination selection conditions are "(period attribute tag = attendance period) and (document tag = leave request)", attendance calculation is performed based on the time pair.

[0103] In the above embodiment, in response to the conditional configuration operation for the attribute tags of each dimension, the selection conditions corresponding to the attribute tags of each dimension are obtained respectively. Then, the selection conditions are combined to obtain the combined selection conditions. When the attribute tags meet the combined selection conditions, the attendance calculation is performed according to the time corresponding to the attribute tags that meet the combined selection conditions. In this way, the selection conditions of each dimension can be freely combined simply and quickly, which improves the efficiency of configuring the selection conditions and can adapt to various differentiated attendance requirements. Compared with writing the logic of the condition configuration combination into the system in a hard-coded manner, the versatility and scalability of the attendance calculation method are improved.

[0104] In one embodiment, Figure 7 As shown, S206 specifically includes the following steps:

[0105] S702: Obtain tag configuration rules, tag dimensions, and candidate tags under each tag dimension corresponding to the attendance scenario.

[0106] An attendance scenario is a specific scenario consisting of the time, location, and method of attendance. Due to the varying attendance management methods used by different countries, enterprises, organizations, or positions, attendance scenarios may differ for each country, enterprise, organization, or position. For example, an attendance scenario could be for a foreign enterprise or a public institution; or it could be for a technical position, an administrative position, or a field position.

[0107] The tag configuration rule is a rule for assigning tags to time pairs. For example, the tag configuration rule may include a rule for configuring attribute tags under the document dimension, or a rule for configuring tags under the time period attribute dimension.

[0108] In one embodiment, the tag configuration rules can be configured on the tag rule configuration page. For example, Figure 8 As shown, the tag configuration rules include multiple configuration rules such as time period card point relationship configuration, attendance status configuration, and attendance item mapping configuration.

[0109] S704 : Select attribute labels for each time pair from candidate labels under each label dimension according to label configuration rules.

[0110] Each tag dimension includes multiple candidate tags. The terminal selects a matching attribute tag from the candidate tags within each tag dimension based on the tag configuration rules. For example, the candidate tags for the time attribute dimension include "Attendance Time, Rest Time, and Off-Shift Time." Based on the tag configuration rules, the terminal selects the attribute tag corresponding to the time pair "9:10-9:50" as "Attendance Time" from the candidate tags within the time attribute dimension.

[0111] In the above embodiment, the tag configuration rules, tag dimensions, and candidate tags for each tag dimension corresponding to the attendance scenario are obtained. From the candidate tags for each tag dimension, the attribute tags for each time pair are selected according to the tag configuration rules. This allows for differentiated tag assignments to be made to time pairs according to the tag configuration rules for various attendance scenarios, expanding the applicable application scenarios. Furthermore, there is no need to develop separate programs for each attendance scenario, saving development costs.

[0112] In one embodiment, the attribute tag is a document tag; Figure 9 As shown, S206 specifically includes the following steps:

[0113] S902: traverse the trigger time points in the time point sequence, and adjust the variable value of the document status variable according to the traversed trigger time points.

[0114] Among them, the document tag is a tag used to describe the document status of a time pair. When a time pair is marked with a certain document tag, the document status corresponding to the document tag exists within the time period of the time pair. For example, if the time pair of 10:10-10:50 is marked with the tag "Leave Application", then the leave status corresponding to the leave application exists in the time period of 10:10-10:50. The document status variable is a variable used to record the document status. The document status is the status corresponding to various attendance documents. For example, during the leave time corresponding to the leave application, the document status includes the leave status corresponding to the leave application. For example, after the business trip time corresponding to the business trip application ends, the document status does not include the business trip status corresponding to the business trip application.

[0115] In one embodiment, S902 specifically includes: if the trigger time point traversed to is the starting point of the document state, adding the state value used to represent the document state in the variable value of the document state variable; if the trigger time point traversed to is the ending point of the document state, deleting the state value used to represent the document state in the variable value of the document state variable. Specifically, Figure 10 As shown, when traversing to trigger time point A, since trigger time point A is the starting point of the leave application, the state value used to indicate the leave status is added to the variable value of the document state variable, and the document state variable s = {leave}. When traversing to trigger time point B, since trigger time point B is the end point of the leave application, the state value used to indicate the leave status is deleted from the variable value of the document state variable, and the document state variable s = {empty}. When traversing to trigger time point C, since trigger time point C is the starting point of the business trip application, the state value used to indicate the business trip status is added to the variable value of the document state variable, and the document state variable s = {business trip}. When traversing to trigger time point D, since trigger time point D is the starting point of the overtime application, the state value used to indicate the overtime status is added to the variable value of the document state variable, and the document state variable s = {business trip, overtime}. When traversing to trigger time point E, since trigger time point E is the end point of the business trip form, the state value indicating the business trip status is deleted from the document state variable value. At this time, the document state variable s = {Overtime}. When traversing to trigger time point F, since trigger time point F is the end point of the overtime form, the state value indicating the overtime status is deleted from the document state variable value. At this time, the document state variable s = {NULL}.

[0116] S904 , when traversing to the starting time point in the time pair, determining the attribute label of the time pair according to the variable value adjusted for the starting time point.

[0117] When traversing to the starting time point in the time pair, the variable value of the document status variable is adjusted according to the starting time point, and then the attribute label of the time pair is determined according to the variable value of the document status variable after adjustment. For example, Figure 10 As shown, according to the variable value s={leave} adjusted according to the trigger time point A, the document label of time pair AB is the leave label; according to the variable value s={business trip, overtime} adjusted according to the trigger time point D, the document label of time pair DE is the "leave + overtime" label.

[0118] In the above embodiment, the trigger time points in the time point sequence are traversed, and the variable value of the document status variable is adjusted based on the traversed trigger time point. When the traversal reaches the starting time point in the time pair, the document label for the time pair is determined based on the variable value adjusted for the starting time point. This allows the document status to be recorded using the document status variable, improving the efficiency of determining the document label.

[0119] In one embodiment, the trigger time point includes the starting point of the shift period; the attribute tag is the period attribute tag; Figure 11 As shown, S206 specifically includes the following steps:

[0120] S1102, traverse the trigger time points in the time point sequence, and if the traversal reaches the starting point of the shift period, adjust the variable value of the period attribute variable to be consistent with the starting shift period.

[0121] The shift period starting point is the starting time of each shift period in the target attendance shift, such as the attendance period starting point or the break period starting point. The period attribute label is a label used to indicate the period to which the time pair belongs. For example, if the period in a time pair is a break period, the period attribute label for the time pair is "break period."

[0122] The terminal traverses the trigger time points in the time point sequence. If it traverses to the starting point of the shift period, it changes the variable value of the time period attribute variable according to the starting point of the shift period. For example, Figure 12 As shown, when traversing to point A, since point A is the starting point of the attendance period, the variable value t of the time period attribute variable is changed to t=attendance period; when traversing to point B, since point B is the starting point of the rest period, the variable value t of the time period attribute variable is changed to t=rest period; when traversing to point C, since point C is the starting point of the attendance period, the variable value t of the time period attribute variable is changed to t=attendance period; when traversing to point D, since point D is the starting point of the off-shift period, the variable value t of the time period attribute variable is changed to t=off-shift period.

[0123] S1104: Determine the time period attribute label of the time pair according to the variable value of the time period attribute variable in the time pair.

[0124] For a time pair consisting of adjacent trigger time points in the time point sequence, the terminal determines the time period attribute label of the time pair based on the variable value of the time period attribute variable in the time pair. Figure 12 As shown, for the AB time pair, since the variable value t of the time period attribute variable in the AB period is t=attendance period, the time period attribute label of the AB event pair is determined to be "attendance period".

[0125] In the above embodiment, the trigger time points in the time point sequence are traversed. When the traversal reaches the starting point of a shift period, the value of the time period attribute variable is adjusted to be consistent with the starting shift period. Then, based on the value of the time period attribute variable at the time pair, the time period attribute label for the time pair is determined. This allows the time period attribute variable to record the time period attributes of each time period, improving the efficiency of determining the time period attribute label.

[0126] In one embodiment, the attribute tag is an attendance status tag; Figure 13 As shown, S206 specifically includes the following steps:

[0127] S1302: Select the time point on the attendance card that triggers the clock-in event from the trigger time point.

[0128] The attendance status tag represents the attendance status of a time pair. Attendance status includes regular attendance, lateness, or early departure. A punch-in event records attendance by punching in, including check-in and check-out events. The time card time point is the time point that triggers the punch-in event, including check-in and check-out times.

[0129] S1304: Determine the valid time point on the attendance card based on the time point on the attendance card and the punch-in method corresponding to the target attendance shift.

[0130] The punch-in method is the punch-in rule specified for the attendance shift. For example, Punch-in Method 1 could be "If a punch-in event is triggered at any time between 9:00 and 18:00, the person being checked is considered to have triggered the check-in and check-out events at 9:00 and 18:00, respectively." Alternatively, Punch-in Method 2 could be "For people exempt from punching, there's no need to trigger a punch-in event; that is, the check-in and check-out events are considered to have been triggered at 9:00 and 18:00, respectively." For Punch-in Method 1, as long as the time on the time card is between 9:00 and 18:00, the valid time card times are determined to be 9:00 and 18:00. For Punch-in Method 2, even if no punch-in event occurs within the target attendance shift, the valid time card times are still determined to be 9:00 and 18:00.

[0131] S1306: Determine the attendance status label of the time pair according to the time period attribute label of the time pair and the relationship between the time pair and the valid time card time point.

[0132] The relationship between the time pair and the valid time card time point includes, for example, whether the time pair is before the valid time card time point or after the valid time card time point. The terminal determines the time pair's attendance status label based on the time period attribute label and the relationship between the time pair and the valid time card time point. For example, if the time period attribute label of the time pair is attendance period and the time pair is before the valid time card time point, the time pair's attendance status label is determined to be late.

[0133] In the above embodiment, the time card time point that triggers the clock-in event is selected from the trigger time points. Based on the time card time point and the clock-in method corresponding to the target attendance shift, the valid time card time point is determined. The attendance status tag for the time pair is determined based on the time period attribute tag of the time pair and the relationship between the time pair and the valid time card time point. This allows for quick and convenient determination of the attendance status tag for a time pair in various clock-in scenarios, expanding the applicable attendance scenarios.

[0134] In one embodiment, S208 specifically includes: obtaining attendance items configured according to attribute tags of time pairs; calculating the time period length of the time pairs corresponding to the attribute tags that meet the selection conditions; and determining the attendance duration corresponding to the attendance items according to the time period length.

[0135] Among them, attendance items are entries used to define attendance content, including business trip items, overtime items, leave items, night shift items, or normal attendance items. One or more attendance items can be configured for each time pair, and each attendance item can include two aspects: attendance duration and attendance times. The terminal can configure attendance items based on the attribute labels of the time pair. For example, for a time pair with the time period attribute label as attendance time period, the attendance item is configured as attendance item; for another example, for a time pair with the document label as leave form, the attendance item is configured as leave form, etc.; for another example, for a time pair with the time period attribute label as rest period and the document label as overtime form, the attendance item is configured as overtime item, etc.

[0136] The terminal selects the attribute tags of the time pairs based on the selection criteria. By filtering the attribute tags of the time pairs, the terminal selects the time pairs corresponding to the attribute tags that meet the selection criteria. These selected time pairs are the time pairs required for attendance calculation for the attendance item. Therefore, the terminal calculates the time period length for these selected time pairs. Based on this time period length, the attendance duration corresponding to the attendance item is determined. For example, if the attribute tags of the time pair are "rest day, overtime order, normal clocking in," the attendance item is determined to be overtime, and the overtime duration is determined based on the time period length of this time pair.

[0137] In the above embodiment, attendance items configured based on the attribute tags of time pairs are obtained, and the time period lengths corresponding to the time pairs whose attribute tags meet the selection criteria are calculated. Based on the time period lengths, the attendance duration corresponding to the attendance items is determined. This allows for flexible configuration of attendance items based on the attribute tags of each time pair, improving the flexibility of attendance calculation. Furthermore, time pairs are screened based on their attribute tags, and the attendance duration corresponding to the screened time pairs is determined based on the screened time pairs, improving the efficiency of attendance calculation.

[0138] In one embodiment, before S206, it also includes: in response to the label dimension expansion operation, in addition to the candidate labels of the initial dimension, adding candidate labels of the extended dimension; S206 specifically includes: from the candidate labels of the initial dimension, selecting the first attribute label of each time pair respectively, and from the candidate labels of the extended dimension, selecting the second attribute label of each time pair respectively; the attribute label of the time pair is composed of the first attribute label and the second attribute label.

[0139] In specific attendance scenarios, if the attendance management method changes and additional attendance content is needed, the attribute tag dimension can be expanded. In addition to the candidate tags in the initial dimension, new candidate tags in the extended dimension can be added. For example, if a company initially only has day shifts, only the attendance duration of the day shift needs to be counted. However, if night shifts are added, the attendance duration of the night shift needs to be counted. In this case, an attribute tag in the shift type dimension can be added. Then, the attribute tags for the time pair can be selected from the candidate tags in the initial dimension and the candidate tags in the extended dimension.

[0140] In the above embodiment, in response to the tag dimension expansion operation, candidate tags for the expanded dimension are added in addition to the candidate tags for the initial dimension. The first attribute tag for each time pair is selected from the candidate tags for the initial dimension, and the second attribute tag for each time pair is selected from the candidate tags for the expanded dimension. The first and second attribute tags form the attribute tags for the time pair. This allows the attribute tag dimensions to be expanded based on changes to the attendance management method, improving the scalability of the attendance calculation method.

[0141] In one embodiment, S204 also includes: grouping adjacent trigger time points in the time point sequence into time pairs; determining the attribute labels of the time pairs based on the coordinates of each time pair in the two-dimensional coordinate system and the mapping relationship between the coordinates and the attribute labels in the two-dimensional coordinate system.

[0142] The terminal pre-configures the mapping relationship between coordinate points and attribute labels in the two-dimensional coordinate system. This means that for each coordinate point in the two-dimensional coordinate system, you can pre-configure the attribute label corresponding to the coordinate point. For example, the attribute label for the coordinate point (t1, t2) can be configured as {Rest Period, Overtime Order, Business Trip Order}. By configuring the attribute label for each coordinate point in the two-dimensional coordinate system, a specific mapping relationship is established between each coordinate point and the attribute label.

[0143] In one embodiment, the terminal may determine the coordinates of the time pair in the two-dimensional coordinate system by using the starting time point of the time pair as the horizontal coordinate and the ending time point of the time pair as the vertical coordinate.

[0144] In the above embodiment, the attribute labels of the time pairs are determined based on the coordinates of the time pairs in the two-dimensional coordinate system and the pre-configured mapping relationship between the coordinates in the two-dimensional coordinate system and the attribute labels. This allows for rapid determination of the attribute labels of the time pairs, improving the efficiency of labeling the time pairs.

[0145] In one embodiment, Figure 14 As shown, the attendance calculation method includes the following steps:

[0146] S1402: Obtain the triggering time point of each attendance event in the target attendance shift.

[0147] S1404: Arrange the trigger time points on the time axis to obtain a time point sequence.

[0148] S1406 , for a time pair consisting of adjacent trigger time points in the time point sequence, obtain tag configuration rules corresponding to the attendance scenario, tag dimensions including initial dimensions and extended dimensions, and candidate tags under each tag dimension.

[0149] S1408 , according to the label configuration rule, select the first attribute label of each time pair from the candidate labels of the initial dimension, and select the second attribute label of each time pair from the candidate labels of the extended dimension.

[0150] S1410: compose an attribute tag of a time pair from a first attribute tag and a second attribute tag.

[0151] S1412 : In response to the condition configuration operation for the attribute tag of each dimension, respectively obtain the selection conditions corresponding to the attribute tag of each dimension.

[0152] S1414, combining the selection conditions to obtain a combined selection condition.

[0153] S1416: When the attribute tag meets the combination selection condition, the attendance item configured according to the attribute tag of the time pair is obtained.

[0154] S1418, calculating the time period length of the time pair corresponding to the attribute tag that meets the selection condition; and determining the attendance duration corresponding to the attendance item according to the time period length.

[0155] For the specific contents of S1402 to S1418 above, please refer to the specific implementation process above.

[0156] It should be understood that, although the various steps in the flowcharts involved in the various embodiments described above are displayed in sequence according to the instructions of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the various embodiments described above can include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of steps or stages in other steps.

[0157] Based on the same inventive concept, embodiments of the present application also provide an attendance calculation device for implementing the aforementioned attendance calculation method. The implementation solution provided by this device is similar to the implementation solution described in the aforementioned method. Therefore, the specific limitations in one or more of the following embodiments of the attendance calculation device can be found in the above-mentioned limitations on the attendance calculation method and will not be further elaborated here.

[0158] In one embodiment, Figure 15 As shown, an attendance calculation device is provided, including: an acquisition module 1502, an arrangement module 1504, a determination module 1506 and a calculation module 1508, wherein:

[0159] The acquisition module 1502 is used to obtain the triggering time point of each attendance event in the target attendance shift;

[0160] Arrangement module 1504, used to arrange the trigger time points on the time axis to obtain a time point sequence;

[0161] A determination module 1506 is configured to determine an attribute label of each time pair consisting of adjacent trigger time points in the time point sequence;

[0162] The calculation module 1508 is used to perform attendance calculation according to the time corresponding to the attribute tag that meets the selection condition when the attribute tag meets the selection condition, and obtain the attendance result.

[0163] In the above embodiment, the trigger time points of each attendance event in the target attendance shift are obtained and arranged on the time axis to obtain a time point sequence arranged in chronological order. Therefore, when multiple overlapping attendance events exist within a certain time period of the target attendance shift, the time period in the target attendance shift can be fine-grainedly split according to the trigger event points of each attendance event. Then, for the time pairs consisting of adjacent trigger time points in the time point sequence, the attribute tags of each time pair are determined, so that each time pair can be filtered according to the attribute tags. When the attribute tags meet the selection criteria, attendance calculation is performed based on the time pairs corresponding to the attribute tags that meet the selection criteria to obtain the attendance results. Thus, the time pairs can be quickly filtered based on their attribute tags to select the time pairs that need to be counted, thereby improving the efficiency of attendance event statistics and reducing the complexity of attendance calculation. Furthermore, the selection criteria can be customized according to the attendance scenario, thereby adapting to various differentiated attendance requirements and improving the versatility of attendance calculation.

[0164] In one embodiment, the attribute label includes a label of at least one dimension; Figure 16 As shown, the device also includes:

[0165] The acquisition module 1502 is further configured to respectively acquire the selection conditions corresponding to the attribute tags of each dimension in response to the condition configuration operation for the attribute tags of each dimension;

[0166] The combining module 1510 is further used to combine the selection conditions to obtain a combined selection condition;

[0167] The calculation module 1508 is further configured to perform attendance calculation based on the time pairs corresponding to the attribute tags that meet the combination selection conditions when the attribute tags meet the combination selection conditions.

[0168] In one embodiment, the determining module 1506 is further configured to:

[0169] Obtain the tag configuration rules, tag dimensions, and candidate tags for each tag dimension corresponding to the attendance scenario;

[0170] Among the candidate labels under each label dimension, the attribute label of each time pair is selected according to the label configuration rules.

[0171] In one embodiment, the attribute tag is a document tag; the determination module is further configured to:

[0172] Traverse the trigger time points in the time point sequence and adjust the variable values ​​of the document status variables according to the traversed trigger time points;

[0173] When traversing to the starting time point in the time pair, the attribute label of the time pair is determined according to the variable value adjusted for the starting time point.

[0174] In one embodiment, the trigger time point includes the start point of the shift period; the attribute tag is a period attribute tag; the determination module 1506 is further used to:

[0175] Traverse the trigger time points in the time point sequence. If the traversal reaches the starting point of the shift period, adjust the variable value of the time period attribute variable to be consistent with the starting shift period;

[0176] The time period attribute label of the time pair is determined according to the variable value of the time period attribute variable in the time pair.

[0177] In one embodiment, the attribute tag is an attendance status tag; the determination module 1506 is further configured to:

[0178] Select the time point on the attendance card that triggers the punch-in event in the trigger time point;

[0179] Determine the effective time point of the attendance card based on the time point of the attendance card and the punch-in method corresponding to the target attendance shift;

[0180] The attendance status label of the time pair is determined according to the time period attribute label of the time pair and the relationship between the time pair and the valid time card time point.

[0181] In one embodiment, the calculation module 1508 is further configured to:

[0182] Get the attendance items configured based on the attribute tags of the time pair;

[0183] Calculate the time period length of the time pair corresponding to the attribute tag that meets the selection conditions;

[0184] Determine the attendance duration corresponding to the attendance item based on the time period length.

[0185] In one embodiment, the apparatus further comprises:

[0186] A new adding module 1512 is configured to add candidate tags of an extended dimension in addition to the candidate tags of the initial dimension in response to the tag dimension expansion operation;

[0187] The determination module 1506 is further configured to:

[0188] Select the first attribute label of each time pair from the candidate labels of the initial dimension, and select the second attribute label of each time pair from the candidate labels of the expanded dimension;

[0189] The attribute tag of the time pair is composed of the first attribute tag and the second attribute tag.

[0190] In one embodiment, the determining module 1506 is further configured to:

[0191] The adjacent trigger time points in the time point sequence are combined into time pairs;

[0192] The attribute label of the time pair is determined according to the coordinates of each time pair in the two-dimensional coordinate system and the mapping relationship between the coordinates in the two-dimensional coordinate system and the attribute label.

[0193] Each module in the attendance calculation device can be implemented in whole or in part through software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in the computer device in the form of software, so that the processor can call and execute the corresponding operations of each module.

[0194] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 17 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface, the display unit and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a method for calculating attendance is implemented. The display unit of the computer device is used to form a visually visible image, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device casing, or an external keyboard, touchpad or mouse, etc.

[0195] Those skilled in the art will understand that Figure 17 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0196] In one embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program, and the processor implements the steps in the above method embodiments when executing the computer program.

[0197] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0198] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0199] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions.

[0200] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory may include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processor involved in the various embodiments provided herein may be, but are not limited to, a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, and the like.

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

[0202] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.

Claims

1. A method for calculating attendance, characterized in that: The method comprises: Get the triggering time of each attendance event in the target attendance shift; Arranging the trigger time points on a time axis to obtain a time point sequence, and adding time point information to the time point sequence arranged on the time axis, wherein the time point information includes the shift period to which the trigger time point belongs and the order relationship between the trigger time point and the time point on the attendance card; For time pairs consisting of adjacent trigger time points in the time point sequence, obtaining time point information corresponding to the adjacent trigger time points, and determining attribute tags for each of the time pairs based on the time point information, wherein the attribute tags are at least one of a document tag, a time period attribute tag, and an attendance status tag, the document tag includes at least one of a vacation ticket, a business trip ticket, and an overtime ticket, the time period attribute tag is a rest period or an attendance period, and the attendance status tag includes normal attendance, lateness, or early departure; When the attribute tag meets the selection condition configured for the corresponding attribute tag, attendance calculation is performed according to the time corresponding to the attribute tag meeting the selection condition to obtain the attendance result.

2. The method according to claim 1, characterized in that The method further comprises: In response to the condition configuration operation for the attribute tag of each dimension, respectively obtaining the selection conditions corresponding to the attribute tag of each dimension; Combining the selection conditions to obtain a combined selection condition; When the attribute tag satisfies the selection condition configured for the corresponding attribute tag, performing attendance calculation according to the time corresponding to the attribute tag that satisfies the selection condition includes: When the attribute tags satisfy the combination selection condition, attendance calculation is performed according to the time pairs corresponding to the attribute tags satisfying the combination selection condition.

3. The method according to claim 1, characterized in that The step of respectively determining the attribute labels of the time pairs includes: Obtain the tag configuration rules, tag dimensions, and candidate tags under each tag dimension corresponding to the attendance scenario; Among the candidate tags under each of the tag dimensions, an attribute tag of each of the time pairs is selected according to the tag configuration rule.

4. The method according to claim 1, wherein In the case where the attribute tag is a document tag, determining the attribute tag of each time pair includes: Traversing the trigger time points in the time point sequence, and adjusting the variable value of the document status variable according to the traversed trigger time points; When traversing to a starting time point in the time pair, the attribute label of the time pair is determined according to the variable value adjusted for the starting time point.

5. The method according to claim 1, wherein The trigger time point includes the starting point of the shift period; when the attribute tag is a period attribute tag, the attribute tags of each time pair are determined to include: Traversing the trigger time points in the time point sequence, and if traversing to the starting point of the shift period, adjusting the variable value of the period attribute variable to be consistent with the starting shift period; The time period attribute label of the time pair is determined according to the variable value of the time period attribute variable in the time pair.

6. The method according to claim 1, characterized in that In the case where the attribute tag is an attendance status tag, determining the attribute tag of each time pair includes: Selecting a time point on the attendance card that triggers a clock-in event from among the trigger time points; Determine the effective time point of the attendance card according to the time point of the attendance card and the punching method corresponding to the target attendance shift; The attendance status label of the time pair is determined according to the time period attribute label of the time pair and the relationship between the time pair and the valid attendance card time point.

7. The method according to claim 1, characterized in that The attendance calculation according to the time corresponding to the attribute tag that meets the selection condition includes: Obtaining attendance items configured according to attribute tags of the time pair; Calculating the time period length of the time pair corresponding to the attribute tag that meets the selection condition; The attendance duration corresponding to the attendance item is determined according to the time period length.

8. The method according to claim 1, characterized in that The method further comprises: In response to the label dimension expansion operation, in addition to the candidate labels of the initial dimension, candidate labels of the expanded dimension are added; The step of respectively determining the attribute labels of the time pairs includes: Selecting the first attribute label of each time pair from the candidate labels of the initial dimension, and selecting the second attribute label of each time pair from the candidate labels of the expanded dimension; The first attribute tag and the second attribute tag constitute the attribute tag of the time pair.

9. The method according to claim 1, characterized in that The method further comprises: Combining adjacent trigger time points in the time point sequence into time pairs; The attribute label of each time pair is determined according to the coordinates of each time pair in the two-dimensional coordinate system and the mapping relationship between the coordinates in the two-dimensional coordinate system and the attribute label.

10. An attendance calculation device, characterized in that: The device comprises: The acquisition module is used to obtain the triggering time point of each attendance event in the target attendance shift; an arrangement module, configured to arrange the trigger time points on a time axis to obtain a time point sequence, and to add time point information to the time point sequence arranged on the time axis, wherein the time point information includes the shift period to which the trigger time point belongs and the order of the trigger time point and the time point on the attendance card; a determination module for obtaining, for time pairs consisting of adjacent trigger time points in the time point sequence, time point information corresponding to the adjacent trigger time points, and determining attribute tags for each of the time pairs based on the time point information, wherein the attribute tags are at least one of a document tag, a time period attribute tag, and an attendance status tag, the document tag including at least one of a vacation ticket, a business trip ticket, and an overtime ticket, the time period attribute tag including a rest period or an attendance period, and the attendance status tag including normal attendance, lateness, or early departure; The calculation module is used for performing attendance calculation according to the time corresponding to the attribute tag that meets the selection condition when the attribute tag meets the selection condition configured for the corresponding attribute tag to obtain the attendance result.

11. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 9 are implemented.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.

13. A computer program product, characterized in that The computer program product comprises a computer program, which implements the steps of the method according to any one of claims 1 to 9 when executed by a processor.

Citation Information

Patent Citations

  • Attendance checking system and attendance checking method capable of regularly and automatically running attendance checking calculation

    CN104794768A