CN110379028B - Route recommendation-based card punching method and device, computer equipment and storage medium - Google Patents

Route recommendation-based card punching method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN110379028B
CN110379028B CN201910516567.7A CN201910516567A CN110379028B CN 110379028 B CN110379028 B CN 110379028B CN 201910516567 A CN201910516567 A CN 201910516567A CN 110379028 B CN110379028 B CN 110379028B
Authority
CN
China
Prior art keywords
card punching
card
punching
route
punch
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910516567.7A
Other languages
Chinese (zh)
Other versions
CN110379028A (en
Inventor
陈琳琳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910516567.7A priority Critical patent/CN110379028B/en
Publication of CN110379028A publication Critical patent/CN110379028A/en
Application granted granted Critical
Publication of CN110379028B publication Critical patent/CN110379028B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/005Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 with correlation of navigation data from several sources, e.g. map or contour matching
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C1/00Registering, indicating or recording the time of events or elapsed time, e.g. time-recorders for work people
    • G07C1/10Registering, indicating or recording the time of events or elapsed time, e.g. time-recorders for work people together with the recording, indicating or registering of other data, e.g. of signs of identity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal

Abstract

The invention discloses a route recommendation-based card punching method, a route recommendation-based card punching device, computer equipment and a storage medium; obtaining a card punching request sent by a client, wherein the card punching request comprises an identity and a current position; acquiring a corresponding user type from a preset user information database based on the identity; acquiring at least one preset card punching point according to the user type, wherein each preset card punching point comprises a card punching type; determining a card punching position to be selected according to the card punching type of each preset card punching point; acquiring at least one initial travel route based on the current position and each position to be checked; selecting a travel route meeting preset conditions from the initial travel route to form target card punching information, wherein the target card punching information comprises a target card punching position and a recommended travel route; the user can punch the card on time according to the target card punching position and the recommended travel route, and therefore the efficiency of punching the card on duty and off duty of the user is improved.

Description

Route recommendation-based card punching method and device, computer equipment and storage medium
Technical Field
The invention relates to the field of data processing, in particular to a route recommendation-based card punching method and device, computer equipment and a storage medium.
Background
With the continuous development of internet technology, mobile attendance systems based on mobile communication networks and the internet are continuously developed and perfected. At present, in order to facilitate the punching of cards by employees, a plurality of companies adopt a multi-point punching mode to punch cards by the employees. Although the mode of multi-point card punching is used for checking attendance, the fact that the workers punch cards on and off duty becomes more convenient and efficient, due to the diversity and uncertainty of card punching places, many workers can often and accurately master which card punching point can be punched more conveniently and more time-saving due to the fact that a plurality of card punching places exist, and therefore great inconvenience is brought to the workers who punch cards on and off duty.
Disclosure of Invention
The embodiment of the invention provides a card punching method, a card punching device, computer equipment and a storage medium, and aims to solve the problem that the card punching on time and work cannot be performed.
A route recommendation-based card punching method comprises the following steps:
obtaining a card punching request sent by a client, wherein the card punching request comprises an identity and a current position;
acquiring a corresponding user type from a preset user information database based on the identity;
acquiring at least one preset card punching point according to the user type, wherein each preset card punching point comprises a card punching type;
determining a card punching position to be selected according to the card punching type of each preset card punching point;
acquiring at least one initial travel route based on the current position and each punch-card position to be selected;
and selecting a travel route meeting preset conditions from the initial travel route to form target card punching information, wherein the target card punching information comprises a target card punching position and a recommended travel route.
A route recommendation based punch-card apparatus comprising:
the system comprises a card punching request acquisition module, a card punching request acquisition module and a card punching request processing module, wherein the card punching request acquisition module is used for acquiring a card punching request sent by a client, and the card punching request comprises an identity identifier and a current position;
the user type obtaining module is used for obtaining a corresponding user type from a preset user information database based on the identity;
a preset card punching point acquisition module, configured to acquire at least one preset card punching point according to the user type, where each preset card punching point includes a card punching type;
the to-be-selected punch-card position determining module is used for determining a to-be-selected punch-card position according to the punch-card type of each preset punch-card point;
the initial travel route obtaining module is used for obtaining at least one initial travel route based on the current position and each punch-card position to be selected;
and the composition module is used for selecting a travel route meeting preset conditions from the initial travel route to form target card punching information, and the target card punching information comprises a target card punching position and a recommended travel route.
A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the route recommendation based card punching method when executing the computer program.
A computer-readable storage medium, which stores a computer program that, when executed by a processor, implements the above-described route recommendation-based card punching method.
According to the route recommendation-based card punching method, the route recommendation-based card punching device, the computer equipment and the storage medium, the card punching request sent by the client is obtained, and the card punching request comprises the identity and the current position; acquiring a corresponding user type from a preset user information database based on the identity; acquiring at least one preset card punching point according to the user type, wherein each preset card punching point comprises a card punching type; determining a card punching position to be selected according to the card punching type of each preset card punching point; acquiring at least one initial travel route based on the current position and each to-be-selected card punching position; selecting a travel route meeting preset conditions from the initial travel routes to form target card punching information, wherein the target card punching information comprises a target card punching position and a recommended travel route; the method comprises the steps of determining corresponding trip points according to user types of users, obtaining initial trip routes between a current position and each trip point in real time based on a plurality of different trip points, then screening each initial trip route by combining current trip time, trip distance or trip modes, recommending target trip positions and recommended trip routes meeting conditions for the users, and ensuring that the users can trip on time according to the target trip positions and the recommended trip routes, so that the efficiency of trip on work and off work of the users is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a diagram illustrating an application environment of a route recommendation-based card punching method according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating an exemplary route recommendation based card punch method according to an embodiment of the invention;
FIG. 3 is a diagram of another example of a route recommendation based card punch method in an embodiment of the invention;
FIG. 4 is a diagram of another example of a route recommendation based card punch method in an embodiment of the invention;
FIG. 5 is a diagram of another example of a route recommendation based punch card method in accordance with one embodiment of the invention;
FIG. 6 is a diagram of another example of a route recommendation based card punch method in an embodiment of the invention;
FIG. 7 is a diagram of another example of a route recommendation based card punch method in an embodiment of the invention;
FIG. 8 is a schematic block diagram of a route recommendation based card punch apparatus in accordance with an embodiment of the present invention;
FIG. 9 is another functional block diagram of a route recommendation based punch-card apparatus in accordance with an embodiment of the present invention;
FIG. 10 is a schematic diagram of a computer device according to an embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without inventive step based on the embodiments of the present invention, are within the scope of protection of the present invention.
The route recommendation-based card punching method provided by the embodiment of the invention can be applied to an application environment shown in fig. 1. Specifically, the route recommendation-based card punching method is applied to a route recommendation-based card punching system, the route recommendation-based card punching system comprises a client and a server as shown in fig. 1, and the client and the server are communicated through a network and used for solving the problem that the card punching on time and work cannot be performed. The client is also called a client, and refers to a program corresponding to the server and providing local services to the client. The client may be installed on, but is not limited to, various personal computers, laptops, smartphones, tablets, and portable wearable devices. The server side can be implemented by an independent server or a server cluster formed by a plurality of servers.
In an embodiment, as shown in fig. 2, a route recommendation based card punching method is provided, which is described by taking the method as an example applied to the server side in fig. 1, and includes the following steps:
s10: and obtaining a card punching request sent by the client, wherein the card punching request comprises an identity and a current position.
The card punching request is a request which is sent to the server side by the user through the client side and is used for punching a card. Alternatively, the card punching request can be triggered and generated when the user enters certain card punching software, system or webpage of the client. In this embodiment, the client may be a computer or a mobile terminal. The identity identification is used for uniquely identifying the identity information of the user. Optionally, the identity may be a mobile phone number, a job number, an identification number, and the like of the user, which represent identity information of the user. In a specific embodiment, if the user triggers a card-punching request through a certain card-punching software entering the client, the identity may correspond to login information of the user logging in the card-punching software. The current position refers to position information obtained after positioning the actual position where the user is currently located. Alternatively, the position information may be obtained directly in real time by an automatic positioning system of the client, for example: a GPS system.
S20: and acquiring the corresponding user type from a preset user information database based on the identity.
The user type refers to a type name obtained by classifying different users. The user in this embodiment mainly refers to an employee inside a company. Therefore, the user type can be obtained by classifying the user according to the work post, the work content or the work place of the user. For example: the user types may be classified into outworkers and inworkers. In one embodiment, in order to facilitate the confirmation of the user type of each user, the identity of each user may be associated with the corresponding user type in advance and stored in the database of the server. After the user triggers the card punching request, the server can directly acquire the user type of the user from the database according to the identity carried by the card punching request.
Preferably, in order to distinguish different user types, different user types can be assigned with corresponding unique identification numbers. For example: the identification number of the outworker is given as 1, and the identification number of the inworker is given as 2. Further, in order to improve the accuracy of the user type determined according to the identity, the identity of the user and the associated data of the corresponding user type need to be updated regularly, so that the situation that the acquired employee type is wrong due to the change of the post is avoided.
S30: and acquiring at least one preset card punching point according to the user type, wherein each preset card punching point comprises a card punching type.
The preset card punching point refers to a preset place where the card punching from work to work can be carried out. For example: the preset card punching points can be office card punching points in an area A, office card punching points in an area B or office card punching points in an area C. And acquiring at least one corresponding preset card punching point according to the user type of the user. In a specific embodiment, the preset card punching points matched with the user types are stored in the database of the server in advance according to different user types, and when the user types of the users are determined, the preset card punching points associated with the user types can be directly obtained from the database. It can be understood that the preset punch-out points corresponding to different user types are different, and each preset punch-out point includes a punch-out type.
The card punching type refers to a card punching mode for punching cards when a user goes to work or not. Optionally, the card punch type may include: personal check-in card punching, IC card punch, mobile card punching, wireless intelligent card punching and the like. For example, the card punching type may be a wireless intelligent card punching type in which effective card punching can be performed by connecting a specific WiFi of a certain preset card punching point, or a mobile card punching type in which effective card punching can be performed by a card punching system of a mobile terminal after entering a specific area of a certain preset card punching point, or an IC card punching type in which effective card punching can be performed only after fingerprint or face recognition is performed by reaching a certain fixed card punching point. It should be noted that each preset punch-out point includes one or more corresponding punch-out types.
S40: and determining the position of the card to be selected according to the card punching type of each preset card punching point.
The card punching position to be selected refers to a specific card punching position where the card punching from work to work can be carried out. Specifically, the preset punch points are divided into fixed punch points which need to be punched at the fixed punch points and mobile punch points which can be punched in a certain range according to the punch type of each preset punch point. In a specific embodiment, a preset punching point which is required to punch a card at a fixed punching point and has a punching type of personal sign-in punching, IC punching and the like can be associated with the fixed punching point in advance, and the preset punching point which can punch the card within a certain range and has a punching type of mobile punching, wireless network punching and the like is associated with the mobile punching point; after the server determines the card punching type of the preset card punching point, the server can directly know whether the preset card punching point belongs to a fixed card punching point or a mobile card punching point. Then, positioning an effective card punching area of a preset card punching point belonging to the mobile card punching point by adopting third-party interface data so as to obtain a plurality of sub card punching points contained in the preset card punching point belonging to the mobile card punching point; and finally, uniformly determining a plurality of sub-punch points contained in the preset punch points belonging to the fixed punch points and the preset punch points belonging to the mobile punch points as the punch positions to be selected.
S50: and acquiring at least one initial travel route based on the current position and each punching position to be selected.
The initial travel route refers to a route from the current position to each position to be checked. Optionally, the initial travel route may be the shortest route when the current position reaches a certain card hitting position to be selected, or the least congested route when the current position reaches a certain card hitting position to be selected, and the like. It is understood that the current location and the initial travel route corresponding to each card to be selected should be at least one.
Specifically, after determining the positions to be checked for card punching according to step S40, the server performs route planning according to the current position and the geographic position between each of the positions to be checked for card punching, so as to obtain an initial travel route. Alternatively, the initial travel route may be obtained by means of third party interface data, such as a Baidu map, a Gade map, or an Tencent map. And planning a route by means of third-party interface data according to the current position and each position to be checked to obtain an initial travel route. It should be noted that each acquired initial travel route includes travel time, travel distance, travel mode, and the like.
S60: and selecting a travel route meeting preset conditions from the initial travel routes to form target card punching information, wherein the target card punching information comprises a target card punching position and a recommended travel route.
The preset conditions refer to preset conditions for carrying out route screening on the acquired initial travel route. Specifically, after the user inputs corresponding preset condition information in the preset condition filtering box of the client page, the preset condition can be generated. Optionally, the preset condition may be at least one of a preset trip time, a preset trip distance, a preset trip mode, or the like. For example: and if the preset condition is that the preset travel time is less than 30 minutes, selecting a travel route with the travel time less than 30 minutes from the initial travel routes to form target card punching information. And if the preset condition is that the preset travel distance is less than 10 kilometers, selecting a travel route with the travel distance of less than 10 kilometers from the initial travel route to form target card punching information. In a specific embodiment, a user inputs corresponding preset condition information in a preset condition screening box of a client page in advance, after a preset condition is generated, the client sends the preset condition to a server, and the server screens an initial travel route according to the obtained preset condition, so that target card punching information consisting of the travel route with the preset condition can be obtained.
The target card punching information comprises a target card punching position and a recommended travel route. The target card punching position refers to a card punching position meeting a preset condition. For example: and if the preset condition is the preset travel time, the target card punching position is the card punching position corresponding to the travel time smaller than the preset travel time. Likewise, the recommended travel route refers to a travel route satisfying a preset condition. It is to be appreciated that the target punch-card location should be at least one and the recommended travel route should be at least one.
In the embodiment, a card punching request sent by a client is obtained, wherein the card punching request comprises an identity and a current position; acquiring a corresponding user type from a preset user information database based on the identity; acquiring at least one preset card punching point according to the user type, wherein each preset card punching point comprises a card punching type; determining a card punching position to be selected according to the card punching type of each preset card punching point; acquiring at least one initial travel route based on the current position and each position to be checked; selecting a travel route meeting preset conditions from the initial travel routes to form target card punching information, wherein the target card punching information comprises a target card punching position and a recommended travel route; the method comprises the steps of determining corresponding trip points according to user types of users, obtaining initial trip routes between a current position and each trip point in real time based on a plurality of different trip points, then screening each initial trip route by combining current trip time, trip distance or trip modes, recommending target trip positions and recommended trip routes meeting conditions for the users, and ensuring that the users can trip on time according to the target trip positions and the recommended trip routes, so that the efficiency of trip on work and off work of the users is improved.
In one embodiment, as shown in fig. 3, after selecting a travel route satisfying a preset condition from the initial travel routes to form target trip information, the trip information based on route recommendation further includes the following steps:
s70: and sending the target card punching information to the client.
Specifically, the target card punching information comprises a target card punching position and a recommended travel route, and after the travel route meeting preset conditions is selected from the initial travel route by the server to form the target card punching information, the target card punching information is sent to the client, so that a user can select a route according to the target card punching position and the recommended travel route.
S80: and obtaining route selection information returned by the client according to the target card punching information.
The route selection information refers to instruction information generated by the client according to the target travel route selected by the user through clicking. Specifically, after receiving target card punching information returned by the server, the client side receives the target card punching information returned by the server side; the user can select a route for the recommended travel route in the target card punching information through the client page to determine the target travel route, then the client generates route selection information according to the target travel route clicked and selected by the user, the route selection information is sent to the server, and the server receives the route selection information returned by the client.
S90: and generating and sending route planning data to the client according to the route selection information so that the client displays the route planning data on a display interface.
The route planning data refers to specific route data generated by the server according to the route selection information. It is understood that the route planning data is also data generated after the target travel route finally selected by the user is subjected to route planning. The route planning data may include: travel time, travel distance, route congestion conditions, corresponding suitable travel tools and the like. Specifically, after route selection information returned by the client is obtained, a target trip route corresponding to the route selection information is determined, corresponding route planning data is generated by means of third-party interface data and sent to the client, the route planning data is displayed on a display interface of the client, and a user can conveniently make a time trip to a target trip position according to the route planning data of the target trip route to make a time trip.
In the embodiment, the recommended travel route is sent to the client; route selection information returned by the client according to the recommended travel route is obtained; finally, generating and sending route planning data to the client according to the route selection information so that the client can display the route planning data on a display interface; the user can punch the card on time according to the target card punching position and the recommended travel route, and meanwhile the user can conveniently travel according to specific route planning data.
In an embodiment, as shown in fig. 4, determining a punching position to be selected according to the punching type of each preset punching point specifically includes the following steps:
s401: and dividing the preset card punching points into fixed card punching points and mobile card punching points according to the card punching type of each preset card punching point.
Wherein, the fixed punch-out point refers to a punch-out point which can only carry out effective punch-out at a certain position. The mobile punch-down point refers to a punch-down point at which effective punch-down can be carried out within a certain set range. Specifically, according to the punch card type of each preset punch card point, the preset punch card points are divided into fixed punch card points capable of punching cards at a specific position and mobile punch card points capable of punching cards within a certain set range. Specifically, a card punching point classification table may be preset and stored in the database of the server, where the card punching point classification table includes all card punching types and whether each card punching type corresponds to a fixed card punching point or a mobile card punching point. For example: in the punching point classification table, personal sign-in punching and IC punching machine punching are associated with the fixed punching points in advance, and the mobile punching and wireless networks are associated with the mobile punching points.
After the server determines the card punching type of each preset card punching point, whether the preset card punching point belongs to a fixed card punching point or a mobile card punching point can be determined by inquiring the card punching point classification table. For example: if the card punching type of the preset card punching point A is mobile card punching, the preset card punching point A can be obtained to belong to a fixed card punching point by inquiring the card punching point classification table.
S402: and determining a sub-punch-down point of each mobile punch-down point according to the effective punch-down range of each mobile punch-down point.
Wherein, the sub-punch-out points refer to a plurality of specific punch-out positions in the mobile punch-out point. Specifically, according to the effective card punching range of the mobile card punching points, the sub card punching points of each mobile card punching point can be determined through an automatic positioning function through third-party interface data, such as a Baidu map, a Gandy map or an Tencent map. And the server sends the mobile card punching point to third-party interface data, then determines a plurality of position points in the mobile card punching point through an automatic positioning function of the third-party interface data, and finally selects a position point meeting an effective card punching range from the plurality of position points to determine the position point as a sub card punching point of the mobile card punching point. For example: if a certain flow check-in point is within 500 meters of the xx building, the sub check-in points of the flow check-in point are determined to be the north door of the xx building, the south door of the xx building, the bus station at the east door of the xx building and the like according to the effective check-in range of the flow check-in point.
S403: and determining the sub-punching points of each fixed punching point and each mobile punching point as the punching positions to be selected.
Specifically, the punching position to be selected can be obtained by combining the fixed punching point determined in step S401 and the sub-punching point of each mobile punching point determined in step S402.
In the embodiment, the preset punch-down points are divided into fixed punch-down points and mobile punch-down points according to the punch-down type of each preset punch-down point; determining a sub-punch-card point of each non-fixed punch-card according to the effective punch-card range of each mobile punch-card point; determining the sub-punching points of each fixed punching point and each mobile punching point as positions to be punched; according to the card punching types of the card punching points, the card punching points to be selected are determined after being classified, and therefore the accuracy and the diversity of the card punching points to be selected are improved.
In an embodiment, as shown in fig. 5, after determining the punching position to be selected according to the punching type of each preset punching point, the route recommendation-based punching method further includes the following steps:
s41: and if the current position is in any card punching position to be selected, detecting whether the current time meets the preset card punching time.
After the position to be checked is determined according to the checking type of each preset checking point, if the current position is obtained to be within the checking range of any position to be checked through an automatic positioning system of the client, the current time is obtained, and whether the current time meets the preset checking time or not is detected. The preset time for punching the card refers to the preset time for getting on and off duty for effectively punching the card. In one embodiment, the database of the server has stored a preset time for punching the card. For example: the preset time for punching the card may include: working time of card punching: 7, 00-8: 17. After the server acquires the current time, whether the current time is within the preset time of punching the card can be directly judged according to the preset time of punching the card stored in the database. And if the current time is detected to be within the preset time, judging that the current time meets the preset time. Otherwise, if the current time is detected not to be within the preset time, judging that the current time does not meet the preset time.
S42: and if the current time meets the preset card punching time, judging whether the card punching type of the card punching position to be selected is mobile card punching.
Specifically, if it is determined according to step S41 that the current time meets the preset punch-card time, the punch-card type of the punch-card position to be selected is obtained, and it is determined whether the punch-card type of the punch-card position to be selected is the mobile punch-card. Specifically, the card punching type of the card punching position to be selected can be identified by adopting a character identification technology, so that whether the card punching type of the card punching position to be selected is a mobile card punching is judged; or matching the card punching type of the position to be selected with the mobile card punching by adopting a character string matching method; if the matching is successful, judging that the card punching type of the position to be selected is mobile card punching; otherwise, the card is not moved.
S43: and if the card punching type of the position to be punched is the mobile card punching, executing the card punching operation.
And if the card punching type of the card punching position to be selected is judged to be the mobile card punching according to the step S42, executing the card punching operation.
Specifically, if the card punching type of the card punching and placing to be selected is judged to be the mobile card punching, the card punching operation can be executed by recording the card punching information of the current user, so as to perform subsequent attendance statistics management. The recorded card punching information may include a card punching time, a user account, and the like, which is not limited herein. Additionally, the punching operation may also be performed by triggering a specific punching program of the client.
In this embodiment, if the current position is in any card punching position to be selected, whether the current time meets the preset card punching time is detected; if the current time meets the preset card punching time, judging whether the card punching type of the card punching position to be selected is mobile card punching, if the card punching type of the card punching position to be selected is mobile card punching, executing card punching operation and completing card punching, and under the condition that the current position of a user is in any card punching position to be selected and the card punching type is mobile card punching, completing card punching without additionally executing card punching operation at a client side by the user, so that the card punching efficiency of the user is improved.
In an embodiment, as shown in fig. 6, a travel route meeting a preset condition is selected from the initial travel routes to form target punch-card information, where the target punch-card information includes a target punch-card position and a recommended travel route, and the method specifically includes the following steps:
s601: and acquiring initial travel time corresponding to each initial travel route.
The initial travel time refers to the time corresponding to each initial travel route. It can be understood that the initial travel time corresponding to different initial travel routes is different. Specifically, each initial travel route acquired through the third-party data interface includes corresponding initial travel time, so that the corresponding initial travel time can be directly acquired from each initial travel route.
S602: and determining target travel time according to the current time and preset time of checking the card, and screening out travel routes of which the initial travel time is less than the target travel time from the initial travel routes to serve as recommended travel routes.
Since the preset time for punching the card is a specific time period. The preset time of punching includes a time period from an earliest point of time of punching to a latest point of time of punching. Therefore, the target travel time refers to a time period between the current time and the latest time point of the preset time of punching. For example, if the current time is 7; the target travel time determined according to the current time and the preset time of punching the card is 45 minutes. In a specific embodiment, a database of the server side stores preset time for punching a card in advance; therefore, after the current time is determined, the corresponding target travel time can be obtained by calculation directly according to the current time and the permission time point of the preset time for punching the card. Preferably, the preset time for punching the card stored in advance in the database of the server may include a preset time for punching the card on duty and a preset time for punching the card off duty, and therefore, after the current time is obtained, the preset time for punching the card corresponding to the current time needs to be determined. Specifically, by presetting a time range, the current time is set to 00:00-12: setting the preset time for punching the card corresponding to 00 as the time for punching the card on duty, and setting the current time as 12:01-23: and the preset time for punching the card corresponding to 59 is set as the time for punching the card next work.
Specifically, after the target travel time is determined according to the current time and the preset time of punching the card, the initial travel time corresponding to each initial travel route is obtained, the initial travel time of each initial travel route is compared with the target travel time one by one, and finally, the travel routes of which the initial travel time is less than the target travel time are screened out to be used as recommended travel routes. In the step, the travel route with the initial travel time smaller than the target travel time is screened out from the initial travel route and is used as the recommended travel route, so that the user can be guaranteed to punch a card on time for going to and from work within the preset time for punching the card.
S603: and determining a card punching position corresponding to the recommended travel route as a target card punching position, and forming target card punching information by the target card punching position and the recommended travel route.
Specifically, after the recommended travel route is determined according to step S602, the punch-out position corresponding to the recommended travel route is determined as the target punch-out position, and then the target punch-out position and the recommended travel route are combined into the target punch-out information.
In the embodiment, the initial travel time corresponding to each initial travel route is obtained; determining target travel time according to the current time and preset time of punching a card, and screening out travel routes of which the initial travel time is less than the target travel time from the initial travel routes to serve as recommended travel routes; determining a card punching position corresponding to the recommended travel route as a target card punching position, and forming target card punching information by the target card punching position and the recommended travel route; therefore, each recommended travel route acquired by the user is guaranteed to be a travel route which can arrive at the point of time for punching the card.
In one embodiment, as shown in fig. 7, before selecting a recommended travel route satisfying a preset condition from the initial travel routes, the route recommendation-based card punching method further includes the following steps:
s51: and acquiring a daily travel route, wherein the daily travel route comprises daily travel time.
The daily travel route refers to a route for a user to frequently travel on a check-in work. Each daily travel route includes a daily travel time. The daily travel time refers to travel time corresponding to the daily travel route. The daily travel route comprises an on-duty daily travel route and an off-duty travel route. For example: the daily trip time that daily trip route on duty corresponds is 8, and the daily trip time that daily route on duty corresponds is 18. In a specific embodiment, the daily travel route is a route with the highest user travel frequency obtained by performing real-time statistics on historical travel routes of the user going to and from work. As can be appreciated, the daily travel route may be updated in real-time as the user selects the travel route from work to work.
S52: and judging whether the travel time difference between the current time and the daily travel time is smaller than a time threshold value or not, and if the travel time difference is smaller than the time threshold value, sending an emergency card punching prompt.
The current time refers to a specific time point of the current time, and the current time can be directly obtained from the client in real time. The travel time difference refers to a time period between the current time and the daily travel time. For example: if the current time is 7:50, the daily trip time is 8. The time threshold refers to a preset time period for judging whether the current time is close to the daily travel time. For example: the time threshold can be set to 3 minutes, 5 minutes or 10 minutes, and the like, and the user can customize the setting according to the actual situation.
Specifically, the current time is obtained in real time, the travel time difference between the current time and the daily travel time is calculated, the travel time difference between the current time and the daily travel time is compared with a time threshold, whether the travel time difference is smaller than the time threshold or not is judged, and if the travel time difference is smaller than the time threshold, it indicates that the user may be late to go to work or log off to work according to the daily travel route. Therefore, an emergency card-punching prompt is sent at this time, and specifically, the emergency card-punching prompt can be embodied in a mode of at least one of characters, voice or flashing lights.
In this embodiment, through obtaining daily trip route, daily trip route includes daily trip time, judges whether the difference in time of trip between current time and the daily trip time is less than the time threshold value, if the difference in time of trip is less than the time threshold value, then sends urgent punch-card suggestion, reminds the user to go on a journey according to daily trip route, has further guaranteed that the user can go on time to trip to work and punch-card.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
In an embodiment, a route recommendation-based punch-card device is provided, and the route recommendation-based punch-card device corresponds to the route recommendation-based punch-card method in the above embodiments one to one. As shown in fig. 8, the route recommendation-based card punching device includes a card punching request obtaining module 10, a user type obtaining module 20, a preset card punching point obtaining module 30, a selected card punching position determining module 40, an initial travel route obtaining module 50 and a composition module 60. The detailed description of each functional module is as follows:
a card punching request obtaining module 10, configured to obtain a card punching request sent by a client, where the card punching request includes an identity and a current location;
a user type obtaining module 20, configured to obtain a corresponding user type from a preset user information database based on the identity;
a preset time stamp point obtaining module 30, configured to obtain at least one preset time stamp point according to the user type, where each preset time stamp point includes a time stamp type;
a to-be-selected punch-card position determining module 40, configured to determine a to-be-selected punch-card position according to the punch-card type of each preset punch-card point;
an initial travel route obtaining module 50, configured to obtain at least one initial travel route based on the current location and each punch-in location to be selected;
and a composing module 60, configured to select a travel route meeting preset conditions from the initial travel routes to compose target trip information, where the target trip information includes a target trip position and a recommended travel route.
Preferably, the route recommendation-based card punching device further comprises:
a sending module 70, configured to send the target card punching information to the client;
a route selection information obtaining module 80, configured to obtain route selection information returned by the client according to the target card punching information;
the generating module 90 is configured to generate and send route planning data to the client according to the route selection information, so that the client displays the route planning data on the display interface.
Preferably, the candidate punch position determining module 40 includes:
the classification unit is used for classifying the preset card punching points into fixed card punching points and mobile card punching points according to the card punching type of each preset card punching point;
the sub-punch-out point determining unit is used for determining the sub-punch-out point of each mobile punch-out point according to the effective punch-out range of each mobile punch-out point;
and the position unit for punching cards to be selected is used for determining the sub-punching points of each fixed punching point and each mobile punching point as the positions for punching cards to be selected.
Preferably, the route recommendation-based card punching device further comprises:
the detection module is used for detecting whether the current time meets the preset card punching time when the current position is in any position of a card to be selected;
the judging module is used for judging whether the card punching type of the card punching position to be selected is mobile card punching when the current time meets the preset card punching time;
and the card punching module is used for executing card punching operation when the card punching type of the card punching position to be selected is mobile card punching.
Preferably, the composition module 60 comprises:
an initial travel time acquisition unit, configured to acquire an initial travel time corresponding to each initial travel route;
the screening unit is used for determining a target travel time according to the current time and the preset time of punching the card, and screening a travel route of which the initial travel time is less than the target travel time from the initial travel routes to serve as a recommended travel route;
and the composition unit is used for determining the card punching position corresponding to the recommended travel route as a target card punching position, and composing the target card punching position and the recommended travel route into target card punching information.
Preferably, the route recommendation-based card punching device further comprises:
the daily travel route acquiring module is used for acquiring a daily travel route, and the daily travel route comprises daily travel time;
and the emergency card punching module is used for judging whether the travel time difference between the current time and the daily travel time is smaller than a time threshold value or not, and if the travel time difference is smaller than the time threshold value, sending an emergency card punching prompt.
The specific definition of the route recommendation-based punch card device can be referred to the definition of the route recommendation-based punch card method in the above, and is not described in detail here. The modules in the route recommendation-based card punching device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 10. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing data used by the route recommendation-based card punching method in the embodiment. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a route recommendation based card punch method.
In one embodiment, a computer device is provided, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the computer program, the route recommendation-based card punching method in the above embodiments is implemented.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which when executed by a processor implements the route recommendation based card punching method in the above embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), rambus (Rambus) direct RAM (RDRAM), direct Rambus Dynamic RAM (DRDRAM), and Rambus Dynamic RAM (RDRAM), among others.
It should be clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional units and modules is only used for illustration, and in practical applications, the above function distribution may be performed by different functional units and modules as needed, that is, the internal structure of the apparatus may be divided into different functional units or modules to perform all or part of the above described functions.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (9)

