WO2022160373A1 - Method and system for solving multi-region certificate data conflict based on flexible rules - Google Patents

Method and system for solving multi-region certificate data conflict based on flexible rules Download PDF

Info

Publication number
WO2022160373A1
WO2022160373A1 PCT/CN2021/075451 CN2021075451W WO2022160373A1 WO 2022160373 A1 WO2022160373 A1 WO 2022160373A1 CN 2021075451 W CN2021075451 W CN 2021075451W WO 2022160373 A1 WO2022160373 A1 WO 2022160373A1
Authority
WO
WIPO (PCT)
Prior art keywords
license
data source
same
next step
type
Prior art date
Application number
PCT/CN2021/075451
Other languages
French (fr)
Chinese (zh)
Inventor
吴志雄
黄文峰
汪翔
吴名耀
Original Assignee
南威软件股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 南威软件股份有限公司 filed Critical 南威软件股份有限公司
Publication of WO2022160373A1 publication Critical patent/WO2022160373A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/51Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/215Improving data quality; Data cleansing, e.g. de-duplication, removing invalid entries or correcting typographical errors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof

Definitions

  • the invention belongs to the technical field of electronic licenses, and in particular relates to a method and a system for resolving multi-region license data conflicts based on flexible rules.
  • the license index table is a data table that records the index information and routing information of the licenses held by the user. It is used to quickly locate and route the license source when querying the user's specific license information.
  • the content of the license routing table includes: user ID number, license name, the identification of the electronic license in the data source (preferably conforming to the national standard), license type, license type code in the data source, license type code in the license cloud service platform , The license issuing unit, the license issuing time, the license validity period, and the area code where the data source is located.
  • the license index priority of lower prefectures and cities is higher than that of higher prefectures.
  • Nanping prefecture is lower than the provincial database, so the index level is higher, and Nanping database data can be imported, but the provincial database Library data cannot be accessed.
  • the purpose of the present invention is to provide a method and system for resolving multi-region license data conflicts based on flexible rules, the method and system are conducive to resolving multi-region license data conflicts and improve the accuracy and efficiency of license information indexing.
  • the technical solution adopted in the present invention is: a method for solving multi-region license data conflicts based on flexible rules, comprising the following steps: 1) the license information of the data source, first pass the license identification, to update or add the license information; form into the intermediate table; 2) Process the license information in the intermediate table according to the required field cleaning rules, if the required field is judged to pass, go to the next step, otherwise enter the index error table; 3) For the required fields The certificate information that is judged to be passed is cleaned according to the characteristics of the certificate and the cleaning rules are repeated. If the certificate information needs to be updated or added, it will be entered into the index table, otherwise it will not be entered into the index table.
  • the specific method of processing the license information according to the required field cleaning rules is: 201) First, the required fields are judged for the new license information, and it is judged whether there is an ID card, a license name and a license issue. Unit information, if yes, go to the next step, otherwise it is judged that the required fields of the certificate are not passed, enter the index error table, do not update the certificate, and the process ends; 202) Execute the judgment of the data source certificate type field, and judge whether the data source certificate type name is empty, If yes, then the data source license type is equal to the license name, and go to the next step, otherwise, go to the next step directly; 203) Determine whether the data source license type number is empty, if yes, go to the next step, otherwise go to step 205; 204) Determine whether it already exists The same data source license type, if yes, obtain the data source license type code with the same data source license type name and the same name, and then go to the next step, otherwise the data source license type name and the data source license type code
  • the specific method for cleaning the license information according to the license characteristics repeated cleaning rules is: 301) For the new license information, determine whether there is a license with the same license identification in the index table, and if so, go to step 302. , otherwise go to step 303; 302) Determine whether the update time of the new license information is relatively new, if so, update the license information, otherwise the index table does not change, and the process ends; 303) Determine whether there are licenses with the same characteristics in the index table, then Go to the next step, otherwise add the license information, and the process ends; 304) Take the licenses with the same characteristics from the index table, and judge whether the licenses with the repeated characteristics are the same and consistent with the new licenses, if yes, add the license information, and the process ends, otherwise Go to the next step; 305) Enter the priority judgment process to judge whether the data source of the new license is of high priority, if so, replace the old license with the same characteristics with the new license, leaving only one license of the data source, otherwise the index table does not change.
  • the priority judging process includes the following steps: A1) For the license A and the license B of two different data sources, judge whether they are the same access library type, if so, go to the next step, otherwise, according to the data of the unit type. According to the principle that the source priority is greater than the data source of the regional type, confirm the license that needs to be updated; A2) Determine whether it is the same access city level, if yes, confirm the license that needs to be updated, otherwise go to the next step; A3) Determine whether it is unit data The source is still a regional data source.
  • the higher the unit level the higher the priority of the license is to confirm the license that needs to be updated; if it is a regional data source, the lower the unit level, the higher the priority of the license. The higher the principle, the confirmation of the license that needs to be renewed.
  • the present invention also provides a system for resolving multi-region license data conflicts based on flexible rules, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor. When the processor runs the computer program, the above method steps.
  • the present invention has the following beneficial effects: a. It is easier to handle if the license update rules are changed, and if the license rules change under the existing mechanism, it is necessary to obtain the license from the data source again, and then re-update according to the new rules.
  • the license form is a lot of work, and it is prone to problems. If there is a license for the intermediate table, the index table can be updated through the data collected before the intermediate table, without the need to obtain data from the data source, which is faster and more convenient. In this way, the cost of modifying the rules in the future is relatively low.
  • the switch of the data source is more convenient. Closing the data source currently only deactivates the certificate used by the data source, but such an operation is not reasonable enough.
  • both the provincial library and the Nanping library pass ID cards with the same characteristics. According to the existing rules, the ID card of the Nanping library is used. If the Nanping library is now closed, the user will not be able to see the ID card, and the correct identification of the provincial library should be displayed. ID card. If the existing situation needs to be modified, it is necessary to obtain and judge data from each data source; if there is an intermediate table, the index table can be updated by relying on the previously collected data, and there is no need to obtain data from the data source.
  • FIG. 1 is a flow chart of a method implementation according to an embodiment of the present invention.
  • FIG. 2 is a flowchart of cleaning a required field in an embodiment of the present invention.
  • FIG. 3 is a flowchart of repeated cleaning of certificate features in an embodiment of the present invention.
  • FIG. 4 is a flowchart of priority determination in an embodiment of the present invention.
  • the present invention provides a method for resolving multi-region license data conflicts based on flexible rules, which is characterized in that it includes the following steps: 1) The license information of the data source is first passed through the license identification to update or add a new license. form into the intermediate table. The data is directly stored, and there is no need to judge the duplicate data for the validity field.
  • the specific method of processing license information according to the required field cleaning rules is: 201) First, determine the required fields for the new license information, and determine whether there is an ID card, license name and license issuing unit information. If yes, go to the next step, otherwise it is judged that the required fields of the certificate are not passed, enter the index error table, do not update the certificate, and the process ends; 202) Execute the judgment of the data source certificate type field, and judge whether the name of the data source certificate type is empty, if yes, the data The source license type is equal to the license name, and go to the next step, otherwise, go to the next step directly; 203) Determine whether the data source license type number is empty, then go to the next step, otherwise go to step 205; 204) Determine whether the same data already exists If the source license type is yes, then obtain the data source license type code with the same data source license type name and the same name, and then go to the next step, otherwise the data source license type name and the data source license type code are the same, and then go to the next step;
  • the cleaning rules are repeated according to the characteristics of the license. If the license information needs to be updated or added, it will be entered into the index table, otherwise it will not be entered into the index table.
  • the specific method for cleaning the license information according to the license characteristics repeated cleaning rules is: 301)
  • For the new license information determine whether there is a license with the same license identification in the index table, if yes, go to step 302, otherwise go to step 302 Step 303.
  • the priority judgment process includes the following steps: A1) For the license A and license B of two different data sources, determine whether they are the same access library type, if so, go to the next step, otherwise, according to the unit According to the principle that the priority of the type of data source is higher than that of the regional type of data source, confirm the license that needs to be updated; A2) Judge whether it is the same access city level, if yes, confirm the license that needs to be updated, otherwise go to the next step; A3) Judge Whether it is a unit data source or a regional data source, if it is a unit data source, the higher the unit level, the higher the priority of the license, confirm the license that needs to be updated; if it is a regional data source, according to the lower unit level, The higher the priority of the license, the confirmation of the license that needs to be renewed.
  • the present invention adds an intermediate table to clean, screen and employ the conflicting data of licenses in multiple regions.
  • the intermediate table is the record table that pushes all the certificates to us for all data sources (non-log table, the same data source does not have the same certificate ID).
  • the index table is a record table that we show to our customers, using valid multiple data source features with the same certificate.
  • the index table is a table generated after the intermediate table is processed by rules, and the intermediate table should contain all the data of the index table.
  • the present invention also provides a system for resolving multi-region license data conflicts based on flexible rules, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor. When the processor runs the computer program, the above method steps.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Quality & Reliability (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present invention relates to a method and system for solving a multi-region certificate data conflict based on flexible rules. The method comprises the following steps: 1) certificate information of data sources is first entered into an intermediate table using an update or newly add format and by means of a certificate identifier; 2) the certificate information in the intermediate table is processed according to a required field cleanup rule, and if required field determination is passed, same enters into the next step, otherwise same is entered into an index error table; 3) cleanup is performed on certificate information that passed required field determination according to a certificate feature repeat cleanup rule, and if certificate information needs to be updated or newly added, same is entered into an index table, other same is not entered into an index table. The present method and system facilitate solving a multi-region certificate data conflict, and improve the accuracy and efficiency of a certificate information index.

