Disclosure of Invention
The invention aims to label each item in national citizen identification card claiming information, thereby realizing rapid classified search and keeping real-time update of the citizen identification card claiming information.
In order to achieve the purpose, the invention adopts the following technical scheme:
a national resident identification card application information labeling method comprises the following steps:
s1: carrying out effective certificate marking on the ID card application information item according to the quality feedback information and the certificate making feedback information; wherein, the quality feedback record indicates that the resident identification card is manufactured in error and is not proved, and the certificate manufacture feedback record indicates that the resident identification card is manufactured;
s2: for the identity card claim information items with or without any feedback records, matching and marking the household registration information by inquiring whether the identity card number is consistent with the records of the household registration information database;
s3: for the condition that the same identity card number has multiple identity card applications, distinguishing historical certificates and current latest valid certificates according to the valid time sequence of the identity cards, and marking historical card information on the historical certificates;
s4: inquiring basic household registration information of the citizen according to the identification card number and the name of the citizen, and carrying out household registration cancellation marking on the application information item of the identification card after the basic household registration information is cancelled;
s5: and searching a plurality of records with the same acceptance number, citizen identity number and name of the resident identification card, reserving one record, and repeatedly marking the rest records.
According to the national resident identification card claim information labeling method provided by the invention, the step S2 includes:
s21: inquiring according to the ID card number, inquiring to obtain a record, wherein the name of the record is consistent with the record in the household registration information database, and performing no household registration information matching marking and main item changing marking (using a default value of 0);
s22: the name is not matched with the identity card number, the inconsistent name is used as a retrieval condition to search in a change item of a household registration information database, if a relevant record is retrieved, the original name is updated to be the changed name, and the main item is changed and marked to be 2;
s23: if the relevant records cannot be searched, the ID card number is used as the number before change to be searched in the change item of the household registration information database, the ID card number change record is searched and is consistent with the name, the original ID card number is updated to the changed ID card number, and the main item is changed and marked to be 1;
s24: if the searched identity card number change record is inconsistent with the name, searching in the change item of the household registration information database by taking the inconsistent name as a search condition, and if the related record is searched, updating the original identity card number into the changed identity card number, updating the original name into the changed name and changing and marking the assignment main item as 3;
s25: if the relevant records are not retrieved yet, assigning the registration information item to the registration information matching label 1.
According to the national resident identification card claim information labeling method provided by the invention, the labeling content of the effective certificate comprises the following steps: the system comprises a resident identification card application acceptance number, a resident identification card number, a resident name and an effective certificate marking code, wherein a code 0 represents that a quality feedback record exists, a code 1 represents that a certificate making feedback record exists, and a code 2 represents that the quality feedback record and the certificate making feedback record do not exist.
The national resident identification card claim information labeling method provided by the invention further comprises the following steps of S6: performing incremental information labeling, specifically including:
the method comprises the steps that incremental labeling is accepted for citizen identity card application information, and for newly added citizen identity card application information, effective card identification, household registration information matching labeling, history card labeling and household registration cancellation information labeling are sequentially carried out;
quality feedback information increment marking, namely acquiring an increment record of the quality feedback information according to a set timestamp, and updating and maintaining the effective certificate marking according to the increment record of the quality feedback information;
obtaining the increment record of the certification making feedback information according to a set timestamp, and updating and maintaining the effective certificate label according to the increment record of the certification making feedback information;
the method comprises the steps of carrying out citizen identity number change correction information increment marking, obtaining increment information of a resident identity number change record according to a set timestamp, assigning a main item change marking according to the increment information, and updating an original identity card number into a changed identity card number;
the method comprises the steps of carrying out item change correction information increment marking, obtaining increment information of an item change correction record according to a set timestamp, carrying out update maintenance on names according to the increment information of the item change correction record, and simultaneously assigning a main item change mark;
and performing incremental marking on the household registration information, acquiring an incremental record updated by the household registration information according to the set timestamp, and updating and maintaining the household registration information matching marking and the household registration cancellation marking according to the incremental record updated by the household registration information.
According to the method for marking the national citizen identity card claim information, the increment information marking also comprises loss reporting marking, and loss reporting marking is carried out on identity card claim information items according to the loss reporting information of the citizen identity cards.
Through the marking process, the invention can clearly and strictly classify the national citizen identity card application states, is beneficial to relevant workers to accurately count the citizen identity card information in real time, and greatly improves the working efficiency of population management in China.
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 obtained by a person skilled in the art without inventive effort based on the embodiments of the present invention, are within the scope of the present invention.
Please refer to fig. 1, which is a functional structure diagram of the national citizens identification card claim information labeling method of the present invention. Generally speaking, the labeling method can be divided into two parts, namely historical data cleaning labeling and increment labeling, wherein the former part is used for classifying and sorting existing data so as to clean useless data and correct error data; the latter is the later maintenance on the basis of the former, namely on the basis of clearing the historical data, the newly added resident identification card application information is similarly labeled, so that the accuracy of the newly added identification card application information is ensured, and the repeated work is avoided.
The step of cleaning the historical data of the resident identification card mainly comprises the following steps of generating the identification information of the resident identification card corresponding to the accepted information one by one.
(1) Valid credential labeling
And marking effective certificates through quality feedback information and certificate making feedback information: 0-quality feedback record, not certified; 1, the certification feedback record is shown, and the certification is already carried out; 2-no quality feedback and forensic feedback records.
The labeling process is shown in fig. 3, and the specific contents include:
reading the resident identification card application information record;
searching card making feedback information according to the acceptance number of the resident identification card, and if the record exists, setting the effective certificate identification of the resident identification card as 1; otherwise, searching quality feedback;
searching quality feedback information according to the acceptance number of the resident identification card, and if the record exists, setting the effective certificate identification of the resident identification card to be 0; otherwise, the ID card valid certificate mark is 2;
and (5) recording identification information of Insert resident identification cards: the resident identification card acceptance number is the resident identification card acceptance number of the acceptance information; the citizen identification number is the citizen identification number for accepting the information; the name is the name of the received information; the error certificate identification is the error certificate identification of the accepted information (not null, or 0 otherwise);
the remaining data items being assigned values by default
And recording change log information.
(2) Household registration information matching label
Establishing a corresponding relation between historical certificate information and population main index information; and simultaneously, marking a main item change identifier according to the matching condition of the citizen identity number change correction information and the item change correction information. And after the registration information matching is finished, assigning the current citizen identity number and name after the change and the main item change identification.
Fig. 4 shows a flow chart of household registration information matching. The detailed treatment process is as follows:
searching the basic information of the household registration according to the citizen identity number, and performing name matching;
considering the problem of the duplicate number in the basic information of the household registration, when a plurality of records are found, the records are matched one by one according to names. The matching result is processed in three conditions, including: the citizen identity number and the name are matched consistently; only name matching is unsuccessful; no record can be retrieved.
a. The matching of citizen identity number and name is consistent
And the identification information of the resident identification card is not operated, and the next record processing is carried out.
b. Name-only matching is unsuccessful
Searching the item change correction information table according to the condition (citizen identification number, change correction category 20 or 21 or 22, and before-change content name);
if the record is retrieved, the UPDAE resident identification card record: assigning a main item change identifier of 2; the assignment name is the name of the basic household registration information; then, the next recording process is performed.
c. If the record can not be searched, the record can not be searched according to the household basic information for processing.
The basic information of household registration can not be retrieved
According to the condition of 'original citizen ID number ═ citizen ID number', the citizen ID number change correction information is retrieved by adopting an iteration mode, and the information of the current citizen ID number, name and the like is read.
If no record can be retrieved, the situation of mismatching according to the domicile information is processed
If the record is retrieved, further name matching is performed
If the names are matched consistently, the UPDATE resident identification card records: assigning a main item change identifier equal to 1; and assigning the citizen identity number as the present citizen identity number.
If the names are not matched, searching the item change correction information table according to the condition (the current citizen identification number, the change correction category is 20 or 21 or 22, and the content before change is name);
and recording change log information.
If the record is retrieved, the UPDATE resident identification card identification record: assigning a main item change identifier equal to 3; the assignment name is the name of the basic household registration information; assigning a citizen identity number as a name obtained by inquiring basic household registration information according to the (present citizen identity number);
then, the next recording process is performed.
And if the household registration information is not matched, the UPDATE resident identification card records: assigning a matched identifier of the household registration information as 1; then, the next recording process is performed.
If the record can not be retrieved, processing the situation according to the mismatching of the household registration information;
and recording change log information.
(3) Historical certificate labeling
Inquiring identification information of the resident identification card according to the citizen identification number and the name, associating the handling information of the resident identification card, distinguishing historical certificate information and the current latest valid certificate according to the beginning time of the validity period of the certificate, recording the identification record of the resident identification card of the historical certificate UPDATA, and assigning the historical certificate identification of the identification information of the resident identification card to be 1; and recording change log information.
(4) Household registration logout information labeling
Marking the logout mark of the household registration according to the logout information of the basic household registration information of the database of the public security department and the logout marks of the household registration information reported by each place.
Aiming at the aspect of increment labeling of resident identification card application information, the method mainly comprises the following contents:
(1) incremental marking of residential identity card acceptance information
The treatment process is as follows:
adding a timestamp or a maintenance identifier, and acquiring an incremental record of the resident identification card acceptance information;
incremental data maintenance of the accepted information is carried out basically according to a historical data cleaning process;
and recording change log information.
(2) Quality feedback information increment marking
The treatment process is as follows:
adding a timestamp or a maintenance identifier to obtain an incremental record of the quality feedback information;
retrieving identification information of the resident identification card according to the citizen identification number and the name of the quality feedback record, and if the effective certificate identification is 2, updating the identification information of the resident identification card: 1, a valid certificate mark;
and recording change log information.
(3) Evidence making feedback information increment marking
The treatment process is as follows:
adding a timestamp or a maintenance identifier, and acquiring an incremental record of the certificate making feedback information;
retrieving identification information of the resident identification card according to the citizen identification number and the name of the system card feedback information, and updating the identification information of the resident identification card: a valid certificate identification is 2;
and recording change log information.
(4) Incremental label for changing and correcting information of citizen identity number
The treatment process is as follows:
acquiring an incremental record of the citizen identity number change correction information according to the citizen identity number timestamp or the maintenance identification;
retrieving the identification information of the resident identification card according to the original citizen identification number and the name of the citizen identification number change correction information, and updating the identification information of the resident identification card: the citizen identity number is the current citizen identity number of the citizen identity number change correction information; if the main item change identification is larger than 1, assigning the main item change identification to be 3; otherwise, assigning a main item change identifier as 1;
and recording change log information.
(5) Project change correction information increment labeling
The treatment process is as follows:
acquiring the incremental record valid certificate mark maintenance of the project change correction information according to the project change correction information timestamp or the maintenance mark;
inquiring the item change correction information table according to the condition (change correction category is 20 or 21 or 22);
retrieving identification information of the resident identification card according to the (citizen identification number and the content before the update);
identification information of the UPDATE resident identification card: changing and correcting the content of the item changing and correcting information; if the main item change identification is 1 or 3, assigning the main item change identification to be 3; otherwise, assigning a main item change identifier as 2;
and recording change log information.
(6) Household registration information increment labeling
The treatment process is as follows:
acquiring an incremental record of updating the household registration information according to the updating time;
retrieving identification information of the resident identification card according to conditions (the citizen identification number and the name);
identification information of the UPDATE resident identification card: the assigned household registration information matching identifier is equal to 0; assigning a household registration logout identifier as a household registration basic information logout category;
and recording change log information.
(7) Loss reporting label
The treatment process is as follows:
according to the last updating time in the resident identification card loss report information table, taking out a loss report mark in the resident identification card loss report information table according to the resident identification card acceptance number, and updating a corresponding loss report mark code of the resident identification card acceptance information in the resident identification card mark table;
according to the resident identification card acceptance number, the UPDATE resident identification card loss report identification record: the reported assigned value reporting identification code is 1 reported lost; the value loss reporting identification code which is already hung is 2 already hung.
And recording change log information.
Those of ordinary skill in the art will understand that: the figures are merely schematic representations of one embodiment, and the blocks or flow diagrams in the figures are not necessarily required to practice the present invention.
Those of ordinary skill in the art will understand that: modules in the devices in the embodiments may be distributed in the devices in the embodiments according to the description of the embodiments, or may be located in one or more devices different from the embodiments with corresponding changes. The modules of the above embodiments may be combined into one module, or further split into multiple sub-modules.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.