CN111126948A - Processing method and device for approval process - Google Patents

Processing method and device for approval process Download PDF

Info

Publication number
CN111126948A
CN111126948A CN201911213989.3A CN201911213989A CN111126948A CN 111126948 A CN111126948 A CN 111126948A CN 201911213989 A CN201911213989 A CN 201911213989A CN 111126948 A CN111126948 A CN 111126948A
Authority
CN
China
Prior art keywords
data
approval
modified
version number
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911213989.3A
Other languages
Chinese (zh)
Inventor
邹颖
崔海波
杜智铨
谢沙
陈欣
陆江平
梁明坚
丁水清
陈婉婉
王晓鹏
陈林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
CCB Finetech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN201911213989.3A priority Critical patent/CN111126948A/en
Publication of CN111126948A publication Critical patent/CN111126948A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5022Mechanisms to release resources
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/52Program synchronisation; Mutual exclusion, e.g. by means of semaphores
    • G06F9/524Deadlock detection or avoidance

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Human Resources & Organizations (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Engineering & Computer Science (AREA)
  • Economics (AREA)
  • Data Mining & Analysis (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a processing method and device for an approval process, and relates to the technical field of computers. Wherein, the method comprises the following steps: after receiving a data modification request of a user terminal, judging whether the data requested to be modified is locked; under the condition that the data requested to be modified is not locked, locking operation is carried out on the data requested to be modified, then the data requested to be modified is modified, and the lock is released after the modification is finished; and generating an approval task according to the modification information of the user terminal on the data, and sending the approval task to all approval terminals under the corresponding approval mechanism group. Through the steps, the examination and approval processing period can be shortened, the examination and approval efficiency is improved, and meanwhile the problem of preemption of the same data resource under the high concurrency condition in the examination and approval process can be solved.

Description

Processing method and device for approval process
Technical Field
The invention relates to the technical field of computers, in particular to a processing method and a processing device for an approval process.
Background
The creation and modification of form data in an enterprise typically requires multiple department personnel for approval. In the prior art, some specified approver often approves the form data created or modified by a plurality of users.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art: in the existing approval mode, if the approval requests are too many or the designated approver is not at the position, the approval process is possibly detained. Therefore, the existing approval mode has the defects of slow process flow speed, long approval processing period, low approval efficiency and the like; in addition, in the existing approval process, when a plurality of users request to modify data, the same data resource is preempted.
Disclosure of Invention
In view of this, the present invention provides a processing method and an apparatus for an approval process, which can shorten an approval processing period, improve approval efficiency, and solve a problem of preemption of the same data resource under a high concurrency condition in the approval process.
To achieve the above object, according to one aspect of the present invention, a processing method for an approval process is provided.
The processing method for the approval process comprises the following steps: after receiving a data modification request of a user terminal, judging whether the data requested to be modified is locked; under the condition that the data requested to be modified is not locked, locking operation is carried out on the data requested to be modified, then the data requested to be modified is modified, and the lock is released after the modification is finished; and generating an approval task according to the modification information of the user terminal on the data, and sending the approval task to all approval terminals under the corresponding approval mechanism group.
Optionally, the method further comprises: before the step of locking the data requested to be modified is executed, confirming that the data version number carried by the data modification request is consistent with the latest version number of the data to be modified in the server; and returning first prompt information to the user terminal under the condition that the data version number carried by the data modification request is inconsistent with the latest version number of the data to be modified in the server; and the first prompt message is used for indicating the user to modify the page again after the page is refreshed.
Optionally, the method further comprises: under the condition that the data requested to be modified is locked, returning second prompt information to the user terminal; wherein the second prompt message is used to indicate that the data is being modified by another user.
Optionally, the method further comprises: after receiving approval operation information which is submitted by an approval terminal and corresponds to the approval task, comparing a data version number carried by the approval operation information with the latest version number of the data to be approved in a server; and under the condition that the two are consistent, updating the approval state of the data to be approved in the database table according to the approval operation information.
Optionally, the method further comprises: under the condition that the data version number carried by the approval operation information is inconsistent with the latest version number of the data to be approved in the server, returning third prompt information to the approval terminal; and the third prompt information is used for indicating the examining and approving personnel to conduct examining and approving again after the page is refreshed.
To achieve the above object, according to another aspect of the present invention, there is provided a processing apparatus for an approval process.
The processing device for the approval process comprises the following components: the judging module is used for judging whether the data requested to be modified is locked or not after receiving a data modification request of the user terminal; the first data operation module is used for locking the data requested to be modified under the condition that the data requested to be modified is not locked, then modifying the data requested to be modified and releasing the lock after the modification is finished; and the sending module is used for generating an approval task according to the modification information of the user terminal on the data and sending the approval task to all approval terminals under the corresponding approval mechanism group.
Optionally, the apparatus further comprises: the first comparison module is used for confirming that the data version number carried by the data modification request is consistent with the latest version number of the data to be modified in the server side before the step of locking the data requested to be modified is executed by the modification module; the sending module is further configured to return first prompt information to the user terminal when the data version number carried in the data modification request is inconsistent with the latest version number of the data to be modified in the server; and the first prompt message is used for indicating the user to modify the page again after the page is refreshed.
Optionally, the apparatus further comprises: the second comparison module is used for comparing the data version number carried by the approval operation information with the latest version number of the data to be approved in the server after the approval operation information corresponding to the approval task submitted by the approval terminal is received; and the second data operation module is used for updating the approval state of the data to be approved in the database table according to the approval operation information under the condition that the data version number carried by the approval operation information is consistent with the latest version number of the data to be approved in the server side.
To achieve the above object, according to still another aspect of the present invention, there is provided an electronic apparatus.
The electronic device of the present invention includes: one or more processors; and storage means for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the processing method for an approval process of the present invention.
To achieve the above object, according to still another aspect of the present invention, there is provided a computer-readable medium.
The computer-readable medium of the invention, on which a computer program is stored, which, when being executed by a processor, implements the processing method for an approval process of the invention.
One embodiment of the above invention has the following advantages or benefits: after receiving a data modification request of a user terminal, judging whether the data requested to be modified is locked; under the condition that the data requested to be modified is not locked, locking operation is carried out on the data requested to be modified, then the data requested to be modified is modified, and the lock is released after the modification is finished; and generating an approval task according to the modification information of the data by the user terminal, and sending the approval task to all approval terminals under the grouping of corresponding approval mechanisms, so that the approval processing period can be shortened, the approval efficiency can be improved, and the problem of seizing the same data resource under the condition of high concurrency in the approval process can be solved.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
fig. 1 is a main flow diagram of a processing method for an approval flow according to a first embodiment of the present invention;
FIG. 2 is a schematic flow diagram of a portion of a processing method for an approval process according to a second embodiment of the present invention;
FIG. 3 is a schematic flow diagram of a portion of a processing method for an approval process according to a second embodiment of the present invention;
FIG. 4 is a schematic block diagram of a processing apparatus for an approval process according to a third embodiment of the present invention;
FIG. 5 is a schematic diagram of the main modules of a processing device for an approval process according to a fourth embodiment of the present invention;
FIG. 6 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
FIG. 7 is a block diagram of a computer system suitable for use with the electronic device to implement an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict.
Fig. 1 is a main flow diagram of a processing method for an approval flow according to a first embodiment of the present invention. As shown in fig. 1, a processing method for an approval process according to an embodiment of the present invention includes:
step S101, after receiving a data modification request of a user terminal, judging whether the data requested to be modified is locked.
Wherein the data modification request may include data modification information and the like. For example, in a human resource approval process (such as a leave approval process), the data modification information may be information for modifying a leave request time, a leave request duration, and the like.
In an alternative embodiment, the determining whether the data requested to be modified is locked may include: acquiring lock information corresponding to the data requested to be modified; if the lock information corresponding to the data requested to be modified is acquired, the data requested to be modified is considered to be locked; and if the lock information corresponding to the data requested to be modified is not acquired, the data requested to be modified is not locked. The lock information may be information such as an identification of a user who is modifying the data.
Step S102, under the condition that the data requested to be modified is not locked, locking operation is carried out on the data requested to be modified, then the data requested to be modified is modified, and the lock is released after the modification is completed.
In an optional embodiment, the locking the data requested to be modified may include: adding lock information to the data requested to be modified, for example, writing the identifier of the user currently requesting to modify the data into a lock field corresponding to the data; the releasing the lock after the modification is completed may include: after the data in the data table is modified, the identification of the user who currently requests to modify the data is deleted from the lock field corresponding to the data or is set as invalid.
And S103, generating an approval task according to the modification information of the user terminal on the data, and sending the approval task to all approval terminals under the corresponding approval mechanism group.
In one example, in response to a user clicking a trigger operation to submit modification information, the server may generate an approval task according to the data modification information. After the approval task is generated, the server side can query the approval hierarchical relationship table according to the user information (such as the user identification) requesting to modify the data, so as to obtain the corresponding approval mechanism group from the approval hierarchical relationship table, and then send the approval task to all approval terminals under the approval mechanism group. For example, in the process of the leave approval, after receiving the modification information about the leave approval submitted by the employee a, the server may generate a leave approval task, and send the leave approval task to all approval terminals of the approval mechanism corresponding to the employee a, such as an approval terminal B and an approval terminal C.
In the embodiment of the invention, the converted and audited position query after the transaction is submitted is developed by the organization latitude, namely all the personnel under the same organization can query the pending approval process submitted to the organization and also have the audit authority. Any personnel under the same approval mechanism group have the approval authority, so that the transition period of the approval process is greatly shortened, and the approval efficiency is improved; in addition, the problem of preemption of the same data resource under high concurrency conditions in an approval process can be solved by judging whether the data is locked or not before the data in the database table is modified and modifying the data after the data is locked.
Fig. 2 is a partial flow diagram of a processing method for an approval process according to a second embodiment of the present invention. The method of the embodiment of the invention can be executed by the user terminal, the server and the approval terminal together. Fig. 2 shows a partial flow executed by the user terminal and the server together in the embodiment of the present invention, which specifically includes:
step S201, the user terminal sends a data modification request to the server.
The data modification request may include data modification information, a data version number, and the like. For example, in the approval process of the application conference room, the data modification information may be information for modifying the time of applying for using the conference room, the number of the application conference room, and the like, and the data version number may be the version number of the application information of the conference room to be modified (i.e. the conference room information presented to the user by the terminal when the user performs this modification on the terminal).
Step S202, the server side judges whether the version numbers are consistent. If the determination result is yes, executing step S204; in the case where the determination result is no, step S203 is executed.
In this step, the step of the server side determining whether the version numbers are consistent specifically includes: and the server side judges whether the data version number carried by the data modification request is consistent with the latest version number of the data to be modified in the server side. If the two are not consistent, indicating that the data is modified by others in the process of modifying the data by the user, executing step S203; if the two are consistent, step S204 is executed.
Step S203, the server sends first prompt information to the user terminal.
And the first prompt message is used for indicating the user to modify the page again after the page is refreshed.
Step S204, the server side judges whether the data is locked. If the determination result is yes, step S205 is executed; in the case where the determination result is no, step S206 is executed.
In this step, the step of the server determining whether the data requested to be modified is locked may include: acquiring lock information corresponding to the data requested to be modified; if the lock information corresponding to the data requested to be modified is acquired, the data requested to be modified is considered to be locked; and if the lock information corresponding to the data requested to be modified is not acquired, the data requested to be modified is not locked. The lock information may be information such as an identification of a user who is modifying the data.
And step S205, the server side sends second prompt information to the user terminal.
Wherein the second prompt message is used to indicate that the data is being modified by another user. In specific implementation, the second prompt message may further include information such as the name and the job number of the user who is modifying the data.
And S206, locking the data by the server, modifying the data, and releasing the lock after the modification is finished.
In this step, the locking, by the server, the data requested to be modified may include: adding lock information to the data requested to be modified, for example, writing the identifier of the user currently requesting to modify the data into a lock field corresponding to the data; the server releasing the lock after the modification is completed may include: after the data in the data table is modified, the identification of the user who currently requests to modify the data is deleted from the lock field corresponding to the data or is set as invalid.
And S207, the server generates an approval task and sends the approval task to all approval terminals in the corresponding approval mechanism group.
In one example, in response to a user clicking a trigger operation to submit modification information, the server may generate an approval task according to the data modification information. After the approval task is generated, the server side can query the approval hierarchical relationship table according to the user information (such as the user identification) requesting to modify the data, so as to obtain the corresponding approval mechanism group from the approval hierarchical relationship table, and then send the approval task to all approval terminals under the approval mechanism group. For example, in the process of the leave approval, after receiving the modification information about the leave approval submitted by the employee a, the server may generate a leave approval task, and send the leave approval task to all approval terminals of the approval mechanism corresponding to the employee a, such as an approval terminal B and an approval terminal C.
In the embodiment of the invention, the converted and checked queries of the post submitted by various matters are all developed by the latitude of the organization, namely all the personnel under the same organization can inquire the pending approval process submitted to the organization and also have the checking authority. Any personnel under the same approval mechanism group have the approval authority, so that the transition period of the approval process is greatly shortened, and the approval efficiency is improved; in addition, the problem of preemption of the same data resource under high concurrency conditions in an approval process can be solved by judging whether the data is locked or not before the data in the database table is modified and modifying the data after the data is locked.
Fig. 3 is a partial flow diagram of a processing method for an approval process according to a second embodiment of the present invention. Fig. 3 shows a partial flow executed by the approval terminal and the server together in the embodiment of the present invention, which specifically includes:
and S301, the approval terminal sends approval operation information to the server.
In the embodiment of the invention, all the approval terminals under the same approval mechanism group can inquire the approval tasks which are issued to the approval structure group, and all the approval terminals have approval authority. After receiving the approval task, the approval terminal can execute the following approval operations: approval pass, return flow and reject flow. Furthermore, the approval operation information sent by the approval terminal to the server side can be approval passing information, return process information and rejection process information.
Further, when the approval terminal sends the approval operation information to the server, the approval operation information can also carry a data version number. The data version number is the version number of the data to be examined, which is presented to an approver by the terminal when the approver performs the approval operation on the terminal.
Step S302, the server side judges whether the version numbers are consistent. If the determination result is yes, step S304 is executed; in the case where the determination result is no, step S303 is executed.
In this step, the step of the server side determining whether the version numbers are consistent specifically includes: and the server compares the data version number carried by the approval operation information with the latest version number of the data to be audited in the server. If the two are not consistent, the data is modified by others in the process of operating the data to be examined and approved by the user, then the step S303 is executed; if the two are consistent, step S304 is executed.
And step S303, the server side sends third prompt information to the approval terminal.
And the third prompt information is used for indicating the examining and approving personnel to conduct examination and approval again after the page is refreshed.
Step S304, the server side judges whether the data is locked. If the determination result is yes, step S305 is executed; in the case where the determination result is no, step S306 is executed.
In this step, the step of the server determining whether the data is locked specifically includes: and the server side judges whether the data to be checked is locked.
And S305, the server side sends fourth prompt information to the approval terminal.
The fourth prompt message is used for indicating that the to-be-audited data is operated by other approvers.
And S306, locking the data by the server, updating the examination and approval state of the data, and releasing the lock after the updating is finished.
In this step, the locking operation performed by the server on the to-be-audited data may include: adding lock information to the to-be-approved data, for example, writing the identifier of the current approval person who approves the data into a lock field corresponding to the data; the releasing of the lock after the approval state of the data is updated by the server may include: after the approval state of the to-be-approved data in the data table is updated, the identifier of the approval personnel who approve the data at present is deleted from the lock field corresponding to the data or is set as invalid.
Further, the server may also send the result of the approval operation (such as a return process, a rejection process, approval pass, etc.) to the user terminal. In specific implementation, after the approval terminal executes the approval operation of the return process, the server side can send the approval operation result of the return process to the user terminal; after receiving the approval operation result of the 'return flow', the user terminal can resubmit the relevant data after modifying the relevant data. In specific implementation, after the approval terminal executes the approval operation of the 'reject flow', the flow is invalid and cannot be modified again by any user.
In the embodiment of the invention, the converted and checked queries of the post submitted by various matters are all developed by the latitude of the organization, namely all the personnel under the same organization can inquire the pending approval process submitted to the organization and also have the checking authority. Any personnel under the same approval mechanism group have the approval authority, so that the transition period of the approval process is greatly shortened, and the approval efficiency is improved; in addition, considering the problem of resource preemption when a plurality of persons simultaneously carry out approval operation, in the embodiment of the invention, the problem of resource preemption of the same data under high concurrency in the approval process can be solved by carrying out version number comparison, judging whether the data is locked or not and modifying the data after the data is locked; meanwhile, the third prompt information is sent to the auditing terminal under the condition that the version numbers are inconsistent, and the page refreshing is carried out on the auditing terminal, so that the user can be effectively prevented from operating the old data, the user experience is improved, and the validity of an approval mechanism can be ensured.
Fig. 4 is a schematic block diagram of a main part of a processing apparatus for an approval process according to a third embodiment of the present invention. As shown in fig. 4, the processing apparatus 400 for an approval process according to an embodiment of the present invention includes: a judging module 401, a first data operation module 402 and a sending module 403.
The determining module 401 is configured to determine whether the data requested to be modified is locked after receiving a data modification request from the user terminal.
Wherein the data modification request may include data modification information and the like. For example, in a human resource approval process (such as a leave approval process), the data modification information may be information for modifying a leave request time, a leave request duration, and the like.
In an alternative embodiment, the determining module 401 may determine whether the data requested to be modified is locked by: acquiring lock information corresponding to the data requested to be modified; if the lock information corresponding to the data requested to be modified is acquired, the data requested to be modified is considered to be locked; and if the lock information corresponding to the data requested to be modified is not acquired, the data requested to be modified is not locked. The lock information may be information such as an identification of a user who is modifying the data.
A first data operation module 402, configured to, in a case that the data requested to be modified is not locked, perform a locking operation on the data requested to be modified, then modify the data requested to be modified, and release the lock after the modification is completed.
In an alternative embodiment, the locking operation of the data requested to be modified by the first data operation module 402 may include: adding lock information to the data requested to be modified, for example, writing the identifier of the user currently requesting to modify the data into a lock field corresponding to the data; the first data operation module 402 releasing the lock after the modification is completed may include: after the data in the data table is modified, the identification of the user who currently requests to modify the data is deleted from the lock field corresponding to the data or is set as invalid.
The sending module 403 is configured to generate an approval task according to modification information of the user terminal on the data, and send the approval task to all approval terminals under a corresponding approval mechanism group.
In one example, in response to a user clicking a trigger operation to submit modification information, the sending module 403 may generate an approval task according to the data modification information. After generating the approval task, the sending module 403 may query the approval hierarchical relationship table according to the user information (such as the user identifier) requesting to modify the data, so as to obtain the corresponding approval mechanism group from the approval hierarchical relationship table, and then send the approval task to all approval terminals under the approval mechanism group. For example, in the process of the leave approval, after receiving the modification information about the leave approval submitted by the employee a, the sending module 403 may generate a leave approval task and send the leave approval task to all approval terminals of the approval mechanism corresponding to the employee a, such as the approval terminal B and the approval terminal C.
In the device of the embodiment of the invention, the converted and audited position after the transaction is submitted is queried according to the organization latitude, that is, all the personnel in the same organization can query the pending approval process submitted to the organization and have the auditing authority. Any personnel under the same approval mechanism group have the approval authority, so that the transition period of the approval process is greatly shortened, and the approval efficiency is improved; in addition, the problem of preemption of the same data resource under high concurrency conditions in an approval process can be solved by judging whether the data is locked or not before the data in the database table is modified and modifying the data after the data is locked.
Fig. 5 is a schematic block diagram of a processing apparatus for an approval process according to a fourth embodiment of the present invention. As shown in fig. 5, a processing apparatus 500 for an approval process according to an embodiment of the present invention includes: the device comprises a first comparison module 501, a judgment module 502, a first data operation module 503, a sending module 504, a second comparison module 505 and a second data operation module 506.
The first comparing module 501 is configured to compare a data version number carried in a data modification request with a latest version number of data to be modified in a server after receiving the data modification request from a user terminal. If the comparison result is that the two are consistent, the determining module 502 is called to execute the step of determining whether the data requested to be modified is locked; if the comparison result is that the two are not consistent, the sending module 504 is called to execute the step of returning the first prompt message to the user terminal. And the first prompt message is used for indicating the user to modify the page again after the page is refreshed. By sending the first prompt information to the user terminal under the condition that the version numbers are inconsistent and refreshing the page of the user terminal, the user can be effectively prevented from operating the old data, the user experience is improved, and meanwhile, the validity of an approval mechanism can be guaranteed.
The data modification request may include data modification information, a data version number, and the like. For example, in the approval process of the application conference room, the data modification information may be information for modifying the time of applying for using the conference room, the number of the application conference room, and the like, and the data version number may be the version number of the application information of the conference room to be modified (i.e. the conference room information presented to the user by the terminal when the user performs this modification on the terminal).
The determining module 502 is configured to determine whether the data requested to be modified is locked when the first comparing module 501 determines that the data version number carried in the data modification request is consistent with the latest version number of the data to be modified in the server. If the data requested to be modified is not locked, the first data operation module 503 is called; if the data requested to be modified is locked, the sending module 504 is called to execute the step of returning the second prompt message to the user terminal. Wherein the second prompt message is used to indicate that the data is being modified by another user.
In an alternative embodiment, the determining module 502 may determine whether the data requested to be modified is locked may include: the determining module 502 obtains lock information corresponding to the data requested to be modified; if the lock information corresponding to the data requested to be modified is acquired, the data requested to be modified is considered to be locked; and if the lock information corresponding to the data requested to be modified is not acquired, the data requested to be modified is not locked. The lock information may be information such as an identification of a user who is modifying the data.
A first data operation module 503, configured to, when the determining module 502 determines that the data requested to be modified is not locked, perform a locking operation on the data requested to be modified, then modify the data requested to be modified, and release the lock after the modification is completed.
In an alternative embodiment, the locking operation performed by the first data operation module 503 on the data requested to be modified may include: adding lock information to the data requested to be modified, for example, writing the identifier of the user currently requesting to modify the data into a lock field corresponding to the data;
the first data manipulation module 503 releasing the lock after the modification is completed may include: after the data in the data table is modified, the identification of the user who currently requests to modify the data is deleted from the lock field corresponding to the data or is set as invalid.
The sending module 504 is configured to generate an approval task according to modification information of the user terminal on the data, and send the approval task to all approval terminals under a corresponding approval mechanism group.
In one example, in response to a user clicking a trigger to submit modification information, the sending module 504 may generate an approval task based on the data modification information. After generating the approval task, the sending module 504 may query the approval hierarchical relationship table according to the user information (such as the user identifier) requesting to modify the data, so as to obtain the corresponding approval mechanism group from the approval hierarchical relationship table, and then send the approval task to all approval terminals under the approval mechanism group. For example, in the process of the leave approval, after receiving the modification information about the leave approval submitted by the employee a, the sending module 504 may generate a leave approval task and send the leave approval task to all approval terminals of the approval mechanism corresponding to the employee a, such as the approval terminal B and the approval terminal C.
And the second comparing module 505 is configured to compare the data version number carried in the approval operation information with the latest version number of the data to be approved in the server after receiving the approval operation information corresponding to the approval task submitted by the approval terminal. If the two are consistent, the second data operation module 506 is called; if the two are not consistent, which indicates that the data is modified by others in the process of operating the data to be approved by the user, the sending module 504 is called to return third prompt information to the user terminal. And the third prompt information is used for indicating the examining and approving personnel to conduct examination and approval again after the page is refreshed. By sending the third prompt information to the approval terminal under the condition that the version numbers are inconsistent and refreshing the page of the approval terminal, the user can be effectively prevented from operating the old data, the user experience is improved, and meanwhile, the validity of an approval mechanism can be guaranteed.
And a second data operation module 506, configured to update the approval state of the data to be approved in the database table according to the approval operation information when the data version number carried in the approval operation information is consistent with the latest version number of the data to be approved in the server.
In the device of the embodiment of the invention, the inquiry of the converted and audited positions after various matters are submitted is developed by the organization latitude, namely all the personnel under the same organization can inquire the pending approval process submitted to the organization and have the auditing authority. Any personnel under the same approval mechanism group have the approval authority, so that the transition period of the approval process is greatly shortened, and the approval efficiency is improved; in addition, in consideration of the problem of resource preemption when modification operations are performed by multiple persons at the same time, in the embodiment of the invention, the problem of resource preemption on the same data under the condition of high concurrency in the approval process can be solved by performing the steps of comparing the version numbers, judging whether the data is locked or not, and modifying the data after the data is locked.
Fig. 6 illustrates an exemplary system architecture 600 of a processing method for an approval process or a processing apparatus for an approval process to which embodiments of the present invention may be applied.
As shown in fig. 6, the system architecture 600 may include terminal devices 601, 602, 603, a network 604, and a server 605. The network 604 serves to provide a medium for communication links between the terminal devices 601, 602, 603 and the server 605. Network 604 may include various types of connections, such as wire, wireless communication links, or fiber optic cables, to name a few.
A user may use the terminal devices 601, 602, 603 to interact with the server 605 via the network 604 to receive or send messages or the like. Various communication client applications, such as shopping applications, web browser applications, search applications, instant messaging tools, mailbox clients, social platform software, and the like, may be installed on the terminal devices 601, 602, and 603.
The terminal devices 601, 602, 603 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 605 may be a server that provides various services, such as a background management server that provides support for applications browsed by a user using the terminal devices 601, 602, 603. The background management server may analyze and perform other processing on the received data such as the data modification request, and feed back a processing result (e.g., a data modification result) to the terminal device.
It should be noted that the processing method for the approval process provided by the embodiment of the present invention is generally executed by the server 605, and accordingly, the processing apparatus for the approval process is generally disposed in the server 605.
It should be understood that the number of terminal devices, networks, and servers in fig. 6 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 7, shown is a block diagram of a computer system 700 suitable for use with the electronic device implementing an embodiment of the present invention. The computer system illustrated in FIG. 7 is only an example and should not impose any limitations on the scope of use or functionality of embodiments of the invention.
As shown in fig. 7, the computer system 700 includes a Central Processing Unit (CPU)701, which can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)702 or a program loaded from a storage section 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data necessary for the operation of the system 700 are also stored. The CPU 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
The following components are connected to the I/O interface 705: an input portion 706 including a keyboard, a mouse, and the like; an output section 707 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 708 including a hard disk and the like; and a communication section 709 including a network interface card such as a LAN card, a modem, or the like. The communication section 709 performs communication processing via a network such as the internet. A drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 710 as necessary, so that a computer program read out therefrom is mounted into the storage section 708 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 709, and/or installed from the removable medium 711. The computer program performs the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 701.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present invention may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor comprises a judging module, a first data operating module and a sending module. The names of these modules do not in some cases constitute a limitation on the module itself, and for example, a judgment module may also be described as a "module that judges whether data requesting modification is locked".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to perform the following: after receiving a data modification request of a user terminal, judging whether the data requested to be modified is locked; under the condition that the data requested to be modified is not locked, locking operation is carried out on the data requested to be modified, then the data requested to be modified is modified, and the lock is released after the modification is finished; and generating an approval task according to the modification information of the user terminal on the data, and sending the approval task to all approval terminals under the corresponding approval mechanism group.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A processing method for an approval process, the method comprising:
after receiving a data modification request of a user terminal, judging whether the data requested to be modified is locked;
under the condition that the data requested to be modified is not locked, locking operation is carried out on the data requested to be modified, then the data requested to be modified is modified, and the lock is released after the modification is finished;
and generating an approval task according to the modification information of the user terminal on the data, and sending the approval task to all approval terminals under the corresponding approval mechanism group.
2. The method of claim 1, further comprising:
before the step of locking the data requested to be modified is executed, confirming that the data version number carried by the data modification request is consistent with the latest version number of the data to be modified in the server; and returning first prompt information to the user terminal under the condition that the data version number carried by the data modification request is inconsistent with the latest version number of the data to be modified in the server; and the first prompt message is used for indicating the user to modify the page again after the page is refreshed.
3. The method of claim 1, further comprising:
under the condition that the data requested to be modified is locked, returning second prompt information to the user terminal; wherein the second prompt message is used to indicate that the data is being modified by another user.
4. The method of claim 1, further comprising:
after receiving approval operation information which is submitted by an approval terminal and corresponds to the approval task, comparing a data version number carried by the approval operation information with the latest version number of the data to be approved in a server; and under the condition that the two are consistent, updating the approval state of the data to be approved in the database table according to the approval operation information.
5. The method of claim 4, further comprising:
under the condition that the data version number carried by the approval operation information is inconsistent with the latest version number of the data to be approved in the server, returning third prompt information to the approval terminal; and the third prompt information is used for indicating the examining and approving personnel to conduct examining and approving again after the page is refreshed.
6. A processing apparatus for an approval process, the apparatus comprising:
the judging module is used for judging whether the data requested to be modified is locked or not after receiving a data modification request of the user terminal;
the first data operation module is used for locking the data requested to be modified under the condition that the data requested to be modified is not locked, then modifying the data requested to be modified and releasing the lock after the modification is finished;
and the sending module is used for generating an approval task according to the modification information of the user terminal on the data and sending the approval task to all approval terminals under the corresponding approval mechanism group.
7. The apparatus of claim 6, further comprising:
the first comparison module is used for confirming that the data version number carried by the data modification request is consistent with the latest version number of the data to be modified in the server side before the step of locking the data requested to be modified is executed by the modification module;
the sending module is further configured to return first prompt information to the user terminal when the data version number carried in the data modification request is inconsistent with the latest version number of the data to be modified in the server; and the first prompt message is used for indicating the user to modify the page again after the page is refreshed.
8. The apparatus of claim 6, further comprising:
the second comparison module is used for comparing the data version number carried by the approval operation information with the latest version number of the data to be approved in the server after the approval operation information corresponding to the approval task submitted by the approval terminal is received;
and the second data operation module is used for updating the approval state of the data to be approved in the database table according to the approval operation information under the condition that the data version number carried by the approval operation information is consistent with the latest version number of the data to be approved in the server side.
9. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-5.
10. A computer-readable medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the method of any one of claims 1 to 5.
CN201911213989.3A 2019-12-02 2019-12-02 Processing method and device for approval process Pending CN111126948A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911213989.3A CN111126948A (en) 2019-12-02 2019-12-02 Processing method and device for approval process

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911213989.3A CN111126948A (en) 2019-12-02 2019-12-02 Processing method and device for approval process

Publications (1)

Publication Number Publication Date
CN111126948A true CN111126948A (en) 2020-05-08

Family

ID=70496663

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911213989.3A Pending CN111126948A (en) 2019-12-02 2019-12-02 Processing method and device for approval process

Country Status (1)

Country Link
CN (1) CN111126948A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112001691A (en) * 2020-07-01 2020-11-27 北京车行一六八信息技术有限公司 Page auditing method and device, computer equipment and storage medium
CN112766906A (en) * 2021-01-21 2021-05-07 曾维周 Method, device, server and terminal for information approval
CN112990709A (en) * 2021-03-17 2021-06-18 中国建设银行股份有限公司 Approval task allocation method, device, equipment and storage medium
CN113269520A (en) * 2021-05-18 2021-08-17 挂号网(杭州)科技有限公司 Management method and device of mechanism system, electronic equipment and storage medium
CN113989034A (en) * 2021-12-27 2022-01-28 云账户技术(天津)有限公司 Bank attribute data management method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104065636A (en) * 2013-07-02 2014-09-24 腾讯科技(深圳)有限公司 Data processing method and system
CN108829413A (en) * 2018-05-07 2018-11-16 北京达佳互联信息技术有限公司 Data-updating method, device and computer readable storage medium, server
CN110263048A (en) * 2019-05-05 2019-09-20 平安科技(深圳)有限公司 High-volume data processing method, device, computer equipment and storage medium
CN110413628A (en) * 2019-08-02 2019-11-05 北京字节跳动网络技术有限公司 Data processing method, device, equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104065636A (en) * 2013-07-02 2014-09-24 腾讯科技(深圳)有限公司 Data processing method and system
CN108829413A (en) * 2018-05-07 2018-11-16 北京达佳互联信息技术有限公司 Data-updating method, device and computer readable storage medium, server
CN110263048A (en) * 2019-05-05 2019-09-20 平安科技(深圳)有限公司 High-volume data processing method, device, computer equipment and storage medium
CN110413628A (en) * 2019-08-02 2019-11-05 北京字节跳动网络技术有限公司 Data processing method, device, equipment and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112001691A (en) * 2020-07-01 2020-11-27 北京车行一六八信息技术有限公司 Page auditing method and device, computer equipment and storage medium
CN112766906A (en) * 2021-01-21 2021-05-07 曾维周 Method, device, server and terminal for information approval
CN112990709A (en) * 2021-03-17 2021-06-18 中国建设银行股份有限公司 Approval task allocation method, device, equipment and storage medium
CN113269520A (en) * 2021-05-18 2021-08-17 挂号网(杭州)科技有限公司 Management method and device of mechanism system, electronic equipment and storage medium
CN113989034A (en) * 2021-12-27 2022-01-28 云账户技术(天津)有限公司 Bank attribute data management method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN111126948A (en) Processing method and device for approval process
CN111198751B (en) Service processing method and device
US9817645B2 (en) Reusable application configuration with dynamic resource determination
CN109492053B (en) Method and device for accessing data
CN109522751B (en) Access right control method and device, electronic equipment and computer readable medium
CN110795315A (en) Method and device for monitoring service
CN111144926A (en) Service request processing method, device, system, electronic equipment and readable medium
CN113190517B (en) Data integration method and device, electronic equipment and computer readable medium
CN113297081B (en) Execution method and device of continuous integrated pipeline
CN113672671B (en) Method and device for realizing data processing
CN113946816A (en) Cloud service-based authentication method and device, electronic equipment and storage medium
CN107657155B (en) Method and device for authenticating user operation authority
CN115660872A (en) Insurance information processing method and device
CN115801873A (en) Service distribution method, system, electronic device and storage medium
CN116503005A (en) Method, device, system and storage medium for dynamically modifying flow
CN114138758A (en) Data cleaning and merging method and device based on multi-source system and readable medium
CN113011858A (en) Audit project configuration and execution method and device
CN111158649A (en) Method and device for configuring multi-level parameters
CN112579615A (en) Method and device for realizing distributed lock
CN117131071B (en) Data processing method, device, electronic equipment and computer readable medium
CN113792051B (en) Data processing method, system, equipment and storage medium based on multi-mode lock
US20230185853A1 (en) Identity Graph Data Structure System and Method with Entity-Level Opt-Outs
CN112181937B (en) Method and device for transferring data
CN110727739B (en) Data storage method and device
CN116932558A (en) Form data processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20220930

Address after: 25 Financial Street, Xicheng District, Beijing 100033

Applicant after: CHINA CONSTRUCTION BANK Corp.

Address before: 25 Financial Street, Xicheng District, Beijing 100033

Applicant before: CHINA CONSTRUCTION BANK Corp.

Applicant before: Jianxin Financial Science and Technology Co.,Ltd.

TA01 Transfer of patent application right