Method, device, computer equipment and storage medium for generating document tasks

By receiving the message queue message of the attendance system, the overtime conditions are judged and the to-do message is pushed. After the user confirms, the overtime application document is automatically generated, which solves the problem of low efficiency of document task generation in the existing technology and realizes efficient and accurate document task generation. .

CN113034106BActive Publication Date: 2024-10-18SHENZHEN YUNZHIJIA NETWORK CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202110324857.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-26
Publication Date
2024-10-18
Estimated Expiration
2041-03-26

AI Technical Summary

Technical Problem

The existing method of generating document tasks is inefficient. Users need to manually edit overtime information, and the data saved by the memory function may not be suitable for the current scenario, resulting in repeated operations.

Method used

By receiving the message queue message of the attendance system, it parses the user information and check-out time information to determine whether the preset overtime conditions are met, generates a to-do message and pushes it to the user. After the user confirms, the overtime application document is automatically generated to avoid manual editing.

Benefits of technology

The efficiency of document task generation has been improved. Users only need to confirm the submission to achieve automatic generation. The accuracy and efficiency of overtime application documents have been greatly improved, avoiding repeated manual operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113034106B_ABST
    Figure CN113034106B_ABST
Patent Text Reader

Abstract

The present application relates to a method, device, computer equipment and storage medium for generating a document task. The method comprises: receiving a message sent by an attendance system through a message queue, parsing user information and attendance information according to the message; the attendance information comprises check-in time information and check-out time information; judging whether the attendance information meets the preset overtime conditions according to the check-out time information; if the preset overtime conditions are met, generating a to-do message, and pushing the to-do message to the user corresponding to the user information; when receiving a document confirmation instruction sent by the user, generating a corresponding overtime application document. The use of this method can effectively improve the efficiency of generating document tasks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, device, computer equipment and storage medium for generating a document task. Background Art

[0002] With the development of computer technology and the advent of the 5G era, the emergence of the Internet has brought great convenience to modern life. More and more companies can use the system business platform to process a variety of businesses online, bringing convenience to users. In the current information system, when a user needs to submit an overtime application document task, the corresponding overtime application document can be manually initiated in the approval system.

[0003] However, in the current document task generation method, a memory function is usually used to realize the declaration of overtime documents, that is, the system remembers the content filled in the user form last time. When the user initiates an overtime application document again, the user's personal information and overtime start time are automatically integrated into the overtime application document. However, in the actual operation process, due to different actual overtime scenarios, the data saved by the memory function is not necessarily the data currently required by the user. The user still needs to perform manual operations again, which easily leads to low efficiency in generating document tasks. Summary of the invention

[0004] Based on this, it is necessary to provide a method, apparatus, computer device and storage medium for generating document tasks that can improve the efficiency of generating document tasks in response to the above technical problems.

[0005] A method for generating a document task, the method comprising:

[0006] Receive a message sent by the attendance system through a message queue, and parse the message to obtain user information and attendance information; the attendance information includes check-in time information and check-out time information;

[0007] According to the sign-out time information, determining whether the attendance information meets the preset overtime conditions;

[0008] If the preset overtime conditions are met, a to-do message is generated and pushed to the user corresponding to the user information;

[0009] When the document confirmation instruction sent by the user is received, a corresponding overtime application document is generated.

[0010] In one embodiment, after the preset overtime conditions are met, the method further includes:

[0011] Check whether there is a pending message that has been pushed to the user corresponding to the user information;

[0012] If it does not exist, execute the step of generating a to-do message.

[0013] In one embodiment, the preset overtime conditions include working day overtime conditions and holiday overtime conditions;

[0014] The step of judging whether the attendance information meets the preset overtime conditions according to the sign-out time information includes:

[0015] According to the sign-out time information, it is determined whether the attendance information meets the overtime conditions on weekdays; or according to the sign-out time information, it is determined whether the attendance information meets the overtime conditions on holidays.

[0016] In one embodiment, judging whether the attendance information meets the working day overtime conditions according to the sign-out time information includes:

[0017] According to the sign-out time information, it is determined whether the attendance information is within a preset working day overtime time range.

[0018] In one embodiment, when receiving the document confirmation instruction sent by the user, generating a corresponding overtime application document includes:

[0019] When receiving the document confirmation instruction sent by the user, the corresponding identity authentication information is generated and sent to the approval system;

[0020] Receiving a remote procedure call message sent by the approval system according to the to-do message;

[0021] According to the remote procedure call message, the attendance information corresponding to the pending message is returned to the approval system to instruct the approval system to fill in the overtime information and identity information in the overtime application document according to the identity authentication information and the attendance information, and generate the corresponding overtime application document.

[0022] In one embodiment, after generating the corresponding overtime application form, the method further includes:

[0023] Returning the overtime application form to the user corresponding to the user information;

