CN107704557B - Processing method and device for operating mutually exclusive data, computer equipment and storage medium - Google Patents
Processing method and device for operating mutually exclusive data, computer equipment and storage medium Download PDFInfo
- Publication number
- CN107704557B CN107704557B CN201710896404.7A CN201710896404A CN107704557B CN 107704557 B CN107704557 B CN 107704557B CN 201710896404 A CN201710896404 A CN 201710896404A CN 107704557 B CN107704557 B CN 107704557B
- Authority
- CN
- China
- Prior art keywords
- dynamic table
- data
- data operation
- network control
- terminal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 18
- 230000007717 exclusion Effects 0.000 claims abstract description 87
- 238000013524 data verification Methods 0.000 claims abstract description 66
- 238000000034 method Methods 0.000 claims abstract description 25
- 238000004590 computer program Methods 0.000 claims description 21
- 238000012545 processing Methods 0.000 claims description 20
- 238000012217 deletion Methods 0.000 description 13
- 230000037430 deletion Effects 0.000 description 13
- 238000010586 diagram Methods 0.000 description 11
- 238000012986 modification Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 2
- 238000007792 addition Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000011217 control strategy Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/23—Updating
- G06F16/2308—Concurrency control
- G06F16/2336—Pessimistic concurrency control approaches, e.g. locking or multiple versions without time stamps
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/466—Transaction processing
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention relates to a processing method for operating mutually exclusive data. The method comprises the following steps: receiving a data operation request sent by a first terminal, wherein the data operation request carries an operation type; generating first network control information and a first dynamic table associated with the first network control information according to a data operation request sent by a first terminal; querying a second dynamic table matched with the operation type; performing data verification on the detailed information in the first dynamic table and the second dynamic table; if the first dynamic table and the second dynamic table have data operation mutual exclusion, deleting the first network control information and the first dynamic table; executing a step of receiving a data operation request sent by a first terminal, wherein the data operation request carries an operation type; and if the first dynamic table and the second dynamic table do not have data operation mutual exclusion, performing data operation according to a data operation request sent by the first terminal. The first dynamic table can be used for quickly inquiring the data with the mutual exclusion operation, so that the time is saved, and the efficiency of solving the problem of the mutual exclusion operation of the data is improved.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a processing method and apparatus for operating mutually exclusive data, a computer device, and a storage medium.
Background
In some ERP (enterprise resource planning) systems, during the data operation process of a user through a terminal, the data is continuously occupied, so that other users cannot perform the data operation on the data through the terminal. When a plurality of users simultaneously request to perform data operation on the same data, network control information is respectively generated, which causes the problem of mutual exclusion of data operation.
In the conventional technology, a network control center records detail information generated by each data operation in network control information, and because a large amount of detail information is stored in the network control information, when a data operation mutual exclusion occurs, a user cannot conveniently and rapidly inquire data with the operation mutual exclusion, so that the problem of the data operation mutual exclusion cannot be solved in time, and the efficiency is low.
Disclosure of Invention
Therefore, it is necessary to provide a processing method, an apparatus, a computer device, and a storage medium for operation-exclusive data, which can quickly query data with operation mutual exclusion and thus can solve the problem of data operation mutual exclusion in time.
a processing method of operating mutually exclusive data, the method comprising:
Receiving a data operation request sent by a first terminal, wherein the data operation request carries an operation type;
Generating first network control information and a first dynamic table associated with the first network control information according to a data operation request sent by a first terminal;
querying a second dynamic table matched with the operation type;
Performing data verification on the detail information in the first dynamic table and the second dynamic table;
If the data verification result indicates that the first dynamic table and the second dynamic table have data operation mutual exclusion, the data operation mutual exclusion is determined
Deleting the first network control information and the first dynamic table;
Executing a step of receiving a data operation request sent by a first terminal, wherein the data operation request carries an operation type;
if the data verification result indicates that the first dynamic table and the second dynamic table do not have data operation mutual exclusion, the data verification method comprises the steps of
and performing data operation according to the data operation request sent by the first terminal.
A processing apparatus that operates on mutually exclusive data, the apparatus comprising:
The request receiving module is used for receiving a data operation request sent by a first terminal, wherein the data operation request carries an operation type;
The network control information generation module is used for generating first network control information and a first dynamic table related to the first network control information according to a data operation request sent by a first terminal;
The dynamic table query module is used for querying a second dynamic table matched with the operation type;
The data checking module is used for carrying out data checking on the detailed information in the first dynamic table and the second dynamic table;
The network control information deleting module is used for deleting the first network control information and the first dynamic table if the data verification result indicates that the first dynamic table and the second dynamic table have data operation mutual exclusion;
And the data operation module is used for performing data operation according to the data operation request sent by the first terminal if the data verification result indicates that the first dynamic table and the second dynamic table do not have data operation mutual exclusion.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
Receiving a data operation request sent by a first terminal, wherein the data operation request carries an operation type;
Generating first network control information and a first dynamic table associated with the first network control information according to a data operation request sent by a first terminal;
Querying a second dynamic table matched with the operation type;
performing data verification on the detail information in the first dynamic table and the second dynamic table;
If the data verification result indicates that the first dynamic table and the second dynamic table have data operation mutual exclusion, the data operation mutual exclusion is determined
Deleting the first network control information and the first dynamic table;
Executing a step of receiving a data operation request sent by a first terminal, wherein the data operation request carries an operation type;
If the data verification result indicates that the first dynamic table and the second dynamic table do not have data operation mutual exclusion, the data verification method comprises the steps of
and performing data operation according to the data operation request sent by the first terminal.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
Receiving a data operation request sent by a first terminal, wherein the data operation request carries an operation type;
Generating first network control information and a first dynamic table associated with the first network control information according to a data operation request sent by a first terminal;
Querying a second dynamic table matched with the operation type;
Performing data verification on the detail information in the first dynamic table and the second dynamic table;
If the data verification result indicates that the first dynamic table and the second dynamic table have data operation mutual exclusion, the data operation mutual exclusion is determined
deleting the first network control information and the first dynamic table;
Executing a step of receiving a data operation request sent by a first terminal, wherein the data operation request carries an operation type;
if the data verification result indicates that the first dynamic table and the second dynamic table do not have data operation mutual exclusion, the data verification method comprises the steps of
And performing data operation according to the data operation request sent by the first terminal.
according to the processing method, the processing device, the computer equipment and the storage medium for the operation mutual exclusion data, first network control information and a first dynamic table are generated according to a received data operation request sent by a first terminal, a second dynamic table matched with the operation type is inquired, data verification is carried out on detail information in the first dynamic table and the second dynamic table, and if the data verification result shows that the first dynamic table and the second dynamic table have data operation mutual exclusion, the first network control information and the first dynamic table are deleted; executing a step of receiving a data operation request sent by a first terminal, wherein the data operation request carries an operation type; and if the first dynamic table and the second dynamic table do not have data operation mutual exclusion, performing data operation according to a data operation request sent by the first terminal. The first dynamic table is created, the detail information generated by terminal data operation is stored, data verification is carried out according to the detail information in the first dynamic table and the second dynamic table, when data operation mutual exclusion occurs, the first dynamic table can be used for quickly inquiring the data with the operation mutual exclusion, time is saved, and the efficiency of solving the problem of the data operation mutual exclusion is improved.
Drawings
FIG. 1 is a diagram illustrating an exemplary implementation of a method for handling mutually exclusive data;
FIG. 2 is a block diagram showing an internal configuration of a computer device according to an embodiment;
FIG. 3 is a flow diagram of a process for handling mutually exclusive data according to one embodiment;
FIG. 4 is a flow diagram of a process for handling mutually exclusive data in accordance with another embodiment;
FIG. 5 is a diagram of a processing method to manipulate mutex data according to one embodiment;
FIG. 6 is a flow diagram of a process for handling mutually exclusive data in accordance with yet another embodiment;
FIG. 7 is a flow diagram of a process for handling mutually exclusive data in accordance with yet another embodiment;
FIG. 8 is a block diagram of a processing device that manipulates mutually exclusive data, according to an embodiment;
FIG. 9 is a block diagram of a processing apparatus for manipulating mutually exclusive data according to another embodiment.
Detailed Description
in order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, in one embodiment, the processing method of operating mutually exclusive data is applied to a processing system of operating mutually exclusive data, the processing system of operating mutually exclusive data includes a first terminal 110, a network control center server 120 and a second terminal 130, the first terminal 110 and the second terminal 130 are both connected to the network control center server 120 through a network, wherein "first" and "second" are used for distinguishing different individual terminals, the first terminal 110 and the second terminal 130 can be terminals of the same type or different types, and roles of the first terminal 110 and the second terminal 130 in the processing method of operating mutually exclusive data can be interchanged. The network control center server 120 may be an independent physical server or a server cluster composed of a plurality of physical servers. The first terminal 110 and the second terminal 130 may be, but are not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, or the like.
Specifically, the network control center server 120 may receive a data operation request sent by the first terminal 110, generate first network control information and a first dynamic table associated with the first network control information according to the data operation request, query a second dynamic table matched with the operation type of the data operation request, perform data verification on detail information in the first dynamic table and the second dynamic table, and delete the first network control information and the first dynamic table if the data verification result indicates that there is a data operation mutual exclusion between the first dynamic table and the second dynamic table; and executing the step of receiving the data operation request sent by the first terminal, where the data operation request carries the operation type, and if the data verification result indicates that there is no data operation mutual exclusion between the first dynamic table and the second dynamic table, performing data operation according to the data operation request sent by the first terminal 110.
in one embodiment, as shown in FIG. 2, a block diagram of the internal structure of a computer device is provided. The computer device may be a network control center server 120 as shown in fig. 1, including a system bus connected processor, non-volatile storage medium, internal memory, and network interface. Wherein the nonvolatile storage medium of the computer device stores an operating system, and further stores a computer program implementing a processing method of operating the mutually exclusive data, the computer program, when executed by the processor, causing the processor to execute the processing method of operating the mutually exclusive data. The processor is used for providing calculation and control capability and supporting the operation of the device. The internal memory may store a computer program that, when executed by the processor, causes the processor to perform a method of processing mutually exclusive data. The network interface is used for performing network communication with other equipment, such as receiving a data operation request sent by a terminal. The structure shown in fig. 2 is a block diagram of only a portion of the structure associated with the present application, and does not constitute a limitation on the computer apparatus to which the present application is applied, and a specific computer apparatus may include more or less components than those shown in the drawings, or may combine some components, or have a different arrangement of components.
as shown in fig. 3, in an embodiment, a processing method for operating mutually exclusive data is provided, which is exemplified by being applied to the network control center server shown in fig. 1, and includes:
step 302, receiving a data operation request sent by a first terminal, where the data operation request carries an operation type.
The first terminal can be a personal computer, a notebook computer, a personal digital assistant, a tablet computer, a smart phone or an intelligent wearable device and the like capable of performing network data operation. The first terminal may initiate a data operation request, and the data operation request may be sent to the network control center server to request an operation on data stored on the network control center server.
step 304, generating first network control information and a first dynamic table associated with the first network control information according to the data operation request sent by the first terminal.
The network control refers to coordinating and resolving a control strategy of conflict when a data operation request sent by a first terminal conflicts with a data operation request sent by other terminals. The network control information is generated according to the data operation request, wherein the first terminal identification, the operation type, the operation request content, the operation request time and the like are recorded. The first dynamic table is associated with the first network control information, and the first dynamic table stores detailed information of the data operation request, including but not limited to data identification of each piece of data operation to be performed and specific content of the data operation. The first terminal identifier is generally composed of at least one of a number, a letter, and a special symbol of a predetermined number of digits, and the first terminal can be uniquely determined by the first terminal identifier.
Step 306, a second dynamic table matching the operation type is queried.
Before performing data operation according to the data operation request of the first terminal, the network control center server needs to detect whether a second dynamic table with data operation mutual exclusion exists or not in order to perform the data operation normally.
and 308, performing data verification on the detailed information in the first dynamic table and the second dynamic table.
specifically, the data check may be performed by detecting whether the first dynamic table and the second dynamic table have the same data identifier, where the data identifier may be composed of at least one of a number, a letter, and a special symbol with a preset number of bits, and the corresponding data may be determined according to the data identifier. And if the same data identifier exists in the first dynamic table and the second dynamic table, the first dynamic table and the second dynamic table have data operation mutual exclusion.
in step 310, if the data verification result indicates that the first dynamic table and the second dynamic table have data operation mutual exclusion, the first network control information and the first dynamic table are deleted, and step 302 is executed.
And if the data verification result indicates that the first dynamic table and the second dynamic table have data operation mutual exclusion, the data operation request sent by the first terminal cannot be executed due to the data operation mutual exclusion, and the first network control information and the first dynamic table need to be deleted.
Specifically, the data operation request sent by the first terminal can be received according to a preset time interval until the data verification result shows that no data operation mutual exclusion exists between the first dynamic table and the second dynamic table, and data operation is performed according to the data operation request sent by the first terminal.
in step 312, if the data verification result indicates that there is no data operation mutual exclusion between the first dynamic table and the second dynamic table, the data operation is performed according to the data operation request sent by the first terminal.
Specifically, if the data verification result indicates that the first dynamic table and the second dynamic table do not have data operation mutual exclusion, the network control center server performs data operation according to the data operation request of the first terminal.
the processing method for operating the mutually exclusive data comprises the steps of generating first network control information and a first dynamic table according to a received data operation request sent by a first terminal, inquiring a second dynamic table matched with an operation type, carrying out data verification on detailed information in the first dynamic table and the second dynamic table, and deleting the first network control information and the first dynamic table if the data verification result indicates that the first dynamic table and the second dynamic table have data operation mutual exclusion; executing a step of receiving a data operation request sent by a first terminal, wherein the data operation request carries an operation type; and if the first dynamic table and the second dynamic table do not have data operation mutual exclusion, performing data operation according to a data operation request sent by the first terminal. The first dynamic table is created, the detail information generated by terminal data operation is stored, data verification is carried out according to the detail information in the first dynamic table and the second dynamic table, when data operation mutual exclusion occurs, the first dynamic table can be used for quickly inquiring the data with the operation mutual exclusion, time is saved, and the efficiency of solving the problem of the data operation mutual exclusion is improved.
In one embodiment, querying a second dynamic table that matches the operation type includes: inquiring the matched second network control information according to the operation type carried by the data operation request sent by the first terminal; and determining a second dynamic table matched with the operation type according to the second network control information.
In one embodiment, generating first network control information and a first dynamic table associated with the first network control information according to a data operation request sent by a first terminal includes: generating first network control information, a first dynamic table and a dynamic table serial number according to a data operation request sent by a first terminal; the generation time of the first dynamic table and the dynamic table number are stored in the first network control information.
In one embodiment, the data checking the detail information in the first dynamic table and the second dynamic table includes: and inquiring whether the same information identifier exists in the second dynamic table or not according to the information identifier of the detailed information in the first dynamic table, wherein if so, the data verification result indicates that the first dynamic table and the second dynamic table have data operation mutual exclusion.
in one embodiment, after the step of performing the data operation according to the data operation request sent by the first terminal, the method further includes: receiving a control information deleting request sent by a first terminal; and deleting the first network control information and the first dynamic table according to the control information deletion request.
As shown in fig. 4, in an embodiment, a processing method for operating mutually exclusive data is provided, which is exemplified by being applied to the network control center server shown in fig. 1, and includes:
Step 402, receiving a data operation request sent by a first terminal.
The data operation request carries an operation type, which may be specifically an operation type of adding, modifying, or deleting data, for example, in an ERP system, the data operation may be an online order voucher processing in an e-commerce subsystem.
Further, in a scene of performing a large-batch data operation, a data operation request sent by the first terminal may request to operate the large-batch data, the request carries an operation type corresponding to each data, and when there is no data with mutual exclusion in operation, the large-batch data may be operated according to the large-batch data operation request sent by the first terminal.
Step 404, generating a first network control information, a first dynamic table and a dynamic table sequence number according to the data operation request sent by the first terminal.
The data operation request comprises an operation type, an identifier of the requested operation data, operation content, a first terminal identifier and the like. First network control information and a first dynamic table can be generated according to the data operation request, and the operation type has a corresponding operation type number. The name of the dynamic table is determined according to the operation type number, the dynamic table generation time, and the random number. For example: EC1701220011 denotes a dynamic table with an operation type number of EC, a generation time of 01 minutes and 22 seconds at 17 pm, and a random 4-bit number of 0011.
Step 406, the generation time of the first dynamic table and the dynamic table sequence number are stored in the first network control information.
The generation time of the first dynamic table and the dynamic table sequence number are stored in the first network control information, so that the first dynamic table and the first network control information establish an association relationship.
For example, in a real application scenario, when a user sends a request for deleting the first network control information to the network control center server, the network control center server deletes the first network control information according to the request for deleting the first network control information, and deletes the background first dynamic table without the need that the user specially sends a request for deleting the first dynamic table to the network control center server.
The network control information is generated in the network control center server, when other terminals send data operation requests to the data, the network control center server can refuse the data operation requests and can send information for prompting the occurrence of operation conflicts to other terminals.
and step 408, inquiring the matched second network control information according to the operation type carried by the data operation request sent by the first terminal.
specifically, according to the operation type of the data operation request sent by the first terminal, the second network control information matched with the operation type may be queried, and the second dynamic table associated with the second network control information may be determined, where the second dynamic table is the second dynamic table matched with the operation type.
And step 410, determining a second dynamic table matched with the operation type according to the second network control information.
In order to enable the data operation to be performed normally, a second dynamic table that matches with an operation type of a data operation request sent by the first terminal needs to be queried first, where the operation type may be at least one, and if there are multiple operation types, the operation type corresponding to the second dynamic table at least includes one of the operation types, for example, the operation type includes data modification and data deletion, and the operation type corresponding to the second dynamic table at least includes one of data modification and data deletion.
further, if a second dynamic table matched with the operation type does not exist, the problem of mutual exclusion of data operation can be considered to be absent, and the network control center server performs data operation according to the data operation request of the first terminal.
Step 412, according to the information identifier of the detailed information in the first dynamic table, querying whether the same information identifier exists in the second dynamic table, if so, determining that the data operation mutual exclusion exists between the first dynamic table and the second dynamic table, and if not, determining that the data operation mutual exclusion does not exist between the first dynamic table and the second dynamic table.
The network control center server performs data verification on the detail information in the first dynamic table and the second dynamic table, specifically, the detail information of data requested to be operated by a data operation request is stored in the first dynamic table, each piece of detail information has a corresponding information identifier, whether the detail information containing the same information identifier exists in the second dynamic table is inquired according to the information identifier of the detail information, if yes, it is determined that the data identical to the first dynamic table exists in the data requested to be operated by the data operation request corresponding to the second dynamic table, and the data verification result is that the data operation mutual exclusion exists between the first dynamic table and the second dynamic table because the operation types of the first dynamic table and the second dynamic table are also identical; and if the second dynamic table does not have the detail information containing the same information identification, the data verification result indicates that the first dynamic table and the second dynamic table do not have data operation mutual exclusion. In an embodiment, as shown in fig. 5, network control information corresponding to the first terminal and the second terminal and a dynamic table associated with the network control information are respectively stored in the network control center, and if the first dynamic table includes information identifiers 1, 2, and 3, and the second dynamic table includes information identifiers 1, 4, and 5, because the first dynamic table and the second dynamic table have the same information identifier, and because the first dynamic table and the second dynamic table have the same operation type, the data verification result is that the first dynamic table and the second dynamic table have data operation mutual exclusion.
in step 414, if the data verification result indicates that the first dynamic table and the second dynamic table have data operation mutual exclusion, the first network control information and the first dynamic table are deleted, and step 402 is executed.
if the data operation mutual exclusion exists, the data operation request sent by the first terminal cannot be executed, the first network control information and the first dynamic table need to be deleted, the first network control information and the first dynamic table are prevented from influencing the operation of the terminal on the data after the data operation mutual exclusion is eliminated, the first network control information and the first dynamic table are deleted, and the step of receiving the data operation request sent by the first terminal is executed.
furthermore, if the data verification result indicates that the first dynamic table and the second dynamic table have the data operation mutual exclusion, the information identifier corresponding to the detail information can be output through the terminal, and the corresponding data can be quickly inquired through the information identifier corresponding to each piece of detail information, so that a user can conveniently and quickly inquire the data with the operation mutual exclusion.
in step 416, if the data verification result indicates that there is no data operation mutual exclusion between the first dynamic table and the second dynamic table, performing data operation according to the data operation request sent by the first terminal.
The data operation can be the addition, modification or deletion of data, and the data operation is carried out according to the data operation request sent by the first terminal when the second dynamic table matched with the operation type does not exist or the data verification result indicates that the first dynamic table and the second dynamic table do not have the data operation mutual exclusion.
step 418, delete the first network control information and the first dynamic table.
Specifically, the network control center server completes a data operation request sent by the first terminal, before the first network control information and the first dynamic table are deleted, the other terminals cannot perform data operation on the data requested to be operated by the first terminal, and the network control center server can delete the first network control information and the first dynamic table, so that the other terminals can perform data operation on the data requested to be operated by the first terminal.
As shown in fig. 6, in an embodiment, a processing method for operating mutually exclusive data is provided, which is exemplified by being applied to the network control center server shown in fig. 1, and includes:
Step 602, receiving a data operation request sent by a first terminal.
Step 604, generating a first network control information, a first dynamic table and a dynamic table sequence number according to the data operation request sent by the first terminal.
Step 606, the generation time of the first dynamic table and the dynamic table sequence number are stored in the first network control information.
At step 608, a second dynamic table matching the operation type is queried.
and step 610, inquiring whether the same information identifier exists in the second dynamic table according to the information identifier of the detailed information in the first dynamic table, wherein if so, the data verification result indicates that the first dynamic table and the second dynamic table have data operation mutual exclusion.
Step 612, sending a prompt message to the first terminal, so that the first terminal requests the second terminal to delete the control information.
the network control center server sends prompt information to the first terminal to prompt that the data operation request of the first terminal has the data operation mutual exclusion problem, and the first terminal can send a request for deleting the network control information to the second terminal through the network control center server after receiving the prompt information.
The network control center server receives a data processing request sent by a second terminal to generate second network control information and a second dynamic table, after query processing and data verification are carried out, if the problem of mutual exclusion of data operation does not exist, data processing is carried out according to the data processing request sent by the second terminal, then, the network control center server receives the data processing request sent by a first terminal to generate first network control information and a first dynamic table, if the second dynamic table matched with the operation type is queried, and the data verification result indicates that the data operation mutual exclusion exists between the first dynamic table and the second dynamic table, and due to the existence of second network control information control data, the data processing request sent by the first terminal cannot be executed temporarily.
further, the network control center server sends prompt information to the first terminal, so that the first terminal requests the second terminal to delete the control information. The first terminal can request the second terminal to delete the control information through the network control center server, and can also obtain the second terminal identification through the network control center, and request the second terminal to delete the control information according to the second terminal identification. For example, when submitting a data operation request, the first terminal receives the mutual exclusion information fed back by the server, and displays the mutual exclusion information by the first terminal: "the currently used function conflicts with other users, asks to check network control", and provides options such as "determine", "view report details", etc.
And 614, receiving a request for confirming the deletion of the control information sent by the second terminal, and deleting the second network control information and the second dynamic table according to the request for confirming the deletion of the control information.
The network control center server receives a request for deleting the control information sent by the first terminal, sends the request to the second terminal, receives a request for confirming the deletion of the control information sent by the second terminal, and deletes the second network control information and the second dynamic table according to the request for confirming the deletion of the control information.
Specifically, when the network control center sends a request for deleting control information sent by the first terminal to the second terminal, the second terminal can see the information of the request through the terminal interface and can select yes or no, when the user clicks yes on the second terminal interface for the request, the second terminal sends a request for confirming the deletion of the control information to the network control center server, otherwise, the second terminal sends information for rejecting the deletion of the control information to the network control center server. In addition, the request can be clicked to view the detailed information of the request.
and step 616, receiving the data operation request retransmitted by the first terminal, and performing data operation according to the retransmitted data operation request.
Step 618, receiving a control information deletion request sent by the first terminal.
The network control center server completes the data operation request sent by the first terminal, and other terminals still cannot perform data operation on the data requested to be operated by the first terminal before the first network control information and the first dynamic table are deleted.
step 620, deleting the first network control information and the first dynamic table according to the control information deletion request.
as shown in fig. 7, in an embodiment, a processing method for operating mutually exclusive data is provided, which is exemplified by being applied to the network control center server shown in fig. 1, and includes:
Step 702, receiving a data operation request sent by a first terminal.
Step 704, generating a first network control information, a first dynamic table and a dynamic table sequence number according to the data operation request sent by the first terminal.
Step 706, the generation time of the first dynamic table and the dynamic table sequence number are stored in the first network control information.
At step 708, a second dynamic table matching the operation type is queried.
Step 710, according to the information identifier of the detailed information in the first dynamic table, querying whether the same information identifier exists in the second dynamic table, if so, determining that the data verification result is that the first dynamic table and the second dynamic table have data operation mutual exclusion.
Step 712, sending the prompt message to the first terminal and the second terminal.
The network control center server sends prompt information to the first terminal and the second terminal to prompt that the data operation requests of the first terminal and the second terminal have the data operation mutual exclusion problem, after the first terminal receives the prompt information, the first terminal can send a request for deleting the network control information to the second terminal through the network control center server, and the second terminal can also send a request for deleting the network control information to the first terminal through the network control center server.
the method comprises the steps that a network control center server receives data processing requests sent by a first terminal and a second terminal at the same time, first network control information, a first dynamic table, second network control information and a second dynamic table are generated, after query processing and data verification are carried out, if the query results show that the operation types of the first dynamic table and the second dynamic table are matched, and the data verification results show that the first dynamic table and the second dynamic table have data operation mutual exclusion, due to the fact that the first network control information and the second network control information control data exist, the data processing requests sent by the first terminal and the second terminal cannot be executed, and at the moment, the network control center server sends prompt information to the first terminal and the second terminal.
Step 714, receiving the control information deleting request sent by the second terminal, and deleting the second network control information and the second dynamic table according to the control information deleting request.
The first terminal and the second terminal negotiate through the network control center server to determine one of the two terminals to delete the network control information and the dynamic table, so that the other terminal can preferentially perform data operation. And the network control center server receives a control information deleting request sent by the second terminal, and deletes the second network control information and the second dynamic table according to the control information deleting request, so that the first terminal can preferentially perform data operation.
And step 716, receiving the data operation request retransmitted by the first terminal, and performing data operation according to the retransmitted data operation request.
Step 718, receiving a control information deleting request sent by the first terminal.
And 720, deleting the first network control information and the first dynamic table according to the control information deletion request.
As shown in fig. 8, in one embodiment, there is provided a processing apparatus for operating mutually exclusive data, the apparatus comprising:
The request receiving module 802 is configured to receive a data operation request sent by a first terminal, where the data operation request carries an operation type.
A network control information generating module 804, configured to generate, according to the data operation request sent by the first terminal, first network control information and a first dynamic table associated with the first network control information.
and a dynamic table query module 806, configured to query a second dynamic table matching the operation type.
And the data checking module 808 is configured to perform data checking on the detail information in the first dynamic table and the second dynamic table.
The network control information deleting module 810 is configured to delete the first network control information and the first dynamic table if the data verification result indicates that the first dynamic table and the second dynamic table have data operation mutual exclusion.
and the data operation module 812 is configured to perform data operation according to the data operation request sent by the first terminal if the data verification result indicates that there is no data operation mutual exclusion between the first dynamic table and the second dynamic table.
As shown in fig. 9, in one embodiment, there is provided a processing apparatus for operating mutually exclusive data, the apparatus including:
an information storage module 814, configured to store the generation time of the first dynamic table and the dynamic table sequence number in the first network control information.
The network control information generating module 804 is further configured to generate the first network control information, the first dynamic table and the dynamic table serial number according to the data operation request sent by the first terminal.
The dynamic table query module 806 is further configured to query the matched second network control information according to an operation type carried in the data operation request sent by the first terminal; and determining a second dynamic table matched with the operation type according to the second network control information.
The data checking module 808 is further configured to query whether the same information identifier exists in the second dynamic table according to the information identifier of the detailed information in the first dynamic table, if so, the data checking result indicates that the first dynamic table and the second dynamic table have data operation mutual exclusion, and if not, the data checking result indicates that the first dynamic table and the second dynamic table do not have data operation mutual exclusion.
The network control information deleting module 810 is further configured to delete the first network control information and the first dynamic table.
In one embodiment, a computer device is provided, the computer device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program: receiving a data operation request sent by a first terminal, wherein the data operation request carries an operation type; generating first network control information and a first dynamic table associated with the first network control information according to a data operation request sent by a first terminal; querying a second dynamic table matched with the operation type; performing data verification on the detailed information in the first dynamic table and the second dynamic table; if the data verification result indicates that the first dynamic table and the second dynamic table have data operation mutual exclusion, deleting the first network control information and the first dynamic table; executing a step of receiving a data operation request sent by a first terminal, wherein the data operation request carries an operation type; and if the data verification result indicates that the first dynamic table and the second dynamic table do not have data operation mutual exclusion, performing data operation according to a data operation request sent by the first terminal.
In one embodiment, the processor when executing the computer program may further perform the steps of: inquiring the matched second network control information according to the operation type carried by the data operation request sent by the first terminal; and determining a second dynamic table matched with the operation type according to the second network control information.
in one embodiment, the processor when executing the computer program may further perform the steps of: generating first network control information, a first dynamic table and a dynamic table serial number according to a data operation request sent by a first terminal; the generation time of the first dynamic table and the dynamic table number are stored in the first network control information.
In one embodiment, the processor when executing the computer program may further perform the steps of: and inquiring whether the same information identifier exists in the second dynamic table or not according to the information identifier of the detailed information in the first dynamic table, wherein if so, the data verification result indicates that the first dynamic table and the second dynamic table have data operation mutual exclusion, and if not, the data verification result indicates that the first dynamic table and the second dynamic table do not have data operation mutual exclusion.
In one embodiment, the processor when executing the computer program may further perform the steps of: the first network control information and the first dynamic table are deleted.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: receiving a data operation request sent by a first terminal, wherein the data operation request carries an operation type; generating first network control information and a first dynamic table associated with the first network control information according to a data operation request sent by a first terminal; querying a second dynamic table matched with the operation type; performing data verification on the detailed information in the first dynamic table and the second dynamic table; if the data verification result indicates that the first dynamic table and the second dynamic table have data operation mutual exclusion, deleting the first network control information and the first dynamic table; executing a step of receiving a data operation request sent by a first terminal, wherein the data operation request carries an operation type; and if the data verification result indicates that the first dynamic table and the second dynamic table do not have data operation mutual exclusion, performing data operation according to a data operation request sent by the first terminal.
In one embodiment, the computer program when executed by the processor may further perform the steps of: inquiring the matched second network control information according to the operation type carried by the data operation request sent by the first terminal; and determining a second dynamic table matched with the operation type according to the second network control information.
In one embodiment, the computer program when executed by the processor may further perform the steps of: generating first network control information, a first dynamic table and a dynamic table serial number according to a data operation request sent by a first terminal; the generation time of the first dynamic table and the dynamic table number are stored in the first network control information.
In one embodiment, the computer program when executed by the processor may further perform the steps of: and inquiring whether the same information identifier exists in the second dynamic table or not according to the information identifier of the detailed information in the first dynamic table, wherein if so, the data verification result indicates that the first dynamic table and the second dynamic table have data operation mutual exclusion, and if not, the data verification result indicates that the first dynamic table and the second dynamic table do not have data operation mutual exclusion.
in one embodiment, the computer program when executed by the processor may further perform the steps of: the first network control information and the first dynamic table are deleted.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (8)
1. A processing method of operating mutually exclusive data, the method comprising:
receiving a data operation request sent by a first terminal, wherein the data operation request carries an operation type;
Generating first network control information and a first dynamic table associated with the first network control information according to a data operation request sent by a first terminal;
Querying a second dynamic table matched with the operation type;
Performing data verification on the detail information in the first dynamic table and the second dynamic table, and inquiring whether the same information identifier exists in the second dynamic table according to the information identifier of the detail information in the first dynamic table; if so, the data verification result indicates that the first dynamic table and the second dynamic table have data operation mutual exclusion; if not, the data verification result indicates that the first dynamic table and the second dynamic table do not have data operation mutual exclusion;
If the data verification result indicates that the first dynamic table and the second dynamic table have data operation mutual exclusion, the data operation mutual exclusion is determined
deleting the first network control information and the first dynamic table;
Executing a step of receiving a data operation request sent by a first terminal, wherein the data operation request carries an operation type;
And if the data verification result indicates that the first dynamic table and the second dynamic table do not have data operation mutual exclusion, performing data operation according to a data operation request sent by the first terminal.
2. The method of claim 1, wherein querying a second dynamic table that matches the operation type comprises:
Inquiring the matched second network control information according to the operation type carried by the data operation request sent by the first terminal;
And determining a second dynamic table matched with the operation type according to the second network control information.
3. The method of claim 1, wherein the generating of the first network control information and the first dynamic table associated with the first network control information according to the data operation request sent by the first terminal comprises:
Generating first network control information, a first dynamic table and a dynamic table serial number according to a data operation request sent by a first terminal;
and storing the generation time of the first dynamic table and the sequence number of the dynamic table in the first network control information.
4. The method according to claim 1, wherein after the step of performing data operation according to the data operation request sent by the first terminal, the method further comprises:
And deleting the first network control information and the first dynamic table.
5. A processing apparatus for operating on mutually exclusive data, the apparatus comprising:
The request receiving module is used for receiving a data operation request sent by a first terminal, wherein the data operation request carries an operation type;
the network control information generation module is used for generating first network control information and a first dynamic table related to the first network control information according to a data operation request sent by a first terminal;
The dynamic table query module is used for querying a second dynamic table matched with the operation type;
The data checking module is used for carrying out data checking on the detail information in the first dynamic table and the second dynamic table and inquiring whether the same information identifier exists in the second dynamic table according to the information identifier of the detail information in the first dynamic table; if so, the data verification result indicates that the first dynamic table and the second dynamic table have data operation mutual exclusion; if not, the data verification result indicates that the first dynamic table and the second dynamic table do not have data operation mutual exclusion;
the network control information deleting module is used for deleting the first network control information and the first dynamic table if the data verification result indicates that the first dynamic table and the second dynamic table have data operation mutual exclusion;
and the data operation module is used for performing data operation according to the data operation request sent by the first terminal if the data verification result indicates that the first dynamic table and the second dynamic table do not have data operation mutual exclusion.
6. the apparatus according to claim 5, wherein the network control information generating module is further configured to generate the first network control information, the first dynamic table and the dynamic table sequence number according to a data operation request sent by the first terminal; the device further comprises:
the information storage module is further configured to store the generation time of the first dynamic table and the dynamic table sequence number in the first network control information.
7. a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method according to any of claims 1 to 4 are implemented when the computer program is executed by the processor.
8. a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710896404.7A CN107704557B (en) | 2017-09-28 | 2017-09-28 | Processing method and device for operating mutually exclusive data, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710896404.7A CN107704557B (en) | 2017-09-28 | 2017-09-28 | Processing method and device for operating mutually exclusive data, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107704557A CN107704557A (en) | 2018-02-16 |
CN107704557B true CN107704557B (en) | 2019-12-10 |
Family
ID=61174572
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710896404.7A Active CN107704557B (en) | 2017-09-28 | 2017-09-28 | Processing method and device for operating mutually exclusive data, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107704557B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112416935A (en) * | 2020-11-20 | 2021-02-26 | 中国建设银行股份有限公司 | Data operation management method and device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6757888B1 (en) * | 2000-09-08 | 2004-06-29 | Corel Inc. | Method and apparatus for manipulating data during automated data processing |
US7831617B2 (en) * | 2006-07-25 | 2010-11-09 | Microsoft Corporation | Re-categorization of aggregate data as detail data and automated re-categorization based on data usage context |
CN102385611A (en) * | 2010-08-27 | 2012-03-21 | 微软公司 | Reducing locking during database transactions |
CN102521007A (en) * | 2011-11-30 | 2012-06-27 | 烽火通信科技股份有限公司 | Network management system object concurrency editing method based on affair scheduling |
CN103207809A (en) * | 2012-01-13 | 2013-07-17 | 金蝶软件(中国)有限公司 | Method and system for removing mutual exclusive lock |
CN103514212A (en) * | 2012-06-27 | 2014-01-15 | 腾讯科技(深圳)有限公司 | Data writing method and system |
CN104778115A (en) * | 2014-01-09 | 2015-07-15 | 北大方正集团有限公司 | Mutual exclusion detection method and device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160036775A1 (en) * | 2014-08-01 | 2016-02-04 | Edward Brian Depenbrock | Data processing system |
-
2017
- 2017-09-28 CN CN201710896404.7A patent/CN107704557B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6757888B1 (en) * | 2000-09-08 | 2004-06-29 | Corel Inc. | Method and apparatus for manipulating data during automated data processing |
US7831617B2 (en) * | 2006-07-25 | 2010-11-09 | Microsoft Corporation | Re-categorization of aggregate data as detail data and automated re-categorization based on data usage context |
CN102385611A (en) * | 2010-08-27 | 2012-03-21 | 微软公司 | Reducing locking during database transactions |
CN102521007A (en) * | 2011-11-30 | 2012-06-27 | 烽火通信科技股份有限公司 | Network management system object concurrency editing method based on affair scheduling |
CN103207809A (en) * | 2012-01-13 | 2013-07-17 | 金蝶软件(中国)有限公司 | Method and system for removing mutual exclusive lock |
CN103514212A (en) * | 2012-06-27 | 2014-01-15 | 腾讯科技(深圳)有限公司 | Data writing method and system |
CN104778115A (en) * | 2014-01-09 | 2015-07-15 | 北大方正集团有限公司 | Mutual exclusion detection method and device |
Non-Patent Citations (1)
Title |
---|
"XML文档访问控制中互斥操作研究";张尚昂 等;《计算机工程与设计》;20081231;第29卷(第23期);第6087-6089页 * |
Also Published As
Publication number | Publication date |
---|---|
CN107704557A (en) | 2018-02-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108470298B (en) | Method, device and system for transferring resource numerical value | |
CN111163182B (en) | Block chain-based device registration method and apparatus, electronic device, and storage medium | |
CN108683668B (en) | Resource checking method, device, storage medium and equipment in content distribution network | |
CN106034113A (en) | Data processing method and data processing device | |
CN106021566A (en) | Method, device and system for improving concurrent processing capacity of single database | |
CN108133026B (en) | Multi-data processing method, system and storage medium | |
CN111008220A (en) | Method and device for dynamic identification of data source, storage medium and electronic device | |
CN110619022A (en) | Node detection method, device, equipment and storage medium based on block chain network | |
CN107704557B (en) | Processing method and device for operating mutually exclusive data, computer equipment and storage medium | |
CN112860780A (en) | Data export method and device and terminal equipment | |
CN109087097B (en) | Method and device for updating same identifier of chain code | |
CN111327680A (en) | Authentication data synchronization method, device, system, computer equipment and storage medium | |
CN105871982A (en) | Content pushing method, device and system | |
CN114491653B (en) | Data content tamper-proof system, method and device | |
CN107203915B (en) | Data storage method and device | |
CN112732413B (en) | Exception handling method, exception handling device, computer equipment and computer readable storage medium | |
CN111092949B (en) | Method and device for registering equipment | |
CN104407846B (en) | Information processing method and device | |
CN113986995A (en) | Request distribution method, device, storage medium and electronic device | |
CN114238404A (en) | Data query method and device, storage medium and equipment | |
CN114218191A (en) | System function migration method and device, computer equipment and storage medium | |
CN114254278A (en) | User account merging method and device, computer equipment and storage medium | |
CN112559460A (en) | File storage method, device, equipment and storage medium based on artificial intelligence | |
CN112732471A (en) | Error correction method and error correction device for interface return data | |
CN116775772B (en) | Data processing method, device, equipment and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |