CN110704818A - User information modification method and device - Google Patents

User information modification method and device Download PDF

Info

Publication number
CN110704818A
CN110704818A CN201810753313.2A CN201810753313A CN110704818A CN 110704818 A CN110704818 A CN 110704818A CN 201810753313 A CN201810753313 A CN 201810753313A CN 110704818 A CN110704818 A CN 110704818A
Authority
CN
China
Prior art keywords
modification
user information
identifier
target user
instruction
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
CN201810753313.2A
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.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum Technology 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 Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201810753313.2A priority Critical patent/CN110704818A/en
Publication of CN110704818A publication Critical patent/CN110704818A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/45Structures or tools for the administration of authentication

Abstract

The embodiment of the invention discloses a method and a device for modifying user information. The method comprises the following steps: acquiring a modification identifier for marking modification of user information, generating a modification instruction aiming at target user information according to the modification identifier, searching the target user information aiming at the modification instruction when executing the modification instruction, and judging whether the modification identifier of the target user information is the same as the modification identifier of the modification instruction, if so, the target user information and the corresponding modification identifier are modified according to the modification instruction, so that when a plurality of modification instructions are generated simultaneously or nearly simultaneously, when the instructions are executed, when a modification instruction is executed, the modification identifier of the target user information changes, so that the modification identifiers in other modification instructions are different from the modification identifier of the target user information, and only one modification instruction can be successfully executed in a plurality of modification instructions, so that the problem of uncertainty of a modification result is solved.

Description

