Leave-asking form generation method, device, server and storage medium

文档序号:1567745 发布日期:2020-01-24 浏览:24次 中文

阅读说明:本技术 请假表单生成方法、装置、服务器及存储介质 (Leave-asking form generation method, device, server and storage medium ) 是由 罗康 熊其 于 2019-09-04 设计创作,主要内容包括:一种请假表单生成方法,所述方法包括:接收输入的考勤异常选择指令;根据所述考勤异常选择指令,获取考勤异常基本信息;判断所述考勤异常选择指令是否包括多个考勤异常;若所述考勤异常选择指令包括多个考勤异常,从所述考勤异常基本信息中获取考勤异常种类以及考勤异常时间;根据所述考勤异常种类以及所述考勤异常时间,判断多个所述考勤异常是否能够合并;若多个所述考勤异常能够合并,根据所述考勤异常基本信息,生成与多个所述考勤异常匹配的第一请假表单;输出所述第一请假表单。本发明还提供一种请假表单生成装置、服务器以及存储介质。本发明能节约系统资源。(A method of generating a leave form, the method comprising: receiving an input attendance abnormity selection instruction; acquiring basic attendance abnormality information according to the attendance abnormality selection instruction; judging whether the attendance abnormity selection instruction comprises a plurality of attendance abnormity; if the attendance abnormity selection instruction comprises a plurality of attendance abnormity, acquiring attendance abnormity types and attendance abnormity time from the attendance abnormity basic information; judging whether the attendance abnormalities can be merged or not according to the attendance abnormality types and the attendance abnormality time; if the attendance anomalies can be combined, generating a first leave-asking form matched with the attendance anomalies according to the basic attendance anomaly information; and outputting the first leave form. The invention also provides a device for generating the leave request form, a server and a storage medium. The invention can save system resources.)

1. A method for generating a leave form, the method comprising:

receiving an input attendance abnormity selection instruction;

acquiring basic attendance abnormality information according to the attendance abnormality selection instruction;

judging whether the attendance abnormity selection instruction comprises a plurality of attendance abnormity;

if the attendance abnormity selection instruction comprises a plurality of attendance abnormity, acquiring attendance abnormity types and attendance abnormity time from the attendance abnormity basic information;

judging whether the attendance abnormalities can be merged or not according to the attendance abnormality types and the attendance abnormality time;

if the attendance anomalies can be combined, generating a first leave-asking form matched with the attendance anomalies according to the basic attendance anomaly information;

and outputting the first leave form.

2. The method of claim 1, wherein the determining whether the attendance exceptions can be merged according to the attendance exception category and the attendance exception time comprises:

if the attendance abnormity types of the attendance abnormity are the same, acquiring the occurrence time points of the attendance abnormity from the attendance abnormity time;

for each occurrence time point, judging whether the occurrence time point belongs to a preset time period before the current time point;

if the occurrence time point belongs to a preset time period before the current time point, determining a first occurrence time point with the earliest time and a second occurrence time point with the latest time from the occurrence time points;

judging whether the time length between the second generation time point and the first generation time point exceeds a preset time length or not;

and if the time length between the second occurrence time point and the first occurrence time point does not exceed the preset time length, determining that the attendance abnormalities can be merged.

3. The method of claim 1, wherein the determining whether the attendance exceptions can be merged according to the attendance exception category and the attendance exception time comprises:

if the attendance abnormity types of the attendance abnormity are the same, acquiring the occurrence time points of the attendance abnormity from the attendance abnormity time;

for each occurrence time point, judging whether the occurrence time point belongs to the time point of the same salary calculation month or not;

and if the occurrence time point belongs to the same salary month compensation time point, determining that a plurality of attendance abnormalities can be merged.

4. The method of claim 1, further comprising:

if the attendance anomalies cannot be merged, splitting the attendance anomalies according to the attendance anomaly time to obtain a plurality of attendance anomaly lists, wherein the attendance anomaly lists comprise at least one attendance anomaly;

for each attendance exception list, generating a second leave-asking form matched with the attendance exception included in the attendance exception list according to all attendance exception basic information of the attendance exception included in the attendance exception list;

and outputting a plurality of second leave forms.

5. The method of claim 4, wherein splitting the plurality of attendance exceptions according to the attendance exception time to obtain a plurality of attendance exception lists comprises:

from among the plurality of attendance anomalies, dividing the attendance anomalies that can be merged into a group, and separately dividing the attendance anomalies that cannot be merged into a group;

and aiming at each divided group, generating an attendance exception list according to the attendance exceptions included in each group.

6. The method of any of claims 1-5, wherein the generating, from the attendance exception base information, a first abstaining form that matches a plurality of the attendance exceptions comprises:

acquiring basic information of a user and a plurality of attendance abnormal time from the attendance abnormal basic information;

determining a plurality of leave-asking times according to the attendance checking abnormal times;

calculating the total leave asking time length according to the plurality of leave asking times;

and generating a first leave-asking form according to the basic information, the plurality of leave-asking times and the leave-asking total duration.

7. The method of any of claims 1-5, wherein prior to receiving the input attendance exception selection instruction, the method further comprises:

receiving attendance login information input by a user;

verifying the attendance logging information;

after the attendance login information passes verification, acquiring the attendance information of the user;

judging whether the attendance checking information contains basic attendance checking abnormal information or not;

and if the attendance checking information contains the basic attendance checking abnormal information, outputting the attendance checking abnormality matched with the basic attendance checking abnormal information.

8. An apparatus for generating an ask-for-leave form, comprising:

the receiving module is used for receiving an input attendance abnormity selection instruction;

the acquisition module is used for acquiring the basic attendance abnormality information according to the attendance abnormality selection instruction;

the first judgment module is used for judging whether the attendance abnormity selection instruction comprises a plurality of attendance abnormity;

