Attendance data generation methods, devices, computer equipment, and readable storage media

By obtaining the attendance information of field staff, calculating the duration of stay, and matching it with point-of-interest data, the problem of irregular attendance for field staff was solved, and the accuracy of attendance was improved.

CN116051065BActive Publication Date: 2025-11-14PING AN PAY ELECTRONIC PAYMENT CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202310124954.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-09
Publication Date
2025-11-14
Estimated Expiration
2043-02-09

AI Technical Summary

Technical Problem

The high degree of freedom in the work location of field staff makes it difficult to determine whether they have arrived at the work location, resulting in irregular attendance records and low accuracy.

Method used

By obtaining the attendance information of the target employees, calculating the dwell time at the target location, matching the point of interest data of the target location with the point of interest data of the electronic map, determining the location category, and storing it in the attendance report.

Benefits of technology

This has standardized the attendance management of field staff and improved the accuracy of attendance tracking.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116051065B_ABST
    Figure CN116051065B_ABST
Patent Text Reader

Abstract

This application discloses a method, apparatus, computer equipment, and readable storage medium for generating attendance data, relating to the field of Internet technology. It classifies the attribute categories of target points of interest (POIs) matching the latitude and longitude of a target location as the location category of the target location, and determines the target dwell time. This allows attendance personnel to verify whether the location category and target dwell time of an employee meet the requirements based on their work content, thereby standardizing the attendance management of field personnel and improving the accuracy of field attendance. The method includes: acquiring the attendance information of the target employee, which includes multiple attendance records; calculating the target dwell time corresponding to the target location based on the attendance information; identifying POI data matching the target location from all POI data on an electronic map, and using the attribute categories corresponding to the POI data as the location category of the target location; and storing the target employee, location category, and target dwell time in an attendance report.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of Internet technology, and in particular to a method, apparatus, computer device, and readable storage medium for generating attendance data. Background Technology

[0002] With the continuous development of internet technology, more and more companies are choosing to use attendance software to record employee attendance information. Attendance software can determine whether an employee has entered a preset office location by obtaining their location information, thus making it easier for companies to understand the attendance status of each employee based on the information recorded by the software.

[0003] In related technologies, companies set fixed workplace location ranges on their attendance software. Employees move to the designated range and then open the software to clock in. The software then obtains the location information of the mobile device (clocking-in device) and compares it with the company's preset workplace location range. If the location falls within the designated range, the clocking-in process is complete.

[0004] In the process of developing this application, the applicant discovered that the relevant technology has at least the following problems:

[0005] Office staff work within the company premises, so their attendance can be determined by checking if they are near the company. However, field staff have more flexible work locations, making it difficult to determine whether they are on their way to or have already arrived at the office. This leads to inconsistent attendance records and low accuracy for field staff. Summary of the Invention

[0006] In view of this, this application provides a method, apparatus, computer equipment and readable storage medium for generating attendance data. The main purpose is to solve the problem that field staff have a high degree of freedom in their office locations, which makes it difficult to determine whether they are on their way to the office or have already arrived at the office, resulting in irregular attendance and low attendance accuracy.

[0007] According to a first aspect of this application, a method for generating attendance data is provided, the method comprising:

[0008] Obtain the attendance information of the target employee, the attendance information including multiple attendance records, wherein the attendance record includes a latitude and longitude identifier and the entry time point corresponding to the latitude and longitude identifier;

[0009] Based on the attendance information, the target dwell time corresponding to the target location is calculated, and the target dwell time is used to indicate the total time that the target employee stays at the target location;

[0010] In all the point of interest data of the electronic map, the target point of interest data that matches the target location is determined, and the attribute classification corresponding to the target point of interest data is used as the location classification of the target location.

[0011] The target employee, the location category, and the target stay duration are stored in the attendance report.

[0012] Optionally, obtaining the attendance information of the target employee includes:

[0013] In response to the target employee initiating a clock-in command via a mobile device, the system continuously acquires the latitude and longitude identifier of the mobile device and the entry time point corresponding to the latitude and longitude identifier, and generates attendance records and stores them in the database according to preset storage conditions.

[0014] In response to the target employee initiating a clock-out command based on the mobile device, after obtaining the latitude and longitude identifier of the clock-out location and the corresponding clock-out time, the acquisition of the latitude and longitude identifier is stopped;

[0015] Based on the latitude and longitude of the departure location and the clock-in time, the last attendance record is generated and stored in the database;

[0016] All attendance records are read from the database as the attendance information.

[0017] Optionally, in response to the target employee initiating a clock-in command via a mobile device, continuously acquiring the latitude and longitude identifier of the mobile device and the entry time point corresponding to the latitude and longitude identifier, and generating attendance records and storing them in the database according to preset storage conditions, the process includes:

[0018] In response to the work attendance check-in instruction, the first latitude and longitude identifier and the current time point of the mobile device are obtained, and the current time point is set as the first entry time point for entering the first latitude and longitude identifier;

[0019] Generate a first attendance record and store the first attendance record in the database. The first attendance record includes the first latitude and longitude identifier and the first entry time.

[0020] Queries the preset acquisition period and starts timing;

[0021] When the timing duration is equal to the preset acquisition period, the second latitude and longitude identifier and the second entry time point are acquired, and the second latitude and longitude identifier is compared with the first latitude and longitude identifier;

[0022] If the comparison result indicates that the second latitude and longitude identifier is inconsistent with the first latitude and longitude identifier, then a second attendance record is generated and stored in the database;

[0023] The latitude and longitude identifiers include the first latitude and longitude identifier and the second latitude and longitude identifier, and the attendance records include the first attendance records and the second attendance records.

[0024] Optionally, after generating the second attendance record and storing it in the database, the method further includes:

[0025] Restart the timer;

[0026] When the timing duration is equal to the preset acquisition period, the third entry time point of the third latitude and longitude identifier corresponding to the mobile device is acquired again.

[0027] The third latitude and longitude identifier is compared with the second latitude and longitude identifier. Based on the comparison result, a third attendance record is generated until the latitude and longitude identifier of the off-get off work location is obtained. The latitude and longitude identifier also includes the third latitude and longitude identifier, and the attendance record also includes the third attendance record.

[0028] Optionally, after comparing the second latitude and longitude identifier with the first latitude and longitude identifier, the method further includes:

[0029] If the comparison result indicates that the second latitude and longitude identifier is consistent with the first latitude and longitude identifier, then the second latitude and longitude identifier and the second entry time point are deleted.

[0030] Optionally, the step of calculating the target dwell time corresponding to each target location based on the attendance information includes:

[0031] Based on the entry time in the attendance information, calculate the specified dwell time corresponding to the latitude and longitude identifier in each attendance record, and add a location marker with the latitude and longitude identifier as the content to the specified dwell time to obtain multiple location markers;

[0032] The plurality of location markers are divided into at least one location group, wherein the marker content of at least one location marker stored in the location group is consistent;

[0033] The location marker corresponding to the location group is taken as the target location, and the sum of the specified dwell times in the location group is taken as the target dwell time corresponding to the target location.

[0034] Optionally, determining the target point of interest data matching the target location from all point of interest data in the electronic map includes:

[0035] Read all the point of interest (POI) data from the electronic map, determine the latitude and longitude of each POI, and compare the latitude and longitude identifier of the target location with the latitude and longitude of each POI.

[0036] Based on the comparison results, the latitude and longitude of the target interest point that matches the latitude and longitude identifier corresponding to the target location are determined, and the interest point data corresponding to the latitude and longitude of the target interest point is used as the target interest point data.

[0037] According to a second aspect of this application, an attendance data generation apparatus is provided, the apparatus comprising:

[0038] The acquisition module is used to acquire the attendance information of the target employee. The attendance information includes multiple attendance records, wherein the attendance records include latitude and longitude identifiers and the entry time points corresponding to the latitude and longitude identifiers.

[0039] The statistics module is used to calculate the target dwell time corresponding to the target location based on the attendance information. The target dwell time is used to indicate the total time that the target employee stays at the target location.

[0040] The determination module is used to determine the target interest point data that matches the target location from all interest point data in the electronic map, and to use the attribute classification corresponding to the target interest point data as the location classification of the target location.

[0041] The storage module is used to store the target employee, the location category, and the target stay duration in the attendance report.

[0042] Optionally, the acquisition module is configured to, in response to the target employee initiating a clock-in command based on a mobile device, continuously acquire the latitude and longitude identifier of the mobile device and the entry time point corresponding to the latitude and longitude identifier, and generate attendance records and store them in the database according to preset storage conditions; in response to the target employee initiating a clock-out command based on the mobile device, after acquiring the latitude and longitude identifier of the clock-out location and the corresponding clock-out time point, stop acquiring the latitude and longitude identifier; generate a final attendance record based on the latitude and longitude identifier of the clock-out location and the clock-out time point and store it in the database; and read all attendance records from the database as the attendance information.

[0043] Optionally, the acquisition module is configured to, in response to the attendance clock-in instruction, acquire the first latitude and longitude identifier and the current time point of the mobile device, set the current time point as the first entry time point of the first latitude and longitude identifier; generate a first attendance record, and store the first attendance record in the database, wherein the first attendance record includes the first latitude and longitude identifier and the first entry time point; query a preset acquisition period and start timing; when the timing duration is equal to the preset acquisition period, acquire a second latitude and longitude identifier and a second entry time point, and compare the second latitude and longitude identifier with the first latitude and longitude identifier; if the comparison result indicates that the second latitude and longitude identifier is inconsistent with the first latitude and longitude identifier, then generate a second attendance record and store it in the database; wherein the latitude and longitude identifier includes the first latitude and longitude identifier and the second latitude and longitude identifier, and the attendance record includes the first attendance record and the second attendance record.

[0044] Optionally, the acquisition module is further configured to restart the timing; when the timing duration is equal to the preset acquisition period, acquire the third latitude and longitude identifier corresponding to the mobile device and the third entry time point again; compare the third latitude and longitude identifier with the second latitude and longitude identifier, and generate a third attendance record based on the comparison result, until the latitude and longitude identifier of the off-get off work location is acquired, wherein the latitude and longitude identifier also includes the third latitude and longitude identifier, and the attendance record also includes the third attendance record.

[0045] Optionally, the acquisition module is further configured to delete the second latitude and longitude identifier and the second entry time point if the comparison result indicates that the second latitude and longitude identifier is consistent with the first latitude and longitude identifier.

[0046] Optionally, the statistics module is used to calculate the specified dwell time corresponding to the latitude and longitude identifier in each attendance record according to the entry time point in the attendance information, and to add a location marker with the latitude and longitude identifier as the content to the specified dwell time to obtain multiple location markers; divide the multiple location markers into at least one location group, wherein the marker content of at least one location marker stored in the location group is consistent; use the location marker corresponding to the location group as the target location, and use the sum of the specified dwell times in the location group as the target dwell time corresponding to the target location.