[0024] When the modification instruction sent by the user is received, the overtime application document is modified accordingly.

[0025] In one embodiment, the corresponding modification of the overtime application document includes:

[0026] When the overtime time corresponding to the modification instruction matches the time interval information between the check-in time information and the check-out time information corresponding to the pending message, the overtime application document is modified accordingly;

[0027] Otherwise, a message indicating that the modification failed is returned.

[0028] A device for generating a document task, the device comprising:

[0029] A receiving module, used to receive messages sent by the attendance system through a message queue, and parse the messages to obtain user information and attendance information; the attendance information includes check-in time information and check-out time information;

[0030] A judgment module, used to judge whether the attendance information meets the preset overtime conditions according to the sign-out time information;

[0031] A push module, used for generating a to-do message if the preset overtime conditions are met, and pushing the to-do message to the user corresponding to the user information;

[0032] The generating module is used to generate a corresponding overtime application document when receiving a document confirmation instruction sent by the user.

[0033] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0034] Receive a message sent by the attendance system through a message queue, and parse the message to obtain user information and attendance information; the attendance information includes check-in time information and check-out time information;

[0035] According to the sign-out time information, determining whether the attendance information meets the preset overtime conditions;

[0036] If the preset overtime conditions are met, a to-do message is generated and pushed to the user corresponding to the user information;

[0037] When the document confirmation instruction sent by the user is received, a corresponding overtime application document is generated.

[0038] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:

[0039] Receive a message sent by the attendance system through a message queue, and parse the message to obtain user information and attendance information; the attendance information includes check-in time information and check-out time information;

[0040] According to the sign-out time information, determining whether the attendance information meets the preset overtime conditions;

[0041] If the preset overtime conditions are met, a to-do message is generated and pushed to the user corresponding to the user information;

[0042] When the document confirmation instruction sent by the user is received, a corresponding overtime application document is generated.

[0043] The method, device, computer equipment and storage medium for generating the above-mentioned document task receive messages sent by the attendance system through the message queue, and parse the user information and attendance information according to the messages, and the attendance information includes the sign-in time information and the sign-out time information. According to the sign-out time information, it is judged whether the attendance information meets the preset overtime conditions. If it meets the preset overtime conditions, a to-do message is generated, and the to-do message is pushed to the user corresponding to the user information. When the document confirmation instruction sent by the user is received, the corresponding overtime application document is generated. As a result, through the processing logic of intelligently judging whether to generate an overtime application form, the user only needs to confirm the submission operation to realize the automatic generation of the corresponding overtime application form, without the user manually editing any overtime information, avoiding the repetitive work of the user manually filling in the overtime information according to different overtime scenarios, thereby effectively improving the generation efficiency of the document task. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 It is an application environment diagram of a method for generating a document task in an embodiment;

[0045] Figure 2 A schematic diagram of a process for generating a document task in an embodiment;

[0046] Figure 3 It is a flowchart of the steps of generating a corresponding overtime application document when a document confirmation instruction sent by a user is received in one embodiment;

[0047] Figure 4 A flowchart of the steps for modifying an overtime application document in an embodiment;

[0048] Figure 5A It is a flowchart of a method for generating a document task in another embodiment;

[0049] Figure 5B A schematic diagram of a process for generating an overtime application document in one embodiment;

[0050] Figure 5C A schematic diagram of a system processing flow for generating an overtime application document in one embodiment;

[0051] Figure 5DA schematic diagram of an interface of an overtime application document generated in one embodiment;

[0052] Figure 6 It is a structural block diagram of a device for generating a document task in one embodiment;

[0053] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0055] The method for generating a document task provided in this application can be applied to Figure 1 In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The terminal 102 performs a sign-in operation or a sign-out operation in a preset area, and the attendance system receives the sign-in information or sign-out information sent by the terminal 102 for processing. The server 104 receives the message sent by the attendance system through the message queue, and the server 104 parses the user information and attendance information according to the message, and the attendance information includes the sign-in time information and the sign-out time information. The server 104 determines whether the attendance information meets the preset overtime conditions based on the sign-in time information. If the preset overtime conditions are met, the server 104 generates a to-do message and pushes the to-do message to the user corresponding to the user information. When the server 104 receives the document confirmation instruction sent by the user, the corresponding overtime application document is generated. Among them, the terminal 102 can be but is not limited to various personal computers, laptops, smart phones, tablet computers and portable wearable devices, and the server 104 can be implemented with an independent server or a server cluster composed of multiple servers.

[0056] In one embodiment, Figure 2 As shown, a method for generating a document task is provided, and the method is applied to Figure 1 The server in the example is used to illustrate the following steps:

[0057] Step 202, receiving a message sent by the attendance system through a message queue, parsing the message to obtain user information and attendance information, the attendance information including sign-in time information and sign-out time information.