the obtaining module is further configured to obtain attendance exception types and attendance exception time from the attendance exception basic information if the attendance exception selection instruction includes a plurality of attendance exceptions;

the second judgment module is used for judging whether the attendance abnormalities can be merged or not according to the attendance abnormality types and the attendance abnormality time;

the generation module is used for generating a first leave-asking form matched with the attendance anomalies according to the basic attendance anomaly information if the attendance anomalies can be merged;

and the output module is used for outputting the first leave-asking form.

9. A server, characterized in that the server comprises a processor and a memory, the processor being configured to execute a computer program stored in the memory to implement the method of generating an answerform according to any one of claims 1 to 7.

10. A computer-readable storage medium storing at least one instruction which, when executed by a processor, implements the leave form generation method of any one of claims 1 to 7.

Technical Field

The invention relates to the technical field of intelligent terminals, in particular to a leave-asking form generation method, a leave-asking form generation device, a server and a storage medium.

Background

During the work of the staff, attendance abnormalities (such as late arrival and early departure) usually occur due to temporary personal reasons (such as illness). This situation typically requires the employee to fill out and submit a leave form after the incident to eliminate the attendance exceptions. If the attendance of one employee is late or the attendance is early, the employee needs to submit the leave-asking form for many times, the number of forms to be processed by the system is large, namely, the number of tasks to be processed is large, namely, the number of processes or threads is large, and the number of system resources to be called is large.

Disclosure of Invention

In view of the foregoing, it is desirable to provide a method, an apparatus, a server and a storage medium for generating a leave form, which can save system resources.

The invention provides a method for generating a leave form, which comprises the following steps:

receiving an input attendance abnormity selection instruction;

acquiring basic attendance abnormality information according to the attendance abnormality selection instruction;

judging whether the attendance abnormity selection instruction comprises a plurality of attendance abnormity;

if the attendance abnormity selection instruction comprises a plurality of attendance abnormity, acquiring attendance abnormity types and attendance abnormity time from the attendance abnormity basic information;

judging whether the attendance abnormalities can be merged or not according to the attendance abnormality types and the attendance abnormality time;

if the attendance anomalies can be combined, generating a first leave-asking form matched with the attendance anomalies according to the basic attendance anomaly information;

and outputting the first leave form.

In one possible implementation manner, the determining whether the attendance anomalies can be merged according to the attendance anomaly category and the attendance anomaly time includes:

if the attendance abnormity types of the attendance abnormity are the same, acquiring the occurrence time points of the attendance abnormity from the attendance abnormity time;

for each occurrence time point, judging whether the occurrence time point belongs to a preset time period before the current time point;

if the occurrence time point belongs to a preset time period before the current time point, determining a first occurrence time point with the earliest time and a second occurrence time point with the latest time from the occurrence time points;

judging whether the time length between the second generation time point and the first generation time point exceeds a preset time length or not;

and if the time length between the second occurrence time point and the first occurrence time point does not exceed the preset time length, determining that the attendance abnormalities can be merged.

In one possible implementation manner, the determining whether the attendance anomalies can be merged according to the attendance anomaly category and the attendance anomaly time includes:

if the attendance abnormity types of the attendance abnormity are the same, acquiring the occurrence time points of the attendance abnormity from the attendance abnormity time;

for each occurrence time point, judging whether the occurrence time point belongs to the time point of the same salary calculation month or not;

and if the occurrence time point belongs to the same salary month compensation time point, determining that a plurality of attendance abnormalities can be merged.

In one possible implementation, the method further includes:

if the attendance anomalies cannot be merged, splitting the attendance anomalies according to the attendance anomaly time to obtain a plurality of attendance anomaly lists, wherein the attendance anomaly lists comprise at least one attendance anomaly;

for each attendance exception list, generating a second leave-asking form matched with the attendance exception included in the attendance exception list according to all attendance exception basic information of the attendance exception included in the attendance exception list;

and outputting a plurality of second leave forms.

In a possible implementation manner, the splitting the attendance exceptions according to the attendance exception time to obtain a plurality of attendance exception lists includes:

from among the plurality of attendance anomalies, dividing the attendance anomalies that can be merged into a group, and separately dividing the attendance anomalies that cannot be merged into a group;

and aiming at each divided group, generating an attendance exception list according to the attendance exceptions included in each group.

In a possible implementation manner, the generating, according to the basic attendance exception information, a first leave list matched with the plurality of attendance exceptions includes:

acquiring basic information of a user and a plurality of attendance abnormal time from the attendance abnormal basic information;

determining a plurality of leave-asking times according to the attendance checking abnormal times;

calculating the total leave asking time length according to the plurality of leave asking times;

and generating a first leave-asking form according to the basic information, the plurality of leave-asking times and the leave-asking total duration.

In one possible implementation manner, before the receiving the input attendance exception selection instruction, the method further includes:

receiving attendance login information input by a user;

verifying the attendance logging information;

after the attendance login information passes verification, acquiring the attendance information of the user;

judging whether the attendance checking information contains basic attendance checking abnormal information or not;

and if the attendance checking information contains the basic attendance checking abnormal information, outputting the attendance checking abnormality matched with the basic attendance checking abnormal information.

A second aspect of the present invention provides an apparatus for generating a leave form, the apparatus comprising:

the receiving module is used for receiving an input attendance abnormity selection instruction;

the acquisition module is used for acquiring the basic attendance abnormality information according to the attendance abnormality selection instruction;

the judging module is used for judging whether the attendance abnormity selection instruction comprises a plurality of attendance abnormity;

the obtaining module is further configured to obtain attendance exception types and attendance exception time from the attendance exception basic information if the attendance exception selection instruction includes a plurality of attendance exceptions;

the judging module is used for judging whether the attendance abnormalities can be combined or not according to the attendance abnormality types and the attendance abnormality time;