[0047] Optionally, the determining module is configured to read all point-of-interest (POI) data from the electronic map, determine the latitude and longitude of each POI data, compare the latitude and longitude identifier corresponding to the target location with the latitude and longitude of each POI, determine the target POI latitude and longitude that matches the latitude and longitude identifier corresponding to the target location based on the comparison result, and use the POI data corresponding to the target POI latitude and longitude as the target POI data.

[0048] According to a third aspect of this application, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the method described in any of the first aspects above.

[0049] According to a fourth aspect of this application, a computer-readable storage medium is provided, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the steps of the method described in any one of the first aspects above.

[0050] Using the above technical solution, this application provides an attendance data generation method, apparatus, computer equipment, and computer-readable storage medium. First, this application acquires the attendance information of the target employee, including valid latitude and longitude identifiers and the entry time point corresponding to each identifier. Next, the target location is determined using the latitude and longitude identifiers in the attendance information, and the target dwell time corresponding to the target location is calculated using the entry time points. Subsequently, from all point-of-interest (POI) data on the electronic map, target POI data matching the target location is identified, and the attribute classification corresponding to the POI data is used as the location classification of the target location. Finally, the target employee, location classification, and target dwell time are stored in the attendance report. This method compares the latitude and longitude identifiers of the acquired target location with the latitude and longitude of all POIs on the electronic map, and uses the attribute classification of the POIs matching the target location's latitude and longitude as the target location's location classification. This allows attendance personnel to verify whether the employee's location classification and target dwell time meet the requirements based on their work content, thereby standardizing the attendance management of field staff and improving the accuracy of field staff attendance.

[0051] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, the following are specific embodiments of this application. Attached Figure Description

[0052] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the scope of this application. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:

[0053] Figure 1 This illustration shows a flowchart of an attendance data generation method provided in an embodiment of this application.

[0054] Figure 2This illustration shows a flowchart of an attendance data generation method provided in an embodiment of this application.

[0055] Figure 3 This illustration shows a structural schematic diagram of an attendance data generation device provided in an embodiment of this application;

[0056] Figure 4 A schematic diagram of the device structure of a computer device provided in an embodiment of this application is shown. Detailed Implementation

[0057] Exemplary embodiments of the present application will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this application will be thorough and complete, and will fully convey the scope of the present application to those skilled in the art.

[0058] This application provides a method for generating attendance data, such as... Figure 1 As shown, the method includes:

[0059] 101. Obtain the attendance information of the target employees. The attendance information includes multiple attendance records, which include latitude and longitude coordinates and the entry time corresponding to the latitude and longitude coordinates.

[0060] The attendance information comprises all attendance records generated by the target employee within the specified attendance period, including latitude and longitude coordinates and their corresponding entry times. In actual operation, field staff run the attendance application on their mobile devices upon arriving at their work location and send a clock-in command. Subsequently, the location coordinates and entry times of the mobile devices are periodically retrieved based on their location functionality until the field staff sends a clock-out command at their designated end time. It should be noted that one attendance period is defined as the time from when an employee clocks in to when they clock out. By analyzing the latitude and longitude coordinates and entry times in the attendance records, the locations the target employee has visited or traversed within the attendance period are determined—that is, the target locations—and the corresponding target dwell time at each location are determined.

[0061] 102. Based on attendance information, calculate the target dwell time corresponding to the target location. The target dwell time is used to indicate the total time that the target employee stays at the target location.

[0062] In this embodiment, the target dwell time is used to indicate the total time an employee stays at a target location. Considering the work freedom of field employees, if an employee stays at work location A for 2 hours, they may go to work location B due to a customer's needs, handle related matters at work location B, and then need to return to work location A to continue working. Therefore, the attendance record will show the latitude and longitude of work location A twice, along with the corresponding designated dwell time for each. Adding the two designated dwell times corresponding to work location A gives the target dwell time for work location A. For example, if employee A performs field work in community A, interacts with customer B for 2 hours, then goes to bank B with customer B according to customer B's needs and stays at bank B for half an hour, and then employee A and customer B return to community A and stay there for 1 hour, then the target dwell time for the target location community A is 3 hours.

[0063] 103. Among all the points of interest data in the electronic map, identify the target points of interest data that match the target location, and classify the attribute categories corresponding to the target points of interest data as the location categories of the target location.

[0064] Furthermore, a large amount of Points of Interest (POI) data is obtained from the electronic map, such as Community A, Company B, and Bank C. This POI data includes name and coordinate classifications, such as Community A (longitude 114.061953, latitude 22.538071, address xx district xx road xx number), and attribute classification as residential community. Further, target POI data matching the target location is identified from all POI data, and the attribute classification corresponding to the target POI data is used as the location classification of the target location. For example, if the target location's longitude and latitude are identified as 114.061953 and 22.538071, and based on these coordinates, Community A can be found on the electronic map, then the attribute classification (residential community) corresponding to Community A is used as the location classification (residential community) of the target location.

[0065] 104. Store the target employees, location categories, and target dwell time in the attendance report.

[0066] Finally, to facilitate attendance audits by field staff, the target employees, their corresponding location categories, and the target dwell time for each location need to be stored in the attendance report. In actual operation, data for each field employee is stored in the attendance report. After batch processing all field employee attendance data, the attendance report is sent to the auditing terminal for review. Furthermore, auditors can add audit tags to field employees based on the attendance report. For employees who pass the audit, corresponding attendance performance data can be obtained to facilitate enterprise attendance management.

[0067] The method provided in this application first obtains the attendance information of the target employee, which includes the collected valid latitude and longitude identifiers and the entry time point corresponding to each latitude and longitude identifier. Next, the target location is determined using the latitude and longitude identifiers in the attendance information, and the target dwell time corresponding to the target location is calculated using the entry time point in the attendance information. Subsequently, target interest point data matching the target location is determined from all point of interest data on the electronic map, and the attribute classification corresponding to the target interest point data is used as the location classification of the target location. Finally, the target employee, location classification, and target dwell time are stored in the attendance report. This method compares the collected latitude and longitude identifiers of the target location with the latitude and longitude of all points of interest in the electronic map, and uses the attribute classification of the target interest points matching the target location's latitude and longitude as the target location's location classification. This allows attendance personnel to verify whether the employee's location classification and target dwell time meet the requirements based on the employee's work content, thereby standardizing the attendance management of field personnel and improving the attendance accuracy of field personnel.

[0068] This application provides a method for generating attendance data, such as... Figure 2 As shown, the method includes:

[0069] 201. In response to the target employee's clock-in instruction initiated via mobile device, continuously obtain the latitude and longitude identifier of the mobile device and the entry time point corresponding to the latitude and longitude identifier, and generate attendance records and store them in the database according to preset storage conditions.

[0070] With the continuous development of internet technology, more and more companies are choosing to use attendance software to record employee attendance information. Attendance software can determine whether an employee has entered a preset work location by obtaining their location information, thus allowing companies to understand the attendance status of each employee based on the information recorded by the software. Currently, companies set fixed work location ranges on the attendance software. Employees will open the attendance software to clock in after moving to the corresponding range. At this time, the attendance software obtains the location information of the mobile device (clocking-in device) and compares the location information with the company's preset work location range. If the location information is within the work location range, the clocking-in operation is completed. However, the applicant recognizes that while the work location of office staff is fixed within the company, it is possible to determine whether an office staff member has arrived at work by checking if they are near the company. But for field staff, the work location is more flexible, making their location changeable and difficult to determine whether they are on their way to the office or have already arrived, resulting in irregular attendance and low attendance accuracy for field staff.

[0071] Considering that many mobile devices are now equipped with portable location tracking devices, such as mobile phones and smartwatches, these devices rely on GNSS (Global Navigation Satellite System) information, such as GPS (Global Positioning System), GLONASS (Global Navigation Satellite System), and BeiDou. The location tracking device calculates the latitude and longitude information of the mobile device and reports it to a server, enabling the server to generate attendance information based on a large amount of latitude and longitude data and identify the target location of field employees. Therefore, this application provides an attendance data generation method, apparatus, computer equipment, and computer-readable storage medium. This application first obtains the attendance information of the target employees, which includes the collected valid latitude and longitude identifiers and the entry time point corresponding to each latitude and longitude identifier. Next, the target location is determined using the latitude and longitude identifiers in the attendance information, and the target dwell time corresponding to the target location is calculated using the entry time points in the attendance information. Subsequently, from all the points of interest (POIs) data on the electronic map, target POIs matching the target location are identified, and their corresponding attribute categories are used as the location category of the target location. Finally, the target employee, location category, and target dwell time are stored in the attendance report. This method compares the latitude and longitude of the collected target location with the latitude and longitude of all POIs on the electronic map, and uses the attribute categories of the POIs matching the target location's latitude and longitude as the target location's location category. This allows attendance personnel to verify whether the employee's location category and target dwell time meet the requirements based on their work content, thereby standardizing the attendance management of field staff and improving the accuracy of field staff attendance.

[0072] The target employees are field staff whose mobile devices can be smartphones, tablets, or other smart devices with GPS positioning capabilities, running a corresponding attendance system. In actual operation, after arriving at their designated work location, the target employees initiate a clock-in / clock-out command via their mobile devices. Specifically, a clock-in / clock-out entry point can be set up on the clock-in / clock-out page; after verifying their location information, the target employees can click the entry point to send the clock-in / clock-out command. This application does not specify any particular limitation on the method of initiating the clock-in / clock-out command.

[0073] In this embodiment, considering that frequent acquisition of mobile device latitude and longitude identifiers would waste significant network resources if the target employee remained at the same office location for an extended period, this method employs a preset acquisition period, such as 10 minutes or 20 minutes, to simultaneously determine all target locations reached by the employee within the attendance period and conserve network resources. It should be noted that the preset acquisition period can be adjusted according to actual needs, or a default acquisition period can be used; this application does not specifically limit the duration of the preset acquisition period. Periodically acquiring the mobile device's latitude and longitude identifiers saves network resources. Furthermore, if the latitude and longitude identifiers change, it indicates that the target employee has moved, and an attendance record is generated and stored again. If the latitude and longitude identifiers do not change, it indicates that the target employee has not moved, and the acquired data is directly deleted without generating an attendance record. The specific process of generating attendance records and storing them in the database is as follows:

[0074] First, in response to a user's clock-in command initiated via mobile device, the system begins the process of acquiring the latitude and longitude of the mobile device at that moment, obtaining the first latitude and longitude identifier, such as longitude 114.061953 and latitude 22.538071. Simultaneously, the time of acquiring the latitude and longitude identifier is used as the corresponding entry time point, i.e., the first entry time point, such as 8:00. It should be noted that the first latitude and longitude identifier and the first entry time point are used to indicate the clock-in location and clock-in time; therefore, there is no need to judge according to preset storage conditions, and attendance records are directly generated and stored in the database as shown in Table 1.

[0075] Table 1. Attendance Records

[0076] User ID longitude latitude Entering the time point uid001 114.061952 22.538070 2022-08-19 10:00:00 uid001 114.061953 22.538071 2022-08-19 10:40:00

[0077] Next, based on the preset acquisition cycle, the latitude and longitude identifiers and entry time points are continuously acquired. Based on preset storage conditions, it is determined whether to generate attendance records and store them in the database. It should be noted that the first, second, and third latitude and longitude identifiers mentioned below are all latitude and longitude identifiers, and the first, second, and third entry time points are all entry time points.

[0078] Specifically, at the beginning of system operation, relevant technical personnel need to upload a preset acquisition period to the database. When the system performs the step of acquiring latitude and longitude identifiers, it queries the preset acquisition period and starts timing. When the timing duration equals the preset acquisition period, it acquires the second latitude and longitude identifier and the second entry time point, and compares the second latitude and longitude identifier with the first latitude and longitude identifier to determine whether they meet the preset storage conditions. In actual operation, if the comparison result indicates that the second latitude and longitude identifier is inconsistent with the first latitude and longitude identifier, then it meets the preset storage conditions, and a second attendance record is generated and stored in the database. For example, if the first latitude and longitude identifier is [114.061952, 22.538070] and the second latitude and longitude identifier is [114.061953, 22.538071], the latitude and longitude identifiers are inconsistent, so a second attendance record is generated and stored in the database based on the second latitude and longitude identifier and the second entry time point [2022-08-19 10:40:00]. If the comparison result indicates that the second latitude and longitude identifier matches the first latitude and longitude identifier, then the preset storage conditions are not met. In this case, the second latitude and longitude identifier and the second entry time point are deleted, and no second attendance record is generated. For example, if the first latitude and longitude identifier is [114.061952, 22.538070] and the second latitude and longitude identifier is also [114.061952, 22.538070], the latitude and longitude identifiers match, so the second latitude and longitude identifier and the second entry time point are ignored, and no attendance record is generated. Further, the timing restarts, and the steps of obtaining the second latitude and longitude identifier and the second entry time point are repeated. That is, when the timing duration equals the preset acquisition period, the latitude and longitude identifier corresponding to the mobile device and the current time point are obtained again to obtain the third latitude and longitude identifier and the third entry time point. The third latitude and longitude identifier is compared with the second latitude and longitude identifier, and based on the comparison result, it is determined whether to generate a third attendance record and store it in the database.

[0079] By continuously acquiring latitude and longitude coordinates and comparing them with the latest recorded latitude and longitude coordinates, all valid latitude and longitude coordinates generated by the target employee during the attendance period are obtained. Among them, the valid latitude and longitude coordinates are used to indicate the latitude and longitude coordinates stored as attendance records. That is to say, the currently acquired latitude and longitude coordinates are inconsistent with the latest recorded latitude and longitude coordinates.

[0080] 202. In response to the target employee's clock-out instruction initiated via mobile device, after obtaining the latitude and longitude of the clock-out location and the corresponding clock-out time, generate the last attendance record based on the latitude and longitude of the clock-out location and the clock-out time, store it in the database, and stop obtaining the latitude and longitude.

[0081] In actual operation, employees can initiate an off-duty check-in command via mobile device after their scheduled off-duty time. Specifically, an off-duty check-in entry can be set up on the check-in page. After verifying their off-duty location information, employees can click the off-duty check-in entry to send the off-duty check-in command. This application does not impose specific restrictions on the method of initiating the off-duty check-in command.

[0082] Furthermore, in response to the target employee's clock-out command initiated via mobile device, the latitude and longitude of the clock-out location and the corresponding clock-out time are obtained and used as the last latitude and longitude identifier and the last entry time. Following the aforementioned storage method of [user ID, latitude, longitude, entry time], the final attendance record is generated and stored in the database.

[0083] Finally, stop acquiring the latitude and longitude coordinates of the mobile device, thus ending the process of acquiring attendance information.

[0084] 203. Read all attendance records from the database as attendance information, and calculate the target dwell time corresponding to the target location based on the attendance information.

[0085] In this embodiment, considering the work freedom of field employees, the target stay duration is used to indicate the total time an employee stays at a target location. For example, if a field employee stays at work location A for 2 hours, and then goes to work location B due to customer needs, and needs to return to work location A after handling related matters at work location B, then the attendance record will show the latitude and longitude of work location A twice, along with the corresponding specified stay duration. Adding the two specified stay durations corresponding to work location A yields the target stay duration for work location A.

[0086] Specifically, first, based on the entry time in the attendance information, calculate the specified dwell time corresponding to the latitude and longitude identifier in each attendance record. For example, attendance record 1 includes [114.061952, 22.538070, 2022-08-19 10:00:00], and attendance record 2 includes [114.061953, 22.538071, 2022-08-19 10:40:00]. Based on the entry time, the specified dwell time corresponding to the latitude and longitude identifier [114.061952, 22.538070] is the time difference between "10:40:00" and "10:00:00", which is 40 minutes. Next, add location markers containing latitude and longitude identifiers to the specified dwell time, resulting in multiple location markers. Divide the multiple location markers into at least one location group, where the marker content of at least one location marker stored in the location group is consistent. Finally, the location marker corresponding to the location group is taken as the target location, and the sum of the specified dwell times in the location group is taken as the target dwell time corresponding to the target location.

[0087] For example, based on attendance data, it is calculated that employee A first stays at location marker A for 4 hours, then at location marker B for 0.5 hours, then returns to location marker A for 1.5 hours, and finally arrives at location marker C for 2 hours. Location markers with identical content are grouped into the same location group, resulting in three location groups: location group A, location group B, and location group C. The target stay duration for location group A is 4 hours plus 1.5 hours, or 5.5 hours; the target stay duration for location group B is 0.5 hours; and the target stay duration for location group C is 2 hours.

[0088] 204. Among all the points of interest data in the electronic map, identify the target points of interest data that match the target location, and classify the attribute categories corresponding to the target points of interest data as the location categories of the target location.

[0089] Furthermore, a large amount of Points of Interest (POI) data is obtained from the electronic map, such as Community A, Company B, and Bank C. POI data is stored in the format of [Name, Coordinates, Category], such as [Community A, 114.061953, 22.538071, xx District, xx Road, xx Number, Residential Community]. The coordinates include longitude, latitude, and address information. Further, target POI data matching the target location is identified from all POI data, and the attribute classification corresponding to the target POI data is used as the location classification of the target location.

[0090] Specifically, all point-of-interest (POI) data from the electronic map are read, as shown in Table 2. The latitude and longitude of each POI are determined, and the latitude and longitude of the target location are compared with those of each POI. Finally, based on the comparison results, the latitude and longitude of the target POI that match the latitude and longitude of the target location are determined, and the POI data corresponding to the target POI latitude and longitude is taken as the target POI data.

[0091] Table 2, POI Data

[0092] name longitude latitude address Classification A Milk Tea 114.061951 22.538069 No. 01, xx Road, xx District Cold drink shop; catering A Enterprise Services Co., Ltd. 114.061952 22.538070 No. 21, xx Road, xx District Company Community A 114.061953 22.538071 No. 49, xx Road, xx District Residential Community Industrial and Commercial Bank of China, Branch A 114.061954 22.538072 No. 53, xx Road, xx District bank

[0093] For example, if the latitude and longitude of the target location are 114.061953 and 22.538071, the target location can be identified as Community A on the electronic map. Then, the attribute category (residential community) corresponding to Community A can be used as the location category of the target location.

[0094] 205. Store the target employees, location categories, and target dwell time in the attendance report.

[0095] Finally, in order to facilitate attendance auditors in reviewing the work status of field staff, the target employees, their corresponding location categories, and the target dwell time for each target location need to be stored in the attendance report, as shown in Table 3.

[0096] Table 3. Attendance Report

[0097] User ID User Name Location Classification Duration of stay (hours) date uid001 Zhang San Company 2 2022-08-20 uid001 Zhang San Residential Community 3 2022-08-20 uid002 Wang Wu bank 5 2022-08-20 uid003 Li Si 0 2022-08-20

[0098] The data entry for Li Si indicates that he did not clock in, and no location information was recorded, so the duration is 0, and the location category is blank. In actual operation, the data for each field employee is stored in an attendance report. After batch processing the attendance data of all field employees, the attendance report is sent to the approval terminal for review. Furthermore, reviewers can add approval tags to field employees based on the attendance reports. Employees who pass the review can obtain corresponding attendance performance data to facilitate enterprise attendance management.

[0099] The method provided in this application first obtains the attendance information of the target employee, which includes the collected valid latitude and longitude identifiers and the entry time point corresponding to each latitude and longitude identifier. Next, the target location is determined using the latitude and longitude identifiers in the attendance information, and the target dwell time corresponding to the target location is calculated using the entry time point in the attendance information. Subsequently, target interest point data matching the target location is determined from all point of interest data on the electronic map, and the attribute classification corresponding to the target interest point data is used as the location classification of the target location. Finally, the target employee, location classification, and target dwell time are stored in the attendance report. This method compares the collected latitude and longitude identifiers of the target location with the latitude and longitude of all points of interest in the electronic map, and uses the attribute classification of the target interest points matching the target location's latitude and longitude as the target location's location classification. This allows attendance personnel to verify whether the employee's location classification and target dwell time meet the requirements based on the employee's work content, thereby standardizing the attendance management of field personnel and improving the attendance accuracy of field personnel.

[0100] Furthermore, as Figure 1 To specifically implement the method, this application provides an attendance data generation device, such as... Figure 3 As shown, the device includes: an acquisition module 301, a statistics module 302, a determination module 303, and a storage module 304.

[0101] The acquisition module 301 is used to acquire the attendance information of the target employee. The attendance information includes multiple attendance records, wherein the attendance records include latitude and longitude identifiers and the entry time points corresponding to the latitude and longitude identifiers.

[0102] The statistics module 302 is used to calculate the target dwell time corresponding to the target location based on the attendance information, and the target dwell time is used to indicate the total time that the target employee stays at the target location.

[0103] The determining module 303 is used to determine the target interest point data that matches the target location from all the interest point data of the electronic map, and to use the attribute classification corresponding to the target interest point data as the location classification of the target location.

[0104] The storage module 304 is used to store the target employee, the location category, and the target stay duration in the attendance report.

[0105] In a specific application scenario, the acquisition module 301 is used to continuously acquire the latitude and longitude identifier of the mobile device and the entry time point corresponding to the latitude and longitude identifier in response to the target employee initiating a clock-in command based on the mobile device, and generate attendance records and store them in the database according to preset storage conditions; in response to the target employee initiating a clock-out command based on the mobile device, after acquiring the latitude and longitude identifier of the clock-out location and the corresponding clock-out time point, it stops acquiring the latitude and longitude identifier; based on the latitude and longitude identifier of the clock-out location and the clock-out time point, it generates a last attendance record and stores it in the database; and reads all attendance records from the database as the attendance information.

