Administrative division code processing method and device, and electronic equipment
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA CONSTRUCTION BANK
- Filing Date
- 2023-01-10
- Publication Date
- 2026-08-07
AI Technical Summary
[0005]有鉴于此,本发明实施例提供一种行政区划代码处理方法、装置、电子设备和计算机可读介质,以解决依赖人工、效率及准确率不高的技术问题
[0048]One embodiment of the above invention has the following advantages or beneficial effects: By employing a technical method that creates and stores a mapping list of first-version and second-version administrative division codes locally, converts address information in regulatory data into first-version administrative division codes, then converts the first-version codes into second-version codes, and finally sends the regulatory data containing the second-version codes to the regulatory system, the technical problems of reliance on manual labor and low efficiency and accuracy in the prior art are overcome. This invention changes the processing of CRSS administrative division code data from offline manual to online semi-automatic methods, improving processing accuracy and efficiency. Furthermore, through continuous iteration and improvement of the work of business personnel maintaining the administrative division code mapping relationships at the front end, the amount of erroneous data and the workload of manual maintenance can be gradually reduced.
Smart Images

Figure CN115982479B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of big data and big data preprocessing technology, and in particular to a method, apparatus, and electronic device for processing administrative division codes. Background Technology
[0002] With the rapid development of the country's political economy, the administrative divisions in various regions have become more flexible and diversified, with new administrative division names such as economic development zones and free trade zones emerging. The corresponding administrative division codes are also difficult to define. Furthermore, since CRSS (China Banking Regulatory Commission Customer Risk Statistics System) identifies the Chinese names of administrative divisions at all levels in the address field by code recognition and then concatenates them into administrative division codes for reporting, it is inevitable that the administrative division codes corresponding to older addresses will be inaccurate.
[0003] In the process of realizing this invention, the inventors discovered at least the following problems in the prior art:
[0004] In the past, when CRSS submitted its monthly reports, it relied mainly on the cooperation of technical and business personnel to manually issue administrative division codes. This was not only inefficient but also inaccurate. It was also difficult to detect errors where the administrative division codes were compliant with the standards but did not match the address fields. Summary of the Invention
[0005] In view of this, embodiments of the present invention provide an administrative division code processing method, apparatus, electronic device, and computer-readable medium to solve the technical problems of reliance on manual labor and low efficiency and accuracy.
[0006] To achieve the above objectives, according to one aspect of the present invention, an administrative division code processing method is provided, comprising:
[0007] Create a mapping list between the first version of the administrative division code and the second version of the administrative division code and store it locally;
[0008] Acquire regulatory data and convert the address information in the regulatory data into a first version of administrative division code;
[0009] Based on the mapping relationship list between the first version of administrative division codes and the second version of administrative division codes, the first version of administrative division codes are converted into the second version of administrative division codes;
[0010] The regulatory data containing the second version of the administrative division code will be sent to the regulatory system.
[0011] Optionally, it also includes:
[0012] Receive erroneous administrative division codes from the regulatory data returned by the regulatory system;
[0013] Update the mapping list between the first version of administrative division codes and the second version of administrative division codes based on the administrative division codes corresponding to the erroneous administrative division codes.
[0014] Optionally, if the erroneous administrative division code is a second version administrative division code, then the mapping relationship list between the first version administrative division code and the second version administrative division code is updated according to the administrative division code corresponding to the erroneous administrative division code, including:
[0015] Verify and determine the correct second-version administrative division code based on the incorrect administrative division code;
[0016] Update the correct second-version administrative division code to the mapping relationship list between the first-version administrative division code and the second-version administrative division code, replacing the original second-version administrative division code.
[0017] Optionally, if the erroneous administrative division code is a first version administrative division code, then the mapping relationship list between the first version administrative division code and the second version administrative division code is updated according to the administrative division code corresponding to the erroneous administrative division code, including:
[0018] Determine whether the second administrative division code corresponding to the incorrect administrative division code can be matched in the mapping relationship list between the first version of the administrative division code and the second version of the administrative division code;
[0019] If so, the correct first version administrative division code is verified and determined based on the incorrect administrative division code, and the correct first version administrative division code is updated to the mapping relationship list between the first version administrative division code and the second version administrative division code to replace the original first version administrative division code.
[0020] If not, then determine the second version of the administrative division code corresponding to the incorrect administrative division code, and add the correspondence between the two to the mapping relationship list between the first version of the administrative division code and the second version of the administrative division code.
[0021] Optionally, in the mapping relationship list between the first version of administrative division code and the second version of administrative division code, each first version administrative division code can only be mapped to one second version administrative division code, and one or more first version administrative division codes are allowed to be mapped to the same second version administrative division code.
[0022] Optionally, updating the mapping list between the first version of administrative division codes and the second version of administrative division codes according to the administrative division codes corresponding to the erroneous administrative division codes further includes:
[0023] Record the update time and the person who updated it.
[0024] In addition, according to another aspect of the present invention, an administrative division code processing apparatus is provided, comprising:
[0025] Create a module to create a list of mapping relationships between the first version of administrative division codes and the second version of administrative division codes and store it locally;
[0026] The first conversion module is used to acquire regulatory data and convert the address information in the regulatory data into a first version of administrative division code;
[0027] The second conversion module is used to convert the first version of administrative division code into the second version of administrative division code according to the mapping relationship list between the first version of administrative division code and the second version of administrative division code;
[0028] The sending module is used to send regulatory data containing the second version of the administrative division code to the regulatory system.
[0029] Optionally, the creation module is further configured to:
[0030] Receive erroneous administrative division codes from the regulatory data returned by the regulatory system;
[0031] Update the mapping list between the first version of administrative division codes and the second version of administrative division codes based on the administrative division codes corresponding to the erroneous administrative division codes.
[0032] Optionally, if the erroneous administrative division code is a second version administrative division code, the creation module is further configured to:
[0033] Verify and determine the correct second-version administrative division code based on the incorrect administrative division code;
[0034] Update the correct second-version administrative division code to the mapping relationship list between the first-version administrative division code and the second-version administrative division code, replacing the original second-version administrative division code.
[0035] Optionally, if the erroneous administrative division code is a first version administrative division code, the creation module is further configured to:
[0036] Determine whether the second administrative division code corresponding to the incorrect administrative division code can be matched in the mapping relationship list between the first version of the administrative division code and the second version of the administrative division code;
[0037] If so, the correct first version administrative division code is verified and determined based on the incorrect administrative division code, and the correct first version administrative division code is updated to the mapping relationship list between the first version administrative division code and the second version administrative division code to replace the original first version administrative division code.
[0038] If not, then determine the second version of the administrative division code corresponding to the incorrect administrative division code, and add the correspondence between the two to the mapping relationship list between the first version of the administrative division code and the second version of the administrative division code.
[0039] Optionally, in the mapping relationship list between the first version of administrative division code and the second version of administrative division code, each first version administrative division code can only be mapped to one second version administrative division code, and one or more first version administrative division codes are allowed to be mapped to the same second version administrative division code.
[0040] Optionally, the creation module is further configured to:
[0041] Record the update time and the person who updated it.
[0042] According to another aspect of the present invention, an electronic device is also provided, comprising:
[0043] One or more processors;
[0044] Storage device for storing one or more programs.
[0045] When the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any of the above embodiments.
[0046] According to another aspect of the present invention, a computer-readable medium is also provided, on which a computer program is stored, which, when executed by a processor, implements the methods described in any of the above embodiments.
[0047] According to another aspect of the present invention, a computer program product is also provided, including a computer program that, when executed by a processor, implements the methods described in any of the above embodiments.
[0048] One embodiment of the above invention has the following advantages or beneficial effects: By employing a technical method that creates and stores a mapping list of first-version and second-version administrative division codes locally, converts address information in regulatory data into first-version administrative division codes, then converts the first-version codes into second-version codes, and finally sends the regulatory data containing the second-version codes to the regulatory system, the technical problems of reliance on manual labor and low efficiency and accuracy in the prior art are overcome. This invention changes the processing of CRSS administrative division code data from offline manual to online semi-automatic methods, improving processing accuracy and efficiency. Furthermore, through continuous iteration and improvement of the work of business personnel maintaining the administrative division code mapping relationships at the front end, the amount of erroneous data and the workload of manual maintenance can be gradually reduced.
[0049] The further effects of the aforementioned unconventional alternative methods will be explained below in conjunction with specific implementation methods. Attached Figure Description
[0050] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. Wherein:
[0051] Figure 1 This is a flowchart of an administrative division code processing method according to an embodiment of the present invention;
[0052] Figure 2 This is a flowchart of an administrative division code processing method according to a possible embodiment of the present invention;
[0053] Figure 3 This is a flowchart of an administrative division code processing method according to another applicable embodiment of the present invention;
[0054] Figure 4 This is a flowchart of an administrative division code processing method according to another possible embodiment of the present invention;
[0055] Figure 5 This is a schematic diagram of an administrative division code processing device according to an embodiment of the present invention;
[0056] Figure 6 This is an exemplary system architecture diagram in which embodiments of the present invention can be applied;
[0057] Figure 7 This is a schematic diagram of the structure of a computer system suitable for implementing terminal devices or servers of the present invention. Detailed Implementation
[0058] The following description, in conjunction with the accompanying drawings, illustrates exemplary embodiments of the present invention, including various details to aid understanding. These details should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the invention. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.
[0059] It should be noted that the collection, analysis, use, transmission, and storage of user personal information involved in the technical solution of this invention all comply with relevant laws and regulations, are used for legitimate and reasonable purposes, and are not shared, disclosed, or sold outside of these legitimate uses, and are subject to supervision and management by regulatory authorities. Necessary measures should be taken to prevent unauthorized access to such personal information data, ensure that personnel authorized to access personal information data comply with relevant laws and regulations, and ensure the security of user personal information. Once this user personal information data is no longer needed, the risk should be minimized by restricting or even prohibiting data collection and / or deleting the data.
[0060] When applicable, including in certain relevant applications, user privacy is protected by de-identifying data, such as by removing specific identifiers (e.g., name, ID number, address, etc.), controlling the amount or specificity of stored data, controlling how data is stored, and / or other methods of de-identification.
[0061] Figure 1 This is a flowchart of an administrative division code processing method according to an embodiment of the present invention. As one embodiment of the present invention, such as... Figure 1 As shown, the administrative division code processing method may include:
[0062] Step 101: Create a mapping list between the first version of the administrative division code and the second version of the administrative division code and store it locally.
[0063] First, a mapping list between the first and second versions of administrative division codes is created and stored locally. It should be noted that the created first-version administrative division codes conform to the specifications of the first-version administrative division codes, and the created second-version administrative division codes conform to the specifications of the second-version administrative division codes. Administrative division codes are numerical codes used by the state to classify and govern its administrative regions at different levels, employing information technology to assign alternative numbers to each level of administrative division.
[0064] Users can enter the first version and the second version of the administrative division code on the interface. After receiving the first version and the second version of the administrative division code entered by the user, the reporting system creates a mapping relationship between the two and stores it locally.
[0065] Optionally, the first version of the administrative division code can be the latest version of the administrative division code, while the second version of the administrative division code can be a non-latest version, such as the 2018 version. For example, the 2018 version of the administrative division code meets the following specifications: 6 numeric characters, and cannot start with "0" or end with "0000".
[0066] Optionally, in the mapping relationship list between the first version of administrative division code and the second version of administrative division code, each first version administrative division code can only be mapped to one second version administrative division code, and one or more first version administrative division codes are allowed to be mapped to the same second version administrative division code.
[0067] Step 102: Obtain regulatory data and convert the address information in the regulatory data into the first version of administrative division code.
[0068] Regulatory data can be obtained from CRSS (Customer Risk Statistics System, China Banking Regulatory Commission's Customer Risk Statistics System). The address information in the address field of the regulatory data can be converted into the first version of the administrative division code. CRSS is a full-process information management system responsible for the processing and generation of customer risk statistics data of the China Banking and Insurance Regulatory Commission, data aggregation and monitoring, data verification and distribution, data verification and correction, data flow auditing, monitoring of key performance indicators, institutional maintenance, user maintenance, and parameter maintenance.
[0069] Step 103: Based on the mapping relationship list between the first version of the administrative division code and the second version of the administrative division code, convert the first version of the administrative division code into the second version of the administrative division code.
[0070] After converting the address information in the regulatory data into the first version of administrative division codes, each first version administrative division code is converted into its corresponding second version administrative division code according to the mapping relationship list between the first version and the second version of administrative division codes created in step 101.
[0071] Step 104: Send the regulatory data containing the second version of the administrative division code to the regulatory system.
[0072] Finally, the regulatory data containing the second version of the administrative division code is sent to the regulatory system. It should be noted that the address information in the address field of the regulatory data sent to the regulatory system has been converted to the second version of the administrative division code.
[0073] After creating the mapping list between the first version of the administrative division code and the second version of the administrative division code, execute steps 102-104 every once in a while, for example, execute steps 102-104 every month.
[0074] Based on the various embodiments described above, it can be seen that the present invention solves the technical problems of reliance on manual labor and low efficiency and accuracy in the prior art by creating and storing a mapping relationship list between the first version of administrative division codes and the second version of administrative division codes locally, converting the address information in the regulatory data into the first version of administrative division codes, converting the first version of administrative division codes into the second version of administrative division codes, and finally sending the regulatory data containing the second version of administrative division codes to the regulatory system. The present invention changes the processing of CRSS administrative division code data from offline manual to online semi-automatic methods, improving processing accuracy and efficiency; moreover, through the continuous iteration and improvement of the work of business personnel in maintaining the administrative division code mapping relationship on the front end, the amount of erroneous data and the workload of manual maintenance can be gradually reduced.
[0075] Figure 2 This is a flowchart of an administrative division code processing method according to a possible embodiment of the present invention. As another embodiment of the present invention, such as... Figure 2 As shown, the administrative division code processing method may include:
[0076] Step 201: Create a mapping list between the first version of the administrative division code and the second version of the administrative division code and store it locally.
[0077] Step 202: Obtain regulatory data and convert the address information in the regulatory data into the first version of administrative division code.
[0078] Step 203: Based on the mapping relationship list between the first version of administrative division codes and the second version of administrative division codes, convert the first version of administrative division codes into the second version of administrative division codes.
[0079] Step 204: Send the regulatory data containing the second version of the administrative division code to the regulatory system.
[0080] Step 205: Receive the incorrect administrative division code in the regulatory data returned by the regulatory system.
[0081] Step 206: Update the mapping relationship list between the first version of administrative division codes and the second version of administrative division codes according to the administrative division codes corresponding to the erroneous administrative division codes, and record the update time and the person who updated.
[0082] After receiving the regulatory data, the regulatory system will review the administrative division codes in the data. If an incorrect administrative division code is found, it will report the incorrect administrative division code.
[0083] After receiving the incorrect administrative division code from the regulatory data returned by the regulatory system, the reporting system verifies the incorrect administrative division code. If it is confirmed to be an incorrect administrative division code, the system updates the mapping relationship list between the first version of administrative division code and the second version of administrative division code according to the administrative division code corresponding to the incorrect administrative division code, and records the update time and the updater.
[0084] After several months of additions, deletions, modifications, and iterations by business personnel in the mapping list, combined with previous manual rectification methods, the number of errors in administrative division codes can be reduced, thus improving data quality.
[0085] The embodiments of the present invention can avoid the data security risks and operational risks of the original reporting system's reliance on manual processing of administrative division code data, enhance the overall reliability of the reporting system, and improve the reporting quality and work efficiency of regulatory data.
[0086] Furthermore, the specific implementation details of the administrative division code processing method in one of the reference embodiments of the present invention have been described in detail in the above-described administrative division code processing method, so the details will not be repeated here.
[0087] Figure 3 This is a flowchart of an administrative division code processing method according to another possible embodiment of the present invention. As another embodiment of the present invention, such as... Figure 3 As shown, the administrative division code processing method may include:
[0088] Step 301: Create a mapping list between the first version of the administrative division code and the second version of the administrative division code and store it locally.
[0089] Step 302: Obtain regulatory data and convert the address information in the regulatory data into the first version of administrative division code.
[0090] Step 303: Based on the mapping relationship list between the first version of administrative division codes and the second version of administrative division codes, convert the first version of administrative division codes into the second version of administrative division codes.
[0091] Step 304: Send the regulatory data containing the second version of the administrative division code to the regulatory system.
[0092] Step 305: Receive the incorrect administrative division code in the regulatory data returned by the regulatory system.
[0093] Step 306: Verify and determine the correct second-version administrative division code based on the incorrect administrative division code.
[0094] Step 307: Update the correct second version administrative division code to the mapping relationship list between the first version administrative division code and the second version administrative division code, so as to replace the original second version administrative division code.
[0095] In this embodiment, if the erroneous administrative division code in the regulatory data returned by the regulatory system is a second version administrative division code, then the correct second version administrative division code is verified and determined based on the erroneous administrative division code, and then the correct second version administrative division code is updated to the mapping relationship list between the first version administrative division code and the second version administrative division code to replace the original second version administrative division code.
[0096] In addition, the specific implementation details of the administrative division code processing method in another reference embodiment of the present invention have been described in detail in the above-described administrative division code processing method, so the details will not be repeated here.
[0097] Figure 4 This is a flowchart of an administrative division code processing method according to another possible embodiment of the present invention. As another embodiment of the present invention, such as... Figure 4 As shown, the administrative division code processing method may include:
[0098] Step 401: Create a mapping list between the first version of the administrative division code and the second version of the administrative division code and store it locally.
[0099] Step 402: Obtain regulatory data and convert the address information in the regulatory data into the first version of administrative division code.
[0100] Step 403: Based on the mapping relationship list between the first version of the administrative division code and the second version of the administrative division code, convert the first version of the administrative division code into the second version of the administrative division code.
[0101] Step 404: Send the regulatory data containing the second version of the administrative division code to the regulatory system.
[0102] Step 405: Receive the incorrect administrative division code in the regulatory data returned by the regulatory system.
[0103] Step 406: Determine whether the second administrative division code corresponding to the incorrect administrative division code can be matched in the mapping relationship list between the first version of the administrative division code and the second version of the administrative division code; if yes, proceed to step 407; if no, proceed to step 408.
[0104] Step 407: Verify and determine the correct first version administrative division code based on the incorrect administrative division code, and update the correct first version administrative division code to the mapping relationship list between the first version administrative division code and the second version administrative division code, so as to replace the original first version administrative division code.
[0105] Step 408: Determine the second version of the administrative division code corresponding to the incorrect administrative division code, and add the correspondence between the two to the mapping relationship list between the first version of the administrative division code and the second version of the administrative division code.
[0106] In this embodiment, if the erroneous administrative division code in the regulatory data returned by the regulatory system is a first-version administrative division code, the system first queries the mapping relationship list between the first-version and second-version administrative division codes to determine whether the second-version administrative division code corresponding to the erroneous administrative division code can be found in the list. If found, the correct first-version administrative division code is verified and determined based on the erroneous administrative division code, and the correct first-version administrative division code is updated in the mapping relationship list between the first-version and second-version administrative division codes to replace the original first-version administrative division code. If not found, the second-version administrative division code corresponding to the erroneous administrative division code is determined, and the correspondence between the two is added to the mapping relationship list between the first-version and second-version administrative division codes.
[0107] Furthermore, the specific implementation details of the administrative division code processing method in another reference embodiment of the present invention have been described in detail in the above-described administrative division code processing method, so the details will not be repeated here.
[0108] Figure 5 This is a schematic diagram of an administrative division code processing device according to an embodiment of the present invention. Figure 5As shown, the administrative division code processing device 500 includes a creation module 501, a first conversion module 502, a second conversion module 503, and a sending module 504. The creation module 501 creates a mapping list of first-version administrative division codes and second-version administrative division codes and stores it locally. The first conversion module 502 acquires regulatory data and converts the address information in the regulatory data into first-version administrative division codes. The second conversion module 503 converts the first-version administrative division codes into second-version administrative division codes according to the mapping list of first-version and second-version administrative division codes. The sending module 504 sends the regulatory data containing the second-version administrative division codes to the regulatory system.
[0109] Optionally, the creation module 501 is further configured to:
[0110] Receive erroneous administrative division codes from the regulatory data returned by the regulatory system;
[0111] Update the mapping list between the first version of administrative division codes and the second version of administrative division codes based on the administrative division codes corresponding to the erroneous administrative division codes.
[0112] Optionally, if the erroneous administrative division code is a second version administrative division code, then the creation module 501 is further configured to:
[0113] Verify and determine the correct second-version administrative division code based on the incorrect administrative division code;
[0114] Update the correct second-version administrative division code to the mapping relationship list between the first-version administrative division code and the second-version administrative division code, replacing the original second-version administrative division code.
[0115] Optionally, if the erroneous administrative division code is a first version administrative division code, then the creation module 501 is further configured to:
[0116] Determine whether the second administrative division code corresponding to the incorrect administrative division code can be matched in the mapping relationship list between the first version of the administrative division code and the second version of the administrative division code;
[0117] If so, the correct first version administrative division code is verified and determined based on the incorrect administrative division code, and the correct first version administrative division code is updated to the mapping relationship list between the first version administrative division code and the second version administrative division code to replace the original first version administrative division code.
[0118] If not, then determine the second version of the administrative division code corresponding to the incorrect administrative division code, and add the correspondence between the two to the mapping relationship list between the first version of the administrative division code and the second version of the administrative division code.
[0119] Optionally, in the mapping relationship list between the first version of administrative division code and the second version of administrative division code, each first version administrative division code can only be mapped to one second version administrative division code, and one or more first version administrative division codes are allowed to be mapped to the same second version administrative division code.
[0120] Optionally, the creation module 501 is further configured to:
[0121] Record the update time and the person who updated it.
[0122] It should be noted that the specific implementation details of the administrative division code processing device described in this invention have been described in detail in the above-described administrative division code processing method, so the details will not be repeated here.
[0123] Figure 6 An exemplary system architecture 600 is shown that can be applied to the administrative division code processing method or administrative division code processing apparatus of the present invention.
[0124] like Figure 6 As shown, system architecture 600 may include terminal devices 601, 602, and 603, a network 604, and a server 605. Network 604 serves as the medium for providing communication links between terminal devices 601, 602, and 603 and server 605. Network 604 may include various connection types, such as wired or wireless communication links or fiber optic cables, etc.
[0125] Users can use terminal devices 601, 602, and 603 to interact with server 605 via network 604 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 601, 602, and 603, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social media platform software, etc. (for example only).
[0126] Terminal devices 601, 602, and 603 can be various electronic devices with displays and web browsing capabilities, including but not limited to smartphones, tablets, laptops, and desktop computers.
[0127] Server 605 can be a server that provides various services, such as a backend management server that supports shopping websites browsed by users using terminal devices 601, 602, and 603 (this is just an example). The backend management server can analyze and process data such as received item information query requests, and then feed the processing results back to the terminal devices.
[0128] It should be noted that the administrative division code processing method provided in this embodiment of the invention is generally executed by server 605, and correspondingly, the administrative division code processing device is generally installed in server 605. The administrative division code processing method provided in this embodiment of the invention can also be executed by terminal devices 601, 602, and 603, and correspondingly, the administrative division code processing device can be installed in terminal devices 601, 602, and 603.
[0129] It should be understood that Figure 6 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included.
[0130] The following is for reference. Figure 7 It shows a schematic diagram of the structure of a computer system 700 suitable for implementing a terminal device of the present invention. Figure 7 The terminal device shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present invention.
[0131] like Figure 7 As shown, the computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes based on programs stored in read-only memory (ROM) 702 or programs loaded from storage section 708 into random access memory (RAM) 703. The RAM 703 also stores various programs and data required for the operation of the system 700. The CPU 701, ROM 702, and RAM 703 are interconnected via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0132] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, mouse, etc.; an output section 707 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on the drive 710 as needed so that computer programs read from it can be installed into the storage section 708 as needed.
[0133] In particular, according to the embodiments disclosed in this invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this invention include a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 709, and / or installed from removable medium 711. When the computer program is executed by central processing unit (CPU) 701, it performs the functions defined above in the system of this invention.
[0134] It should be noted that the computer-readable medium shown in this invention can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this invention, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.
[0135] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer programs according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0136] The modules described in the embodiments of the present invention can be implemented in software or hardware. The described modules can also be housed in a processor; for example, a processor can be described as including a creation module, a first conversion module, a second conversion module, and a transmission module. The names of these modules do not necessarily limit the functionality of the module itself.
[0137] In another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiments; or it may exist independently and not assembled into the device. The computer-readable medium carries one or more programs, and when the one or more programs are executed by the device, the device implements the following method: creating and storing a mapping list of first-version administrative division codes and second-version administrative division codes locally; acquiring regulatory data and converting the address information in the regulatory data into first-version administrative division codes; converting the first-version administrative division codes into second-version administrative division codes according to the mapping list of first-version administrative division codes and second-version administrative division codes; and sending the regulatory data containing the second-version administrative division codes to the regulatory system.
[0138] In another aspect, embodiments of the present invention also provide a computer program product, including a computer program that, when executed by a processor, implements the methods described in any of the above embodiments.
[0139] According to the technical solution of this invention, by creating and storing a mapping list of first-version and second-version administrative division codes locally, converting address information in regulatory data into first-version administrative division codes, then converting the first-version administrative division codes into second-version administrative division codes, and finally sending regulatory data containing second-version administrative division codes to the regulatory system, this invention overcomes the technical problems of reliance on manual labor and low efficiency and accuracy in the prior art. This invention changes the processing of CRSS administrative division code data from offline manual to online semi-automatic methods, improving processing accuracy and efficiency. Furthermore, through continuous iteration and improvement of the work of business personnel maintaining the administrative division code mapping relationships at the front end, the amount of erroneous data and the workload of manual maintenance can be gradually reduced.
[0140] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can occur depending on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A method for processing administrative division codes, characterized in that, include: Create a mapping list between the first version of the administrative division code and the second version of the administrative division code and store it locally; The first version of the administrative division code created conforms to the specifications of the first version of the administrative division code, and the second version of the administrative division code created conforms to the specifications of the second version of the administrative division code. In the mapping relationship list between the first version of the administrative division code and the second version of the administrative division code, each first version of the administrative division code can only be mapped to one second version of the administrative division code, and it is allowed for one or more first version of the administrative division codes to be mapped to the same second version of the administrative division code. Acquire regulatory data and convert the address information in the regulatory data into a first version of administrative division code; Based on the mapping relationship list between the first version of administrative division codes and the second version of administrative division codes, the first version of administrative division codes are converted into the second version of administrative division codes; The regulatory data containing the second version of the administrative division code will be sent to the regulatory system; Also includes: Receive erroneous administrative division codes from the regulatory data returned by the regulatory system; Update the mapping list between the first version of administrative division codes and the second version of administrative division codes according to the administrative division codes corresponding to the erroneous administrative division codes; If the erroneous administrative division code is a second version administrative division code, then the mapping relationship list between the first version administrative division code and the second version administrative division code is updated according to the administrative division code corresponding to the erroneous administrative division code, including: Verify and determine the correct second-version administrative division code based on the incorrect administrative division code; Update the correct second-version administrative division code to the mapping relationship list between the first-version administrative division code and the second-version administrative division code, in order to replace the original second-version administrative division code; If the erroneous administrative division code is a first-version administrative division code, then the mapping relationship list between the first-version administrative division code and the second-version administrative division code is updated according to the administrative division code corresponding to the erroneous administrative division code, including: Determine whether the second administrative division code corresponding to the incorrect administrative division code can be matched in the mapping relationship list between the first version of the administrative division code and the second version of the administrative division code; If so, the correct first version administrative division code is verified and determined based on the incorrect administrative division code, and the correct first version administrative division code is updated to the mapping relationship list between the first version administrative division code and the second version administrative division code to replace the original first version administrative division code. If not, then determine the second version of the administrative division code corresponding to the incorrect administrative division code, and add the correspondence between the two to the mapping relationship list between the first version of the administrative division code and the second version of the administrative division code.
2. The method according to claim 1, characterized in that, The method further includes updating the mapping list between the first version of administrative division codes and the second version of administrative division codes based on the administrative division codes corresponding to the erroneous administrative division codes, and also includes: Record the update time and the person who updated it.
3. An administrative division code processing device, characterized in that, include: Create a module to create a list of mapping relationships between the first version of administrative division codes and the second version of administrative division codes and store it locally; The first version of the administrative division code created conforms to the specifications of the first version of the administrative division code, and the second version of the administrative division code created conforms to the specifications of the second version of the administrative division code. In the mapping relationship list between the first version of the administrative division code and the second version of the administrative division code, each first version of the administrative division code can only be mapped to one second version of the administrative division code, and it is allowed for one or more first version of the administrative division codes to be mapped to the same second version of the administrative division code. The first conversion module is used to acquire regulatory data and convert the address information in the regulatory data into a first version of administrative division code; The second conversion module is used to convert the first version of administrative division code into the second version of administrative division code according to the mapping relationship list between the first version of administrative division code and the second version of administrative division code; The sending module is used to send regulatory data containing the second version of the administrative division code to the regulatory system; The creation module is also used for: Receive erroneous administrative division codes from the regulatory data returned by the regulatory system; Update the mapping list between the first version of administrative division codes and the second version of administrative division codes according to the administrative division codes corresponding to the erroneous administrative division codes; If the erroneous administrative division code is a second version administrative division code, then the creation module is also used for: Verify and determine the correct second-version administrative division code based on the incorrect administrative division code; Update the correct second-version administrative division code to the mapping relationship list between the first-version administrative division code and the second-version administrative division code, in order to replace the original second-version administrative division code; If the erroneous administrative division code is a first-version administrative division code, then the creation module is further used for: Determine whether the second administrative division code corresponding to the incorrect administrative division code can be matched in the mapping relationship list between the first version of the administrative division code and the second version of the administrative division code; If so, the correct first version administrative division code is verified and determined based on the incorrect administrative division code, and the correct first version administrative division code is updated to the mapping relationship list between the first version administrative division code and the second version administrative division code to replace the original first version administrative division code. If not, then determine the second version of the administrative division code corresponding to the incorrect administrative division code, and add the correspondence between the two to the mapping relationship list between the first version of the administrative division code and the second version of the administrative division code.
4. The apparatus according to claim 3, characterized in that, The creation module is also used for: Record the update time and the person who updated it.
5. An electronic device, characterized in that, include: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in claim 1 or 2.
6. A computer-readable medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method as described in claim 1 or 2.
7. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the method as described in claim 1 or 2.
Citation Information
Patent Citations
Method and device for obtaining administrative division update information of POI
CN110471998A
Data processing method, server, terminal and storage medium
CN114297416A