the generation module is used for generating a first leave-asking form matched with the attendance anomalies according to the basic attendance anomaly information if the attendance anomalies can be merged;

and the output module is used for outputting the first leave-asking form.

A third aspect of the present invention provides a server, comprising a processor and a memory, wherein the processor is configured to implement the method for generating a leave form when executing a computer program stored in the memory.

A fourth aspect of the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the leave form generation method.

By the technical scheme, the attendance checking method and the attendance checking device can receive an input attendance checking abnormity selection instruction; acquiring basic attendance abnormality information according to the attendance abnormality selection instruction; further, whether the attendance abnormity selection instruction comprises a plurality of attendance abnormity is judged; if the attendance abnormity selection instruction comprises a plurality of attendance abnormity, acquiring attendance abnormity types and attendance abnormity time from the attendance abnormity basic information; judging whether the attendance abnormalities can be merged or not according to the attendance abnormality types and the attendance abnormality time; if the attendance anomalies can be combined, generating a first leave-asking form matched with the attendance anomalies according to the basic attendance anomaly information; and finally, outputting the first leave form. Therefore, when the staff selects a plurality of attendance exceptions, the attendance exceptions can be combined to generate an leave-on form, and then only one leave-on form needs to be submitted for the attendance exceptions when approval is submitted, so that the form task number processed by the system is reduced, namely, the process and the thread are reduced, and the system resources are saved.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.

FIG. 1 is a flowchart illustrating a method for generating a leave form according to an embodiment of the present invention.

FIG. 2 is a functional block diagram of an apparatus for generating a leave form according to a preferred embodiment of the present invention.

Fig. 3 is a schematic structural diagram of a server according to a preferred embodiment of the present invention for implementing the leave form generation method.

Detailed Description

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.

The leave-asking form generation method is applied to a server, and can also be applied to a hardware environment formed by the server and electronic equipment connected with the server through a network, and the server and the electronic equipment execute together. Networks include, but are not limited to: a wide area network, a metropolitan area network, or a local area network.

A server may refer to a computer system that provides services to other devices (e.g., electronic devices) in a network. A personal computer may also be called a server if it can externally provide a File Transfer Protocol (FTP) service. In a narrow sense, a server refers to a high-performance computer, which can provide services to the outside through a network, and compared with a common personal computer, the server has higher requirements on stability, security, performance and the like, and therefore, hardware such as a CPU, a chipset, a memory, a disk system, a network and the like is different from that of the common personal computer.

The electronic device includes an electronic device capable of automatically performing numerical calculation and/or information processing according to instructions set or stored in advance, and hardware thereof includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a programmable gate array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like. The electronic device may also include a network device and/or a user device. Wherein the network device includes, but is not limited to, a single network server, a server group consisting of a plurality of network servers, or a Cloud Computing (Cloud Computing) based Cloud consisting of a large number of hosts or network servers, wherein Cloud Computing is one of distributed Computing, a super virtual computer consisting of a collection of loosely coupled computers. The user equipment includes, but is not limited to, any electronic product that can interact with a user through a keyboard, a mouse, a remote controller, a touch panel, or a voice control device, for example, a personal computer, a tablet computer, a smart phone, a personal digital assistant PDA, a game console, an interactive network television IPTV, a smart wearable device, and the like. The network where the user equipment and the network equipment are located includes, but is not limited to, the internet, a wide area network, a metropolitan area network, a local area network, a virtual private network VPN, and the like.

Referring to fig. 1, fig. 1 is a flowchart illustrating a preferred embodiment of a leave form generation method according to the present invention. The order of the steps in the flowchart may be changed, and some steps may be omitted.

And S11, the server receives the input attendance abnormity selection instruction.

The user can select at least one attendance abnormity on an attendance system interface, and can trigger generation of an attendance abnormity selection instruction in a clicking mode. The attendance exception selection instruction carries the selected attendance exception, and the attendance exception selection instruction may include one or more attendance exceptions. The selected attendance exception refers to the attendance exception that the user wishes to submit the leave form.

In the embodiment of the invention, an input attendance abnormity selection instruction can be received and used for determining an object to be operated next, namely attendance abnormity.

And S12, the server acquires the basic attendance exception information according to the attendance exception selection instruction.

In the embodiment of the invention, the selected attendance abnormity can be determined according to the attendance abnormity selection instruction, and then the basic attendance abnormity information is inquired and obtained from a database which is pre-stored with the basic attendance abnormity information according to the selected attendance abnormity.

The basic attendance exception information includes, but is not limited to, job number, name, department, attendance exception category, attendance exception time, processing state and the like.

And S13, the server judges whether the attendance abnormity selection instruction comprises a plurality of attendance abnormity, if so, the step S14 is executed, and if not, the process is ended.

The attendance abnormity comprises attendance abnormity time and attendance abnormity category and the like, and can be used for marking brief information of attendance abnormity, and if specific information needs to be checked, basic information of the attendance abnormity needs to be inquired and acquired in a database according to the attendance abnormity.

In the embodiment of the invention, the attendance abnormity selection instruction carries attendance abnormity, and whether a plurality of attendance abnormity are included can be judged from the attendance abnormity selection instruction.

And S14, the server acquires the attendance abnormal type and the attendance abnormal time from the attendance abnormal basic information.

The attendance abnormal time comprises an occurrence time point and an end time point, wherein the occurrence time point refers to a time point when the attendance system judges that the attendance is abnormal and records the attendance abnormal, and the attendance abnormal time refers to a time period determined by the attendance system and is abnormal, such as: in the 20 th month in 2018, 8:30 is the working time of the company, if an employee arrives at the company in the 9:00, the attendance system judges that the employee is late and the attendance is abnormal, at the moment, the time point of the occurrence of the attendance abnormality is the 20 th month in 2018, 8:30 in the 10 th month, and the time point of the end of the attendance abnormality is the 9:00 in the 20 th month in the 2018; the attendance abnormal time is No. 8:30-9:00 in 2018, No. 10 and No. 20.