Description

一种基于灵活规则解决多区域证照数据冲突的方法及系统A method and system for resolving multi-region license data conflicts based on flexible rules 技术领域technical field
本发明属于电子证照技术领域,具体涉及一种基于灵活规则解决多区域证照数据冲突的方法及系统。The invention belongs to the technical field of electronic licenses, and in particular relates to a method and a system for resolving multi-region license data conflicts based on flexible rules.
背景技术Background technique
随着电子证照信息化的发展,在很多区域都建立了电子证照平台,已经累积了大量的电子证照数据,但是这些区域的电子证照数据标准可能不一样,系统设计架构也可能不同,不同部门涉及的电子证照种类繁多,如何实现电子证照在全国范围内的信息共享和标准统一是一个问题。With the development of electronic license informatization, electronic license platforms have been established in many areas, and a large amount of electronic license data has been accumulated. However, the electronic license data standards in these areas may be different, and the system design architecture may also be different. Different departments are involved in There are many types of electronic licenses, how to realize the information sharing and standard unification of electronic licenses nationwide is a problem.
证照索引表是一张记录用户所持有的证照的索引信息以及路由信息的数据表。用于查询用户具体证照信息时快速定位证照源的位置并进行路由。证照路由表的内容包括:用户身份证号码、证照名称、数据源中电子证照的标识(最好是符合国标)、证照类型、数据源中的证照类型代码、证照云服务平台中的证照类型代码、证照颁发单位、证照颁发时间、证照有效期、数据源所在区域代码。更新证照索引表的时候,同样是地市库,地市低的索引优先级高于地市高的;例如南平地市比省库要低,所以索引级别高,南平库数据能进,但省库数据无法进入。但是现有的证照信息索引仍存在一些问题:1)索引信息管理规则需求不稳定;2)现在不同数据源相同特征会同时进入索引表;3)特征识别不准,一本证特征会发生变化;4)存在一本证替换多本相同特征证的情况;5)证照相关信息合并需求的不完善。因此,有必要设计一种方法来解决多区域证照数据冲突的问题。The license index table is a data table that records the index information and routing information of the licenses held by the user. It is used to quickly locate and route the license source when querying the user's specific license information. The content of the license routing table includes: user ID number, license name, the identification of the electronic license in the data source (preferably conforming to the national standard), license type, license type code in the data source, license type code in the license cloud service platform , The license issuing unit, the license issuing time, the license validity period, and the area code where the data source is located. When updating the license index table, it is also the prefecture-level database. The index priority of lower prefectures and cities is higher than that of higher prefectures. For example, Nanping prefecture is lower than the provincial database, so the index level is higher, and Nanping database data can be imported, but the provincial database Library data cannot be accessed. However, there are still some problems in the existing license information index: 1) The requirements of the index information management rules are unstable; 2) Now the same features of different data sources will enter the index table at the same time; 3) The feature identification is not accurate, and the features of a license will change. 4) There is a situation where one certificate replaces multiple certificates of the same characteristics; 5) The requirements for merging relevant information of certificates and licenses are not perfect. Therefore, it is necessary to design a method to solve the problem of multi-region license data conflict.
技术问题technical problem
本发明的目的在于提供一种基于灵活规则解决多区域证照数据冲突的方法及系统,该方法及系统有利于解决多区域证照数据冲突,提高证照信息索引的准确性和效率。The purpose of the present invention is to provide a method and system for resolving multi-region license data conflicts based on flexible rules, the method and system are conducive to resolving multi-region license data conflicts and improve the accuracy and efficiency of license information indexing.
技术解决方案technical solutions
为实现上述目的,本发明采用的技术方案是:一种基于灵活规则解决多区域证照数据冲突的方法,包括以下步骤:1)数据源的证照信息,先通过证照标识,以更新或新增的形式进入中间表中;2)对中间表中的证照信息,按照必填字段清洗规则进行处理,如果必填字段判断通过则进入下个步骤,否则进入索引错误表中;3)对必填字段判断通过的证照信息,按照证照特征重复清洗规则进行清洗,如果证照信息需要更新或新增则进入索引表中,否则不进入索引表。In order to achieve the above object, the technical solution adopted in the present invention is: a method for solving multi-region license data conflicts based on flexible rules, comprising the following steps: 1) the license information of the data source, first pass the license identification, to update or add the license information; form into the intermediate table; 2) Process the license information in the intermediate table according to the required field cleaning rules, if the required field is judged to pass, go to the next step, otherwise enter the index error table; 3) For the required fields The certificate information that is judged to be passed is cleaned according to the characteristics of the certificate and the cleaning rules are repeated. If the certificate information needs to be updated or added, it will be entered into the index table, otherwise it will not be entered into the index table.
进一步地,所述步骤2中,对证照信息按照必填字段清洗规则进行处理的具体方法为:201)对新的证照信息先进行必填字段判断,判断是否存在身份证、证照名称以及证照颁发单位信息,是则转下一步,否则判断证照必填字段不通过,进入索引错误表,不更新证照,流程结束;202)进行数据源证照类型字段判断,判断数据源证照类型名称是否为空,是则数据源证照类型等于证照名称,并转下一步,否则直接转下一步;203)判断数据源证照类型编号是否为空,是则转下一步,否则转步骤205;204)判断是否已经存在相同的数据源证照类型,是则获取相同的数据源证照类型名称相同的数据源证照类型代码,然后转下一步,否则数据源证照类型名称和数据源证照类型代码一致,然后转下一步;205)进行证照类型绑定,然后判断是否成功绑定证件类型,是则通过证照必填字段判断,否则进入索引错误表,但通过证照必填字段判断,不影响证照更新。Further, in the step 2, the specific method of processing the license information according to the required field cleaning rules is: 201) First, the required fields are judged for the new license information, and it is judged whether there is an ID card, a license name and a license issue. Unit information, if yes, go to the next step, otherwise it is judged that the required fields of the certificate are not passed, enter the index error table, do not update the certificate, and the process ends; 202) Execute the judgment of the data source certificate type field, and judge whether the data source certificate type name is empty, If yes, then the data source license type is equal to the license name, and go to the next step, otherwise, go to the next step directly; 203) Determine whether the data source license type number is empty, if yes, go to the next step, otherwise go to step 205; 204) Determine whether it already exists The same data source license type, if yes, obtain the data source license type code with the same data source license type name and the same name, and then go to the next step, otherwise the data source license type name and the data source license type code are the same, and then go to the next step; 205 ) to bind the certificate type, and then judge whether the certificate type is successfully bound. If it is, it will be judged by the required fields of the certificate, otherwise it will enter the index error table, but the certificate update will not be affected by judging by the required fields of the certificate.
进一步地,所述步骤3中,对证照信息按照证照特征重复清洗规则进行清洗的具体方法为:301)对新的证照信息,判断索引表中是否存在相同证照标识的证照,是则转步骤302,否则转步骤303;302)判断新的证照信息的更新时间是否比较新,是则更新证照信息,否则索引表不变化,流程结束;303)判断索引表中是否存在相同特征的证照,是则转下一步,否则新增证照信息,流程结束;304)从索引表中取出特征一致的证照,并判断重复特征的证照是否一样且与新证一致,是则新增证照信息,流程结束,否则转下一步;305)进入优先级判断流程,判断新的证照的数据源是否是高优先级,是则用新的证照替换旧的相同特征的证照,只留一个数据源的证照,否则索引表不变化。Further, in the step 3, the specific method for cleaning the license information according to the license characteristics repeated cleaning rules is: 301) For the new license information, determine whether there is a license with the same license identification in the index table, and if so, go to step 302. , otherwise go to step 303; 302) Determine whether the update time of the new license information is relatively new, if so, update the license information, otherwise the index table does not change, and the process ends; 303) Determine whether there are licenses with the same characteristics in the index table, then Go to the next step, otherwise add the license information, and the process ends; 304) Take the licenses with the same characteristics from the index table, and judge whether the licenses with the repeated characteristics are the same and consistent with the new licenses, if yes, add the license information, and the process ends, otherwise Go to the next step; 305) Enter the priority judgment process to judge whether the data source of the new license is of high priority, if so, replace the old license with the same characteristics with the new license, leaving only one license of the data source, otherwise the index table does not change.
进一步地,所述优先级判断流程包括以下步骤:A1)对于两本不同数据源的证照A和证照B,判断是否为相同的接入库类型,是则转下一步,否则按照单位类型的数据源优先级大于地域类型的数据源的原则,确认需要更新的证照;A2)判断是否为相同的接入地市级别,是则确认需要更新的证照,否则转下一步;A3)判断是单位数据源还是地域数据源,如果是单位数据源,则按单位级别越高,证照的优先级越高的原则,确认需要更新的证照;如果是地域数据源,则按单位级别越低,证照的优先级越高的原则,确认需要更新的证照。Further, the priority judging process includes the following steps: A1) For the license A and the license B of two different data sources, judge whether they are the same access library type, if so, go to the next step, otherwise, according to the data of the unit type. According to the principle that the source priority is greater than the data source of the regional type, confirm the license that needs to be updated; A2) Determine whether it is the same access city level, if yes, confirm the license that needs to be updated, otherwise go to the next step; A3) Determine whether it is unit data The source is still a regional data source. If it is a unit data source, the higher the unit level, the higher the priority of the license is to confirm the license that needs to be updated; if it is a regional data source, the lower the unit level, the higher the priority of the license. The higher the principle, the confirmation of the license that needs to be renewed.
本发明还提供了一种基于灵活规则解决多区域证照数据冲突的系统,包括存储器、处理器以及存储于存储器上并能够在处理器上运行的计算机程序,当处理器运行该计算机程序时,实现上述方法步骤。The present invention also provides a system for resolving multi-region license data conflicts based on flexible rules, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor. When the processor runs the computer program, the above method steps.
有益效果beneficial effect
相较于现有技术,本发明具有以下有益效果:a.证照更新规则发生改变更易于处理,现有机制下如果证照的规则发生变化,需要重新向数据源获取证照,然后依照新规则重新更新证照表,这样操作量很大,而且容易出问题。如果存在中间表的证照,就可以通过中间表之前收集的数据,对索引表进行更新,无需再向数据源获取数据,比较快捷方便。这样以后规则就的修改成本比较低。Compared with the prior art, the present invention has the following beneficial effects: a. It is easier to handle if the license update rules are changed, and if the license rules change under the existing mechanism, it is necessary to obtain the license from the data source again, and then re-update according to the new rules. The license form is a lot of work, and it is prone to problems. If there is a license for the intermediate table, the index table can be updated through the data collected before the intermediate table, without the need to obtain data from the data source, which is faster and more convenient. In this way, the cost of modifying the rules in the future is relatively low.
b.数据源的开关更便捷,当前关闭数据源仅仅是停用了这个数据源所使用的证,但是这样的操作不够合理。比如省库和南平库都传特征相同的身份证,那按照现有规则是使用南平库的身份证,现在把南平库关闭,则该用户将看不到身份证,而正确应该显示省库的身份证。如果现有情况要进行修改,需要向每个数据源进行数据获取和判断;如果有中间表,可以依靠之前收集的数据,对索引表进行更新,无需再向数据源获取数据。b. The switch of the data source is more convenient. Closing the data source currently only deactivates the certificate used by the data source, but such an operation is not reasonable enough. For example, both the provincial library and the Nanping library pass ID cards with the same characteristics. According to the existing rules, the ID card of the Nanping library is used. If the Nanping library is now closed, the user will not be able to see the ID card, and the correct identification of the provincial library should be displayed. ID card. If the existing situation needs to be modified, it is necessary to obtain and judge data from each data source; if there is an intermediate table, the index table can be updated by relying on the previously collected data, and there is no need to obtain data from the data source.
c.可以完成删证操作,当前功能下我们只对证照进行新增不会进行删除,就算数据源对这本证照进行删除(非作废),我们也不会对证照进行删除。我们需要一个中间库定时做对比,当数据源删除该证照时,我们能对比是否进行删除还是引用其他数据源的数据。c. The operation of deleting the certificate can be completed. Under the current function, we only add new certificates and will not delete them. Even if the data source deletes this certificate (not void), we will not delete the certificate. We need an intermediate library for regular comparison. When the data source deletes the license, we can compare whether to delete or reference data from other data sources.
d.为大数据证照处理铺路,增加中间表,按照下面流程图的步骤进行更新,其实就是先进行数据的收集,然后再按照规则进行清洗,产生索引表;当前的流程是缺少了数据收集的部分。符合未来修改成大数据处理方式的变化。d. Pave the way for big data license processing, add intermediate tables, and update them according to the steps in the flow chart below. In fact, first collect data, and then clean it according to the rules to generate index tables; the current process lacks data collection part. It is in line with the changes in the way of big data processing in the future.
附图说明Description of drawings
图1是本发明实施例的方法实现流程图。FIG. 1 is a flow chart of a method implementation according to an embodiment of the present invention.
图2是本发明实施例中必填字段清洗流程图。FIG. 2 is a flowchart of cleaning a required field in an embodiment of the present invention.
图3是本发明实施例中证照特征重复清洗流程图。FIG. 3 is a flowchart of repeated cleaning of certificate features in an embodiment of the present invention.
图4是本发明实施例中优先级判断流程图。FIG. 4 is a flowchart of priority determination in an embodiment of the present invention.
本发明的实施方式Embodiments of the present invention
下面结合附图及具体实施例对本发明作进一步的详细说明。The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
如图1所示,本发明提供了一种基于灵活规则解决多区域证照数据冲突的方法,其特征在于,包括以下步骤:1)数据源的证照信息,先通过证照标识,以更新或新增的形式进入中间表中。数据直接存入,无需对有效性字段,对重复数据进行判断。As shown in FIG. 1 , the present invention provides a method for resolving multi-region license data conflicts based on flexible rules, which is characterized in that it includes the following steps: 1) The license information of the data source is first passed through the license identification to update or add a new license. form into the intermediate table. The data is directly stored, and there is no need to judge the duplicate data for the validity field.
2)对中间表中的证照信息,按照必填字段清洗规则进行处理,如果必填字段判断通过则进入下个步骤,否则进入索引错误表中。2) The license information in the intermediate table is processed according to the required field cleaning rules. If the required field is judged to pass, go to the next step, otherwise it will enter the index error table.
如图2所示,对证照信息按照必填字段清洗规则进行处理的具体方法为:201)对新的证照信息先进行必填字段判断,判断是否存在身份证、证照名称以及证照颁发单位信息,是则转下一步,否则判断证照必填字段不通过,进入索引错误表,不更新证照,流程结束;202)进行数据源证照类型字段判断,判断数据源证照类型名称是否为空,是则数据源证照类型等于证照名称,并转下一步,否则直接转下一步;203)判断数据源证照类型编号是否为空,是则转下一步,否则转步骤205;204)判断是否已经存在相同的数据源证照类型,是则获取相同的数据源证照类型名称相同的数据源证照类型代码,然后转下一步,否则数据源证照类型名称和数据源证照类型代码一致,然后转下一步;205)进行证照类型绑定,然后判断是否成功绑定证件类型,是则通过证照必填字段判断,否则进入索引错误表,但通过证照必填字段判断,不影响证照更新。As shown in Figure 2, the specific method of processing license information according to the required field cleaning rules is: 201) First, determine the required fields for the new license information, and determine whether there is an ID card, license name and license issuing unit information. If yes, go to the next step, otherwise it is judged that the required fields of the certificate are not passed, enter the index error table, do not update the certificate, and the process ends; 202) Execute the judgment of the data source certificate type field, and judge whether the name of the data source certificate type is empty, if yes, the data The source license type is equal to the license name, and go to the next step, otherwise, go to the next step directly; 203) Determine whether the data source license type number is empty, then go to the next step, otherwise go to step 205; 204) Determine whether the same data already exists If the source license type is yes, then obtain the data source license type code with the same data source license type name and the same name, and then go to the next step, otherwise the data source license type name and the data source license type code are the same, and then go to the next step; 205) Carry out the license Type binding, and then judge whether the certificate type is successfully bound. If yes, it will be judged by the required fields of the certificate, otherwise it will enter the index error table, but the certificate update will not be affected by judging by the required fields of the certificate.
3)对必填字段判断通过的证照信息,按照证照特征重复清洗规则进行清洗,如果证照信息需要更新或新增则进入索引表中,否则不进入索引表。3) For the license information that has passed the judgment of the required fields, the cleaning rules are repeated according to the characteristics of the license. If the license information needs to be updated or added, it will be entered into the index table, otherwise it will not be entered into the index table.
如图3所示,对证照信息按照证照特征重复清洗规则进行清洗的具体方法为:301)对新的证照信息,判断索引表中是否存在相同证照标识的证照,是则转步骤302,否则转步骤303。As shown in Figure 3, the specific method for cleaning the license information according to the license characteristics repeated cleaning rules is: 301) For the new license information, determine whether there is a license with the same license identification in the index table, if yes, go to step 302, otherwise go to step 302 Step 303.
302)判断新的证照信息的更新时间是否比较新,是则更新证照信息,否则索引表不变化,流程结束。302) Determine whether the update time of the new license information is relatively new, and if so, update the license information, otherwise the index table does not change, and the process ends.
303)判断索引表中是否存在相同特征的证照,是则转下一步,否则新增证照信息,流程结束。303) Determine whether there are licenses with the same characteristics in the index table, if yes, go to the next step, otherwise add license information, and the process ends.
304)从索引表中取出特征一致的证照,并判断重复特征的证照是否一样且与新证一致,是则新增证照信息,流程结束,否则转下一步。304) Take out the licenses with the same features from the index table, and judge whether the licenses with the repeated features are the same and consistent with the new licenses, if yes, add the license information, and the process ends, otherwise, go to the next step.
305)进入优先级判断流程,判断新的证照的数据源是否是高优先级,是则用新的证照替换旧的相同特征的证照,只留一个数据源的证照,否则索引表不变化。305) Enter the priority judgment process to judge whether the data source of the new license is of high priority, and if so, replace the old license with the same characteristics with the new license, leaving only the license of one data source, otherwise the index table will not change.
如图4所示,所述优先级判断流程包括以下步骤:A1)对于两本不同数据源的证照A和证照B,判断是否为相同的接入库类型,是则转下一步,否则按照单位类型的数据源优先级大于地域类型的数据源的原则,确认需要更新的证照;A2)判断是否为相同的接入地市级别,是则确认需要更新的证照,否则转下一步;A3)判断是单位数据源还是地域数据源,如果是单位数据源,则按单位级别越高,证照的优先级越高的原则,确认需要更新的证照;如果是地域数据源,则按单位级别越低,证照的优先级越高的原则,确认需要更新的证照。As shown in Figure 4, the priority judgment process includes the following steps: A1) For the license A and license B of two different data sources, determine whether they are the same access library type, if so, go to the next step, otherwise, according to the unit According to the principle that the priority of the type of data source is higher than that of the regional type of data source, confirm the license that needs to be updated; A2) Judge whether it is the same access city level, if yes, confirm the license that needs to be updated, otherwise go to the next step; A3) Judge Whether it is a unit data source or a regional data source, if it is a unit data source, the higher the unit level, the higher the priority of the license, confirm the license that needs to be updated; if it is a regional data source, according to the lower unit level, The higher the priority of the license, the confirmation of the license that needs to be renewed.
本发明新增中间表来进行多区域的证照冲突数据的清洗,筛选和录用。中间表是对所有数据源推送给我们所有证照的记录表(非日志表,相同数据源不存在相同证照ID)。索引表是我们对客户展现,使用有效的多数据源特征相同的证照的记录表。索引表是中间表进行规则处理后产生的表,中间表应该包含索引表所有数据。The present invention adds an intermediate table to clean, screen and employ the conflicting data of licenses in multiple regions. The intermediate table is the record table that pushes all the certificates to us for all data sources (non-log table, the same data source does not have the same certificate ID). The index table is a record table that we show to our customers, using valid multiple data source features with the same certificate. The index table is a table generated after the intermediate table is processed by rules, and the intermediate table should contain all the data of the index table.
本发明还提供了一种基于灵活规则解决多区域证照数据冲突的系统,包括存储器、处理器以及存储于存储器上并能够在处理器上运行的计算机程序,当处理器运行该计算机程序时,实现上述方法步骤。The present invention also provides a system for resolving multi-region license data conflicts based on flexible rules, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor. When the processor runs the computer program, the above method steps.
以上是本发明的较佳实施例,凡依本发明技术方案所作的改变,所产生的功能作用未超出本发明技术方案的范围时,均属于本发明的保护范围。The above are the preferred embodiments of the present invention, all changes made according to the technical solutions of the present invention, when the resulting functional effects do not exceed the scope of the technical solutions of the present invention, belong to the protection scope of the present invention.