[0058] Each enterprise can manage all resources and information in the enterprise and the external supply chain in a unified manner by adopting a unified business management information platform. This integration can eliminate various information barriers and information islands caused by departmental divisions within the enterprise. For example, multiple systems with different functions can be deployed on the server, including attendance systems, to-do systems, and approval systems. Specifically, when the user terminal enters the sign-in (sign-out) area set by the system, the user can sign in or sign out through the mobile terminal. The attendance system receives the sign-in information or sign-out information sent by the user terminal for processing. The attendance system encapsulates the valid sign-in records and user information and sends an MQ message to the server background. The server receives the MQ message sent by the attendance system through the message queue, and parses the user information and attendance information according to the MQ message. The attendance information includes sign-in time information and sign-out time information. The attendance information can also include attendance shift information, attendance group information, etc. Among them, the attendance system refers to a system for recording and processing attendance information. The message queue (MQ for short) is a container for storing messages during the transmission of messages. Message queues can be deployed on cloud platforms, mainly providing the reception and sending of messages. When faced with a large amount of task information, message queues can smooth out the peaks and valleys of messages. User information can include the organizational structure information to which the user belongs, user role information, and user identification information. Sign-in time information refers to sign-in information when working, and sign-out time information refers to sign-out information when leaving get off work.

[0059] Step 204: determine whether the attendance information meets the preset overtime conditions based on the sign-in / out time information.

[0060] After the server parses the user information and attendance information according to the message sent by the attendance system, the server can judge whether the attendance information meets the preset overtime conditions according to the sign-out time information in the attendance information. Among them, the preset overtime conditions can be the corresponding overtime rules set in advance according to the organizational structure and personnel roles. For example, the overtime rules can be divided into overtime rules for weekdays and overtime rules for holidays. Specifically, after the server parses the user information and attendance information according to the message sent by the attendance system, the server can judge whether the attendance information meets the preset overtime conditions according to the sign-out time information in the attendance information. Assuming that the server parses the user information according to the message sent by the attendance system as: user A, the attendance information is: sign-in time 9:00 on Wednesday, weekday, sign-out time 22:00, then the server can judge whether the attendance information meets the preset overtime conditions according to the sign-out time information 22:00 in the attendance information. Since a complete attendance information includes sign-in information and sign-out information, only when the system obtains the sign-out information, it triggers the judgment of whether the attendance information meets the preset overtime conditions.

[0061] Step 206: If the preset overtime conditions are met, a to-do message is generated and pushed to the user corresponding to the user information.

[0062] According to the sign-in and sign-out time information in the attendance information, if the server determines that the attendance information meets the preset overtime conditions, a to-do message is generated and the to-do message is pushed to the user corresponding to the user information. Among them, the to-do message refers to a message used to remind the user of matters that need to be handled. For example, the system can push the task information that needs to be handled by the user to the message list in the form of to-do, and the user can enter the corresponding application to complete the processing after clicking the to-do message. Specifically, after the server determines that the attendance information meets the preset overtime conditions according to the sign-in and sign-out time information in the attendance information, the server can calculate whether the to-do message of overtime application has been sent to the to-do system on the day. If it has been pushed, this instruction is ignored. If it has not been pushed, a unique to-do key is generated and the to-do message is pushed to the to-do system. After receiving the to-do information, the to-do system generates a corresponding prompt message to prompt the user. For example, the to-do message can be displayed as a red dot to prompt the user to handle it. Among them, the to-do key refers to the string corresponding to the to-do message, which can identify the user information and attendance information.

[0063] Step 208: When a document confirmation instruction sent by the user is received, a corresponding overtime application document is generated.

[0064] After the server pushes the pending message to the user corresponding to the user information, when the server receives the document confirmation instruction sent by the user, it generates the corresponding overtime application document. Among them, the overtime application document refers to the document used to approve the overtime application. The auditor can review and process the employee's overtime information and salary based on the overtime application document. Specifically, after the server pushes the pending message to the user corresponding to the user information, the server responds to the user's operation. If the user triggers the ignore instruction, the pending message is cleared. If the user triggers the confirmation instruction, it jumps to the approval system and carries the user identity authentication information through the token (Token, computer terminology). Among them, Token means token (temporary) in computer identity authentication and means tag in lexical analysis. It is generally used as an invitation and login system. Token is a string of characters generated by the server as a token for the client to request. After the first login, the server generates a Token and returns this Token to the client. In the future, the client only needs to bring this Token to request data without bringing the username and password again. The approval system is based on the authentication of tokens, that is, the approval system parses the user identity information from the token, and according to the unique key carried by the to-do message, sends an RPC request to the server backend to call the attendance information corresponding to the key of this to-do message. That is, the approval system sends an RPC call to the server backend to obtain the attendance information corresponding to the key of this to-do message. Among them, RPC is the abbreviation of Remote Procedure Call. The principle of RPC call in SAP system is actually very simple. There are some C / S systems similar to the three-tier architecture. The third-party client program calls the standard or custom function inside SAP through the interface, obtains the data returned by the function, processes it, and then displays or prints it. After the approval system obtains the attendance information corresponding to the key of this to-do message from the server backend by sending an RPC call request, the approval system automatically fills in the corresponding form information (user identity information, overtime start time and end time, etc.) and displays it. When the user confirms the information in the form, the user can choose to save it as a draft, or submit the process with one click to automatically generate an overtime application form. In addition, after the approval system automatically generates an overtime application form, the user can also modify it on the page of the automatically generated overtime application form, that is, the user is supported to modify it again, but the modification range of the overtime time is limited to the time interval of the actual attendance information obtained from the server background (that is, the time interval between the actual sign-in information and the sign-out information).