The attendance exception categories include but are not limited to late arrival, early departure, absence, no card punching during work attendance and the like.

And S15, the server judges whether a plurality of attendance abnormalities can be merged or not according to the attendance abnormality types and the attendance abnormality time, if so, the step S16 is executed, and if not, the process is ended.

In the embodiment of the present invention, if it is determined that the attendance anomaly selection instruction includes a plurality of attendance anomalies, it is necessary to determine whether the plurality of attendance anomalies can be merged according to the types of the attendance anomalies and the attendance anomaly time. Different attendance anomalies exist, the types of the attendance anomalies may be different, and the spans of the attendance anomaly time may also be different, wherein the span of the attendance anomaly time refers to the time length between occurrence time points of every two attendance anomalies.

Specifically, the determining whether the attendance abnormalities can be merged according to the attendance abnormality category and the attendance abnormality time includes:

if the attendance abnormity types of the attendance abnormity are the same, acquiring the occurrence time points of the attendance abnormity from the attendance abnormity time;

for each occurrence time point, judging whether the occurrence time point belongs to a preset time period before the current time point;

if the occurrence time point belongs to a preset time period before the current time point, determining a first occurrence time point with the earliest time and a second occurrence time point with the latest time from the occurrence time points;

judging whether the time length between the second generation time point and the first generation time point exceeds a preset time length or not;

and if the time length between the second occurrence time point and the first occurrence time point does not exceed the preset time length, determining that the attendance abnormalities can be merged.

The method comprises the steps that a time period (namely a preset time period) and a duration (namely the preset duration) can be preset, a plurality of attendance anomalies are provided, and if the occurrence time points of the attendance anomalies are all in the preset time period and the duration between the occurrence time points does not exceed the preset duration, the attendance anomalies can be considered to be combined.

In this alternative embodiment, a plurality of time points of occurrence of the attendance anomalies may be obtained from the attendance anomaly time of the basic attendance anomaly information, if each of the time points of occurrence is within a preset time period before the current time point (for example, within one week before the current time point), indicating that the time points of occurrence of the attendance anomalies are relatively close to the current time point, after the attendance anomaly occurs, the user may process the attendance anomalies within a relatively short time, furthermore, the time duration between any two of the time points of occurrence may be further determined, a first time point of occurrence with the earliest time and a second time point of occurrence with the latest time may be determined from the plurality of time points of occurrence, if the time duration between the second time point of occurrence with the latest time and the first time point of occurrence with the earliest time does not exceed a preset time duration, the time length between any two of the occurrence time points is not longer than the preset time length, and meanwhile, the occurrence time points of the attendance anomalies are concentrated, so that the combination of the attendance anomalies is facilitated, and therefore the fact that the attendance anomalies can be combined can be determined.

Specifically, the determining whether the attendance abnormalities can be merged according to the attendance abnormality category and the attendance abnormality time includes:

if the attendance abnormity types of the attendance abnormity are the same, acquiring the occurrence time points of the attendance abnormity from the attendance abnormity time;

for each occurrence time point, judging whether the occurrence time point belongs to the time point of the same salary calculation month or not;

and if the occurrence time point belongs to the same salary month compensation time point, determining that a plurality of attendance abnormalities can be merged.

The attendance of the staff is hooked with the salary calculation, so that the attendance abnormalities of the same salary calculation month can be processed in a centralized manner, and the attendance abnormalities of the same salary calculation month at the occurrence time point can be set to be combined.

In this optional embodiment, the time points of occurrence of the attendance anomalies may be obtained from the time of the attendance anomaly of the basic attendance anomaly information, where the time points of occurrence are obtained from the time of the attendance anomaly of each attendance anomaly, and if the time points of occurrence are all within the same salary month, it may be determined that the attendance anomalies can be merged.

And S16, the server generates a first leave-asking form matched with the attendance exceptions according to the attendance exception basic information.

Specifically, the generating, according to the basic attendance exception information, a first leave-asking form matched with the plurality of attendance exceptions includes:

acquiring basic information of a user and a plurality of attendance abnormal time from the attendance abnormal basic information;

determining a plurality of leave-asking times according to the attendance checking abnormal times;

calculating the total leave asking time length according to the plurality of leave asking times;

and generating a first leave-asking form according to the basic information, the plurality of leave-asking times and the leave-asking total duration.

The first leave-asking form is a leave-asking form, and the attendance anomalies can be combined, so that the attendance anomalies can be combined to generate a leave-asking form, and meanwhile, a leave-asking form is submitted.

The system creates a task for each leave form to process, wherein each task corresponds to one process or one thread, and each process comprises one or more threads. The process is a basic unit of system allocation resources in the execution process of a program, is a dynamic concept, competes for the basic unit of computer system resources, and each process has an address space of the process, namely the system needs to allocate memory resources to the process; a thread, which is a part of a process, can be considered as a single thread without a thread, which is sometimes referred to as a lightweight process or a lightweight process, and is a basic unit of CPU scheduling.

In this optional embodiment, the basic information of the user and the multiple attendance abnormal times may be obtained from the attendance abnormal basic information, where the multiple attendance abnormal times may be determined as leave-asking times, the leave-asking times are multiple, and the total leave-asking time duration may be calculated by adding the durations of the multiple leave-asking times. And then, a new leave request form can be created, and the basic information, the plurality of leave request times and the total leave request duration are added into the new leave request form to generate a first leave request form. Therefore, a plurality of leave request forms do not need to be submitted and examined, and only one leave request form needs to be submitted and examined, so that the number of leave request forms is reduced, namely the number of tasks for processing the leave request forms by the system is reduced, the number of processes or threads is reduced, and system resources are saved.

