WO2022105494A1 - 数据自动回填方法、装置、电子设备及计算机存储介质 - Google Patents

数据自动回填方法、装置、电子设备及计算机存储介质 Download PDF

Info

Publication number
WO2022105494A1
WO2022105494A1 PCT/CN2021/123897 CN2021123897W WO2022105494A1 WO 2022105494 A1 WO2022105494 A1 WO 2022105494A1 CN 2021123897 W CN2021123897 W CN 2021123897W WO 2022105494 A1 WO2022105494 A1 WO 2022105494A1
Authority
WO
WIPO (PCT)
Prior art keywords
interface
data
standard
type
standard interface
Prior art date
Application number
PCT/CN2021/123897
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 WO2022105494A1 publication Critical patent/WO2022105494A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/174Form filling; Merging

Definitions

  • the present application relates to the technical field of artificial intelligence and big data technology, and in particular, to a method, device, electronic device and computer storage medium for automatic data backfilling.
  • Data backfilling refers to displaying data in a data frame provided by a specific field or list. As the scale of data continues to expand, automatic backfilling of data becomes especially important.
  • the traditional data backfilling methods include: 1. Automatic data backfilling through third-party data backfilling components. 2. Use the interface to call the data and enter the data manually.
  • the automatic data backfilling using the backfilling component has low flexibility and is difficult to maintain. 2.
  • the efficiency of manual data entry is low, and as the amount of data increases, more and more interfaces are called, and the error rate of data backfilling is high. 3. It is not supported to judge whether to backfill or give corresponding prompts according to the returned results. 4. It is not supported to display the data that needs to be backfilled on a specific page.
  • a data automatic backfill method provided by this application includes:
  • the data is backfilled into the data list or field according to the data call script.
  • the application also provides a data automatic backfilling device, the device includes:
  • an interface selection module configured to obtain an interface type set and a preset standard interface set, select an interface type from the interface type set, and obtain a corresponding standard interface from the standard interface set according to the interface type;
  • a script generation module configured to generate a data calling script by using the interface type and the standard interface, and set the fields or list data to be backfilled in the standard interface
  • an interface calling module configured to obtain the corresponding interface protocol by using the standard interface, call the interface to be called according to the interface protocol and the data calling script, and obtain data according to the interface to be called;
  • a data backfilling module configured to call a script according to the data to backfill the data into the data list or field.
  • the present application also provides an electronic device, the electronic device comprising:
  • a processor that executes the instructions stored in the memory to achieve the following steps:
  • the data is backfilled into the data list or field according to the data call script.
  • the present application also provides a computer-readable storage medium, where the computer-readable storage medium stores at least one instruction, and the at least one instruction is executed by a processor in an electronic device to implement the following steps:
  • the data is backfilled into the data list or field according to the data call script.
  • FIG. 1 is a schematic flowchart of a method for automatic data backfilling provided by an embodiment of the present application
  • Fig. 2 is a detailed implementation flow diagram of one of the steps in Fig. 1;
  • Fig. 3 is the detailed implementation flow schematic diagram of another step in Fig. 1;
  • Fig. 4 is the detailed implementation flow schematic diagram of another step in Fig. 1;
  • Fig. 5 is the detailed implementation flow schematic diagram of another step in Fig. 1;
  • FIG. 6 is a functional block diagram of an apparatus for automatic data backfilling provided by an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of an electronic device for implementing the automatic data backfilling method according to an embodiment of the present application.
  • the embodiment of the present application provides a method for automatic data backfilling.
  • the execution body of the automatic data backfill method includes, but is not limited to, at least one of electronic devices, such as a server and a terminal, that can be configured to execute the method provided by the embodiments of the present application.
  • the automatic data backfilling method can be executed by software or hardware installed in a terminal device or a server device, and the software can be a blockchain platform.
  • the server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like.
  • AI artificial intelligence
  • digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
  • the basic technologies of artificial intelligence generally include technologies such as sensors, special artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation/interaction systems, and mechatronics.
  • Artificial intelligence software technology mainly includes computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning/deep learning.
  • the automatic data backfilling method includes:
  • the preset interface type set includes a condition interface, a save interface, a submit interface, and the like.
  • the condition interface is used to set corresponding actions according to preset conditions; the save interface is used to save the acquired data; the submission interface is used to submit the saved data.
  • the condition interface may be a home loan condition interface, which is used in the home loan mortgage business to perform preset actions when data is obtained from the Housing Authority, such as jumping to a page, popping up a pop-up window, calling interface, save value, non-editable, backfill data, etc.
  • the saving interface can be a mortgage saving interface, which is used to save the backfilled data in the mortgage business of housing loans
  • the submission interface can be a mortgage submission interface, It is used to submit the saved data in the home loan mortgage business.
  • the standard interface set includes corresponding conditional interface code, save interface code, submit interface code, and the like.
  • the obtaining a corresponding standard interface from the standard interface set according to the interface type includes:
  • the preset language processing algorithm described in the embodiments of the present application may be the currently disclosed TextRank, a semantic-based keyword extraction algorithm, and the like.
  • the embodiment of the present application extracts the keywords “mortgage loan” and “condition” in the interface type "mortgage loan condition interface”, and matches the “mortgage loan condition” in the standard interface set according to the keywords “mortgage loan” and “condition” "Interface Code”, and determine the "Interface Code for Mortgage Conditions" as the corresponding standard interface.
  • the corresponding standard interface can be determined according to the selected interface type, and different preset actions can be set according to the interface type according to different actual application scenarios, which has higher flexibility and stronger applicability.
  • different data calling scripts can be generated by using different types of interfaces, and the data calling scripts are used to call data under different services.
  • the data calling scripts in the housing loan condition interface are used to call housing loan mortgages.
  • the generation of a data calling script using the interface type and the standard interface includes:
  • the data calling script can be a VM script, and the VM script is edited by Velocity, which is a java-based template engine, and can be edited using any text editor, and finally saved as .
  • a file ending in VM for example, the housing loan condition interface may include interface parameters such as interface number, interface identifier, and interface ID, as well as type parameters such as requesting user name information and requesting user identity information in the housing loan mortgage business.
  • the data type of the acquired parameter as field data or form data according to actual business requirements. For example, in the housing loan mortgage business, the data type of the parameter can be set as form form.
  • the setting of the field or list data that needs to be backfilled in the standard interface includes:
  • the data list is obtained by summarizing the backfill fields, or expressing the backfill fields in the form of a list.
  • the preset data set includes fields to be backfilled required by different services.
  • the data set includes the fields of "House Title No.”, "Area”, “House Location” and “Ownership Information” to be backfilled.
  • the keyword of the interface type is "mortgage loan”
  • the "House Ownership Certificate No.” "Area”, “House Location”, “House Ownership Acquisition Method”
  • House Ownership Certificate No.” "Area”, "House Location”, “House Ownership “Ownership Information” and “With or without collateral” and other backfill fields.
  • the data calling script is generated according to the interface type and the standard interface, and different data calling scripts can be generated for different data types, and the application scenarios are more abundant.
  • the interface to be called refers to the interface provided by the data provider.
  • the interface to be called may be various interfaces provided by the housing authority, which can be obtained by calling the interface of the housing authority.
  • obtaining the corresponding interface protocol by using the standard interface, and calling the interface to be called according to the interface protocol and the data calling script includes:
  • the interface identifier may be a character string, a number, or the like.
  • Each standard interface has a uniquely determined interface identifier, and the interface identifier of the standard interface and the interface identifier of the interface to be called are the same.
  • the interface protocol implements invocation of different interfaces according to the interface identifier.
  • the preset mapping relationship refers to the corresponding relationship between the interface identifier and the interface protocol.
  • the corresponding relationship between different interfaces is determined by the interface identifier, because the interface identifier is unique, and the accuracy of the interface call can be guaranteed as the number of interfaces increases.
  • the backfilling the data into the data list or field according to the data calling script includes:
  • the save interface and the submit interface in the standard interface are called to save and submit the backfilled data.
  • the preset action may be a corresponding processing action set according to actual needs.
  • the backfilled data meets the preset requirements, it can be saved, submitted, or the next interface can be called, and supports multiple Each interface is called sequentially, which solves the problem of cyclic calls and multiple interface calls; at the same time, the return result can be set according to the status of backfilling data, and page jumps or pop-up prompts can be made according to the returned results.
  • the interface returns an exception
  • the embodiment of the present application realizes automatic backfilling of data through the data invocation script, and can realize the automation of the entire process interface invocation according to the execution actions in the standard interface.
  • the present application obtains the corresponding standard interface from the standard interface set according to the interface type, and uses the interface type and the standard interface to generate a data call script. Different data call scripts can be generated for different data types. Application scenarios richer.
  • the corresponding interface protocol is obtained by using the standard interface, the interface to be called is called according to the interface protocol and the data calling script, the data is obtained according to the interface to be called, and the data backfill is performed according to the data calling script.
  • the embodiments proposed in the present application can solve the problem of low data backfilling efficiency.
  • FIG. 6 it is a functional block diagram of an apparatus for automatic data backfilling provided by an embodiment of the present application.
  • the data automatic backfilling apparatus 100 described in this application can be installed in an electronic device.
  • the apparatus 100 for automatic data backfilling may include an interface selection module 101 , a script generation module 102 , an interface calling module 103 and a data backfill module 104 .
  • the modules described in this application may also be referred to as units, which refer to a series of computer program segments that can be executed by the processor of an electronic device and can perform fixed functions, and are stored in the memory of the electronic device.
  • each module/unit is as follows:
  • the interface selection module 101 is configured to obtain an interface type set and a preset standard interface set, select an interface type from the interface type set, and obtain a corresponding standard interface from the standard interface set according to the interface type.
  • the preset interface type set includes a condition interface, a save interface, a submit interface, and the like.
  • the condition interface is used to set corresponding actions according to preset conditions; the save interface is used to save the acquired data; the submission interface is used to submit the saved data.
  • the condition interface may be a home loan condition interface, which is used in the home loan mortgage business to perform preset actions when data is obtained from the Housing Authority, such as jumping to a page, popping up a pop-up window, and calling the interface , save the value, cannot be edited, backfill data, etc.
  • the save interface can be a mortgage save interface, which is used to save the backfilled data in the mortgage business of the house loan
  • the submission interface can be a mortgage submission interface, using In the home loan mortgage business, the saved data is submitted.
  • the standard interface set includes corresponding conditional interface code, save interface code, submit interface code, and the like.
  • the interface selection module 101 obtains the corresponding standard interface through the following operations:
  • the standard interface set is searched according to the keyword, and when the keyword is successfully matched with any interface in the standard interface set, it is determined that the successfully matched interface is a standard interface corresponding to the interface type.
  • the preset language processing algorithm described in the embodiments of the present application may be the currently disclosed TextRank, a semantic-based keyword extraction algorithm, and the like.
  • the embodiment of the present application extracts the keywords “mortgage loan” and “condition” in the interface type "mortgage loan condition interface”, and matches the “mortgage loan condition” in the standard interface set according to the keywords “mortgage loan” and “condition” "Interface Code”, and determine the "Interface Code for Mortgage Conditions" as the corresponding standard interface.
  • the corresponding standard interface can be determined according to the selected interface type, and different preset actions can be set according to the interface type according to different actual application scenarios, which has higher flexibility and stronger applicability.
  • the script generation module 102 is configured to generate a data calling script by using the interface type and the standard interface, and set the field or list data to be backfilled in the standard interface.
  • different data calling scripts can be generated by using different types of interfaces, and the data calling scripts are used to call data under different services.
  • the data calling scripts in the housing loan condition interface are used to call housing loan mortgages.
  • the script generation module 102 generates a data call script through the following operations:
  • the data calling script is obtained according to the interface parameter and the type parameter.
  • the data calling script can be a VM script, and the VM script is edited by Velocity, which is a java-based template engine, and can be edited using any text editor, and finally saved as .
  • a file ending in VM for example, the housing loan condition interface may include interface parameters such as interface number, interface identifier, and interface ID, as well as type parameters such as requesting user name information and requesting user identity information in the housing loan mortgage business.
  • the data type of the acquired parameter as field data or form data according to actual business requirements. For example, in the housing loan mortgage business, the data type of the parameter can be set as form form.
  • script generation module 102 sets the fields or list data to be backfilled in the standard interface through the following operations:
  • the data list is obtained by summarizing the backfill fields, or expressing the backfill fields in the form of a list.
  • the preset data set includes fields to be backfilled required by different services.
  • the data set includes the fields of "House Title No.”, "Area”, “House Location” and “Ownership Information” to be backfilled.
  • the keyword of the interface type is "mortgage loan”
  • the "House Ownership Certificate No.” "Area”, “House Location”, “House Ownership Acquisition Method”
  • House Ownership Certificate No.” "Area”, "House Location”, “House Ownership “Ownership Information” and “With or without collateral” and other backfill fields.
  • the data calling script is generated according to the interface type and the standard interface, and different data calling scripts can be generated for different data types, and the application scenarios are more abundant.
  • the interface calling module 103 is configured to obtain the corresponding interface protocol by using the standard interface, call the interface to be called according to the interface protocol and the data calling script, and obtain data according to the interface to be called.
  • the interface to be called refers to the interface provided by the data provider.
  • the interface to be called may be various interfaces provided by the housing authority, which can be obtained by calling the interface of the housing authority.
  • the interface calling module 103 calls the interface to be called through the following operations:
  • the interface of the data provider is obtained by using the interface protocol and the data calling script to obtain the interface to be called.
  • the interface identifier may be a character string, a number, or the like.
  • Each standard interface has a uniquely determined interface identifier, and the interface identifier of the standard interface and the interface identifier of the interface to be called are the same.
  • the interface protocol implements invocation of different interfaces according to the interface identifier.
  • the preset mapping relationship refers to the corresponding relationship between the interface identifier and the interface protocol.
  • the corresponding relationship between different interfaces is determined by the interface identifier, because the interface identifier is unique, and the accuracy of the interface call can be guaranteed as the number of interfaces increases.
  • the data backfilling module 104 is configured to backfill the data into the data list or field according to the data calling script.
  • the data backfill module 104 backfills the data into the data list or field through the following operations:
  • the data call script is used to obtain the corresponding data to be backfilled, and the data to be backfilled is allocated to the data list and the corresponding backfilled fields.
  • the method further includes:
  • the save interface and the submit interface in the standard interface are called to save and submit the backfilled data.
  • the preset action may be a corresponding processing action set according to actual needs.
  • the backfilled data meets the preset requirements, it can be saved, submitted, or the next interface can be called, and supports multiple Each interface is called sequentially, which solves the problem of cyclic calls and multiple interface calls; at the same time, the return result can be set according to the status of backfilling data, and page jumps or pop-up prompts can be made according to the returned results.
  • the interface returns an exception
  • the embodiment of the present application realizes automatic backfilling of data through the data invocation script, and can realize the automation of the entire process interface invocation according to the execution actions in the standard interface.
  • FIG. 7 it is a schematic structural diagram of an electronic device implementing a method for automatic data backfill provided by an embodiment of the present application.
  • the electronic device 1 may include a processor 10, a memory 11 and a bus, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as a data automatic backfill program 12.
  • the memory 11 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, mobile hard disk, multimedia card, card-type memory (for example: SD or DX memory, etc.), magnetic memory, magnetic disk, CD etc.
  • the memory 11 may be an internal storage unit of the electronic device 1 in some embodiments, such as a mobile hard disk of the electronic device 1 .
  • the memory 11 may also be an external storage device of the electronic device 1, such as a pluggable mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital Digital, SD) card, flash memory card (Flash Card), etc.
  • the memory 11 may also include both an internal storage unit of the electronic device 1 and an external storage device.
  • the memory 11 can not only be used to store application software installed in the electronic device 1 and various types of data, such as the code of the data automatic backfill program 12, etc., but also can be used to temporarily store the data that has been output or will be output.
  • the processor 10 may be composed of integrated circuits, for example, may be composed of a single packaged integrated circuit, or may be composed of multiple integrated circuits packaged with the same function or different functions, including one or more integrated circuits.
  • Central Processing Unit CPU
  • microprocessor digital processing chip
  • graphics processor and combination of various control chips, etc.
  • the processor 10 is the control core (Control Core) of the electronic device. Unit), using various interfaces and lines to connect various components of the entire electronic device, by running or executing programs or modules (such as data automatic backfill programs, etc.) stored in the memory 11, and calling the programs stored in the memory 11. data to perform various functions of the electronic device 1 and process data.
  • the bus may be a peripheral component interconnect (PCI for short) bus or an extended industry standard structure (extended). industry standard architecture, referred to as EISA) bus, etc.
  • PCI peripheral component interconnect
  • EISA industry standard architecture
  • the bus can be divided into address bus, data bus, control bus and so on.
  • the bus is configured to implement connection communication between the memory 11 and at least one processor 10 and the like.
  • FIG. 7 only shows an electronic device with components. Those skilled in the art can understand that the structure shown in FIG. 7 does not constitute a limitation on the electronic device 1, and may include fewer or more components than those shown in the drawings. components, or a combination of certain components, or a different arrangement of components.
  • the electronic device 1 may also include a power source (such as a battery) for powering the various components, preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power source can be managed by the power source.
  • the device implements functions such as charge management, discharge management, and power consumption management.
  • the power source may also include one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and any other components.
  • the electronic device 1 may further include various sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.
  • the electronic device 1 may also include a network interface, optionally, the network interface may include a wired interface and/or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is usually used in the electronic device 1 Establish a communication connection with other electronic devices.
  • a network interface optionally, the network interface may include a wired interface and/or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is usually used in the electronic device 1 Establish a communication connection with other electronic devices.
  • the electronic device 1 may further include a user interface, and the user interface may be a display (Display), an input unit (such as a keyboard (Keyboard)), optionally, the user interface may also be a standard wired interface or a wireless interface.
  • the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) Touch, etc.
  • the display may also be appropriately called a display screen or a display unit, which is used for displaying information processed in the electronic device 1 and for displaying a visualized user interface.
  • the data automatic backfill program 12 stored in the memory 11 in the electronic device 1 is a combination of multiple instructions, and when running in the processor 10, it can realize:
  • the data is backfilled into the data list or field according to the data call script.
  • the modules/units integrated in the electronic device 1 may be stored in a computer-readable storage medium.
  • the computer-readable storage medium may be volatile or non-volatile.
  • the computer-readable storage medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a removable hard disk, a magnetic disk, an optical disc, a computer memory, a read-only memory (ROM, Read-Only Memory) Only Memory).
  • the computer-readable storage medium stores a computer program, and when executed by the processor of the electronic device, the computer program can realize:
  • the data is backfilled into the data list or field according to the data call script.
  • modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional module in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units can be implemented in the form of hardware, or can be implemented in the form of hardware plus software function modules.
  • the blockchain referred to in this application is a new application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm.
  • Blockchain essentially a decentralized database, is a series of data blocks associated with cryptographic methods. Each data block contains a batch of network transaction information to verify its Validity of information (anti-counterfeiting) and generation of the next block.
  • the blockchain can include the underlying platform of the blockchain, the platform product service layer, and the application service layer.