User information modification method and device
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a user information modification method and a user information modification apparatus.
Background
The authority management belongs to one of the daily tasks of the administrators, and for the authority of the same user, if a plurality of administrators modify the user simultaneously, for example, one administrator needs to modify the user into a project administrator and the other administrator needs to modify the user into a system administrator, although the operations of the two administrators are simultaneous or almost simultaneous, the authority modification is necessarily sequential, that is, the modification of one administrator is necessarily executed first and the modification of the other administrator is executed later, the authority of the user is finally the result of the last modification.
The applicant finds that after the two administrators complete the modification, the two administrators view the modification result, but since the two modifications are executed, the result seen by the administrators may be the project administrator or the system administrator, which leads to a problem that one administrator inevitably finds that the modification result is inconsistent with the expectation of the administrator, that is, the modification result depends on the sequence of the specific execution of the program, which leads to an uncertainty problem of the modification result.
Disclosure of Invention
In view of the above problems, a method and an apparatus for modifying user information are provided to solve the problem of uncertainty of the modification result caused by the fact that the modification result depends on the sequence of specific execution time of the program.
According to an aspect of the present invention, there is provided a user information modification method, including:
acquiring a modification identifier for marking modification of user information;
generating a modification instruction aiming at the target user information according to the modification identifier;
searching target user information aimed at by the modification instruction, and judging whether the modification identifier of the target user information is the same as the modification identifier of the modification instruction or not;
and if the modification identifier of the target user information is the same as the modification identifier of the modification instruction, modifying the target user information and the corresponding modification identifier according to the modification instruction.
Optionally, before the obtaining of the modification identifier for marking the modification of the user information, the method includes:
adding the modification identifier to the user information.
Optionally, the modifying identifier includes modifying time, and modifying the target user information and the corresponding modifying identifier according to the modifying instruction includes:
and modifying the modification time corresponding to the target user information into the time for executing the modification instruction.
Optionally, the step of searching for the target user information to which the modification instruction is directed, and determining whether the modification identifier of the target user information is the same as the modification identifier of the modification instruction, where the modification instruction is directed to multiple pieces of target user information, includes:
searching a plurality of target user information aimed at by the modification instruction;
and judging whether the modification identifier of each target user information is the same as the corresponding modification identifier in the modification instruction.
Optionally, if the modification identifier of the target user information is the same as the modification identifier of the modification instruction, modifying the target user information and the corresponding modification identifier according to the modification instruction includes:
and if the modification identifiers of all the target user information are the same as the corresponding modification identifiers in the modification instruction, modifying the target user information and the corresponding modification identifiers according to the modification instruction.
Optionally, if the modification identifier of the target user information is the same as the modification identifier of the modification instruction, modifying the target user information and the corresponding modification identifier according to the modification instruction includes:
and if the modification identifier of part of the target user information is the same as the corresponding modification identifier in the modification instruction, modifying the part of the target user information and the corresponding modification identifier according to the modification instruction.
Optionally, the user information further includes a user identifier, the modification identifier includes modification time at which the user information is modified last time, and the searching for the target user information to which the modification instruction is directed, and determining whether the modification identifier of the target user information is the same as the modification identifier of the modification instruction includes:
searching for a user with the same user identification as the user identification in the modification instruction;
and judging whether the modification time of the searched target user information of the user is the same as the modification time in the modification instruction.
According to another aspect of the present invention, there is provided a user information modifying apparatus comprising
The identification acquisition module is used for acquiring a modified identification used for marking modification of the user information;
the instruction generating module is used for generating a modification instruction aiming at the target user information according to the modification identifier;
the judging module is used for searching the target user information aimed at by the modification instruction and judging whether the modification identifier of the target user information is the same as the modification identifier of the modification instruction or not;
and the modification module is used for modifying the target user information and the corresponding modification identifier according to the modification instruction if the modification identifier of the target user information is the same as the modification identifier of the modification instruction.
Optionally, the apparatus comprises:
and the identification adding module is used for adding the modification identification to the user information before the modification identification used for marking the modification of the user information is obtained.
Optionally, the modification identifier includes a modification time, and the modification module includes:
and the time modification submodule is used for modifying the modification time corresponding to the target user information into the time for executing the modification instruction.
Optionally, the modification instruction is for a plurality of target user information, and the determining module includes:
the information searching submodule is used for searching a plurality of target user information aimed at by the modification instruction;
and the judgment submodule is used for judging whether the modification identifier of each target user information is the same as the corresponding modification identifier in the modification instruction.
Optionally, the modifying module includes:
and the first modification submodule is used for modifying the target user information and the corresponding modification identifiers according to the modification instruction if the modification identifiers of all the target user information are the same as the corresponding modification identifiers in the modification instruction.
Optionally, the modifying module includes:
and the second modification submodule is used for modifying the part of the target user information and the corresponding modification identifier according to the modification instruction if the modification identifier of the part of the target user information is the same as the corresponding modification identifier in the modification instruction.
Optionally, the user information further includes a user identifier, and the modification identifier includes a modification time at which the user information was modified last time, and the determining module includes:
the information searching submodule is used for searching the user with the same user identification as the user identification in the modification instruction;
and the judging submodule is used for judging whether the modification time of the searched target user information of the user is the same as the modification time in the modification instruction.
According to another aspect of the present invention, there is provided a storage medium comprising a stored program, wherein the program, when executed, controls an apparatus in which the storage medium is located to perform one or more of the methods as described above.
According to another aspect of the present invention, there is provided a processor, wherein the processor is configured to execute a program, wherein the program executes to perform one or more of the methods as described above.
To sum up, according to the embodiments of the present invention, a modification identifier for marking modification of user information is obtained, a modification instruction for target user information is generated according to the modification identifier, when the modification instruction is executed, the target user information to which the modification instruction is directed is searched, and whether the modification identifier of the target user information is the same as the modification identifier of the modification instruction is determined, if so, the target user information and the corresponding modification identifier are modified according to the modification instruction, so that when a plurality of modification instructions are generated simultaneously or almost simultaneously, when one modification instruction is executed, the modification identifier of the target user information changes, which causes the modification identifiers of other modification instructions to be different from the modification identifier of the target user information, and only one modification instruction of the plurality of modification instructions can be successfully executed, thereby avoiding the plurality of modification instructions from being executed, the problem of uncertainty of the modification result is solved.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flow chart illustrating a method for modifying user information according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating another method of modifying user information in accordance with an embodiment of the present invention;
fig. 3 is a block diagram showing a structure of another user information modification apparatus according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Example one
Referring to fig. 1, a flowchart of a user information modification method according to an embodiment of the present invention is shown, which may specifically include:
step 101, a modification identifier for marking a modification to user information is obtained.
In this embodiment of the present invention, the user information includes a right of the user, a name of the user, or any other suitable information related to the user, which is not limited in this embodiment of the present invention. In order to mark the modification of the user information, a modification identifier is added, and specifically, the modification identifier may be added to the user information, where the modification identifier includes modification time, modification serial number, random number, or any other applicable identifier, and the embodiment of the present invention is not limited to this.
For example, the user information table includes information such as a user name, user authority, and state change time (i.e., modification flag), and when administrators a and B modify the authority of user 1 at the same time, the user information is acquired first, and the user information acquired by administrators a and B is the same.
In this embodiment of the present invention, before obtaining the modification identifier for marking the modification to the user information, the method may further include: adding the modification identifier to the user information.
In order to mark the modification to the user information, a modification identifier may be added to the user information, for example, a list of state change times (i.e., modification identifiers) is added to a user information table, or any other suitable manner is added, which is not limited in this embodiment of the present invention.
And 102, generating a modification instruction aiming at the target user information according to the modification identifier.
In the embodiment of the present invention, information to be modified in the user information is recorded as target user information, for example, a modification instruction only modifies user rights (i.e. target user information) in the user information. And aiming at the target user information to be modified, generating a modification instruction according to the modification identifier of the target user information.
The specifically generated modification instruction may include a plurality of types, for example, a modification instruction for changing the user information table specifically executes setting of the user authority as the project administrator and the state change time as the current time when the user name is user 1 and the state change time is the same as the state change time in the modification instruction. Any suitable modification instruction may be specifically included, and the embodiment of the present invention is not limited thereto.
Step 103, searching the target user information for the modification instruction, and determining whether the modification identifier of the target user information is the same as the modification identifier of the modification instruction.
In the embodiment of the invention, the modification instruction is executed, the modification instruction can include the information of the user name, the user serial number and the like which can determine the information of the target user, the information of the target user can be searched accordingly, and whether the modification identifier of the information of the target user is the same as the modification identifier in the modification instruction is judged. For example, the administrators a and B modify the authority of the user 1 at the same time, the obtained user information is the user name of the user 1, the user authority is null, and the state change time is 14 in 2018, 1 month and 1 day: 00: 00. the modification instruction generated by administrator a is "set user authority is" item administrator ", state change time is current time, where user name is" user 1 "and state change time is" 2018, 1 month, 1 day, 14: 00: 00'". The modification instruction generated by the administrator B is "set user authority ═ system administrator ', state change time ═ current time, ' user name ═ user 1 ' and state change time ═ 2018, 1 month, 1 day, 14: 00: 00'". When the modification instructions of the two administrators are executed, the two instructions are executed in sequence, the user information of the user 1 is searched first during execution, whether the state change time in the user information of the user 1 is the same as the state change time in the modification instructions is judged, if yes, the step 104 is executed, and if not, the execution of the modification instructions fails.
In this embodiment of the present invention, optionally, the user information further includes a user identifier, the modification identifier includes modification time when the user information is modified last time, and one implementation manner of searching for target user information to which the modification instruction is directed and determining whether the modification identifier of the target user information is the same as the modification identifier of the modification instruction includes: searching for a user with the same user identification as the user identification in the modification instruction; and judging whether the modification time of the target user information of the searched user is the same as the modification time in the modification instruction. The modification instruction may be to search for a user with the same user identifier as that in the modification instruction, and then determine whether the modification time of the target user information of the searched user is the same as that in the modification instruction, if the modification time is the same, step 104 is executed, otherwise, the execution of the modification instruction fails, and the reason of the execution failure may be returned to the administrator.
And 104, if the modification identifier of the target user information is the same as the modification identifier of the modification instruction, modifying the target user information and the corresponding modification identifier according to the modification instruction.
In the embodiment of the invention, if the modification identifier of the target user information is the same as the modification identifier of the modification instruction, the target user information and the corresponding modification identifier are modified according to the modification instruction. If the modification identifier of the target user information is different from the modification identifier of the modification instruction, the modification fails, which may specifically include any applicable processing mode after the modification fails, and this is not limited in the embodiment of the present invention.
For example, two modification instructions of administrators a and B are sent to the database server at the same time, the order is necessarily sorted, and if the modification instruction of the administrator a is executed first, the target user information is modified into "user 1, project administrator, instruction execution time 2018, 1 month, 1 day, 14: 00: 01 ", the modification instruction of administrator B fails to execute because the state change time is different. The modification result finally returned to the administrator A is successful modification, the user authority of the user 1 is modified to the project administrator, and the modification result of the administrator B is failed modification, so that modification errors and reasons can be prompted to the administrator B. Therefore, only one of the two modification instructions of the administrators A and B can be successfully executed, and the problem that the two modification instructions are executed to cause uncertain modification results is avoided.
In the embodiment of the present invention, the modification identifier includes modification time, and an implementation manner of modifying the target user information and the corresponding modification identifier according to the modification instruction may include: and modifying the modification time corresponding to the target user information into the time for executing the modification instruction.
In order to mark the modification of the user information, the time of instruction execution may be marked each time the target user information is modified, that is, the modification time is modified to the time of instruction execution. Therefore, when a plurality of modification instructions are generated simultaneously, the modification time in each modification instruction is the time of executing the last modification, and when the plurality of modification instructions are executed successively, the modification instruction executed first can modify the modification time of the target user information into the time of executing the instruction, so that the modification time in other modification instructions cannot be the same as the modification time of the target user information, namely only the first executed modification instruction is successful, and the other modification instructions cannot be executed successfully.
To sum up, according to the embodiments of the present invention, a modification identifier for marking modification of user information is obtained, a modification instruction for target user information is generated according to the modification identifier, when the modification instruction is executed, the target user information to which the modification instruction is directed is searched, and whether the modification identifier of the target user information is the same as the modification identifier of the modification instruction is determined, if so, the target user information and the corresponding modification identifier are modified according to the modification instruction, so that when a plurality of modification instructions are generated simultaneously or almost simultaneously, when one modification instruction is executed, the modification identifier in the target user information changes, which causes the modification identifiers in other modification instructions to be different from the modification identifier in the target user information, and only one modification instruction can be successfully executed in a plurality of modification instructions, thereby avoiding a plurality of modification instructions from being executed, the problem of uncertainty of the modification result is solved.
Example two
Referring to fig. 2, a flowchart of another user information modification method according to an embodiment of the present invention is shown, which may specifically include:
in step 201, a modification identifier for marking a modification to user information is obtained.
And 202, generating a modification instruction aiming at the target user information according to the modification identifier.
Step 203, searching a plurality of target user information aimed at by the modification instruction.
In this embodiment of the present invention, the modification instruction may search, for the information of the plurality of target users, for which the modification instruction is directed, for example, search according to a user name, or any other suitable search manner, which is not limited in this embodiment of the present invention.
Step 204, determining whether the modification identifier of each target user information is the same as the corresponding modification identifier in the modification instruction.
In the embodiment of the invention, because the modification instruction is specific to a plurality of target user information, whether the modification identifier is the same as the corresponding modification identifier in the modification instruction is respectively judged for each target user information.
For example, the modification instruction is for two target users, user 1 and user 2, and the state change time corresponding to user 1 is 2018, 1, 14: 00: 00, the state change time corresponding to the user 2 is 2018, 1, 15: 00: 00, after finding the user information of the user 1 and the user 2, judging whether the state change time of the user 1 is equal to 14 of 1 month and 1 day of 2018: 00: 00 similarly, it is determined whether or not the state change time of the user 2 is equal to 2018, 1, 15: 00: 00 are the same. Since the modification instruction is a batch modification for a plurality of target users, it needs to be determined for each target user information, if the state change time of some user information in user 1 and user 2 is the same as the state change time in the modification instruction, step 205 is executed, and if both are different, the modification instruction fails to be executed.
Step 205, if the modification identifier of part of the target user information is the same as the corresponding modification identifier in the modification instruction, modifying the part of the target user information and the corresponding modification identifier according to the modification instruction.
In the embodiment of the invention, in an implementation mode, in the modification instruction, if the modification identifier of part of the target user information is the same as the corresponding modification identifier in the modification instruction, the modification of the part of the target user information with the same modification identifier and the corresponding modification identifier according to the modification instruction, and the modification of the other part of the target user information with different modification identifiers fails, so that the problem that the modification of all the target user information fails due to the fact that the modification identifiers of part of the user information are different in the modification instruction for a plurality of target user information is avoided, and when the user information is modified in batch, the successful modification of part of the user information is ensured.
For example, the modification instruction is for the user 1 and the user 2, if the state change time of the user 1 is the same as the state change time of the user 1 in the modification instruction, and the state change time of the user 2 is different from the state change time of the user 2 in the modification instruction, the user information and the corresponding state change time of the user 1 are modified according to the modification instruction without modifying the user 2, so that the problem that the modification of the user 1 fails due to the inconsistency of the state change time of the user 2 is avoided, and the fact that part of the user information can be modified successfully in batch modification is ensured.
In this embodiment of the present invention, preferably, if the modification identifier of the target user information is the same as the modification identifier of the modification instruction, another implementation manner for modifying the target user information and the corresponding modification identifier according to the modification instruction may include: and if the modification identifiers of all the target user information are the same as the corresponding modification identifiers in the modification instruction, modifying the target user information and the corresponding modification identifiers according to the modification instruction.
In the modification instruction, if the modification identifiers of all the target user information are the same as the corresponding modification identifiers in the modification instruction, the target user information and the corresponding modification identifiers are modified. For example, for the user 1 and the user 2, the modification instruction modifies the user information and the corresponding state change time of the user 1 and the user 2 according to the modification instruction only if the state change time of the user 1 is the same as the state change time of the user 1 in the modification instruction and the state change time of the user 2 in the modification instruction is the same as the state change time of the user 2 in the modification instruction. For the modification instruction aiming at the information of a plurality of target users, the problem that the user information is inconsistent after being changed during batch modification can be caused by modifying part of the target user information and not modifying another target user information, and the realization method can solve the problem and ensure the consistency of the user information.
To sum up, according to the embodiments of the present invention, a modification identifier for marking modification of user information is obtained, a modification instruction for target user information is generated according to the modification identifier, when the modification instruction is executed, a plurality of target user information targeted by the modification instruction are searched, whether the modification identifier of each target user information is the same as the corresponding modification identifier in the modification instruction is determined, if the modification identifier of each target user information is the same as the corresponding modification identifier in the modification instruction, the target user information and the corresponding modification identifier are modified according to the modification instruction, so that when a plurality of modification instructions are generated simultaneously or almost simultaneously, when an instruction is executed, the modification identifier in the target user information changes, which results in that the modification identifiers in other modification instructions are different from the modification identifiers in the target user information, and only one modification instruction can be successfully executed in a plurality of modification instructions, the method avoids a plurality of modification instructions from being executed, and solves the problem of uncertainty of the modification result.
Further, if the modification identifier of part of the target user information is the same as the corresponding modification identifier in the modification instruction, modifying the part of the target user information and the corresponding modification identifier according to the modification instruction. The problem that all target user information is unsuccessfully modified due to different modification identifications of part of user information of modification instructions aiming at a plurality of target user information is solved, and when the user information is modified in batches, the condition that part of the user information can be successfully modified is ensured.
Further, if the modification identifiers of all the target user information are the same as the corresponding modification identifiers in the modification instruction, the target user information and the corresponding modification identifiers are modified according to the modification instruction, and the problem that the user information is inconsistent after being changed during batch modification is avoided.
EXAMPLE III
Referring to fig. 3, a block diagram of a structure of another user information modification apparatus according to an embodiment of the present invention is shown, which may specifically include:
an identifier obtaining module 301, configured to obtain a modification identifier for marking a modification to user information;
the instruction generating module 302 is configured to generate a modification instruction for the target user information according to the modification identifier;
a determining module 303, configured to search for target user information targeted by the modification instruction, and determine whether a modification identifier of the target user information is the same as a modification identifier of the modification instruction;
a modification module 304, configured to modify the target user information and the corresponding modification identifier according to the modification instruction if the modification identifier of the target user information is the same as the modification identifier of the modification instruction.
In a preferred embodiment of the invention, the apparatus comprises:
and the identification adding module is used for adding the modification identification to the user information before the modification identification used for marking the modification of the user information is obtained.
In a preferred embodiment of the present invention, the modification identifier includes a modification time, and the modification module includes:
and the time modification submodule is used for modifying the modification time corresponding to the target user information into the time for executing the modification instruction.
In a preferred embodiment of the present invention, the modification instruction is for information of a plurality of target users, and the determining module includes:
the information searching submodule is used for searching a plurality of target user information aimed at by the modification instruction;
and the judgment submodule is used for judging whether the modification identifier of each target user information is the same as the corresponding modification identifier in the modification instruction.
In a preferred embodiment of the present invention, the modification module includes:
and the first modification submodule is used for modifying the target user information and the corresponding modification identifiers according to the modification instruction if the modification identifiers of all the target user information are the same as the corresponding modification identifiers in the modification instruction.
In a preferred embodiment of the present invention, the modification module includes:
and the second modification submodule is used for modifying the part of the target user information and the corresponding modification identifier according to the modification instruction if the modification identifier of the part of the target user information is the same as the corresponding modification identifier in the modification instruction.
In a preferred embodiment of the present invention, the user information further includes a user identifier, the modification identifier includes a modification time at which the user information was modified last time, and the determining module includes:
the information searching submodule is used for searching the user with the same user identification as the user identification in the modification instruction;
a judging submodule for judging whether the modification time of the target user information of the searched user is the same as that in the modification instruction
To sum up, according to the embodiments of the present invention, a modification identifier for marking modification of user information is obtained, a modification instruction for target user information is generated according to the modification identifier, when the modification instruction is executed, the target user information to which the modification instruction is directed is searched, and whether the modification identifier of the target user information is the same as the modification identifier of the modification instruction is determined, if so, the target user information and the corresponding modification identifier are modified according to the modification instruction, so that when a plurality of modification instructions are generated simultaneously or almost simultaneously, when one modification instruction is executed, the modification identifier in the target user information changes, which causes the modification identifiers in other modification instructions to be different from the modification identifier in the target user information, and only one modification instruction can be successfully executed in a plurality of modification instructions, thereby avoiding a plurality of modification instructions from being executed, the problem of uncertainty of the modification result is solved.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
The user information modifying device comprises a processor and a memory, the modules, the submodules and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to one or more, and the oil well yield is determined by adjusting the kernel parameters.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
An embodiment of the present invention provides a storage medium having a program stored thereon, which when executed by a processor, implements the well production determination method.
The embodiment of the invention provides a processor for running a program, wherein the program is run to execute the oil well production determination method.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program which is stored on the memory and can run on the processor, wherein the processor executes the program and realizes the following steps:
acquiring a modification identifier for marking modification of user information;
generating a modification instruction aiming at the target user information according to the modification identifier;
searching target user information aimed at by the modification instruction, and judging whether the modification identifier of the target user information is the same as the modification identifier of the modification instruction or not;
and if the modification identifier of the target user information is the same as the modification identifier of the modification instruction, modifying the target user information and the corresponding modification identifier according to the modification instruction.
Optionally, before the obtaining of the modification identifier for marking the modification of the user information, the method includes:
adding the modification identifier to the user information.
Optionally, the modifying identifier includes modifying time, and modifying the target user information and the corresponding modifying identifier according to the modifying instruction includes:
and modifying the modification time corresponding to the target user information into the time for executing the modification instruction.
Optionally, the step of searching for the target user information to which the modification instruction is directed, and determining whether the modification identifier of the target user information is the same as the modification identifier of the modification instruction, where the modification instruction is directed to multiple pieces of target user information, includes:
searching a plurality of target user information aimed at by the modification instruction;
and judging whether the modification identifier of each target user information is the same as the corresponding modification identifier in the modification instruction.
Optionally, if the modification identifier of the target user information is the same as the modification identifier of the modification instruction, modifying the target user information and the corresponding modification identifier according to the modification instruction includes:
and if the modification identifiers of all the target user information are the same as the corresponding modification identifiers in the modification instruction, modifying the target user information and the corresponding modification identifiers according to the modification instruction.
Optionally, if the modification identifier of the target user information is the same as the modification identifier of the modification instruction, modifying the target user information and the corresponding modification identifier according to the modification instruction includes:
and if the modification identifier of part of the target user information is the same as the corresponding modification identifier in the modification instruction, modifying the part of the target user information and the corresponding modification identifier according to the modification instruction.
Optionally, the user information further includes a user identifier, the modification identifier includes modification time at which the user information is modified last time, and the searching for the target user information to which the modification instruction is directed, and determining whether the modification identifier of the target user information is the same as the modification identifier of the modification instruction includes:
searching for a user with the same user identification as the user identification in the modification instruction;
and judging whether the modification time of the searched target user information of the user is the same as the modification time in the modification instruction.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device:
acquiring a modification identifier for marking modification of user information;
generating a modification instruction aiming at the target user information according to the modification identifier;
searching target user information aimed at by the modification instruction, and judging whether the modification identifier of the target user information is the same as the modification identifier of the modification instruction or not;
and if the modification identifier of the target user information is the same as the modification identifier of the modification instruction, modifying the target user information and the corresponding modification identifier according to the modification instruction.
Optionally, before the obtaining of the modification identifier for marking the modification of the user information, the method includes:
adding the modification identifier to the user information.
Optionally, the modifying identifier includes modifying time, and modifying the target user information and the corresponding modifying identifier according to the modifying instruction includes:
and modifying the modification time corresponding to the target user information into the time for executing the modification instruction.
Optionally, the step of searching for the target user information to which the modification instruction is directed, and determining whether the modification identifier of the target user information is the same as the modification identifier of the modification instruction, where the modification instruction is directed to multiple pieces of target user information, includes:
searching a plurality of target user information aimed at by the modification instruction;
and judging whether the modification identifier of each target user information is the same as the corresponding modification identifier in the modification instruction.
Optionally, if the modification identifier of the target user information is the same as the modification identifier of the modification instruction, modifying the target user information and the corresponding modification identifier according to the modification instruction includes:
and if the modification identifiers of all the target user information are the same as the corresponding modification identifiers in the modification instruction, modifying the target user information and the corresponding modification identifiers according to the modification instruction.
Optionally, if the modification identifier of the target user information is the same as the modification identifier of the modification instruction, modifying the target user information and the corresponding modification identifier according to the modification instruction includes:
and if the modification identifier of part of the target user information is the same as the corresponding modification identifier in the modification instruction, modifying the part of the target user information and the corresponding modification identifier according to the modification instruction.
Optionally, the user information further includes a user identifier, the modification identifier includes modification time, and the searching for the target user information to which the modification instruction is directed, and determining whether the modification identifier of the target user information is the same as the modification identifier of the modification instruction includes:
and searching the target user information which is the same as the user identification and the modification time in the modification instruction.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method for modifying user information, comprising:
acquiring a modification identifier for marking modification of user information;
generating a modification instruction aiming at the target user information according to the modification identifier;
searching target user information aimed at by the modification instruction, and judging whether the modification identifier of the target user information is the same as the modification identifier of the modification instruction or not;
and if the modification identifier of the target user information is the same as the modification identifier of the modification instruction, modifying the target user information and the corresponding modification identifier according to the modification instruction.
2. The method of claim 1, wherein prior to said obtaining a modification identifier for marking a modification to user information, the method comprises:
adding the modification identifier to the user information.
3. The method of claim 1, wherein the modification flag comprises a modification time, and wherein modifying the target user information and the corresponding modification flag according to the modification instruction comprises:
and modifying the modification time corresponding to the target user information into the time for executing the modification instruction.
4. The method according to claim 1, wherein the modification instruction is for a plurality of target user information, the searching for the target user information to which the modification instruction is directed, and the determining whether the modification identifier of the target user information is the same as the modification identifier of the modification instruction comprises:
searching a plurality of target user information aimed at by the modification instruction;
and judging whether the modification identifier of each target user information is the same as the corresponding modification identifier in the modification instruction.
5. The method according to claim 4, wherein if the modification identifier of the target user information is the same as the modification identifier of the modification instruction, modifying the target user information and the corresponding modification identifier according to the modification instruction comprises:
and if the modification identifiers of all the target user information are the same as the corresponding modification identifiers in the modification instruction, modifying the target user information and the corresponding modification identifiers according to the modification instruction.
6. The method according to claim 4, wherein if the modification identifier of the target user information is the same as the modification identifier of the modification instruction, modifying the target user information and the corresponding modification identifier according to the modification instruction comprises:
and if the modification identifier of part of the target user information is the same as the corresponding modification identifier in the modification instruction, modifying the part of the target user information and the corresponding modification identifier according to the modification instruction.
7. The method of claim 1, wherein the user information further includes a user identifier, the modification identifier includes a modification time at which the user information was modified last time, and the searching for the target user information to which the modification instruction is directed and determining whether the modification identifier of the target user information is the same as the modification identifier of the modification instruction comprises:
searching for a user with the same user identification as the user identification in the modification instruction;
and judging whether the modification time of the searched target user information of the user is the same as the modification time in the modification instruction.
8. A user information modification apparatus, comprising:
the identification acquisition module is used for acquiring a modified identification used for marking modification of the user information;
the instruction generating module is used for generating a modification instruction aiming at the target user information according to the modification identifier;
the judging module is used for searching the target user information aimed at by the modification instruction and judging whether the modification identifier of the target user information is the same as the modification identifier of the modification instruction or not;
and the modification module is used for modifying the target user information and the corresponding modification identifier according to the modification instruction if the modification identifier of the target user information is the same as the modification identifier of the modification instruction.
9. A storage medium, characterized in that the storage medium comprises a stored program, wherein a device on which the storage medium is located is controlled to perform one or more of the methods of claims 1 to 7 when the program is run.
10. A processor, characterized in that the processor is configured to run a program, wherein the program when running performs one or more of the methods of claims 1 to 7.
CN201810753313.2A 2018-07-10 2018-07-10 User information modification method and device Pending CN110704818A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810753313.2A CN110704818A (en) 2018-07-10 2018-07-10 User information modification method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810753313.2A CN110704818A (en) 2018-07-10 2018-07-10 User information modification method and device