As an optional implementation, the method further comprises:

if the attendance anomalies cannot be merged, splitting the attendance anomalies according to the attendance anomaly time to obtain a plurality of attendance anomaly lists, wherein the attendance anomaly lists comprise at least one attendance anomaly;

for each attendance exception list, generating a second leave-asking form matched with the attendance exception included in the attendance exception list according to all attendance exception basic information of the attendance exception included in the attendance exception list;

and outputting a plurality of second leave forms.

And each attendance exception list corresponds to a second leave-asking form.

In this alternative embodiment, the fact that the plurality of attendance anomalies cannot be merged means that the plurality of attendance anomalies are viewed as a whole, but it cannot be excluded that some of the plurality of attendance anomalies can be merged. In this case, according to the attendance exception time, the attendance exceptions may be split to obtain a plurality of attendance exception lists, where the attendance exception list includes one attendance exception or a plurality of attendance exceptions that can be merged.

And then, for each attendance exception list, determining basic information, leave-on time and leave-on total duration of a user according to all attendance exception basic information of attendance exceptions in the attendance exception list, wherein one or more leave-on times are possible, and finally, generating a second leave-on form according to the basic information, the leave-on time and the leave-on total duration. Because each attendance exception list comprises at least one attendance exception, each attendance exception list can generate one leave-on form, namely one leave-on form can correspond to one or more attendance exceptions, and compared with the condition that one leave-on form can only correspond to one attendance exception, the total leave-on forms can be reduced, the whole process can also reduce the submission times and the examination and approval times of the leave-on forms, namely reduce the number of tasks of the leave-on forms processed by the system, reduce the number of processes or threads, and save system resources.

Specifically, the splitting the plurality of attendance exceptions according to the attendance exception time to obtain a plurality of attendance exception lists comprises:

from among the plurality of attendance anomalies, dividing the attendance anomalies that can be merged into a group, and separately dividing the attendance anomalies that cannot be merged into a group;

and aiming at each divided group, generating an attendance exception list according to the attendance exceptions included in each group.

In this optional embodiment, the fact that the attendance anomalies cannot be merged means that the attendance anomalies are viewed as a whole and cannot be merged, but it cannot be determined that some of the attendance anomalies can be merged, so that the attendance anomalies can be split into multiple groups according to the time of the attendance anomalies, each group can generate an attendance anomaly list, wherein the attendance anomaly list includes one or more attendance anomalies, and if a plurality of attendance anomalies exist in a certain attendance anomaly list, the attendance anomalies in the attendance anomaly list can be merged. Therefore, only one leave form can be generated for a plurality of attendance exceptions in one attendance exception list. For example, after the attendance exceptions are ABCDEF and split according to the attendance exception time, ABC which can be merged is divided into one group, DE which can be merged is divided into one group, and F which cannot be merged with any attendance exception is divided into one group, then, an ask-for-leave form is generated for the attendance exception ABC, an ask-for-leave form is generated for the attendance exception DE, and an ask-for-leave form is generated for the attendance exception F.

And S17, the server outputs the first leave form.

In the embodiment of the present invention, after the first leave request form is generated, the first leave request form may be output to an interface/page to be displayed to a user, so that the user may perform the next operation on the first leave request form, for example: filling out the leave asking reason, saving the first leave asking form, submitting the first leave asking form and the like.

As an optional implementation manner, before step S11, the method further includes:

receiving attendance login information input by a user;

verifying the attendance logging information;

after the attendance login information passes verification, acquiring the attendance information of the user;

judging whether the attendance checking information contains basic attendance checking abnormal information or not;

and if the attendance checking information contains the basic attendance checking abnormal information, outputting the attendance checking abnormality matched with the basic attendance checking abnormal information.

The attendance logging-in information comprises a user account and a password.

The attendance information comprises attendance abnormal basic information and attendance normal basic information;

in this optional implementation, attendance logging information input by a user may be received, if the attendance logging information is verified, the attendance information of the user may be queried from the database, and if the basic attendance abnormality information is found in the attendance information, the attendance abnormality matched with the basic attendance abnormality information may be output to a corresponding interface/page of the attendance system. Aiming at the attendance abnormity output to the corresponding interface/page of the attendance system, the user can select to trigger and generate the attendance abnormity selection instruction.

In the method flow described in fig. 1, an input attendance exception selection instruction may be received; acquiring basic attendance abnormality information according to the attendance abnormality selection instruction; further, whether the attendance abnormity selection instruction comprises a plurality of attendance abnormity is judged; if the attendance abnormity selection instruction comprises a plurality of attendance abnormity, acquiring attendance abnormity types and attendance abnormity time from the attendance abnormity basic information; judging whether the attendance abnormalities can be merged or not according to the attendance abnormality types and the attendance abnormality time; if the attendance anomalies can be combined, generating a first leave-asking form matched with the attendance anomalies according to the basic attendance anomaly information; and finally, outputting the first leave form. Therefore, when the staff selects a plurality of attendance exceptions, the attendance exceptions can be combined to generate an leave-on form, and then only one leave-on form needs to be submitted for the attendance exceptions when approval is submitted, so that the form task number processed by the system is reduced, namely, the process and the thread are reduced, and the system resources are saved.

The above description is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and it will be apparent to those skilled in the art that modifications may be made without departing from the inventive concept of the present invention, and these modifications are within the scope of the present invention.

Referring to fig. 2, fig. 2 is a functional block diagram of a preferred embodiment of a leave form generation apparatus according to the present invention.

In some embodiments, the leave form generation means is run in a server. The leave form generating device may include a plurality of functional modules composed of program code segments. The program codes of the respective program segments in the please-form generating apparatus may be stored in the memory and executed by the at least one processor to perform some or all of the steps of the please-form generating method described in fig. 1.

