WO2020199596A1 - 基于数据锁的信息采集方法、装置、计算机设备 - Google Patents

基于数据锁的信息采集方法、装置、计算机设备 Download PDF

Info

Publication number
WO2020199596A1
WO2020199596A1 PCT/CN2019/117755 CN2019117755W WO2020199596A1 WO 2020199596 A1 WO2020199596 A1 WO 2020199596A1 CN 2019117755 W CN2019117755 W CN 2019117755W WO 2020199596 A1 WO2020199596 A1 WO 2020199596A1
Authority
WO
WIPO (PCT)
Prior art keywords
product
information
data
data lock
lock
Prior art date
Application number
PCT/CN2019/117755
Other languages
English (en)
French (fr)
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 WO2020199596A1 publication Critical patent/WO2020199596A1/zh

Links

Images

Classifications

    • 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/23Updating
    • G06F16/2308Concurrency control
    • G06F16/2336Pessimistic concurrency control approaches, e.g. locking or multiple versions without time stamps
    • G06F16/2343Locking methods, e.g. distributed locking or locking implementation details
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Definitions

  • This application relates to the field of computer technology, and in particular to a data lock-based information collection method, device, computer equipment and storage medium.
  • the embodiments of the present application provide a data lock-based information collection method, device, computer equipment, and storage medium, aiming to solve the problem of low collection efficiency in the information collection method in the prior art method.
  • the embodiment of the present application provides an information collection method based on a data lock, which includes: if product information input by a user is received, all products in the product information are added according to a preset data lock addition rule. Add data lock; add the product to which the data lock has been added to the preset product database and send collection prompt information to the user to prompt the user whether to collect data information; if the user is received according to the Collect the confirmation information fed back by the prompt information, execute the product in the product database through the preset data information collection program to obtain the corresponding data information and add the tag information to the executed product; if the preset judgment time is reached Click to determine whether all products in the product database meet the preset judgment condition to obtain an abnormal product that does not meet the judgment condition; repair the data lock in the abnormal product according to the preset data lock repair script.
  • an embodiment of the present application provides an information collection device based on a data lock, which includes: a data lock adding unit, configured to, if product information input by a user is received, perform data lock adding rules for all Add a data lock to all products in the product information; a prompt information sending unit is used to add the product to which the data lock has been added to the preset product database and send collection prompt information to the user to prompt the user whether Perform data information collection; a data information collection unit is used to execute the product in the product database through a preset data information collection program if it receives the confirmation information fed back by the user according to the collection prompt information to obtain the corresponding Data information and add mark information to the executed product; the product judgment unit is used to judge whether all the products in the product database meet the preset judgment conditions to obtain the non-compliance if the preset judgment time point is reached The abnormal product of the judgment condition; the data lock repair unit is used to repair the data lock in the abnormal product according to a preset data lock repair script.
  • an embodiment of the present application provides a computer device, which includes a memory, a processor, and a computer program stored on the memory and running on the processor, and the processor executes the computer
  • the program implements the data lock-based information collection method described in the first aspect above.
  • the embodiments of the present application also provide a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the above-mentioned On the one hand, the information collection method based on data lock.
  • the embodiments of the present application provide a data lock-based information collection method, device, computer equipment, and storage medium.
  • the user After the product is added to the product database, the user will be sent a collection prompt information. If the confirmation information from the user is received, the product in the product database will be executed and the data information will be collected. Judge and obtain the abnormal products in the product database that do not meet the judgment conditions and repair the data lock of the abnormal products through the data lock repair script.
  • FIG. 1 is a schematic flowchart of an information collection method based on a data lock provided by an embodiment of the application
  • FIG. 2 is a schematic diagram of a sub-process of a data lock-based information collection method provided by an embodiment of the application;
  • FIG. 3 is a schematic diagram of another sub-process of the data lock-based information collection method provided by an embodiment of the application.
  • FIG. 4 is a schematic diagram of another sub-flow of the data lock-based information collection method provided by an embodiment of the application.
  • FIG. 5 is a schematic diagram of another sub-flow of the data lock-based information collection method provided by an embodiment of the application.
  • FIG. 6 is a schematic block diagram of a data lock-based information collection device provided by an embodiment of the application.
  • FIG. 7 is a schematic block diagram of subunits of the data lock-based information collection device provided by an embodiment of the application.
  • FIG. 8 is a schematic block diagram of another subunit of the data lock-based information collection device provided by an embodiment of the application.
  • FIG. 9 is a schematic block diagram of another subunit of the data lock-based information collection device provided by an embodiment of the application.
  • FIG. 10 is a schematic block diagram of another subunit of the data lock-based information collection device provided by an embodiment of the application.
  • FIG. 11 is a schematic block diagram of a computer device provided by an embodiment of the application.
  • FIG. 1 is a schematic flowchart of a data lock-based information collection method provided by an embodiment of the present application.
  • the data lock-based information collection method is applied to a user terminal.
  • the method is executed by application software installed in the user terminal.
  • the user terminal is a terminal device used to execute the data lock-based information collection method for data information collection , Such as desktop computers, laptops, tablets, or mobile phones.
  • the method includes steps S110 to S150.
  • a data lock is added to all products in the product information according to a preset data lock adding rule.
  • the product information is the information input by the user for executing and collecting corresponding data information.
  • the product information may include one or more products, and each product includes information such as collection address and data type.
  • the data lock adding rule is the rule information for adding product information.
  • the data lock adding rules include data lock configuration rules and parameter initialization rules.
  • step S110 includes sub-steps S111 and S112.
  • a data lock for each product in the product information according to the data lock configuration rule in the data lock adding rule.
  • the data lock configuration rule is the rule information used to configure the data lock in the product
  • the data lock is the identification information configured in the product.
  • Each product that needs to be added to the product database needs to be configured with a data lock. .
  • configuring a data lock in a product means adding the identification information "flag" to the product.
  • S112 Initialize the parameter value of the data lock in the product according to the parameter value initialization rule in the data lock adding rule.
  • the parameter value of the data lock in the product is initialized according to the parameter value initialization rule in the data lock adding rule.
  • a data lock contains a corresponding parameter value.
  • the parameter value can indicate whether the data lock is locked, that is, whether the product corresponding to the data lock is idle or not.
  • the parameter value of the data lock in the added product needs to be initialized through the parameter value initialization rule.
  • S120 Add the product to which the data lock has been added to a preset product database and send collection prompt information to the user to prompt the user whether to collect data information.
  • the product database is a preset database used to store products. Specifically, before adding the product to which the data lock has been added to the product database, the product database may or may not contain any products.
  • step S120a is further included after step S120.
  • S120a If receiving the non-confirmation information fed back by the user according to the collection prompt information, send input prompt information to the user to prompt the user to input new product information.
  • the user can send input prompt information to prompt the user to enter new product information, and the user will follow the received input prompt information Then, new product information can be input to add more products in the product database, and if the new product information input by the user is received, it returns to step S110 for execution.
  • the product in the product database If receiving the confirmation information fed back by the user according to the collection prompt information, execute the product in the product database through a preset data information collection program to obtain corresponding data information and add a mark to the product that has been executed information. After receiving the collection prompt information, the user can give feedback based on the collection prompt information. If the user feeds back confirmation information based on the collection prompt information, the product in the product database is executed through the preset data information collection program to obtain the corresponding data information.
  • the data information collection program is a preset computer program used to execute the product
  • the marking information is the information used to mark whether the product has been executed in the product database.
  • step S130 includes sub-steps S131, S132, S133, and S134.
  • the data lock in the product is not locked, it means that the product has not been executed by any other data information collection program.
  • the product is executed through the data information collection program.
  • the data information corresponding to the product can be obtained, and marking information can be added to the executed product.
  • the marking information can be used to determine whether the product contained in the product database has been executed.
  • the data lock in the product is modified as locked, record the modification time of the data lock.
  • step S132 judges whether the data lock in the product is locked.
  • the judgment time point it is judged whether all products in the product database meet the preset judgment conditions to obtain abnormal products that do not meet the judgment conditions. If the judgment time point contains only one time point, only one judgment is made on the product in the database; if the judgment time point is a periodic judgment, the product in the database is judged periodically according to the cycle .
  • the judgment time point can be a fixed time point or a preset judgment period. If the judgment time point contains only one time point, the product in the database is judged only once; if the judgment time point is the judgment cycle , You can periodically judge the products in the database according to the judgment cycle.
  • the judgment condition is the condition information used to judge the product in the product database. If a product in the product database does not meet the judgment condition, the product is the obtained abnormal product.
  • the preset judgment time point is set to a judgment period with a starting time of 12:00 and an interval of 10 minutes, the product in the product database is judged every 10 minutes from the starting time.
  • step S140 includes sub-steps S141, S142, S143, and S144.
  • the acquisition program is being executed or is being executed. By judging whether the product contains marking information, all products in the product database that do not contain marking information can be obtained.
  • S142 Determine whether the data lock of the product that does not contain the marking information is locked, and obtain the product whose data lock is locked as a non-idle product.
  • the data lock of the product that does not contain the marking information is locked, and the product whose data lock is locked is obtained as a non-idle product. If the product without marking information is in the idle state, it means that the product has not been executed by any data information collection program; if the product without marking information is in the non-idle state, that is, the product is being used by a certain data information. The acquisition program is being executed. By judging whether the data lock in the product is locked, the data lock can be obtained as a locked non-idle product.
  • S143 Determine whether the difference between the current time and the data lock modification time in the non-idle product exceeds the time threshold in the judgment condition.
  • the non-idle product is regarded as an abnormal product that does not meet the judgment condition.
  • the difference between the current time and the modification time of the data lock in a non-idle product that is, the length of time that the non-idle product is executed by the data information collection program. Due to performance or system abnormalities, non-idle products will be affected by data information. The execution time of the collection program is too long, and the data information corresponding to the non-idle product is missed, which affects the timeliness and collection efficiency of data information collection. Therefore, when the duration of the non-idle product being executed by the data information collection program exceeds the time threshold, the corresponding non-idle product needs to be treated as an abnormal product and further processed.
  • the current time is 16:20
  • the modification time of the data lock in a non-idle product is 12:15
  • the time threshold is 4 hours.
  • the difference between the current time and the modification time of the data lock in the non-idle product is 4 If the hour 5 minutes exceeds the time threshold, the non-idle product is regarded as an abnormal product that does not meet the judgment conditions.
  • the data lock in the abnormal product is repaired according to a preset data lock repair script.
  • a script is a computer program language, and also a combination of a series of operations that control the computer to perform arithmetic operations.
  • the data lock in the abnormal product can be repaired through the data lock repair script. After the repair is completed, the abnormal product that has been repaired can be executed again to ensure that each product is executed normally once to avoid missing data information, thereby It ensures the timeliness of data information collection and improves the efficiency of data information collection.
  • the embodiment of the present application also provides an information collection device based on a data lock, which is used to execute any embodiment of the aforementioned data lock-based information collection method.
  • FIG. 6 is a schematic block diagram of a data lock-based information collection device provided by an embodiment of the present application.
  • the data lock-based information collection device can be configured in user terminals such as desktop computers, notebook computers, tablet computers, or mobile phones.
  • the data lock-based information collection device 100 includes a data lock adding unit 110, a prompt information sending unit 120, a data information collection unit 130, a product judgment unit 140, and a data lock repair unit 150.
  • the data lock adding unit 110 is configured to add data locks to all products in the product information according to a preset data lock adding rule if the product information input by the user is received.
  • the data lock adding unit 110 includes sub-units: a data lock configuration unit 111 and a data lock parameter initialization unit 112.
  • the data lock configuration unit 111 is configured to configure data locks for each product in the product information according to the data lock configuration rules in the data lock adding rules; the data lock parameter initialization unit 112 is configured to add data locks according to the data lock
  • the parameter value initialization rule in the rule initializes the parameter value of the data lock in the product.
  • the prompt information sending unit 120 is configured to add the product to which the data lock has been added to a preset product database and send collection prompt information to the user to prompt the user whether to collect data information.
  • the information collection device 100 further includes a sub-unit: an input prompt information sending unit 120a.
  • the input prompt information sending unit 120a is configured to send input prompt information to the user to prompt the user to input new product information if the non-confirmation information fed back by the user according to the collection prompt information is received.
  • the data information collection unit 130 is configured to, if the confirmation information fed back by the user according to the collection prompt information is received, execute the product in the product database through a preset data information collection program to obtain corresponding data information and Add mark information to the finished product.
  • the data information collection unit 130 includes sub-units: a first product acquisition unit 131, a data lock determination unit 132, a product execution unit 133 and a second product acquisition unit 134.
  • the first product obtaining unit 131 is used to obtain the first product in the product database; the data lock judging unit 132 is used to judge whether the data lock in the product is locked; the product execution unit 133 is used to If the data lock in the product is not locked, modify the data lock in the product to be locked and execute the product through the data information collection program to obtain the data information corresponding to the current product and perform all the data information.
  • the product adds mark information; the second product acquisition unit 134 is configured to, if the data lock in the product is locked, acquire the next product in the product database and return to execute the check whether the data lock in the product is The judgment step is locked.
  • the product judging unit 140 is configured to judge whether all products in the product database meet the preset judgment condition to obtain an abnormal product that does not meet the judgment condition if the preset judgment time point is reached.
  • the product judgment unit 140 includes subunits: a mark information judgment unit 141, a non-idle product acquisition unit 142, a modification time judgment unit 143 and an abnormal product acquisition unit 144.
  • the marking information judging unit 141 is used to determine whether all products in the product database contain marking information to obtain products that do not contain marking information; the non-idle product obtaining unit 142 is used to determine whether all products in the product database contain marking information. Whether the data lock is locked is judged to obtain the product whose data lock is locked as a non-idle product; the modification time judging unit 143 is configured to determine whether the difference between the current time and the data lock modification time in the non-idle product is The abnormal product acquisition unit 144 is used for determining if the time threshold in the judgment condition is exceeded; if the difference between the current time and the data lock modification time in the non-idle product exceeds the time threshold, the non-idle product The product is regarded as an abnormal product that does not meet the judgment conditions.
  • the data lock repair unit 150 is configured to repair the data lock in the abnormal product according to a preset data lock repair script.
  • the aforementioned data lock-based information collection device can be implemented in the form of a computer program, and the computer program can be run on the computer device as shown in FIG. 11.
  • FIG. 11 is a schematic block diagram of a computer device according to an embodiment of the present application.
  • the computer device 500 includes a processor 502, a memory, and a network interface 505 connected through a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
  • the non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032.
  • the processor 502 can execute the data lock-based information collection method.
  • the processor 502 is used to provide calculation and control capabilities, and support the operation of the entire computer device 500.
  • the internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503.
  • the processor 502 can execute the data lock-based information collection method.
  • the network interface 505 is used for network communication, such as providing data information transmission.
  • FIG. 11 is only a block diagram of part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device 500 to which the solution of the present application is applied.
  • the specific computer device 500 may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
  • the processor 502 is configured to run a computer program 5032 stored in the memory to implement the data lock-based information collection method in the embodiment of the present application.
  • the embodiment of the computer device shown in FIG. 11 does not constitute a limitation on the specific configuration of the computer device.
  • the computer device may include more or less components than those shown in the figure. Or combine certain components, or different component arrangements.
  • the computer device may only include a memory and a processor. In such embodiments, the structures and functions of the memory and the processor are the same as those of the embodiment shown in FIG. 11, which will not be repeated here.
  • the processor 502 may be a central processing unit (Central Processing Unit, CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (Digital Signal Processors, DSPs), Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor.
  • a computer-readable storage medium may be a non-volatile computer-readable storage medium.
  • the computer-readable storage medium stores a computer program, where the computer program is executed by a processor to implement the data lock-based information collection method in the embodiment of the present application.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
  • the technical solution of this application is essentially or the part that contributes to the existing technology, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product can be stored in a computer.
  • the read storage medium includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the computer-readable storage medium is a tangible, non-transitory storage medium, and the computer-readable storage medium may be an internal storage unit of the aforementioned device, such as a physical storage medium such as a hard disk or a memory of the device.
  • the storage medium may also be an external storage device of the device, such as a plug-in hard disk equipped on the device, a smart memory card (Smart Media Card, SMC), a Secure Digital (SD) card, and a flash memory card. (Flash Card) and other physical storage media.

Landscapes

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

Abstract

基于数据锁的信息采集方法、装置(100)、计算机设备(500)。方法包括:根据预设的数据锁添加规则对用户所输出的产品信息中的所有产品添加数据锁;将已添加数据锁的产品添加至预设的产品数据库中并向用户发送采集提示信息以提示用户是否进行数据信息;若接收到用户所反馈的确认信息,通过预设的数据信息采集程序执行产品数据库中的产品以获取对应的数据信息;若到达预设的判断时间点,判断产品数据库中所有产品是否符合预设的判断条件以得到不符合判断条件的异常产品;根据预设的数据锁修复脚本对异常产品中的数据锁进行修复。

Description

基于数据锁的信息采集方法、装置、计算机设备
本申请要求于2019年04月02日提交中国专利局、申请号为201910263261.5、申请名称为“基于数据锁的信息采集方法、装置、计算机设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及计算机技术领域,尤其涉及一种基于数据锁的信息采集方法、装置、计算机设备及存储介质。
背景技术
企业在使用数据信息采集程序时,会设置多个需进行数据采集的产品,使用数据信息采集程序针对不同的产品分别进行数据信息的采集。为提高数据信息的采集效率,可分别配置多个数据信息采集程序以对多个数据信息采集程序同时执行,为防止多个数据信息采集程序同时执行一个产品,需对数据信息采集征信所执行的产品进行配置。由于大型企业在获取海量数据信息时涉及的产品数量较多,通过手动配置所执行的产品需耗费大量人力,导致数据信息采集的时效性及效率较低。因而,现有的技术方法中存在数据信息采集效率较低的问题。
发明内容
本申请实施例提供了一种基于数据锁的信息采集方法、装置、计算机设备及存储介质,旨在解决现有技术方法中信息采集方法所存在的采集效率较低的问题。
第一方面,本申请实施例提供了一种基于数据锁的信息采集方法,其包括:若接收到用户所输入的产品信息,根据预设的数据锁添加规则对所述产品信息中的所有产品添加数据锁;将已添加数据锁的所述产品添加至预设的产品数据库中并向所述用户发送采集提示信息以提示所述用户是否进行数据信息采集;若接收到所述用户根据所述采集提示信息所反馈的确认信息,通过预设的数据信息采集程序执行所述产品数据库中的产品以获取对应的数据信息并对执行完 毕的所述产品添加标记信息;若到达预设的判断时间点,判断所述产品数据库中所有产品是否符合预设的判断条件以得到不符合所述判断条件的异常产品;根据预设的数据锁修复脚本对所述异常产品中的数据锁进行修复。
第二方面,本申请实施例提供了一种基于数据锁的信息采集装置,其包括:数据锁添加单元,用于若接收到用户所输入的产品信息,根据预设的数据锁添加规则对所述产品信息中的所有产品添加数据锁;提示信息发送单元,用于将已添加数据锁的所述产品添加至预设的产品数据库中并向所述用户发送采集提示信息以提示所述用户是否进行数据信息采集;数据信息采集单元,用于若接收到所述用户根据所述采集提示信息所反馈的确认信息,通过预设的数据信息采集程序执行所述产品数据库中的产品以获取对应的数据信息并对执行完毕的所述产品添加标记信息;产品判断单元,用于若到达预设的判断时间点,判断所述产品数据库中所有产品是否符合预设的判断条件以得到不符合所述判断条件的异常产品;数据锁修复单元,用于根据预设的数据锁修复脚本对所述异常产品中的数据锁进行修复。
第三方面,本申请实施例又提供了一种计算机设备,其包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述第一方面所述的基于数据锁的信息采集方法。
第四方面,本申请实施例还提供了一种计算机可读存储介质,其中所述计算机可读存储介质存储有计算机程序,所述计算机程序当被处理器执行时使所述处理器执行上述第一方面所述的基于数据锁的信息采集方法。
本申请实施例提供了一种基于数据锁的信息采集方法、装置、计算机设备及存储介质。通过数据锁添加规则对产品信息中产品添加数据锁,将产品添加至产品数据库后向用户发送采集提示信息,若接收到用户所反馈的确认信息则执行产品数据库中的产品并采集数据信息,通过判断获取产品数据库中不符合判断条件的异常产品并通过数据锁修复脚本对异常产品的数据锁进行修复。通过上述基于数据锁的信息采集方法,确保每一产品均被执行,能够避免数据信息漏采,提高了数据信息采集的效率,在实际应用过程中取得了良好的技术效果。
附图说明
为了更清楚地说明本申请实施例技术方案,下面将对实施例描述中所需要 使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施例提供的基于数据锁的信息采集方法的流程示意图;
图2为本申请实施例提供的基于数据锁的信息采集方法的子流程示意图;
图3为本申请实施例提供的基于数据锁的信息采集方法的另一子流程示意图;
图4为本申请实施例提供的基于数据锁的信息采集方法的另一子流程示意图;
图5为本申请实施例提供的基于数据锁的信息采集方法的另一子流程示意图;
图6为本申请实施例提供的基于数据锁的信息采集装置的示意性框图;
图7为本申请实施例提供的基于数据锁的信息采集装置的子单元示意性框图;
图8为本申请实施例提供的基于数据锁的信息采集装置的另一子单元示意性框图;
图9为本申请实施例提供的基于数据锁的信息采集装置的另一子单元示意性框图;
图10为本申请实施例提供的基于数据锁的信息采集装置的另一子单元示意性框图;
图11为本申请实施例提供的计算机设备的示意性框图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
应当理解,当在本说明书和所附权利要求书中使用时,术语“包括”和“包含”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。
还应当理解,在此本申请说明书中所使用的术语仅仅是出于描述特定实施 例的目的而并不意在限制本申请。如在本申请说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。
还应当进一步理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。
请参阅图1,图1是本申请实施例提供的基于数据锁的信息采集方法的流程示意图。该基于数据锁的信息采集方法应用于用户终端中,该方法通过安装于用户终端中的应用软件进行执行,用户终端即是用于执行基于数据锁的信息采集方法以进行数据信息采集的终端设备,例如台式电脑、笔记本电脑、平板电脑或手机等。
如图1所示,该方法包括步骤S110~S150。
S110、若接收到用户所输入的产品信息,根据预设的数据锁添加规则对所述产品信息中的所有产品添加数据锁。
若接收到用户所输入的产品信息,根据预设的数据锁添加规则对所述产品信息中的所有产品添加数据锁。具体的,所述产品信息即是用户所输入的用于执行并采集相应数据信息的信息,产品信息中可包含一个或多个产品,每一个产品中均包含采集地址、数据类型等信息。用户输入产品信息后,需通过数据锁添加规则对产品信息中的产品添加数据锁,数据锁添加规则即是对产品信息进行添加的规则信息。其中,数据锁添加规则包括数据锁配置规则及参数初始化规则。
在一实施例中,如图2所示,步骤S110包括子步骤S111和S112。
S111、根据所述数据锁添加规则中的数据锁配置规则对所述产品信息中的每一产品配置数据锁。
根据所述数据锁添加规则中的数据锁配置规则对所述产品信息中的每一产品配置数据锁。为防止同一个产品被多个不同的数据信息采集程序所执行,需在每一个产品中配置数据锁以确保每一个产品只能被一个数据信息采集程序所执行。具体的,数据锁配置规则即是用于在产品中配置数据锁的规则信息,数据锁即是在产品中所配置的一个标识信息,每一个需添加至产品数据库中的产品均需配置数据锁。
例如,在产品中配置数据锁也即是在产品中添加“flag”这一标识信息。
S112、根据所述数据锁添加规则中的参数值初始化规则对所述产品中数据锁的参数值进行初始化。
根据所述数据锁添加规则中的参数值初始化规则对所述产品中数据锁的参数值进行初始化。具体的,一个数据锁中包含一个对应的参数值,参数值即可对数据锁是否锁定进行表示,也即是该数据锁对应的产品是否为空闲进行表示,在将产品添加至产品数据库之前,需通过参数值初始化规则对所添加产品中数据锁的参数值进行初始化。
例如,可将产品中已配置数据锁的参数值初始化为“0”,也即是产品的数据锁中“flag=0”表明该数据锁不为已锁定。
S120、将已添加数据锁的所述产品添加至预设的产品数据库中并向所述用户发送采集提示信息以提示所述用户是否进行数据信息采集。
将已添加数据锁且数据锁中参数值已初始化的产品添加至产品数据库中,并向用户发送是否进行数据信息采集的采集提示信息,以对用户进行提示。其中,产品数据库即是预设的用于对产品进行存储的数据库。具体的,在将已添加数据锁的产品添加至产品数据库之前,产品数据库中可能已包含产品,也可能不包含任何产品。
在一实施例中,如图5所示,步骤S120之后还包括步骤S120a。
S120a、若接收到所述用户根据所述采集提示信息所反馈的非确认信息,向所述用户发送输入提示信息以提示所述用户输入新的产品信息。
若用户所反馈的信息为非确认信息,表明用户还需在产品数据库中添加更多产品,则可向用户发送输入提示信息以提示用户输入新的产品信息,用户根据所接收到的输入提示信息则可输入新的产品信息以在产品数据库中添加更多产品,若接收到用户所输入的新的产品信息,则返回至步骤S110进行执行。
S130、若接收到所述用户根据所述采集提示信息所反馈的确认信息,通过预设的数据信息采集程序执行所述产品数据库中的产品以获取对应的数据信息并对执行完毕的所述产品添加标记信息。
若接收到所述用户根据所述采集提示信息所反馈的确认信息,通过预设的数据信息采集程序执行所述产品数据库中的产品以获取对应的数据信息并对执行完毕的所述产品添加标记信息。用户接收到采集提示信息后,即可根据采集提示信息进行反馈,若用户根据采集提示信息反馈确认信息,则通过预设的数据信息采集程序执行产品数据库中的产品以获取对应的数据信息。其中,数据 信息采集程序即是预设的用于对产品进行执行的计算机程序,标记信息即是用于对产品数据库中产品是否已完成执行进行标记的信息。
在一实施例中,如图3所示,步骤S130包括子步骤S131、S132、S133和S134。
S131、获取所述产品数据库中的第一个产品。
S132、对所述产品中数据锁是否为已锁定进行判断。
对所述产品中数据锁是否为已锁定进行判断。对所获取的产品中数据锁是否为已锁定进行判断,也即是判断数据锁中“flag”这一标识信息的参数值是否为“0”,若数据锁中“flag=0”,判断得到该数据锁不为已锁定,也即是该数据锁对应的产品为空闲状态;若数据锁中“flag=1”,则表明该数据锁对应的产品正在被其他数据信息采集程序所执行,判断得到该数据锁为已锁定。
S133、若所述产品中数据锁不为已锁定,将所述产品中数据锁修改为已锁定并通过所述数据信息采集程序执行所述产品以获取与当前产品对应的数据信息并对执行完毕的所述产品添加标记信息。
若所述产品中数据锁不为已锁定,则表明该产品并未被其他任意一个数据信息采集程序所执行,将该产品中数据锁修改为已锁定后,通过数据信息采集程序执行该产品即可获取该产品对应的数据信息,并对执行完毕的所述产品添加标记信息,通过标记信息即可对产品数据库中所包含的产品是否已执行完毕进行判断。将所述产品中数据锁修改为已锁定并记录所述数据锁的修改时间;通过所述数据信息采集程序执行所述产品以获取与当前产品对应的数据信息并对执行完毕的所述产品添加标记信息。在产品中数据锁修改为已锁定时,记录该数据锁的修改时间。
S134、若所述产品中数据锁为已锁定,获取所述产品数据库中的下一个产品并返回执行所述对所述产品中数据锁是否为已锁定进行判断的步骤。
若所述产品中数据锁为已锁定,获取所述产品数据库中的下一个产品并返回执行所述对所述产品中数据锁是否为已锁定进行判断的步骤。若产品中数据锁为已锁定,则表明该数据锁对应的产品正在被其他数据信息采集程序所执行,该产品为非空闲状态,则可获取产品数据库中的下一个产品并返回至步骤S132以对该产品中数据锁是否锁定进行判断。
S140、若到达预设的判断时间点,判断所述产品数据库中所有产品是否符合预设的判断条件以得到不符合所述判断条件的异常产品。
若到达预设的判断时间点,判断所述产品数据库中所有产品是否符合预设的判断条件以得到不符合所述判断条件的异常产品。若所述判断时间点中仅包含一个时间点,仅对所述数据库中的产品进行一次判断;若所述判断时间点为周期判断,根据所述周期对所述数据库中的产品进行周期性判断。具体的,判断时间点可为固定设置的一个时间点或预设的判断周期,若判断时间点中仅包含一个时间点,则仅对数据库中的产品进行一次判断;若判断时间点为判断周期,则可根据判断周期对数据库中的产品进行周期性判断。其中,判断条件即是用于对产品数据库中产品进行判断的条件信息,若产品数据库中某一产品不符合判断条件,则该产品即为所得到的异常产品。
例如,预设的判断时间点设置为起始时间12:00、间隔时间10分钟的判断周期,则在从起始时间开始每间隔10分钟对产品数据库中产品进行一次判断。
在一实施例中,如图4所示,步骤S140包括子步骤S141、S142、S143和S144。
S141、对所述产品数据库中所有产品是否包含标记信息进行判断以获取不包含标记信息的产品。
对所述产品数据库中所有产品是否包含标记信息进行判断以获取不包含标记信息的产品。若产品数据库中某一产品包含标记信息,则表明该产品已被执行完毕;若某一产品不包含标记信息,则表明该产品未被执行完毕,也即是该产品还未被任一数据信息采集程序所执行或正在被执行中。通过对产品是否包含标记信息进行判断即可获取产品数据库中所有不包含标记信息的产品。
S142、对不包含标记信息的所述产品的数据锁是否为已锁定进行判断以获取数据锁为已锁定的产品作为非空闲产品。
对不包含标记信息的所述产品的数据锁是否为已锁定进行判断以获取数据锁为已锁定的产品作为非空闲产品。若不包含标记信息的产品为空闲状态,则表明该产品还未被任一数据信息采集程序所执行;若不包含标记信息的产品为非空闲状态,也即是该产品正在被某一数据信息采集程序进行执行中。通过对产品中数据锁是否为锁定进行判断,即可获取数据锁为已锁定的非空闲产品。
例如,数据锁中“flag=1”表明该数据锁已锁定,则可对应获取数据锁为已锁定的非空闲产品。
S143、对当前时间与所述非空闲产品中数据锁修改时间之间的差值是否超出所述判断条件中的时间阈值进行判断。
对当前时间与所述非空闲产品中数据锁的修改时间之间的差值是否超出所述判断条件中的时间阈值进行判断。在数据锁被修改时,数据锁的修改时间被记录在该数据锁中,即可对当前时间与数据锁修改时间之间的差值是否超出时间阈值进行判断,其中,时间阈值可由用户进行预先设置。
S144、若当前时间与所述非空闲产品中数据锁修改时间之间的差值超出所述时间阈值,将所述非空闲产品作为不符合所述判断条件的异常产品。
若当前时间与所述非空闲产品中数据锁的修改时间之间的差值超出所述时间阈值,将该非空闲产品作为不符合所述判断条件的异常产品。当前时间与某一非空闲产品中数据锁的修改时间之间的差值,也即是该非空闲产品被数据信息采集程序所执行的时长,因性能或系统异常会导致非空闲产品被数据信息采集程序所执行的时长过长,进而使该非空闲产品所对应的数据信息被漏采,影响了数据信息采集的时效性及采集效率。因此在非空闲产品被数据信息采集程序所执行的时长超出时间阈值时,需将相应的非空闲产品作为异常产品并进行进一步处理。
例如,当前时间为16:20,某一非空闲产品中数据锁的修改时间为12:15,时间阈值为4小时,当前时间与该非空闲产品中数据锁修改时间之间的差值为4小时5分超出了时间阈值,则该非空闲产品作为不符合判断条件的异常产品。
S150、根据预设的数据锁修复脚本对所述异常产品中的数据锁进行修复。
根据预设的数据锁修复脚本对所述异常产品中的数据锁进行修复。具体的,脚本是一种计算机程序语言,也是一系列控制计算机进行运算操作动作的组合。通过数据锁修复脚本即可对异常产品中的数据锁进行修复,完成修复后即可再次对已完成修复的异常产品进行执行,确保每一产品均被正常执行一次,避免数据信息漏采,从而确保了数据信息采集的时效性,提高了数据信息的采集效率。
例如,通过数据锁修复脚本将异常产品的数据锁“flag=1”修改为“flag=0”,即完成对该异常产品中的数据锁进行修复。
通过数据锁添加规则对产品信息中产品添加数据锁,将产品添加至产品数据库后向用户发送采集提示信息,若接收到用户所反馈的确认信息则执行产品数据库中的产品并采集数据信息,通过判断获取产品数据库中不符合判断条件的异常产品并通过数据锁修复脚本对异常产品的数据锁进行修复。通过上述基于数据锁的信息采集方法,确保每一产品均被执行,能够避免数据信息漏采, 提高了数据信息采集的效率,在实际应用过程中取得了良好的技术效果。
本申请实施例还提供一种基于数据锁的信息采集装置,该基于数据锁的信息采集装置用于执行前述基于数据锁的信息采集方法的任一实施例。具体地,请参阅图6,图6是本申请实施例提供的基于数据锁的信息采集装置的示意性框图。该基于数据锁的信息采集装置可以配置于台式电脑、笔记本电脑、平板电脑或手机等用户终端中。
如图6所示,基于数据锁的信息采集装置100包括数据锁添加单元110、提示信息发送单元120、数据信息采集单元130、产品判断单元140和数据锁修复单元150。
数据锁添加单元110,用于若接收到用户所输入的产品信息,根据预设的数据锁添加规则对所述产品信息中的所有产品添加数据锁。
其他申请实施例中,如图7所示,所述数据锁添加单元110包括子单元:数据锁配置单元111和数据锁参数初始化单元112。
数据锁配置单元111,用于根据所述数据锁添加规则中的数据锁配置规则对所述产品信息中的每一产品配置数据锁;数据锁参数初始化单元112,用于根据所述数据锁添加规则中的参数值初始化规则对所述产品中数据锁的参数值进行初始化。
提示信息发送单元120,用于将已添加数据锁的所述产品添加至预设的产品数据库中并向所述用户发送采集提示信息以提示所述用户是否进行数据信息采集。
其他申请实施例中,如图10所示,所述信息采集装置100还包括子单元:输入提示信息发送单元120a。
输入提示信息发送单元120a,用于若接收到所述用户根据所述采集提示信息所反馈的非确认信息,向所述用户发送输入提示信息以提示所述用户输入新的产品信息。
数据信息采集单元130,用于若接收到所述用户根据所述采集提示信息所反馈的确认信息,通过预设的数据信息采集程序执行所述产品数据库中的产品以获取对应的数据信息并对执行完毕的所述产品添加标记信息。
其他申请实施例中,如图8所示,所述数据信息采集单元130包括子单元:第一产品获取单元131、数据锁判断单元132、产品执行单元133和第二产品获取单元134。
第一产品获取单元131,用于获取所述产品数据库中的第一个产品;数据锁判断单元132,用于对所述产品中数据锁是否为已锁定进行判断;产品执行单元133,用于若所述产品中数据锁不为已锁定,将所述产品中数据锁修改为已锁定并通过所述数据信息采集程序执行所述产品以获取与当前产品对应的数据信息并对执行完毕的所述产品添加标记信息;第二产品获取单元134,用于若所述产品中数据锁为已锁定,获取所述产品数据库中的下一个产品并返回执行所述对所述产品中数据锁是否为已锁定进行判断的步骤。
产品判断单元140,用于若到达预设的判断时间点,判断所述产品数据库中所有产品是否符合预设的判断条件以得到不符合所述判断条件的异常产品。
其他申请实施例中,如图9所示,所述产品判断单元140包括子单元:标记信息判断单元141、非空闲产品获取单元142、修改时间判断单元143和异常产品获取单元144。
标记信息判断单元141,用于对所述产品数据库中所有产品是否包含标记信息进行判断以获取不包含标记信息的产品;非空闲产品获取单元142,用于对不包含标记信息的所述产品的数据锁是否为已锁定进行判断以获取数据锁为已锁定的产品作为非空闲产品;修改时间判断单元143,用于对当前时间与所述非空闲产品中数据锁修改时间之间的差值是否超出所述判断条件中的时间阈值进行判断;异常产品获取单元144,用于若当前时间与所述非空闲产品中数据锁修改时间之间的差值超出所述时间阈值,将所述非空闲产品作为不符合所述判断条件的异常产品。
数据锁修复单元150,用于根据预设的数据锁修复脚本对所述异常产品中的数据锁进行修复。
通过数据锁添加规则对产品信息中产品添加数据锁,将产品添加至产品数据库后向用户发送采集提示信息,若接收到用户所反馈的确认信息则执行产品数据库中的产品并采集数据信息,通过判断获取产品数据库中不符合判断条件的异常产品并通过数据锁修复脚本对异常产品的数据锁进行修复。通过上述基于数据锁的信息采集方法,确保每一产品均被执行,能够避免数据信息漏采,提高了数据信息采集的效率,在实际应用过程中取得了良好的技术效果。
上述基于数据锁的信息采集装置可以实现为计算机程序的形式,该计算机程序可以在如图11所示的计算机设备上运行。
请参阅图11,图11是本申请实施例提供的计算机设备的示意性框图。
参阅图11,该计算机设备500包括通过系统总线501连接的处理器502、存储器和网络接口505,其中,存储器可以包括非易失性存储介质503和内存储器504。
该非易失性存储介质503可存储操作系统5031和计算机程序5032。该计算机程序5032被执行时,可使得处理器502执行基于数据锁的信息采集方法。该处理器502用于提供计算和控制能力,支撑整个计算机设备500的运行。该内存储器504为非易失性存储介质503中的计算机程序5032的运行提供环境,该计算机程序5032被处理器502执行时,可使得处理器502执行基于数据锁的信息采集方法。该网络接口505用于进行网络通信,如提供数据信息的传输等。本领域技术人员可以理解,图11中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备500的限定,具体的计算机设备500可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。
其中,所述处理器502用于运行存储在存储器中的计算机程序5032,以实现本申请实施例的基于数据锁的信息采集方法。
本领域技术人员可以理解,图11中示出的计算机设备的实施例并不构成对计算机设备具体构成的限定,在其他实施例中,计算机设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。例如,在一些实施例中,计算机设备可以仅包括存储器及处理器,在这样的实施例中,存储器及处理器的结构及功能与图11所示实施例一致,在此不再赘述。
应当理解,在本申请实施例中,处理器502可以是中央处理单元(Central Processing Unit,CPU),该处理器502还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。其中,通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
在本申请的另一实施例中提供计算机可读存储介质。该计算机可读存储介质可以为非易失性的计算机可读存储介质。该计算机可读存储介质存储有计算机程序,其中计算机程序被处理器执行时实现本申请实施例的基于数据锁的信息采集方法。
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描 述的设备、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分,或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个计算机可读存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。所述计算机可读存储介质为实体的、非瞬时性的存储介质,所述计算机可读存储介质可以是前述设备的内部存储单元,例如设备的硬盘或内存等实体存储介质。所述存储介质也可以是所述设备的外部存储设备,例如所述设备上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等实体存储介质。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。

Claims (20)

  1. 一种基于数据锁的信息采集方法,包括:
    若接收到用户所输入的产品信息,根据预设的数据锁添加规则对所述产品信息中的所有产品添加数据锁;
    将已添加数据锁的所述产品添加至预设的产品数据库中并向所述用户发送采集提示信息以提示所述用户是否进行数据信息采集;
    若接收到所述用户根据所述采集提示信息所反馈的确认信息,通过预设的数据信息采集程序执行所述产品数据库中的产品以获取对应的数据信息并对执行完毕的所述产品添加标记信息;
    若到达预设的判断时间点,判断所述产品数据库中所有产品是否符合预设的判断条件以得到不符合所述判断条件的异常产品;
    根据预设的数据锁修复脚本对所述异常产品中的数据锁进行修复。
  2. 根据权利要求1所述的基于数据锁的信息采集方法,其中,所述根据预设的数据锁添加规则对所述产品信息中的所有产品配置数据锁,包括:
    根据所述数据锁添加规则中的数据锁配置规则对所述产品信息中的每一产品配置数据锁;
    根据所述数据锁添加规则中的参数值初始化规则对所述产品中数据锁的参数值进行初始化。
  3. 根据权利要求1所述的基于数据锁的信息采集方法,其中,所述通过预设的数据信息采集程序执行所述产品数据库中的产品以获取对应的数据信息并对执行完毕的所述产品添加标记信息,包括:
    获取所述产品数据库中的第一个产品;
    对所述产品中数据锁是否为已锁定进行判断;
    若所述产品中数据锁不为已锁定,将所述产品中数据锁修改为已锁定并通过所述数据信息采集程序执行所述产品以获取与当前产品对应的数据信息并对执行完毕的所述产品添加标记信息;
    若所述产品中数据锁为已锁定,获取所述产品数据库中的下一个产品并返回执行所述对所述产品中数据锁是否为已锁定进行判断的步骤。
  4. 根据权利要求1所述的基于数据锁的信息采集方法,其中,所述判断所述 产品数据库中所有产品是否符合预设的判断条件以得到不符合所述判断条件的异常产品,包括:
    对所述产品数据库中所有产品是否包含标记信息进行判断以获取不包含标记信息的产品;
    对不包含标记信息的所述产品的数据锁是否为已锁定进行判断以获取数据锁为已锁定的产品作为非空闲产品;
    对当前时间与所述非空闲产品中数据锁修改时间之间的差值是否超出所述判断条件中的时间阈值进行判断;
    若当前时间与所述非空闲产品中数据锁修改时间之间的差值超出所述时间阈值,将所述非空闲产品作为不符合所述判断条件的异常产品。
  5. 根据权利要求1所述的基于数据锁的信息采集方法,其中,所述将已添加数据锁的所述产品添加至预设的产品数据库中并向所述用户发送采集提示信息以提示所述用户是否进行数据信息采集之后,还包括:
    若接收到所述用户根据所述采集提示信息所反馈的非确认信息,向所述用户发送输入提示信息以提示所述用户输入新的产品信息。
  6. 根据权利要求3所述的基于数据锁的信息采集方法,其中,所述将所述产品中数据锁修改为已锁定并通过所述数据信息采集程序执行所述产品以获取与当前产品对应的数据信息并对执行完毕的所述产品添加标记信息,包括:
    将所述产品中数据锁修改为已锁定并记录所述数据锁的修改时间;
    通过所述数据信息采集程序执行所述产品以获取与当前产品对应的数据信息并对执行完毕的所述产品添加标记信息。
  7. 根据权利要求1所述的基于数据锁的信息采集方法,其中,所述若到达预设的判断时间点,判断所述产品数据库中所有产品是否符合预设的判断条件以得到不符合所述判断条件的异常产品,包括:
    若所述判断时间点中仅包含一个时间点,仅对所述数据库中的产品进行一次判断;
    若所述判断时间点为周期判断,根据所述周期对所述数据库中的产品进行周期性判断。
  8. 一种基于数据锁的信息采集装置,包括:
    数据锁添加单元,用于若接收到用户所输入的产品信息,根据预设的数据锁添加规则对所述产品信息中的所有产品添加数据锁;
    提示信息发送单元,用于将已添加数据锁的所述产品添加至预设的产品数据库中并向所述用户发送采集提示信息以提示所述用户是否进行数据信息采集;
    数据信息采集单元,用于若接收到所述用户根据所述采集提示信息所反馈的确认信息,通过预设的数据信息采集程序执行所述产品数据库中的产品以获取对应的数据信息并对执行完毕的所述产品添加标记信息;
    产品判断单元,用于若到达预设的判断时间点,判断所述产品数据库中所有产品是否符合预设的判断条件以得到不符合所述判断条件的异常产品;
    数据锁修复单元,用于根据预设的数据锁修复脚本对所述异常产品中的数据锁进行修复。
  9. 根据权利要求8所述的基于数据锁的信息采集装置,其中,所述数据锁添加单元,包括:
    数据锁配置单元,用于根据所述数据锁添加规则中的数据锁配置规则对所述产品信息中的每一产品配置数据锁;
    数据锁参数初始化单元,用于根据所述数据锁添加规则中的参数值初始化规则对所述产品中数据锁的参数值进行初始化。
  10. 根据权利要求8所述的基于数据锁的信息采集装置,其中,所述数据信息采集单元,包括:
    第一产品获取单元,用于获取所述产品数据库中的第一个产品;
    数据锁判断单元,用于对所述产品中数据锁是否为已锁定进行判断;
    产品执行单元,用于若所述产品中数据锁不为已锁定,将所述产品中数据锁修改为已锁定并通过所述数据信息采集程序执行所述产品以获取与当前产品对应的数据信息并对执行完毕的所述产品添加标记信息;
    第二产品获取单元,用于若所述产品中数据锁为已锁定,获取所述产品数据库中的下一个产品并返回执行所述对所述产品中数据锁是否为已锁定进行判断的步骤。
  11. 一种计算机设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,其中,所述处理器执行所述计算机程序时实现以下步骤:
    若接收到用户所输入的产品信息,根据预设的数据锁添加规则对所述产品信息中的所有产品添加数据锁;
    将已添加数据锁的所述产品添加至预设的产品数据库中并向所述用户发送 采集提示信息以提示所述用户是否进行数据信息采集;
    若接收到所述用户根据所述采集提示信息所反馈的确认信息,通过预设的数据信息采集程序执行所述产品数据库中的产品以获取对应的数据信息并对执行完毕的所述产品添加标记信息;
    若到达预设的判断时间点,判断所述产品数据库中所有产品是否符合预设的判断条件以得到不符合所述判断条件的异常产品;
    根据预设的数据锁修复脚本对所述异常产品中的数据锁进行修复。
  12. 根据权利要求11所述的计算机设备,其中,所述根据预设的数据锁添加规则对所述产品信息中的所有产品配置数据锁,包括:
    根据所述数据锁添加规则中的数据锁配置规则对所述产品信息中的每一产品配置数据锁;
    根据所述数据锁添加规则中的参数值初始化规则对所述产品中数据锁的参数值进行初始化。
  13. 根据权利要求11所述的计算机设备,其中,所述通过预设的数据信息采集程序执行所述产品数据库中的产品以获取对应的数据信息并对执行完毕的所述产品添加标记信息,包括:
    获取所述产品数据库中的第一个产品;
    对所述产品中数据锁是否为已锁定进行判断;
    若所述产品中数据锁不为已锁定,将所述产品中数据锁修改为已锁定并通过所述数据信息采集程序执行所述产品以获取与当前产品对应的数据信息并对执行完毕的所述产品添加标记信息;
    若所述产品中数据锁为已锁定,获取所述产品数据库中的下一个产品并返回执行所述对所述产品中数据锁是否为已锁定进行判断的步骤。
  14. 根据权利要求11所述的计算机设备,其中,所述判断所述产品数据库中所有产品是否符合预设的判断条件以得到不符合所述判断条件的异常产品,包括:
    对所述产品数据库中所有产品是否包含标记信息进行判断以获取不包含标记信息的产品;
    对不包含标记信息的所述产品的数据锁是否为已锁定进行判断以获取数据锁为已锁定的产品作为非空闲产品;
    对当前时间与所述非空闲产品中数据锁修改时间之间的差值是否超出所述 判断条件中的时间阈值进行判断;
    若当前时间与所述非空闲产品中数据锁修改时间之间的差值超出所述时间阈值,将所述非空闲产品作为不符合所述判断条件的异常产品。
  15. 根据权利要求11所述的计算机设备,其中,所述将已添加数据锁的所述产品添加至预设的产品数据库中并向所述用户发送采集提示信息以提示所述用户是否进行数据信息采集之后,还包括:
    若接收到所述用户根据所述采集提示信息所反馈的非确认信息,向所述用户发送输入提示信息以提示所述用户输入新的产品信息。
  16. 根据权利要求13所述的基于数据锁的信息采集方法,其中,所述将所述产品中数据锁修改为已锁定并通过所述数据信息采集程序执行所述产品以获取与当前产品对应的数据信息并对执行完毕的所述产品添加标记信息,包括:
    将所述产品中数据锁修改为已锁定并记录所述数据锁的修改时间;
    通过所述数据信息采集程序执行所述产品以获取与当前产品对应的数据信息并对执行完毕的所述产品添加标记信息。
  17. 根据权利要求11所述的基于数据锁的信息采集方法,其中,所述若到达预设的判断时间点,判断所述产品数据库中所有产品是否符合预设的判断条件以得到不符合所述判断条件的异常产品,包括:
    若所述判断时间点中仅包含一个时间点,仅对所述数据库中的产品进行一次判断;
    若所述判断时间点为周期判断,根据所述周期对所述数据库中的产品进行周期性判断。
  18. 一种计算机可读存储介质,其中,所述计算机可读存储介质存储有计算机程序,所述计算机程序当被处理器执行时使所述处理器执行以下操作:
    若接收到用户所输入的产品信息,根据预设的数据锁添加规则对所述产品信息中的所有产品添加数据锁;
    将已添加数据锁的所述产品添加至预设的产品数据库中并向所述用户发送采集提示信息以提示所述用户是否进行数据信息采集;
    若接收到所述用户根据所述采集提示信息所反馈的确认信息,通过预设的数据信息采集程序执行所述产品数据库中的产品以获取对应的数据信息并对执行完毕的所述产品添加标记信息;
    若到达预设的判断时间点,判断所述产品数据库中所有产品是否符合预设 的判断条件以得到不符合所述判断条件的异常产品;
    根据预设的数据锁修复脚本对所述异常产品中的数据锁进行修复。
  19. 根据权利要求18所述的计算机可读存储介质,其中,所述根据预设的数据锁添加规则对所述产品信息中的所有产品配置数据锁,包括:
    根据所述数据锁添加规则中的数据锁配置规则对所述产品信息中的每一产品配置数据锁;
    根据所述数据锁添加规则中的参数值初始化规则对所述产品中数据锁的参数值进行初始化。
  20. 根据权利要求18所述的计算机可读存储介质,其中,所述通过预设的数据信息采集程序执行所述产品数据库中的产品以获取对应的数据信息并对执行完毕的所述产品添加标记信息,包括:
    获取所述产品数据库中的第一个产品;
    对所述产品中数据锁是否为已锁定进行判断;
    若所述产品中数据锁不为已锁定,将所述产品中数据锁修改为已锁定并通过所述数据信息采集程序执行所述产品以获取与当前产品对应的数据信息并对执行完毕的所述产品添加标记信息;
    若所述产品中数据锁为已锁定,获取所述产品数据库中的下一个产品并返回执行所述对所述产品中数据锁是否为已锁定进行判断的步骤。
PCT/CN2019/117755 2019-04-02 2019-11-13 基于数据锁的信息采集方法、装置、计算机设备 WO2020199596A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910263261.5A CN110147379B (zh) 2019-04-02 2019-04-02 基于数据锁的信息采集方法、装置、计算机设备
CN201910263261.5 2019-04-02

Publications (1)

Publication Number Publication Date
WO2020199596A1 true WO2020199596A1 (zh) 2020-10-08

Family

ID=67589436

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/117755 WO2020199596A1 (zh) 2019-04-02 2019-11-13 基于数据锁的信息采集方法、装置、计算机设备

Country Status (2)

Country Link
CN (1) CN110147379B (zh)
WO (1) WO2020199596A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110147379B (zh) * 2019-04-02 2023-06-30 平安科技(深圳)有限公司 基于数据锁的信息采集方法、装置、计算机设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080082534A1 (en) * 2006-09-28 2008-04-03 Sven-Eric Eigmeann Method and system for providing locking behavior
CN105138587A (zh) * 2015-07-31 2015-12-09 小米科技有限责任公司 数据访问方法、装置和系统
CN106202462A (zh) * 2016-07-15 2016-12-07 北京奇虎科技有限公司 为数据配置数据锁的方法及装置
CN108491301A (zh) * 2018-02-01 2018-09-04 平安科技(深圳)有限公司 电子装置、基于redis的异常预警方法及存储介质
CN110147379A (zh) * 2019-04-02 2019-08-20 平安科技(深圳)有限公司 基于数据锁的信息采集方法、装置、计算机设备

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8751532B2 (en) * 2006-05-11 2014-06-10 International Business Machines Corporation Nomadic data collection and management method including pessimistic locking of data
CN105631006B (zh) * 2015-12-28 2019-03-29 杭州东方通信软件技术有限公司 一种数据调度采集装置与方法
JP6471705B2 (ja) * 2016-01-29 2019-02-20 オムロン株式会社 信号処理装置、信号処理装置の制御方法、情報処理プログラム、および記録媒体
CN107193857B (zh) * 2016-03-15 2021-01-01 阿里巴巴集团控股有限公司 一种用于数据库遍历的方法与设备
CN107977376B (zh) * 2016-10-24 2020-07-07 腾讯科技(深圳)有限公司 分布式数据库系统及事务处理方法
CN107633056B (zh) * 2017-09-19 2020-12-22 威胜信息技术股份有限公司 用于用电信息采集终端的数据管理方法
CN109284194B (zh) * 2018-08-16 2024-05-24 平安科技(深圳)有限公司 数据采集方法、征信主体设备、计算机设备及存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080082534A1 (en) * 2006-09-28 2008-04-03 Sven-Eric Eigmeann Method and system for providing locking behavior
CN105138587A (zh) * 2015-07-31 2015-12-09 小米科技有限责任公司 数据访问方法、装置和系统
CN106202462A (zh) * 2016-07-15 2016-12-07 北京奇虎科技有限公司 为数据配置数据锁的方法及装置
CN108491301A (zh) * 2018-02-01 2018-09-04 平安科技(深圳)有限公司 电子装置、基于redis的异常预警方法及存储介质
CN110147379A (zh) * 2019-04-02 2019-08-20 平安科技(深圳)有限公司 基于数据锁的信息采集方法、装置、计算机设备

Also Published As

Publication number Publication date
CN110147379A (zh) 2019-08-20
CN110147379B (zh) 2023-06-30

Similar Documents

Publication Publication Date Title
US11416456B2 (en) Method, apparatus, and computer program product for data quality analysis
US9686152B2 (en) Techniques for tracking resource usage statistics per transaction across multiple layers of protocols
CN108665239B (zh) 工作流处理方法、装置、计算机设备及存储介质
CN110830577B (zh) 服务请求调用追踪方法、装置、计算机设备及存储介质
CN111045933A (zh) 一种回归策略更新方法、装置、存储介质及终端设备
WO2021120975A1 (zh) 一种监控方法及装置
CN110430280B (zh) 账号自动登录方法及系统、存储介质及云桌面服务器
CN108491304B (zh) 电子装置、业务系统风险控制方法及存储介质
WO2020173136A1 (zh) 应用系统的监控方法、装置、设备及存储介质
CN110990233A (zh) 一种利用甘特图展示soar的方法和系统
CN111581005B (zh) 终端修复方法、终端和存储介质
CN109145651B (zh) 一种数据处理方法及装置
CN112035472A (zh) 数据处理方法、装置、计算机设备和存储介质
CN111177113A (zh) 数据迁移方法、装置、计算机设备和存储介质
WO2019144459A1 (zh) 任务流转控制方法、装置、设备及计算机可读存储介质
WO2020199596A1 (zh) 基于数据锁的信息采集方法、装置、计算机设备
WO2021139355A1 (zh) 用于数据采集的内存操作系统的启动方法及装置
WO2021139113A1 (zh) 交易信息的加签方法、装置、计算机设备和存储介质
CN111813518A (zh) 机器人预警方法、装置、计算机设备及存储介质
CN114185804A (zh) 一种接口测试方法、装置及终端设备
CN115756309A (zh) 电池管理设备参数存储方法、电池管理设备、储能系统
WO2021072866A1 (zh) 信息验证方法、装置、计算机设备及存储介质
JP2013210891A (ja) アプリケーション検査装置
CN111563250A (zh) 权限管理方法、装置、计算机设备和存储介质
CN111858279A (zh) 浏览器用户行为追踪方法及装置

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: 19923355

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: 19923355

Country of ref document: EP

Kind code of ref document: A1