Abstract

涉及人工智能技术及大数据技术,揭露了一种数据自动回填方法,包括:获取接口类型集及标准接口集,从接口类型集中选择一个接口类型,根据接口类型获取对应的标准接口,利用接口类型及标准接口生成数据调用脚本,设置标准接口需要回填的字段或列表数据,利用标准接口获取对应的接口协议,根据接口协议及数据调用脚本调用待调用接口,并根据待调用接口获取数据,根据数据调用脚本将所述数据回填至所述数据列表或字段中。涉及区块链技术,所述标准接口集可存储于区块链的节点。还提出一种数据自动回填装置、电子设备以及计算机可读存储介质。可以解决数据回填效率较低的问题。

Description

数据自动回填方法、装置、电子设备及计算机存储介质
本申请要求于2020年11月17日提交中国专利局、申请号为CN202011289412.3、名称为“数据自动回填方法、装置、电子设备及计算机存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及人工智能技术领域及大数据技术领域,尤其涉及一种数据自动回填方法、装置、电子设备及计算机存储介质。
背景技术
数据回填是指将数据显示在特定字段或列表所提供的数据框里。随着数据规模不断扩大,数据的自动回填变得尤为重要。传统的数据回填方法有:1、通过第三方数据回填组件进行数据自动回填。2、利用接口调用数据,进行手动录入数据。
技术问题
发明人意识到,现有技术存在以下缺陷:1、利用回填组件进行数据自动回填灵活性较低且难以维护。2、人工录入数据效率较低,并且随着数据量的增大,调用的接口越来越多,数据回填的错误率较高。3、不支持根据返回结果判断是否回填或进行相应的提示。4、不支持将需要回填的数据显示在特定的页面。
技术解决方案
本申请提供的一种数据自动回填方法,包括:
获取接口类型集及预设的标准接口集,从所述接口类型集中选择一个接口类型,根据所述接口类型从所述标准接口集中获取对应的标准接口;
利用所述接口类型及所述标准接口生成数据调用脚本,设置所述标准接口需要回填的字段或列表数据;
利用所述标准接口获取对应的接口协议,根据所述接口协议及所述数据调用脚本调用待调用接口,并根据所述待调用接口获取数据;
根据所述数据调用脚本将所述数据回填至所述数据列表或字段中。
本申请还提供一种数据自动回填装置,所述装置包括:
接口选择模块,用于获取接口类型集及预设的标准接口集,从所述接口类型集中选择一个接口类型,根据所述接口类型从所述标准接口集中获取对应的标准接口;
脚本生成模块,用于利用所述接口类型及所述标准接口生成数据调用脚本,设置所述标准接口需要回填的字段或列表数据;
接口调用模块,用于利用所述标准接口获取对应的接口协议,根据所述接口协议及所述数据调用脚本调用待调用接口,并根据所述待调用接口获取数据;
数据回填模块,用于根据所述数据调用脚本将所述数据回填至所述数据列表或字段中。
本申请还提供一种电子设备,所述电子设备包括:
存储器,存储至少一个指令;及
处理器,执行所述存储器中存储的指令以实现如下步骤:
获取接口类型集及预设的标准接口集,从所述接口类型集中选择一个接口类型,根据所述接口类型从所述标准接口集中获取对应的标准接口;
利用所述接口类型及所述标准接口生成数据调用脚本,设置所述标准接口需要回填的字段或列表数据;
利用所述标准接口获取对应的接口协议,根据所述接口协议及所述数据调用脚本调用待调用接口,并根据所述待调用接口获取数据;
根据所述数据调用脚本将所述数据回填至所述数据列表或字段中。
本申请还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有至少一个指令,所述至少一个指令被电子设备中的处理器执行以实现如下步骤:
获取接口类型集及预设的标准接口集,从所述接口类型集中选择一个接口类型,根据所述接口类型从所述标准接口集中获取对应的标准接口;
利用所述接口类型及所述标准接口生成数据调用脚本,设置所述标准接口需要回填的字段或列表数据;
利用所述标准接口获取对应的接口协议,根据所述接口协议及所述数据调用脚本调用待调用接口,并根据所述待调用接口获取数据;
根据所述数据调用脚本将所述数据回填至所述数据列表或字段中。
附图说明
图1为本申请一实施例提供的数据自动回填方法的流程示意图;
图2为图1中其中一个步骤的详细实施流程示意图;
图3为图1中另一个步骤的详细实施流程示意图;
图4为图1中另一个步骤的详细实施流程示意图;
图5为图1中另一个步骤的详细实施流程示意图;
图6为本申请一实施例提供的数据自动回填装置的功能模块图;
图7为本申请一实施例提供的实现所述数据自动回填方法的电子设备的结构示意图。
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
本发明的实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
本申请实施例提供一种数据自动回填方法。所述数据自动回填方法的执行主体包括但不限于服务端、终端等能够被配置为执行本申请实施例提供的该方法的电子设备中的至少一种。换言之,所述数据自动回填方法可以由安装在终端设备或服务端设备的软件或硬件来执行,所述软件可以是区块链平台。所述服务端包括但不限于:单台服务器、服务器集群、云端服务器或云端服务器集群等。
本申请实施例可以基于人工智能技术对相关的数据进行获取和处理。其中,人工智能(Artificial Intelligence,AI)是利用数字计算机或者数字计算机控制的机器模拟、延伸和扩展人的智能,感知环境、获取知识并使用知识获得最佳结果的理论、方法、技术及应用系统。
人工智能基础技术一般包括如传感器、专用人工智能芯片、云计算、分布式存储、大数据处理技术、操作/交互系统、机电一体化等技术。人工智能软件技术主要包括计算机视觉技术、机器人技术、生物识别技术、语音处理技术、自然语言处理技术以及机器学习/深度学习等几大方向。
参照图1所示,为本申请一实施例提供的数据自动回填方法的流程示意图。在本实施例中,所述数据自动回填方法包括:
S1、获取接口类型集及预设的标准接口集,从所述接口类型集中选择一个接口类型,根据所述接口类型从所述标准接口集中获取对应的标准接口。
在本申请的至少一个实施例中,所述预设的接口类型集包括条件接口、保存接口及提交接口等。其中,所述条件接口用于根据预设的条件设定相应的动作;所述保存接口用于将获取的数据进行保存;所述提交接口用于将保存后的数据进行提交。例如,在房屋贷款抵押业务中,所述条件接口可以是房贷条件接口,用于房屋贷款抵押业务中从房管局获取到数据时,执行预设的动作,如跳转页面,弹出弹窗,调用接口,保存值,不可编辑,回填数据等等,所述保存接口可以是房贷保存接口,用于在房屋贷款抵押业务中,对回填后的数据进行保存,所述提交接口可以是房贷提交接口,用于在房屋贷款抵押业务中,对保存后的数据进行提交。进一步地,本申请实施例中,所述标准接口集中包括对应的条件接口代码、保存接口代码及提交接口代码等。
参阅图2所示,本申请实施例中,所述根据所述接口类型从所述标准接口集中获取对应的标准接口,包括:
S10、利用预设的语言处理算法提取所述接口类型的关键词;
S11、根据所述关键词查找所述标准接口集,当所述关键词与所述标准接口集中的任何一个接口匹配成功时,确定匹配成功的接口为所述接口类型对应的标准接口。
其中,本申请实施例中所述预设的语言处理算法可以是目前已公开的TextRank、基于语义的关键词提取算法等。比如,本申请实施例提取所述接口类型“房贷条件接口”中的关键词“房贷”及“条件”,根据所述关键词“房贷”及“条件”匹配所述标准接口集中的“房贷条件接口代码”,并将所述“房贷条件接口代码”确定为对应的标准接口。
本申请实施例中,可以根据所选择的接口类型确定对应的标准接口,并且针对实际应用场景的不同,可以根据接口类型设置不同的预设动作,灵活性较高,适用性更强。
S2、利用所述接口类型及所述标准接口生成数据调用脚本,设置所述标准接口需要回填的字段或列表数据。
本申请实施例可以通过所述接口类型的不同来生成不同的数据调用脚本,所述数据调用脚本用来调用不同业务下的数据,比如,房贷条件接口中的数据调用脚本用来调用房屋贷款抵押业务中的各种数据。
参阅图3所示,所述利用所述接口类型及所述标准接口生成数据调用脚本,包括:
S20、根据所述接口类型获取预设的类型参数及接口参数;
S21、根据所述接口参数及所述类型参数得到所述数据调用脚本。
本申请实施例中,所述数据调用脚本可以为VM脚本,所述VM脚本由Velocity进行编辑,所述Velocity是一个基于java的模板引擎,可以允许使用任何文本编辑器进行编辑,最后保存成.VM结尾的文件。本申请实施例中,例如,房贷条件接口可以包括接口编号、接口标识、接口ID等接口参数,以及房屋贷款抵押业务中的请求用户姓名信息及请求用户身份信息等类型参数。本申请实施例可以根据实际业务需求设置获取的参数的数据类型为字段数据还是表单数据,比如,在房屋贷款抵押业务中,可以设置参数的数据类型为form表单。
进一步地,所述设置所述标准接口需要回填的字段或列表数据,包括:
根据所述接口类型的关键字从预设的数据集中匹配相应的回填字段;
汇总所述回填字段,或将所述回填字段以列表的形式表示得到所述数据列表。
本申请实施例中,所述预设的数据集包括不同业务中所需的待回填字段。例如,在房屋贷款抵押业务中,所述数据集包括“房屋权证号”、“面积”、“房屋位置”及“权属信息”等待回填字段。本申请实施例中,所述接口类型的关键词为“房贷”时,则提取所述数据集中的“房屋权证号”、“面积”、“房屋位置”、“房屋权属获得方式”、“权属信息”及“有无抵押”等回填字段。
进一步地,本申请实施例根据所述接口类型及所述标准接口生成所述数据调用脚本,针对不同的数据类型可以生成不同的数据调用脚本,应用场景更加丰富。
S3、利用所述标准接口获取对应的接口协议,根据所述接口协议及所述数据调用脚本调用待调用接口,并根据所述待调用接口获取数据。
本申请实施例中,所述待调用接口指的数据提供方所提供的接口,比如,银行房屋抵押业务中,所述待调用接口可以为房管局提供的各种接口,通过调用房管局接口获取房屋权证号、面积、房屋位置、权属信息等数据。
参阅图4所示,本申请实施例中,所述利用所述标准接口获取对应的接口协议,根据所述接口协议及所述数据调用脚本调用待调用接口,包括:
S30、获取所述标准接口的接口标识,通过预设的映射关系获取所述接口标识对应的接口协议;
S31、利用所述接口协议及所述数据调用脚本获取数据提供方的接口,得到所述待调用接口。
其中,所述接口标识可以为字符串、数字等。每个标准接口都具有唯一确定的接口标识,所述标准接口的接口标识和所述待调用接口的接口标识是相同的。所述接口协议根据所述接口标识实现不同接口的调用。所述预设的映射关系是指所述接口标识与所述接口协议之间的对应关系。
本申请实施例中,通过所述接口标识确定不同接口之间的对应关系,因为所述接口标识具有唯一性,随着接口数量的增多,可以保证接口调用的准确性。
S4、根据所述数据调用脚本将所述数据回填至所述数据列表或字段中。
参阅图5所示,本申请实施例中,所述根据所述数据调用脚本将所述数据回填至所述数据列表或字段中,包括:
S40、调用所述标准接口,并根据所述标准接口获取对应的数据调用脚本;
S41、利用所述数据调用脚本获取对应待回填数据,并将所述待回填数据分配至所述数据列表及对应回填字段中。
例如,房贷条件接口中的数据调用脚本:"xm": "$cust_name", //请求参数获取,可以获取对应待回填数据为用户姓名。
详细地,所述将所述数据回填至所述数据列表或字段中之后,还可以包括:
执行所述标准接口中的条件接口设定的所有预设动作;
当所述预设动作执行完成后,调用所述标准接口中的保存接口及提交接口将回填后的数据进行保存及提交。
本申请实施例中,所述预设动作可以为根据实际需要设置的相应处理动作,比如,当回填的数据达到预设要求可以进行保存、提交或进行下一个接口的调用,并且在此支持多个接口顺序调用,解决了循环调用和多个接口调用的问题;同时可以根据回填数据的状况设置返回结果,并根据返回结果进行页面的跳转或弹框提示,比如,若接口返回异常,则可以设置提示文案“接口返回异常,请重新调用”,并且通过点击所述提示文案可再次触发调用;亦可以对回填的数据做编辑或不可编辑的权限设定,并且可以设置是否对回填完成的数据进行前端展示。
进一步地,本申请实施例通过所述数据调用脚本,实现数据的自动回填,并且可以根据标准接口中的执行动作,实现整个过程接口调用的自动化进行。
本申请根据所述接口类型从所述标准接口集中获取对应的标准接口,并利用所述接口类型及所述标准接口生成数据调用脚本,针对不同的数据类型可以生成不同的数据调用脚本,应用场景更加丰富。同时,利用所述标准接口获取对应的接口协议,根据所述接口协议及所述数据调用脚本调用待调用接口,并根据所述待调用接口获取数据,根据所述数据调用脚本进行数据回填,可以提高数据回填的效率。因此本申请提出的实施例可以解决数据回填效率较低的问题。
如图6所示,是本申请一实施例提供的数据自动回填装置的功能模块图。
本申请所述数据自动回填装置100可以安装于电子设备中。根据实现的功能,所述数据自动回填装置100可以包括接口选择模块101、脚本生成模块102、接口调用模块103及数据回填模块104。本申请所述模块也可以称之为单元,是指一种能够被电子设备处理器所执行,并且能够完成固定功能的一系列计算机程序段,其存储在电子设备的存储器中。
在本实施例中,关于各模块/单元的功能如下:
所述接口选择模块101,用于获取接口类型集及预设的标准接口集,从所述接口类型集中选择一个接口类型,根据所述接口类型从所述标准接口集中获取对应的标准接口。
在本申请的至少一个实施例中,所述预设的接口类型集包括条件接口、保存接口及提交接口等。其中,所述条件接口用于根据预设的条件设定相应的动作;所述保存接口用于将获取的数据进行保存;所述提交接口用于将保存后的数据进行提交。例如,在房屋贷款抵押业务中,所述条件接口可以是房贷条件接口,用于房屋贷款抵押业务中从房管局获取到数据时,执行预设动作,如跳转页面,弹出弹窗,调用接口,保存值,不可编辑,回填数据等等,所述保存接口可以是房贷保存接口,用于在房屋贷款抵押业务中,对回填后的数据进行保存,所述提交接口可以是房贷提交接口,用于在房屋贷款抵押业务中,对保存后的数据进行提交。进一步地,本申请实施例中,所述标准接口集中包括对应的条件接口代码、保存接口代码及提交接口代码等。
较佳地,所述接口选择模块101通过下述操作获取对应的标准接口:
利用预设的语言处理算法提取所述接口类型的关键词;
根据所述关键词查找所述标准接口集,当所述关键词与所述标准接口集中的任何一个接口匹配成功时,确定匹配成功的接口为所述接口类型对应的标准接口。
其中,本申请实施例中所述预设的语言处理算法可以是目前已公开的TextRank、基于语义的关键词提取算法等。比如,本申请实施例提取所述接口类型“房贷条件接口”中的关键词“房贷”及“条件”,根据所述关键词“房贷”及“条件”匹配所述标准接口集中的“房贷条件接口代码”,并将所述“房贷条件接口代码”确定为对应的标准接口。
本申请实施例中,可以根据所选择的接口类型确定对应的标准接口,并且针对实际应用场景的不同,可以根据接口类型设置不同的预设动作,灵活性较高,适用性更强。
所述脚本生成模块102,用于利用所述接口类型及所述标准接口生成数据调用脚本,设置所述标准接口需要回填的字段或列表数据。
本申请实施例可以通过所述接口类型的不同来生成不同的数据调用脚本,所述数据调用脚本用来调用不同业务下的数据,比如,房贷条件接口中的数据调用脚本用来调用房屋贷款抵押业务中的各种数据。
所述脚本生成模块102通过下述操作生成数据调用脚本:
根据所述接口类型获取预设的类型参数及接口参数;
根据所述接口参数及所述类型参数得到所述数据调用脚本。
本申请实施例中,所述数据调用脚本可以为VM脚本,所述VM脚本由Velocity进行编辑,所述Velocity是一个基于java的模板引擎,可以允许使用任何文本编辑器进行编辑,最后保存成.VM结尾的文件。本申请实施例中,例如,房贷条件接口可以包括接口编号、接口标识、接口ID等接口参数,以及房屋贷款抵押业务中的请求用户姓名信息及请求用户身份信息等类型参数。本申请实施例可以根据实际业务需求设置获取的参数的数据类型为字段数据还是表单数据,比如,在房屋贷款抵押业务中,可以设置参数的数据类型为form表单。
进一步地,所述脚本生成模块102通过下述操作设置所述标准接口需要回填的字段或列表数据:
根据所述接口类型的关键字从预设的数据集中匹配相应的回填字段;
汇总所述回填字段,或将所述回填字段以列表的形式表示得到所述数据列表。
本申请实施例中,所述预设的数据集包括不同业务中所需的待回填字段。例如,在房屋贷款抵押业务中,所述数据集包括“房屋权证号”、“面积”、“房屋位置”及“权属信息”等待回填字段。本申请实施例中,所述接口类型的关键词为“房贷”时,则提取所述数据集中的“房屋权证号”、“面积”、“房屋位置”、“房屋权属获得方式”、“权属信息”及“有无抵押”等回填字段。
进一步地,本申请实施例根据所述接口类型及所述标准接口生成所述数据调用脚本,针对不同的数据类型可以生成不同的数据调用脚本,应用场景更加丰富。
所述接口调用模块103,用于利用所述标准接口获取对应的接口协议,根据所述接口协议及所述数据调用脚本调用待调用接口,并根据所述待调用接口获取数据。
本申请实施例中,所述待调用接口指的数据提供方所提供的接口,比如,银行房屋抵押业务中,所述待调用接口可以为房管局提供的各种接口,通过调用房管局接口获取房屋权证号、面积、房屋位置、权属信息等数据。
本申请实施例中,所述接口调用模块103通过下述操作调用待调用接口:
获取所述标准接口的接口标识,通过预设的映射关系获取所述接口标识对应的接口协议;
利用所述接口协议及所述数据调用脚本获取数据提供方的接口,得到所述待调用接口。
其中,所述接口标识可以为字符串、数字等。每个标准接口都具有唯一确定的接口标识,所述标准接口的接口标识和所述待调用接口的接口标识是相同的。所述接口协议根据所述接口标识实现不同接口的调用。所述预设的映射关系是指所述接口标识与所述接口协议之间的对应关系。
本申请实施例中,通过所述接口标识确定不同接口之间的对应关系,因为所述接口标识具有唯一性,随着接口数量的增多,可以保证接口调用的准确性。
所述数据回填模块104,用于根据所述数据调用脚本将所述数据回填至所述数据列表或字段中。
较佳地,所述数据回填模块104通过下述操作将所述数据回填至所述数据列表或字段中:
调用所述标准接口,并根据所述标准接口获取对应的数据调用脚本;
利用所述数据调用脚本获取对应待回填数据,并将所述待回填数据分配至所述数据列表及对应回填字段中。
例如,房贷条件接口中的数据调用脚本:"xm": "$cust_name", //请求参数获取,可以获取对应待回填数据为用户姓名。
详细地,所述数据回填模块104将所述数据回填至所述数据列表或字段中之后,还包括:
执行所述标准接口中的条件接口设定的所有预设动作;
当所述预设动作执行完成后,调用所述标准接口中的保存接口及提交接口将回填后的数据进行保存及提交。
本申请实施例中,所述预设动作可以为根据实际需要设置的相应处理动作,比如,当回填的数据达到预设要求可以进行保存、提交或进行下一个接口的调用,并且在此支持多个接口顺序调用,解决了循环调用和多个接口调用的问题;同时可以根据回填数据的状况设置返回结果,并根据返回结果进行页面的跳转或弹框提示,比如,若接口返回异常,则可以设置提示文案“接口返回异常,请重新调用”,并且通过点击所述提示文案可再次触发调用;亦可以对回填的数据做编辑或不可编辑的权限设定,并且可以设置是否对回填完成的数据进行前端展示。
进一步地,本申请实施例通过所述数据调用脚本,实现数据的自动回填,并且可以根据标准接口中的执行动作,实现整个过程接口调用的自动化进行。
如图7所示,是本申请一实施例提供的实现数据自动回填方法的电子设备的结构示意图。
所述电子设备1可以包括处理器10、存储器11和总线,还可以包括存储在所述存储器11中并可在所述处理器10上运行的计算机程序,如数据自动回填程序12。
其中,所述存储器11至少包括一种类型的可读存储介质,所述可读存储介质包括闪存、移动硬盘、多媒体卡、卡型存储器(例如:SD或DX存储器等)、磁性存储器、磁盘、光盘等。所述存储器11在一些实施例中可以是电子设备1的内部存储单元,例如该电子设备1的移动硬盘。所述存储器11在另一些实施例中也可以是电子设备1的外部存储设备,例如电子设备1上配备的插接式移动硬盘、智能存储卡(Smart Media Card, SMC)、安全数字(Secure Digital, SD)卡、闪存卡(Flash Card)等。进一步地,所述存储器11还可以既包括电子设备1的内部存储单元也包括外部存储设备。所述存储器11不仅可以用于存储安装于电子设备1的应用软件及各类数据,例如数据自动回填程序12的代码等,还可以用于暂时地存储已经输出或者将要输出的数据。
所述处理器10在一些实施例中可以由集成电路组成,例如可以由单个封装的集成电路所组成,也可以是由多个相同功能或不同功能封装的集成电路所组成,包括一个或者多个中央处理器(Central Processing unit,CPU)、微处理器、数字处理芯片、图形处理器及各种控制芯片的组合等。所述处理器10是所述电子设备的控制核心(Control Unit),利用各种接口和线路连接整个电子设备的各个部件,通过运行或执行存储在所述存储器11内的程序或者模块(例如数据自动回填程序等),以及调用存储在所述存储器11内的数据,以执行电子设备1的各种功能和处理数据。
所述总线可以是外设部件互连标准(peripheral component interconnect,简称PCI)总线或扩展工业标准结构(extended industry standard architecture,简称EISA)总线等。该总线可以分为地址总线、数据总线、控制总线等。所述总线被设置为实现所述存储器11以及至少一个处理器10等之间的连接通信。
图7仅示出了具有部件的电子设备,本领域技术人员可以理解的是,图7示出的结构并不构成对所述电子设备1的限定,可以包括比图示更少或者更多的部件,或者组合某些部件,或者不同的部件布置。
例如,尽管未示出,所述电子设备1还可以包括给各个部件供电的电源(比如电池),优选地,电源可以通过电源管理装置与所述至少一个处理器10逻辑相连,从而通过电源管理装置实现充电管理、放电管理、以及功耗管理等功能。电源还可以包括一个或一个以上的直流或交流电源、再充电装置、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。所述电子设备1还可以包括多种传感器、蓝牙模块、Wi-Fi模块等,在此不再赘述。
进一步地,所述电子设备1还可以包括网络接口,可选地,所述网络接口可以包括有线接口和/或无线接口(如WI-FI接口、蓝牙接口等),通常用于在该电子设备1与其他电子设备之间建立通信连接。
可选地,该电子设备1还可以包括用户接口,用户接口可以是显示器(Display)、输入单元(比如键盘(Keyboard)),可选地,用户接口还可以是标准的有线接口、无线接口。可选地,在一些实施例中,显示器可以是LED显示器、液晶显示器、触控式液晶显示器以及OLED(Organic Light-Emitting Diode,有机发光二极管)触摸器等。其中,显示器也可以适当的称为显示屏或显示单元,用于显示在电子设备1中处理的信息以及用于显示可视化的用户界面。
应该了解,所述实施例仅为说明之用,在专利申请范围上并不受此结构的限制。
所述电子设备1中的所述存储器11存储的数据自动回填程序12是多个指令的组合,在所述处理器10中运行时,可以实现:
获取接口类型集及预设的标准接口集,从所述接口类型集中选择一个接口类型,根据所述接口类型从所述标准接口集中获取对应的标准接口;
利用所述接口类型及所述标准接口生成数据调用脚本,设置所述标准接口需要回填的字段或列表数据;
利用所述标准接口获取对应的接口协议,根据所述接口协议及所述数据调用脚本调用待调用接口,并根据所述待调用接口获取数据;
根据所述数据调用脚本将所述数据回填至所述数据列表或字段中。
具体地,所述处理器10对上述指令的具体实现方法可参考图1至图5对应实施例中相关步骤的描述,在此不赘述。
进一步地,所述电子设备1集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读存储介质中。所述计算机可读存储介质可以是易失性的,也可以是非易失性的。例如,所述计算机可读存储介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)。
所述计算机可读存储介质存储有计算机程序,所述计算机程序在被电子设备的处理器所执行时,可以实现:
获取接口类型集及预设的标准接口集,从所述接口类型集中选择一个接口类型,根据所述接口类型从所述标准接口集中获取对应的标准接口;
利用所述接口类型及所述标准接口生成数据调用脚本,设置所述标准接口需要回填的字段或列表数据;
利用所述标准接口获取对应的接口协议,根据所述接口协议及所述数据调用脚本调用待调用接口,并根据所述待调用接口获取数据;
根据所述数据调用脚本将所述数据回填至所述数据列表或字段中。
在本申请所提供的几个实施例中,应该理解到,所揭露的设备,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能模块的形式实现。
对于本领域技术人员而言,显然本申请不限于上述示范性实施例的细节,而且在不背离本申请的精神或基本特征的情况下,能够以其他的具体形式实现本申请。
因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本申请的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化涵括在本申请内。不应将权利要求中的任何附关联图标记视为限制所涉及的权利要求。
本申请所指区块链是分布式数据存储、点对点传输、共识机制、加密算法等计算机技术的新型应用模式。区块链(Blockchain),本质上是一个去中心化的数据库,是一串使用密码学方法相关联产生的数据块,每一个数据块中包含了一批次网络交易的信息,用于验证其信息的有效性(防伪)和生成下一个区块。区块链可以包括区块链底层平台、平台产品服务层以及应用服务层等。
此外,显然“包括”一词不排除其他单元或步骤,单数不排除复数。系统权利要求中陈述的多个单元或装置也可以由一个单元或装置通过软件或者硬件来实现。第二等词语用来表示名称,而并不表示任何特定的顺序。
最后应说明的是,以上实施例仅用以说明本申请的技术方案而非限制,尽管参照较佳实施例对本申请进行了详细说明,本领域的普通技术人员应当理解,可以对本申请的技术方案进行修改或等同替换,而不脱离本申请技术方案的精神和范围。

