CN110322578A - A kind of Work attendance method and device - Google Patents

A kind of Work attendance method and device Download PDF

Info

Publication number
CN110322578A
CN110322578A CN201910467215.7A CN201910467215A CN110322578A CN 110322578 A CN110322578 A CN 110322578A CN 201910467215 A CN201910467215 A CN 201910467215A CN 110322578 A CN110322578 A CN 110322578A
Authority
CN
China
Prior art keywords
time
terminal device
current location
server
moment
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.)
Granted
Application number
CN201910467215.7A
Other languages
Chinese (zh)
Other versions
CN110322578B (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.)
Shenzhen Thaxun Science And Technology Co Ltd
Original Assignee
Shenzhen Thaxun Science And Technology 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 Shenzhen Thaxun Science And Technology Co Ltd filed Critical Shenzhen Thaxun Science And Technology Co Ltd
Priority to CN201910467215.7A priority Critical patent/CN110322578B/en
Publication of CN110322578A publication Critical patent/CN110322578A/en
Application granted granted Critical
Publication of CN110322578B publication Critical patent/CN110322578B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/105Human resources
    • 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

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Human Resources & Organizations (AREA)
  • General Physics & Mathematics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • Operations Research (AREA)
  • Marketing (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Data Mining & Analysis (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Time Recorders, Dirve Recorders, Access Control (AREA)

Abstract

The embodiment of the invention discloses a kind of Work attendance method and devices, wherein, the described method includes: the first of the first user that receiving terminal apparatus was sent at the first moment checks card request, the first moment was located in the first time period before the initial time of preset operating time section;In the preset operating time section, by starting point of the second moment with T1 be measurement interval to terminal device send M acquisition request, acquisition request is used to obtain the current location of the terminal device, measurement interval in above-mentioned M acquisition request between every acquisition request adjacent twice is not exactly the same, M is the positive integer more than or equal to 2, and T1 is greater than zero;At the time of the M current location and terminal device that receiving terminal apparatus is sent obtain the M current location;Calculate the working hour of first user.The embodiment of the present invention realizes data transparency of checking card, and can obtain employee's more accurate working time in time.

Description

A kind of Work attendance method and device
Technical field
The present invention relates to computer technology and field of communication technology more particularly to a kind of Work attendance methods and device.
Background technique
The employee of the Existed in Labor Services Dispatching company of blue collar's industry is mainly hourly worker, needs the factory of labour defeated after recruiting employee It send, employee accredits in employing unit, and attendance data is not controlled by our company, can not carry out effective field management, send company The attendance data that employee cannot promptly and accurately be got, can not promptly and accurately calculate.Data of checking card are opaque to be not easy to employee Obtain check card record and verification working hour in time with Existed in Labor Services Dispatching company, and the prior art only passes through clock in and out and cannot obtain Take employee's accurate working time.
In conclusion the prior art is checked card, data are opaque, and cannot obtain employee's accurate working time in time.
Summary of the invention
The embodiment of the invention provides a kind of Work attendance method and device, data transparency of checking card is realized, and can obtain in time Take employee's more accurate working time.
In a first aspect, the embodiment of the invention provides a kind of Work attendance methods, method includes the following steps:
The first of the first user that server receiving terminal equipment was sent at the first moment is checked card request, and the first moment was located at In first time period before the initial time of preset operating time section;Server is in preset operating time section, when with second It is that measurement interval sends M acquisition request to terminal device that quarter, which be starting point with T1, and acquisition request is used to obtain working as terminal device Front position, in M acquisition request per acquisition request adjacent twice between measurement interval it is not exactly the same, M is just more than or equal to 2 Integer, T1 are greater than zero;The M current location and terminal device that server receiving terminal equipment is sent obtain above-mentioned M present bit At the time of setting;Server is checked card in request, the above-mentioned M current location of terminal device transmission and terminal device acquisition according to first The working hour of the first user is calculated at the time of stating M current location.
In the embodiment of the present invention, the first user that server receiving terminal equipment is sent before preset operating time section First check card request in preset operating time section, by starting point of the second moment with T1 be measurement interval to terminal device send M acquisition request, and it is different per the measurement interval of acquisition request twice.The M present bit that server receiving terminal equipment is sent It sets at the time of obtain above-mentioned M current location with terminal device, it is a according to the first above-mentioned M that request, terminal device are sent that checks card Current location and terminal device calculate the working hour of the first user at the time of obtaining above-mentioned M current location.Implement through the invention The suggested plans realization of example is checked card data transparency, and can obtain employee's more accurate working time in time.
Optionally, first check card request include first position and first moment of first user at the first moment;Server Receiving terminal apparatus after the request of checking card for the first user that the first moment sent, server in preset operating time section, It is before measurement interval sends M acquisition request to terminal device with T1 by starting point of the second moment, further includes: server obtains The preset range in the work at present place of the first user is obtained from background data base;Whether server judges first position pre- If in range and whether the first moment is in first time period;If first position is within a preset range and the first moment is In one period, then judging to check card, it is legal to request, and sends successful message of checking card to first terminal equipment.
Optionally, server is in preset operating time section, with T1 is measurement interval to terminal by starting point of the second moment Equipment sends M acquisition request, comprising: second moment of the server in preset operating time section sends above-mentioned M acquisition and ask The 1st acquisition request in asking;If the second position is within a preset range, server is that measurement interval is sent to terminal device with T1 Jth time acquisition request in M acquisition request, T1 are equal to T2* (1+t), and wherein t is greater than 0 less than a for what server generated at random Random number, the second position is -1 position of jth in the M current location that terminal device is sent, and j is positive integer greater than 1; If not within a preset range, server is that measurement interval sends above-mentioned jth time acquisition request to terminal device with T1 for the second position, T1 is equal to 0.5*T2* (1+t).
Optionally, server according to first check card request, terminal device send above-mentioned M current location and terminal device Before the working hour for calculating the first user at the time of obtaining above-mentioned M current location, further includes: server is asked in above-mentioned M times acquisition It is that measurement interval sends n times acquisition request to terminal device with T3 after the sending instant for the M times acquisition request asked;Clothes The acquisition time of N number of current location and N number of current location that business device receiving terminal apparatus is sent;Server receiving terminal equipment exists The second of the first user that the third moment sends is checked card request, and server stops the above-mentioned acquisition request of transmission, and the third moment is located at In second time period after the cut-off time of preset operating time section.
Optionally, server according to first check card request, terminal device send above-mentioned M current location and terminal device The working hour of the first user is calculated at the time of obtaining above-mentioned M current location, comprising: if first check card request it is illegal, by Three periods were considered as working hour absent from duty, and the starting point of third period is the starting point of preset time period, and the terminal of third period is pre- If the starting point and terminal device of period obtain intermediate time at the time of the 1st position in above-mentioned M current location;On if It states the 1st position not within a preset range, then the 4th period was considered as working hour absent from duty, when the starting point of the 4th period is third Between section terminal, the terminal of the 4th period be at the time of terminal device obtains above-mentioned 1st position and obtain above-mentioned M it is current Intermediate time at the time of the 2nd position in position;If i-th of position in above-mentioned M current location be not in preset range It is interior, then the 5th period was considered as working hour absent from duty, i is the positive integer greater than 1 and less than M, and the starting point of the 5th period is terminal When centre at the time of at the time of equipment obtains above-mentioned i-th of position and obtaining (i-1)-th position in above-mentioned M current location It carves, the terminal of the 5th period is at the time of terminal device obtains above-mentioned i-th of position and to obtain in above-mentioned M current location Intermediate time at the time of i+1 position;If the m-th position in above-mentioned M current location within a preset range, is not incited somebody to action 6th period was considered as working hour absent from duty, and the starting point of the 6th period is at the time of terminal device obtains above-mentioned m-th position and to obtain Intermediate time at the time of M-1 position in above-mentioned M current location is taken, the terminal of the 6th period obtains for terminal device At the time of taking above-mentioned m-th position and the intermediate time of the terminal of preset time period;It is deducted from preset operating time section absent from duty Working hour obtains the working hour of the first user.
Second aspect, the embodiment of the invention provides a kind of Work attendance methods, method includes the following steps:
In the first moment first checking card request of sending the first user to server, the first moment was located at presets terminal device In first time period before the initial time of working time section, first, which checks card, requests the work that the first user is calculated for server When;Terminal device receives server in preset operating time section, with T1 is measurement interval to terminal by starting point of the second moment The M acquisition request that equipment is sent, acquisition request are used to obtain the current location of terminal device, in above-mentioned M acquisition request often Measurement interval twice between adjacent acquisition request is not exactly the same, and M is the positive integer more than or equal to 2, and T1 is greater than zero;Terminal device At the time of sending the M current location and the terminal device above-mentioned M current location of acquisition of terminal device to server, above-mentioned M Current location and terminal device calculate the working hour of the first user for server at the time of obtaining above-mentioned M current location.
In the embodiment of the present invention, terminal device sends the first of the first user in the forward direction server of preset operating time section It checks card request, and receives server in preset operating time section, with T1 be the M for measuring interval and sending by starting point of the second moment Secondary acquisition request, acquisition request are used to obtain the current location of terminal device, and different per the measurement interval of acquisition request twice; At the time of terminal device sends M current location of terminal device and obtains M current location to server, M current location With the working hour for calculating the first user at the time of obtaining M current location for server.It is suggested plans through the embodiment of the present invention Realization is checked card data transparency, and can obtain employee's more accurate working time in time.
The third aspect, the embodiment of the invention also provides a kind of Work attendance device, which is able to achieve above-mentioned first aspect institute The beneficial effect that the Work attendance method of description has.Wherein, the function of the device can be by hardware realization, can also be by hard Part executes corresponding software realization.Hardware or software include at least one module corresponding with above-mentioned function.
Optionally, which includes the first receiving unit, the first transmission unit and processing unit.
First receiving unit, the first of the first user sent for receiving terminal apparatus at the first moment are checked card request, First moment was located in the first time period before the initial time of preset operating time section;
First transmission unit, in preset operating time section, by starting point of the second moment with T1 be measurement interval to Terminal device sends M acquisition request, and acquisition request is for obtaining the current location of terminal device, in above-mentioned M acquisition request Measurement interval between per acquisition request adjacent twice is not exactly the same, and M is the positive integer more than or equal to 2, and T1 is greater than zero;
First receiving unit, the M current location and terminal device for being also used to receiving terminal apparatus transmission obtain M above-mentioned At the time of current location;
Processing unit, for according to first check card request, terminal device send above-mentioned M current location and terminal device The working hour of the first user is calculated at the time of obtaining above-mentioned M current location.
Optionally, first check card request include first position and first moment of first user at the first moment;First connects Unit receiving terminal apparatus is received after the request of checking card for the first user that the first moment sent, the first transmission unit is in default work Make in the period, by starting point of the second moment with T1 be measurement interval to terminal device send M acquisition request before, the dress It sets further include: first acquisition unit and judging unit.
First acquisition unit, the preset range in the work at present place for obtaining the first user from background data base;
Judging unit, for judge first position whether within a preset range and the first moment whether at the first time In section, if first position is within a preset range and the first moment is in first time period, judgement check card request it is legal.
First transmission unit, if being also used to first position within a preset range and the first moment is in first time period, Successful message of checking card is sent to first terminal equipment.
Optionally, the first transmission unit is specifically used for: the second moment in preset operating time section, which sends above-mentioned M times, to be obtained Take the 1st acquisition request in request;It is that measurement interval sends M to terminal device with T1 if the second position is within a preset range Jth in secondary acquisition request time acquisition request, T1 are equal to T2* (1+t), and wherein t be being greater than of generating at random 0 to be less than the random of a Number, the second position are -1 positions of jth in the M current location that terminal device is sent, and j is the positive integer greater than 1;If second Position is not that measurement interval sends above-mentioned jth time acquisition request to terminal device with T1, T1 is equal to 0.5* within a preset range T2*(1+t)。
Optionally, processing unit according to first check card request, terminal device send above-mentioned M current location and terminal set Before the working hour for calculating the first user at the time of standby acquisition above-mentioned M current location, transmission unit is also used to obtain at above-mentioned M times It is that measurement interval sends n times acquisition request to terminal device with T3 after the sending instant of the M times acquisition request in request; First receiving unit is also used to N number of current location of receiving terminal apparatus transmission and the acquisition time of N number of current location;First connects It receives unit and is also used to the second of the first user that receiving terminal apparatus was sent at the third moment and check card request, the third moment is positioned in advance If in the second time period after the cut-off time of working time section, transmission unit stopped sending above-mentioned acquisition after the third moment Request.
Optionally, processing unit is specifically used for: if first checks card and request illegal, the third period being considered as work absent from duty When, the starting point of third period is the starting point of preset time period, and the terminal of third period is starting point and the end of preset time period End equipment obtains intermediate time at the time of the 1st position in above-mentioned M current location;If above-mentioned 1st position be not pre- If in range, then the 4th period was considered as working hour absent from duty, the starting point of the 4th period is the terminal of third period, when the 4th Between the terminal of section be at the time of terminal device obtains above-mentioned 1st position and to obtain the 2nd position in above-mentioned M current location At the time of intermediate time;If i-th of position in above-mentioned M current location is not within a preset range, by the 5th period It is considered as working hour absent from duty, i is the positive integer greater than 1 and less than M, and the starting point of the 5th period is that terminal device obtains above-mentioned i-th Intermediate time at the time of at the time of position and obtaining (i-1)-th position in above-mentioned M current location, the end of the 5th period At the time of at the time of point obtains above-mentioned i-th of position for terminal device with the i+1 position in above-mentioned M current location is obtained Intermediate time;If the m-th position in above-mentioned M current location within a preset range, the 6th period was not considered as scarce Diligent working hour, at the time of the starting point of the 6th period the is terminal device acquisition above-mentioned m-th position and above-mentioned M current location of acquisition In M-1 position at the time of intermediate time, the terminal of the 6th period is that terminal device obtains above-mentioned m-th position The intermediate time of the terminal of moment and preset time period;Working hour absent from duty is deducted from preset operating time section, obtains the first user Working hour.
Fourth aspect, the embodiment of the invention also provides a kind of Work attendance device, which is able to achieve above-mentioned second aspect institute The beneficial effect that the Work attendance method of description has.Wherein, the function of the device can be by hardware realization, can also be by hard Part executes corresponding software realization.Hardware or software include at least one module corresponding with above-mentioned function.
Optionally, which includes the second transmission unit and the second receiving unit.
Second transmission unit, first for sending the first user to server at the first moment checks card request, when first It carves in the first time period being located at before the initial time of preset operating time section, the first request of checking card for server calculates the The working hour of one user.
Second receiving unit is with T1 using the second moment as starting point for receiving server in preset operating time section The M acquisition request that measurement interval is sent, acquisition request are used to obtain the current location of Work attendance device, in M acquisition request often Measurement interval twice between adjacent acquisition request is not exactly the same, and M is the positive integer more than or equal to 2, and T1 is greater than zero.
Second transmission unit is also used to send M current location of Work attendance device to server and Work attendance device obtains At the time of stating M current location, for taking at the time of above-mentioned M current location and Work attendance device obtain above-mentioned M current location Business device calculates the working hour of the first user.
Optionally, after the second receiving unit receives a times acquisition request in above-mentioned M acquisition request, second is sent Before unit sends a-th of position in above-mentioned M current location to server, above-mentioned apparatus further include: acquiring unit.It obtains Unit for obtaining the third place of Work attendance device, and records at the time of obtain the third place, and the third place is above-mentioned M A-th of position in current location, a are the positive integer less than or equal to M.
Optionally, the second transmission unit sends the above-mentioned M current location of terminal device to server and terminal device obtains After at the time of taking above-mentioned M current location, the second transmission unit is also used to send the first user to server at the third moment Second check card request, the third moment is located in the second time period after the cut-off time of preset operating time section.
5th aspect, the embodiment of the invention also provides a kind of server, which is able to achieve above-mentioned first aspect and examines The beneficial effect that diligent method has.Wherein, the function of the server can also be executed by hardware realization by hardware Corresponding software realization.The hardware or software include at least one module corresponding with above-mentioned function.The server includes Memory, processor and transceiver, memory are used to store the computer program for supporting server to execute the above method, the meter Calculation machine program includes program instruction, and processor is used to carry out control management, transceiver to the movement of server according to program instruction For supporting the communication of server Yu other communication equipments.
6th aspect, the embodiment of the invention also provides a kind of terminal, which is able to achieve above-mentioned second aspect attendance side The beneficial effect that method has.Wherein, the function of the terminal can also be executed corresponding by hardware realization by hardware Software realization.The hardware or software include at least one module corresponding with above-mentioned function.The terminal includes memory, place Device and transceiver are managed, memory is used to store the computer program for supporting terminal to execute the above method, the computer program packet Program instruction is included, processor is used to carry out control management to the movement of terminal according to program instruction, and transceiver is for supporting terminal With the communication of other communication equipments.
7th aspect, the embodiment of the present invention provide a kind of computer readable storage medium, are stored on readable storage medium storing program for executing Instruction, when it runs on a processor, so that processor executes the Work attendance method of above-mentioned first aspect description.
Eighth aspect, the embodiment of the present invention provide a kind of computer readable storage medium, are stored on readable storage medium storing program for executing Instruction, when it runs on a processor, so that processor executes the Work attendance method of above-mentioned second aspect description.
9th aspect, the embodiment of the invention provides a kind of computer program products comprising instruction, when it is in processor When upper operation, so that processor executes the Work attendance method of above-mentioned first aspect description.
Tenth aspect, the embodiment of the invention provides a kind of computer program products comprising instruction, when it is in processor When upper operation, so that processor executes the Work attendance method of above-mentioned second aspect description.
Detailed description of the invention
The drawings to be used in the description of the embodiments or prior art will be briefly described below.
Fig. 1 is a kind of system architecture schematic diagram of communication system provided in an embodiment of the present invention;
Fig. 2 is a kind of structural schematic diagram of server provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of terminal device provided in an embodiment of the present invention;
Fig. 4 is a kind of flow diagram of Work attendance method provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of Work attendance device provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of another Work attendance device provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention is described.It answers Work as understanding, when use in this specification and in the appended claims, term " includes " and "comprising" indicate described feature, Entirety, step, operation, the presence of element and/or component, but one or more of the other feature, entirety, step, behaviour is not precluded The presence or addition of work, element, component and/or its set.In addition, term " first ", " second " and " third " etc. are for area Not different objects, and be not intended to describe specific sequence.
It should be noted that the term used in embodiments of the present invention is only merely for the mesh of description specific embodiment , it is not intended to limit the invention." the one of the embodiment of the present invention and singular used in the attached claims Kind ", " described " and "the" are also intended to including most forms, unless the context clearly indicates other meaning.It is also understood that this Term "and/or" used herein refers to and includes one or more associated any or all possible group for listing project It closes.
Referring to Figure 1, be the present embodiments relate to a kind of communication system 100 configuration diagram, the communication system Including terminal device 101 and server 102.Wherein terminal device 101 and server 102 pass through the phase intercommunication of radio open technology Letter.Terminal device 101, which can be, has the function of intelligence computation, and the network equipment of communication interaction can be carried out with other equipment.This The terminal device 101 referred in inventive embodiments may be, for example, mobile phone, tablet computer, laptop, palm PC, movement mutually Networked devices or other mobile terminals.The Time Attendance Device that terminal device 101 and other embodiments of the invention refer to is same equipment. The communication between each equipment in communication system 100 can be based on any wired and wireless network, including but not limited to because of spy Net, wide area network, Metropolitan Area Network (MAN), local area network, Virtual Private Network (Virtual Private Network, VPN), wireless communication networks Network etc..
Fig. 2 is referred to, Fig. 2 is a kind of hardware structural diagram of server 200 provided in an embodiment of the present invention.Server 200 include: memory 201, transceiver 202 and the processor 203 coupled with the memory 201 and transceiver 202.Memory 201 for storing instruction, and for executing instruction, transceiver 202 is used under the control of processor 203 and terminal processor 203 Equipment is communicated.When processor 203 can be according to instruction execution Work attendance method when executing instruction.
Wherein, processor 203 can be central processing unit (English: central processing unit, referred to as: CPU), general processor, digital signal processor (English: digital signal processor, referred to as: DSP), dedicated collection At circuit (English: application-specific integrated circuit, abbreviation: ASIC), field-programmable gate array Column (English: field programmable gate array, referred to as: FPGA) or other programmable logic device, transistor Logical device, hardware component or any combination thereof.It, which may be implemented or executes, combines disclosure of the embodiment of the present invention to be retouched The various illustrative logic blocks stated, module and circuit.Processor be also possible to realize computing function combination, such as comprising One or more microprocessors combination, DSP and the combination of microprocessor etc..Transceiver 202 can be communication interface, transmitting-receiving electricity Road etc., wherein communication interface is to be referred to as, and may include one or more interfaces, such as connecing between server and terminal device Mouthful.
Optionally, server 200 can also include bus 204.Wherein, memory 201, transceiver 202 and processor 203 can be connected with each other by bus 204;Bus 204 can be Peripheral Component Interconnect standard (English: peripheral Component interconnect, referred to as: PCI) bus or expanding the industrial standard structure (English: extended industry Standard architecture, referred to as: EISA) bus etc..Bus 204 can be divided into address bus, data/address bus, control Bus etc..Only to be indicated with a thick line in Fig. 2 convenient for indicating, it is not intended that an only bus or a type of total Line.
Other than memory 201 shown in Fig. 2, transceiver 202, processor 203 and above-mentioned bus 204, embodiment Server 200 where middle device can also include other hardware generally according to the actual functional capability of the server, no longer superfluous to this It states.
Fig. 3 is referred to, Fig. 3 is a kind of hardware structural diagram of terminal device 300 provided in an embodiment of the present invention, terminal Equipment 300 includes: memory 301, transceiver 302 and the processor 303 coupled with the memory 301 and transceiver 302.It deposits Reservoir 301 includes program instruction for storing computer program, the computer program, and processor 303 is for executing memory The program instruction of 301 storages, transceiver 302 under the control of processor 303 with other equipment for being communicated.Work as processor 303 can be according to instruction execution Work attendance method when executing instruction.
Wherein, processor 303 can be central processing unit (English: central processing unit, referred to as: CPU), general processor, digital signal processor (English: digital signal processor, referred to as: DSP), dedicated collection At circuit (English: application-specific integrated circuit, abbreviation: ASIC), field-programmable gate array Column (English: field programmable gate array, referred to as: FPGA) or other programmable logic device, transistor Logical device, hardware component or any combination thereof.It, which may be implemented or executes, combines disclosure of the embodiment of the present invention to be retouched The various illustrative logic blocks stated, module and circuit.Processor be also possible to realize computing function combination, such as comprising One or more microprocessors combination, DSP and the combination of microprocessor etc..Transceiver 302 can be communication interface, transmitting-receiving electricity Road etc., wherein communication interface is to be referred to as, and may include one or more interfaces, such as connecing between terminal device and server Mouthful.
Optionally, terminal device 300 can also include bus 304.Wherein, memory 301, transceiver 302 and processing Device 303 can be connected with each other by bus 304;Bus 304 can be Peripheral Component Interconnect standard (English: peripheral Component interconnect, referred to as: PCI) bus or expanding the industrial standard structure (English: extended industry Standard architecture, referred to as: EISA) bus etc..Bus 304 can be divided into address bus, data/address bus, control Bus etc..Only to be indicated with a thick line in Fig. 3 convenient for indicating, it is not intended that an only bus or a type of total Line.
Other than memory 301 shown in Fig. 3, transceiver 302, processor 303 and above-mentioned bus 304, embodiment Middle terminal device 300 can also include other hardware, repeat no more to this generally according to the actual functional capability of the terminal device.
Under above-mentioned running environment, the embodiment of the invention provides Work attendance methods as shown in Figure 4.Referring to Fig. 4, described Work attendance method includes:
S401, terminal device are in the first moment first checking card request of sending the first user to server, server reception The first of the first user that terminal device was sent at the first moment is checked card request, and the first moment was located at rising for preset operating time section In first time period before moment beginning.
Optionally, preset time period can be a continuous period, be also possible to multiple discontinuous sub- times What section was constituted.
For example, preset time period is 9 points of the morning periods to 6 pm.
For example, preset time period is made of the following first sub- period and the second sub- period.Wherein, the first sub- period For 9 points of the morning to 12 points of the period of the morning, the second sub- period was the period of 2 pm to 6 pm.
It is appreciated that the first user needs to carry out in the first time period before the initial time of preset operating time section It checks card.For example, first time period is 3 hours before the initial time of preset operating time section.
Optionally, terminal device sends the first of the first user to server at the first moment and checks card before request, above-mentioned Method further include: terminal device sends logging request to server at the first moment, and what server receiving terminal equipment was sent steps on Record request, logging request includes the account and password of first user;Server judges the account of above-mentioned first user and close Whether whether correct and the first user is within the valid contract phase for code;If the account and password of above-mentioned first user are no correct, And first user whether within the valid contract phase, then judge that the logging request is legal, and to the terminal device send permit Perhaps login response.
S402, server in preset operating time section, by starting point of the second moment with T1 be measurement interval set to terminal Preparation send M acquisition request, and acquisition request is used to obtain the current location of terminal device, often adjacent twice in M acquisition request Measurement interval between acquisition request is not exactly the same, and M is the positive integer more than or equal to 2, and T1 is greater than zero.
Optionally, first check card request include first position and first moment of first user at the first moment;Server Receiving terminal apparatus is checked card after request the first of the first user that the first moment sent, and server authentication first is checked card request Legitimacy, can specifically include following steps: server is obtained obtains the work at present of the first user from background data base The preset range in place;Server judge first position whether within a preset range and the first moment whether at the first time In section;If first position is within a preset range and the first moment is in first time period, judgement check card request it is legal, and to the The transmission of one terminal device is checked card successful message, if first position is not within a preset range and/or the first moment is not at first Between in section, then judgement, which is checked card, requests illegal, and checks card failure news to the transmission of first terminal equipment.
It is appreciated that the first request of checking card can also be considered as working and check card request.
For example, first time period be preset operating time section initial time before 3 hours, preset time period by Above-mentioned first sub- period and the second sub- period are constituted.Certain company clerk starts from parent company to a point public affairs from March 1st, 2019 Department goes on business, while the work at present place of the said firm office worker will be changed to by parent company in background data base from March 1st, 2019 Above-mentioned branch company is stored with the preset range of above-mentioned parent company and the preset range of branch company in background data base.In March, 2019 Before No. 18 a.m. half, which passes through the attendance application program on input account and password login mobile phone, and in 8 a.m. Half sends request of checking card of going to work to attendance server by above-mentioned attendance application program, which includes mobile phone in 8 thirty The position of the mobile phone obtained and transmission working are checked card at the time of request.Attendance server receives above-mentioned working and checks card request Afterwards, the preset range of branch company is obtained from background data base;Whether attendance server judges the position of above-mentioned mobile phone in a point public affairs In the preset range of department, and sends working and check card at the time of request whether in 3 hours before 9 points of the morning;8 a.m. half In 3 hours before 9 points of the morning, if the position of above-mentioned mobile phone, in the preset range of branch company, attendance server judges It is legal that working is checked card, and sends successful message of checking card to the mobile phone, if the position of above-mentioned mobile phone is not in the default model of branch company In enclosing, then attendance server judgement working, which is checked card, requests illegal, and checks card failure news to mobile phone transmission.
Optionally, server is in preset operating time section, with T1 is measurement interval to terminal by starting point of the second moment Equipment sends M acquisition request, comprising: second moment of the server in preset operating time section sends above-mentioned M acquisition and ask The 1st acquisition request in asking;If the second position is within a preset range, server is that measurement interval is sent to terminal device with T1 Jth time acquisition request in M acquisition request, T1 are equal to T2* (1+t), and wherein t is greater than 0 less than a for what server generated at random Random number, the second position is -1 position of jth in the M current location that terminal device is sent, and j is positive integer greater than 1; If not within a preset range, server is that measurement interval sends above-mentioned jth time acquisition request to terminal device with T1 for the second position, T1 is equal to 0.5*T2* (1+t).
It is appreciated that above-mentioned preset range refers to the default model in the work at present place for the first user that server obtains It encloses.
It is appreciated that obtaining the present bit of the terminal device after the first time acquisition request of terminal device reception server It sets, and sends the position to server.Server receive terminal device transmission current location after, judge the position whether In preset range.If the position is within a preset range, the sending instant and first time acquisition request of second of acquisition request are sent out It send and is divided into T2* (1+t) between the moment;If the position is not within a preset range, the sending instant of second of acquisition request and the 0.5*T2* (1+t) is divided between acquisition request sending instant.It is appreciated that detecting the first user not in current work After making the preset range in place, reduce measurement interval, in order to more accurately obtain the running time of the first user.
For example, a is to be equal to 10min (minute) equal to 1, T2, if the second position is within a preset range, above-mentioned jth time is obtained The value range for taking the measurement interval T1 of request is [10,20] min, if the second position is not within a preset range, above-mentioned jth time The value range of the measurement interval T1 of acquisition request is [5,10] min.
S403, terminal device to server send M current location and terminal device obtain above-mentioned M current location when It carves, at the time of the M current location and terminal device that server receiving terminal equipment is sent obtain above-mentioned M current location.
It is appreciated that terminal device is sent on j-th of position and terminal device acquisition in M current location to server Before at the time of stating j-th of position, terminal device obtains the current location of this terminal device, i.e., above-mentioned j-th of position, and records At the time of obtaining the current location of this terminal device.
S404, server according to first check card request, terminal device send above-mentioned M current location and terminal device obtain The working hour of the first user is calculated at the time of taking above-mentioned M current location.
Optionally, server according to first check card request, terminal device send above-mentioned M current location and terminal device The working hour of the first user is calculated at the time of obtaining above-mentioned M current location, comprising: if first check card request it is illegal, by Three periods were considered as working hour absent from duty, and the starting point of third period is the starting point of preset time period, and the terminal of third period is pre- If the starting point and terminal device of period obtain intermediate time at the time of the 1st position in above-mentioned M current location;On if It states the 1st position not within a preset range, then the 4th period was considered as working hour absent from duty, when the starting point of the 4th period is third Between section terminal, the terminal of the 4th period be at the time of terminal device obtains above-mentioned 1st position and obtain above-mentioned M it is current Intermediate time at the time of the 2nd position in position;If i-th of position in above-mentioned M current location be not in preset range It is interior, then the 5th period was considered as working hour absent from duty, i is the positive integer greater than 1 and less than M, and the starting point of the 5th period is terminal When centre at the time of at the time of equipment obtains above-mentioned i-th of position and obtaining (i-1)-th position in above-mentioned M current location It carves, the terminal of the 5th period is at the time of terminal device obtains above-mentioned i-th of position and to obtain in above-mentioned M current location Intermediate time at the time of i+1 position;If the m-th position in above-mentioned M current location within a preset range, is not incited somebody to action 6th period was considered as working hour absent from duty, and the starting point of the 6th period is at the time of terminal device obtains above-mentioned m-th position and to obtain Intermediate time at the time of M-1 position in above-mentioned M current location is taken, the terminal of the 6th period obtains for terminal device At the time of taking above-mentioned m-th position and the intermediate time of the terminal of preset time period;It is deducted from preset operating time section absent from duty Working hour obtains the working hour of the first user.
Optionally, server according to first check card request, terminal device send above-mentioned M current location and terminal device Before the working hour for calculating the first user at the time of obtaining above-mentioned M current location, further includes: server is asked in above-mentioned M times acquisition Second time period after the sending instant for the M times acquisition request asked, after the cut-off time of preset operating time section It is interior, it is that measurement interval sends acquisition request to terminal device with T3;The current location and upper that server receiving terminal equipment is sent State the acquisition time of current location;The second of the first user that server receiving terminal equipment was sent at the third moment, which is checked card, asks It asks, server stops sending above-mentioned acquisition request, and the third moment is located at second after the cut-off time of preset operating time section In period.
It is appreciated that terminal device has sent N number of current location to the network equipment in second time period.
Optionally, second check card request include the second position and third moment of first user at the third moment;Server The second of the first user that receiving terminal apparatus is sent is checked card after request, and server authentication second is checked card the legitimacy of request, Can specifically include following steps: within a preset range and whether the third moment is whether server judge the second position In two periods;If the second position is within a preset range and the third moment is in first time period, judging to check card, it is legal to request, And check card successful message to the transmission of first terminal equipment, if the second position is not within a preset range and/or the third moment does not exist In second time period, then judging to check card, it is illegal to request, and sends failure news of checking card to first terminal equipment.
It is appreciated that the first request of checking card can also be considered as to come off duty and check card request.
Optionally, in the second time period after the cut-off time of preset operating time section, with T3 be measurement interval to Terminal device sends n times acquisition request, comprising: if the third place is within a preset range, server is in second time period transmission The jth time acquisition request in n times acquisition request is stated, T3 is equal to T2* (1+t), and wherein t is generated small greater than 0 at random for server In the random number of b, the third place is sent after terminal device receives -1 acquisition request of jth in above-mentioned n times acquisition request Current location, j are the positive integer greater than 1;If not within a preset range, server is to measure interval to terminal with T3 to the third place Equipment sends above-mentioned jth time acquisition request, and T3 is equal to 0.5*T2* (1+t).
It should be noted that if the m-th current location in above-mentioned M current location is within a preset range, then above-mentioned M T2* (1+ is divided between the transmission of the 1st acquisition request in the M times acquisition request and above-mentioned N number of acquisition request in acquisition request T), if m-th current location in above-mentioned M current location not within a preset range, the M in above-mentioned M acquisition request 0.5*T2* (1+t) is divided between the transmission of the 1st acquisition request in secondary acquisition request and above-mentioned N number of acquisition request.
Optionally, it is obtained according in second time period, N number of current location and N number of current location and each current location Take the time and second check card request calculate the first user overtime, specifically includes the following steps: if above-mentioned N number of present bit 7th period not within a preset range, was then considered as working hour absent from duty by the 1st position in setting, and the starting point of the 7th period is the The starting point of two periods, the terminal of the 7th period are at the time of terminal device obtains above-mentioned 1st position and to obtain N number of current Intermediate time at the time of the 2nd position in position;If i-th of position in above-mentioned N number of current location be not in preset range It is interior, then the 8th period was considered as working hour absent from duty, i is the positive integer greater than 1 and less than N, and the starting point of the 8th period is terminal Intermediate time at the time of at the time of equipment obtains above-mentioned i-th of position and obtaining (i-1)-th position in N number of current location, The terminal of 8th period be at the time of terminal device obtains above-mentioned i-th of position and obtain in above-mentioned N number of current location i-th Intermediate time at the time of+1 position;If the n-th position in above-mentioned N number of current location is not within a preset range, by Nine periods were considered as working hour absent from duty, and the starting point of the 9th period is at the time of terminal device obtains above-mentioned n-th position and acquisition Intermediate time at the time of N-1 position in above-mentioned N number of current location, the terminal of the 9th period are that terminal device obtains At the time of above-mentioned n-th position and the intermediate time at third moment;If second checks card request it is illegal, by the tenth period regard For working hour absent from duty, the starting point of the tenth period is the third moment, and the terminal of the tenth period is the terminal of second time period;From Working hour absent from duty is deducted in two periods, obtains the overtime of the first user.
In the embodiment of the present invention, the first user that server receiving terminal equipment is sent before preset operating time section First check card request in preset operating time section, by starting point of the second moment with T1 be measurement interval to terminal device send M acquisition request, and it is different per the measurement interval of acquisition request twice.The M present bit that server receiving terminal equipment is sent At the time of setting with terminal device acquisition above-mentioned M current location.Server according to first check card request, terminal device send it is upper It states M current location and terminal device obtains above-mentioned M current location at the time of calculates working hour of the first user.Through the invention The suggested plans realization of embodiment is checked card data transparency, and can obtain employee's more accurate working time in time.
The embodiment of the invention also provides a kind of Work attendance device, which, which is able to achieve Work attendance method shown in Fig. 4, is had Beneficial effect.Wherein, the function of the device it is real can also to execute corresponding software by hardware realization by hardware It is existing.The hardware or software include at least one module corresponding with above-mentioned function.
Referring to Fig. 5, Fig. 5 is a kind of structural block diagram of Work attendance device 500 provided in an embodiment of the present invention, described device packet It includes: the first receiving unit 501, the first transmission unit 502 and processing unit 503.
First receiving unit 501, the first of the first user sent for receiving terminal apparatus at the first moment, which is checked card, asks It asks, the first moment was located in the first time period before the initial time of preset operating time section;
First transmission unit 502 with T1 is measurement interval by starting point of the second moment in preset operating time section M acquisition request is sent to terminal device, acquisition request is used to obtain the current location of terminal device, above-mentioned M acquisition request In it is not exactly the same per the measurement interval between acquisition request adjacent twice, M is the positive integer more than or equal to 2, and T1 is greater than zero;
First receiving unit 501, the M current location and terminal device for being also used to receiving terminal apparatus transmission obtain above-mentioned At the time of M current location;
Processing unit 503, for according to first check card request, terminal device send above-mentioned M current location and terminal Equipment calculates the working hour of the first user at the time of obtaining above-mentioned M current location.
Optionally, first check card request include first position and first moment of first user at the first moment;First connects 501 receiving terminal apparatus of unit is received after the request of checking card for the first user that the first moment sent, the first transmission unit 502 exists In preset operating time section, by starting point of the second moment with T1 be measurement interval to terminal device send M acquisition request before, Described device further include: first acquisition unit and judging unit.
First acquisition unit, the preset range in the work at present place for obtaining the first user from background data base;
Judging unit, for judge first position whether within a preset range and the first moment whether at the first time In section, if first position is within a preset range and the first moment is in first time period, judgement check card request it is legal.
First transmission unit 502, if being also used to first position within a preset range and the first moment is in first time period, Then successful message of checking card is sent to first terminal equipment.
Optionally, the first transmission unit 502 is specifically used for: the second moment in preset operating time section sends above-mentioned M The 1st acquisition request in secondary acquisition request;It is that measurement interval is sent out to terminal device with T1 if the second position is within a preset range Send jth in M acquisition request time acquisition request, T1 is equal to T2* (1+t), wherein t be generate at random be greater than 0 be less than a with Machine number, the second position are -1 positions of jth in the M current location that terminal device is sent, and j is the positive integer greater than 1;If the Two positions are not that measurement interval sends above-mentioned jth time acquisition request to terminal device with T1, T1 is equal to 0.5* within a preset range T2*(1+t)。
Optionally, processing unit 503 is checked card request, the above-mentioned M current location of terminal device transmission and end according to first End equipment calculates the working hour of the first user at the time of obtaining above-mentioned M current location before, transmission unit is also used to M times above-mentioned It is that measurement interval is asked to terminal device transmission n times acquisition with T3 after the sending instant of the M times acquisition request in acquisition request It asks;First receiving unit 501 is also used to N number of current location of receiving terminal apparatus transmission and the acquisition time of N number of current location; What the first receiving unit 501 was also used to the first user that receiving terminal apparatus was sent at the third moment second checks card request, third Moment is located in the second time period after the cut-off time of preset operating time section, and transmission unit stops hair after the third moment It serves and states acquisition request.
Optionally, processing unit 503 is specifically used for: if first checks card and request illegal, the third period being considered as scarce Diligent working hour, the starting point of third period are the starting point of preset time period, and the terminal of third period is the starting point of preset time period Intermediate time at the time of the 1st position in above-mentioned M current location is obtained with terminal device;If above-mentioned 1st position is not Within a preset range, then the 4th period being considered as working hour absent from duty, the starting point of the 4th period is the terminal of third period, the The terminal of four periods is at the time of terminal device obtains above-mentioned 1st position and to obtain the 2nd in above-mentioned M current location Intermediate time at the time of position;If i-th of position in above-mentioned M current location is not within a preset range, when by the 5th Between section be considered as working hour absent from duty, i is greater than 1 and to be less than the positive integer of M, and the starting point of the 5th period is that terminal device obtains above-mentioned the Intermediate time at the time of at the time of i position and obtaining (i-1)-th position in above-mentioned M current location, the 5th period Terminal be at the time of terminal device obtains above-mentioned i-th of position and to obtain the i+1 position in above-mentioned M current location The intermediate time at moment;If the m-th position in above-mentioned M current location within a preset range, the 6th period was not regarded For working hour absent from duty, at the time of the starting point of the 6th period is terminal device acquisition above-mentioned m-th position and above-mentioned M of acquisition current Intermediate time at the time of M-1 position in position, the terminal of the 6th period are that terminal device obtains above-mentioned m-th position At the time of setting and the intermediate time of the terminal of preset time period;Working hour absent from duty is deducted from preset operating time section, obtains first The working hour of user.
The embodiment of the invention also provides a kind of Work attendance device, which, which is able to achieve Work attendance method shown in Fig. 4, is had Beneficial effect.Wherein, the function of the device it is real can also to execute corresponding software by hardware realization by hardware It is existing.The hardware or software include at least one module corresponding with above-mentioned function.
Referring to Fig. 6, Fig. 6 is a kind of structural block diagram of Work attendance device 600 provided in an embodiment of the present invention, described device packet It includes: the second transmission unit 601 and the second receiving unit 602.
Second transmission unit 601, first for sending the first user to server at the first moment checks card request, and first Moment is located in the first time period before the initial time of preset operating time section, and the first request of checking card is calculated for server The working hour of first user.
Second receiving unit 602 is starting point with T1 using the second moment for receiving server in preset operating time section For the M acquisition request that measurement interval is sent, acquisition request is for obtaining the current location of Work attendance device, in M acquisition request Measurement interval between per acquisition request adjacent twice is not exactly the same, and M is the positive integer more than or equal to 2, and T1 is greater than zero.
Second transmission unit 601 is also used to send M current location of Work attendance device to server and Work attendance device obtains At the time of above-mentioned M current location, above-mentioned M current location and Work attendance device are used at the time of obtaining above-mentioned M current location Server calculates the working hour of the first user.
Optionally, after the second receiving unit 602 receives a times acquisition request in above-mentioned M acquisition request, the second hair Before sending unit 601 to send a-th of position in above-mentioned M current location to server, above-mentioned apparatus further include: obtain single Member.Acquiring unit, for obtaining the third place of Work attendance device, and record obtain the third place at the time of, the third place is A-th of position in above-mentioned M current location, a are the positive integer less than or equal to M.
Optionally, the second transmission unit 601 sends above-mentioned M current location and the terminal device of terminal device to server After at the time of obtaining above-mentioned M current location, the second transmission unit 601 is also used to send the to server at the third moment The second of one user is checked card request, and the third moment is located in the second time period after the cut-off time of preset operating time section.
The step of method in conjunction with described in disclosure of the embodiment of the present invention or algorithm, can be come real in a manner of hardware It is existing, it is also possible to execute the mode of software instruction by processor to realize.Software instruction can be made of corresponding software module, Software module can be stored on random access memory (English: random access memory, referred to as: RAM), flash memory, Read-only memory (English: read only memory, referred to as: ROM), Erasable Programmable Read Only Memory EPROM (English: Erasable programmable rom, referred to as: EPROM), Electrically Erasable Programmable Read-Only Memory (English: Electrically eprom, referred to as: EEPROM), register, hard disk, mobile hard disk, CD-ROM (CD-ROM) or ability In the storage medium of any other form known to domain.A kind of illustrative storage medium is coupled to processor, to make to handle Device can be from the read information, and information can be written to the storage medium.Certainly, storage medium is also possible to handle The component part of device.Pocessor and storage media can be located in ASIC.In addition, the ASIC can be located in the network equipment.When So, pocessor and storage media can also be used as discrete assembly and be present in the network equipment.
Those skilled in the art it will be appreciated that in said one or multiple examples, retouched by the embodiment of the present invention The function of stating can be realized with hardware, software, firmware or their any combination.It when implemented in software, can be by this A little functions storages in computer-readable medium or as on computer-readable medium one or more instructions or code into Row transmission.Computer-readable medium includes computer storage media and communication media, and wherein communication media includes convenient for from one Any medium of the place to another place transmission computer program.Storage medium can be general or specialized computer and can deposit Any usable medium taken.
Above-described specific embodiment carries out the purpose of the embodiment of the present invention, technical scheme and beneficial effects It is further described, it should be understood that the foregoing is merely the specific embodiments of the embodiment of the present invention, and does not have to In limit the embodiment of the present invention protection scope, it is all on the basis of the technical solution of the embodiment of the present invention, done it is any Modification, equivalent replacement, improvement etc. should all include within the protection scope of the embodiment of the present invention.

Claims (10)

1. a kind of Work attendance method, which is characterized in that the described method includes:
The first of the first user that server receiving terminal equipment was sent at the first moment is checked card request, and first moment is located at In first time period before the initial time of preset operating time section;
The server with T1 is measurement interval to the terminal by starting point of the second moment in the preset operating time section Equipment sends M acquisition request, and the acquisition request is used to obtain the current location of the terminal device, and the M acquisition is asked Measurement interval between asking per acquisition request adjacent twice is not exactly the same, and M is the positive integer more than or equal to 2, and T1 is greater than zero;
The server receives the M current location that the terminal device is sent and the terminal device obtains described M currently At the time of position;
The server is checked card request, the M current location of terminal device transmission and the end according to described first End equipment calculates the working hour of first user at the time of obtaining the M current location.
2. the method according to claim 1, wherein the described first request of checking card includes first user the The first position at one moment and first moment;The first user that the server receiving terminal equipment is sent at the first moment Request of checking card after, the server is in the preset operating time section, by starting point of the second moment using T1 as between measurement Before sending M acquisition request to the terminal device, the method also includes:
The server obtains the preset range that the work at present place of first user is obtained from background data base;
Whether the server judges the first position in the preset range and whether first moment is described In first time period;
If the first position is in the preset range and first moment is in the first time period, described in judgement Checking card, it is legal to request, and sends successful message of checking card to the first terminal equipment.
3. method according to claim 1 or 2, which is characterized in that the server in the preset operating time section, By starting point of the second moment with T1 be measurement interval to the terminal device send M acquisition request, comprising:
Second moment of the server in the preset operating time section sends the 1st in the M acquisition request Secondary acquisition request;
If the second position is within a preset range, the server is that measurement interval is sent described M times to the terminal device with T1 Jth time acquisition request in acquisition request, T1 are equal to T2* (1+t), and wherein t is less than for what the server generated at random greater than 0 The random number of a, the second position are -1 positions of jth in the M current location that the terminal device is sent, and j is greater than 1 Positive integer;
If not within a preset range, the server sends institute to the terminal device for measurement interval with T1 for the second position Jth time acquisition request is stated, T1 is equal to 0.5*T2* (1+t).
4. method according to any one of claims 1 to 3, which is characterized in that the server is checked card according to described first At the time of the M current location and the terminal device that request, the terminal device are sent obtain the M current location Before the working hour for calculating first user, the method also includes:
The server is measurement interval with T3 after the sending instant of the M times acquisition request in the M acquisition request N times acquisition request is sent to the terminal device;
The server receives the acquisition time of N number of current location that the terminal device is sent and N number of current location;
What the server received first user that the terminal device was sent at the third moment second checks card request, described Server stops sending the acquisition request, and the third moment was located at after the cut-off time of the preset operating time section In second time period.
5. method according to any one of claims 1 to 4, which is characterized in that the server is checked card according to described first At the time of the M current location and the terminal device that request, the terminal device are sent obtain the M current location Calculate the working hour of first user, comprising:
It requests illegal if described first checks card, the third period is considered as working hour absent from duty, the starting point of the third period For the starting point of the preset time period, the terminal of the third period is that the starting point of the preset time period and the terminal are set Intermediate time at the time of standby the 1st position obtained in the M current location;
If the 1st position is considered as working hour absent from duty, the 4th time not in the preset range, by the 4th period The starting point of section is the terminal of the third period, and the terminal of the 4th period is that the terminal device obtains the described 1st Intermediate time at the time of at the time of a position and obtaining the 2nd position in the M current location;
If i-th of position in the M current location is considered as work absent from duty not in the preset range, by the 5th period When, i is the positive integer greater than 1 and less than M, and the starting point of the 5th period is that the terminal device obtains described i-th Intermediate time at the time of at the time of setting and obtaining (i-1)-th position in the M current location, the 5th period Terminal is at the time of the terminal device obtains i-th of position and to obtain the i+1 position in the M current location At the time of intermediate time;
If the m-th position in the M current location is considered as work absent from duty not in the preset range, by the 6th period When, at the time of the starting point of the 6th period is the terminal device acquisition m-th position and described M of acquisition is current Intermediate time at the time of M-1 position in position, the terminal of the 6th period are that the terminal device obtains institute At the time of stating m-th position and the intermediate time of the terminal of the preset time period;
Working hour absent from duty is deducted from the preset operating time section, obtains the working hour of first user.
6. a kind of Work attendance method, which is characterized in that the described method includes:
In the first moment first checking card request of sending the first user to server, first moment is located at presets terminal device In first time period before the initial time of working time section, described first checks card request for described in server calculating The working hour of first user;
The terminal device receives the server in the preset operating time section, by starting point of the second moment using T1 as survey The M acquisition request that amount interval is sent to the terminal device, the acquisition request is for obtaining the current of the terminal device Position, in the M acquisition request per acquisition request adjacent twice between measurement interval it is not exactly the same, M is more than or equal to 2 Positive integer, T1 are greater than zero;
The terminal device sends M current location of the terminal device to the server and the terminal device obtains institute At the time of stating M current location, the M current location and the terminal device are used at the time of obtaining the M current location The working hour of first user is calculated in the server.
7. according to the method described in claim 6, it is characterized in that, the method also includes:
The terminal device receives obtain a time in the M acquisition request and to ask after, the terminal device is to the service Before device sends a-th of position in the M current location of the terminal device, the third position of the terminal device is obtained At the time of setting, and record the acquisition the third place, the third place is a-th of position, and a is less than or equal to M's Positive integer.
8. method according to claim 6 or 7, which is characterized in that the terminal device is to described in server transmission After at the time of M current location of terminal device and the terminal device acquisition M current location, the method is also wrapped It includes:
The terminal device sends the second of first user to the server at the third moment and checks card request, the third Moment is located in the second time period after the cut-off time of the preset operating time section.
9. a kind of server, which is characterized in that the server includes:
First receiving unit, the first of the first user sent for receiving terminal apparatus at the first moment are checked card request, described First moment was located in the first time period before the initial time of preset operating time section;
First transmission unit, in the preset operating time section, by starting point of the second moment with T1 be measurement interval to The terminal device sends M acquisition request, and the acquisition request is used to obtain the current location of the terminal device, the M Measurement interval in secondary acquisition request between every acquisition request adjacent twice is not exactly the same, and M is the positive integer more than or equal to 2, T1 Greater than zero;
First receiving unit is also used to receive M current location and terminal device acquisition institute that the terminal device is sent At the time of stating M current location;
Processing unit, for checking card the M current location and described that request, the terminal device send according to described first Terminal device calculates the working hour of first user at the time of obtaining the M current location.
10. a kind of terminal device, which is characterized in that the terminal device includes:
Second transmission unit, first for sending the first user to server at the first moment checks card request, when described first It carves in the first time period being located at before the initial time of preset operating time section, described first checks card request for the service Device calculates the working hour of first user;
Second receiving unit, for receiving the server in the preset operating time section, using the second moment as starting point with T1 is the M acquisition request that measurement interval is sent, and the acquisition request is used to obtain the current location of the terminal device, described Measurement interval in M acquisition request between every acquisition request adjacent twice is not exactly the same, and M is the positive integer more than or equal to 2, T1 Greater than zero;
Second transmission unit is also used to send M current location of the terminal device to the server and the terminal is set At the time of the standby acquisition M current location, the M current location and the terminal device send the M current location At the time of working hour of first user is calculated for the server.
CN201910467215.7A 2019-05-30 2019-05-30 Attendance checking method and device Active CN110322578B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910467215.7A CN110322578B (en) 2019-05-30 2019-05-30 Attendance checking method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910467215.7A CN110322578B (en) 2019-05-30 2019-05-30 Attendance checking method and device

Publications (2)

Publication Number Publication Date
CN110322578A true CN110322578A (en) 2019-10-11
CN110322578B CN110322578B (en) 2021-07-09

Family

ID=68119227

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910467215.7A Active CN110322578B (en) 2019-05-30 2019-05-30 Attendance checking method and device

Country Status (1)

Country Link
CN (1) CN110322578B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111681330A (en) * 2020-04-16 2020-09-18 福建星网物联信息系统有限公司 Noninductive attendance checking method and equipment
CN111784113A (en) * 2020-06-08 2020-10-16 珠海格力电器股份有限公司 Method and device for determining work efficiency of outworker
CN112669480A (en) * 2020-12-08 2021-04-16 安徽鸿程光电有限公司 Data processing method and device, terminal equipment and storage medium
CN113783772A (en) * 2021-09-18 2021-12-10 上海分木信息科技有限公司 Method and equipment for setting card punching position
CN113781684A (en) * 2021-09-08 2021-12-10 无锡艾布斯智能科技发展有限公司 Intelligent roll call linkage method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106780816A (en) * 2017-01-16 2017-05-31 北京恒华伟业科技股份有限公司 A kind of work attendance punch card method and device
CN108428099A (en) * 2017-11-15 2018-08-21 平安科技(深圳)有限公司 Field personnel staff attendance management-control method, application server and computer readable storage medium
CN108711199A (en) * 2018-05-10 2018-10-26 成都精位科技有限公司 Automatic punch card method, device, electronic equipment and readable storage medium storing program for executing
CN108769210A (en) * 2018-05-31 2018-11-06 苏州达家迎信息技术有限公司 Method, apparatus, terminal, server and the storage medium of attendance tracking
CN108882157A (en) * 2018-04-28 2018-11-23 廖强 A kind of Work attendance method of construction personnel
JP6430052B1 (en) * 2018-04-09 2018-11-28 株式会社三菱電機ビジネスシステム Time management system and time management method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106780816A (en) * 2017-01-16 2017-05-31 北京恒华伟业科技股份有限公司 A kind of work attendance punch card method and device
CN108428099A (en) * 2017-11-15 2018-08-21 平安科技(深圳)有限公司 Field personnel staff attendance management-control method, application server and computer readable storage medium
JP6430052B1 (en) * 2018-04-09 2018-11-28 株式会社三菱電機ビジネスシステム Time management system and time management method
CN108882157A (en) * 2018-04-28 2018-11-23 廖强 A kind of Work attendance method of construction personnel
CN108711199A (en) * 2018-05-10 2018-10-26 成都精位科技有限公司 Automatic punch card method, device, electronic equipment and readable storage medium storing program for executing
CN108769210A (en) * 2018-05-31 2018-11-06 苏州达家迎信息技术有限公司 Method, apparatus, terminal, server and the storage medium of attendance tracking

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111681330A (en) * 2020-04-16 2020-09-18 福建星网物联信息系统有限公司 Noninductive attendance checking method and equipment
CN111681330B (en) * 2020-04-16 2021-10-22 福建星网物联信息系统有限公司 Noninductive attendance checking method and equipment
CN111784113A (en) * 2020-06-08 2020-10-16 珠海格力电器股份有限公司 Method and device for determining work efficiency of outworker
CN112669480A (en) * 2020-12-08 2021-04-16 安徽鸿程光电有限公司 Data processing method and device, terminal equipment and storage medium
CN112669480B (en) * 2020-12-08 2023-04-18 安徽鸿程光电有限公司 Data processing method and device, terminal equipment and storage medium
CN113781684A (en) * 2021-09-08 2021-12-10 无锡艾布斯智能科技发展有限公司 Intelligent roll call linkage method and system
CN113781684B (en) * 2021-09-08 2023-01-31 无锡艾布斯智能科技发展有限公司 Intelligent roll call linkage method and system
CN113783772A (en) * 2021-09-18 2021-12-10 上海分木信息科技有限公司 Method and equipment for setting card punching position

Also Published As

Publication number Publication date
CN110322578B (en) 2021-07-09

Similar Documents

Publication Publication Date Title
CN110322578A (en) A kind of Work attendance method and device
JP6353117B2 (en) Communication processes and systems related to monitoring and controlling resource consumption
CN111341024A (en) Charging pile sharing method, device, equipment and storage medium based on block chain
CN109636285A (en) Reminding method, device, equipment and storage medium are sent in express delivery with charge free
CN106780816A (en) A kind of work attendance punch card method and device
CN106101258A (en) A kind of interface interchange method of mixed cloud, Apparatus and system
CN106797537A (en) Region charge control service
EP2905931B1 (en) Method and apparatus for determining data flow rate of service access port
CN103347259A (en) Flow prompt method and system
CN109190038A (en) A kind of web-site recommendations method, terminal device and medium based on service appointment
CN105634849B (en) A kind of data traffic system pays the dial testing method and device of business
CN109358880A (en) A kind of universal gateway configuration method and device
CN109117608A (en) A kind of data processing method, device and relevant device
CN107180090A (en) Reading punch card method, electronic equipment and computer-readable storage medium based on e-book
CN101399713B (en) Method for measuring proximity of network node
CN110598977A (en) Shared automobile scheduling method and related device
CN109783126A (en) A kind of distribution Global ID's generation method and its device
CN112489236A (en) Attendance data processing method and device, server and storage medium
CN108933859A (en) Information display method, device, electronic equipment and storage medium on electronic equipment
CN110335013A (en) A kind of payroll administration method and device
CN109978380A (en) A kind of workflow processing method and device
CN109934365A (en) It makes house calls method, apparatus, storage medium and electronic equipment
CN109598360A (en) Business handles on line method, apparatus and calculates readable storage medium storing program for executing
CN105259434B (en) The method and apparatus of electrical equipment fault acquisition of information
KR20190094091A (en) Method for providing a car rental service

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