1. A route recommendation-based card punching method is characterized by comprising the following steps:
obtaining a card punching request sent by a client, wherein the card punching request comprises an identity and a current position;
based on the identity, acquiring a corresponding user type from a preset user information database;
acquiring at least one preset card punching point according to the user type, wherein each preset card punching point comprises a card punching type;
determining a card punching position to be selected according to the card punching type of each preset card punching point;
acquiring at least one initial travel route based on the current position and each to-be-selected card punching position;
selecting travel routes meeting preset conditions from the initial travel routes to form target trip information, wherein the target trip information comprises a target trip position and a recommended travel route, and the preset conditions refer to preset conditions for carrying out route screening on the obtained initial travel routes;
the step of determining the punching position to be selected according to the punching type of each preset punching point comprises the following steps:
dividing the preset card punching points into fixed card punching points and mobile card punching points according to the card punching type of each preset card punching point;
determining a sub-punch-off point of each mobile punch-off point according to the effective punch-off range of each mobile punch-off point;
and determining the sub-punch points of each fixed punch point and each mobile punch point as punch positions to be selected.
2. The route recommendation-based punch-card method according to claim 1, wherein after the selecting of the travel route composition target punch-card information satisfying preset conditions from the initial travel route, the route recommendation-based punch-card method further comprises:
sending the target card punching information to the client;
obtaining route selection information returned by the client according to the target card punching information;
and generating and sending route planning data to the client according to the route selection information so that the client displays the route planning data on a display interface.
3. The route recommendation-based punch-card method according to claim 1, wherein after determining the punch-card position to be selected according to the punch-card type of each preset punch-card point, the route recommendation-based punch-card method further comprises:
if the current position is in any one of the punching positions to be selected, detecting whether the current time meets the preset punching time;
if the current time meets the preset card punching time, judging whether the card punching type of the position to be selected is mobile card punching;
and if the card punching type of the position to be selected is mobile card punching, executing card punching operation.
4. The route recommendation-based card punching method according to claim 1, wherein the selecting of the travel route satisfying preset conditions from the initial travel routes constitutes target card punching information, and the target card punching information includes a target card punching position and a recommended travel route, and includes:
acquiring initial travel time corresponding to each initial travel route;
determining target travel time according to the current time and preset time of punching a card, and screening out travel routes of which the initial travel time is less than the target travel time from the initial travel routes to serve as recommended travel routes;
and determining a card punching position corresponding to the recommended travel route as a target card punching position, and forming target card punching information by the target card punching position and the recommended travel route.
5. The route recommendation-based card punching method according to claim 1, wherein before selecting a travel route satisfying a preset condition from the initial travel routes to form target card punching information, the route recommendation-based card punching method further comprises:
acquiring a daily travel route, wherein the daily travel route comprises daily travel time;
and judging whether the travel time difference between the current time and the daily travel time is smaller than a time threshold value or not, and if the travel time difference is smaller than the time threshold value, sending an emergency card punching prompt.
6. A route recommendation-based punch-card apparatus, comprising:
the system comprises a card punching request acquisition module, a card punching request acquisition module and a card punching request processing module, wherein the card punching request acquisition module is used for acquiring a card punching request sent by a client, and the card punching request comprises an identity and a current position;
the user type obtaining module is used for obtaining a corresponding user type from a preset user information database based on the identity;
the preset card punching point acquisition module is used for acquiring at least one preset card punching point according to the user type, and each preset card punching point comprises a card punching type;
the to-be-selected punch-card position determining module is used for determining a to-be-selected punch-card position according to the punch-card type of each preset punch-card point;
the initial travel route obtaining module is used for obtaining at least one initial travel route based on the current position and each punch-card position to be selected;
the system comprises a composition module, a selection module and a display module, wherein the composition module is used for selecting a travel route meeting preset conditions from the initial travel route to form target trip information, the target trip information comprises a target trip position and a recommended travel route, and the preset conditions refer to preset conditions for performing route screening on the obtained initial travel route;
the card punching position determination module to be selected comprises:
the classification unit is used for classifying the preset card punching points into fixed card punching points and mobile card punching points according to the card punching type of each preset card punching point;
the sub-punch-out point determining unit is used for determining the sub-punch-out point of each mobile punch-out point according to the effective punch-out range of each mobile punch-out point;
and the position unit for punching cards to be selected is used for determining the sub-punching points of each fixed punching point and each mobile punching point as the positions for punching cards to be selected.
7. The route recommendation based punch-card apparatus according to claim 6, wherein the route recommendation based punch-card apparatus further comprises:
the sending module is used for sending the target card punching information to the client;
the route selection information acquisition module is used for acquiring route selection information returned by the client according to the target card punching information;
and the generating module is used for generating and sending route planning data to the client according to the route selection information so that the client displays the route planning data on a display interface.
8. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the route recommendation based card punching method according to any one of claims 1 to 5 when executing the computer program.
9. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the route recommendation-based card punching method according to any one of claims 1 to 5.
CN201910516567.7A 2019-06-14 2019-06-14 Route recommendation-based card punching method and device, computer equipment and storage medium Active CN110379028B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910516567.7A CN110379028B (en) 2019-06-14 2019-06-14 Route recommendation-based card punching method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910516567.7A CN110379028B (en) 2019-06-14 2019-06-14 Route recommendation-based card punching method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110379028A CN110379028A (en) 2019-10-25
CN110379028B true CN110379028B (en) 2023-02-28