In this embodiment, the leave form generating apparatus may be divided into a plurality of functional modules according to the functions executed by the leave form generating apparatus. The functional module may include: the device comprises a receiving module 201, an obtaining module 202, a first judging module 203, a second judging module 204, a generating module 205 and an output module 206. The module referred to herein is a series of computer program segments capable of being executed by at least one processor and capable of performing a fixed function and is stored in memory. The functions of the respective modules will be described in detail in the following embodiments.

The receiving module 201 is configured to receive an input attendance exception selection instruction.

The user can select at least one attendance abnormity on an attendance system interface, and can trigger generation of an attendance abnormity selection instruction in a clicking mode. The attendance exception selection instruction carries the selected attendance exception, and the attendance exception selection instruction may include one or more attendance exceptions. The selected attendance exception refers to the attendance exception that the user wishes to submit the leave form.

In the embodiment of the invention, an input attendance abnormity selection instruction can be received and used for determining an object to be operated next, namely attendance abnormity.

The obtaining module 202 is configured to obtain basic attendance exception information according to the attendance exception selection instruction.

In the embodiment of the invention, the selected attendance abnormity can be determined according to the attendance abnormity selection instruction, and then the basic attendance abnormity information is inquired and obtained from a database which is pre-stored with the basic attendance abnormity information according to the selected attendance abnormity.

The basic attendance exception information includes, but is not limited to, job number, name, department, attendance exception category, attendance exception time, processing state and the like.

The first determining module 203 is configured to determine whether the attendance exception selection instruction includes a plurality of attendance exceptions.

The attendance abnormity comprises attendance abnormity time and attendance abnormity category and the like, and can be used for marking brief information of attendance abnormity, and if specific information needs to be checked, basic information of the attendance abnormity needs to be inquired and acquired in a database according to the attendance abnormity.

In the embodiment of the invention, the attendance abnormity selection instruction carries attendance abnormity, and whether a plurality of attendance abnormity are included can be judged from the attendance abnormity selection instruction.

The obtaining module 202 is further configured to obtain an attendance exception category and an attendance exception time from the attendance exception basic information if the attendance exception selection instruction includes a plurality of attendance exceptions.

The attendance abnormal time comprises an occurrence time point and an end time point, wherein the occurrence time point refers to a time point when the attendance system judges that the attendance is abnormal and records the attendance abnormal, and the attendance abnormal time refers to a time period determined by the attendance system and is abnormal, such as: in the 20 th month in 2018, 8:30 is the working time of the company, if an employee arrives at the company in the 9:00, the attendance system judges that the employee is late and the attendance is abnormal, at the moment, the time point of the occurrence of the attendance abnormality is the 20 th month in 2018, 8:30 in the 10 th month, and the time point of the end of the attendance abnormality is the 9:00 in the 20 th month in the 2018; the attendance abnormal time is No. 8:30-9:00 in 2018, No. 10 and No. 20.

The attendance exception categories include but are not limited to late arrival, early departure, absence, no card punching during work attendance and the like.

The second judging module 204 is configured to judge whether the attendance anomalies can be merged according to the attendance anomaly category and the attendance anomaly time.

In the embodiment of the present invention, if it is determined that the attendance anomaly selection instruction includes a plurality of attendance anomalies, it is necessary to determine whether the plurality of attendance anomalies can be merged according to the types of the attendance anomalies and the attendance anomaly time. Different attendance anomalies exist, the types of the attendance anomalies may be different, and the spans of the attendance anomaly time may also be different, wherein the span of the attendance anomaly time refers to the time length between occurrence time points of every two attendance anomalies.

The generating module 205 is configured to generate a first leave-asking form matched with the multiple attendance exceptions according to the basic attendance exception information if the multiple attendance exceptions can be merged.

The output module 206 is configured to output the first leave-asking form.

In the embodiment of the present invention, after the first leave request form is generated, the first leave request form may be output to an interface/page to be displayed to a user, so that the user may perform the next operation on the first leave request form, for example: filling out the leave asking reason, saving the first leave asking form, submitting the first leave asking form and the like.

As an alternative embodiment, the second determining module 204 includes:

the first obtaining submodule is used for obtaining a plurality of abnormal attendance occurrence time points from the abnormal attendance time if the abnormal attendance types are the same;

the first judgment submodule is used for judging whether the occurrence time point belongs to a preset time period before the current time point or not aiming at each occurrence time point;

the first determining submodule is used for determining a first occurrence time point with the earliest time and a second occurrence time point with the latest time from a plurality of occurrence time points if the occurrence time points belong to a preset time period before the current time point;

the first judgment submodule is further used for judging whether the time length between the second generation time point and the first generation time point exceeds a preset time length;

the first determining submodule is further configured to determine that the attendance anomalies can be merged if the duration between the second occurrence time point and the first occurrence time point does not exceed a preset duration.

The method comprises the steps that a time period (namely a preset time period) and a duration (namely the preset duration) can be preset, a plurality of attendance anomalies are provided, and if the occurrence time points of the attendance anomalies are all in the preset time period and the duration between the occurrence time points does not exceed the preset duration, the attendance anomalies can be considered to be combined.

In this alternative embodiment, a plurality of time points of occurrence of the attendance anomalies may be obtained from the attendance anomaly time of the basic attendance anomaly information, if each of the time points of occurrence is within a preset time period before the current time point (for example, within one week before the current time point), indicating that the time points of occurrence of the attendance anomalies are relatively close to the current time point, after the attendance anomaly occurs, the user may process the attendance anomalies within a relatively short time, furthermore, the time duration between any two of the time points of occurrence may be further determined, a first time point of occurrence with the earliest time and a second time point of occurrence with the latest time may be determined from the plurality of time points of occurrence, if the time duration between the second time point of occurrence with the latest time and the first time point of occurrence with the earliest time does not exceed a preset time duration, the time length between any two of the occurrence time points is not longer than the preset time length, and meanwhile, the occurrence time points of the attendance anomalies are concentrated, so that the combination of the attendance anomalies is facilitated, and therefore the fact that the attendance anomalies can be combined can be determined.

As an alternative embodiment, the second determining module 204 includes:

the second obtaining submodule is used for obtaining a plurality of abnormal attendance occurrence time points from the abnormal attendance time if the abnormal attendance types of the plurality of abnormal attendance are the same;

the second judgment submodule is used for judging whether the occurrence time points belong to the same salary calculation month time point or not according to each occurrence time point;

and the second determining submodule is used for determining that a plurality of attendance abnormalities can be merged if the occurrence time point belongs to the same salary compensation month time point.

The attendance of the staff is hooked with the salary calculation, so that the attendance abnormalities of the same salary calculation month can be processed in a centralized manner, and the attendance abnormalities of the same salary calculation month at the occurrence time point can be set to be combined.

In this optional embodiment, the time points of occurrence of the attendance anomalies may be obtained from the time of the attendance anomaly of the basic attendance anomaly information, where the time points of occurrence are obtained from the time of the attendance anomaly of each attendance anomaly, and if the time points of occurrence are all within the same salary month, it may be determined that the attendance anomalies can be merged.

As an optional implementation manner, the apparatus for generating an ask-for-leave form may further include:

the splitting module is used for splitting the plurality of attendance exceptions according to the attendance exception time if the plurality of attendance exceptions can not be merged, so as to obtain a plurality of attendance exception lists, wherein the attendance exception list comprises at least one attendance exception.

The generating module 205 is further configured to generate, for each attendance exception list, a second leave-on form that is matched with the attendance exception included in the attendance exception list according to all the attendance exception basic information of the attendance exception included in the attendance exception list.

The output module 206 is further configured to output a plurality of second leave-asking forms.

And each attendance exception list corresponds to a second leave-asking form.

In this alternative embodiment, the fact that the plurality of attendance anomalies cannot be merged means that the plurality of attendance anomalies are viewed as a whole, but it cannot be excluded that some of the plurality of attendance anomalies can be merged. In this case, according to the attendance exception time, the attendance exceptions may be split to obtain a plurality of attendance exception lists, where the attendance exception list includes one attendance exception or a plurality of attendance exceptions that can be merged.

And then, for each attendance exception list, determining basic information, leave-on time and leave-on total duration of a user according to all attendance exception basic information of attendance exceptions in the attendance exception list, wherein one or more leave-on times are possible, and finally, generating a second leave-on form according to the basic information, the leave-on time and the leave-on total duration. Because each attendance exception list comprises at least one attendance exception, each attendance exception list can generate one leave-on form, namely one leave-on form can correspond to one or more attendance exceptions, and compared with the condition that one leave-on form can only correspond to one attendance exception, the total leave-on forms can be reduced, the whole process can also reduce the submission times and the examination and approval times of the leave-on forms, namely reduce the number of tasks of the leave-on forms processed by the system, reduce the number of processes or threads, and save system resources.

As an optional implementation, the splitting module includes:

a dividing submodule for dividing the attendance anomalies that can be merged into one group from among the plurality of attendance anomalies, and separately dividing the attendance anomalies that cannot be merged into one group;

and the first generation submodule is used for generating an attendance abnormity list according to the attendance abnormity included in each group aiming at each group after division.

In this optional embodiment, the fact that the attendance anomalies cannot be merged means that the attendance anomalies are viewed as a whole and cannot be merged, but it cannot be determined that some of the attendance anomalies can be merged, so that the attendance anomalies can be split into multiple groups according to the time of the attendance anomalies, each group can generate an attendance anomaly list, wherein the attendance anomaly list includes one or more attendance anomalies, and if a plurality of attendance anomalies exist in a certain attendance anomaly list, the attendance anomalies in the attendance anomaly list can be merged. Therefore, only one leave form can be generated for a plurality of attendance exceptions in one attendance exception list. For example, after the attendance exceptions are ABCDEF and split according to the attendance exception time, ABC which can be merged is divided into one group, DE which can be merged is divided into one group, and F which cannot be merged with any attendance exception is divided into one group, then, an ask-for-leave form is generated for the attendance exception ABC, an ask-for-leave form is generated for the attendance exception DE, and an ask-for-leave form is generated for the attendance exception F.

As an optional implementation, the generating module 205 includes:

the third acquisition sub-module is used for acquiring basic information of a user and a plurality of attendance abnormal time from the attendance abnormal basic information;

the third determining submodule is used for determining a plurality of leave-on time according to the attendance checking abnormal time;

the calculation submodule is used for calculating the total leave asking time length according to the leave asking time;

and the second generation submodule is used for generating a first leave-asking form according to the basic information, the plurality of leave-asking times and the leave-asking total duration.

The first leave-asking form is a leave-asking form, and the attendance anomalies can be combined, so that the attendance anomalies can be combined to generate a leave-asking form, and meanwhile, a leave-asking form is submitted.

The system creates a task for each leave form to process, wherein each task corresponds to one process or one thread, and each process comprises one or more threads. The process is a basic unit of system allocation resources in the execution process of a program, is a dynamic concept, contends for the basic unit of computer system resources, and each process has an address space of the process, namely the system needs to allocate memory resources to the process; a thread, which is a part of a process, can be considered as a single thread without a thread, which is sometimes referred to as a lightweight process or a lightweight process, and is a basic unit of CPU scheduling.