[0065] In the traditional document task generation method, the memory function is usually used to realize the declaration of overtime documents, that is, the system remembers the content filled in the user form last time. When the user initiates the overtime application document again, the user's personal information and overtime start time are automatically integrated into the overtime application document. However, in the actual operation process, even if the user can automatically remember the form data of the last time when initiating the overtime application document, it is still inevitable to need manual operation. If the user wants to submit an accurate overtime application document, he still needs to enter the attendance system to check the actual attendance time. In this embodiment, by receiving the message sent by the attendance system through the message queue, the user information and attendance information are parsed according to the message, and the attendance information includes the sign-in time information and the sign-out time information. According to the sign-out time information, it is judged whether the attendance information meets the preset overtime conditions. If it meets the preset overtime conditions, a to-do message is generated, and the to-do message is pushed to the user corresponding to the user information. When the document confirmation instruction sent by the user is received, the corresponding overtime application document is generated. As a result, through the intelligent judgment of whether to generate an overtime application form, the user only needs to confirm the submission operation to automatically generate the corresponding overtime application form. The user does not need to manually edit any overtime information, avoiding the cumbersome process of overtime application, and realizing a more intelligent, accurate and efficient automatic generation of corresponding document tasks, greatly improving the efficiency of document task generation.

[0066] In one embodiment, after the preset overtime conditions are met, the method further includes the step of checking whether there is a to-do message that has been pushed to the user corresponding to the user information, specifically including:

[0067] Check whether there are any pending messages that have been pushed to the user corresponding to the user information.

[0068] If it does not exist, execute the steps to generate a to-do message.

[0069] The server determines whether the attendance information meets the preset overtime conditions based on the sign-in and sign-out time information in the attendance information. After the server determines that the attendance information meets the preset overtime conditions, the server also needs to check whether there is a to-do message that has been pushed to the user corresponding to the user information. Specifically, the server can check whether there is a to-do message that has been pushed to the user corresponding to the user information. If not, the step of generating a to-do message is executed. For example, the attendance system encapsulates the valid sign-in record and user information and sends an MQ message to the cloud platform. After the cloud platform receives the MQ information sent by the attendance system, it parses the user information and attendance information according to the MQ information and stores it persistently. Furthermore, the cloud platform determines whether the attendance information meets the preset overtime conditions based on the sign-in and sign-out time information in the attendance information. After the cloud platform determines that the attendance information meets the preset overtime conditions, the cloud platform calculates whether an overtime application to-do message has been sent to the cloud platform to-do system on that day. If the to-do message has been pushed, this instruction will be ignored. If it has not been pushed, the cloud platform can generate a to-do message according to the preset overtime conditions, that is, generate a unique to-do key, and push the to-do message to the user corresponding to the user information. As a result, the processing logic of intelligently judging whether to generate an overtime application form can avoid the hidden danger of employees forgetting to submit overtime applications due to busy work. At the same time, it can also avoid repeated message pushes and prevent employees from repeatedly submitting applications for approval, which greatly saves the time of both the approver and the employee, thereby effectively improving the processing efficiency of reviewing employee overtime information.

[0070] In one embodiment, the preset overtime conditions include working day overtime conditions and holiday overtime conditions. The step of judging whether the attendance information meets the preset overtime conditions according to the sign-out time information includes:

[0071] According to the sign-in and sign-out time information, it is determined whether the attendance information meets the overtime conditions on weekdays; or according to the sign-in and sign-out time information, it is determined whether the attendance information meets the overtime conditions on holidays.

[0072] After the server parses the user information and attendance information according to the message sent by the attendance system, the server can determine whether the attendance information meets the preset overtime conditions according to the sign-out time information in the attendance information. The preset overtime conditions include weekday overtime conditions and holiday overtime conditions. The server can determine whether the attendance information meets the weekday overtime conditions according to the sign-out time information; or the server can determine whether the attendance information meets the holiday overtime conditions according to the sign-out time information. The preset overtime conditions can be corresponding overtime rules pre-set according to the organizational structure.