Claims (5)

  1. 一种基于灵活规则解决多区域证照数据冲突的方法,其特征在于,包括以下步骤:A method for resolving multi-region license data conflicts based on flexible rules, comprising the following steps:
    1)数据源的证照信息,先通过证照标识,以更新或新增的形式进入中间表中;1) The license information of the data source is first passed through the license identification and entered into the intermediate table in the form of update or new addition;
    2)对中间表中的证照信息,按照必填字段清洗规则进行处理,如果必填字段判断通过则进入下个步骤,否则进入索引错误表中;2) The license information in the intermediate table is processed according to the required field cleaning rules. If the required field is judged to pass, it will go to the next step, otherwise it will enter the index error table;
    3)对必填字段判断通过的证照信息,按照证照特征重复清洗规则进行清洗,如果证照信息需要更新或新增则进入索引表中,否则不进入索引表。3) For the license information that has passed the judgment of the required fields, the cleaning rules are repeated according to the characteristics of the license. If the license information needs to be updated or added, it will be entered into the index table, otherwise it will not be entered into the index table.
  2. 根据权利要求1所述的一种基于灵活规则解决多区域证照数据冲突的方法,其特征在于,所述步骤2中,对证照信息按照必填字段清洗规则进行处理的具体方法为:The method for resolving multi-region license data conflicts based on flexible rules according to claim 1, wherein, in the step 2, the specific method for processing license information according to the required field cleaning rules is:
    201)对新的证照信息先进行必填字段判断,判断是否存在身份证、证照名称以及证照颁发单位信息,是则转下一步,否则判断证照必填字段不通过,进入索引错误表,不更新证照,流程结束;201) For the new license information, first make a judgment on the required fields, and judge whether there is an ID card, license name and license issuing unit information. If yes, go to the next step. Otherwise, it is judged that the mandatory fields of the license are not passed, and the index error table is entered, and the update is not performed. Certificate, the process is over;
    202)进行数据源证照类型字段判断,判断数据源证照类型名称是否为空,是则数据源证照类型等于证照名称,并转下一步,否则直接转下一步;202) Judging the data source license type field to determine whether the data source license type name is empty, if yes, the data source license type is equal to the license name, and go to the next step, otherwise, directly go to the next step;
    203)判断数据源证照类型编号是否为空,是则转下一步,否则转步骤205;203) Determine whether the data source license type number is empty, if yes, go to the next step, otherwise go to step 205;
    204)判断是否已经存在相同的数据源证照类型,是则获取1)相同的数据源证照类型名称以及2)相同的数据源证照类型代码,然后转下一步,否则数据源证照类型名称和数据源证照类型代码一致,然后转下一步;204) Determine whether the same data source license type already exists, if yes, obtain 1) the same data source license type name and 2) the same data source license type code, and then go to the next step, otherwise the data source license type name and data source The license type code is the same, and then go to the next step;
    205)进行证照类型绑定,然后判断是否成功绑定证件类型,是则通过证照必填字段判断,否则进入索引错误表。205) Bind the certificate type, and then judge whether the certificate type is successfully bound. If yes, it is judged by the required fields of the certificate, otherwise it will enter the index error table.
  3. 根据权利要求1所述的一种基于灵活规则解决多区域证照数据冲突的方法,其特征在于,所述步骤3中,对证照信息按照证照特征重复清洗规则进行清洗的具体方法为:The method for resolving multi-region license data conflicts based on flexible rules according to claim 1, wherein, in the step 3, the specific method for cleaning the license information according to the license characteristics repeated cleaning rules is:
    301)对新的证照信息,判断索引表中是否存在相同证照标识的证照,是则转步骤302,否则转步骤303;301) For the new license information, determine whether there is a license with the same license ID in the index table, if yes, go to step 302; otherwise, go to step 303;
    302)判断新的证照信息的更新时间是否比较新,是则更新证照信息,否则索引表不变化,流程结束;302) Determine whether the update time of the new license information is relatively new, and if so, update the license information, otherwise the index table does not change, and the process ends;
    303)判断索引表中是否存在相同特征的证照,是则转下一步,否则新增证照信息,流程结束;303) Determine whether there are licenses with the same characteristics in the index table, if yes, go to the next step, otherwise add license information, and the process ends;
    304)从索引表中取出特征一致的证照,并判断索引表中相同特征的证照与新的证照是否数据源相同,如果相同特征,没有相同标识的证照,是则新增证照信息,流程结束,否则转下一步;304) Take out the licenses with the same characteristics from the index table, and judge whether the licenses with the same characteristics in the index table have the same data source as the new licenses. If they have the same characteristics and there is no license with the same identification, then add the license information, and the process ends. Otherwise, go to the next step;
    305)进入优先级判断流程,判断新的证照的数据源是否是高优先级,是则用新的证照替换旧的相同特征的证照,只留一个数据源的证照,否则索引表不变化。305) Enter the priority judgment process to judge whether the data source of the new license is of high priority, and if so, replace the old license with the same characteristics with the new license, leaving only the license of one data source, otherwise the index table will not change.
  4. 根据权利要求3所述的一种基于灵活规则解决多区域证照数据冲突的方法,其特征在于,所述优先级判断流程包括以下步骤:The method for resolving multi-area license data conflicts based on flexible rules according to claim 3, wherein the priority judging process comprises the following steps:
    A1)对于两本不同数据源的证照A和证照B,判断是否为相同的接入库类型,是则转下一步,否则按照单位类型的数据源优先级大于地域类型的数据源的原则,定优先级高的证照,如果新的证照的优先级高,就更新,如果旧的证照的优先级高,就不更新。;A1) For licenses A and B of two different data sources, determine whether they are the same type of access database, and if so, go to the next step; otherwise, according to the principle that the data source of the unit type has a higher priority than the data source of the regional type, determine If the priority of the new license is high, it will be updated, and if the priority of the old license is high, it will not be updated. ;
    A2)判断是否为相同的接入地市级别,是则确认需要更新的证照,否则转下一步;A2) Determine whether it is the same access city level, if yes, confirm the license that needs to be updated, otherwise go to the next step;
    A3)判断是单位数据源还是地域数据源,如果是单位数据源,则按单位级别越高,证照的优先级越高的原则,确认需要更新的证照;如果是地域数据源,则按单位级别越低,证照的优先级越高的原则,确认需要更新的证照。A3) Determine whether it is a unit data source or a regional data source. If it is a unit data source, confirm the license that needs to be updated according to the principle that the higher the unit level, the higher the priority of the license; if it is a regional data source, the unit level The lower the priority, the higher the priority of the license, and the license that needs to be updated is confirmed.
  5. 一种基于灵活规则解决多区域证照数据冲突的系统,其特征在于,包括存储器、处理器以及存储于存储器上并能够在处理器上运行的计算机程序,当处理器运行该计算机程序时,实现如权利要求1-4任一项所述的方法步骤。A system based on flexible rules for resolving multi-region license data conflicts, characterized in that it comprises a memory, a processor, and a computer program stored on the memory and capable of running on the processor, when the processor runs the computer program, the The method steps of any one of claims 1-4.