In this optional embodiment, the basic information of the user and the multiple attendance abnormal times may be obtained from the attendance abnormal basic information, where the multiple attendance abnormal times may be determined as leave-asking times, the leave-asking times are multiple, and the total leave-asking time duration may be calculated by adding the durations of the multiple leave-asking times. And then, a new leave request form can be created, and the basic information, the plurality of leave request times and the total leave request duration are added into the new leave request form to generate a first leave request form. Therefore, a plurality of leave request forms do not need to be submitted and examined, and only one leave request form needs to be submitted and examined, so that the number of leave request forms is reduced, namely the number of tasks for processing the leave request forms by the system is reduced, the number of processes or threads is reduced, and system resources are saved.

As an optional implementation manner, the receiving module 201 is further configured to receive attendance login information input by a user;

the leave form generation device comprises:

the verification module is used for verifying the attendance login information;

the obtaining module 202 is further configured to obtain attendance information of the user after the attendance login information passes verification;

the third judgment module is used for judging whether the attendance checking information contains the basic attendance checking abnormal information;

the output module 206 is further configured to output an attendance exception matched with the attendance exception basic information if the attendance exception basic information exists in the attendance information.

The attendance logging-in information comprises a user account and a password.

The attendance information comprises basic attendance abnormal information and basic attendance normal information.

In this optional implementation, attendance logging information input by a user may be received, if the attendance logging information is verified, the attendance information of the user may be queried from the database, and if the basic attendance abnormality information is found in the attendance information, the attendance abnormality matched with the basic attendance abnormality information may be output to a corresponding interface/page of the attendance system. Aiming at the attendance abnormity output to the corresponding interface/page of the attendance system, the user can select to trigger and generate the attendance abnormity selection instruction.

In the leave form generation apparatus depicted in fig. 2, an input attendance exception selection instruction may be received; acquiring basic attendance abnormality information according to the attendance abnormality selection instruction; further, whether the attendance abnormity selection instruction comprises a plurality of attendance abnormity is judged; if the attendance abnormity selection instruction comprises a plurality of attendance abnormity, acquiring attendance abnormity types and attendance abnormity time from the attendance abnormity basic information; judging whether the attendance abnormalities can be merged or not according to the attendance abnormality types and the attendance abnormality time; if the attendance anomalies can be combined, generating a first leave-asking form matched with the attendance anomalies according to the basic attendance anomaly information; and finally, outputting the first leave form. Therefore, when the staff selects a plurality of attendance exceptions, the attendance exceptions can be combined to generate an leave-on form, and then only one leave-on form needs to be submitted for the attendance exceptions when approval is submitted, so that the form task number processed by the system is reduced, namely, the process and the thread are reduced, and the system resources are saved.

As shown in fig. 3, fig. 3 is a schematic structural diagram of a server according to a preferred embodiment of the present invention for implementing the leave form generation method. The server 3 comprises a memory 31, at least one processor 32, a computer program 33 stored in the memory 31 and executable on the at least one processor 32, and at least one communication bus 34.

It will be appreciated by those skilled in the art that the schematic diagram shown in fig. 3 is merely an example of the server 3, and does not constitute a limitation of the server 3, and may include more or less components than those shown, or combine some components, or different components, for example, the server 3 may further include input and output devices, network access devices, etc.

The at least one Processor 32 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The processor 32 may be a microprocessor or the processor 32 may be any conventional processor or the like, and the processor 32 is a control center of the server 3 and connects the various parts of the entire server 3 by various interfaces and lines.

The memory 31 may be used to store the computer program 33 and/or the module/unit, and the processor 32 implements various functions of the server 3 by running or executing the computer program and/or the module/unit stored in the memory 31 and calling data stored in the memory 31. The memory 31 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data) created according to the use of the server 3, and the like. Further, the memory 31 may include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other non-volatile solid state storage device.

With reference to fig. 1, the memory 31 in the server 3 stores a plurality of instructions to implement a method for generating a leave form, and the processor 32 can execute the plurality of instructions to implement:

receiving an input attendance abnormity selection instruction;

acquiring basic attendance abnormality information according to the attendance abnormality selection instruction;

judging whether the attendance abnormity selection instruction comprises a plurality of attendance abnormity;

if the attendance abnormity selection instruction comprises a plurality of attendance abnormity, acquiring attendance abnormity types and attendance abnormity time from the attendance abnormity basic information;

judging whether the attendance abnormalities can be merged or not according to the attendance abnormality types and the attendance abnormality time;

if the attendance anomalies can be combined, generating a first leave-asking form matched with the attendance anomalies according to the basic attendance anomaly information;

and outputting the first leave form.

Specifically, the processor 32 may refer to the description of the relevant steps in the embodiment corresponding to fig. 1 for a specific implementation method of the instruction, which is not described herein again.

In the server 3 depicted in fig. 3, an input attendance exception selection instruction may be received; acquiring basic attendance abnormality information according to the attendance abnormality selection instruction; further, whether the attendance abnormity selection instruction comprises a plurality of attendance abnormity is judged; if the attendance abnormity selection instruction comprises a plurality of attendance abnormity, acquiring attendance abnormity types and attendance abnormity time from the attendance abnormity basic information; judging whether the attendance abnormalities can be merged or not according to the attendance abnormality types and the attendance abnormality time; if the attendance anomalies can be combined, generating a first leave-asking form matched with the attendance anomalies according to the basic attendance anomaly information; and finally, outputting the first leave form. Therefore, when the staff selects a plurality of attendance exceptions, the attendance exceptions can be combined to generate an leave-on form, and then only one leave-on form needs to be submitted for the attendance exceptions when approval is submitted, so that the form task number processed by the system is reduced, namely, the process and the thread are reduced, and the system resources are saved.

The modules/units integrated with the server 3 may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as separate products. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying said computer program code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM).

In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.

The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.

In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.

It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the system claims may also be implemented by one unit or means in software or hardware. The terms second, etc. are used to denote names, but not any particular order.

Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

19页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种报表生成方法、装置及设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!