Family

ID=68248781

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910516567.7A Active CN110379028B (en) 2019-06-14 2019-06-14 Route recommendation-based card punching method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110379028B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113064916B (en) * 2021-04-22 2023-09-05 中国平安财产保险股份有限公司 Monitoring method and device for abnormal card punching behavior, computer equipment and storage medium
CN113984079B (en) * 2021-10-26 2024-04-19 沈阳美行科技股份有限公司 Route planning method and device for electric vehicle, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104200533A (en) * 2014-08-14 2014-12-10 宣颖骥 Card punching system and card punching method based on positioning service function
CN105184612A (en) * 2015-09-07 2015-12-23 广东欧珀移动通信有限公司 Route recommendation method and user terminal
CN106197450A (en) * 2016-07-06 2016-12-07 深圳市金立通信设备有限公司 A kind of navigation reminders method and terminal
CN106780816A (en) * 2017-01-16 2017-05-31 北京恒华伟业科技股份有限公司 A kind of work attendance punch card method and device
CN108154566A (en) * 2017-12-26 2018-06-12 北京邦邦共赢网络科技有限公司 A kind of method and apparatus intelligently checked card
CN108694457A (en) * 2017-04-07 2018-10-23 北京嘀嘀无限科技发展有限公司 The method and device of information recommendation

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5361093B2 (en) * 2011-10-05 2013-12-04 中国電力株式会社 Attendance confirmation system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104200533A (en) * 2014-08-14 2014-12-10 宣颖骥 Card punching system and card punching method based on positioning service function
CN105184612A (en) * 2015-09-07 2015-12-23 广东欧珀移动通信有限公司 Route recommendation method and user terminal
CN106197450A (en) * 2016-07-06 2016-12-07 深圳市金立通信设备有限公司 A kind of navigation reminders method and terminal
CN106780816A (en) * 2017-01-16 2017-05-31 北京恒华伟业科技股份有限公司 A kind of work attendance punch card method and device
CN108694457A (en) * 2017-04-07 2018-10-23 北京嘀嘀无限科技发展有限公司 The method and device of information recommendation
CN108154566A (en) * 2017-12-26 2018-06-12 北京邦邦共赢网络科技有限公司 A kind of method and apparatus intelligently checked card