[0073] For example, an enterprise sets the overtime conditions for working days as 18:00-23:00 from Monday to Friday, and the overtime conditions for holidays as 10:00-23:00. The user information parsed by the server based on the message sent by the attendance system is user A, and the attendance information is Monday 9:00-22:00. The server can determine whether the attendance information meets the preset working day overtime conditions based on the sign-out time information 22:00 in the attendance information, that is, Monday 9:00-22:00 meets the preset working day overtime conditions (the range of 18:00-23:00 from Monday to Friday), then the server determines that the attendance information meets the preset working day overtime conditions. If the user information parsed by the server from the message sent by the attendance system is user A, and the attendance information is 9:00-22:00 on Sunday, the server can judge whether the attendance information meets the preset holiday overtime conditions based on the sign-out time information 22:00 in the attendance information, that is, 9:00-22:00 on Sunday meets the preset holiday overtime conditions (10:00-23:00), then the server judges that the attendance information meets the preset holiday overtime conditions. As a result, through the processing logic of intelligently judging whether to generate an overtime application form, the approval personnel can understand the overtime situation more intuitively, and there is no need for the review personnel to enter the sign-in system again to repeatedly check the sign-in information (or sign-out information), which greatly improves the efficiency of employees in initiating overtime application documents, and also effectively improves the processing efficiency of reviewing employees' overtime information.

[0074] In one embodiment, the step of determining whether the attendance information meets the working day overtime conditions according to the sign-out time information includes:

[0075] Based on the sign-in and sign-out time information, determine whether the attendance information is within the preset working day overtime time range.

[0076] After the server parses the user information and attendance information according to the message sent by the attendance system, the server can judge whether the attendance information meets the preset overtime conditions according to the sign-out time information in the attendance information. Specifically, when the server judges whether the attendance information meets the working day overtime conditions, the server can judge whether the attendance information is within the preset working day overtime time range according to the sign-out time information. For example, the working day overtime conditions set by a certain enterprise are Monday to Friday 18:00-23:00, and the user information parsed by the server according to the message sent by the attendance system is user A, and the attendance information is Monday 9:00-22:00. Then the server can judge whether the attendance information meets the preset working day overtime time range according to the sign-out time information 22:00 in the attendance information, that is, Monday 9:00-22:00 meets the preset working day time range (Monday to Friday 18:00-23:00 range), and the server judges that the attendance information meets the preset working day overtime conditions. If the user information parsed by the server from the message sent by the attendance system is user A, and the attendance information is Monday 9:00-18:00, the server can judge whether the attendance information meets the preset working day overtime time range based on the sign-out time information 18:00 in the attendance information, that is, Monday 9:00-18:00 does not meet the preset working day time range (Monday to Friday 18:00-23:00 range), then the server judges that the attendance information does not meet the preset working day overtime conditions. As a result, through the processing logic of intelligently judging whether to generate an overtime application form, there is no need for users to manually edit any overtime information, avoiding the need for users to manually fill in overtime information according to different overtime scenarios. The repetitive work of filling in overtime information manually, thereby effectively improving the efficiency of document task generation.

[0077] In one embodiment, Figure 3 As shown, when a document confirmation instruction sent by a user is received, the steps of generating a corresponding overtime application document include:

[0078] Step 302: When a document confirmation instruction is received from a user, corresponding identity authentication information is generated and sent to the approval system.

[0079] Step 304: receiving a remote procedure call message sent by the approval system according to the pending message.

[0080] Step 306, according to the remote procedure call message, returns the attendance information corresponding to the pending message to the approval system, so as to instruct the approval system to fill in the overtime information and identity information in the overtime application document according to the identity authentication information and attendance information, and generate the corresponding overtime application document.

[0081] After the server pushes the to-do message to the user corresponding to the user information, when the server receives the document confirmation instruction sent by the user, the corresponding overtime application document is generated. Specifically, when the server receives the document confirmation instruction sent by the user, the corresponding identity authentication information is generated (the user identity authentication information is carried by the token) and sent to the approval system. The server receives the remote procedure call message sent by the approval system according to the to-do message. That is, the approval system can parse the user identity information from the token, and send an RPC request to the server background according to the unique key carried by the to-do message, and call the attendance information corresponding to the key of this to-do message. That is, the approval system sends an RPC call to the attendance information corresponding to the key of this to-do message in the server. The server can return the attendance information corresponding to the to-do message to the approval system according to the remote procedure call message, so as to instruct the approval system to fill in the overtime information and identity information in the overtime application document according to the identity authentication information and attendance information, and generate the corresponding overtime application document. That is, after the server returns the attendance information corresponding to the key of this pending message to the approval system based on the received RPC call request, the approval system automatically fills in the corresponding form information (user identity information, overtime start time and end time, etc.) and displays it. After the user confirms the information in the form, the user can choose to save it as a draft, or submit the process with one click to automatically generate an overtime application form. As a result, by using Token authentication technology, the user only needs to confirm the submission operation to automatically generate the corresponding overtime application form, without the need for the user to manually edit any overtime information, avoiding the situation where the overtime time manually filled in by the user on the application form is inconsistent with the actual overtime time, and effectively improving the accuracy of document task generation.