Publications (1)

Publication Number Publication Date
CN110704818A true CN110704818A (en) 2020-01-17

Family

ID=69192527

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810753313.2A Pending CN110704818A (en) 2018-07-10 2018-07-10 User information modification method and device

Country Status (1)

Country Link
CN (1) CN110704818A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112199380A (en) * 2020-09-11 2021-01-08 北京达佳互联信息技术有限公司 Account information modification method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5459863A (en) * 1990-05-07 1995-10-17 Next Computer, Inc. Method of maintaining data integrity in a network database
CN101166355A (en) * 2006-10-18 2008-04-23 中兴通讯股份有限公司 Method and system for guaranteeing user data consistence
CN101387953A (en) * 2007-09-14 2009-03-18 环达电脑(上海)有限公司 Collaboration software development system and method
CN102436633A (en) * 2011-11-30 2012-05-02 华为技术有限公司 Data management method and system as well as database system
CN102622350A (en) * 2011-01-26 2012-08-01 腾讯科技(深圳)有限公司 Method, device and system for writing data

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5459863A (en) * 1990-05-07 1995-10-17 Next Computer, Inc. Method of maintaining data integrity in a network database
CN101166355A (en) * 2006-10-18 2008-04-23 中兴通讯股份有限公司 Method and system for guaranteeing user data consistence
CN101387953A (en) * 2007-09-14 2009-03-18 环达电脑(上海)有限公司 Collaboration software development system and method
CN102622350A (en) * 2011-01-26 2012-08-01 腾讯科技(深圳)有限公司 Method, device and system for writing data
CN102436633A (en) * 2011-11-30 2012-05-02 华为技术有限公司 Data management method and system as well as database system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112199380A (en) * 2020-09-11 2021-01-08 北京达佳互联信息技术有限公司 Account information modification method and device, electronic equipment and storage medium
CN112199380B (en) * 2020-09-11 2023-11-28 北京达佳互联信息技术有限公司 Account information modification method, device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN112487083B (en) Data verification method and device
CN108268609B (en) File path establishing and accessing method and device
CN109634682B (en) Configuration file updating method and device for application program
EP3243134A1 (en) Multi-tenant upgrading
US11704114B2 (en) Data structures for managing configuration versions of cloud-based applications
CN110968565A (en) Database creation method and system
CN110765151A (en) Calculation formula processing method and device
CN109992501A (en) The availability inspection of small routine can use small routine list generation method and device
CN110895544B (en) Interface data processing method, device, system and storage medium
CN110704818A (en) User information modification method and device
CN108062323B (en) Log reading method and device
CN111324373B (en) Method and device for sub-coding warehouse on multiple engineering files and computing equipment
CN109582396B (en) Task state processing method, device and system and storage medium
CN109561126B (en) Data synchronization method and device, storage medium and processor
CN111125087B (en) Data storage method and device
CN109558249B (en) Control method and device for concurrent operation
CN106294700A (en) The storage of a kind of daily record and read method and device
US11775643B2 (en) Method and system for labeling object and generating security policy of operating system
CN110990378A (en) Block chain-based data consistency comparison method, device and medium
CN109299125B (en) Database updating method and device
CN106775629B (en) Search file generation method and device
CN110019296B (en) Database query script generation method and device, storage medium and processor
CN110806895A (en) Project creation method and device and computer readable storage medium
CN111125165A (en) Set merging method, device, processor and machine-readable storage medium
CN111427863A (en) Data migration method, device and equipment based on domain model

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200117

RJ01 Rejection of invention patent application after publication