An attendance method, device, equipment and storage medium
By obtaining attendance rule information twice, first obtaining summary information and then obtaining detailed information, the problem of slow response speed in the existing technology is solved, and fast clocking and efficient attendance rule management are achieved.
Patent Information
- Application Number
- CN202010294675.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-04-15
- Publication Date
- 2025-10-10
- Estimated Expiration
- 2040-04-15
AI Technical Summary
When faced with a large number of attendance rules, the existing OA attendance software takes a long time to obtain the setting details of all attendance rules, resulting in slow clocking response speed and affecting user experience.
By logically separating the important and the unimportant, we first obtain the summary information of the enterprise attendance rules and the personal identification information of the target user, determine the attendance rules applicable to the target user, and then obtain the setting details of the attendance rules to determine the attendance results.
While supporting a large number of attendance rules, it ensures that the employee's clocking-in experience is not affected, achieves fast clocking-in, reduces network traffic consumption, and improves the processing capacity of OA attendance software.
Smart Images

Figure CN113537910B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to an attendance method, device, system and storage medium. Background Art
[0002] With the rapid development of computer technology, various office automation (OA) attendance software have emerged one after another, bringing great convenience to the daily management of various enterprises.
[0003] In many cases, attendance rules are closely related to the company's organizational structure. Different employees within the company may be subject to different attendance rules. For example, the attendance rules for employees in the administrative department may stipulate that they work from 9:00 AM to 6:00 PM, while the attendance rules for employees in the R&D department may stipulate that they work from 10:00 AM to 7:00 PM. To address this situation, company managers need to use OA attendance software to set different attendance rules for different employees.
[0004] However, existing OA attendance software only supports a limited number of attendance rules. This is because when the OA attendance software detects an employee punching in, it triggers the server to retrieve detailed information about all attendance rules within the enterprise and then match the applicable rule to the employee punching in. If the OA attendance software supports a large number of attendance rules, the server takes a long time to retrieve the details of all the attendance rules, which significantly delays the punching response and affects the user experience. Summary of the Invention
[0005] The embodiments of the present application provide an attendance method, device, system and storage medium that can support the setting of a large number of attendance rules and ensure the employee's clocking-in experience.
[0006] In view of this, the first aspect of the present application provides an attendance method, the method comprising:
[0007] When a target user is detected to trigger an attendance operation, the summary information of the enterprise attendance rules and the personal identification information of the target user are obtained; the summary information of the enterprise attendance rules includes the applicable scope of each attendance rule that has been set;
[0008] Determining, based on the personal identification information of the target user and the summary information of the enterprise attendance rules, the attendance rules applicable to the target user as the target attendance rules;
[0009] Obtain the setting details corresponding to the target attendance rule;
[0010] Based on the setting detail information corresponding to the target attendance rule, an attendance result is determined for the attendance operation triggered by the target user.
[0011] A second aspect of the present application provides an attendance device, wherein the method includes:
[0012] The first acquisition module is used to acquire summary information of the enterprise attendance rules and personal identification information of the target user when detecting that the target user triggers the attendance operation; the summary information of the enterprise attendance rules includes the applicable scope corresponding to each set attendance rule;
[0013] An attendance rule determination module, configured to determine the attendance rule applicable to the target user as the target attendance rule based on the personal identification information of the target user and the summary information of the enterprise attendance rule;
[0014] A second acquisition module is used to obtain setting details corresponding to the target attendance rule;
[0015] The attendance result determination module is used to determine the attendance result for the attendance operation triggered by the target user based on the setting detail information corresponding to the target attendance rule.
[0016] A third aspect of the present application provides a device, comprising a processor and a memory:
[0017] The memory is used to store computer programs;
[0018] The processor is configured to execute the steps of the attendance method described in the first aspect according to the computer program.
[0019] In a fourth aspect, the present application provides a computer-readable storage medium, which is used to store a computer program, and the computer program is used to execute the steps of the attendance method described in the first aspect.
[0020] In a fifth aspect, the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the steps of the attendance method described in the first aspect.
[0021] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:
[0022] The embodiment of the present application provides an attendance method, which can acquire different information related to an attendance rule twice through logical separation in the process of processing an employee attendance operation, so as to guarantee the experience of the employee attendance operation in the case of supporting a large number of attendance rules. Specifically, when detecting that a target user triggers an attendance operation, the summary information of an enterprise attendance rule can be acquired first, the summary information of the enterprise attendance rule carries less content, and usually includes the respective application scopes of the set attendance rules, after determining the target attendance rule applicable to the target user according to the personal identifier information of the target user and the summary information of the enterprise attendance rule, the setting detail information of the target attendance rule is acquired, and then the attendance result corresponding to the attendance operation of the target user is determined based on the setting detail information. Compared with the implementation mode of directly acquiring the setting detail information of all attendance rules in the related art, the technical scheme provided by the embodiment of the present application acquires the summary information of the enterprise attendance rule with less information first, and then acquires the setting detail information of the attendance rule after determining the attendance rule applicable to the current clock-in user based on the summary information, so that the problem caused by acquiring the setting detail information of all attendance rules at one time can be avoided, so that the OA attendance software can support more setting of attendance rules, and the attendance experience of the user is guaranteed. BRIEF DESCRIPTION OF DRAWINGS
[0023] Figure 1 The application scenario of the attendance method provided by the embodiment of the present application is shown in the figure.
[0024] Figure 2 The flowchart of the attendance method provided by the embodiment of the present application is shown in the figure.
[0025] Figure 3 The organizational structure provided by the embodiment of the present application is shown in the figure.
[0026] Figure 4 The attendance interface provided by the embodiment of the present application is shown in the figure.
[0027] Figure 5 The attendance interface provided by the embodiment of the present application is shown in the figure.
[0028] Figure 6 The attendance interface provided by the embodiment of the present application is shown in the figure.
[0029] Figure 7 The attendance rule setting interface provided by the embodiment of the present application is shown in the figure.
[0030] Figure 8 The attendance rule setting interface provided by the embodiment of the present application is shown in the figure.
[0031] Figure 9 An interaction signaling diagram of the attendance method provided by the embodiment of the present application;
[0032] Figure 10 A structural schematic diagram of the first attendance device provided by the embodiment of the present application;
[0033] Figure 11 A structural schematic diagram of the second attendance device provided by the embodiment of the present application;
[0034] Figure 12 A structural schematic diagram of the third attendance device provided by the embodiment of the present application;
[0035] Figure 13 A structural schematic diagram of the fourth attendance device provided by the embodiment of the present application;
[0036] Figure 14 A structural schematic diagram of the fifth attendance device provided by the embodiment of the present application;
[0037] Figure 15 A structural schematic diagram of the server provided by the embodiment of the present application;
[0038] Figure 16 A structural schematic diagram of the terminal device provided by the embodiment of the present application. DETAILED DESCRIPTION
[0039] In order to make the personnel in the art better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, not all the embodiments. Based on the embodiments in the present application, all the other embodiments obtained by the person of ordinary skill in the art without making creative labor, belong to the scope of protection of the present application.
[0040] The terms "first", "second", "third", "fourth" and the like (if any) in the specification and claims of the present application and the above drawings are used to distinguish similar objects, and do not necessarily have to describe a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device including a series of steps or units does not have to be limited to those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0041] In related technologies, when OA attendance software supports too many attendance rules, the server often takes a long time to obtain the setting details of all attendance rules. This seriously delays the clock-in response speed and affects the employee attendance experience. To ensure the employee clock-in experience, existing OA attendance software generally cannot support the setting of a large number of attendance rules.
[0042] In response to the problems existing in the above-mentioned related technologies, an embodiment of the present application provides an attendance method, which can enable OA attendance software to support the setting of more attendance rules while ensuring the employee attendance experience.
[0043] Specifically, in the attendance method provided in the embodiment of the present application, when it is detected that a target user triggers an attendance operation, summary information of the enterprise attendance rules and personal identification information of the target user are obtained, where the summary information of the enterprise attendance rules includes the applicable scope corresponding to each attendance rule that has been set; then, based on the personal identification information of the target user and the summary information of the enterprise attendance rules, the attendance rule applicable to the target user is determined as the target attendance rule; then, the setting detail information corresponding to the target attendance rule is obtained; finally, based on the setting detail information corresponding to the target attendance rule, the attendance result is determined for the attendance operation triggered by the target user.
[0044] Compared with the method of directly obtaining the setting details of all attendance rules in the related art, the attendance method provided in the embodiment of the present application can obtain different information related to the attendance rules in two times by logically separating the importance of the information during the processing of employee attendance operations, that is, first obtain the summary information of the enterprise attendance rules with less information, and then obtain the setting details information of the attendance rules after determining the attendance rules applicable to the current employee punching in based on the summary information. In this way, the problems caused by obtaining the setting details information of all attendance rules at one time can be avoided, so that the OA attendance software can support the setting of more attendance rules while ensuring the user's attendance experience.
[0045] The inventors of this application have experimentally verified that based on the attendance method provided in the embodiments of this application, the same enterprise can support the setting of tens of thousands of attendance rules, and in this case, employees can still clock in quickly, ensuring the employees' attendance experience.
[0046] It should be understood that the attendance method provided in the embodiments of the present application can be executed by devices with data processing capabilities, such as terminal devices, servers, etc. Among them, the terminal device can specifically be a time clock, a smart phone, a tablet computer, a personal digital assistant (PDA), etc.; the server can specifically be an application server or a web server. In actual deployment, the server can be a standalone server, a cluster server, or a cloud server.
[0047] In order to facilitate understanding of the attendance method provided in the embodiment of the present application, the application scenarios to which the attendance method provided in the embodiment of the present application is applicable are exemplarily introduced below.
[0048] See also Figure 1 , Figure 1 Schematic diagram of the application scenario of the attendance method provided in the embodiment of this application. Figure 1 As shown, the application scenario includes a terminal device 110 and a server 120, which can exchange information via a network. The terminal device 110 is used to support user-triggered attendance operations. For example, the terminal device 110 runs OA attendance software, and the user can trigger the attendance operation through the OA attendance software. The server 120 is used to execute the attendance method provided in the embodiment of the present application. When a user triggers an attendance operation, the server 120 determines the attendance result corresponding to the attendance operation based on preset attendance rules.
[0049] In specific implementation, the target user can trigger the attendance operation through the OA attendance software running in the terminal device 110. After detecting that the target user has triggered the attendance operation, the terminal device 110 generates an attendance request accordingly and sends the attendance request to the server 120 through the network.
[0050] After receiving the attendance request from the terminal device 110, the server 120 can retrieve the summary information of the enterprise's attendance rules and the personal identification information of the target user from a database or other server. The summary information of the enterprise's attendance rules includes the applicable scopes of each attendance rule currently set within the enterprise. Then, based on the personal identification information of the target user and the summary information of the enterprise's attendance rules, the server 120 determines the attendance rule applicable to the target user as the target attendance rule. Furthermore, the server 120 obtains detailed setting information for the target attendance rule. Finally, based on the detailed setting information for the target attendance rule, the server 120 determines the attendance result corresponding to the attendance operation triggered by the target user and returns the attendance result to the terminal device 110 via the network.
[0051] Of course, in actual applications, after the server 120 obtains the setting details of the target attendance rule, it can also return the setting details to the terminal device 110 through the network, and then the terminal device 110 determines the attendance result corresponding to the attendance operation triggered by the target user based on the setting details of the target attendance rule.
[0052] It should be understood that Figure 1 The application scenarios shown are only examples. In actual applications, the attendance method provided in the embodiment of the present application can also be independently executed by the terminal device 110. No limitation is imposed on the application scenarios to which the attendance method provided in the embodiment of the present application is applicable.
[0053] The attendance method provided by the present application is described in detail below through examples.
[0054] Referring to Figure 2 , Figure 2 The flowchart of the attendance method provided by the embodiments of the present application. In order to facilitate description, the following embodiments are described by taking the server as the execution subject. As shown in Figure 2 The method comprises the following steps:
[0055] Step 201: When it is detected that a target user triggers an attendance operation, the summary information of enterprise attendance rules and the personal identification information of the target user are acquired; the summary information of the enterprise attendance rules comprises the respective corresponding application scope of each set attendance rule in the enterprise.
[0056] In actual application, the target user can trigger an attendance operation, such as a check-in and check-out operation, through a related attendance device. After the server detects that the target user triggers an attendance operation through the attendance device, the summary information of the enterprise attendance rules of the enterprise to which the target user belongs and the personal identification information of the target user need to be acquired. The summary information of the enterprise attendance rules at least comprises the respective corresponding application scope of each set attendance rule in the enterprise, and the personal identification information of the target user can reflect the identity of the target user in the enterprise, for example, can reflect the organization to which the target user belongs in the enterprise, and the like.
[0057] In a possible implementation manner, the target user can trigger an attendance operation through a mobile terminal device (the mobile terminal device capable of supporting the user to trigger an attendance operation can also be understood as an attendance device, such as a smart phone, a tablet computer, and the like) running with OA attendance software. Specifically, the target user can trigger a related attendance operation through an attendance function in the OA attendance software running on the mobile terminal device, for example, the target user can perform check-in and check-out through a check-in function in the OA attendance software. After the OA attendance software detects that the target user triggers an attendance operation through the attendance function, an attendance request is correspondingly generated, the attendance request can carry the identity of the target user and the attendance content corresponding to the attendance operation triggered by the target user, and the attendance request is transmitted to the server through a network, so that the server knows that the target user currently triggers an attendance operation.
[0058] In another possible implementation, the target user can trigger the attendance operation through a specific attendance device (such as a punch card machine or the like). Specifically, the attendance device can identify the identity information of the user triggering the attendance operation through itself by means of fingerprint identification, face recognition, card swiping identification, and the like; when the target user triggers the attendance operation through the attendance device, the target user can press his / her finger on a specific fingerprint identification area, or align his / her face to an image acquisition device, or swipe his / her work card at a specific card swiping area, and after the attendance device acquires the fingerprint information, or the face information, or the work card information of the target user, the attendance device can determine the identity identifier of the target user based on the acquired information, and further generate an attendance request carrying the identity identifier of the target user, and transmit the attendance request to the server through the network, so that the server learns that the target user currently triggers the attendance operation.
[0059] It should be noted that the identity identifier of the target user and the personal identifier information of the target user are two different concepts defined from two different angles. The identity identifier of the target user usually refers to the identity ID allocated to the target user, and based on the identity identifier, the target user can be uniquely determined within the enterprise; the personal identifier information of the target user refers to information reflecting the identity and / or level of the target user within the enterprise, for example, the personal identifier information of the target user can reflect the organization to which the target user belongs within the enterprise, and in some cases, the identity identifier of the target user can also be used as the personal identifier information of the target user.
[0060] It should be understood that in actual application, the target user can trigger the attendance operation through other manners in addition to the two possible implementation manners mentioned above, and the present application does not limit the implementation manner of the target user triggering the attendance operation.
[0061] After the server learns that the target user triggers the attendance operation, the server needs to pull the summary information of the enterprise attendance rule accordingly. Specifically, in actual application, the summary information of the enterprise attendance rule can be stored in an attendance rule storage device, such as a device supporting database operation or other devices with data storage function. After the server learns that the target user triggers the attendance operation (such as receiving the attendance request sent by the attendance device), the server can send a first information request to the attendance rule storage device to request the attendance rule storage device to provide the summary information of the enterprise attendance rule; and then, receive the summary information of the enterprise attendance rule returned by the attendance rule storage device in response to the first information request.
[0062] It should be noted that the summary information of the enterprise attendance rules is determined in advance by the server based on the various attendance rules currently set within the enterprise. Under normal circumstances, when the enterprise manager sets each attendance rule, he or she will set the scope of application of the attendance rule accordingly. After the server obtains the various attendance rules set by the enterprise manager and their respective corresponding scopes of application, it can extract the scope of application corresponding to each attendance rule, and then sort out the scope of application corresponding to each attendance rule to obtain the summary information of the enterprise attendance rules. Optionally, in addition to including the scope of application corresponding to each attendance rule that has been set, the summary information of the enterprise attendance rules can also include the basic setting information of each attendance rule, such as the rule type, rule name, punch-in time and punch-in location specified in the rule, etc. The content included in the summary information of the enterprise attendance rules is not specifically limited here.
[0063] Since the amount of information included in the summary information of the enterprise attendance rules is usually small, when the server detects that the target user triggers the attendance operation, it only obtains the summary information of the enterprise attendance rules with less information, which can effectively streamline network traffic and instantaneous traffic impact; and, compared with the related technology in which the server needs to pull the setting details of all attendance rules at one time, the method provided in the embodiment of the present application detects that the target user triggers the attendance operation, and first pulls the summary information of the enterprise attendance rules with less information, which can also reduce the required network traffic resources to a certain extent.
[0064] After the server learns that the target user has triggered the attendance operation, it needs to obtain not only the summary information of the enterprise attendance rules but also the target user's personal identification information. For example, the target user's personal identification information may include the organization tag of the target user's organization (such as the department tag of the department to which they belong) and / or the target user's employee tag (such as the target user's identity identifier).
[0065] In some embodiments, the mobile terminal device and / or the attendance device may store the target user's personal identification information. When the target user triggers an attendance check-in operation via the mobile terminal device and / or the attendance device, the mobile terminal device and / or the attendance device may directly add the target user's personal identification information to the attendance check-in request and transmit it to the server. For example, after detecting that the target user has triggered the attendance check-in operation, the mobile terminal device and / or the attendance device may retrieve information such as the organization tag of the target user's organization and the target user's employee tag (i.e., the target user's identity identifier). Based on this information, the mobile terminal device and / or the attendance device may generate an attendance check-in request and transmit it to the server, thereby enabling the server to obtain the target user's personal identification information.
[0066] In some possible embodiments, after receiving an attendance request transmitted from a mobile terminal device and / or an attendance device, the server may obtain the target user's personal identification information from a personal information storage device based on the target user's identity carried in the attendance request. The personal information storage device is a device used to store personal identification information. For example, after receiving the attendance request, the server may extract the target user's identity carried in the attendance request, generate a second information request based on the identity, and transmit the second information request to the personal information storage device. The personal information storage device may then retrieve, based on the identity carried in the second information request, information such as the organization tag and employee tag corresponding to the identity from its own stored information, and return this personal identification information to the server, so that the server uses this information as the target user's personal identification information.
[0067] It should be understood that in actual applications, the server can also obtain the personal identification information of the target user through other methods. This application does not impose any limitation on the method in which the server obtains the personal identification information of the target user.
[0068] Step 202: Determine the attendance rule applicable to the target user as the target attendance rule based on the personal identification information of the target user and the summary information of the enterprise attendance rule.
[0069] After the server obtains the summary information of the enterprise attendance rules and the personal identification information of the target user, it can match the applicable scope of the target user in the summary information of the enterprise attendance rules based on the personal identification information of the target user, and then determine the target attendance rule applicable to the target user.
[0070] In one possible implementation, the applicable scope corresponding to the attendance rule in the summary information of the enterprise attendance rule may include the organizational tag of the organization to which the attendance rule is applicable, and the personal identification information of the target user may include the organizational tag of the organization to which the target user belongs; in this case, the server may search for the applicable scope including the organizational tag of the organization to which the target user belongs in the summary information of the enterprise attendance rule as the first target applicable scope, and then determine that the attendance rule corresponding to the first target applicable scope is the target attendance rule.
[0071] Specifically, the applicable scope of an attendance rule can be set on an organizational basis. Accordingly, the applicable scope of the attendance rule should include the organizational tags of each applicable organization. For example, assuming that attendance rule A applies to Departments A, B, and C, then the applicable scope of attendance rule A in the summary information of the enterprise attendance rule should include the department tags of Departments A, B, and C. As previously mentioned, the personal identification information of a target user can include the organizational tag of the organization to which the target user belongs. For example, assuming that the target user belongs to Department A, then the personal identification information of the target user can include the department tag of Department A.
[0072] In a specific implementation, the server can search for the organization tag of the target user's organization within the applicable scope of each attendance rule. Once an applicable scope that includes the organization tag is found, the server can determine that the applicable scope is the first target applicable scope, and the attendance rule corresponding to the first target applicable scope is the target attendance rule applicable to the target user. For example, if the target user's personal identification information includes the department tag of Department A, and the server finds that the applicable scope of Attendance Rule A includes the department tag of Department A, the server can determine that Attendance Rule A is the target attendance rule applicable to the target user.
[0073] In many cases in actual applications, the target user may belong to multiple organizations. Accordingly, the target user's personal identification information will include the organization labels of the multiple organizations to which the target user belongs. In response to this situation, the present application provides the following two exemplary implementation solutions:
[0074] The first implementation scheme is to determine the lowest-level organization among the multiple organizations to which the target user belongs as the target organization, and determine the organization tag of the target organization in the personal identification information of the target user as the target organization tag; then, in the summary information of the enterprise attendance rules, find the applicable scope including the target organization tag as the first target applicable scope, and determine the attendance rule corresponding to the first target applicable scope as the target attendance rule applicable to the target user.
[0075] In order to facilitate the understanding of the first implementation scheme above, the following Figure 3 Assume that the target user belongs to department A1, department A and department B at the same time, and the personal identification information of the target user includes the department label of department A1, department label of department A and department label of department B; Figure 3The organizational structure shown can determine that the A1 department has the lowest level, so the department label of the A1 department can be used as the target organizational label. Then, in the summary information of the enterprise attendance rules, the applicable scope of the department label including the A1 department is searched, and the attendance rules corresponding to the found applicable scope are determined as the target attendance rules applicable to the target users.
[0076] The second implementation scheme is to search for the applicable scope of each organization tag in the personal identification information of the target user in the summary information of the enterprise attendance rules as the reference applicable scope corresponding to the organization tag, and determine the attendance rule corresponding to the reference applicable scope as the reference attendance rule corresponding to the organization tag; then, obtain the latest setting time of the reference attendance rule corresponding to each organization tag in the personal identification information of the target user, and determine the reference attendance rule with the latest setting time as the target attendance rule applicable to the target user.
[0077] In order to facilitate the understanding of the second implementation scheme, the following Figure 3 The organizational structure shown is used as an example. Assuming that the target user belongs to both Department A1 and Department B2, the personal identification information of the target user includes the department label of Department A1 and the department label of Department B2; the server can search for the applicable scope including the department label of Department A1 in the summary information of the enterprise attendance rules, and learn that the latest setting time of the attendance rule corresponding to the applicable scope is April 12, 2019. The server can search for the applicable scope including the department label of Department B2 in the summary information of the enterprise attendance rules, and learn that the latest setting time of the attendance rule corresponding to the applicable scope is May 16, 2019; since the setting time of the attendance rule of Department B2 is later than the setting time of the attendance rule of Department A1, it can be determined that the target attendance rule applicable to the target user is the attendance rule of Department B2.
[0078] It should be noted that in actual applications, the first implementation scheme described above can be combined with the second implementation scheme. Specifically, the first implementation scheme can be used to first determine the lowest-level organization among the multiple organizations to which the target user belongs. If a single lowest-level organization can be directly determined, the first implementation scheme alone can be used to determine the target attendance rules applicable to the target user. If multiple lowest-level organizations are determined, or if it is impossible to determine which organization among the multiple organizations to which the target user belongs is the lowest-level organization, the second implementation scheme can be used to further determine the target attendance rules applicable to the target user.
[0079] In another possible implementation, the applicable scope corresponding to the attendance rule in the summary information of the enterprise attendance rule may include the employee tag to which the attendance rule is applicable, and the personal identification information of the target user may include the employee tag of the target user; in this case, the server may search for the applicable scope including the employee tag of the target user in the summary information of the enterprise attendance rule as the second target applicable scope, and then determine that the attendance rule corresponding to the second target applicable scope is the target attendance rule.
[0080] Specifically, the scope of application of an attendance rule can be set on an employee-by-employee basis. Accordingly, the scope of application of the attendance rule should include the employee tags of each employee to which it applies. For example, assuming that attendance rule B applies to employees 1, 2, and 3, the scope of application of attendance rule B in the summary information of the enterprise attendance rule should include the employee tags of employee 1, employee 2, and employee 3. As previously mentioned, the target user's personal identification information can include the target user's employee tag (i.e., the target employee's identity identifier). For example, assuming that the personal identification information of employee 1 can include his or her corresponding employee tag.
[0081] In a specific implementation, the server can search for the target user's employee tag within the applicable scope of each attendance rule. Once an applicable scope that includes the employee tag is found, the server can determine that the applicable scope is the second target applicable scope, and the attendance rule corresponding to the second target applicable scope is the target attendance rule applicable to the target user. For example, assuming the target user is employee 1, whose personal identification information includes employee tag 1, and the server finds that the applicable scope of attendance rule B includes employee tag 1, the server can determine that attendance rule B is the target attendance rule applicable to the target user.
[0082] It should be noted that in practice, enterprise managers can set the scope of some attendance rules based on organizations, and other rules based on employees. If a target user belongs to an employee-based scope, the attendance rule corresponding to that scope can be directly selected as the target attendance rule for the target user, without having to consider the attendance rule corresponding to the scope of the target user's organization.
[0083] Step 203: Acquire setting details corresponding to the target attendance rule.
[0084] After the server determines the target attendance rule applicable to the target user, it can further obtain the setting details information corresponding to the target attendance rule. The setting details information corresponding to the target attendance rule is the standard setting information used to measure the attendance results. Based on the setting details information, the attendance result corresponding to the attendance operation can be determined.
[0085] In actual applications, the detailed information for setting attendance rules may include any one or more of the following: standard location information, location accuracy information, standard network information, standard time information, etc. Standard location information refers to the location information specified in the attendance rules that triggers attendance operations, such as the location information of a particular office building; location accuracy information refers to the location error allowed by the attendance rules, such as the allowable error between the actual location that triggers the attendance operation and the standard location information; standard network information refers to the network information specified in the attendance rules that the device used to trigger the attendance operation connects to when the operation is triggered, such as the Wireless Fidelity (WiFi) network information that a mobile terminal device connects to; and standard time information refers to the clock-in and clock-out times specified in the attendance rules.
[0086] It should be understood that the above-mentioned detailed information on the setting of attendance rules is only an example. In actual application, the detailed information on the setting of attendance rules may also include other setting information. This application does not impose any limitation on the detailed information on the setting of attendance rules.
[0087] In specific implementation, after the server determines the target attendance rule applicable to the target user, it can send a third information request to the attendance rule storage device, and the third information request carries the rule identifier of the target attendance rule; after receiving the third information request, the attendance rule storage device can search for the setting details corresponding to the target attendance rule in the information stored therein according to the rule identifier of the target attendance rule carried therein; and then return the setting details information of the target attendance rule to the server.
[0088] It should be noted that since the server has matched the target attendance rules applicable to the target user based on the summary information of the enterprise attendance rules in advance, when executing this step, the server only needs to pull the setting details information of the target attendance rules from the attendance rules storage device. Compared with the related technology in which the server needs to pull the setting details information corresponding to all attendance rules within the enterprise, this application only needs to pull the setting details information of the target attendance rules, which greatly reduces the required network traffic resources.
[0089] Step 204: Based on the setting details corresponding to the target attendance rule, determine the attendance result for the attendance operation triggered by the target user.
[0090] After the server obtains the setting details corresponding to the target attendance rule, it can determine the attendance result corresponding to the attendance operation based on the relevant information of the attendance operation triggered by the target user in combination with the setting details corresponding to the target attendance rule.
[0091] In specific implementation, the server can determine the attribute information corresponding to the attendance operation based on at least one of the time information, location information and network information corresponding to the attendance operation; then, determine whether the attribute information corresponding to the attendance operation matches the setting details information corresponding to the target attendance rule, and determine the final attendance result based on the judgment result.
[0092] As an example, when a target user triggers an attendance check operation via a mobile terminal device or attendance device, the mobile terminal device or attendance device may add its current location information and the time information at which the attendance check operation was triggered to an attendance check request and transmit the attendance check request to the server. The server may use the location information and time information in the attendance check request as attribute information corresponding to the attendance check operation triggered by the target user. After obtaining the setting details corresponding to the target attendance rule applicable to the target user, the server may determine whether the location information of the target user at the time of triggering the attendance check operation complies with the attendance rule by combining the standard location information and location accuracy information in the setting details. Furthermore, it may determine whether the time information of the target user at the time of triggering the attendance check operation complies with the attendance rule by combining the standard time information in the setting details. If both are in compliance, the attendance check operation is deemed to comply with the attendance rule.
[0093] In actual applications, after the server obtains the setting details of the target attendance rules, it can also send the setting details to the device used to detect attendance operations (such as a mobile terminal device or attendance device), and the device determines the attendance result corresponding to the attendance operation triggered by the target user based on the setting details.
[0094] The following is an example of this process using a mobile terminal device as an example. After the server obtains the setting details of the target attendance rule applicable to the target user, it can send the setting details to the mobile terminal device through the network. The mobile terminal device can first combine the standard location information and location accuracy information in the setting details to determine whether its current location is within the punch-in range specified by the target attendance rule, and display the corresponding result on the screen, such as Figure 4 At the same time, the current time and the clock-in control that supports users to trigger the clock-in operation can also be displayed on this interface.
[0095] When the mobile terminal device detects that the target user touches the punch-in control, it can combine the standard time information in the setting details to determine whether the time when the user touches the punch-in control is within the working hours specified by the target attendance rules. If so, the mobile terminal device can display Figure 5 The prompt dialog box in the interface shown is to remind the target user that the current clock-in is an early leave. The target user can choose to cancel the clock-in operation or confirm the clock-in operation. If the target user chooses to confirm the clock-in, the mobile terminal device can display Figure 6 The interface shown is used to prompt the target user that the attendance result of the currently triggered attendance operation is leaving get off work early.
[0096] Optionally, the method provided in the embodiment of the present application further supports enterprise managers to set new attendance rules. That is, enterprise managers can set new attendance rules through mobile clients or Web clients. Figure 7 The interface shown is an exemplary interface for setting attendance rules through the mobile client; Figure 8 The interface shown is an example of how to set attendance rules through a web client. After an enterprise administrator completes the configuration of a new attendance rule through a mobile client or web client, the server can retrieve the new attendance rule, determine the corresponding validation logic for the new attendance rule, and store it. Furthermore, the server can update the current enterprise attendance rule summary information based on the new attendance rule.
[0097] Specifically, enterprise managers can use OA attendance software to set new attendance rules for specific scopes of application. After completing the setting of the new attendance rules, the OA attendance software can transmit the set new attendance rules and their corresponding scopes of application to the server. The server calculates the corresponding rule effectiveness logic based on the received new attendance rules, and stores the rule effectiveness logic in the rule record table. Each row in the rule record table records the rule effectiveness logic corresponding to one attendance rule. At the same time, the server can also extract the scope of application corresponding to the new attendance rule, and update the summary information of the enterprise attendance rules based on the scope of application.
[0098] Compared with the method of directly obtaining the setting details of all attendance rules in the related art, the attendance method provided in the embodiment of the present application can obtain different information related to the attendance rules in two times by logically separating the importance of the information during the processing of employee attendance operations, that is, first obtain the summary information of the enterprise attendance rules with less information, and then obtain the setting details information of the attendance rules after determining the attendance rules applicable to the current employee punching in based on the summary information. In this way, the problems caused by obtaining the setting details information of all attendance rules at one time can be avoided, so that the OA attendance software can support the setting of more attendance rules while ensuring the user's attendance experience.
[0099] In order to facilitate further understanding of the attendance method provided in the embodiment of the present application, the following example takes the attendance device as a mobile terminal device supporting the operation of OA attendance software, the attendance rule storage device as a database, and the personal information storage device as a personnel architecture server as an example. Figure 9 The interactive signaling diagram shown provides an overall exemplary introduction to the attendance method provided in the embodiment of the present application.
[0100] like Figure 9 As shown in the figure, enterprise managers can pre-set several attendance rules through the mobile client or web client of the OA attendance software and transmit the set attendance rules to the backend server. The backend server can calculate the rule effectiveness logic corresponding to the attendance rule based on the setting information corresponding to the attendance rule it receives, and store the rules in a separate table. Each attendance rule can be recorded in a separate row.
[0101] When the target user triggers the clock-in operation through the mobile client of the OA attendance software, the OA attendance software can send a clock-in request to the background server; after receiving the clock-in request, the background server pulls the summary information of the enterprise attendance rules from the database, including the applicable scope of each currently set attendance rule, and pulls the personal identification information of the target user from the personnel structure server, which may include the employee tag of the target user and the department tag of the department to which the target user belongs.
[0102] The backend server then determines the target attendance rule applicable to the target user based on the retrieved summary information of the enterprise attendance rules and the target user's personal identification information. After determining the target attendance rule, the backend server retrieves the target attendance rule's configuration details from the database. Furthermore, the backend server forwards the configuration details corresponding to the retrieved target attendance rule to the mobile client. The mobile client, based on this configuration details and the relevant information regarding the clock-in operation, displays the clock-in information and calculates the corresponding clock-in result. The mobile client then stores this clock-in result in the database via the backend server.
[0103] In response to the attendance method described above, the present application also provides a corresponding attendance device to enable the above attendance method to be applied and implemented in practice.
[0104] See also Figure 10 , Figure 10 It is the same as above Figure 2 The structure diagram of an attendance device 1000 corresponding to the attendance method shown is as follows. The device includes:
[0105] The first acquisition module 1001 is used to acquire summary information of the enterprise attendance rules and personal identification information of the target user when detecting that the target user triggers the attendance operation; the summary information of the enterprise attendance rules includes the applicable scope of each attendance rule that has been set;
[0106] Attendance rule determination module 1002, configured to determine the attendance rule applicable to the target user as the target attendance rule based on the personal identification information of the target user and the summary information of the enterprise attendance rule;
[0107] The second acquisition module 1003 is used to obtain setting details corresponding to the target attendance rule;
[0108] The attendance result determination module 1004 is configured to determine the attendance result for the attendance operation triggered by the target user based on the setting detail information corresponding to the target attendance rule.
[0109] Optional, in Figure 10 Based on the attendance device shown, the application scope of the attendance rule in the summary information of the enterprise attendance rule includes the organization tag of the organization to which the attendance rule applies, and the personal identification information of the target user includes the organization tag of the organization to which the target user belongs; see Figure 11 , Figure 11 This is a structural diagram of another attendance device provided in an embodiment of the present application. Figure 11 As shown, the attendance rule determination module 1002 includes:
[0110] The first rule determination unit 1101 is configured to search the summary information of the enterprise attendance rule for an applicable scope including the organization tag of the target user's organization as a first target applicable scope, and determine the attendance rule corresponding to the first target applicable scope as the target attendance rule.
[0111] Optional, in Figure 11 Based on the attendance device shown, the target user belongs to multiple organizations, and the personal identification information of the target user includes the organization labels of the multiple organizations to which the target user belongs; see Figure 12 , Figure 12 This is a structural diagram of another attendance device provided in an embodiment of the present application. Figure 12 As shown, the attendance rule determination module 1002 further includes:
[0112] The target organization label determination unit 1201 is configured to determine the lowest-level organization among the multiple organizations to which the target user belongs as the target organization, and determine the organization label of the target organization in the personal identification information of the target user as the target organization label;
[0113] The first rule determination unit 1101 is specifically configured to:
[0114] In the summary information of the enterprise attendance rule, an application scope including the target organization tag is searched as the first target application scope.
[0115] Optional, in Figure 11 Based on the attendance device shown, the target user belongs to multiple organizations, and the personal identification information of the target user includes the organization tags of the multiple organizations to which the target user belongs; then the first rule determination unit 1101 is specifically configured to:
[0116] For each organization tag in the personal identification information of the target user, searching the summary information of the enterprise attendance rules for an applicable scope including the organization tag as a reference applicable scope corresponding to the organization tag, and determining the attendance rule corresponding to the reference applicable scope as the reference attendance rule corresponding to the organization tag;
[0117] Obtain the latest setting time of the reference attendance rule corresponding to each organization tag in the personal identification information of the target user;
[0118] The reference attendance rule with the latest setting time is determined as the target attendance rule.
[0119] Optional, in Figure 10 Based on the attendance device shown, the application scope of the attendance rule in the summary information of the enterprise attendance rule includes the employee tag of the employee to whom the attendance rule applies; the personal identification information of the target user includes the employee tag of the target user; see Figure 13 , Figure 13 This is a structural diagram of another attendance device provided in an embodiment of the present application. Figure 13 As shown, the attendance rule determination module 1002 includes:
[0120] The second rule determination unit 1301 is configured to search the summary information of the enterprise attendance rule for an applicable scope including the employee tag of the target user as a second target applicable scope, and determine the attendance rule corresponding to the second target applicable scope as the target attendance rule.
[0121] Optional, in Figure 10 Based on the attendance device shown, the attendance result determination module 1004 is specifically used to:
[0122] determining attribute information corresponding to the attendance operation based on at least one of time information, location information, and network information corresponding to the attendance operation;
[0123] Determine whether the attribute information corresponding to the attendance operation matches the setting detail information corresponding to the target attendance rule, and determine the attendance result according to the determination result.
[0124] Optionally, on the basis of the attendance device shown in Figure 10 FIG. 1, the application provides an attendance device. Figure 14 , Figure 14 FIG. 2 shows a structural schematic diagram of another attendance device provided by an embodiment of the application. As shown in the figure, the device further includes: Figure 14
[0125] The attendance rule setting module 1401 is configured to acquire a new attendance rule set by a management user, determine an effective logic corresponding to the new attendance rule, store the effective logic, and update the summary information of the enterprise attendance rule according to the new attendance rule.
[0126] Optionally, on the basis of the attendance device shown in Figure 10 FIG. 1, the first acquisition module 1001 is specifically configured to:
[0127] Receive an attendance request sent by an attendance device; the attendance device supports the target user triggering an attendance operation; the attendance request is generated after the attendance device detects that the target user triggers the attendance operation, and carries an identity of the target user;
[0128] Send a first information request to an attendance rule storage device, the first information request being used to request to acquire the summary information of the enterprise attendance rule; and send a second information request to a personal information storage device, the second information request carrying the identity of the target user and being used to request to acquire personal identification information of the target user;
[0129] Receive the summary information of the enterprise attendance rule returned by the attendance rule storage device in response to the first information request; and receive the personal identification information of the target user returned by the personal information storage device in response to the second information request;
[0130] The second acquisition module 1003 is specifically configured to:
[0131] Send a third information request to the attendance rule storage device; the third information request carrying a rule identifier of the target attendance rule and being used to request to acquire the setting detail information corresponding to the target attendance rule;
[0132] Receive the setting detail information corresponding to the target attendance rule returned by the attendance rule storage device in response to the third information request.
[0133] The attendance device provided in the embodiment of the present application can obtain different information related to the attendance rules in two times by logically separating the importance of the information during the process of processing employee attendance operations, that is, first obtain the summary information of the enterprise attendance rules with less information, and then obtain the setting details of the attendance rules after determining the attendance rules applicable to the current employee punching in based on the summary information. In this way, the problems caused by obtaining the setting details of all attendance rules at one time can be avoided, so that the OA attendance software can support the setting of more attendance rules while ensuring the user's attendance experience.
[0134] The embodiment of the present application also provides a device for attendance management, which may specifically be a server and a terminal device. The server and terminal device provided in the embodiment of the present application will be introduced below from the perspective of hardware entity.
[0135] See also Figure 15 , Figure 15 A structural diagram of a server 1500 provided for an embodiment of the present application. The server 1500 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 1522 (for example, one or more processors) and a memory 1532, and one or more storage media 1530 (for example, one or more massive storage devices) for storing application programs 1542 or data 1544. Among them, the memory 1532 and the storage medium 1530 may be temporary storage or persistent storage. The program stored in the storage medium 1530 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server. Furthermore, the central processing unit 1522 may be configured to communicate with the storage medium 1530 to execute a series of instruction operations in the storage medium 1530 on the server 1500.
[0136] The server 1500 may also include one or more power supplies 1526, one or more wired or wireless network interfaces 1550, one or more input and output interfaces 1558, and / or one or more operating systems 1541, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.
[0137] The steps performed by the server in the above embodiment can be based on the Figure 15 The server structure shown.
[0138] The CPU 1522 is configured to execute the following steps:
[0139] When a target user is detected to trigger an attendance operation, the summary information of the enterprise attendance rules and the personal identification information of the target user are obtained; the summary information of the enterprise attendance rules includes the applicable scope of each attendance rule that has been set;
[0140] Determining, based on the personal identification information of the target user and the summary information of the enterprise attendance rules, the attendance rules applicable to the target user as the target attendance rules;
[0141] Obtain the setting details corresponding to the target attendance rule;
[0142] Based on the setting detail information corresponding to the target attendance rule, an attendance result is determined for the attendance operation triggered by the target user.
[0143] Optionally, the CPU 1522 may also be configured to execute steps of any implementation of the attendance method provided in the embodiments of the present application.
[0144] See also Figure 16 , Figure 16 This is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application. For ease of explanation, only the parts related to the embodiment of the present application are shown. For specific technical details not disclosed, please refer to the method section of the embodiment of the present application. The terminal can be any terminal device including a smartphone, computer, tablet computer, personal digital assistant (PDA), etc. Taking the terminal as a computer as an example:
[0145] Figure 16 FIG2 is a block diagram showing a partial structure of a computer related to a terminal provided in an embodiment of the present application. Figure 16 The computer includes components such as a radio frequency (RF) circuit 1616, a memory 1620, an input unit 1630, a display unit 1640, a sensor 1650, an audio circuit 1660, a wireless fidelity (WiFi) module 1670, a processor 1680, and a power supply 1690. Those skilled in the art will appreciate that Figure 16 The computer structure shown in the figure does not constitute a limitation of the computer, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0146] The memory 1620 can be used to store software programs and modules, and the processor 1680 executes various functions and processes of the computer by running the software programs and modules stored in the memory 1620. The memory 1620 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.), and the like; and the data storage area can store data created according to the use of the computer (such as audio data, a telephone book, etc.), and the like. In addition, the memory 1620 can include a high-speed random access memory, and can also include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state memory device.
[0147] The processor 1680 is the control center of the computer, connects all parts of the computer through various interfaces and lines, and executes various functions and processes data of the computer by running or executing the software programs and / or modules stored in the memory 1620 and calling the data stored in the memory 1620. Optionally, the processor 1680 can include one or more processing units; preferably, the processor 1680 can integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and an application program, and the modem processor mainly processes wireless communication. It can be understood that the above-mentioned modem processor can also not be integrated into the processor 1680.
[0148] In the embodiments of the present application, the processor 1680 included in the terminal further has the following functions:
[0149] When it is detected that a target user triggers an attendance operation, obtaining summary information of enterprise attendance rules and personal identification information of the target user; the summary information of the enterprise attendance rules includes respective application scopes of respective attendance rules that have been set;
[0150] According to the personal identification information of the target user and the summary information of the enterprise attendance rules, determining an attendance rule applicable to the target user as a target attendance rule;
[0151] Obtaining setting detail information corresponding to the target attendance rule;
[0152] Based on the setting detail information corresponding to the target attendance rule, determining an attendance result for the attendance operation triggered by the target user.
[0153] Optionally, the processor 1680 is further configured to execute the steps of any one of the implementation manners of the attendance method provided in the embodiments of the present application.
[0154] An embodiment of the present application further provides a computer-readable storage medium for storing a computer program, wherein the computer program is used to execute any one of the implementations of the attendance method described in the aforementioned embodiments.
[0155] An embodiment of the present application further provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute any one of the implementations of the attendance method described in the aforementioned embodiments.
[0156] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0157] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0158] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0159] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0160] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English full name: Read-Only Memory, English abbreviation: ROM), random access memory (English full name: Random Access Memory, English abbreviation: RAM), disk or optical disk and other media that can store computer programs.
[0161] It should be understood that in this application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0162] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for checking attendance, characterized in that: Applied to a server, the application scenario of the server also includes an attendance device, an attendance rule storage device, and a personal information storage device that interact with the server through a network; the method includes: receiving an attendance request sent by the attendance device, wherein the attendance request is generated after the attendance device detects that a target user triggers an attendance operation; Sending a first information request to the attendance rule storage device, the first information request being used to request summary information of the enterprise attendance rules; the summary information of the enterprise attendance rules including the applicable scope of each attendance rule that has been set; and sending a second information request to the personal information storage device, the second information request being used to request personal identification information of the target user; receiving summary information of the enterprise attendance rules returned by the attendance rule storage device in response to the first information request; receiving personal identification information of the target user returned by the personal information storage device in response to the second information request; Determining, based on the personal identification information of the target user and the summary information of the enterprise attendance rules, the attendance rules applicable to the target user as the target attendance rules; Sending a third information request to the attendance rule storage device, wherein the third information request is used to request to obtain setting detail information corresponding to the target attendance rule; receiving setting detail information corresponding to the target attendance rule returned by the attendance rule storage device in response to the third information request; the setting detail information is standard setting information used to measure attendance results; Based on the setting detail information corresponding to the target attendance rule, an attendance result is determined for the attendance operation triggered by the target user.
2. The method according to claim 1, characterized in that The applicable scope of the attendance rule in the summary information of the enterprise attendance rule includes the organization tag of the organization to which the attendance rule applies, and the personal identification information of the target user includes the organization tag of the organization to which the target user belongs; Then, the attendance rule applicable to the target user is determined based on the personal identification information of the target user and the summary information of the enterprise attendance rule, as the target attendance rule, including: In the summary information of the enterprise attendance rule, an application scope including the organization tag of the organization to which the target user belongs is searched as a first target application scope, and the attendance rule corresponding to the first target application scope is determined as the target attendance rule.
3. The method according to claim 2, characterized in that The target user belongs to multiple organizations, and the personal identification information of the target user includes the organization labels of the multiple organizations to which the target user belongs; The method further comprises: Determine the lowest-level organization among the multiple organizations to which the target user belongs as the target organization, and determine the organization tag of the target organization in the personal identification information of the target user as the target organization tag; Then, in the summary information of the enterprise attendance rule, searching for an applicable scope including the organization tag of the organization to which the target user belongs as the first target applicable scope includes: In the summary information of the enterprise attendance rule, an application scope including the target organization tag is searched as the first target application scope.
4. The method according to claim 2, characterized in that The target user belongs to multiple organizations, and the personal identification information of the target user includes the organization labels of the multiple organizations to which the target user belongs; Then, in the summary information of the enterprise attendance rule, searching for an applicable scope including the organization tag of the organization to which the target user belongs as a first target applicable scope, and determining the attendance rule corresponding to the first target applicable scope as the target attendance rule, including: For each organization tag in the personal identification information of the target user, searching the summary information of the enterprise attendance rules for an applicable scope including the organization tag as a reference applicable scope corresponding to the organization tag, and determining the attendance rule corresponding to the reference applicable scope as the reference attendance rule corresponding to the organization tag; Obtain the latest setting time of the reference attendance rule corresponding to each organization tag in the personal identification information of the target user; The reference attendance rule with the latest setting time is determined as the target attendance rule.
5. The method according to claim 1, wherein The applicable scope of the attendance rule in the summary information of the enterprise attendance rule includes the employee tag of the employee to whom the attendance rule is applied; the personal identification information of the target user includes the employee tag of the target user; Then, the attendance rule applicable to the target user is determined based on the personal identification information of the target user and the summary information of the enterprise attendance rule, as the target attendance rule, including: In the summary information of the enterprise attendance rule, an applicable scope including the employee tag of the target user is searched as a second target applicable scope, and the attendance rule corresponding to the second target applicable scope is determined as the target attendance rule.
6. The method according to claim 1, characterized in that The determining of the attendance result for the attendance operation triggered by the target user based on the setting detail information corresponding to the target attendance rule includes: determining attribute information corresponding to the attendance operation based on at least one of time information, location information, and network information corresponding to the attendance operation; It is determined whether the attribute information corresponding to the attendance operation matches the setting detail information corresponding to the target attendance rule, and the attendance result is determined according to the determination result.
7. An attendance device, characterized in that: Applied to a server, in the application scenario where the server is located, it also includes an attendance device, an attendance rule storage device, and a personal information storage device that interact with the server through a network; the device includes: A first acquisition module is configured to receive an attendance request sent by the attendance device, wherein the attendance request is generated after the attendance device detects that a target user triggers an attendance operation; The first acquisition module is further configured to send a first information request to the attendance rule storage device, the first information request being configured to request summary information of the enterprise's attendance rules; the summary information of the enterprise's attendance rules including the applicable scope of each established attendance rule; and send a second information request to the personal information storage device, the second information request being configured to request the personal identification information of the target user; The first acquisition module is further configured to receive summary information of the enterprise attendance rules returned by the attendance rule storage device in response to the first information request; and receive personal identification information of the target user returned by the personal information storage device in response to the second information request; An attendance rule determination module, configured to determine the attendance rule applicable to the target user as the target attendance rule based on the personal identification information of the target user and the summary information of the enterprise attendance rule; A second acquisition module is used to send a third information request to the attendance rule storage device, wherein the third information request is used to request to obtain setting detail information corresponding to the target attendance rule; The second acquisition module is further configured to receive setting detail information corresponding to the target attendance rule returned by the attendance rule storage device in response to the third information request; the setting detail information is standard setting information used to measure attendance results; The attendance result determination module is used to determine the attendance result for the attendance operation triggered by the target user based on the setting detail information corresponding to the target attendance rule.
8. The device according to claim 7, characterized in that The applicable scope of the attendance rule in the summary information of the enterprise attendance rule includes the organization tag of the organization to which the attendance rule applies, and the personal identification information of the target user includes the organization tag of the organization to which the target user belongs; Then the attendance rule determination module includes: The first rule determination unit is configured to search the summary information of the enterprise attendance rule for an applicable scope including the organization tag of the organization to which the target user belongs as a first target applicable scope, and determine the attendance rule corresponding to the first target applicable scope as the target attendance rule.
9. The device according to claim 8, characterized in that The target user belongs to multiple organizations, and the personal identification information of the target user includes the organization labels of the multiple organizations to which the target user belongs; The attendance rule determination module also includes: a target organization label determination unit, configured to determine the lowest-level organization among the multiple organizations to which the target user belongs as the target organization, and determine the organization label of the target organization in the personal identification information of the target user as the target organization label; The first rule determination unit is specifically configured to: In the summary information of the enterprise attendance rule, an application scope including the target organization tag is searched as the first target application scope.
10. The device according to claim 8, characterized in that The target user belongs to multiple organizations, and the personal identification information of the target user includes the organization labels of the multiple organizations to which the target user belongs; The first rule determination unit is specifically configured to: For each organization tag in the personal identification information of the target user, searching the summary information of the enterprise attendance rules for an applicable scope including the organization tag as a reference applicable scope corresponding to the organization tag, and determining the attendance rule corresponding to the reference applicable scope as the reference attendance rule corresponding to the organization tag; Obtain the latest setting time of the reference attendance rule corresponding to each organization tag in the personal identification information of the target user; The reference attendance rule with the latest setting time is determined as the target attendance rule.
11. The device according to claim 7, characterized in that The applicable scope of the attendance rule in the summary information of the enterprise attendance rule includes the employee tag of the employee to whom the attendance rule is applied; The personal identification information of the target user includes the employee tag of the target user; The attendance rule determination module includes: The second rule determination unit is configured to search the summary information of the enterprise attendance rule for an applicable scope including the employee tag of the target user as a second target applicable scope, and determine the attendance rule corresponding to the second target applicable scope as the target attendance rule.
12. The device according to claim 7, characterized in that The attendance result determination module is specifically used to: determining attribute information corresponding to the attendance operation based on at least one of time information, location information, and network information corresponding to the attendance operation; It is determined whether the attribute information corresponding to the attendance operation matches the setting detail information corresponding to the target attendance rule, and the attendance result is determined according to the determination result.
13. A device, characterized in that The device includes a processor and a memory; The memory is used to store computer programs; The processor is configured to execute the attendance method according to any one of claims 1 to 6 according to the computer program.
14. A computer-readable storage medium, characterized in that The computer-readable storage medium is used to store a computer program, and the computer program is used to execute the attendance method according to any one of claims 1 to 6.
15. A computer program product, characterized in that The method comprises instructions which, when executed on a computer, cause the computer to execute the attendance method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Work attendance checking management system and method thereof
CN107564119A