Claims (20)

  1. 一种数据自动回填方法,其中,所述方法包括:
    获取接口类型集及预设的标准接口集,从所述接口类型集中选择一个接口类型,根据所述接口类型从所述标准接口集中获取对应的标准接口;
    利用所述接口类型及所述标准接口生成数据调用脚本,设置所述标准接口需要回填的字段或列表数据;
    利用所述标准接口获取对应的接口协议,根据所述接口协议及所述数据调用脚本调用待调用接口,并根据所述待调用接口获取数据;
    根据所述数据调用脚本将所述数据回填至所述数据列表或字段中。
  2. 如权利要求1所述的数据自动回填方法,其中,所述根据所述接口类型从所述标准接口集中获取对应的标准接口,包括:
    利用预设的语言处理算法提取所述接口类型的关键词;
    根据所述关键词查找所述标准接口集,当所述关键词与所述标准接口集中的任何一个接口匹配成功时,确定匹配成功的接口为所述接口类型对应的标准接口。
  3. 如权利要求1所述的数据自动回填方法,其中,所述利用所述接口类型及所述标准接口生成数据调用脚本,包括:
    根据所述接口类型获取预设的类型参数及接口参数;
    根据所述接口参数及所述类型参数得到所述数据调用脚本。
  4. 如权利要求1所述的数据自动回填方法,其中,所述设置所述标准接口需要回填的字段或列表数据,包括:
    根据所述接口类型的关键字从预设的数据集中匹配相应的回填字段;
    汇总所述回填字段,或将所述回填字段以列表的形式表示得到所述数据列表。
  5. 如权利要求1所述的数据自动回填方法,其中,所述利用所述标准接口获取对应的接口协议,根据所述接口协议及所述数据调用脚本调用待调用接口,包括:
    获取所述标准接口的接口标识,通过预设的映射关系获取所述接口标识对应的接口协议;
    利用所述接口协议及所述数据调用脚本获取数据提供方的接口,得到所述待调用接口。
  6. 如权利要求1至5中任意一项所述的数据自动回填方法,其中,所述根据所述数据调用脚本将所述数据回填至所述数据列表或字段中,包括:
    调用所述标准接口,并根据所述标准接口获取对应的数据调用脚本;
    利用所述数据调用脚本获取对应待回填数据,并将所述待回填数据分配至所述数据列表及对应回填字段中。
  7. 如权利要求6所述的数据自动回填方法,其中,所述将所述数据回填至所述数据列表或字段中之后,该方法还包括:
    执行所述标准接口中的条件接口设定的所有预设动作;
    当所述预设动作执行完成后,调用所述标准接口中的保存接口及提交接口将回填后的数据进行保存及提交。
  8. 一种数据自动回填装置,其中,所述装置包括:
    接口选择模块,用于获取接口类型集及预设的标准接口集,从所述接口类型集中选择一个接口类型,根据所述接口类型从所述标准接口集中获取对应的标准接口;
    脚本生成模块,用于利用所述接口类型及所述标准接口生成数据调用脚本,设置所述标准接口需要回填的字段或列表数据;
    接口调用模块,用于利用所述标准接口获取对应的接口协议,根据所述接口协议及所述数据调用脚本调用待调用接口,并根据所述待调用接口获取数据;
    数据回填模块,用于根据所述数据调用脚本将所述数据回填至所述数据列表或字段中。
  9. 一种电子设备,其中,所述电子设备包括:
    至少一个处理器;以及,
    与所述至少一个处理器通信连接的存储器;其中,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如下步骤:
    获取接口类型集及预设的标准接口集,从所述接口类型集中选择一个接口类型,根据所述接口类型从所述标准接口集中获取对应的标准接口;
    利用所述接口类型及所述标准接口生成数据调用脚本,设置所述标准接口需要回填的字段或列表数据;
    利用所述标准接口获取对应的接口协议,根据所述接口协议及所述数据调用脚本调用待调用接口,并根据所述待调用接口获取数据;
    根据所述数据调用脚本将所述数据回填至所述数据列表或字段中。
  10. 如权利要求9所述的电子设备,其中,所述根据所述接口类型从所述标准接口集中获取对应的标准接口,包括:
    利用预设的语言处理算法提取所述接口类型的关键词;
    根据所述关键词查找所述标准接口集,当所述关键词与所述标准接口集中的任何一个接口匹配成功时,确定匹配成功的接口为所述接口类型对应的标准接口。
  11. 如权利要求9所述的电子设备,其中,所述利用所述接口类型及所述标准接口生成数据调用脚本,包括:
    根据所述接口类型获取预设的类型参数及接口参数;
    根据所述接口参数及所述类型参数得到所述数据调用脚本。
  12. 如权利要求9所述的电子设备,其中,所述设置所述标准接口需要回填的字段或列表数据,包括:
    根据所述接口类型的关键字从预设的数据集中匹配相应的回填字段;
    汇总所述回填字段,或将所述回填字段以列表的形式表示得到所述数据列表。
  13. 如权利要求9所述的电子设备,其中,所述利用所述标准接口获取对应的接口协议,根据所述接口协议及所述数据调用脚本调用待调用接口,包括:
    获取所述标准接口的接口标识,通过预设的映射关系获取所述接口标识对应的接口协议;
    利用所述接口协议及所述数据调用脚本获取数据提供方的接口,得到所述待调用接口。
  14. 如权利要求9至13中任意一项所述的电子设备,其中,所述根据所述数据调用脚本将所述数据回填至所述数据列表或字段中,包括:
    调用所述标准接口,并根据所述标准接口获取对应的数据调用脚本;
    利用所述数据调用脚本获取对应待回填数据,并将所述待回填数据分配至所述数据列表及对应回填字段中。
  15. 如权利要求14所述的电子设备,其中,所述将所述数据回填至所述数据列表或字段中之后,所述指令被处理器执行时还实现如下步骤:
    执行所述标准接口中的条件接口设定的所有预设动作;
    当所述预设动作执行完成后,调用所述标准接口中的保存接口及提交接口将回填后的数据进行保存及提交。
  16. 一种计算机可读存储介质,存储有计算机程序,其中,所述计算机程序被处理器执行时实现如下步骤:
    获取接口类型集及预设的标准接口集,从所述接口类型集中选择一个接口类型,根据所述接口类型从所述标准接口集中获取对应的标准接口;
    利用所述接口类型及所述标准接口生成数据调用脚本,设置所述标准接口需要回填的字段或列表数据;
    利用所述标准接口获取对应的接口协议,根据所述接口协议及所述数据调用脚本调用待调用接口,并根据所述待调用接口获取数据;
    根据所述数据调用脚本将所述数据回填至所述数据列表或字段中。
  17. 如权利要求16所述的计算机可读存储介质,其中,所述根据所述接口类型从所述标准接口集中获取对应的标准接口,包括:
    利用预设的语言处理算法提取所述接口类型的关键词;
    根据所述关键词查找所述标准接口集,当所述关键词与所述标准接口集中的任何一个接口匹配成功时,确定匹配成功的接口为所述接口类型对应的标准接口。
  18. 如权利要求16所述的计算机可读存储介质,其中,所述利用所述接口类型及所述标准接口生成数据调用脚本,包括:
    根据所述接口类型获取预设的类型参数及接口参数;
    根据所述接口参数及所述类型参数得到所述数据调用脚本。
  19. 如权利要求16所述的计算机可读存储介质,其中,所述设置所述标准接口需要回填的字段或列表数据,包括:
    根据所述接口类型的关键字从预设的数据集中匹配相应的回填字段;
    汇总所述回填字段,或将所述回填字段以列表的形式表示得到所述数据列表。
  20. 如权利要求16所述的计算机可读存储介质,其中,所述利用所述标准接口获取对应的接口协议,根据所述接口协议及所述数据调用脚本调用待调用接口,包括:
    获取所述标准接口的接口标识,通过预设的映射关系获取所述接口标识对应的接口协议;
    利用所述接口协议及所述数据调用脚本获取数据提供方的接口,得到所述待调用接口。
PCT/CN2021/123897 2020-11-17 2021-10-14 数据自动回填方法、装置、电子设备及计算机存储介质 WO2022105494A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011289412.3 2020-11-17
CN202011289412.3A CN112380820A (zh) 2020-11-17 2020-11-17 数据自动回填方法、装置、电子设备及计算机存储介质

Publications (1)

Publication Number Publication Date
WO2022105494A1 true WO2022105494A1 (zh) 2022-05-27

Family

ID=74584946

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/123897 WO2022105494A1 (zh) 2020-11-17 2021-10-14 数据自动回填方法、装置、电子设备及计算机存储介质

Country Status (2)

Country Link
CN (1) CN112380820A (zh)
WO (1) WO2022105494A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112380820A (zh) * 2020-11-17 2021-02-19 深圳壹账通智能科技有限公司 数据自动回填方法、装置、电子设备及计算机存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106557470A (zh) * 2015-09-24 2017-04-05 腾讯科技(北京)有限公司 数据提取方法和装置
US20170199917A1 (en) * 2016-01-11 2017-07-13 International Business Machines Corporation Automatic discovery of analysis scripts for a dataset
CN109766262A (zh) * 2018-12-15 2019-05-17 深圳壹账通智能科技有限公司 接口数据处理方法、自动化测试方法、装置、设备和介质
CN111026956A (zh) * 2019-11-20 2020-04-17 拉扎斯网络科技(上海)有限公司 数据列表处理方法、装置、电子设备及计算机存储介质
CN111130864A (zh) * 2019-12-13 2020-05-08 南京邮电大学 使用模板采集可格式化网元数据的方法
CN112380820A (zh) * 2020-11-17 2021-02-19 深圳壹账通智能科技有限公司 数据自动回填方法、装置、电子设备及计算机存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106557470A (zh) * 2015-09-24 2017-04-05 腾讯科技(北京)有限公司 数据提取方法和装置
US20170199917A1 (en) * 2016-01-11 2017-07-13 International Business Machines Corporation Automatic discovery of analysis scripts for a dataset
CN109766262A (zh) * 2018-12-15 2019-05-17 深圳壹账通智能科技有限公司 接口数据处理方法、自动化测试方法、装置、设备和介质
CN111026956A (zh) * 2019-11-20 2020-04-17 拉扎斯网络科技(上海)有限公司 数据列表处理方法、装置、电子设备及计算机存储介质
CN111130864A (zh) * 2019-12-13 2020-05-08 南京邮电大学 使用模板采集可格式化网元数据的方法
CN112380820A (zh) * 2020-11-17 2021-02-19 深圳壹账通智能科技有限公司 数据自动回填方法、装置、电子设备及计算机存储介质