PCT/CN2021/075451 2021-01-27 2021-02-05 Method and system for solving multi-region certificate data conflict based on flexible rules WO2022160373A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110111143.XA CN112650865B (en) 2021-01-27 2021-01-27 Method and system for solving multi-region license data conflict based on flexible rule
CN202110111143.X 2021-01-27

Publications (1)

Publication Number Publication Date
WO2022160373A1 true WO2022160373A1 (en) 2022-08-04

Family

ID=75370817

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/075451 WO2022160373A1 (en) 2021-01-27 2021-02-05 Method and system for solving multi-region certificate data conflict based on flexible rules

Country Status (2)

Country Link
CN (1) CN112650865B (en)
WO (1) WO2022160373A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050234913A1 (en) * 2002-05-28 2005-10-20 Providian Financial Corporation Method and system for creating and maintaining an index for tracking files relating to people
CN109492004A (en) * 2018-10-29 2019-03-19 广东开放大学(广东理工职业学院) A kind of number fishery isomeric data storage method, system and device
CN110716928A (en) * 2019-09-09 2020-01-21 上海凯京信达科技集团有限公司 Data processing method, device, equipment and storage medium
CN111444263A (en) * 2020-02-17 2020-07-24 江苏荣泽信息科技股份有限公司 Block chain-based electronic license data information sharing system
CN112000825A (en) * 2020-08-25 2020-11-27 浪潮云信息技术股份公司 Method and system for establishing electronic license storage model based on sub-warehouse and sub-table

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101799811B (en) * 2009-02-06 2012-02-22 北京数政科技有限公司 Certificate information inquiring method and inquiring system
US9904579B2 (en) * 2013-03-15 2018-02-27 Advanced Elemental Technologies, Inc. Methods and systems for purposeful computing
CN104252472B (en) * 2013-06-27 2018-01-23 国际商业机器公司 Method and apparatus for parallelization data processing
CN107330125B (en) * 2017-07-20 2020-06-30 云南电网有限责任公司电力科学研究院 Mass unstructured distribution network data integration method based on knowledge graph technology
CN107833595A (en) * 2017-10-12 2018-03-23 山东大学 Medical big data multicenter integration platform and method
CN109960621A (en) * 2017-12-22 2019-07-02 南京欣网互联网络科技有限公司 A kind of data pick-up method based on big data visual control platform
CN108170857B (en) * 2018-01-22 2019-10-18 广州市中智软件开发有限公司 A kind of method for building up and call method of the cross-domain interconnection services of electronics license
CN108335231A (en) * 2018-01-29 2018-07-27 国网福建省电力有限公司 A kind of power distribution network data diagnosis method of Auto-matching
CN108287924A (en) * 2018-02-28 2018-07-17 福建师范大学 One kind can the acquisition of positioning video data and organizing search method
CN108805587A (en) * 2018-06-14 2018-11-13 泰康保险集团股份有限公司 A kind of customer information processing method, device, medium and electronic equipment
CN109522353A (en) * 2018-11-09 2019-03-26 福建南威软件有限公司 The trans-regional shared implementation method of electronics license based on routing table
CN110147362A (en) * 2019-04-04 2019-08-20 中电科大数据研究院有限公司 One kind is based on the acquisition of event driven DOC DATA and processing system and its method
CN111488363B (en) * 2020-06-28 2020-10-02 平安国际智慧城市科技股份有限公司 Data processing method, device, electronic equipment and medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050234913A1 (en) * 2002-05-28 2005-10-20 Providian Financial Corporation Method and system for creating and maintaining an index for tracking files relating to people
CN109492004A (en) * 2018-10-29 2019-03-19 广东开放大学(广东理工职业学院) A kind of number fishery isomeric data storage method, system and device
CN110716928A (en) * 2019-09-09 2020-01-21 上海凯京信达科技集团有限公司 Data processing method, device, equipment and storage medium
CN111444263A (en) * 2020-02-17 2020-07-24 江苏荣泽信息科技股份有限公司 Block chain-based electronic license data information sharing system
CN112000825A (en) * 2020-08-25 2020-11-27 浪潮云信息技术股份公司 Method and system for establishing electronic license storage model based on sub-warehouse and sub-table