[0082] In one embodiment, after generating the corresponding overtime application document, the method further includes the step of modifying the overtime application document accordingly, specifically including:

[0083] Return the overtime application document to the user corresponding to the user information.

[0084] When receiving the modification instruction sent by the user, the overtime application document will be modified accordingly.

[0085] After the server generates the corresponding overtime application document according to the document confirmation instruction sent by the user, the server can return the overtime application document to the user corresponding to the user information. When the server receives the modification instruction sent by the user, it will modify the overtime application document accordingly. Specifically, after the approval system automatically generates the overtime application form, the user can modify it in the page of the automatically generated overtime application form, that is, the user is supported to modify it again. The user can send a modification instruction to the approval system. The approval system can determine whether to make corresponding modifications to the overtime application document based on the user identity information parsed from the token and the attendance information returned by the RPC call request. As a result, by utilizing Token authentication technology, the user only needs to confirm the submission operation to automatically generate the corresponding overtime application form, without the user manually editing any overtime information. At the same time, it also avoids the situation where the overtime time of the application document manually modified by the user is inconsistent with the actual overtime time, effectively improving the accuracy of document task generation.

[0086] In one embodiment, if Figure 4 As shown in the figure, the steps to modify the overtime application document accordingly include:

[0087] Step 402: When the overtime time corresponding to the modification instruction matches the time interval information between the check-in time information and the check-out time information corresponding to the pending message, the overtime application document is modified accordingly.

[0088] Step 404: Otherwise, a prompt message indicating that the modification failed is returned.

[0089] After the approval system automatically generates an overtime application form, the user can modify it on the page that automatically generates the overtime application form, that is, the user is supported to modify it again. The user can send a modification instruction to the approval system. The approval system can determine whether to make corresponding modifications to the overtime application document based on the user identity information parsed from the token and the attendance information returned by the RPC call request. Specifically, when the approval system determines that the overtime time corresponding to the modification instruction is consistent with the time interval information between the check-in time information and the check-out time information corresponding to the pending message, the overtime application document is modified accordingly. Otherwise, the approval system returns a prompt message indicating that the modification failed to the user terminal. As a result, by using Token authentication technology, the situation where the overtime time of the application document manually modified by the user is inconsistent with the actual overtime time is avoided, and the accuracy of document task generation is effectively improved.

[0090] In one embodiment, Figure 5A As shown, a method for generating a document task is provided, and the method is applied to Figure 1 The server in the example is used to illustrate the following steps:

[0091] Step 502: Receive a message sent by the attendance system through a message queue, and parse the message to obtain user information and attendance information, where the attendance information includes sign-in time information and sign-out time information.

[0092] Step 504, judging whether the attendance information meets the overtime conditions on weekdays according to the sign-out time information; or judging whether the attendance information meets the overtime conditions on holidays according to the sign-out time information.

[0093] Step 506, if the preset overtime conditions are met, check whether there is a to-do message that has been pushed to the user corresponding to the user information. If not, generate a to-do message and push the to-do message to the user corresponding to the user information.

[0094] Step 508: When receiving the document confirmation instruction sent by the user, the corresponding identity authentication information is generated and sent to the approval system.

[0095] Step 510: receiving a remote procedure call message sent by the approval system according to the pending message.

[0096] Step 512, according to the remote procedure call message, returns the attendance information corresponding to the pending message to the approval system, so as to instruct the approval system to fill in the overtime information and identity information in the overtime application document according to the identity authentication information and attendance information, and generate the corresponding overtime application document.

[0097] like Figure 5B As shown, it is a flow chart of generating overtime application documents. The server (Yunzhijia backend) receives the message sent by the attendance system (sign-in system) through the message queue, and the server parses the user information and attendance information according to the message, and the attendance information includes the sign-in time information and the sign-out time information. The server judges whether the attendance information meets the overtime conditions on weekdays according to the sign-out time information; or judges whether the attendance information meets the overtime conditions on holidays according to the sign-out time information. If it meets the preset overtime conditions, the server checks whether there is a to-do message that has been pushed to the user corresponding to the user information. If not, the server generates a to-do message and pushes the to-do message to the user corresponding to the user information. When the server receives the document confirmation instruction sent by the user, it generates the corresponding identity authentication information and sends it to the approval system. The server receives the remote procedure call message sent by the approval system according to the to-do message. According to the remote procedure call message, the server returns the attendance information corresponding to the to-do message to the approval system to instruct the approval system to fill in the overtime information and identity information in the overtime application document according to the identity authentication information and attendance information, and generate the corresponding overtime application document.

