Disclosure of Invention
In view of the above, the present invention provides an account checking method, apparatus, medium and electronic device to solve the problem of registration conflict. The technical scheme is as follows:
based on one aspect of the embodiments of the present invention, an embodiment of the present invention provides a client information processing method, which is applied to a background server of a client center, and includes:
receiving to-be-processed client information uploaded by a service system;
judging whether the client information containing the type of the certificate to be processed and the number of the certificate to be processed exists or not under the condition that the type of the certificate to be processed and the number of the certificate to be processed are contained in the client information to be processed;
and if the customer information exists, updating the customer information according to the customer information to be processed, and feeding back a customer ID corresponding to the customer information to the service system.
Optionally, updating the customer information according to the customer information to be processed includes:
comparing the customer information to be processed with each element information in the customer information, and determining a first type of element information and a second type of element information in the customer information to be processed according to a comparison result; wherein,
the first type element information is element information which does not exist in the client information, and the second type element information is element information which is inconsistent with the element information in the client information;
and deleting element information which is inconsistent with the second type element information in the client information, and adding the first type element information and the second type element information to the client information.
Optionally, the method further includes: and executing target operation on the updated customer information, wherein the target operation comprises synchronization and/or broadcasting.
Optionally, the method further includes: and under the condition that the to-be-processed customer information does not contain the type and the number of the to-be-processed certificate or the customer information does not exist, allocating a unique customer ID for the to-be-processed customer information, and feeding back the customer ID to the service system.
Optionally, the method further includes: receiving a certificate adding request of the service system for first customer information, wherein the certificate adding request carries a first customer ID, a type of a certificate to be added and a number of the certificate to be added corresponding to the first customer information;
judging whether second customer information containing the type of the certificate to be added and the number of the certificate to be added exists or not;
if the second client information exists, determining a second client ID corresponding to the second client information as a primary index of the first client ID;
and updating the second customer information according to the first customer information.
Optionally, the updating the second customer information according to the first customer information includes:
comparing each element information in the first customer information and the second customer information, and determining a third type element information and a fourth type element information in the first customer information according to a comparison result; wherein,
the third type element information is element information which does not exist in the second client information, and the fourth type element information is element information which is inconsistent with the element information in the first client information;
and deleting element information which is inconsistent with the fourth type element information in the second client information, and adding the third type element information and the fourth type element information to the second client information.
Optionally, before determining the second client ID corresponding to the second client information as the primary index of the first client ID, the method further includes:
receiving an index establishment request which is uploaded by the service system and carries a token;
judging whether the authority corresponding to the token has an index establishment authority or not;
and if the index establishing authority exists, determining a second client ID corresponding to the second client information as a main index of the first client ID.
Based on still another aspect of the embodiments of the present invention, an embodiment of the present invention provides a client information processing apparatus, including:
the receiving module is used for receiving the information of the client to be processed uploaded by the service system;
the judging module is used for judging whether the client information containing the certificate type to be processed and the certificate number to be processed exists or not under the condition that the client information to be processed contains the certificate type to be processed and the certificate number to be processed;
and the processing module is used for updating the client information according to the client information to be processed and feeding back a client ID corresponding to the client information to the service system if the client information exists.
Based on a further aspect of the embodiments of the present invention, an embodiment of the present invention provides a storage medium, on which a program is stored, and the program, when executed by a processor, implements the client information processing method described above.
Based on still another aspect of the embodiments of the present invention, an embodiment of the present invention provides an electronic device, including:
a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the customer information handling method described above via execution of the executable instructions.
According to the client information processing method, the device, the medium and the electronic equipment provided by the embodiment of the invention, if the client information containing the type of the certificate to be processed and the certificate to be processed is detected, the problem of registration conflict is shown. At the moment, on the principle that the current client information is the most credible, the client information is updated by using the client information to be processed, so that the client information is fed back to the service system, and the problem of registration conflict is solved.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, which shows a flowchart of a client information processing method provided by an embodiment of the present invention, applied to a background server of a client center, including the following steps:
s10, receiving the information of the client to be processed uploaded by the service system;
in the embodiment of the invention, as the certificate type and the certificate number can uniquely represent one client, once the pending client information comprises the pending certificate type and the pending certificate number, the client information of the client center which has registered for the client can be inquired by using the pending certificate type and the pending certificate number.
It should be noted that the pending client information may also include other information, such as a pending surname, a pending gender, a pending birth date, and the like. However, since the information is not unique, it cannot uniquely represent a client, and therefore, once the pending client information does not include the pending certificate type and the pending certificate number, it cannot query whether the pending client has already registered by using the pending client information.
Therefore, in the case that the type and the number of the certificate to be processed are not contained in the information of the client to be processed, a unique client ID is allocated to the information of the client to be processed and is fed back to the service system, namely, the client to be registered is treated as a new user. Further, if a relationship person maintenance request carrying a client ID uploaded by the service system is received, the relationship person maintenance request is responded, and addition, modification and deletion of the relationship person can be specifically performed.
S20, under the condition that the pending customer information contains the pending certificate type and the pending certificate number, judging whether the customer information containing the pending certificate type and the pending certificate number exists;
it should be noted that the client information may include a certificate type, a certificate number, a name, a gender, a date of birth, and other attributes of the client, such as one or more of a country, a mobile phone, a language, a blood type, an address, a relationship person, and the like, which is not limited in this embodiment of the present invention.
S30, if the customer information exists, updating the customer information according to the customer information to be processed, and feeding back the customer ID corresponding to the customer information to the service system;
in the embodiment of the invention, the client information is updated by using the client information to be processed according to the principle that the current client information is the most credible so as to ensure that one client has one information, namely, one certificate type and one certificate number are only in one client information.
In a specific implementation process, in the process of "updating the customer information according to the customer information to be processed" in step S30, the following steps may be specifically adopted, and a flowchart of the method is shown in fig. 2:
s301, comparing the client information to be processed with each element information in the client information, and determining a first type of element information and a second type of element information in the client information to be processed according to a comparison result; wherein,
the first type element information is element information which does not exist in the client information, and the second type element information is element information which is inconsistent with the element information in the client information;
the following are exemplified:
the client information to be processed comprises a certificate type 1, a certificate number 1, a name 1, a gender 1 and a birth date 1; the customer information contains certificate type 2, certificate number 2, name 2, date of birth 2, and phone number 2. It can be seen that the information of the element "telephone number" in the customer information to be processed is empty, and the information of the element "gender" in the customer information is empty.
Therefore, the respective element information of the customer information and the customer information to be processed are compared in order, that is, the "certificate type 1" and "certificate type 2", "certificate number 1" and "certificate number 2", "last name 1" and "name 2", "sex 1" and the null element information, "birth date 1" and "birth date 2", the null element information and "telephone number 2" are compared.
If the certificate type 1 and the certificate type 2 are the same, the certificate number 1 and the certificate number 2 are the same, the name 1 and the name 2 are different, the birth date 1 and the birth date 2 are the same, the sex 1 is determined as the first type element information, and the name 1 is determined as the second type element information.
S302, deleting element information which is inconsistent with the second type element information in the client information, and adding the first type element information and the second type element information to the client information;
continuing with the above example, with the pending customer information as a reference, "name 2" in the customer information is deleted, and "gender 1" and "name 1" are added to the customer information.
In other embodiments, if the customer information does not exist, it may be determined that the customer to be registered is not registered, and is a new customer, and therefore a unique customer ID needs to be assigned to the customer information to be processed, and fed back to the service system. Further, if a relationship person maintenance request carrying a client ID uploaded by the service system is received, the relationship person maintenance request is responded, and addition, modification and deletion of the relationship person can be specifically performed.
In some other embodiments, in order to ensure that other client information can obtain updated client information in time, on the basis of the client information processing method shown in fig. 1, the method includes the following steps, and a flowchart of the method is shown in fig. 3:
and S40, executing target operation on the updated client information, wherein the target operation comprises synchronization and/or broadcasting.
In the embodiment of the invention, the updated customer information can be synchronized to the upper customer center and/or broadcasted to the lower customer center.
In the actual application process, five pieces of element information can be complete, that is, when the updated client information simultaneously contains important element information of "certificate type", "certificate number", "name", "gender" and "date of birth", the client information is synchronized to an MDM (Master Data Management) client center, that is, a Master client center.
The above steps S301 to S302 are only one preferred implementation of the "update customer information according to the customer information to be processed" process in step S30 disclosed in the embodiment of the present invention, and the specific implementation of this process may be arbitrarily set according to its own requirements, and is not limited herein.
The client information processing method provided by the embodiment of the invention updates the client information by using the client information to be processed according to the principle that the current client information is the most credible, so that the client information is updated one by one, and the client ID corresponding to the client information is fed back to a service system, thereby solving the problem of registration conflict.
In actual application, there is also an application scenario in which the service system 1 registers a client ID1 for the client a with the last name and gender of the client a, and the service system 2 registers a client ID2 for the client a with the certificate type and certificate number of the client a. When the customer a registers the certificate type and the certificate number in the service system 1, since the customer center cannot allocate two IDs to the same customer, the service system 1 is not allowed to successfully register, thereby causing a problem of update conflict.
In other embodiments, to solve the above problem of update conflict, on the basis of the client information processing method shown in fig. 1, the following steps are included, and a flowchart of the method is shown in fig. 4:
s50, receiving a certificate adding request of a service system for first customer information, wherein the certificate adding request carries a first customer ID, a certificate type to be added and a certificate number to be added corresponding to the first customer information;
s60, judging whether second customer information containing the type and number of the certificate to be added exists;
s70, if the second client information exists, determining the second client ID corresponding to the second client information as the main index of the first client ID;
in the embodiment of the invention, the second client ID is determined as the primary index, and the first client ID is used as the secondary index to establish the association relationship between the two. Therefore, when an information query request carrying the first client ID is received by the service system, the association relation is utilized to determine the second client ID serving as the main index of the first client ID, and the second client information corresponding to the second client ID is fed back to the service system.
S80, updating the second customer information according to the first customer information;
in the embodiment of the invention, the principle that the current client information is the most credible is taken as the principle, the first client information is used for updating the second client information so as to ensure that one client has one information, namely, one certificate type and one certificate number are only in one client information.
In a specific implementation process, in the process of "updating the second customer information according to the first customer information" in step S80, the following steps may be specifically adopted, and a flowchart of the method is shown in fig. 5:
s801, comparing each element information in the first customer information and the second customer information, and determining a third type element information and a fourth type element information in the first customer information according to a comparison result; wherein,
the third type of element information is element information which does not exist in the second client information, and the fourth type of element information is element information which is inconsistent with the element information in the first client information;
the following are exemplified:
the first customer information comprises a certificate type 3, a certificate number 3, a name 3, a gender 3 and a birth date 3; the customer information contains the certificate type 4, certificate number 4, name 4, date of birth 4 and phone number 4. It can be seen that the information of the element "telephone number" in the customer information to be processed is null, and the information of the element "gender" in the customer information is null.
Therefore, the respective element information of the customer information and the customer information to be processed are compared in order, that is, the "certificate type 3" and "certificate type 4", "certificate number 3" and "certificate number 4", "last name 3" and "name 4", "sex 3" and null element information, "birth date 3" and "birth date 4", null element information and "telephone number 4" are compared.
If the certificate type 3 is the same as the certificate type 4, the certificate number 3 is the same as the certificate number 4, the name 3 is different from the name 4, the birth date 3 is the same as the birth date 4, the gender 3 is determined as the third type of element information, and the name 3 is determined as the fourth type of element information.
S802, deleting the element information which is inconsistent with the fourth type element information in the second client information, and adding the third type element information and the fourth type element information into the second client information;
continuing with the above example, with reference to the first customer information, "last name 4" in the second customer information is deleted, and "gender 3" and "name 3" are added to the customer information.
In some other embodiments, to ensure the security of index establishment, on the basis of the client information processing method shown in fig. 4, the method includes the following steps:
receiving an index establishment request which is uploaded by a service system and carries a token; judging whether the authority corresponding to the token has an index establishment authority or not; if the index establishment authority exists, the step of "determining the second client ID corresponding to the second client information as the primary index of the first client ID" in step S70 is performed.
In the embodiment of the invention, the token can be used for determining the information such as the number, mechanism, part, post and the like of the index establishment request sender, and further the information is used for determining the authority of the index establishment request sender. In practical application, the authority of the relevant user can be managed by the user center of the medical tomb integration platform, and the token can be issued in combination with the authority.
According to the client information processing method provided by the embodiment of the invention, the original client ID of the service system is bound with the client containing the certificate type and the certificate number in the client center to form the main index, so that the client information can be inquired by using the original client ID, the problem that the client cannot be updated when the client update conflict occurs is solved, and the uniqueness and the integrity of the client information are ensured.
Based on the foregoing text, an embodiment of the present invention provides a client information processing method, and an embodiment of the present invention further provides a client information processing apparatus, as shown in fig. 6, where the apparatus includes:
the receiving module 10 is used for receiving the information of the client to be processed uploaded by the service system;
the judging module 20 is configured to judge whether the client information including the type of the certificate to be processed and the number of the certificate to be processed exists or not when the client information to be processed includes the type of the certificate to be processed and the number of the certificate to be processed;
and the processing module 30 is configured to update the client information according to the client information to be processed if the client information exists, and feed back a client ID corresponding to the client information to the service system.
The client information processing device provided by the embodiment of the invention updates the client information by using the client information to be processed according to the principle that the current client information is the most credible, so that the client information is updated one by one, and the client ID corresponding to the client information is fed back to the service system, thereby solving the problem of registration conflict.
The client information processing device comprises a processor and a memory, wherein the receiving module 10, the judging module 20 and the processing module 30 are all 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 set one or more, and the registration conflict is avoided 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, the program implementing the client information processing method when executed by a processor.
The embodiment of the invention provides a processor, which is used for running a program, wherein the client information processing method is executed when the program runs.
The embodiment of the invention provides electronic 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:
receiving to-be-processed client information uploaded by a service system;
judging whether the client information containing the type of the certificate to be processed and the number of the certificate to be processed exists or not under the condition that the type of the certificate to be processed and the number of the certificate to be processed are contained in the client information to be processed;
and if the customer information exists, updating the customer information according to the customer information to be processed, and feeding back a customer ID corresponding to the customer information to the service system.
Optionally, updating the customer information according to the customer information to be processed includes:
comparing the customer information to be processed with each element information in the customer information, and determining a first type of element information and a second type of element information in the customer information to be processed according to a comparison result; wherein,
the first type element information is element information which does not exist in the client information, and the second type element information is element information which is inconsistent with the element information in the client information;
and deleting element information which is inconsistent with the second type element information in the client information, and adding the first type element information and the second type element information to the client information.
Optionally, the method further includes: and executing target operation on the updated customer information, wherein the target operation comprises synchronization and/or broadcasting.
Optionally, the method further includes: and under the condition that the type and the number of the certificate to be processed are not contained in the customer information to be processed or the customer information does not exist, allocating a unique customer ID for the customer information to be processed, and feeding back the customer ID to the service system.
Optionally, the method further includes: receiving a certificate adding request of the service system for first customer information, wherein the certificate adding request carries a first customer ID, a type of a certificate to be added and a number of the certificate to be added corresponding to the first customer information;
judging whether second customer information containing the type of the certificate to be added and the number of the certificate to be added exists or not;
if the second client information exists, determining a second client ID corresponding to the second client information as a primary index of the first client ID;
and updating the second customer information according to the first customer information.
Optionally, the updating the second customer information according to the first customer information includes:
comparing each element information in the first customer information and the second customer information, and determining a third type element information and a fourth type element information in the first customer information according to a comparison result; wherein,
the third type element information is element information which does not exist in the second client information, and the fourth type element information is element information which is inconsistent with the element information in the first client information;
and deleting element information which is inconsistent with the fourth type element information in the second client information, and adding the third type element information and the fourth type element information to the second client information.
Optionally, before determining the second client ID corresponding to the second client information as the primary index of the first client ID, the method further includes:
receiving an index establishment request which is uploaded by the service system and carries a token;
judging whether the authority corresponding to the token has an index establishment authority or not;
and if the index establishing authority exists, determining a second client ID corresponding to the second client information as a main index of the first client ID.
The device herein may be a server, a PC, a PAD, a mobile phone, etc.
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:
receiving to-be-processed client information uploaded by a service system;
judging whether the client information containing the type of the certificate to be processed and the number of the certificate to be processed exists or not under the condition that the type of the certificate to be processed and the number of the certificate to be processed are contained in the client information to be processed;
and if the customer information exists, updating the customer information according to the customer information to be processed, and feeding back a customer ID corresponding to the customer information to the service system.
Optionally, updating the customer information according to the customer information to be processed includes:
comparing the customer information to be processed with each element information in the customer information, and determining a first type of element information and a second type of element information in the customer information to be processed according to a comparison result; wherein,
the first type element information is element information which does not exist in the client information, and the second type element information is element information which is inconsistent with the element information in the client information;
and deleting element information which is inconsistent with the second type element information in the client information, and adding the first type element information and the second type element information to the client information.
Optionally, the method further includes: and executing target operation on the updated customer information, wherein the target operation comprises synchronization and/or broadcasting.
Optionally, the method further includes: and under the condition that the type and the number of the certificate to be processed are not contained in the customer information to be processed or the customer information does not exist, allocating a unique customer ID for the customer information to be processed, and feeding back the customer ID to the service system.
Optionally, the method further includes: receiving a certificate adding request of the service system for first customer information, wherein the certificate adding request carries a first customer ID, a type of a certificate to be added and a number of the certificate to be added corresponding to the first customer information;
judging whether second customer information containing the type of the certificate to be added and the number of the certificate to be added exists or not;
if the second client information exists, determining a second client ID corresponding to the second client information as a primary index of the first client ID;
and updating the second customer information according to the first customer information.
Optionally, the updating the second customer information according to the first customer information includes:
comparing each element information in the first customer information and the second customer information, and determining a third type element information and a fourth type element information in the first customer information according to a comparison result; wherein,
the third type element information is element information which does not exist in the second client information, and the fourth type element information is element information which is inconsistent with the element information in the first client information;
and deleting element information which is inconsistent with the fourth type element information in the second client information, and adding the third type element information and the fourth type element information to the second client information.
Optionally, before determining the second client ID corresponding to the second client information as the primary index of the first client ID, the method further includes:
receiving an index establishment request which is uploaded by the service system and carries a token;
judging whether the authority corresponding to the token has an index establishment authority or not;
and if the index establishing authority exists, determining a second client ID corresponding to the second client information as a main index of the first client ID.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention 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 invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. 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 invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention 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 invention, and are not intended to limit the present invention. Various modifications and alterations to this invention will become apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.