CN109034732A - Attendance data treating method and apparatus, equipment, computer program and storage medium - Google Patents
Attendance data treating method and apparatus, equipment, computer program and storage medium Download PDFInfo
- Publication number
- CN109034732A CN109034732A CN201810719365.8A CN201810719365A CN109034732A CN 109034732 A CN109034732 A CN 109034732A CN 201810719365 A CN201810719365 A CN 201810719365A CN 109034732 A CN109034732 A CN 109034732A
- Authority
- CN
- China
- Prior art keywords
- attendance data
- time
- attendance
- data
- terminal
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Administration; Management
- G06Q10/10—Office automation; Time management
- G06Q10/105—Human resources
Abstract
The embodiment of the invention discloses a kind of attendance data treating method and apparatus, equipment, computer program and storage mediums, wherein method includes: to obtain the initial time of attendance preset period of time;Obtain the storage time for the attendance data that terminal has cached;According to the relationship between the storage time and the initial time, corresponding attendance data is obtained from attendance data server;The attendance data that the terminal has cached is updated with the corresponding attendance data, and the storage time is updated with current time.The embodiment of the present invention may be implemented to check attendance data under off-line state.
Description
Technical field
The present invention relates to computer technology, especially a kind of attendance data treating method and apparatus, electronic equipment, computer
Program and storage medium.
Background technique
Enterprise increases work efficiency, serious enterprise's discipline makes employee's voluntary observance work to safeguard normal order of work
Make the time and labour discipline sets up system of attendance mostly.With the development of science and technology the method for attendance is also diversified, it is presently commercially available
Attendance recorder mainly have contactless card attendance recorder, fingerprint recognition for attendance checking machine, face recognition work-checking machine etc., by by attendance recorder and attendance
Management system combines, and can carry out the processing such as counting to attendance data.
User is when checking previous attendance data, it is also necessary to connect attendance data server and check online, be inconvenient.
Summary of the invention
The embodiment of the present invention provides a kind of attendance data processing technique scheme.
According to the one aspect of the embodiment of the present disclosure, a kind of attendance data processing method is provided, comprising:
Obtain the initial time of attendance preset period of time;
Obtain the storage time for the attendance data that terminal has cached;
According to the relationship between the storage time and the initial time, corresponding examine is obtained from attendance data server
Diligent data;
The attendance data that the terminal has cached is updated with the corresponding attendance data, and described in updating with current time
Storage time.
Optionally, in above method embodiment of the present invention, it is described according to the storage time and the initial time it
Between relationship, obtain corresponding attendance data from attendance data server, comprising:
The initial time and the corresponding initial time stamp of the storage time and storage time stamp are obtained respectively;Compare institute
State the size of storage time stamp and the initial time stamp;
According to the comparison result, corresponding attendance data is obtained from the attendance data server.
Optionally, described according to the comparison result in any of the above-described embodiment of the method for the present invention, from the attendance number
Corresponding attendance data is obtained according to server, comprising:
It is greater than the initial time stamp in response to storage time stamp, obtains from the attendance data server from described
First attendance data of the storage time to current time;
It is described that the attendance data that the terminal has cached is updated with the corresponding attendance data, comprising:
Read the second attendance data from the initial time to the storage time that the terminal has cached;
The attendance data of current time is formed with first attendance data and second attendance data, and is worked as with described
The attendance data of preceding time updates the attendance data that the terminal has cached.
Optionally, described according to the comparison result in any of the above-described embodiment of the method for the present invention, from the attendance number
Corresponding attendance data is obtained according to server, further includes:
It is less than the initial time stamp in response to storage time stamp, obtains from the attendance data server from described
Attendance data of the initial time to current time;
It is described that the attendance data that the terminal has cached is updated with the corresponding attendance data, further includes:
The attendance data that the terminal has cached is replaced with the attendance data from the initial time to current time.
Optionally, described to obtain depositing for attendance data that terminal has cached in any of the above-described embodiment of the method for the present invention
Before the storage time, further includes:
Detect whether the terminal has been cached with attendance data;
If the terminal has been cached with attendance data, the storage time for the attendance data that the terminal has cached is obtained;
If the terminal is uncached attendance data, obtained according to the initial time from the attendance data server
From the initial time to the attendance data of current time;
Attendance data from the initial time to current time is cached in the terminal, and current time is cached in
The terminal, as the storage time.
Optionally, in any of the above-described embodiment of the method for the present invention, it is described updated with the corresponding attendance data described in
The attendance data that terminal has cached, and after updating the storage time with current time, further includes:
Using the corresponding attendance data as the attendance data of the attendance preset period of time, and show the attendance
Data.
Optionally, in any of the above-described embodiment of the method for the present invention, when the starting for obtaining attendance preset period of time
Between, comprising:
In response to the request instruction of the attendance data for checking attendance preset period of time received, it is pre- to obtain the attendance
If the initial time of time cycle.
Optionally, in any of the above-described embodiment of the method for the present invention, the attendance data includes: text data;
It is described that the attendance data that the terminal has cached is updated with the corresponding attendance data, comprising:
The text data is encrypted, corresponding encryption data is obtained;
The attendance data that the terminal has cached is updated with the encryption data.
Optionally, in any of the above-described embodiment of the method for the present invention, the attendance data further include: image data;
It is described that the attendance data that the terminal has cached is updated with the corresponding attendance data, further includes:
The attendance data that the terminal has cached is updated with the image data.
According to the other side of the embodiment of the present disclosure, a kind of attendance data processing unit is provided, comprising:
Time acquisition unit, for obtaining the initial time of attendance preset period of time;And obtain what terminal had cached
The storage time of attendance data;
Data capture unit, for according to the relationship between the storage time and the initial time, from attendance data
Server obtains corresponding attendance data;
Data updating unit, for updating the attendance data that the terminal has cached with the corresponding attendance data, and
The storage time is updated with current time.
Optionally, in above-mentioned apparatus embodiment of the present invention, the data capture unit, for obtaining the starting respectively
Time and the corresponding initial time stamp of the storage time and storage time stamp;When comparing the storage time stamp with the starting
Between the size stabbed;And according to the comparison result, corresponding attendance data is obtained from the attendance data server.
Optionally, in any of the above-described Installation practice of the present invention, the data capture unit, for being deposited in response to described
It stores up timestamp and is greater than the initial time stamp, obtain from the attendance data server from the storage time to current time
First attendance data;And read the second attendance number from the initial time to the storage time that the terminal has cached
According to;
The data updating unit, for forming current time with first attendance data and second attendance data
Attendance data, and the attendance data that the terminal has cached is updated with the attendance data of the current time.
Optionally, in any of the above-described Installation practice of the present invention, the data capture unit is also used in response to described
Storage time stamp is less than the initial time stamp, obtains from the attendance data server from the initial time to current time
Attendance data;
The data updating unit is also used to replace the end with the attendance data from the initial time to current time
Hold the attendance data cached.
Optionally, in any of the above-described Installation practice of the present invention, further includes:
Data detecting unit, for detecting whether the terminal has been cached with attendance data;
The time acquisition unit, for the testing result according to the data detecting unit, in response to the terminal
It is cached with attendance data, then obtains the storage time for the attendance data that the terminal has cached;
The data capture unit is also used to the testing result according to the data detecting unit, in response to the terminal
It is uncached to have attendance data, then it is obtained from the attendance data server from the initial time to working as according to the initial time
The attendance data of preceding time;
The data updating unit is also used to for the attendance data from the initial time to current time being cached in described
Terminal, and current time is cached in the terminal, as the storage time.
Optionally, in any of the above-described Installation practice of the present invention, further includes:
Data display unit, for using the corresponding attendance data as the attendance number of the attendance preset period of time
According to, and show the attendance data.
Optionally, in any of the above-described Installation practice of the present invention, the time acquisition unit, in response to receiving
The attendance data for checking attendance preset period of time request instruction, when obtaining the starting of the attendance preset period of time
Between.
Optionally, in any of the above-described Installation practice of the present invention, the attendance data includes: text data;
The data updating unit obtains corresponding encryption data for the text data to be encrypted;With
And the attendance data that the terminal has cached is updated with the encryption data.
Optionally, in any of the above-described Installation practice of the present invention, the attendance data further include: image data;
The data updating unit is also used to update the attendance data that the terminal has cached with the image data.
Another aspect according to an embodiment of the present invention, a kind of electronic equipment provided, including any of the above-described embodiment institute
The device stated.
Another aspect according to an embodiment of the present invention, a kind of electronic equipment provided, comprising:
Memory, for storing executable instruction;And
Processor, for being communicated with the memory to execute the executable instruction to complete any of the above-described embodiment
The method.
Another aspect according to an embodiment of the present invention, a kind of computer program provided, including computer-readable code,
When the computer-readable code is run in equipment, the processor in the equipment is executed for realizing any of the above-described implementation
The instruction of example the method.
Another aspect according to an embodiment of the present invention, a kind of computer program product provided, for storing computer
Readable instruction, described instruction is performed so that computer executes method described in any of the above-described embodiment.
In an optional embodiment, the computer program product is specially computer storage medium, at another
In optional embodiment, the computer program product is specially software product, such as SDK etc..
Attendance data treating method and apparatus, electronic equipment, computer program based on the above embodiment of the present invention offer
And storage medium, by the initial time of acquisition attendance preset period of time, and obtain the attendance data that terminal has cached
Storage time obtains corresponding attendance data from attendance data server according to the relationship between storage time and initial time,
With the attendance data that corresponding attendance data more new terminal has cached, and the time is updated storage with current time, using online
When attendance data is checked under state every time, the attendance number that has cached of attendance data more new terminal that is obtained from attendance data server
According to, a certain amount of attendance data of terminal buffers can be made, so as to using terminal buffers attendance data, meet in offline shape
The demand that previous attendance data is checked under state.
Below by drawings and examples, technical scheme of the present invention will be described in further detail.
Detailed description of the invention
The attached drawing for constituting part of specification describes the embodiment of the present invention, and together with description for explaining
The principle of the present invention.
The present invention can be more clearly understood according to following detailed description referring to attached drawing, in which:
Fig. 1 is the flow chart of the attendance data processing method of some embodiments of the invention;
Fig. 2 is the flow chart of the attendance data processing method of other embodiments of the invention;
Fig. 3 is the flow chart of the attendance data processing method of yet other embodiments of the invention;
Fig. 4 is the flow chart of the attendance data processing method of still other embodiments of the present invention;
Fig. 5 is the structural schematic diagram of the attendance data processing unit of some embodiments of the invention;
Fig. 6 is the structural schematic diagram of one embodiment of electronic equipment of the embodiment of the present invention.
Specific embodiment
Carry out the various exemplary embodiments of detailed description of the present invention now with reference to attached drawing.It should also be noted that unless in addition having
Body explanation, the unlimited system of component and the positioned opposite of step, numerical expression and the numerical value otherwise illustrated in these embodiments is originally
The range of invention.
Simultaneously, it should be appreciated that for ease of description, the size of various pieces shown in attached drawing is not according to reality
Proportionate relationship draw.
Be to the description only actually of at least one exemplary embodiment below it is illustrative, never as to the present invention
And its application or any restrictions used.
Technology, method and apparatus known to person of ordinary skill in the relevant may be not discussed in detail, but suitable
In the case of, the technology, method and apparatus should be considered as part of specification.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, then in subsequent attached drawing does not need that it is further discussed.
The embodiment of the present invention can be applied to computer system/server, can be with numerous other general or specialized calculating
System environments or configuration operate together.Suitable for be used together with computer system/server well-known computing system, ring
The example of border and/or configuration includes but is not limited to: personal computer system, server computer system, thin client, thick client
Machine, hand-held or laptop devices, microprocessor-based system, set-top box, programmable consumer electronics, NetPC Network PC,
Little type Ji calculates machine Xi Tong ﹑ large computer system and the distributed cloud computing technology environment including above-mentioned any system, etc..
Computer system/server can be in computer system executable instruction (such as journey executed by computer system
Sequence module) general context under describe.In general, program module may include routine, program, target program, component, logic, number
According to structure etc., they execute specific task or realize specific abstract data type.Computer system/server can be with
Implement in distributed cloud computing environment, in distributed cloud computing environment, task is long-range by what is be linked through a communication network
Manage what equipment executed.In distributed cloud computing environment, it includes the Local or Remote meter for storing equipment that program module, which can be located at,
It calculates in system storage medium.
Fig. 1 is the flow chart of the attendance data processing method of some embodiments of the invention, and this method can be executed by terminal,
Such as: terminal can be attendance recorder, be also possible to be built-in with the intelligent terminal etc. of attendance APP, wherein attendance recorder can be induction
One of card attendance recorder, fingerprint recognition for attendance checking machine, face recognition work-checking machine etc. are a variety of, and intelligent terminal can be intelligent movable
One of terminal, vehicle intelligent terminal, smart television, wearable device etc. are a variety of, kind of the embodiment of the present invention to terminal
Class is not construed as limiting.
As shown in Figure 1, this method comprises:
102, obtain the initial time of attendance preset period of time.
In an optional example, attendance preset period of time can be the preset time cycle, and attendance is default
The initial time of time cycle can be first day of preset time cycle, such as: the preset time cycle is
When week, it is of that month, when season or current year, corresponding initial time be when first day week, it is first day of that month, when first day season or
First day current year of person.
In another optional example, attendance preset period of time can be the determination in a manner of specifying initial time
Time cycle, the initial time of attendance preset period of time can be specified initial time, such as: specified initial time
For when first day week, it is first day of that month, when first day season or first day current year, then determined by the time cycle be when week,
It is of that month, when season perhaps current year corresponding initial time be when first day week, it is first day of that month, when first day season or work as
First day year.The present embodiment is not construed as limiting the method for determination of preset period of time and preset period of time.
104, obtain the storage time for the attendance data that terminal has cached.
In an optional example, storage time can be terminal the last time caching and/or update attendance data
Time, to be used as the storage time of mark attendance data.Such as: storage time stamp is when some day or one week upper in week
Some day.
106, according to the relationship between storage time and initial time, corresponding attendance number is obtained from attendance data server
According to.
Optionally, the storage time for the attendance data that the initial time of attendance preset period of time and terminal have cached can be with
Using the form of timestamp, then initial time and the corresponding initial time stamp of storage time and storage time can be obtained respectively
Stamp is obtained from attendance data server and is corresponded to according to comparison result by comparing the size of storage time stamp and initial time stamp
Attendance data.Wherein, timestamp is a character string, and for uniquely identifying the time at certain a moment, it, which can pass through, is
Function of uniting obtains.
Optionally, attendance data server can be the server for being stored with whole attendance datas, or will be whole
Attendance data is stored in database profession, the server connecting with database, such as: attendance data server is and database service
The application server of device connection, the present embodiment are not construed as limiting the form of server.
108, with the attendance data that corresponding attendance data more new terminal has cached, and when being updated storage with current time
Between.
Optionally, attendance data, which can be, is cached in the local data base of terminal, is also possible to be cached in the sheet of terminal
In ground file system, mode of the embodiment of the present invention to attendance data in terminal buffers is not construed as limiting.Wherein, being compared to will examine
Attendance data is cached in the local file system of terminal by diligent data buffer storage in the local data base of terminal, can be to avoid
Database processing bring time loss obtains more efficient data read-write efficiency.
The attendance data processing method provided based on the above embodiment, by obtain attendance preset period of time starting when
Between, and the storage time of attendance data that terminal has cached is obtained, according to the relationship between storage time and initial time, from
Attendance data server obtains corresponding attendance data, with the attendance data that corresponding attendance data more new terminal has cached, and
The time being updated storage with current time, when using checking attendance data every time under presence, being obtained from attendance data server
The attendance data that the attendance data taken more new terminal has cached can make a certain amount of attendance data of terminal buffers, so as to
Using the attendance data of terminal buffers, meet under off-line state to previous attendance data the needs of checking.The present embodiment can be with
Storage suitable for the simple data of a small amount of and data structure.
In some embodiments, step 102 obtains the initial time of attendance preset period of time, comprising: in response to receiving
To the attendance data for checking attendance preset period of time request instruction, obtain attendance preset period of time initial time.
Such as: user can trigger the request instruction for checking the attendance data of attendance preset period of time by attendance interactive interface, eventually
End determines the initial time of attendance preset period of time according to attendance preset period of time.
In some embodiments, the storage for the attendance data that the initial time of attendance preset period of time and terminal have cached
Time can use the form of timestamp, then can obtain initial time and the corresponding initial time stamp of storage time respectively and deposit
Timestamp is stored up, by comparing storage time stamp and initial time stamp, determines the size of storage time stamp and initial time stamp, and root
According to comparison result, corresponding attendance data is obtained from attendance data server, has been cached with corresponding attendance data more new terminal
Attendance data.Below in conjunction with Fig. 2 and Fig. 3, detailed description stabs the comparison result with initial time stamp according to storage time, from
Attendance data server obtains the process for the attendance data that corresponding attendance data more new terminal has cached.
In some embodiments, as shown in Fig. 2, step 106 is according to the relationship between storage time and initial time, from examining
Diligent data server obtains corresponding attendance data and step 108 is examined with what corresponding attendance data more new terminal had cached
Diligent data, comprising:
202, initial time and the corresponding initial time stamp of storage time and storage time stamp are obtained respectively.
204, compare the size of storage time stamp and initial time stamp.
Optionally, since timestamp is a character string, in the size of relatively timestamp, timestamp can be passed through
Corresponding transfer function is converted to the corresponding time and is compared.
206, it is greater than initial time stamp in response to storage time stamp, obtains from attendance data server from storage time to working as
The first attendance data of preceding time.
Optionally, when storage time stamp is greater than initial time stamp, the attendance data for showing that terminal has cached be can be used as
Meet a part of attendance data of attendance preset period of time requirement, but there is still a need for meet attendance from the acquisition of attendance data server
Another part attendance data that preset period of time requires, this part of attendance that needs are obtained from attendance data server
Data can determine according to storage time and initial time and need the attendance data that obtains from attendance data server, be from depositing
First attendance data of the storage time to current time.
208, the second attendance data slave initial time to storage time that reading terminals have cached.
Optionally, this part of attendance data for meeting the requirement of attendance preset period of time cached for terminal, can
To determine the attendance data cached for needing to read from terminal according to storage time and initial time, be from initial time to
Second attendance data of storage time.
210, the attendance data of current time is formed, and with the first attendance data and the second attendance data with current time
The attendance data that attendance data more new terminal has cached.
Optionally, the first attendance data is being obtained from attendance data server, and is reading second cached from terminal and examines
After diligent data, the first attendance data and the second attendance data can be merged, composition meets the requirement of attendance preset period of time
The attendance data of current time, and the attendance data cached with the attendance data of current time more new terminal.
In further embodiments, as shown in figure 3, step 106 is according to the relationship between storage time and initial time, from
What the corresponding attendance data of attendance data server acquisition and step 108 had been cached with corresponding attendance data more new terminal
Attendance data, further includes:
302, initial time and the corresponding initial time stamp of storage time and storage time stamp are obtained respectively.
304, compare the size of storage time stamp and initial time stamp.
Optionally, since timestamp is a character string, in the size of relatively timestamp, timestamp can be passed through
Corresponding transfer function is converted to the corresponding time and is compared.
306, it is less than initial time stamp in response to storage time stamp, obtains from attendance data server from initial time to working as
The attendance data of preceding time.
Optionally, when storage time stamp is less than initial time stamp, show that the attendance data that terminal has cached is unsatisfactory for examining
The requirement of diligent preset period of time needs to obtain the attendance number for meeting attendance preset period of time and requiring from attendance data server
According to can determine according to initial time and need the attendance data that obtains from attendance data server, be from initial time to current
The attendance data of time.
308, the attendance data cached with the attendance data replacement terminal from initial time to current time.
It optionally, can after obtaining the attendance data for meeting the requirement of attendance preset period of time from attendance data server
Terminal is replaced completely with the attendance data for meeting the requirement of attendance preset period of time obtained from attendance data server to have cached
Attendance data.
Based on the method that above-mentioned two embodiment provides, when by checking attendance data, attendance number is checked according to the last time
According to when terminal buffers attendance data storage time stamp, need the attendance data that obtains from attendance data server to determine,
Can use the attendance data that terminal has cached, reduce the attendance data amount obtained from attendance data server, can to avoid from
Attendance data server repeat to obtain constant attendance data and caused by flow waste, save flow.Implement by the present invention
When the method for example is applied to mobile phone terminal, since user will not spend additional data flow substantially during checking attendance data
Amount, enhances the usage experience of user.
In some embodiments, as shown in figure 4, step 102 obtain attendance preset period of time initial time it
Afterwards, further includes:
402, whether detection terminal has been cached with attendance data.
If terminal has been cached with attendance data, step 404 is executed;Otherwise, if terminal is uncached attendance data, step is executed
Rapid 406.
404, obtain the storage time for the attendance data that terminal has cached.
It optionally, can be by obtaining the attendance number that cache of terminal when detecting that terminal has been cached with attendance data
According to storage time, judge determining whether attendance data that terminal has cached meets the requirement of attendance preset period of time,
The transmission of data is reduced with this.
406, the attendance data according to initial time from the acquisition of attendance data server from initial time to current time.
Optionally, it when detecting that terminal is uncached has attendance data, needs to obtain to meet from attendance data server and examine
The attendance data of the requirement of diligent preset period of time, the i.e. attendance data from initial time to current time.
408, the attendance data from initial time to current time is cached in terminal, and current time is cached in end
End, as storage time.
Optionally, after the attendance data for the requirement for meeting attendance preset period of time from the acquisition of attendance data server,
It needs the attendance data for obtaining the requirement for meeting attendance preset period of time from attendance data server being cached in terminal, so as to
In when checking attendance data later, reducing the transmission of data, while needing current time being cached in terminal, as into
The storage time of the whether available judgement of the attendance data that row terminal has cached.
Optionally, in some embodiments, in the attendance data cached with corresponding attendance data more new terminal, and with
It, can be with after current time updates storage timestamp:
Using corresponding attendance data as the attendance data of attendance preset period of time, the attendance data is shown, such as: it can
To show attendance data by the display screen of terminal.
In some embodiments, attendance data may include text data, such as: attendance data may include name, connection
It is the information such as mode, position, it, can be right in the attendance data that step 108 has been cached with corresponding attendance data more new terminal
Text data is encrypted, and obtains corresponding encryption data, the attendance number then cached with encryption data more new terminal
According to.By carrying out encryption storage to text data, it is ensured that it is related to the safety of the data of personal information in attendance data,
Make stored attendance data that can not learn information therein being stolen.
Optionally, attendance data can also include image data other than including text data, such as: attendance data removes
Include outside the information such as name, contact method, position, can also include human face photo, in step 108 with corresponding attendance data
When the attendance data that more new terminal has cached, text data can be encrypted, obtain corresponding encryption data, then
The attendance data cached with encryption data and image data more new terminal.Since the image data in attendance data is binary system
Data, therefore after being encrypted to the text data in attendance data, it can not be learnt wherein attendance data is stolen
Information, it is ensured that be related to the safety of the data of personal information in attendance data.
Fig. 5 be some embodiments of the invention attendance data processing unit structural schematic diagram, the device can be set in
Terminal, such as: terminal can be attendance recorder, be also possible to be built-in with the intelligent terminal etc. of attendance APP, wherein attendance recorder can be with
It is one of contactless card attendance recorder, fingerprint recognition for attendance checking machine, face recognition work-checking machine etc. or a variety of, intelligent terminal can be shifting
One of dynamic intelligent terminal, vehicle intelligent terminal, smart television, wearable device etc. are a variety of, and the embodiment of the present invention is to end
The type at end is not construed as limiting.
As shown in figure 5, the device includes: time acquisition unit 501, data capture unit 502 and data updating unit
503.Wherein,
Time acquisition unit 501, for obtaining the initial time of attendance preset period of time;And it obtains terminal and has cached
Attendance data storage time.
In an optional example, attendance preset period of time can be the preset time cycle, and attendance is default
The initial time of time cycle can be first day of preset time cycle, such as: the preset time cycle is
When week, it is of that month, when season or current year, corresponding initial time be when first day week, it is first day of that month, when first day season or
First day current year of person.
In another optional example, attendance preset period of time can be the determination in a manner of specifying initial time
Time cycle, the initial time of attendance preset period of time can be specified initial time, such as: specified initial time
For when first day week, it is first day of that month, when first day season or first day current year, then determined by the time cycle be when week,
It is of that month, when season perhaps current year corresponding initial time be when first day week, it is first day of that month, when first day season or work as
First day year.The present embodiment is not construed as limiting the method for determination of preset period of time and preset period of time.
In an optional example, storage time can be terminal the last time caching and/or update attendance data
Time, to be used as the storage time of mark attendance data.Such as: storage time stamp is when some day or one week upper in week
Some day.
Data capture unit 502, for according to the relationship between storage time and initial time, from attendance data server
Obtain corresponding attendance data.
Optionally, the storage time for the attendance data that the initial time of attendance preset period of time and terminal have cached can be with
Using the form of timestamp, data capture unit 502 can obtain initial time and the corresponding initial time of storage time respectively
Stamp and storage time stamp take according to comparison result from attendance data by comparing the size of storage time stamp and initial time stamp
Business device obtains corresponding attendance data.Wherein, timestamp is a character string, for uniquely identifying the time at certain a moment,
It can be obtained by system function.
Optionally, attendance data server can be the server for being stored with whole attendance datas, or will be whole
Attendance data is stored in database profession, the server connecting with database, such as: attendance data server is and database service
The application server of device connection, the present embodiment are not construed as limiting the form of server.
Data updating unit 503, the attendance data for having been cached with corresponding attendance data more new terminal, and with current
Time updates storage the time.
Optionally, attendance data, which can be, is cached in the local data base of terminal, is also possible to be cached in the sheet of terminal
In ground file system, mode of the embodiment of the present invention to attendance data in terminal buffers is not construed as limiting.Wherein, being compared to will examine
Attendance data is cached in the local file system of terminal by diligent data buffer storage in the local data base of terminal, can be to avoid
Database processing bring time loss obtains more efficient data read-write efficiency.
The attendance data processing unit provided based on the above embodiment, by obtain attendance preset period of time starting when
Between, and the storage time of attendance data that terminal has cached is obtained, according to the relationship between storage time and initial time, from
Attendance data server obtains corresponding attendance data, with the attendance data that corresponding attendance data more new terminal has cached, and
The time being updated storage with current time, when using checking attendance data every time under presence, being obtained from attendance data server
The attendance data that the attendance data taken more new terminal has cached can make a certain amount of attendance data of terminal buffers, so as to
Using the attendance data of terminal buffers, meet under off-line state to previous attendance data the needs of checking.The present embodiment can be with
Storage suitable for the simple data of a small amount of and data structure.
In some embodiments, time acquisition unit 501 is used to check attendance preset period of time in response to what is received
Attendance data request instruction, obtain attendance preset period of time initial time.Such as: user can pass through attendance interaction
The request instruction of the attendance data of attendance preset period of time is checked in interface triggering, and terminal is determined according to attendance preset period of time
The initial time of attendance preset period of time.
In some embodiments, the storage for the attendance data that the initial time of attendance preset period of time and terminal have cached
Time can use the form of timestamp, and data capture unit 502 is corresponding for acquisition initial time and storage time respectively
Initial time stamp and storage time stamp, by comparing storage time stamp and initial time stamp, when determining storage time stamp with starting
Between the size stabbed corresponding attendance data is obtained from attendance data server, with corresponding attendance data and according to comparison result
The attendance data that more new terminal has cached.
In some embodiments, data capture unit 502 for obtaining initial time and storage time corresponding respectively
Beginning timestamp and storage time stamp, compare the size of storage time stamp and initial time stamp, are greater than in response to storage time stamp
Beginning timestamp obtains the first attendance data and reading terminals from storage time to current time from attendance data server
The second attendance data slave initial time to storage time cached.Data updating unit 503 is used for the first attendance data
The attendance data of current time is formed with the second attendance data, and is examined with what the attendance data of current time more new terminal had cached
Diligent data.
In further embodiments, data capture unit 502 is corresponding for acquisition initial time and storage time respectively
Initial time stamp and storage time stamp, compare the size of storage time stamp and initial time stamp, are less than in response to storage time stamp
Initial time stamp obtains the attendance data from initial time to current time from attendance data server.Data updating unit 503
Attendance data for having been cached with the attendance data replacement terminal from initial time to current time.
In some embodiments, attendance data processing unit further include: data detecting unit, for whether to detect terminal
It is cached with attendance data.Time acquisition unit 501 is used for the testing result according to data detecting unit, has cached in response to terminal
There is attendance data, then obtains the storage time for the attendance data that terminal has cached.Data capture unit 502 is also used to according to data
The testing result of detection unit has attendance data in response to terminal is uncached, then according to initial time from attendance data server
Obtain the attendance data from initial time to current time.Data updating unit 503 be also used to by from initial time to it is current when
Between attendance data be cached in terminal, and current time is cached in terminal, as storage time.
Optionally, in some embodiments, in attendance data processing unit further include: data display unit, being used for will be right
Attendance data of the attendance data answered as attendance preset period of time shows the attendance data, such as: data display unit packet
Display screen is included, attendance data is shown by display screen.
In some embodiments, attendance data may include text data, such as: attendance data may include name, connection
It is the information such as mode, position, data updating unit 503 can be encrypted text data, obtain corresponding encryption number
According to the attendance data then cached with encryption data more new terminal.By carrying out encryption storage to text data, it is ensured that
It is related to the safety of the data of personal information in attendance data, learns stored attendance data can not being stolen
Information therein.
Optionally, attendance data can also include image data other than including text data, such as: attendance data removes
Include outside the information such as name, contact method, position, can also include human face photo, data updating unit 503 can be to text
Data are encrypted, and obtain corresponding encryption data, have then been cached with encryption data and image data more new terminal
Attendance data.Due to the image data in attendance data be binary data, to the text data in attendance data into
After row encryption, information therein can not be learnt attendance data is stolen, it is ensured that be related to individual in attendance data
The safety of the data of information.
The embodiment of the invention also provides a kind of electronic equipment, such as can be mobile terminal, personal computer (PC), put down
Plate computer, server etc..Below with reference to Fig. 6, it illustrates the terminal device or the services that are suitable for being used to realize the embodiment of the present application
The structural schematic diagram of the electronic equipment 600 of device: as shown in fig. 6, electronic equipment 600 includes one or more processors, communication unit
For example Deng, one or more of processors: one or more central processing unit (CPU) 601, and/or one or more figures
As processor (GPU) 613 etc., processor can according to the executable instruction being stored in read-only memory (ROM) 602 or from
Executable instruction that storage section 608 is loaded into random access storage device (RAM) 603 and execute various movements appropriate and place
Reason.Communication unit 612 may include but be not limited to network interface card, and the network interface card may include but be not limited to IB (Infiniband) network interface card, processing
Device can with communicate in read-only memory 602 and/or random access storage device 603 to execute executable instruction, by bus 604 with
Communication unit 612 is connected and communicates through communication unit 612 with other target devices, to complete provided by the embodiments of the present application any
The corresponding operation of item method, for example, obtaining the initial time of attendance preset period of time;Obtain the attendance data that terminal has cached
Storage time;According to the relationship between the storage time and the initial time, obtains and correspond to from attendance data server
Attendance data;The attendance data that the terminal has cached is updated with the corresponding attendance data, and is updated with current time
The storage time.
In addition, in RAM 603, various programs and data needed for being also stored with device operation.CPU601,ROM602
And RAM603 is connected with each other by bus 604.In the case where there is RAM603, ROM602 is optional module.RAM603 storage
Executable instruction, or executable instruction is written into ROM602 at runtime, executable instruction executes central processing unit 601
The corresponding operation of above-mentioned communication means.Input/output (I/O) interface 605 is also connected to bus 604.Communication unit 612 can integrate
Setting, may be set to be with multiple submodule (such as multiple IB network interface cards), and in bus link.
I/O interface 605 is connected to lower component: the importation 606 including keyboard, mouse etc.;It is penetrated including such as cathode
The output par, c 607 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 608 including hard disk etc.;
And the communications portion 609 of the network interface card including LAN card, modem etc..Communications portion 609 via such as because
The network of spy's net executes communication process.Driver 610 is also connected to I/O interface 605 as needed.Detachable media 611, such as
Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 610, in order to read from thereon
Computer program be mounted into storage section 608 as needed.
It should be noted that framework as shown in FIG. 6 is only a kind of optional implementation, it, can root during concrete practice
The component count amount and type of above-mentioned Fig. 6 are selected, are deleted, increased or replaced according to actual needs;It is set in different function component
It sets, separately positioned or integrally disposed and other implementations, such as the separable setting of GPU613 and CPU601 or can also be used
GPU613 is integrated on CPU601, the separable setting of communication unit, can also be integrally disposed on CPU601 or GPU613, etc..
These interchangeable embodiments each fall within protection scope disclosed by the invention.
Particularly, according to an embodiment of the invention, may be implemented as computer above with reference to the process of flow chart description
Software program.For example, the embodiment of the present invention includes a kind of computer program product comprising be tangibly embodied in machine readable
Computer program on medium, computer program include the program code for method shown in execution flow chart, program code
It may include the corresponding instruction of corresponding execution method and step provided by the embodiments of the present application, for example, obtaining attendance preset period of time
Initial time;Obtain the storage time for the attendance data that terminal has cached;According to the storage time and the initial time
Between relationship, obtain corresponding attendance data from attendance data server;The end is updated with the corresponding attendance data
The attendance data cached is held, and the storage time is updated with current time.In such embodiments, the computer program
It can be downloaded and installed from network by communications portion 609, and/or be mounted from detachable media 611.In the computer
When program is executed by central processing unit (CPU) 601, the above-mentioned function of limiting in the present processes is executed.
In one or more optional embodiments, the embodiment of the invention also provides a kind of productions of computer program program
Product, for storing computer-readable instruction, which is performed so that computer executes any of the above-described possible implementation
In image recovery method.
The computer program product can be realized especially by hardware, software or its mode combined.In an alternative embodiment
In son, which is embodied as computer storage medium, in another optional example, the computer program
Product is embodied as software product, such as software development kit (Software Development Kit, SDK) etc..
In one or more optional embodiments, the embodiment of the invention also provides a kind of attendance data processing method and
Its corresponding device, electronic equipment, computer storage medium, computer program and computer program product, wherein this method
Including: first device sends attendance data processing instruction to second device, the instruction so that second device execute it is any of the above-described can
Attendance data processing method in the embodiment of energy;First device receives the result for the attendance data processing that second device is sent.
In some embodiments, attendance data processing instruction can be specially call instruction, and first device can pass through
The mode of calling indicates that second device executes attendance data processing, and accordingly, in response to call instruction is received, second device can
To execute step and/or process in any embodiment in above-mentioned attendance data processing method.
It should be understood that the terms such as " first " in the embodiment of the present invention, " second " are used for the purpose of distinguishing, and be not construed as
Restriction to the embodiment of the present invention.
It should also be understood that in the present invention, " multiple " can refer to two or more, "at least one" can refer to one,
Two or more.
It should also be understood that clearly being limited or no preceding for the either component, data or the structure that are referred in the present invention
In the case where opposite enlightenment given hereinlater, one or more may be generally understood to.
It should also be understood that the present invention highlights the difference between each embodiment to the description of each embodiment,
Same or similar place can be referred to mutually, for sake of simplicity, no longer repeating one by one.
Methods and apparatus of the present invention may be achieved in many ways.For example, can by software, hardware, firmware or
Software, hardware, firmware any combination realize methods and apparatus of the present invention.The said sequence of the step of for the method
Merely to be illustrated, the step of method of the invention, is not limited to sequence described in detail above, special unless otherwise
It does not mentionlet alone bright.In addition, in some embodiments, also the present invention can be embodied as to record program in the recording medium, these programs
Including for realizing machine readable instructions according to the method for the present invention.Thus, the present invention also covers storage for executing basis
The recording medium of the program of method of the invention.
Description of the invention is given for the purpose of illustration and description, and is not exhaustively or will be of the invention
It is limited to disclosed form.Many modifications and variations are obvious for the ordinary skill in the art.It selects and retouches
It states embodiment and is to more preferably illustrate the principle of the present invention and practical application, and those skilled in the art is enable to manage
The solution present invention is to design various embodiments suitable for specific applications with various modifications.
Claims (10)
1. a kind of attendance data processing method characterized by comprising
Obtain the initial time of attendance preset period of time;
Obtain the storage time for the attendance data that terminal has cached;
According to the relationship between the storage time and the initial time, corresponding attendance number is obtained from attendance data server
According to;
The attendance data that the terminal has cached is updated with the corresponding attendance data, and the storage is updated with current time
Time.
2. the method according to claim 1, wherein it is described according to the storage time and the initial time it
Between relationship, obtain corresponding attendance data from attendance data server, comprising:
The initial time and the corresponding initial time stamp of the storage time and storage time stamp are obtained respectively;
Compare the size of the storage time stamp and the initial time stamp;
According to the comparison result, corresponding attendance data is obtained from the attendance data server.
3. according to the method described in claim 2, it is characterized in that, described according to the comparison result, from the attendance data
Server obtains corresponding attendance data, comprising:
It is greater than the initial time stamp in response to storage time stamp, obtains from the attendance data server from the storage
First attendance data of the time to current time;
It is described that the attendance data that the terminal has cached is updated with the corresponding attendance data, comprising:
Read the second attendance data from the initial time to the storage time that the terminal has cached;
Form the attendance data of current time with first attendance data and second attendance data, and with it is described current when
Between attendance data update the attendance data that the terminal has cached.
4. according to the method in claim 2 or 3, which is characterized in that it is described according to the comparison result, from the attendance number
Corresponding attendance data is obtained according to server, further includes:
It is less than the initial time stamp in response to storage time stamp, obtains from the attendance data server from the starting
Attendance data of the time to current time;
It is described that the attendance data that the terminal has cached is updated with the corresponding attendance data, further includes:
The attendance data that the terminal has cached is replaced with the attendance data from the initial time to current time.
5. method as claimed in any of claims 1 to 4, which is characterized in that the acquisition terminal had cached examines
Before the storage time of diligent data, further includes:
Detect whether the terminal has been cached with attendance data;
If the terminal has been cached with attendance data, the storage time for the attendance data that the terminal has cached is obtained;
If the terminal is uncached attendance data, obtained from the attendance data server from institute according to the initial time
State initial time to current time attendance data;
Attendance data from the initial time to current time is cached in the terminal, and current time is cached in described
Terminal, as the storage time.
6. a kind of attendance data processing unit characterized by comprising
Time acquisition unit, for obtaining the initial time of attendance preset period of time;And obtain the attendance that terminal has cached
The storage time of data;
Data capture unit, for according to the relationship between the storage time and the initial time, from attendance data service
Device obtains corresponding attendance data;
Data updating unit, for updating the attendance data that the terminal has cached with the corresponding attendance data, and to work as
The preceding time updates the storage time.
7. a kind of electronic equipment, which is characterized in that including device as claimed in claim 6.
8. a kind of electronic equipment characterized by comprising
Memory, for storing executable instruction;And
It is any in claim 1 to 5 to complete to execute the executable instruction for communicating with the memory for processor
Method described in one.
9. a kind of computer program, including computer-readable code, which is characterized in that when the computer-readable code is in equipment
When upper operation, the processor in the equipment executes the instruction for realizing any one of claim 1 to 5 the method.
10. a kind of computer storage medium, for storing computer-readable instruction, which is characterized in that described instruction is held
Method described in any one of claim 1 to 5 is realized when row.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810719365.8A CN109034732A (en) | 2018-06-29 | 2018-06-29 | Attendance data treating method and apparatus, equipment, computer program and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810719365.8A CN109034732A (en) | 2018-06-29 | 2018-06-29 | Attendance data treating method and apparatus, equipment, computer program and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109034732A true CN109034732A (en) | 2018-12-18 |
Family
ID=65521537
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810719365.8A Pending CN109034732A (en) | 2018-06-29 | 2018-06-29 | Attendance data treating method and apparatus, equipment, computer program and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109034732A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112446674A (en) * | 2019-09-02 | 2021-03-05 | 珠海格力电器股份有限公司 | Attendance data updating method, computer readable storage medium and terminal |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102170634A (en) * | 2011-04-18 | 2011-08-31 | 搜船(北京)网络技术有限公司 | Mobile terminal location data caching and real-time updating system and method |
CN102413170A (en) * | 2011-10-18 | 2012-04-11 | 国网电力科学研究院 | Graphic data client buffer memory method based on FLEX |
CN103916373A (en) * | 2013-01-07 | 2014-07-09 | 腾讯科技(深圳)有限公司 | Data updating method, server, client side and system |
CN104133852A (en) * | 2014-07-04 | 2014-11-05 | 小米科技有限责任公司 | Webpage access method, webpage access device, server and terminal |
CN106657294A (en) * | 2016-12-06 | 2017-05-10 | 厦门中控生物识别信息技术有限公司 | Attendance checking data transmission method and system |
CN107306286A (en) * | 2016-04-21 | 2017-10-31 | 阿里巴巴集团控股有限公司 | The processing method and processing device of offline work attendance |
-
2018
- 2018-06-29 CN CN201810719365.8A patent/CN109034732A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102170634A (en) * | 2011-04-18 | 2011-08-31 | 搜船(北京)网络技术有限公司 | Mobile terminal location data caching and real-time updating system and method |
CN102413170A (en) * | 2011-10-18 | 2012-04-11 | 国网电力科学研究院 | Graphic data client buffer memory method based on FLEX |
CN103916373A (en) * | 2013-01-07 | 2014-07-09 | 腾讯科技(深圳)有限公司 | Data updating method, server, client side and system |
CN104133852A (en) * | 2014-07-04 | 2014-11-05 | 小米科技有限责任公司 | Webpage access method, webpage access device, server and terminal |
CN107306286A (en) * | 2016-04-21 | 2017-10-31 | 阿里巴巴集团控股有限公司 | The processing method and processing device of offline work attendance |
CN106657294A (en) * | 2016-12-06 | 2017-05-10 | 厦门中控生物识别信息技术有限公司 | Attendance checking data transmission method and system |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112446674A (en) * | 2019-09-02 | 2021-03-05 | 珠海格力电器股份有限公司 | Attendance data updating method, computer readable storage medium and terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6630276B2 (en) | Measuring User Behavior and Involvement Using User Interface on Terminal Devices | |
CN106104555B (en) | For protecting the behavioural analysis of peripheral equipment | |
CN105556482B (en) | Monitor mobile application performance | |
CN109741173B (en) | Method, device, equipment and computer storage medium for identifying suspicious money laundering teams | |
US20190026212A1 (en) | Metering user behaviour and engagement with user interface in terminal devices | |
CN109886290A (en) | Detection method, device, computer equipment and the storage medium of user's request | |
CN110163204A (en) | Businessman's monitoring and managing method, device and storage medium based on image recognition | |
CN107390983A (en) | Service order performs method, client and storage medium | |
CN111026967B (en) | Method, device, equipment and medium for obtaining user interest labels | |
WO2019089404A1 (en) | Augmented reality environment for tabular data in an image feed | |
CN109299120A (en) | Data processing method and device, electronic equipment, computer storage medium | |
CN106600082A (en) | Processing method and device of task in service system, and service system construction system | |
CN108520045B (en) | Data service response method and device | |
CN109614270A (en) | Data read-write method, device, equipment and storage medium based on Hbase | |
CN108090982A (en) | One kind is registered method, system and terminal device | |
CN109034732A (en) | Attendance data treating method and apparatus, equipment, computer program and storage medium | |
US9984125B1 (en) | Apparatus and method for acquiring, managing, sharing, monitoring, analyzing and publishing web-based time series data | |
CN111739182A (en) | Attendance checking method and device, electronic equipment and storage medium | |
US20200184483A1 (en) | Abnormality detection apparatus, control method, and program | |
CN106708869B (en) | Group data processing method and device | |
WO2020173140A1 (en) | Part-time job matching method and system, and storage medium | |
JP6279797B1 (en) | Business card information management server, business card information management system, business card information management method, and business card information management program | |
CN112597327A (en) | Work order system electronic signature checking method and system | |
US20200065631A1 (en) | Produce Assessment System | |
CN109561146A (en) | Document down loading method, device, terminal device |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181218 |