[0098] like Figure 5CAs shown, it is a schematic diagram of the system processing flow for generating overtime application documents. Multiple systems with different functions can be deployed in the Yunzhijia server, such as a sign-in system, a to-do system, a Yunzhijia backend system, and an approval system. Among them, the approval system can also be a third-party system deployed on other servers. Specifically, the user (User) enters the sign-in area and calls the mobile phone positioning function to sign in. The sign-in system can obtain the sign-in information corresponding to the user, and the sign-in information may include the latitude and longitude (location coordinates) and sign-in time of the sign-in location. Furthermore, the sign-in system can process the acquired attendance information, encapsulate the valid sign-in record (or sign-out record) and user information, and send an MQ message to the Yunzhijia backend. The Yunzhijia backend consumes the MQ information sent by the sign-in system, parses the user information and sign-in information, and stores it persistently. The Yunzhijia backend determines whether an overtime application to-do message has been sent to the Yunzhijia to-do system on that day according to the preset logical rules. If it has been pushed, this instruction will be ignored. If it has not been pushed, the Yunzhijia backend will determine whether the attendance information meets the preset overtime conditions based on the attendance time information, that is, whether to push the to-do information to the to-do system. If it is determined that it meets the preset overtime conditions, a to-do message will be generated, that is, a unique to-do key will be generated and the to-do message will be pushed to the Yunzhijia to-do system. The Yunzhijia to-do system receives the to-do information and prompts the corresponding user with a red dot. The user can view the to-do message and perform corresponding operations. The Yunzhijia to-do system responds to the user's operation. If the user triggers the ignore instruction, the to-do message will be cleared. If the user triggers the confirmation instruction, it will jump to the approval system and carry the user identity authentication information through the token. The approval system parses the user identity information from the token, and sends an RPC call to the Yunzhijia backend through the unique key carried by the to-do message to obtain the attendance information corresponding to this to-do, where the attendance information can include overtime sign-in information, sign-out information and shift information. The approval system automatically fills in the form information (user identity information, overtime start time and end time), automatically generates the corresponding overtime application document, and generates a prompt message.

[0099] like Figure 5DThe figure shows the interface diagram of the generated overtime application form. In the interface of the automatically generated overtime application form, if the user clicks [Process Later], the system automatically saves the form to the draft box. The next time the user enters the intelligent approval system, the user can find the corresponding form by checking the draft box. The data is saved in the draft box. If a new sign-in or sign-out record appears during this period, the data is automatically updated. If the user clicks [Submit], the system automatically jumps to the intelligent approval page. After the user confirms the information, he can submit the process with one click. That is, after the user confirms the information, he can choose to save it as a draft, or submit the process with one click to automatically generate an overtime application form. In addition, after the approval system automatically generates the overtime application form, the user can also modify it in the page of the automatically generated overtime application form, that is, the user is supported to modify it again, but the modification range of the overtime time is limited to the range of the actual sign-in and sign-out time. As a result, users only need to confirm the pending information and overtime application information to automatically generate an overtime application form, and the information is true and valid. There is no need for reviewers to enter the sign-in system again to repeatedly check the sign-in information (or sign-out information), which greatly improves the efficiency of employees in initiating overtime application documents, and also effectively improves the efficiency of reviewing employee overtime information.

[0100] It should be understood that although Figure 1 The steps in the flowchart of -5 are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 -At least part of the steps in 5 may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the steps or stages in other steps.

[0101] In one embodiment, Figure 6 As shown, a device for generating a document task is provided, including: a receiving module 602, a judging module 604, a pushing module 606 and a generating module 608, wherein:

[0102] The receiving module 602 is used to receive the message sent by the attendance system through the message queue, and parse the message to obtain the user information and attendance information, where the attendance information includes the sign-in time information and the sign-out time information.

[0103] The judgment module 604 is used to judge whether the attendance information meets the preset overtime conditions according to the sign-out time information.

[0104] The push module 606 is used to generate a to-do message if the preset overtime conditions are met, and push the to-do message to the user corresponding to the user information.

[0105] The generating module 608 is used to generate a corresponding overtime application document when receiving a document confirmation instruction sent by the user.

[0106] In one embodiment, the device further includes: a viewing module.

[0107] The viewing module is used to check whether there is a to-do message that has been pushed to the user corresponding to the user information. If not, the step of generating the to-do message is executed.

[0108] In one embodiment, the judgment module is further used to judge whether the attendance information meets the working day overtime conditions according to the sign-out time information; or to judge whether the attendance information meets the holiday overtime conditions according to the sign-out time information.

[0109] In one embodiment, the judgment module is further used to judge whether the attendance information is within a preset working day overtime time range according to the sign-out time information.

[0110] In one embodiment, the device further includes: a sending module.