[0106] In a specific application scenario, the acquisition module 301 is used to respond to the work attendance instruction by acquiring the first latitude and longitude identifier and the current time point of the mobile device, setting the current time point as the first entry time point for entering the first latitude and longitude identifier; generating a first attendance record and storing the first attendance record in the database, the first attendance record including the first latitude and longitude identifier and the first entry time point; querying a preset acquisition period and starting a timer; when the timer duration is equal to the preset acquisition period, acquiring a second latitude and longitude identifier and a second entry time point, comparing the second latitude and longitude identifier with the first latitude and longitude identifier; if the comparison result indicates that the second latitude and longitude identifier is inconsistent with the first latitude and longitude identifier, then generating a second attendance record and storing it in the database; wherein, the latitude and longitude identifier includes the first latitude and longitude identifier and the second latitude and longitude identifier, and the attendance record includes the first attendance record and the second attendance record.

[0107] In a specific application scenario, the acquisition module 301 is also used to restart the timing; when the timing duration is equal to the preset acquisition period, the third latitude and longitude identifier corresponding to the mobile device and the third entry time point are acquired again; the third latitude and longitude identifier is compared with the second latitude and longitude identifier, and a third attendance record is generated based on the comparison result, until the latitude and longitude identifier of the off-get off work location is acquired, wherein the latitude and longitude identifier also includes the third latitude and longitude identifier, and the attendance record also includes the third attendance record.

[0108] In specific application scenarios, the acquisition module 301 is further configured to delete the second latitude and longitude identifier and the second entry time point if the comparison result indicates that the second latitude and longitude identifier is consistent with the first latitude and longitude identifier.

[0109] In a specific application scenario, the statistics module 302 is used to calculate the specified dwell time corresponding to the latitude and longitude identifier in each attendance record according to the entry time point in the attendance information, and to add a location marker with the latitude and longitude identifier as the content to the specified dwell time to obtain multiple location markers; divide the multiple location markers into at least one location group, and the marker content of at least one location marker stored in the location group is consistent; use the location marker corresponding to the location group as the target location, and use the sum of the specified dwell times in the location group as the target dwell time corresponding to the target location.

[0110] In a specific application scenario, the determining module 303 is used to read all the point of interest data of the electronic map, determine the latitude and longitude of the point of interest corresponding to each point of interest data, compare the latitude and longitude identifier corresponding to the target location with the latitude and longitude of each point of interest, determine the target point of interest latitude and longitude that matches the latitude and longitude identifier corresponding to the target location based on the comparison result, and use the point of interest data corresponding to the target point of interest latitude and longitude as the target point of interest data.

[0111] The apparatus provided in this application first acquires the attendance information of the target employee, including valid latitude and longitude coordinates and the entry time corresponding to each coordinate. Next, the target location is determined using the latitude and longitude coordinates in the attendance information, and the target dwell time corresponding to the target location is calculated using the entry time. Subsequently, from all points of interest (POIs) data on the electronic map, target POIs matching the target location are identified, and their attribute classifications are used as the location classification of the target location. Finally, the target employee, location classification, and target dwell time are stored in the attendance report. This method compares the latitude and longitude coordinates of the acquired target location with the latitude and longitude coordinates of all POIs on the electronic map, and uses the attribute classifications of the POIs matching the target location's latitude and longitude as the target location's location classification. This allows attendance personnel to verify whether the employee's location classification and target dwell time meet the requirements based on their work content, thereby standardizing the attendance management of field staff and improving the accuracy of field staff attendance.

[0112] It should be noted that other corresponding descriptions of the functional units involved in the attendance data generation device provided in this application embodiment can be found by referring to... Figure 1 and Figure 2 The corresponding descriptions in [the document] will not be repeated here.

[0113] In an exemplary embodiment, see Figure 4 The invention also provides a device comprising a communication bus, a processor, a memory, and a communication interface, and may further include an input / output interface and a display device. The various functional units can communicate with each other via the bus. The memory stores a computer program, and the processor executes the program stored in the memory to perform the attendance data generation method described in the above embodiments.

[0114] A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the attendance data generation method.

[0115] Through the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented in hardware or by using software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solution of this application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) and includes several instructions to cause a computer device (such as a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0116] Those skilled in the art will understand that the accompanying drawings are merely schematic diagrams of a preferred embodiment, and the modules or processes shown in the drawings are not necessarily essential for implementing this application.

[0117] Those skilled in the art will understand that the modules in the apparatus of the implementation scenario can be distributed within the apparatus of the implementation scenario as described, or they can be located in one or more apparatuses different from this implementation scenario with corresponding changes. The modules of the above-described implementation scenario can be combined into one module, or they can be further divided into multiple sub-modules.

[0118] The serial numbers in this application are for descriptive purposes only and do not represent the superiority or inferiority of the implementation scenario.

[0119] The above disclosures are only a few specific implementation scenarios of this application. However, this application is not limited to these. Any variations that can be conceived by those skilled in the art should fall within the protection scope of this application.

Claims