Also Published As

Publication number Publication date
CN110379028A (en) 2019-10-25

Similar Documents

Publication Publication Date Title
CN107368898B (en) Intelligent fault reporting and maintenance monitoring method
CN110723609B (en) Elevator control method, device, system, computer equipment and storage medium
CN110849384B (en) Navigation route generation method and device, readable storage medium and computer equipment
CN106355357B (en) Power distribution network fault processing method and information processing system
CN110379028B (en) Route recommendation-based card punching method and device, computer equipment and storage medium
CN110648121A (en) Alarm condition information linkage processing system, method and device and computer equipment
CN111508107B (en) Intelligent door lock control method and device, computer equipment and storage medium
CN108154566B (en) Intelligent card punching method and device
CN111104589B (en) Decoration enterprise evaluation method, device, computer equipment and storage medium
CN112734973A (en) Point location patrol method and point location patrol system
CN111652996B (en) Method and device for detecting operation place of outworker
CN112330341A (en) Order allocation method and device, computer equipment and storage medium
CN109754631B (en) Vehicle position tracking method and device, computer equipment and storage medium
CN110750603B (en) Building service prediction method, building service prediction device, building service prediction system, computer equipment and storage medium
CN113064916B (en) Monitoring method and device for abnormal card punching behavior, computer equipment and storage medium
CN109618281B (en) High-speed rail cell identification method and device
CN110298454A (en) Checking method, device, computer equipment and the storage medium of operation image
CN110891286A (en) Data flow control method and device, computer equipment and storage medium
CN112367397A (en) Monitoring and early warning method and system for field work, computer equipment and storage medium
CN110472947B (en) Abnormal object identification method and device
CN110598872A (en) Maintenance method, device and equipment of traffic system
CN115297437B (en) Positioning sign-in method, system, equipment and medium applied to positioning watch
CN111698645A (en) Position information acquisition method and device, computer equipment and storage medium
CN110826889A (en) Vehicle management method, device, computer equipment and storage medium
KR102615888B1 (en) Method of business characteristic of store

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant