Attendance information generation method and device, electronic equipment and storage medium
By combining employees' attendance description information and submission information, attendance information is generated, attendance information errors caused by employees' business trips are solved, and the generation efficiency and accuracy are improved.
Patent Information
- Application Number
- CN202510524412.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-24
- Publication Date
- 2025-08-08
AI Technical Summary
In the prior art, attendance information errors caused by employee business trips and other reasons require manual adjustment, resulting in low generation efficiency, especially when there are too many employees.
By detecting employees' attendance description information and submission information, combining attendance check-in time, attendance information is generated, attendance description information and submission information are added as consideration dimensions, adapting to various work scenarios, and automatically adjusting the attendance information of business travel employees.
It improves the efficiency of attendance information generation, reduces the workload of manual adjustment, adapts to multiple work scenarios, and ensures the accuracy of attendance information.
Smart Images

Figure CN120452079A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information processing technology, and in particular to a method, device, electronic device and storage medium for generating attendance information. Background Art
[0002] To standardize management, companies typically have attendance systems in place. Typically, employees clock in and out of the office. The attendance system records these clock-in and clock-out times and then evaluates them against the designated timeframes. This information then generates attendance information indicating whether the employee's attendance is abnormal.
[0003] However, in actual work, employees may be on business trips and unable to arrive at the company to clock in, resulting in incorrect attendance information generated for the employees. This requires staff from relevant departments to manually adjust the incorrect attendance information, which results in a heavy workload for the staff and low efficiency in generating attendance information. This situation is even more serious when the company has a large number of employees. Summary of the Invention
[0004] The purpose of the embodiments of the present invention is to provide a method, device, electronic device, and storage medium for generating attendance information to improve the efficiency of generating attendance information. The specific technical solution is as follows:
[0005] In a first aspect of an embodiment of the present invention, a method for generating attendance information is provided, the method comprising:
[0006] Check whether the database contains attendance description information of the target attendance day submitted by the target employee;
[0007] If the attendance description information is recorded, determining whether the submission time of the attendance description information is earlier than or equal to the working time of the target attendance day;
[0008] If it is earlier than or equal to the working time of the target attendance day, then generating attendance information indicating that the target employee has normal attendance on the target attendance day;
[0009] If it is later than the working time of the target attendance day, then generating attendance information indicating whether the target employee's attendance on the target attendance day is normal based on the attendance description information and the attendance punch-in time of the target employee on the target attendance day;
[0010] If the attendance description information is not recorded in the database, attendance information indicating whether the attendance of the target employee on the target attendance day is normal is generated based on the attendance punch-in time of the target employee on the target attendance day.
[0011] In one embodiment of the present invention, generating attendance information indicating whether the target employee's attendance on the target attendance day is normal based on the attendance description information and the attendance punch-in time of the target employee on the target attendance day includes:
[0012] If the attendance category included in the attendance description information is the first category, then generating attendance information indicating whether the target employee's attendance on the target attendance day is normal based on the target employee's attendance punch-in time on the target attendance day, wherein the first category is a category indicating that the employee works at the default office location;
[0013] If the attendance category included in the attendance description information is the second category, attendance information representing that the target employee has abnormal attendance on the target attendance day is generated based on the submission time of the attendance description information, wherein the second category is a category representing that the employee is not working at the default office location.
[0014] In one embodiment of the present invention, generating attendance information indicating whether the target employee's attendance on the target attendance day is normal based on the target employee's attendance punch-in time on the target attendance day includes:
[0015] Determine whether the target employee's clock-in time on the target attendance day is earlier than the target employee's working time on the target attendance day;
[0016] If it is earlier than or equal to the working time of the target attendance day, attendance information indicating that the target employee has normal attendance on the target attendance day is generated.
[0017] In one embodiment of the present invention, the method further comprises:
[0018] If the target employee's clock-in time on the target attendance day is later than the working time on the target attendance day, attendance information indicating that the target employee's attendance on the target attendance day is abnormal is generated based on the submission time of the attendance description information.
[0019] In one embodiment of the present invention, generating attendance information indicating abnormal attendance of the target employee on the target attendance day based on the submission time of the attendance description information includes:
[0020] If the submission time of the attendance description information is later than the working time of the target attendance day and earlier than or equal to the set supplementary submission time of the attendance description information, then abnormal attendance information of the submission type of the attendance description information is generated as supplementary submission type;
[0021] If the submission time of the attendance description information is later than the supplementary submission time, abnormal attendance information in which the submission type of the attendance description information is a non-submission type is generated.
[0022] In one embodiment of the present invention, the method further comprises:
[0023] Detecting whether the time for submitting the attendance description information set on the target attendance day has expired;
[0024] If it exceeds, the step of detecting whether the database has attendance description information of the target attendance day submitted by the target employee recorded therein is executed.
[0025] In one embodiment of the present invention, prompt information is generated for employees with abnormal attendance based on the generated attendance information;
[0026] Push the generated prompt information to the setting client.
[0027] In a second aspect of the embodiments of the present invention, there is further provided an attendance information generating device, the device comprising:
[0028] The attendance description information detection module is used to detect whether the attendance description information of the target attendance day submitted by the target employee is recorded in the database;
[0029] A working time judgment module, configured to judge whether the submission time of the attendance description information is earlier than or equal to the working time of the target attendance day if the attendance description information is recorded;
[0030] The attendance information generation module is configured to generate attendance information indicating whether the target employee's attendance on the target attendance day is normal if the target employee's attendance is earlier than or equal to the working time on the target attendance day; generate attendance information indicating whether the target employee's attendance on the target attendance day is normal based on the attendance description information and the target employee's attendance punch-in time on the target attendance day if the target employee's attendance is later than the working time on the target attendance day; and generate attendance information indicating whether the target employee's attendance on the target attendance day is normal based on the target employee's attendance punch-in time on the target attendance day if the attendance description information is not recorded in the database.
[0031] In one embodiment of the present invention, the attendance information generation module is specifically used to generate attendance information indicating whether the attendance of the target employee is normal on the target attendance day based on the attendance punch-in time of the target employee on the target attendance day if the attendance category included in the attendance description information is the first category, wherein the first category is a category indicating that the employee works at the default office location; if the attendance category included in the attendance description information is the second category, then generate attendance information indicating that the attendance of the target employee on the target attendance day is abnormal based on the submission time of the attendance description information, wherein the second category is a category indicating that the employee does not work at the default office location.
[0032] In one embodiment of the present invention, the attendance information generation module is specifically used to determine whether the attendance punch-in time of the target employee on the target attendance day is earlier than the working time of the target attendance day; if it is earlier than or equal to the working time of the target attendance day, then generate attendance information indicating that the target employee's attendance on the target attendance day is normal.
[0033] In one embodiment of the present invention, the attendance information generation module is specifically used to generate attendance information indicating that the target employee's attendance on the target attendance day is abnormal based on the submission time of the attendance description information if the target employee's attendance punch-in time on the target attendance day is later than the working time on the target attendance day.
[0034] In one embodiment of the present invention, the attendance information generation module is specifically configured to generate abnormal attendance information in which the submission type of the attendance description information is a supplementary submission type if the submission time of the attendance description information is later than the working time of the target attendance day and earlier than or equal to the set supplementary submission time of the attendance description information; and generate abnormal attendance information in which the submission type of the attendance description information is a non-submission type if the submission time of the attendance description information is later than the supplementary submission time.
[0035] In one embodiment of the present invention, the device also includes: a make-up time detection module, which is used to detect whether the make-up time of the attendance description information set for the target attendance day has been exceeded; if exceeded, the attendance description information detection module executes the detection database to determine whether the attendance description information of the target attendance day submitted by the target employee is recorded.
[0036] In one embodiment of the present invention, the device further includes: a prompt information generating module for generating prompt information for employees with abnormal attendance based on the generated attendance information; and a prompt information pushing module for pushing the generated prompt information to a set client.
[0037] In a third aspect of an embodiment of the present invention, an electronic device is provided, comprising a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;
[0038] Memory for storing computer programs;
[0039] The processor is configured to implement any of the method steps described in the first aspect when executing a program stored in the memory.
[0040] In a fourth aspect of the embodiments of the present invention, a computer-readable storage medium is further provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, any of the method steps described in the first aspect is implemented.
[0041] In a fifth aspect of the embodiments of the present invention, a computer program product comprising instructions is further provided, which, when executed on a computer, enables the computer to execute any one of the method steps described in the first aspect.
[0042] Beneficial effects of the embodiments of the present invention:
[0043] The solution provided by the embodiments of the present invention not only considers an employee's attendance clock-in time as a factor in generating attendance information, but also adds two additional factors: the employee's attendance description information and submission information. This information allows for understanding various aspects of an employee's actual work, making the attendance information generated based on these three considerations adaptable to a variety of work scenarios. Furthermore, if an employee is unable to clock in at the company due to a business trip, for example, and therefore lacks a clock-in time, attendance information for the employee can be generated based on their attendance description information and submission information. This eliminates the need for staff to manually adjust the employee's attendance information, thereby improving the efficiency of attendance information generation.
[0044] Of course, it is not necessary to achieve all of the advantages described above simultaneously in order to implement any product or method of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can also be obtained based on these drawings.
[0046] Figure 1 A flow chart of a method for generating attendance information provided by an embodiment of the present invention;
[0047] Figure 2 A flowchart of another method for generating attendance information provided by an embodiment of the present invention;
[0048] Figure 3 A flowchart of another method for generating attendance information provided by an embodiment of the present invention;
[0049] Figure 4 A flow chart of another method for generating attendance information provided by an embodiment of the present invention
[0050] Figure 5 A schematic diagram of an interface of a reminder report provided by an embodiment of the present invention;
[0051] Figure 6 A schematic diagram of an attendance description information entry interface provided by an embodiment of the present invention;
[0052] Figure 7 A schematic structural diagram of an attendance information generating device provided by an embodiment of the present invention;
[0053] Figure 8 A schematic structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0054] The following will be combined with the accompanying drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field based on this application are within the scope of protection of the present invention.
[0055] In order to improve the efficiency of generating attendance information, embodiments of the present invention provide a method, apparatus, electronic device, computer-readable storage medium, and computer program product for generating attendance information.
[0056] In order to make the attendance information generation solution provided by the embodiment of the present invention easier to understand, the application scenarios and some concepts involved in the solution provided by the embodiment of the present invention are first explained.
[0057] The application scenario involved in the embodiment of the present invention may be: the office locations of different employees of the company may be different, for example, employees may be on business trips, visiting outside, seconded, etc., so that simply relying on the employee's attendance punch-in time to generate the employee's attendance information is no longer satisfactory. In view of the above situation, in the solution provided by the embodiment of the present invention, after each employee uses the attendance punch-in device or completes the attendance punch-in on the mobile terminal, he or she also needs to enter his or her own attendance description information on the client, so that the server can generate the employee's attendance information based on the employee's attendance punch-in time, attendance description information and its corresponding submission information, wherein the submission information may include: the submission time of the employee submitting the attendance description information, the submission method of the employee submitting the attendance description information, etc.
[0058] The attendance description information mentioned in this embodiment of the present invention refers to the work description information filled out by employees based on their job category. The attendance description information can be filled out as required, consisting of one or more words or a paragraph. After receiving the attendance description information sent by the client, the server stores it and the corresponding submitted information in a database. The following describes in detail the storage format of the attendance description information and submitted information on the server.
[0059] In one possible implementation, the server can store attendance information and the corresponding submitted information in a database in the form of a "correspondence between employee ID, attendance description information, and input information." Furthermore, if the attendance description information is a paragraph, the server can use a keyword extraction algorithm to extract keywords from the attendance description information as the attendance description information in the aforementioned correspondence. If the attendance description information consists of one or more words, the server directly stores the aforementioned correspondence. Based on this, when the server needs to generate attendance information for a target employee, it can use the target employee's ID to check whether a corresponding relationship including the target employee's ID is recorded in the database, and then generate the target employee's attendance information.
[0060] In another possible implementation, the server can break down the target employee's attendance description information and the corresponding submitted information into multiple fields of data, combine the target employee's employee ID and these multiple fields of data into the target employee's attendance data fields, and store the target employee's attendance description information and the corresponding submitted information in the database as "data fields." Based on this, when the server needs to generate the target employee's attendance information, it can generate the target employee's attendance information based on the target employee's attendance data fields stored in the database.
[0061] like Figure 1 As shown, Figure 1 A flow chart of a method for generating attendance information provided by an embodiment of the present invention includes the following steps S101-S105:
[0062] Step S101: Check whether the database has the attendance description information of the target attendance day submitted by the target employee. If the check result is yes, execute step S102; if the check result is no, execute step S105.
[0063] Step S102: Determine whether the submission time of the attendance description information is earlier than or equal to the working time of the target attendance day. If the judgment result is yes, execute step S103; if the judgment result is no, execute step S104.
[0064] Step S103: Generate attendance information indicating that the target employee has normal attendance on the target attendance day.
[0065] Step S104: generating attendance information indicating whether the target employee's attendance on the target attendance day is normal based on the attendance description information and the target employee's attendance punch-in time on the target attendance day.
[0066] Step S105: Based on the attendance punch-in time of the target employee on the target attendance day, generate attendance information indicating whether the target employee's attendance on the target attendance day is normal.
[0067] The solution provided by the embodiments of the present invention not only considers an employee's attendance clock-in time as a factor in generating attendance information, but also adds two additional factors: the employee's attendance description information and submission information. This information allows for understanding various aspects of an employee's actual work, making the attendance information generated based on these three considerations adaptable to a variety of work scenarios. Furthermore, if an employee is unable to clock in at the company due to a business trip, for example, and therefore lacks a clock-in time, attendance information for the employee can be generated based on their attendance description information and submission information. This eliminates the need for staff to manually adjust the employee's attendance information, thereby improving the efficiency of attendance information generation.
[0068] After a preset time point, the server can generate each employee's attendance information for the target attendance day based on the employee's attendance description information, submission information, and attendance punch-in time recorded in the database. For example, the server can generate each employee's attendance information at 9:30 a.m. on each attendance day or at 9:30 a.m. on the last attendance day of each month. The specific method by which the server obtains the target employee's attendance description information submitted for the target attendance day will be described in subsequent embodiments and will not be detailed here.
[0069] The server may determine whether the submission time of the attendance description information is earlier than or equal to the working time of the target attendance day in the following two specific implementations:
[0070] A possible implementation method, following the above example of "the correspondence between employee identification, attendance description information, and input information", is that the server can use the employee identification of the target employee to detect whether the corresponding relationship of the target employee is recorded in the database. If so, the server can determine whether the submission time of the attendance description information is earlier than or equal to the working time of the target attendance day based on the submission information in the corresponding relationship.
[0071] Another possible implementation method, continuing with the above-mentioned example of "data field", is that the server can detect whether the target employee's attendance data field is recorded in the database through the employee ID of the target employee. If so, the server can determine whether the submission time of the attendance description information is earlier than or equal to the working time of the target attendance day based on the submission information in the attendance data field.
[0072] If the result of step S102 is that the submission time of the attendance description information is earlier than or equal to the working time of the target attendance day, then attendance information is generated indicating that the target employee had normal attendance on the target attendance day. Normal attendance indicates that the employee completed the work clock-in and clock-out period and had no absences. The attendance information indicating that the target employee had normal attendance on the target attendance day may be any one or more of the following: the target employee's clock-in time, an attendance status indicating normal attendance, or a comprehensive attendance record that includes both the clock-in time and the attendance status.
[0073] When the judgment result of the above step S102 is that the submission time of the attendance description information is later than the working time of the target attendance day, step S104 is executed to generate attendance information indicating whether the target employee's attendance on the target attendance day is normal, and the attendance information of the target employee is further generated based on the submission time of the attendance description information being later than the working time of the target attendance day. The specific generation process is described in subsequent embodiments and will not be described in detail here.
[0074] When the detection result of the above step S101 is no, step 105 will be executed to generate attendance information indicating whether the target employee's attendance on the target attendance day is normal, and the attendance information of the target employee will continue to be generated based on the attendance punch-in time of the target employee on the target attendance day. The specific generation process will be explained in subsequent embodiments and will not be described in detail here.
[0075] In one embodiment of the present invention, see Figure 2 , Figure 2 Another flow chart of attendance information generation provided by an embodiment of the present invention is provided. The server may generate attendance information of a target employee on a target attendance day according to the following method. The method includes the following steps S201-S206:
[0076] Step S201: Check whether the database has the attendance description information of the target attendance day submitted by the target employee. If the check result is yes, execute step S202; if the check result is no, execute step S206.
[0077] Step S202: Determine whether the submission time of the attendance description information is earlier than or equal to the working time of the target attendance day. If the determination result is yes, execute step S203; if the determination result is no, execute step S204.
[0078] Step S203: Generate attendance information indicating that the target employee has normal attendance on the target attendance day.
[0079] Steps S201-S203 are consistent with the above steps S101-S103 and will not be repeated here.
[0080] Step S204: Determine whether the attendance category included in the attendance description information is the first category or the second category. If it is the first category, execute step S205; if it is the second category, execute step S206.
[0081] The first category mentioned above is a category representing working at the default office location. The first category filled in by the target employee can be a category representing the target employee working at the default office location, such as "at BASE", or it can be a category representing that the employee works at the default office location but requests a holiday during a certain period of time today, such as "half-day holiday".
[0082] The second category mentioned above is a category indicating that the target employee is not working at the default office location. The second category filled in by the target employee can be a category indicating that the target employee is not working at the default office location, such as "business trip" or "secondment", or a category indicating that the target employee is on vacation today, such as "vacation".
[0083] Step S205: Generate attendance information indicating whether the target employee's attendance on the target attendance day is normal based on the target employee's attendance punch-in time on the target attendance day.
[0084] Continuing with the example of the "first category" above, when the attendance category included in the target employee's attendance description information is "at BASE" or "half-day holiday", the server will obtain the target employee's attendance punch-in time on the target attendance day and the preset working time of the target attendance day from the database, and determine whether the target employee's attendance punch-in time on the target attendance day is earlier than the working time of the target attendance day.
[0085] Step S206: generating attendance information indicating abnormal attendance of the target employee on the target attendance day based on the submission time of the attendance description information.
[0086] Continuing with the example of the "second category" above, when the attendance category included in the target employee's attendance description information is "business trip" or "secondment", it means that the target employee is not working at the default office location, and the database does not have the target employee's attendance punch-in time on the target attendance day. In this case, the server can generate attendance information indicating that the target employee's attendance on the target attendance day is abnormal.
[0087] The solution provided by the embodiments of the present invention not only considers an employee's attendance clock-in time as a factor in generating attendance information, but also adds two additional factors: the employee's attendance description information and submission information. The attendance categories included in the employee's attendance description information provide insights into various aspects of the employee's actual work, making the attendance information generated based on these three factors adaptable to a variety of work scenarios. Furthermore, if an employee is unable to clock in at the company due to a business trip, for example, and therefore lacks a clock-in time, attendance information for the employee can be generated based on their attendance description information and submission information. This eliminates the need for staff to manually adjust the employee's attendance information, thereby improving the efficiency of attendance information generation.
[0088] In one embodiment of the present invention, see Figure 3 , Figure 3 A flow chart of another method for generating attendance information provided by an embodiment of the present invention includes the following steps S301-S307:
[0089] Step S301: Check whether the database has the attendance description information of the target attendance day submitted by the target employee. If the check result is yes, execute step S302; if the check result is no, execute step S307.
[0090] Step S302: Determine whether the submission time of the attendance description information is earlier than or equal to the working time of the target attendance day. If the judgment result is yes, execute step S303; if the judgment result is no, execute step S304.
[0091] Step S303: Generate attendance information indicating that the target employee has normal attendance on the target attendance day.
[0092] Steps S301-S303 are consistent with the above steps S201-S203 and will not be repeated here.
[0093] Step S304: Determine whether the attendance category included in the attendance description information is the first category or the second category. If it is the first category, execute step S305; if it is the second category, execute step S307.
[0094] Continuing with the above example of "the first category", when the judgment result of step S304 is the first category, it means that the attendance category filled in by the target employee is "at BASE" or "half-day vacation", indicating that the target employee's office location is the default office location and there is an attendance punch-in time for the target employee on the target attendance day. The server can obtain further attendance information by whether the attendance punch-in time is earlier than the working time on the target attendance day.
[0095] Step S305: Determine whether the target employee's clock-in time on the target attendance day is earlier than the target employee's working time on the target attendance day. If the judgment result is earlier, execute step S306; if the judgment result is later, execute step S307.
[0096] Step S306: Generate attendance information indicating that the target employee has normal attendance on the target attendance day.
[0097] Step S307: Based on the submission time of the attendance description information, generate attendance information indicating abnormal attendance of the target employee on the target attendance day.
[0098] The above attendance anomaly indicates that the employee did not complete the work clock-in or submit the attendance description information within the specified time.
[0099] When the judgment result of step S305 is no, it means that the target employee's test status on the target attendance day is abnormal. The server can also determine whether the submission time of the target employee's attendance description information is later than the working time of the target attendance day and earlier than or equal to the set submission time of the attendance description information, so as to obtain more detailed attendance information representing the attendance abnormality.
[0100] Continuing with the example of the "Second Category" above, if the judgment result in step S304 is the Second Category, it means that the target employee's attendance category entered is "Business Trip" or "Secondment," indicating that the target employee is not working at the default office location. Therefore, the database does not contain the target employee's attendance clock-in time for the target attendance day. In this case, after generating attendance information indicating the target employee's attendance anomaly on the target attendance day in step S307, the server can further determine whether the target employee's attendance description information submission time is later than the target attendance day's start time and earlier than or equal to the set supplementary submission time for the attendance description information, thereby obtaining more detailed attendance information indicating the attendance anomaly. This judgment process is described in subsequent embodiments and is not further elaborated here.
[0101] The solution provided by the embodiments of the present invention not only considers an employee's attendance punch-in time as a factor in generating attendance information, but also adds two additional factors: the employee's attendance description information and submission information. The attendance categories included in the employee's attendance description information provide insights into various aspects of the employee's actual work, making the attendance information generated based on these three factors adaptable to a variety of work scenarios. Furthermore, even if an employee is unable to clock in due to a business trip, resulting in no attendance punch-in time or a punch-in time later than the company's working hours, attendance information can be generated based on the employee's attendance description information and submission information. This eliminates the need for staff to manually adjust the attendance information of employees on business trips, thereby improving the efficiency of attendance information generation.
[0102] In one embodiment of the present invention, see Figure 4 , Figure 4 A flow chart of another method for generating attendance information provided by an embodiment of the present invention includes the following steps S401-S409:
[0103] Step S401: Check whether the database has the attendance description information of the target attendance day submitted by the target employee. If the check result is yes, execute step S402; if the check result is no, execute step S407.
[0104] Step S402: Determine whether the submission time of the attendance description information is earlier than the working time of the target attendance day. If the determination result is yes, execute step S403; if the determination result is no, execute step S404.
[0105] Step S403: Generate attendance information indicating that the target employee has normal attendance on the target attendance day.
[0106] Step S404: Determine whether the attendance category included in the attendance description information is the first category or the second category. If it is the first category, execute step S405; if it is the second category, execute step S407.
[0107] Step S405: Determine whether the target employee's clock-in time on the target attendance day is earlier than the target attendance day's working time. If the judgment result is earlier, execute step S406; if the judgment result is later, execute step S407.
[0108] Step S406: Generate attendance information indicating that the target employee has normal attendance on the target attendance day.
[0109] Steps S401-S406 are consistent with the above steps S301-S306 and will not be repeated here.
[0110] Step S407: Determine whether the submission time of the attendance description information is later than the working time of the target attendance day and earlier than or equal to the set supplementary submission time of the attendance description information. If the judgment result is yes, execute step S408; if the judgment result is no, execute step S409.
[0111] Step S408: Generate abnormal attendance information in which the submission type of the attendance description information is a supplementary submission type.
[0112] Step S409: Generate abnormal attendance information in which the submission type of the attendance description information is the unsubmitted type.
[0113] When the target employee's attendance description information is submitted later than the target attendance date, and the target employee fills in the first category of attendance, the clock-in time is later than the working hours, or the attendance category filled in is the second category, the server can generate abnormal attendance information with the submission type of the attendance description information as the supplementary submission type or the unsubmitted type.
[0114] In one possible implementation, the server can generate attendance information for multiple employees simultaneously or sequentially. After obtaining the attendance information of multiple employees, the server can obtain the department information of the multiple employees and classify the multiple employees according to the above department information. Then, based on the attendance description information, target attendance day, and attendance information of the multiple employees, the server can generate an attendance summary table for each department and send the attendance summary table for each department to the client of the corresponding manager of each department.
[0115] For example, the server generates attendance information for employees A, B, and C on Wednesday, April 16, 2025, including attendance information with a submission type of unsubmitted, attendance information with a submission type of supplementary, and attendance information indicating normal attendance. Employees A, B, and C all belong to department A, among which employee A belongs to sub-department A, employee B belongs to sub-department B, and employee C belongs to sub-department C. Based on the above information and the attendance description information of the above three employees, the server can generate the attendance summary table shown in Table 1.
[0116] Table 1
[0117]
[0118] The server can also generate an attendance summary sheet for each department at a preset time node on the last attendance day of each month, such as 9:30 am, and send the generated attendance summary sheet to the client of the corresponding manager of each department. The manager can understand the attendance status of employees in their department this month, such as the number of attendance days, lateness, leave, etc. based on the attendance summary sheet of their own department, and measure the work enthusiasm of employees according to their attendance status. In addition, for employees with flexible working hours, the server can add the clocking in and out time to the employee's attendance information, so that the generated attendance summary sheet includes the total working hours of the employee this month. The manager can evaluate the employee's contribution to the company based on the total working hours of the employee.
[0119] In the solution provided by the embodiment of the present invention, the situation that each employee may have a different office location or be on vacation is taken into consideration, and the employees' offices are divided into two categories. This increases the consideration dimension when generating employee attendance information, so that even if there is no employee's attendance punch-in time on the attendance day, attendance information representing the employee's attendance status on the target attendance day can be correctly generated, and the situation where erroneous attendance information may be generated by simply generating attendance information based on the employee's punch-in time is avoided as much as possible. In addition, the attendance information generated based on the above three consideration dimensions includes three types: normal, supplementary and unsubmitted, which refines the classification of attendance information. Various types of attendance information can meet the actual work needs with complex situations.
[0120] In one embodiment of the present invention, the server may further detect whether the time for submitting the attendance description information set on the target attendance day has expired, and if so, the above step S101 is executed.
[0121] For example, the working time on the target attendance day is 9:00 a.m., and the set time for submitting the attendance description information on the target attendance day is 9:20 a.m. The server can detect in real time whether the current time exceeds 9:20 a.m. If it exceeds 9:20 a.m., the server automatically executes the above step S101 to generate the attendance information of the target employee. After obtaining the attendance information of the target employee, the server sends the attendance information to the client of the manager or department leader, so that the manager or department leader can immediately evaluate the attendance of the target employee.
[0122] In the solution provided by the embodiment of the present invention, the server can determine whether to execute the above-mentioned attendance information generation method by detecting whether the set supplementary submission time of the attendance description information of the target attendance day has been exceeded. This eliminates manual operation and realizes automatic generation of the attendance information of the target employee, thereby improving the efficiency of generating attendance information. Moreover, when the above-mentioned supplementary submission time has been exceeded, the submission of the attendance information is completed, so that the management personnel or department leaders can conduct attendance evaluation of the target employee in a timely manner, thereby improving the efficiency of attendance evaluation and the real-time level of attendance information.
[0123] In one embodiment of the present invention, the server may further generate prompt information for abnormal attendance based on the generated attendance information, and push the generated prompt information to a set client.
[0124] The above-mentioned client can be a client of a manager, department head, or employee, without limitation. The server can also send the target employee's attendance information and a link to the target employee's attendance evaluation to the client of the target employee's colleagues, managers, and department heads, so that multiple people can evaluate the target employee's attendance. The attendance evaluation results are then compiled into an attendance report, which is then sent to the client of the manager or department head. This allows the manager or department head to more clearly understand the target employee's attendance performance based on the multi-angle and multi-faceted attendance reports.
[0125] The above settings allow the client to set multiple filtering conditions such as employee name, default office location, business trip province and city, attendance information, etc. Based on the attendance information generated by the server side and the attendance description information entered into the database by the client side, employees, managers or department leaders can use the filtering conditions to filter out the information that they can view within their own permissions.
[0126] In one possible implementation, the above-mentioned prompt information may be a reminder report. After obtaining the abnormal attendance information of multiple employees, the server may obtain the department information to which the multiple employees belong from the database, generate the above-mentioned reminder report based on the abnormal attendance information and department information of the multiple employees, and push the generated reminder report to the set client.
[0127] like Figure 5 As shown, Figure 5 The following is an interface diagram of a reminder report provided by an embodiment of the present invention. The server can divide the content in the reminder report into two major categories: supplementary type and unsubmitted type. When the server obtains the abnormal attendance information of four employees A, B, C, and D on April 16, 2025, it is obtained that the abnormal attendance information of employees A and B is of supplementary type, and the abnormal attendance information of employees C and D is of unsubmitted type. Then, the department information of the above four employees is obtained from the database, and it is obtained that the above four employees belong to department A, and employees A, C, and D belong to sub-department A, and employee B belongs to sub-department B. Based on the abnormal attendance information and department information of the above four employees, a reminder report is generated and sent to the client of the manager, so that the manager can remind the above four employees to supplement the attendance description information in time according to the reminder report. In addition, the server can also generate a reminder template for the abnormal attendance information of a single employee. The specific generation method is the same as above and will not be repeated here.
[0128] In the solution provided by the embodiment of the present invention, after obtaining the abnormal attendance information of an employee, prompt information can be generated in a timely manner for the abnormal attendance information, and the generated prompt information can be sent to the set client, thereby realizing real-time reporting of abnormal attendance information, improving the timeliness of attendance information, and allowing employees with abnormal attendance information to supplement attendance description information in a timely manner. In addition, the embodiment of the present invention also provides multi-dimensional fuzzy screening, so that employees, managers or department leaders can more conveniently view the information that can be viewed within their own authority, thereby enhancing the level of the attendance management system.
[0129] As an implementation method of the embodiment of the present invention, the server can obtain the employee's attendance description information in the following manner:
[0130] If the current date is a trading day, employees can click a cell in the client's attendance entry interface to trigger an attendance description entry event and fill in their attendance description. Trading days are weekdays when financial markets are open for trading. If the current date is a non-trading day, employees do not need to fill in their attendance description.
[0131] When the attendance description information entry event is triggered, the client can display the attendance description information entry interface to the employee, so that the employee can enter the attendance description information.
[0132] Employees can fill in the categories included in the attendance description information in the attendance description information input interface so that the client can determine whether the category is the first category. Figure 6 As shown, Figure 6 A schematic diagram of an attendance description information entry interface provided by an embodiment of the present invention. Figure 6 The "Please fill in" text box is for the target employee to fill in the categories included in the attendance description information. The target employee can also select words such as "late", "arrived as expected", "missed punching" and so on according to his or her own attendance situation to mark the filled categories. There are many words for marking the categories, and there is no limitation here.
[0133] The above attendance description information entry interface is Figure 6 For example, when an employee fills in the first category in the "Please fill in" text box, the client will display the default office location filling box to the target employee so that the employee can fill in a more detailed work location, such as "Office A", "Building A 1203", etc.
[0134] The above attendance description information entry interface is Figure 5For example, when an employee fills in the second category in the "Please fill in" text box, the client can display the actual office location filling box and prompt information indicating that specific office site photos need to be uploaded to the target employee. The filling box includes: the actual province and city where the target employee works, and the flight and / or train information of the target employee's travel. The target employee can fill in the actual province and city, flight and / or train information of the work in the actual office location filling box, and upload specific office site photos according to the prompt information. In addition, continuing with the above "second category" example, in addition to "business trip" and "secondment", the second category can also be "vacation". When the employee fills in the category as "vacation" in the attendance description information entry interface, the client does not need to display the actual office location filling box to the employee.
[0135] After filling in the required attendance description information, the employee can click the Submit option on the attendance description information entry interface, so that the client can obtain the attendance description information and corresponding entry information of the target employee, and send the attendance description information and corresponding entry information of the target employee to the server, so that the server stores the attendance description information and corresponding entry information of the target employee in the database.
[0136] In one possible implementation, the attendance entry interface may be the following Table 2, which includes date cells for the most recent week, the employee's name, and the employee's default office location. An employee clicking a date cell triggers an attendance description entry event. Furthermore, the employee can select a single date and enter attendance description information for that date, or they can select attendance description information for multiple dates. After obtaining the employee's attendance information, the server can send the employee's attendance information to the client, allowing the client to add abnormal status labels such as "not submitted" or "supplemented" to the attendance entry interface based on the employee's attendance information. If the employee's attendance information is normal, no labeling is required.
[0137] Table 2
[0138]
[0139] In the solution provided by the embodiment of the present invention, the target employee can fill in a variety of information according to his or her own classification, so that the attendance description information obtained by the client summarizes multiple categories of valuable data. Through multiple categories of valuable data, even if there is no employee's attendance punch-in time on the target attendance day, attendance information representing the employee's attendance status on the target attendance day can be correctly generated, which solves the problem that in actual work, the generated employee attendance information is incorrect because the employee needs to be on a business trip and cannot arrive at the company to punch in.
[0140] Corresponding to the above attendance information generation method, such as Figure 7 As shown, an embodiment of the present invention provides a structural diagram of an attendance information generating device, the device comprising:
[0141] The attendance description information detection module 701 is used to detect whether the attendance description information of the target attendance day submitted by the target employee is recorded in the database;
[0142] Working time determination module 702, for determining whether the submission time of the attendance description information is earlier than or equal to the working time of the target attendance day if the attendance description information is recorded;
[0143] Attendance information generation module 703 is used to generate attendance information indicating whether the target employee's attendance on the target attendance day is normal if the target employee's attendance is earlier than or equal to the working time on the target attendance day; if the target employee's attendance is later than the working time on the target attendance day, generate attendance information indicating whether the target employee's attendance on the target attendance day is normal based on the attendance description information and the target employee's attendance punch-in time on the target attendance day; if the attendance description information is not recorded in the database, generate attendance information indicating whether the target employee's attendance on the target attendance day is normal based on the target employee's attendance punch-in time on the target attendance day.
[0144] The solution provided by the embodiments of the present invention not only considers an employee's attendance clock-in time as a factor in generating attendance information, but also adds two additional factors: the employee's attendance description information and submission information. This information allows for understanding various aspects of an employee's actual work, making the attendance information generated based on these three considerations adaptable to a variety of work scenarios. Furthermore, if an employee is unable to clock in at the company due to a business trip, for example, and therefore lacks a clock-in time, attendance information for the employee can be generated based on their attendance description information and submission information. This eliminates the need for staff to manually adjust the employee's attendance information, thereby improving the efficiency of attendance information generation.
[0145] In one embodiment of the present invention, the above-mentioned attendance information generation module 703 is specifically used to generate attendance information indicating whether the target employee's attendance on the target attendance day is normal based on the target employee's attendance punch-in time on the target attendance day if the attendance category included in the attendance description information is the first category, wherein the first category is a category indicating that the employee works at the default office location; if the attendance category included in the attendance description information is the second category, then generate attendance information indicating that the target employee's attendance on the target attendance day is abnormal based on the submission time of the attendance description information, wherein the second category is a category indicating that the employee does not work at the default office location.
[0146] In one embodiment of the present invention, the above-mentioned attendance information generation module 703 is specifically used to determine whether the target employee's attendance punch-in time on the target attendance day is earlier than the working time on the target attendance day; if it is earlier than or equal to the working time on the target attendance day, then generate attendance information indicating that the target employee's attendance on the target attendance day is normal.
[0147] In one embodiment of the present invention, the above-mentioned attendance information generation module 703 is specifically used to generate attendance information indicating that the target employee's attendance on the target attendance day is abnormal based on the submission time of the attendance description information if the target employee's attendance punch-in time on the target attendance day is later than the working time on the target attendance day.
[0148] In one embodiment of the present invention, the attendance information generation module 703 is specifically configured to generate abnormal attendance information in which the submission type of the attendance description information is a supplementary submission type if the submission time of the attendance description information is later than the working time of the target attendance day and earlier than or equal to the set supplementary submission time of the attendance description information; and to generate abnormal attendance information in which the submission type of the attendance description information is a non-submission type if the submission time of the attendance description information is later than the supplementary submission time.
[0149] In one embodiment of the present invention, the above-mentioned attendance information generating device also includes: a supplementary submission time detection module, which is used to detect whether the supplementary submission time of the attendance description information set for the target attendance has been exceeded; if exceeded, the above-mentioned attendance description information detection module 701 detects whether the database records the attendance description information of the target attendance day submitted by the target employee.
[0150] In one embodiment of the present invention, the attendance information generating device further includes: a prompt information generating module for generating prompt information for employees with abnormal attendance based on the generated attendance information; and a prompt information pushing module for pushing the generated prompt information to a set client.
[0151] The embodiment of the present invention further provides an electronic device, such as Figure 8 As shown, it includes a processor 801 , a communication interface 802 , a memory 803 and a communication bus 804 , wherein the processor 801 , the communication interface 802 and the memory 803 communicate with each other via the communication bus 804 .
[0152] Memory 803, used for storing computer programs;
[0153] Processor 801 is configured to implement the attendance information generation scheme provided in the above-described method embodiment when executing the program stored in memory 803. The communication bus mentioned in the above-described electronic device may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, for example. This communication bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, the figure shows only one thick line, but this does not imply that there is only one bus or only one type of bus.
[0154] The communication interface is used for communication between the above electronic device and other devices.
[0155] The memory may include random access memory (RAM) or non-volatile memory (NVM), such as at least one disk storage. Alternatively, the memory may be at least one storage device located away from the processor.
[0156] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0157] In another embodiment of the present invention, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium. When the computer program is executed by a processor, the steps of any of the above-mentioned attendance information generating methods are implemented.
[0158] In another embodiment of the present invention, a computer program product including instructions is provided. When the computer program product is executed on a computer, the computer executes the steps of any one of the attendance information generating methods in the above embodiments.
[0159] In the above embodiments, all or part of the embodiments can be implemented using software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in accordance with the embodiments of the present invention are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital landline (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)).
[0160] It should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply the existence of any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or device comprising the element.
[0161] Each embodiment in this specification is described in a related manner. Similar portions between the various embodiments can be referenced to each other. Each embodiment focuses on the differences between the other embodiments. In particular, since the apparatus, electronic device, computer-readable storage medium, and computer program are generally similar to the method embodiments, their descriptions are relatively simple. For relevant portions, reference can be made to the descriptions of the method embodiments.
[0162] The above description is only a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention are included in the scope of protection of the present invention.
Claims
1. A method for generating attendance information, characterized in that: The method comprises: Check whether the database contains attendance description information of the target attendance day submitted by the target employee; If the attendance description information is recorded, determining whether the submission time of the attendance description information is earlier than or equal to the working time of the target attendance day; If it is earlier than or equal to the working time of the target attendance day, then generating attendance information indicating that the target employee has normal attendance on the target attendance day; If it is later than the working time of the target attendance day, then generating attendance information indicating whether the target employee's attendance on the target attendance day is normal based on the attendance description information and the attendance punch-in time of the target employee on the target attendance day; If the attendance description information is not recorded in the database, attendance information indicating whether the attendance of the target employee on the target attendance day is normal is generated based on the attendance punch-in time of the target employee on the target attendance day.
2. The method according to claim 1, characterized in that The generating, based on the attendance description information and the attendance punch-in time of the target employee on the target attendance day, attendance information indicating whether the attendance of the target employee on the target attendance day is normal includes: If the attendance category included in the attendance description information is the first category, then generating attendance information indicating whether the target employee's attendance on the target attendance day is normal based on the target employee's attendance punch-in time on the target attendance day, wherein the first category is a category indicating that the employee works at the default office location; If the attendance category included in the attendance description information is the second category, attendance information representing that the target employee has abnormal attendance on the target attendance day is generated based on the submission time of the attendance description information, wherein the second category is a category representing that the employee is not working at the default office location.
3. The method according to claim 2, characterized in that The generating, based on the attendance punch-in time of the target employee on the target attendance day, attendance information indicating whether the attendance of the target employee on the target attendance day is normal, includes: Determine whether the target employee's clock-in time on the target attendance day is earlier than the target employee's working time on the target attendance day; If it is earlier than or equal to the working time of the target attendance day, attendance information indicating that the target employee has normal attendance on the target attendance day is generated.
4. The method according to claim 3, characterized in that The method further comprises: If the target employee's clock-in time on the target attendance day is later than the working time on the target attendance day, attendance information indicating that the target employee's attendance on the target attendance day is abnormal is generated based on the submission time of the attendance description information.
5. The method according to claim 2 or 4, characterized in that The generating, based on the submission time of the attendance description information, of attendance information indicating abnormal attendance of the target employee on the target attendance day, includes: If the submission time of the attendance description information is later than the working time of the target attendance day and earlier than or equal to the set supplementary submission time of the attendance description information, then abnormal attendance information of the submission type of the attendance description information is generated as supplementary submission type; If the submission time of the attendance description information is later than the supplementary submission time, abnormal attendance information in which the submission type of the attendance description information is a non-submission type is generated.
6. The method according to any one of claims 1 to 4, characterized in that The method further comprises: Detecting whether the time for submitting the attendance description information set on the target attendance day has expired; If it exceeds, executing the step of detecting whether the attendance description information of the target attendance day submitted by the target employee is recorded in the database; and / or Based on the generated attendance information, generate prompt information for employees with abnormal attendance; Push the generated prompt information to the setting client.
7. An attendance information generating device, characterized in that: The device comprises: The attendance description information detection module is used to detect whether the attendance description information of the target attendance day submitted by the target employee is recorded in the database; A working time judgment module, configured to judge whether the submission time of the attendance description information is earlier than or equal to the working time of the target attendance day if the attendance description information is recorded; The attendance information generation module is configured to generate attendance information indicating whether the target employee's attendance on the target attendance day is normal if the target employee's attendance is earlier than or equal to the working time on the target attendance day; generate attendance information indicating whether the target employee's attendance on the target attendance day is normal based on the attendance description information and the target employee's attendance punch-in time on the target attendance day if the target employee's attendance is later than the working time on the target attendance day; and generate attendance information indicating whether the target employee's attendance on the target attendance day is normal based on the target employee's attendance punch-in time on the target attendance day if the attendance description information is not recorded in the database.
8. The device according to claim 7, characterized in that The attendance information generation module is specifically configured to, if the attendance category included in the attendance description information is the first category, generate attendance information indicating whether the target employee's attendance on the target attendance day is normal based on the attendance punch-in time of the target employee on the target attendance day, wherein the first category is a category indicating that the employee works at the default office location; if the attendance category included in the attendance description information is the second category, generate attendance information indicating that the target employee's attendance on the target attendance day is abnormal based on the submission time of the attendance description information, wherein the second category is a category indicating that the employee does not work at the default office location; and / or The attendance information generation module is specifically used to determine whether the target employee's attendance punch-in time on the target attendance day is earlier than the working time on the target attendance day; if it is earlier than or equal to the working time on the target attendance day, then generate attendance information indicating that the target employee's attendance on the target attendance day is normal; and / or The attendance information generating module is specifically configured to generate attendance information indicating that the target employee's attendance on the target attendance day is abnormal based on the submission time of the attendance description information if the target employee's attendance punch-in time on the target attendance day is later than the working time on the target attendance day; and / or The attendance information generating module is specifically configured to generate abnormal attendance information in which the submission type of the attendance description information is a supplementary submission type if the submission time of the attendance description information is later than the working time of the target attendance day and earlier than or equal to the set supplementary submission time of the attendance description information; and generate abnormal attendance information in which the submission type of the attendance description information is a non-submission type if the submission time of the attendance description information is later than the supplementary submission time; and / or The device further includes: a make-up time detection module for detecting whether the make-up time for the attendance description information set for the target attendance day has been exceeded; if exceeded, the attendance description information detection module detects whether the attendance description information for the target attendance day submitted by the target employee is recorded in the database; and / or The device further includes: a prompt information generating module for generating prompt information for employees with abnormal attendance based on the generated attendance information; and a prompt information pushing module for pushing the generated prompt information to a set client.
9. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; Memory for storing computer programs; A processor, configured to implement the method steps described in any one of claims 1 to 6 when executing a program stored in a memory.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps of any one of claims 1 to 6 are implemented.