Also Published As

Publication number Publication date
CN112380820A (zh) 2021-02-19

Similar Documents

Publication Publication Date Title
CN108292231B (zh) 从数据生成应用的方法和系统
CN111813963B (zh) 知识图谱构建方法、装置、电子设备及存储介质
CN115617327A (zh) 低代码页面搭建系统、方法及计算机可读存储介质
US8701082B2 (en) Method and apparatus for generating a model-driven development user interface
CN111428458A (zh) 通用报表生成方法、装置及计算机可读存储介质
US20120158742A1 (en) Managing documents using weighted prevalence data for statements
CN113434542B (zh) 数据关系识别方法、装置、电子设备及存储介质
WO2022048362A1 (zh) 数据存储方法、装置、电子设备及存储介质
WO2022105494A1 (zh) 数据自动回填方法、装置、电子设备及计算机存储介质
US10540151B1 (en) Graphical customization of a firmware-provided user interface (UI)
CN113297180A (zh) 数据迁移方法、装置、电子设备及存储介质
CN117033249A (zh) 一种测试用例生成方法、装置、计算机设备及存储介质
CN112486532A (zh) 配置文件的管理方法、装置、电子设备及存储介质
CN114816371B (zh) 消息处理方法、装置、设备及介质
CN113051171B (zh) 接口测试方法、装置、设备及存储介质
CN113495723B (zh) 一种调用功能组件的方法、装置及存储介质
CN111352664A (zh) 分布式机器学习任务启动方法、系统、设备及存储介质
CN114356379A (zh) 基于备份的服务升级方法、装置、设备及存储介质
AU2019425532B2 (en) System and methods for loading objects from hash chains
CN112527443A (zh) 提示框显示方法、装置、电子设备及计算机可读存储介质
CN114860314B (zh) 基于数据库兼容的部署升级方法、装置、设备及介质
CN113704109B (zh) 前后端数据交互方法、装置、电子设备及存储介质
CN114706715B (zh) 一种基于bmc的分布式raid的控制方法、装置、设备及介质
WO2019028989A1 (zh) 一种代码分析方法及终端设备
CN116627546A (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: 21893643

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 22.08.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21893643

Country of ref document: EP

Kind code of ref document: A1