[0111] The generating module is also used to generate corresponding identity authentication information and send it to the approval system when receiving a document confirmation instruction sent by the user. The receiving module is also used to receive a remote procedure call message sent by the approval system according to the pending message. The sending module is used to return the attendance information corresponding to the pending message to the approval system according to the remote procedure call message, so as to instruct the approval system to fill in the overtime information and identity information in the overtime application document according to the identity authentication information and attendance information, and generate the corresponding overtime application document.

[0112] In one embodiment, the device further includes: a modification module.

[0113] The sending module is also used to return the overtime application form to the user corresponding to the user information. The modifying module is used to modify the overtime application form accordingly when receiving a modification instruction sent by the user.

[0114] In one embodiment, the modification module is also used to make corresponding modifications to the overtime application document when the overtime time corresponding to the modification instruction matches the time interval information between the check-in time information and the check-out time information corresponding to the pending message; otherwise, a prompt message indicating that the modification failed is returned.

[0115] The specific definition of the document task generation device can be found in the definition of the document task generation method above, which will not be repeated here. Each module in the above document task generation device can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0116] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 7 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store the generation data of the document task. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for generating a document task is implemented.

[0117] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0118] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the above-mentioned method embodiments when executing the computer program.

[0119] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0120] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0121] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A method for generating a document task, applied to a server, the method comprising: Receive messages sent by the attendance system through the message queue, and parse user information and attendance information according to the messages; The attendance information includes check-in time information and check-out time information; According to the sign-out time information, determining whether the attendance information meets the preset overtime conditions; If the preset overtime conditions are met, a to-do message is generated and pushed to the user corresponding to the user information; When the document confirmation instruction sent by the user is received, a corresponding overtime application document is generated, including: when the document confirmation instruction sent by the user is received, corresponding identity authentication information is generated and sent to the approval system; a remote procedure call message sent by the approval system according to the to-do message is received; according to the remote procedure call message, attendance information corresponding to the to-do message is returned to the approval system, so as to instruct the approval system to fill in the overtime information and identity information in the overtime application document according to the identity authentication information and the attendance information, and generate a corresponding overtime application document.

2. The method according to claim 1, characterized in that After the preset overtime conditions are met, the method further includes: Check whether there is a pending message that has been pushed to the user corresponding to the user information; If it does not exist, execute the step of generating a to-do message.

3. The method according to claim 1, characterized in that The preset overtime conditions include working day overtime conditions and holiday overtime conditions; The step of judging whether the attendance information meets the preset overtime conditions according to the sign-out time information includes: According to the sign-out time information, it is determined whether the attendance information meets the overtime conditions on weekdays; or according to the sign-out time information, it is determined whether the attendance information meets the overtime conditions on holidays.

4. The method according to claim 3, characterized in that The step of judging whether the attendance information meets the working day overtime conditions according to the sign-out time information includes: According to the sign-out time information, it is determined whether the attendance information is within a preset working day overtime time range.

5. The method according to claim 1, characterized in that After generating the corresponding overtime application document, the method further includes: Returning the overtime application form to the user corresponding to the user information; When the modification instruction sent by the user is received, the overtime application document is modified accordingly.

6. The method according to claim 5, characterized in that The corresponding modification of the overtime application document includes: When the overtime time corresponding to the modification instruction matches the time interval information between the check-in time information and the check-out time information corresponding to the pending message, the overtime application document is modified accordingly; Otherwise, a message indicating that the modification failed is returned.

7. A document task generation device, characterized in that: Applied to a server, the device comprises: A receiving module, used to receive messages sent by the attendance system through a message queue, and parse the messages to obtain user information and attendance information; the attendance information includes check-in time information and check-out time information; A judgment module, used to judge whether the attendance information meets the preset overtime conditions according to the sign-out time information; A push module, used for generating a to-do message if the preset overtime conditions are met, and pushing the to-do message to the user corresponding to the user information; A generating module, for generating a corresponding overtime application document when receiving a document confirmation instruction sent by the user, comprising: generating corresponding identity authentication information and sending it to the approval system when receiving a document confirmation instruction sent by the user; The receiving module is also used to receive a remote procedure call message sent by the approval system according to the to-do message; The sending module is used to return the attendance information corresponding to the to-do message to the approval system according to the remote procedure call message, so as to instruct the approval system to fill in the overtime information and identity information in the overtime application document according to the identity authentication information and the attendance information, and generate a corresponding overtime application document.

8. The document task generation device according to claim 7, characterized in that: The device also includes: The checking module is used to check whether there is a to-do message that has been pushed to the user corresponding to the user information; if not, the step of generating the to-do message is executed.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Method and device for pushing business information to be processed

    CN106331100A

  • PC (personal computer)-end attendance checking method and device

    CN108734801A

  • Overtime declaration method and storage medium

    CN110428234A

  • AI (artificial intelligence)-based automatic attendance recording method, device and equipment and storage medium

    CN110517365A

  • Attendance management method, server and computer readable storage medium

    CN110942282A