Also Published As

Publication number Publication date
CN112650865A (en) 2021-04-13
CN112650865B (en) 2021-11-09

Similar Documents

Publication Publication Date Title
Kujala et al. A collection of public transport network data sets for 25 cities
Gallotti et al. The multilayer temporal network of public transport in Great Britain
CA2326805A1 (en) Method and apparatus for deleting data in a database
CN112328706A (en) Dimension modeling calculation method under digital bin system, computer equipment and storage medium
JP2010541037A (en) Method and apparatus for version management of data entities
AU2012217093B2 (en) Method, system and computer program to provide fares detection from rules attributes
CN113254451B (en) Data index construction method and device, electronic equipment and storage medium
KR20150042868A (en) Data maintenance system
US20200364183A1 (en) Device and method for managing ledger data on blockchain
CN104748757B (en) A kind of data in navigation electronic map update method and device
CN110472797A (en) A kind of city bus complex network automatic generating method based on web
CN116166849A (en) Data management method, device, equipment and storage medium
WO2022160373A1 (en) Method and system for solving multi-region certificate data conflict based on flexible rules
CN111242779B (en) Financial data characteristic selection and prediction method, device, equipment and storage medium
Wang et al. Determining the reasonable scale of a toll highway network in China
JP6840062B2 (en) Table-related analysis support device and table-related analysis support method
Ding et al. A data cleaning method on massive spatio-temporal data
CN111639057A (en) Log message processing method and device, computer equipment and storage medium
JPH11272984A (en) Vehicle sharing system preparing vehicle allotting plain in response to return information and vehicle allotting method
JP2001307144A (en) Fingerprint collation/examination system
CN109542900B (en) Data processing method and device
JP2000132437A (en) Management method for master data base generation of clinical examination system
JP5672972B2 (en) Information processing apparatus and information processing system
CN118012847A (en) Meta-model-based data model version management method, device, equipment and medium
CN118606296A (en) Public transport travel ticket card data cleaning and data warehouse building method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21921973

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21921973

Country of ref document: EP

Kind code of ref document: A1