1. A method for generating attendance data, characterized in that, include: Obtain the attendance information of the target employee, the attendance information including multiple attendance records, wherein the attendance record includes a latitude and longitude identifier and the entry time point corresponding to the latitude and longitude identifier; Based on the attendance information, the target dwell time corresponding to the target location is calculated, and the target dwell time is used to indicate the total time that the target employee stays at the target location; In all the point of interest data of the electronic map, the target point of interest data that matches the target location is determined, and the attribute classification corresponding to the target point of interest data is used as the location classification of the target location. Store the target employee, the location category, and the target dwell time in the attendance report; The acquisition of the target employee's attendance information includes: In response to the target employee initiating a clock-in command via a mobile device, the system continuously acquires the latitude and longitude identifier of the mobile device and the entry time point corresponding to the latitude and longitude identifier, and generates attendance records and stores them in the database according to preset storage conditions. In response to the target employee initiating a clock-out command based on the mobile device, after obtaining the latitude and longitude identifier of the clock-out location and the corresponding clock-out time, the acquisition of the latitude and longitude identifier is stopped; Based on the latitude and longitude of the departure location and the clock-in time, the last attendance record is generated and stored in the database; Read all attendance records from the database as the attendance information; The response to the target employee initiating a clock-in command via a mobile device involves continuously acquiring the latitude and longitude identifier of the mobile device and the entry time corresponding to the latitude and longitude identifier, and generating attendance records and storing them in the database according to preset storage conditions, including: In response to the work attendance check-in instruction, the first latitude and longitude identifier and the current time point of the mobile device are obtained, and the current time point is set as the first entry time point for entering the first latitude and longitude identifier; Generate a first attendance record and store the first attendance record in the database. The first attendance record includes the first latitude and longitude identifier and the first entry time. Queries the preset acquisition period and starts timing; When the timing duration is equal to the preset acquisition period, the second latitude and longitude identifier and the second entry time point are acquired, and the second latitude and longitude identifier is compared with the first latitude and longitude identifier; If the comparison result indicates that the second latitude and longitude identifier is inconsistent with the first latitude and longitude identifier, then a second attendance record is generated and stored in the database; The latitude and longitude identifiers include the first latitude and longitude identifier and the second latitude and longitude identifier, and the attendance records include the first attendance records and the second attendance records.

2. The method according to claim 1, characterized in that, After generating the second attendance record and storing it in the database, the method further includes: Restart the timer; When the timing duration is equal to the preset acquisition period, the third entry time point of the third latitude and longitude identifier corresponding to the mobile device is acquired again. The third latitude and longitude identifier is compared with the second latitude and longitude identifier. Based on the comparison result, a third attendance record is generated until the latitude and longitude identifier of the off-get off work location is obtained. The latitude and longitude identifier also includes the third latitude and longitude identifier, and the attendance record also includes the third attendance record.

3. The method according to claim 1, characterized in that, After comparing the second latitude and longitude identifier with the first latitude and longitude identifier, the method further includes: If the comparison result indicates that the second latitude and longitude identifier is consistent with the first latitude and longitude identifier, then the second latitude and longitude identifier and the second entry time point are deleted.

4. The method according to claim 1, characterized in that, Based on the attendance information, the duration of stay at each target location is calculated, including: Based on the entry time in the attendance information, calculate the specified dwell time corresponding to the latitude and longitude identifier in each attendance record, and add a location marker with the latitude and longitude identifier as the content to the specified dwell time to obtain multiple location markers; The plurality of location markers are divided into at least one location group, wherein the marker content of at least one location marker stored in the location group is consistent; The location marker corresponding to the location group is taken as the target location, and the sum of the specified dwell times in the location group is taken as the target dwell time corresponding to the target location.

5. The method according to claim 1, characterized in that, The step of determining the target point of interest data matching the target location from all point of interest data in the electronic map includes: Read all the point of interest (POI) data from the electronic map, determine the latitude and longitude of each POI, and compare the latitude and longitude identifier of the target location with the latitude and longitude of each POI. Based on the comparison results, the latitude and longitude of the target interest point that matches the latitude and longitude identifier corresponding to the target location are determined, and the interest point data corresponding to the latitude and longitude of the target interest point is used as the target interest point data.

6. An attendance data generation device, characterized in that, include: The acquisition module is used to acquire the attendance information of a target employee. The attendance information includes multiple attendance records, each containing a latitude and longitude coordinate and the corresponding entry time. Acquiring the target employee's attendance information includes: responding to the target employee's clock-in command via a mobile device by continuously acquiring the latitude and longitude coordinate of the mobile device and the corresponding entry time, and generating an attendance record and storing it in a database according to preset storage conditions; responding to the target employee's clock-out command via the mobile device by stopping the acquisition of the latitude and longitude coordinate of the departure location and the corresponding clock-in time after acquiring the latitude and longitude coordinate of the departure location; generating a final attendance record based on the latitude and longitude coordinate of the departure location and the clock-in time and storing it in the database; and reading all attendance records from the database as the attendance information. The step of continuously acquiring the latitude and longitude coordinate of the mobile device in response to the target employee's clock-in command via the mobile device... The system identifies the entry time point and generates an attendance record for storage in a database based on preset storage conditions. This includes: responding to the clock-in instruction by acquiring the first latitude and longitude identifier and the current time point of the mobile device, setting the current time point as the first entry time point for the first latitude and longitude identifier; generating a first attendance record and storing it in the database, the first attendance record including the first latitude and longitude identifier and the first entry time point; querying a preset acquisition period and starting a timer; when the timer duration equals the preset acquisition period, acquiring a second latitude and longitude identifier and a second entry time point, comparing the second latitude and longitude identifier with the first latitude and longitude identifier; if the comparison result indicates that the second latitude and longitude identifier is inconsistent with the first latitude and longitude identifier, then generating a second attendance record and storing it in the database; wherein the latitude and longitude identifier includes the first latitude and longitude identifier and the second latitude and longitude identifier, and the attendance record includes the first attendance record and the second attendance record; The statistics module is used to calculate the target dwell time corresponding to the target location based on the attendance information. The target dwell time is used to indicate the total time that the target employee stays at the target location. The determination module is used to determine the target interest point data that matches the target location from all interest point data in the electronic map, and to use the attribute classification corresponding to the target interest point data as the location classification of the target location. The storage module is used to store the target employee, the location category, and the target stay duration in the attendance report.

7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 5.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Attendance method, apparatus, computer device and storage medium

    CN109389366A

  • Data monitoring method, device and equipment and computer readable storage medium

    CN110992501A

  • Information processing device and information processing method

    JP2022138386A