WO2019200757A1 - 数据导入方法、装置、计算机设备和存储介质 - Google Patents

数据导入方法、装置、计算机设备和存储介质 Download PDF

Info

Publication number
WO2019200757A1
WO2019200757A1 PCT/CN2018/095654 CN2018095654W WO2019200757A1 WO 2019200757 A1 WO2019200757 A1 WO 2019200757A1 CN 2018095654 W CN2018095654 W CN 2018095654W WO 2019200757 A1 WO2019200757 A1 WO 2019200757A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
data table
table template
approval
instruction
Prior art date
Application number
PCT/CN2018/095654
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 WO2019200757A1 publication Critical patent/WO2019200757A1/zh

Links

Images

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
    • G06F40/186Templates

Definitions

  • the present application relates to a data import method, apparatus, computer device, and storage medium.
  • the user's business data or key information is generally stored in the database.
  • engineers usually create a plurality of data in the database according to the user's business needs.
  • the table is then entered by the user through the data table to enable data entry.
  • a data import method, apparatus, computer device, and storage medium are provided.
  • a data import method comprising:
  • the modified data is re-verified until the modified data is successfully verified, and the successfully verified data is stored.
  • a data introduction device comprising:
  • a first receiving module configured to receive a data import instruction, and obtain a data table template corresponding to the data import instruction
  • a reading module configured to read a data file to be imported corresponding to the data importing instruction
  • An importing module configured to detect whether the order of the fields in the data file to be imported is the same as the order of the fields in the data table template, and when the same, import the data in the data file to be imported into the data table In the template;
  • a first verification module configured to perform verification on the imported data according to a verification rule in the data table template
  • a first modifying module configured to: when the verification fails, receive a modification instruction for the data that fails the verification, and modify the data that fails the verification according to the modification instruction;
  • the first storage module is configured to re-verify the modified data until the modified data is successfully verified, and the successfully verified data is stored.
  • a computer device comprising a memory and one or more processors having stored therein computer readable instructions that, when executed by a processor, implement the steps of a data import method provided in any one of the embodiments of the present application.
  • One or more non-transitory computer readable storage mediums storing computer readable instructions, when executed by one or more processors, cause one or more processors to be implemented in any one embodiment of the present application The steps provided for the data import method.
  • FIG. 1 is an application scenario diagram of a data import method according to one or more embodiments.
  • FIG. 2 is a flow diagram of a method of data importing in accordance with one or more embodiments.
  • FIG. 3 is a schematic diagram of a data table template selection interface in accordance with one or more embodiments.
  • FIG. 4 is a flow diagram of an approval step in accordance with one or more embodiments.
  • FIG. 5 is a flow diagram of a data table template generation step in accordance with one or more embodiments.
  • FIG. 6 is a schematic diagram of a data table template generation interface in accordance with one or more embodiments.
  • Figure 7 is a block diagram of a data import device in accordance with one or more embodiments.
  • FIG. 8 is a block diagram of a computer device in accordance with one or more embodiments.
  • the data importing method provided by the present application can be applied to an application environment as shown in FIG. 1.
  • the user terminal communicates with the database and the approval terminal through the network.
  • Receiving the data import instruction input by the user the user terminal acquires the data table template corresponding to the data import instruction, and reads the corresponding data file to be imported according to the data import instruction input by the user, and detects the field in the data file to be imported.
  • the sequence is the same as the order of the fields in the data table template. Only when the same information is used, the data will be imported into the data table template, so that the order of importing data is correct, and after the data is imported, the verification in the data table template is performed.
  • the rule verifies the imported data, and only the data that has been successfully verified is stored when the imported data is successfully verified.
  • User terminals and approval terminals can be, but are not limited to, various personal computers, notebook computers, smart phones, tablets, and portable wearable devices.
  • a data importing method is provided, which is applied to the user terminal in FIG. 1 as an example, and includes the following steps:
  • S202 Receive a data import instruction, and acquire a data table template corresponding to the data import instruction.
  • the data importing instruction is input by the user to the application terminal, and is used to instruct the application terminal to execute an instruction for the data importing action, wherein the data importing instruction may be an instruction for selecting the data table template, so that when the user inputs the data importing instruction, That is, the corresponding data table template is selected.
  • the data table template is a pre-established template for importing data, including fields, data verification rules, etc., the data table template is used to store the imported data, and the imported data is stored in the database in the form of a data table template. To achieve storage of imported data.
  • the data file to be imported is a file of a data storage to be imported into the database, and may be a csv file, an xls file, or an xlsx file.
  • the user can select a data file to be imported on the user terminal, so that the user terminal can obtain the data file to be imported selected by the user.
  • S206 Detect whether the order of the fields in the data file to be imported is the same as the order of the fields in the data table template. When the same, the data in the data file to be imported is imported into the data table template.
  • the order of the fields in the data file to be imported is the same as the order of the fields in the data table template, and only if they are the same, the data file to be imported is allowed to be imported.
  • the data is imported into the datasheet template.
  • the error information may be outputted to the interface of the user terminal to prompt the user to modify the order of the fields in the data file to be imported.
  • the user terminal may sequentially display the fields in the data table template selected by the user to the display interface of the user terminal to prompt the user how to adjust the order of the fields to be imported into the data file.
  • the fields of the selected data table template are sequentially displayed to the display interface of the user terminal, so that the fields in the data file to be imported are adjusted before the user selects the data file to be imported.
  • the field of the data table template is sequentially displayed to the display interface of the user terminal for reference by the user, so that the order of the fields in the data file to be imported can be accurately adjusted.
  • the imported data may be verified by using a verification rule in the data table template, such as format verification, content integrity check, Sql expressions, regular expressions, line processing, or column processing.
  • the modification instruction is data input by the user to the user terminal for modifying the verification failure.
  • the user terminal may directly display the data of the verification failure to the display interface of the user terminal, or the user terminal will all
  • the data is displayed in the display interface of the user terminal, and the data of the verification failure is marked, for example, marked red, highlighted, etc. to distinguish the data that is successfully verified, so that the user can directly obtain the data of the verification failure. And make changes.
  • the data file to be imported is a csv file
  • the data table template is not an xls file.
  • the csv file is characterized by retaining only data but not retaining the format, assuming that a certain data starts with 0 in the csv file. For example, 001, etc., when imported into the xls file, due to the characteristics of the xls file, the data starting with 0 usually deletes 0. Therefore, in order to avoid this situation, the check rule can be set in advance, that is, xls The data in the file starts with 0 and is displayed in text style.
  • S212 Perform re-verification on the modified data until the modified data verification succeeds, and store the data that is successfully verified.
  • the modified data is resubmitted to the user terminal, and the user terminal checks the modified data again through the verification rule in the data table template until all the data are verified. If the data verification is successful, the data that has been verified successfully will be stored.
  • the user terminal may set the suspension mechanism, that is, when the number of times the user changes the data exceeds the preset value, the current data import is directly rejected. For example, if the user modifies the same data more than 5 times, the application terminal outputs the rejected data. Imported information, and can be set for a period of time, does not allow users to import data again.
  • the terminal when the terminal receives the data importing instruction, the terminal obtains the data table template corresponding to the data importing instruction, and determines whether the field order in the data file to be imported is the same as the field order in the data table template, and only the same In this case, the data to be imported into the data file is imported into the data table template, and the imported data is automatically verified by the verification rule in the data table template. In the case where the verification fails, the user is also allowed. The data is modified, and the data of the verification success is saved, and the correctness of the business data to be imported is not required to be manually checked, and the efficiency is improved.
  • the step S202 may include: receiving the input service series selection instruction, and selecting the corresponding service according to the service series selection instruction.
  • the system obtains and displays a data table template corresponding to the selected service series; receives an input selection instruction for the data table template; and acquires a corresponding data table template according to the selection instruction.
  • the service series selection instruction is an instruction input by the user to the user terminal for selecting a service series, where the service series is used to indicate the service type, and may include, for example, life insurance, property insurance, pension insurance, other risks, and the like.
  • FIG. 3 is a schematic diagram of a data table template selection interface in an embodiment, where the data table template selection interface includes a service series selection module, a data table template selection module, a data file selection module to be imported, and a display module, wherein the service system There is a drop-down button in the selection module. The user clicks the drop-down button to obtain all the service series displayed, and selects one of them by clicking the command. After the user selects one of the service series, the user terminal displays the corresponding according to the service series selected by the user.
  • a data table template in which one business series may correspond to multiple data table templates. There is a drop-down button in the data table template selection module.
  • the user terminal The selected data table template can be displayed to the display module.
  • the user may further select a data file to be imported by using the to-be-imported data file selection module, where the data stored in the user terminal may be selected by using a browse button, and the user terminal obtains the data to be imported selected by the user. After the file is also displayed, the data file to be imported can also be displayed to the display module.
  • the selected data table template can be obtained through multiple steps of the user, so that the selection of the data table template is more accurate.
  • the data importing method may further include: when the imported data fails verification by the verification rule in the data table template, obtaining a data verification rule corresponding to the data that fails the verification; displaying the data calibration Inspection rules.
  • the user terminal may obtain a corresponding data verification rule used by the data that fails the verification, and display the data verification rule to the interface. Therefore, when the user modifies the data, the user can modify according to the verification rule, so that the user can correctly modify the data at one time, which can improve the modification efficiency of the user.
  • the data verification rule may correspond to the data that has failed to be verified, and has a one-to-one correspondence with the data.
  • the verification rule may be incompletely displayed.
  • the user terminal displays the verification rule.
  • the verification rule corresponding to the data that fails the verification is displayed on the user terminal, so that the user can modify according to the verification rule, so that the user can correctly modify the data at one time, thereby improving the modification efficiency of the user.
  • FIG. 4 is a flowchart of an approval step in an embodiment.
  • the approval step may be performed before storing the imported data, and the approval step may include:
  • S402 Determine whether the selected data table template carries an approval identifier.
  • the approval identifier is an identifier for indicating whether the data table template needs to be approved.
  • the purpose is to ensure that important data is not falsified by illegal molecules. That is, when there is data modification in the data table template, approval may be required, and the flag table may be used to identify whether the selected data table template carries the approval identifier.
  • the approval chain corresponding to the data table template is obtained, where the approval chain corresponding to the data table template may exist.
  • the user terminal selects the current online and the least amount of approval chain to approve the modified data table template, wherein the current processing amount of each approval chain is equal to the total processing amount of all approved users in the approval chain. The number of users in the approval chain, so that users can select the approval chain with the least amount of processing at the current time for approval, so as to improve the efficiency of approval.
  • S406 Send the data table template with successful data verification to the approval terminal corresponding to the current approval user in the approval chain for approval.
  • the data table template with successful data verification will be approved through the approval chain, that is, when the data in the data table template is changed, and the data table template carries the approval identifier, the data table template needs to be performed. Approval, so the approval chain is obtained, and the data sheet template is sent to the approval terminal corresponding to the current approval user in the approval chain for approval.
  • the approval user approves the modified data through the approval terminal, and the approval is generally a substantive approval to prevent the modified data from being vulnerable.
  • the application terminal acquires the current approval terminal corresponding to the current approval user in the approval chain selected by the user, and sends the data table template of the imported data to the current approval terminal for approval, and the application terminal receives the current approval terminal and returns the current
  • the result of the approval when the current approval result indicates that the approval is passed, then the next approval terminal corresponding to the next approval user in the approval chain is continuously obtained, and the data sheet template of the imported data is sent to the next approval terminal for approval, until All the approval users in the approval chain complete the approval of the data sheet template of the imported data.
  • the imported data is stored.
  • the approval terminal corresponding to the approval user in the approval chain fails to approve the data sheet template, the imported data will not be stored.
  • the approval is performed according to the approval user in the approval chain selected by the user, and the approval is in an orderly manner in a certain order.
  • the current processing capacity of each approval chain can also be given, so that the user can select the approval chain with the least amount of processing at the current time for approval, so as to improve the efficiency of the approval.
  • the data importing method may further include: when the current approval result indicates that the approval fails, the data in the data table template is modified; and the modified data table template is sent to correspond to the current approval result.
  • Current approval terminal when the current approval result indicates that the approval fails, the data in the data table template is modified; and the modified data table template is sent to correspond to the current approval result.
  • the application terminal modifies the data in the data table template again, and resubmits the modified data table template of the imported data after the modification is completed, and applies
  • the terminal obtains the last approved current approval terminal corresponding to the re-submitted modified import data table template, and the modified The data table template of the imported data is sent to the current approval terminal, so that the approval chain can be avoided again, resulting in waste of approval resources.
  • the data table template of the modified imported data may be compared with the data table template of the imported data before the modification, and the comparison is not performed.
  • the same content, that is, the modified content is marked, such as red or highlight, so that the user can clearly see the modified content of the user, thereby improving the efficiency of the review.
  • the modified data table template is sent to the current approval terminal that has not passed the last approval, so that the modified data table template does not need to go through the approval chain again, which improves the audit efficiency and saves the approval resources.
  • the data importing method may further include a data table template generating step.
  • FIG. 5 is a flowchart of a data table template generating step in an embodiment, where the data table template generating step may include :
  • FIG. 6 is a schematic diagram of a data table template generation interface in an embodiment, where the data table template generation interface includes a title bar, an editable object window, an object attribute window, a field window, and a template browsing window, wherein the title
  • the bar includes a new button, a save button, an open button, a close button, an import button, and an export button.
  • S504 Receive the selected data table name by using a data table template generation interface.
  • the application terminal displays the data table template generation interface
  • the user can implement the function of creating a new data table template by clicking the new button, and the application terminal displays the selectable data after receiving the instruction of the user clicking the new button.
  • the table name the user selects one of the displayed data table names. For example, the user may first select a database, and then apply for the terminal to display the data table name of the data table corresponding to the database, and the user may select one of the displayed data table names.
  • S506 Display a field corresponding to the selected data table name.
  • the field corresponding to the data table name that is, all the fields in the data table corresponding to the data table name, and the obtained field are obtained. Display to the field window.
  • S508 Receive a selection instruction for the field and the input first verification rule for the selected field.
  • the application terminal displays the acquired field to the field window, so that the user selects a field required by the data table template, and after selecting the field, the application terminal displays the attribute of the selected field in the field attribute window, and the field window is displayed.
  • the first verification rule corresponding to the field input by the user is displayed, and the first verification rule may include an sql expression, a regular expression, a line processing, and a column processing.
  • S510 Generate a data table template according to the selected field and the first verification rule.
  • the application terminal After the user inputs the selected field and the first verification rule, the application terminal generates a data table template according to the selected field and the first verification rule, and the generated data table template may now go to the template window to For users to preview.
  • S512 Obtain a data table corresponding to the data table name, and verify the first verification rule by using data in the data table.
  • the application terminal acquires the data table corresponding to the data table name, and obtains the data in the data table, that is, obtains the data corresponding to the field selected by the user in the data table, so that the data may be firstly determined according to the data pair.
  • the data table template may be saved.
  • the application terminal may determine whether the first verification rule is all verified, when the first verification rule is not When all the verifications are passed, it is judged whether the template name of the data table template has been filled in, and if it is filled in, the data table template is saved.
  • the data table template can be saved by using the template name and stored in the directory of the user who created the template for easy searching.
  • the data table template can be generated by simple operation, and complicated operations are not required, thereby improving efficiency.
  • the method may further include: receiving the input permission configuration instruction corresponding to the data table template, and configuring the data table according to the permission configuration instruction.
  • Template permissions The obtaining the data table template corresponding to the data importing instruction may include: obtaining a user identifier corresponding to the data importing instruction; determining whether the right corresponding to the user identifier matches the authority of the data table template; and the user identifier corresponding to the permission and the data table template When the permissions are matched, the data table template corresponding to the data import instruction is obtained.
  • the input permission configuration instruction corresponding to the data table template may be received, where the permission configuration instruction may be an instruction for configuring the usage permission of the data table template, for example, only to the user itself. It can be seen that only the user itself can set the data table template, or the user set to a certain level can obtain the data table template and set the data table template.
  • the step of obtaining the data table template corresponding to the data importing instruction may include: acquiring a user identifier corresponding to the data importing instruction; determining whether the right corresponding to the user identifier matches the authority of the data table template, that is, determining that the data table template allows Whether there is a user identifier corresponding to the data import instruction in the user identifier of the access user, and when the authority corresponding to the user identifier matches the authority of the data table template, the data table template corresponding to the data import instruction is obtained, so that the data import can be continued.
  • the permission of the data table template when the data table template is generated, the permission of the data table template is configured, and the data permission of the field enables the user to define the visibility and setting of the data by the user.
  • obtaining the permission level of the user who inputs the data importing instruction, and obtaining the data table template of the data to be imported may include receiving the identifier of the data table template input by the user, and determining whether the user's permission level can be Obtain the data table template, if possible, obtain the data table template of the data to be imported, and display it. If not, the user is insufficiently authorized to improve the security of the data table template.
  • FIG. 2, FIG. 4, and FIG. 5 may include a plurality of sub-steps or stages, which are not necessarily performed at the same time, but may be executed at different times.
  • the order of execution of the sub-steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least a portion of the sub-steps or stages of the other steps or other steps.
  • a data importing apparatus including: a first receiving module 100, a reading module 200, an importing module 300, a first verifying module 400, a first modifying module 500, and The first storage module 600, wherein:
  • the first receiving module 100 is configured to receive a data import instruction, and obtain a data table template corresponding to the data import instruction.
  • the reading module 200 is configured to read a data file to be imported corresponding to the data importing instruction.
  • the import module 300 is configured to detect whether the order of the fields in the data file to be imported is the same as the order of the fields in the data table template. When the same, the data in the data file to be imported is imported into the data table template.
  • the first verification module 400 is configured to verify the imported data according to the verification rule in the data table template.
  • the first modification module 500 is configured to: when the verification fails, receive a modification instruction for the data that fails the verification, and modify the data that fails the verification according to the modification instruction.
  • the first storage module 600 is configured to re-verify the modified data until the modified data is successfully verified, and then the data with successful verification is stored.
  • the first receiving module 100 may include:
  • the first instruction receiving unit is configured to receive the input service series selection instruction, and select a corresponding service series according to the service series selection instruction.
  • the first data table template obtaining unit is configured to acquire and display a data table template corresponding to the selected service series.
  • the second instruction receiving unit is configured to receive the input selection instruction for the data table template.
  • the selecting unit is configured to obtain a corresponding data table template according to the selection instruction.
  • the data importing device may further include:
  • the data verification rule obtaining module is configured to: when the imported data fails the verification by the verification rule in the data table template, obtain a data verification rule corresponding to the data that fails the verification.
  • the first display module is configured to display a data verification rule.
  • the data importing device may further include:
  • the first determining module is configured to determine whether the selected data table template carries an approval identifier.
  • the approval chain obtaining module is configured to obtain an approval chain corresponding to the data table template when the selected data table template carries the approval identifier.
  • the approval module is configured to send the data table template with successful data verification to the approval terminal corresponding to the current approval user in the approval chain for approval.
  • the second receiving module is configured to receive the current approval result returned by the current approval terminal; when the current approval result indicates that the approval is passed, continue to acquire the next approval terminal in the selected approval chain, and send the data table template to the next
  • the approval terminal approves the approval, and all the approval terminals corresponding to the approval users in the approval chain approve the data sheet template.
  • the data importing device may further include:
  • the second modification module is configured to modify the data in the data table template when the current approval result indicates that the approval fails.
  • the sending module is configured to send the modified data table template to the current approval terminal corresponding to the current approval result.
  • the data importing device may further include:
  • the second display module is configured to display a data table template generation interface when receiving the input data table template generation instruction.
  • the third receiving module is configured to receive the selected data table name by using the data table template generation interface.
  • the third display module is configured to display a field corresponding to the selected data table name.
  • a fourth receiving module configured to receive a selection instruction for the field and the input first verification rule for the selected field.
  • the data table template generating module is configured to generate a data table template according to the selected field and the first verification rule.
  • the second verification module is configured to obtain a data table corresponding to the data table name, and verify the first verification rule by using data in the data table.
  • the second storage module is configured to save the data table template when the first verification rule is successfully verified.
  • the data importing device may further include:
  • the permission configuration module is configured to receive the input permission configuration instruction corresponding to the data table template, and configure the permission of the data table template according to the permission configuration instruction.
  • the first receiving module 100 includes:
  • the user identifier obtaining unit is configured to acquire a user identifier corresponding to the data importing instruction.
  • the first determining unit is configured to determine whether the authority corresponding to the user identifier matches the permission of the data table template.
  • the second data table template obtaining unit is configured to acquire a data table template corresponding to the data importing instruction when the authority corresponding to the user identifier matches the authority of the data table template.
  • Each of the above-described data importing devices may be implemented in whole or in part by software, hardware, and a combination thereof.
  • Each of the above modules may be embedded in or independent of the processor in the computer device, or may be stored in a memory in the computer device in a software form, so that the processor invokes the operations corresponding to the above modules.
  • a computer device which may be a terminal, and its internal structure diagram may be as shown in FIG.
  • the computer device includes a processor, memory, network interface, display screen, and input device connected by a system bus.
  • the processor of the computer device is used to provide computing and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium, an internal memory.
  • the non-volatile storage medium stores operating system and computer readable instructions.
  • the internal memory provides an environment for operation of an operating system and computer readable instructions in a non-volatile storage medium.
  • the network interface of the computer device is used to communicate with an external terminal via a network connection.
  • the computer readable instructions are executed by a processor to implement a data import method.
  • the display screen of the computer device may be a liquid crystal display or an electronic ink display screen
  • the input device of the computer device may be a touch layer covered on the display screen, or may be a button, a trackball or a touchpad provided on the computer device casing. It can also be an external keyboard, trackpad or mouse.
  • FIG. 8 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation of the computer device to which the solution of the present application is applied.
  • the specific computer device may It includes more or fewer components than those shown in the figures, or some components are combined, or have different component arrangements.
  • a computer device comprising a memory and one or more processors, the memory storing computer readable instructions, the computer readable instructions being executed by the processor, causing the one or more processors to perform the steps of: receiving data import instructions, And obtaining a data table template corresponding to the data import instruction; reading the data file to be imported corresponding to the data import instruction; detecting whether the field order in the data file to be imported is the same as the field order in the data table template, and when the same, Importing the data to be imported into the data table template; verifying the imported data according to the verification rule in the data table template; when the verification fails, receiving the modification instruction for the data that fails the verification, And the data that fails the verification is modified according to the modification instruction; if the modified data is re-verified until the modified data is successfully verified, the data that is successfully verified is stored.
  • the receiving the data importing instruction implemented by the processor when executing the computer readable instruction and acquiring the data table template corresponding to the data importing instruction may include: receiving the input service series selection instruction, and selecting according to the service series.
  • the instruction selects a corresponding service series; acquires and displays a data table template corresponding to the selected service series; receives an input selection instruction for the data table template; and acquires a corresponding data table template according to the selection instruction.
  • the processor executes the computer readable instructions, the following steps are further implemented: when the imported data fails verification by the verification rule in the data table template, the data verification rule corresponding to the data that fails the verification is obtained. ; Display data validation rules.
  • the method may further include: determining whether the selected data table template carries an approval identifier; and when the selected data table template carries When the label is approved, the approval chain corresponding to the data sheet template is obtained; the data sheet template with the data verification success is sent to the approval terminal corresponding to the current approval user in the approval chain for approval; and the current approval result returned by the current approval terminal is received; When the approval result indicates that the approval is passed, the next approval terminal in the selected approval chain is continuously obtained, and the data sheet template is sent to the next approval terminal for approval until the approval terminal corresponding to all the approval users in the approval chain has data. The approval of the form template is passed.
  • the processor executes the computer readable instructions, the following steps are further implemented: when the current approval result indicates that the approval fails, the data in the data table template is modified; and the modified data table template is sent to and The current approval terminal corresponding to the current approval result.
  • the processor executes the computer readable instructions
  • the following steps are further implemented: when receiving the input data table template generation instruction, displaying a data table template generation interface; receiving the selected data table name through the data table template generation interface Displaying a field corresponding to the selected data table name; receiving a selection instruction for the field and the input first verification rule for the selected field; generating a data table template according to the selected field and the first verification rule; Obtaining a data table corresponding to the data table name, and verifying the first verification rule by using data in the data table; when the first verification rule is successfully verified, saving the data table template.
  • the processor may further include: receiving the input permission configuration instruction corresponding to the data table template. And arranging the permission of the data table template according to the permission configuration instruction; and the obtaining the data table template corresponding to the data import instruction implemented by the processor when executing the computer readable instruction may include: obtaining a user identifier corresponding to the data import instruction; Whether the authority corresponding to the user identifier matches the authority of the data table template; when the authority corresponding to the user identifier matches the authority of the data table template, the data table template corresponding to the data import instruction is obtained.
  • One or more non-volatile storage media storing computer readable instructions, when executed by one or more processors, cause one or more processors to perform the steps of: receiving data import instructions and obtaining a data table template corresponding to the data import instruction; reading the data file to be imported corresponding to the data import instruction; detecting whether the field order in the data file to be imported is the same as the field order in the data table template, and when the same, the The data in the imported data file is imported into the data table template; the imported data is verified according to the verification rule in the data table template; when the verification fails, the modification instruction for the data that fails the verification is received, and according to The modification instruction modifies the data that failed the verification; and re-verifies the modified data until the modified data is successfully verified, and the data that is successfully verified is stored.
  • the receiving the data import instruction implemented by the processor when the computer readable instruction is executed by the processor, and acquiring the data table template corresponding to the data import instruction may include: receiving the input service series selection instruction, and according to the service series Selecting a command to select a corresponding service series; acquiring and displaying a data table template corresponding to the selected service series; receiving an input selection instruction for the data table template; and acquiring a corresponding data table template according to the selection instruction.
  • the following steps are further implemented: when the imported data fails verification by the verification rule in the data table template, the data verification corresponding to the data that fails the verification is obtained. Rule; display data validation rules.
  • the method may further include: determining whether the selected data table template carries an approval identifier; and when the selected data table template is carried When there is an approval mark, obtain an approval chain corresponding to the data table template; send the data table template with successful data verification to the approval terminal corresponding to the current approval user in the approval chain for approval; receive the current approval result returned by the current approval terminal; When the current approval result indicates that the approval is passed, the next approval terminal in the selected approval chain is continuously obtained, and the data sheet template is sent to the next approval terminal for approval until all the approval terminals corresponding to the approval users in the approval chain are Approval of the data sheet template was passed.
  • the computer readable instructions are further executed by the processor to: when the current approval result indicates that the approval has not passed, modify the data in the data table template; send the modified data table template to The current approval terminal corresponding to the current approval result.
  • the computer readable instructions are further executed by the processor to: when receiving the input data table template generation instruction, displaying a data table template generation interface; receiving the selected data table through the data table template generation interface a name; displaying a field corresponding to the selected data table name; receiving a selection instruction for the field and the input first verification rule for the selected field; generating a data table template according to the selected field and the first verification rule Obtaining a data table corresponding to the data table name, and verifying the first verification rule by using data in the data table; when the first verification rule is successfully verified, saving the data table template.
  • the method may further include: receiving the input permission configuration corresponding to the data table template.
  • Non-volatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory can include random access memory (RAM) or external cache memory.
  • RAM is available in a variety of formats, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronization chain.
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDRSDRAM double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • Synchlink DRAM SLDRAM
  • Memory Bus Radbus
  • RDRAM Direct RAM
  • DRAM Direct Memory Bus Dynamic RAM
  • RDRAM Memory Bus Dynamic RAM

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

一种数据导入方法,包括:接收数据导入指令,并获取与所述数据导入指令对应的数据表模板;读取与所述数据导入指令对应的待导入数据文件;检测所述待导入数据文件中的字段顺序与所述数据表模板中的字段顺序是否相同,当相同时,则将所述待导入数据文件中的数据导入到所述数据表模板中;根据所述数据表模板中的校验规则对导入的数据进行校验;当校验失败时,则接收针对校验失败的数据的修改指令,并根据所述修改指令对校验失败的数据进行修改;对修改后的数据重新进行校验直至修改后的数据校验成功时,则将校验成功的数据进行存储。

Description

数据导入方法、装置、计算机设备和存储介质
相关申请的交叉引用
本申请要求于2018年4月19日提交中国专利局,申请号为2018103554801,申请名称为“数据导入方法、装置、计算机设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及一种数据导入方法、装置、计算机设备和存储介质。
背景技术
随着信息技术的发展,一般会将用户的业务数据或者关键信息等存储在数据库中,为了实现这种功能,在开发过程中,工程师通常会根据用户的业务需求在数据库中建立一个多张数据表,然后用户通过该数据表输入数据,以实现数据入库。
然而,发明人意识到,该种方式下,需要人为的检查需要导入的业务数据的正确性,效率降低。
发明内容
根据本申请公开的各种实施例,提供一种数据导入方法、装置、计算机设备和存储介质。
一种数据导入方法,所述方法包括:
接收数据导入指令,并获取与所述数据导入指令对应的数据表模板;
读取与所述数据导入指令对应的待导入数据文件;
检测所述待导入数据文件中的字段顺序与所述数据表模板中的字段顺序是否相同,当相同时,则将所述待导入数据文件中的数据导入到所述数据表模板中;
根据所述数据表模板中的校验规则对导入的数据进行校验;
当校验失败时,则接收针对校验失败的数据的修改指令,并根据所述修改指令对校验失败的数据进行修改;及
对修改后的数据重新进行校验直至修改后的数据校验成功时,则将校验成功的数据进行存储。
一种数据导入装置,所述装置包括:
第一接收模块,用于接收数据导入指令,并获取与所述数据导入指令对应的数据表模板;
读取模块,用于读取与所述数据导入指令对应的待导入数据文件;
导入模块,用于检测所述待导入数据文件中的字段顺序与所述数据表模板中的字段顺序是否相同,当相同时,则将所述待导入数据文件中的数据导入到所述数据表模板中;
第一校验模块,用于根据所述数据表模板中的校验规则对导入的数据进行校验;
第一修改模块,用于当校验失败时,则接收针对校验失败的数据的修改指令,并根据所述修改指令对校验失败的数据进行修改;及
第一存储模块,用于对修改后的数据重新进行校验直至修改后的数据校验成功时,则将校验成功的数据进行存储。
一种计算机设备,包括存储器和一个或多个处理器,存储器中存储有计算机可读指令,计算机可读指令被处理器执行时实现本申请任意一个实施例中提供的数据导入方法的步骤。
一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器实现本申请任意一个实施例中提供的数据导入方法的步骤。
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征和优点将从说明书、附图以及权利要求书变得明显。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。
图1为根据一个或多个实施例中数据导入方法的应用场景图。
图2为根据一个或多个实施例中数据导入方法的流程示意图。
图3为根据一个或多个实施例中数据表模板选择界面的示意图。
图4为根据一个或多个实施例中审批步骤的流程图。
图5为根据一个或多个实施例中的数据表模板生成步骤的流程图。
图6为根据一个或多个实施例中数据表模板生成界面的示意图。
图7为根据一个或多个实施例中数据导入装置的框图。
图8为根据一个或多个实施例中计算机设备的框图。
具体实施方式
为了使本申请的技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
本申请提供的数据导入方法,可以应用于如图1所示的应用环境中。用户终端通过网络分别与数据库和审批终端进行通信。用户终端接收用户输入的数据导入指令,则获取 到与该数据导入指令对应的数据表模板,并根据用户输入的数据导入指令读取相应的待导入数据文件,检测该待导入数据文件中的字段顺序与数据表模板中的字段顺序是否相同,只有相同的前提下,才会将数据导入数据表模板,这样才能保证导入数据的顺序正确,且在导入数据后,通过数据表模板中的校验规则对导入的数据进行校验,只有导入的数据校验成功时,才会将导入的校验成功的数据进行存储。用户终端和审批终端可以但不限于是各种个人计算机、笔记本电脑、智能手机、平板电脑和便携式可穿戴设备。
在一个实施例中,如图2所示,提供了一种数据导入方法,以该方法应用于图1中的用户终端为例进行说明,包括以下步骤:
S202:接收数据导入指令,并获取与数据导入指令对应的数据表模板。
具体地,数据导入指令是由用户输入到申请终端的,用于指示申请终端执行数据导入动作的指令,其中该数据导入指令可以是选择数据表模板的指令,从而当用户输入数据导入指令时,也即选择了对应的数据表模板。
数据表模板是预先建立的用于导入数据的模板,其中包括字段、数据校验规则等,数据表模板用于存储导入的数据,并将导入的数据以数据表模板的形式存储到数据库中,以实现导入的数据的存储。
S204:读取与数据导入指令对应的待导入数据文件。
具体地,待导入数据文件是待导入到数据库中的数据存储的文件,其中可以是csv文件、xls文件、xlsx文件。用户可以在用户终端上选择待导入的数据文件,从而用户终端可以获取到用户所选择的待导入数据文件。
S206:检测待导入数据文件中的字段顺序与数据表模板中的字段顺序是否相同,当相同时,则将待导入数据文件中的数据导入到数据表模板中。
具体地,为了保证数据在数据模板中的顺序不变,可以检测待导入数据文件中的字段顺序与数据表模板中的字段顺序是否相同,只有相同时,才会允许将待导入数据文件中的数据导入到数据表模板中。当待导入数据文件中的字段顺序与数据表模板中的字段顺序不相同时,可以输出报错信息至用户终端的界面以提示用户修改待导入数据文件中的字段的顺序。且可选地,用户终端可以将用户所选择的数据表模板中的字段顺序显示到用户终端的显示界面上,以提示用户如何调整待导入数据文件中的字段的顺序。例如,可以在用户选择了数据表模板后,即将所选择的数据表模板的字段顺序显示到用户终端的显示界面,从而在用户选中待导入数据文件前,即对待导入数据文件中的字段进行调整,或者还可以在用户终端输出报错信息后,再将数据表模板的字段顺序显示到用户终端的显示界面,以供用户参考,进而可以准确地调整待导入数据文件中的字段顺序。
S208:根据数据表模板中的校验规则对导入的数据进行校验。
具体地,当用户终端将待导入数据文件中的数据导入到数据表模板后,可以通过数据表模板中的校验规则对导入的数据进行校验,例如格式校验、内容完整性校验、sql表达式、正则表达式、行加工或列加工等。其中sql表达式、正则表达式、行加工或列加工 可以包括字段的运算规则,例如字段A+字段B=字段C。
S210:当校验失败时,则接收针对校验失败的数据的修改指令,并根据修改指令对校验失败的数据进行修改。
具体地,修改指令是由用户输入到用户终端的用于修改校验失败的数据的,例如,用户终端可以直接将校验失败的数据显示到用户终端的显示界面中,或者用户终端将所有的数据显示到用户终端的显示界面中,并对校验失败的数据进行标注,例如标红、加高亮等以与校验成功的数据进行区分,从而用户可以直接获取到校验失败的数据,并进行修改。
在实际应用中,以待导入数据文件为csv文件,数据表模板未xls文件为例,该csv文件的特点是仅保留数据但不保留格式,假设某一数据在csv文件中的是以0开头,例如001等,当导入到xls文件中时,由于xls文件的特性,以0开头的数据,通常会将0删除掉,因此为了避免该种情况的发生,可以预先设置校验规则,即xls文件中该数据是以0开头的,并以文本样式显示,当检测到数据并不是以0开头时,则进行报错,由用户手动更改输入到数据表模板中的数据,或者可以是申请终端主动获取到显示错误的数据,并将显示错误的数据的格式修改为文本样式后,重新导入数据,以使得数据正确显示。
S212:对修改后的数据重新进行校验直至修改后的数据校验成功时,则将校验成功的数据进行存储。
具体地,当用户对校验失败的数据进行修改后,重新将修改后的数据提交至用户终端,用户终端通过数据表模板中的校验规则对修改后的数据再次进行校验,直至所有的数据校验成功,则将校验成功的数据进行存储。可选地,用户终端可以设置中止机制,即当用户对数据的修改次数超过预设值时,则直接拒绝本次数据导入,例如用户对同一数据修改超过了5次,则申请终端输出拒绝数据导入的信息,并可以设置在一段时间内,不允许用户再次导入数据。
上述数据导入方法,终端接收到数据导入指令时,则获取到与数据导入指令对应的数据表模板,并判断待导入数据文件中的字段顺序与数据表模板中的字段顺序是否相同,只有相同的情况下,才会将待导入数据文件中的数据导入到数据表模板中,且通过数据表模板中的校验规则自动对导入的数据进行校验,在校验失败的情况下,还允许用户进行数据修改,并保存校验成功的数据,不需要人为的检查需要导入的业务数据的正确性,提高了效率。
在其中一个实施例中,上述步骤S202,即接收数据导入指令,并获取与数据导入指令对应的数据表模板,可以包括:接收输入的业务系列选择指令,并根据业务系列选择指令选择对应的业务系列;获取并显示与所选择的业务系列对应的数据表模板;接收输入的针对数据表模板的选择指令;根据选择指令获取对应的数据表模板。
具体地,业务系列选择指令是用户向用户终端输入的用于选择一个业务系列的指令,其中业务系列是用于表示业务类型的,例如可以包括寿险、产险、养老险、其他险等。
参见图3,图3为一实施例中数据表模板选择界面的示意图,该数据表模板选择界面 包括业务系列选择模块、数据表模板选择模块、待导入数据文件选择模块以及显示模块,其中业务系统选择模块中存在下拉按钮,用户点击下拉按钮可以获取到所显示的所有业务系列,并通过点击指令选取其中一个,当用户选取到其中一个业务系列后,用户终端根据用户选取的业务系列显示对应的数据表模板,其中一个业务系列可能对应多个数据表模板。数据表模板选择模块中存在下拉按钮,用户点击下拉按钮可以获取到所显示的所有的数据表模板,并通过点击指令选取其中一个数据表模板,当用户选取到其中一个数据表模板后,用户终端可以将所选取的数据表模板显示到显示模块。可选地,用户还可以继续通过待导入数据文件选择模块选取待导入数据文件,其中可以通过浏览按钮进行,选取到用户终端中存储的文件,且当用户终端获取到用户所选取的待导入数据文件后,也可以将待导入数据文件显示到显示模块。
上述实施例中,可以通过用户的多步操作获取到所选择的数据表模板,使得数据表模板的选取更加准确。
在其中一个实施例中,上述数据导入方法还可以包括:当导入的数据通过数据表模板中的校验规则校验失败时,则获取校验失败的数据对应的数据校验规则;显示数据校验规则。
具体地,当导入的数据通过数据表模块中的校验规则校验失败时,用户终端可以获取到校验失败的数据所采用的对应的数据校验规则,将该数据校验规则显示到界面上,从而用户在修改该数据时,可以根据校验规则进行修改,以便于用户一次性将数据修改正确,这样可以提高用户的修改效率。具体地,数据校验规则可以对应显示到校验失败的数据后,与数据存在一一对应关系等。可选地,当在预设范围内,几个数据均校验失败,且对应相同的校验规则,则可以只显示一个校验规则。可选地,为了避免校验规则占据界面空间过大,可以将校验规则进行不完全显示,当用户通过鼠标移动到该校验规则处时,用户终端才将该校验规则进行显示。
上述实施例中,将校验失败的数据对应的校验规则显示到用户终端上,使得用户可以根据校验规则进行修改,以便于用户一次性将数据修改正确,这样可以提高用户的修改效率。
在其中一个实施例中,参阅图4,图4为一实施例中审批步骤的流程图,该审批步骤可以是在将导入的数据进行存储之前执行,该审批步骤可以包括:
S402:判断所选择的数据表模板是否携带有审批标识。
具体地,审批标识是用于表示数据表模板是否需要审批的标识,当导入到数据表模板中的数据发生更改时,则可能需要进行审批,其目的是为了保证重要数据不被非法分子篡改。即数据表模板中存在数据修改时,则可能需要进行审批,其中可以通过标志位的方式来标识所选择的数据表模板是否携带有审批标识。
S404:当所选择的数据表模板携带有审批标识时,获取与数据表模板对应的审批链。
具体地,当导入的数据在修改后校验成功后,用户终端判断出所选择的数据表模板 携带有审批标识,则获取到数据表模板对应的审批链,其中数据表模板对应的审批链可以存在多个,用户终端选取当前在线的且任务量最少的审批链对修改后的数据表模板进行审批,其中各个审批链的当前的处理量等于审批链中所有审批用户的总处理量比上所述审批链中的用户的数量,从而用户可以根据需要选择当前处理量最少的审批链进行审批,以便于提高审批的效率。
S406:将数据校验成功的数据表模板发送至审批链中当前审批用户对应的审批终端进行审批。
具体地,只有数据校验成功的数据表模板才会通过审批链进行审批,即导入当数据表模板中的数据存在更改,且数据表模板携带有审批标识时,则需要对该数据表模板进行审批,因此获取到审批链,并将数据表模板发送到审批链中的当前审批用户对应的审批终端进行审批。审批用户通过审批终端对修改的数据进行审批,该审批一般为实质审批,以防止修改的数据存在漏洞等。
S408:接收当前审批终端返回的当前审批结果。
S410:当当前审批结果表示审批通过时,则继续获取所选择的审批链中的下一审批终端,并将数据表模板发送至下一审批终端进行审批,直至审批链中所有的审批用户对应的审批终端对数据表模板的审批均通过。
具体地,申请终端获取用户所选择的审批链中的当前审批用户对应的当前审批终端,并将导入数据的数据表模板发送至该当前审批终端进行审批,申请终端接收到该当前审批终端返回当前审批结果,当当前审批结果表示审批通过时,则继续获取审批链中下一审批用户对应的下一审批终端,并将导入数据的数据表模板发送至所述下一审批终端进行审批,直至所述审批链中所有审批用户对所述导入数据的数据表模板审批完成。当审批链中所有的审批用户对应的审批终端对数据表模板的审批均通过,则将导入的数据进行存储。当审批链中存在审批用户对应的审批终端对数据表模板的审批未通过时,则不会将导入的数据进行存储。
上述实施例中,根据用户选择的审批链中的审批用户进行审批,按照一定顺序,使得审批有条不紊。且在终端将审批链发送给申请终端时,还可以给出各个审批链当前的处理量,从而用户可以根据需要选择当前处理量最少的审批链进行审批,以便于提高审批的效率。
在其中一个实施例中,上述数据导入方法还可以包括:当当前审批结果表示审批未通过时,则对数据表模板中的数据进行修改;将修改后的数据表模板发送至与当前审批结果对应的当前审批终端。
具体地,当当前审批终端返回的当前审批结果标识审批不通过时,申请终端对数据表模板中的数据再次进行修改,并在修改完成后重新提交修改后的导入数据的数据表模板,且申请终端在接收到该重新提交的修改后的导入数据的数据表模板后,获取到与该重新提交的修改后的导入数据的数据表模板对应的上次审批的当前审批终端,并将该修改后 的导入数据的数据表模板发送给该当前审批终端,从而可以避免重新再走一次审批链,导致审批资源的浪费。且可选地,在当前审批终端获取到修改后的导入数据的数据表模板后,可以将修改后的导入数据的数据表模板与修改前的导入数据的数据表模板进行比较,并比较后不相同的内容,即修改的内容进行标注,例如标红或者高亮等,以便于审批用户可以清楚的看到用户的修改的内容,从而提高审核效率。
上述实施例中,将修改后的数据表模板发送给上次审批不通过的当前审批终端,从而修改后的数据表模板不需要重新走一遍审批链,提高了审核效率,节约了审批资源。
在其中一个实施例中,该数据导入方法还可以包括一数据表模板生成步骤,参阅图5,图5为一实施例中的数据表模板生成步骤的流程图,该数据表模板生成步骤可以包括:
S502:当接收到输入的数据表模板生成指令时,显示数据表模板生成界面。
具体地,参见图6,图6为一实施例中数据表模板生成界面的示意图,该数据表模板生成界面包括标题栏、可修改对象窗口、对象属性窗口、字段窗口以及模板浏览窗口,其中标题栏包括新建按钮、保存按钮、打开按钮、关闭按钮、导入按钮以及导出按钮。当申请终端接收到用户点击模板开发按钮时,即申请终端接收到输入的数据表模板生成指令,申请终端则显示该数据表模板生成界面。
S504:通过数据表模板生成界面接收选择的数据表名称。
具体地,当申请终端显示该数据表模板生成界面的时候,用户可以通过点击新建按钮来实现新建数据表模板的功能,且申请终端在接收到用户点击新建按钮的指令后,显示可选择的数据表名称,用户从所显示的数据表名称中选择一个。例如用户可以先选择数据库,然后申请终端将数据库对应的数据表的数据表名称进行显示,用户再从所显示的数据表名称中选择一个即可。
S506:显示与所选择的数据表名称对应的字段。
具体地,当申请终端接收到用户所选择的数据表名称后,获取到与该数据表名称对应的字段,即该数据表名称对应的数据表中的所有的字段,并将所获取到的字段显示到字段窗口。
S508:接收针对字段的选择指令以及输入的针对所选择的字段的第一校验规则。
具体地,申请终端将获取到的字段显示到字段窗口,从而用户将数据表模板需要的字段进行选择,并在选择字段后,申请终端在字段属性窗口显示选择的字段的属性,且在字段窗口处显示用户输入的与字段对应的第一校验规则,该第一校验规则可以包括sql表达式、正则表达式、行加工和列加工等。
S510:根据所选择的字段以及第一校验规则生成数据表模板。
具体地,在用户输入了所选择的字段以及第一校验规则后,申请终端根据所选择的字段和第一校验规则生成数据表模板,该生成的数据表模板可以现在到模板窗口,以供用户进行预览。
S512:获取与数据表名称对应的数据表,并通过数据表中的数据检验第一校验规则。
具体地,申请终端获取与数据表名称对应的数据表,并获取到数据表中的数据,即获取到数据表中的与用户所选择的字段对应的数据,从而可以首先根据该些数据对第一校验规则进行校验。例如当第一校验规则包含字段A*字段B=字段C的校验规则时,则申请终端可以获取到字段A对应的第一数据,字段B对应的第二数据和字段C对应的第三数据,判断第一数据乘以第二数据是否等于第三数据,当相等时,则表示第一校验规则校验成功,当不相等时,则表示第一校验规则校验失败。
S514:当第一校验规则校验成功时,则保存数据表模板。
具体地,当第一校验规则校验成功时,则可以保存数据表模板,在保存数据表模板时,申请终端可以判断第一校验规则是否全部校验通过,当第一校验规则未全部校验通过时,则判断数据表模板的模板名称是否已填写,如果已填写则保存数据表模板。其中数据表模板的保存方式可以是以模板名称进行标识,并存储到创建该模板的用户的名录下,以便于查找。
上述实施例中,通过简单地操作既可以生成数据表模板,不需要复杂的操作,提高了效率。
在其中一个实施例中,在根据所选择的字段以及第一校验规则生成数据表模板之后,还可以包括:接收输入的与数据表模板对应的权限配置指令,并根据权限配置指令配置数据表模板的权限。从而获取与数据导入指令对应的数据表模板,可以包括:获取与数据导入指令对应的用户标识;判断用户标识对应的权限与数据表模板的权限是否匹配;当用户标识对应的权限与数据表模板的权限匹配时,则获取与数据导入指令对应的数据表模板。
具体地,在生成数据表模板时,还可以接收输入的与数据表模板对应的权限配置指令,该权限配置指令可以是用于配置数据表模板的使用权限的指令,例如设置成只对用户本身可见,或者只有用户本身可以对该数据表模板进行设置,或者设置成一定级别的用户可以获取到该数据表模板,并对数据表模板进行设置。
从而在获取到与数据导入指令对应的数据表模板的步骤,可以包括获取与数据导入指令对应的用户标识;判断用户标识对应的权限与数据表模板的权限是否匹配,即判断数据表模板所允许的访问用户的用户标识中是否存在与数据导入指令对应的用户标识,当用户标识对应的权限与数据表模板的权限匹配时,则获取与数据导入指令对应的数据表模板,从而可以继续数据导入。
上述实施例中,在生成该数据表模板时,配置该数据表模板的权限,字段的数据权限能够让用户自己定义用户对数据的可见度和设置。当接收到数据导入指令时,则获取输入数据导入指令的用户的权限等级,获取待导入数据的数据表模板的步骤可以包括,接收用户输入的数据表模板的标识,判断用户的权限等级是否可以获取到该数据表模板,如果可以,则获取待导入数据的数据表模板,并进行显示,如果不可以,则提示用户权限不足,提高了数据表模板的安全性。
应该理解的是,虽然图2、图4、图5的流程图中的各个步骤按照箭头的指示依次显 示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2、图4、图5中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。
在一个实施例中,如图7所示,提供了一种数据导入装置,包括:第一接收模块100、读取模块200、导入模块300、第一校验模块400、第一修改模块500和第一存储模块600,其中:
第一接收模块100,用于接收数据导入指令,并获取与数据导入指令对应的数据表模板。
读取模块200,用于读取与数据导入指令对应的待导入数据文件。
导入模块300,用于检测待导入数据文件中的字段顺序与数据表模板中的字段顺序是否相同,当相同时,则将待导入数据文件中的数据导入到数据表模板中。
第一校验模块400,用于根据数据表模板中的校验规则对导入的数据进行校验。
第一修改模块500,用于当校验失败时,则接收针对校验失败的数据的修改指令,并根据修改指令对校验失败的数据进行修改。
第一存储模块600,用于对修改后的数据重新进行校验直至修改后的数据校验成功时,则将校验成功的数据进行存储。
在其中一个实施例中,第一接收模块100可以包括:
第一指令接收单元,用于接收输入的业务系列选择指令,并根据业务系列选择指令选择对应的业务系列。
第一数据表模板获取单元,用于获取并显示与所选择的业务系列对应的数据表模板。
第二指令接收单元,用于接收输入的针对数据表模板的选择指令。
选择单元,用于根据选择指令获取对应的数据表模板。
在其中一个实施例中,该数据导入装置还可以包括:
数据校验规则获取模块,用于当导入的数据通过数据表模板中的校验规则校验失败时,则获取校验失败的数据对应的数据校验规则。
第一显示模块,用于显示数据校验规则。
在其中一个实施例中,该数据导入装置还可以包括:
第一判断模块,用于判断所选择的数据表模板是否携带有审批标识。
审批链获取模块,用于当所选择的数据表模板携带有审批标识时,获取与数据表模板对应的审批链。
审批模块,用于将数据校验成功的数据表模板发送至审批链中当前审批用户对应的审批终端进行审批。
第二接收模块,用于接收当前审批终端返回的当前审批结果;当当前审批结果表示审批通过时,则继续获取所选择的审批链中的下一审批终端,并将数据表模板发送至下一审批终端进行审批,直至审批链中所有的审批用户对应的审批终端对数据表模板的审批均通过。
在其中一个实施例中,该数据导入装置还可以包括:
第二修改模块,用于当当前审批结果表示审批未通过时,则对数据表模板中的数据进行修改。
发送模块,用于将修改后的数据表模板发送至与当前审批结果对应的当前审批终端。
在其中一个实施例中,该数据导入装置还可以包括:
第二显示模块,用于当接收到输入的数据表模板生成指令时,显示数据表模板生成界面。
第三接收模块,用于通过数据表模板生成界面接收选择的数据表名称。
第三显示模块,用于显示与所选择的数据表名称对应的字段。
第四接收模块,用于接收针对字段的选择指令以及输入的针对所选择的字段的第一校验规则。
数据表模板生成模块,用于根据所选择的字段以及第一校验规则生成数据表模板。
第二校验模块,用于获取与数据表名称对应的数据表,并通过数据表中的数据检验第一校验规则。
第二存储模块,用于当第一校验规则校验成功时,则保存数据表模板。
在其中一个实施例中,该数据导入装置还可以包括:
权限配置模块,用于接收输入的与数据表模板对应的权限配置指令,并根据权限配置指令配置数据表模板的权限。
第一接收模块100包括:
用户标识获取单元,用于获取与数据导入指令对应的用户标识。
第一判断单元,用于判断用户标识对应的权限与数据表模板的权限是否匹配。
第二数据表模板获取单元,用于当用户标识对应的权限与数据表模板的权限匹配时,则获取与数据导入指令对应的数据表模板。
关于数据导入装置的具体限定可以参见上文中对于数据导入方法的限定,在此不再赘述。上述数据导入装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。
在一个实施例中,提供了一种计算机设备,该计算机设备可以是终端,其内部结构图可以如图8所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口、显示屏和输入装置。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计 算机可读指令。该内存储器为非易失性存储介质中的操作系统和计算机可读指令的运行提供环境。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机可读指令被处理器执行时以实现一种数据导入方法。该计算机设备的显示屏可以是液晶显示屏或者电子墨水显示屏,该计算机设备的输入装置可以是显示屏上覆盖的触摸层,也可以是计算机设备外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。
本领域技术人员可以理解,图8中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。
一种计算机设备,包括存储器和一个或多个处理器,存储器中储存有计算机可读指令,计算机可读指令被处理器执行时,使得一个或多个处理器执行以下步骤:接收数据导入指令,并获取与数据导入指令对应的数据表模板;读取与数据导入指令对应的待导入数据文件;检测待导入数据文件中的字段顺序与数据表模板中的字段顺序是否相同,当相同时,则将待导入数据文件中的数据导入到数据表模板中;根据数据表模板中的校验规则对导入的数据进行校验;当校验失败时,则接收针对校验失败的数据的修改指令,并根据修改指令对校验失败的数据进行修改;对修改后的数据重新进行校验直至修改后的数据校验成功时,则将校验成功的数据进行存储。
在一个实施例中,处理器执行计算机可读指令时所实现的接收数据导入指令,并获取与数据导入指令对应的数据表模板,可以包括:接收输入的业务系列选择指令,并根据业务系列选择指令选择对应的业务系列;获取并显示与所选择的业务系列对应的数据表模板;接收输入的针对数据表模板的选择指令;根据选择指令获取对应的数据表模板。
在一个实施例中,处理器执行计算机可读指令时还实现以下步骤:当导入的数据通过数据表模板中的校验规则校验失败时,则获取校验失败的数据对应的数据校验规则;显示数据校验规则。
在一个实施例中,处理器执行计算机可读指令时所实现的将导入的数据进行存储之前,还可以包括:判断所选择的数据表模板是否携带有审批标识;当所选择的数据表模板携带有审批标识时,获取与数据表模板对应的审批链;将数据校验成功的数据表模板发送至审批链中当前审批用户对应的审批终端进行审批;接收当前审批终端返回的当前审批结果;当当前审批结果表示审批通过时,则继续获取所选择的审批链中的下一审批终端,并将数据表模板发送至下一审批终端进行审批,直至审批链中所有的审批用户对应的审批终端对数据表模板的审批均通过。
在一个实施例中,处理器执行计算机可读指令时还实现以下步骤:当当前审批结果表示审批未通过时,则对数据表模板中的数据进行修改;将修改后的数据表模板发送至与当前审批结果对应的当前审批终端。
在一个实施例中,处理器执行计算机可读指令时还实现以下步骤:当接收到输入的数据表模板生成指令时,显示数据表模板生成界面;通过数据表模板生成界面接收选择的 数据表名称;显示与所选择的数据表名称对应的字段;接收针对字段的选择指令以及输入的针对所选择的字段的第一校验规则;根据所选择的字段以及第一校验规则生成数据表模板;获取与数据表名称对应的数据表,并通过数据表中的数据检验第一校验规则;当第一校验规则校验成功时,则保存数据表模板。
在一个实施例中,处理器执行计算机可读指令时所实现的根据所选择的字段以及第一校验规则生成数据表模板之后,还可以包括:接收输入的与数据表模板对应的权限配置指令,并根据权限配置指令配置数据表模板的权限;从而处理器执行计算机可读指令时所实现的获取与数据导入指令对应的数据表模板,可以包括:获取与数据导入指令对应的用户标识;判断用户标识对应的权限与数据表模板的权限是否匹配;当用户标识对应的权限与数据表模板的权限匹配时,则获取与数据导入指令对应的数据表模板。
一个或多个存储有计算机可读指令的非易失性存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行以下步骤:接收数据导入指令,并获取与数据导入指令对应的数据表模板;读取与数据导入指令对应的待导入数据文件;检测待导入数据文件中的字段顺序与数据表模板中的字段顺序是否相同,当相同时,则将待导入数据文件中的数据导入到数据表模板中;根据数据表模板中的校验规则对导入的数据进行校验;当校验失败时,则接收针对校验失败的数据的修改指令,并根据修改指令对校验失败的数据进行修改;对修改后的数据重新进行校验直至修改后的数据校验成功时,则将校验成功的数据进行存储。
在一个实施例中,计算机可读指令被处理器执行时所实现的接收数据导入指令,并获取与数据导入指令对应的数据表模板,可以包括:接收输入的业务系列选择指令,并根据业务系列选择指令选择对应的业务系列;获取并显示与所选择的业务系列对应的数据表模板;接收输入的针对数据表模板的选择指令;根据选择指令获取对应的数据表模板。
在一个实施例中,计算机可读指令被处理器执行时还实现以下步骤:当导入的数据通过数据表模板中的校验规则校验失败时,则获取校验失败的数据对应的数据校验规则;显示数据校验规则。
在一个实施例中,计算机可读指令被处理器执行时所实现的将导入的数据进行存储之前,还可以包括:判断所选择的数据表模板是否携带有审批标识;当所选择的数据表模板携带有审批标识时,获取与数据表模板对应的审批链;将数据校验成功的数据表模板发送至审批链中当前审批用户对应的审批终端进行审批;接收当前审批终端返回的当前审批结果;当当前审批结果表示审批通过时,则继续获取所选择的审批链中的下一审批终端,并将数据表模板发送至下一审批终端进行审批,直至审批链中所有的审批用户对应的审批终端对数据表模板的审批均通过。
在一个实施例中,计算机可读指令被处理器执行时还实现以下步骤:当当前审批结果表示审批未通过时,则对数据表模板中的数据进行修改;将修改后的数据表模板发送至与当前审批结果对应的当前审批终端。
在一个实施例中,计算机可读指令被处理器执行时还实现以下步骤:当接收到输入的数据表模板生成指令时,显示数据表模板生成界面;通过数据表模板生成界面接收选择的数据表名称;显示与所选择的数据表名称对应的字段;接收针对字段的选择指令以及输入的针对所选择的字段的第一校验规则;根据所选择的字段以及第一校验规则生成数据表模板;获取与数据表名称对应的数据表,并通过数据表中的数据检验第一校验规则;当第一校验规则校验成功时,则保存数据表模板。
在一个实施例中,计算机可读指令被处理器执行时所实现的根据所选择的字段以及第一校验规则生成数据表模板之后,还可以包括:接收输入的与数据表模板对应的权限配置指令,并根据权限配置指令配置数据表模板的权限;从而计算机可读指令被处理器执行时所实现的获取与数据导入指令对应的数据表模板,可以包括:获取与数据导入指令对应的用户标识;判断用户标识对应的权限与数据表模板的权限是否匹配;当用户标识对应的权限与数据表模板的权限匹配时,则获取与数据导入指令对应的数据表模板。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一非易失性计算机可读取存储介质中,该计算机可读指令在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。

Claims (20)

  1. 一种数据导入方法,包括:
    接收数据导入指令,并获取与所述数据导入指令对应的数据表模板;
    读取与所述数据导入指令对应的待导入数据文件;
    检测所述待导入数据文件中的字段顺序与所述数据表模板中的字段顺序是否相同,当相同时,则将所述待导入数据文件中的数据导入到所述数据表模板中;
    根据所述数据表模板中的校验规则对导入的数据进行校验;
    当校验失败时,则接收针对校验失败的数据的修改指令,并根据所述修改指令对校验失败的数据进行修改;及
    对修改后的数据重新进行校验直至修改后的数据校验成功时,则将校验成功的数据进行存储。
  2. 根据权利要求1所述的方法,其特征在于,所述接收数据导入指令,并获取与所述数据导入指令对应的数据表模板,包括:
    接收输入的业务系列选择指令,并根据所述业务系列选择指令选择对应的业务系列;
    获取并显示与所选择的业务系列对应的数据表模板;
    接收输入的针对所述数据表模板的选择指令;及
    根据所述选择指令获取对应的数据表模板。
  3. 根据权利要求1所述的方法,其特征在于,还包括:
    当导入的数据通过数据表模板中的校验规则校验失败时,则获取校验失败的数据对应的数据校验规则;及
    显示所述数据校验规则。
  4. 根据权利要求1至3任意一项所述的方法,其特征在于,所述将导入的数据进行存储之前,还包括:
    判断所选择的数据表模板是否携带有审批标识;
    当所选择的数据表模板携带有审批标识时,获取与所述数据表模板对应的审批链;
    将数据校验成功的数据表模板发送至所述审批链中当前审批用户对应的审批终端进行审批;
    接收所述当前审批终端返回的当前审批结果;及
    当所述当前审批结果表示审批通过时,则继续获取所选择的审批链中的下一审批终端,并将所述数据表模板发送至所述下一审批终端进行审批,直至所述审批链中所有的审批用户对应的审批终端对所述数据表模板的审批均通过。
  5. 根据权利要求4所述的方法,其特征在于,还包括:
    当所述当前审批结果表示审批未通过时,则对所述数据表模板中的数据进行修改;及
    将修改后的数据表模板发送至与所述当前审批结果对应的当前审批终端。
  6. 根据权利要求1至3任意一项所述的方法,其特征在于,还包括:
    当接收到输入的数据表模板生成指令时,显示数据表模板生成界面;
    通过所述数据表模板生成界面接收选择的数据表名称;
    显示与所选择的数据表名称对应的字段;
    接收针对所述字段的选择指令以及输入的针对所选择的字段的第一校验规则;
    根据所选择的字段以及所述第一校验规则生成数据表模板;
    获取与所述数据表名称对应的数据表,并通过所述数据表中的数据检验所述第一校验规则;及
    当所述第一校验规则校验成功时,则保存所述数据表模板。
  7. 根据权利要求6所述的方法,其特征在于,在根据所选择的字段以及所述第一校验规则生成数据表模板之后,还包括:
    接收输入的与所述数据表模板对应的权限配置指令,并根据所述权限配置指令配置所述数据表模板的权限;
    所述获取与所述数据导入指令对应的数据表模板,包括:
    获取与所述数据导入指令对应的用户标识;
    判断所述用户标识对应的权限与所述数据表模板的权限是否匹配;及
    当所述用户标识对应的权限与所述数据表模板的权限匹配时,则获取与所述数据导入指令对应的数据表模板。
  8. 一种数据导入装置,包括:
    第一接收模块,用于接收数据导入指令,并获取与所述数据导入指令对应的数据表模板;
    读取模块,用于读取与所述数据导入指令对应的待导入数据文件;
    导入模块,用于检测所述待导入数据文件中的字段顺序与所述数据表模板中的字段顺序是否相同,当相同时,则将所述待导入数据文件中的数据导入到所述数据表模板中;
    第一校验模块,用于根据所述数据表模板中的校验规则对导入的数据进行校验;
    第一修改模块,用于当校验失败时,则接收针对校验失败的数据的修改指令,并根据所述修改指令对校验失败的数据进行修改;及
    第一存储模块,用于对修改后的数据重新进行校验直至修改后的数据校验成功时,则将校验成功的数据进行存储。
  9. 根据权利要求8所述的装置,其特征在于,所述第一接收模块包括:
    第一指令接收单元,用于接收输入的业务系列选择指令,并根据所述业务系列选择指令选择对应的业务系列;
    第一数据表模板获取单元,用于获取并显示与所选择的业务系列对应的数据表模板;
    第二指令接收单元,用于接收输入的针对所述数据表模板的选择指令;及
    选择单元,用于根据所述选择指令获取对应的数据表模板。
  10. 一种计算机设备,包括存储器及一个或多个处理器,所述存储器中储存有计算机 可读指令,所述计算机可读指令被所述一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:接收数据导入指令,并获取与所述数据导入指令对应的数据表模板;读取与所述数据导入指令对应的待导入数据文件;检测所述待导入数据文件中的字段顺序与所述数据表模板中的字段顺序是否相同,当相同时,则将所述待导入数据文件中的数据导入到所述数据表模板中;根据所述数据表模板中的校验规则对导入的数据进行校验;当校验失败时,则接收针对校验失败的数据的修改指令,并根据所述修改指令对校验失败的数据进行修改;及对修改后的数据重新进行校验直至修改后的数据校验成功时,则将校验成功的数据进行存储。
  11. 根据权利要求10所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时所实现的所述接收数据导入指令,并获取与所述数据导入指令对应的数据表模板,包括:接收输入的业务系列选择指令,并根据所述业务系列选择指令选择对应的业务系列;获取并显示与所选择的业务系列对应的数据表模板;接收输入的针对所述数据表模板的选择指令;及根据所述选择指令获取对应的数据表模板。
  12. 根据权利要求10所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时还执行以下步骤:当导入的数据通过数据表模板中的校验规则校验失败时,则获取校验失败的数据对应的数据校验规则;及显示所述数据校验规则。
  13. 根据权利要求10至12任意一项所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时所实现的所述将导入的数据进行存储之前,还包括:判断所选择的数据表模板是否携带有审批标识;当所选择的数据表模板携带有审批标识时,获取与所述数据表模板对应的审批链;将数据校验成功的数据表模板发送至所述审批链中当前审批用户对应的审批终端进行审批;接收所述当前审批终端返回的当前审批结果;及当所述当前审批结果表示审批通过时,则继续获取所选择的审批链中的下一审批终端,并将所述数据表模板发送至所述下一审批终端进行审批,直至所述审批链中所有的审批用户对应的审批终端对所述数据表模板的审批均通过。
  14. 根据权利要求13所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时还执行以下步骤:当所述当前审批结果表示审批未通过时,则对所述数据表模板中的数据进行修改;及将修改后的数据表模板发送至与所述当前审批结果对应的当前审批终端。
  15. 根据权利要求10至12任意一项所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时还执行以下步骤:当接收到输入的数据表模板生成指令时,显示数据表模板生成界面;通过所述数据表模板生成界面接收选择的数据表名称;显示与所选择的数据表名称对应的字段;接收针对所述字段的选择指令以及输入的针对所选择的字段的第一校验规则;根据所选择的字段以及所述第一校验规则生成数据表模板;获取与所述数据表名称对应的数据表,并通过所述数据表中的数据检验所述第一校验规则;及当所述第一校验规则校验成功时,则保存所述数据表模板。
  16. 根据权利要求15所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时所实现的在根据所选择的字段以及所述第一校验规则生成数据表模板之后,还包括:接收输入的与所述数据表模板对应的权限配置指令,并根据所述权限配置指令配置所述数据表模板的权限;
    则所述处理器执行所述计算机可读指令时所实现的所述获取与所述数据导入指令对应的数据表模板,包括:获取与所述数据导入指令对应的用户标识;判断所述用户标识对应的权限与所述数据表模板的权限是否匹配;及当所述用户标识对应的权限与所述数据表模板的权限匹配时,则获取与所述数据导入指令对应的数据表模板。
  17. 一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:接收数据导入指令,并获取与所述数据导入指令对应的数据表模板;读取与所述数据导入指令对应的待导入数据文件;检测所述待导入数据文件中的字段顺序与所述数据表模板中的字段顺序是否相同,当相同时,则将所述待导入数据文件中的数据导入到所述数据表模板中;根据所述数据表模板中的校验规则对导入的数据进行校验;当校验失败时,则接收针对校验失败的数据的修改指令,并根据所述修改指令对校验失败的数据进行修改;及对修改后的数据重新进行校验直至修改后的数据校验成功时,则将校验成功的数据进行存储。
  18. 根据权利要求17所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时所实现的所述接收数据导入指令,并获取与所述数据导入指令对应的数据表模板,包括:接收输入的业务系列选择指令,并根据所述业务系列选择指令选择对应的业务系列;获取并显示与所选择的业务系列对应的数据表模板;接收输入的针对所述数据表模板的选择指令;及根据所述选择指令获取对应的数据表模板。
  19. 根据权利要求17所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时还执行以下步骤:当导入的数据通过数据表模板中的校验规则校验失败时,则获取校验失败的数据对应的数据校验规则;及显示所述数据校验规则。
  20. 根据权利要求17至19任意一项所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时所实现的所述将导入的数据进行存储之前,还包括:判断所选择的数据表模板是否携带有审批标识;当所选择的数据表模板携带有审批标识时,获取与所述数据表模板对应的审批链;将数据校验成功的数据表模板发送至所述审批链中当前审批用户对应的审批终端进行审批;接收所述当前审批终端返回的当前审批结果;及当所述当前审批结果表示审批通过时,则继续获取所选择的审批链中的下一审批终端,并将所述数据表模板发送至所述下一审批终端进行审批,直至所述审批链中所有的审批用户对应的审批终端对所述数据表模板的审批均通过。
PCT/CN2018/095654 2018-04-19 2018-07-13 数据导入方法、装置、计算机设备和存储介质 WO2019200757A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810355480.1A CN108595597A (zh) 2018-04-19 2018-04-19 数据导入方法、装置、计算机设备和存储介质
CN201810355480.1 2018-04-19

Publications (1)

Publication Number Publication Date
WO2019200757A1 true WO2019200757A1 (zh) 2019-10-24

Family

ID=63611321

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/095654 WO2019200757A1 (zh) 2018-04-19 2018-07-13 数据导入方法、装置、计算机设备和存储介质

Country Status (2)

Country Link
CN (1) CN108595597A (zh)
WO (1) WO2019200757A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113902267A (zh) * 2021-09-23 2022-01-07 携程旅游网络技术(上海)有限公司 班表管理的方法、系统、电子设备及介质

Families Citing this family (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109189849B (zh) * 2018-10-16 2022-02-18 浪潮通信信息系统有限公司 一种标准化、流程化的数据录入方法和系统
CN109582668A (zh) * 2018-10-16 2019-04-05 深圳壹账通智能科技有限公司 业务数据管理方法、装置、设备及计算机可读存储介质
CN109635017A (zh) * 2018-10-16 2019-04-16 深圳壹账通智能科技有限公司 业务数据导入方法、装置、设备及计算机可读存储介质
CN109474578B (zh) * 2018-10-17 2023-03-24 平安健康保险股份有限公司 报文消息校验方法、装置、计算机设备和存储介质
CN109388685B (zh) * 2018-10-23 2022-01-07 泰华智慧产业集团股份有限公司 将规划行业使用的空间数据进行入库的方法和装置
CN109785921A (zh) * 2018-12-03 2019-05-21 南方医科大学南方医院 一种医疗数据录入方法、系统、装置和存储介质
CN111274326A (zh) * 2018-12-04 2020-06-12 北京嘀嘀无限科技发展有限公司 特征数据的导入方法、管控方法、装置及电子设备
CN109685669A (zh) * 2018-12-11 2019-04-26 北京量子保科技有限公司 一种保单信息数据处理方法及系统
CN109726244A (zh) * 2019-01-29 2019-05-07 北京中电普华信息技术有限公司 数据导入方法及装置
CN109992585A (zh) * 2019-04-01 2019-07-09 北京金和网络股份有限公司 用于办公管理系统的数据导入方法
CN112395266B (zh) * 2019-08-19 2022-12-13 中移(苏州)软件技术有限公司 一种数据文件处理方法、第一服务器及计算机存储介质
CN111222070B (zh) * 2019-12-30 2023-07-21 深圳市五谷网络科技有限公司 数据处理方法、装置、设备及存储介质
CN111209324B (zh) * 2019-12-31 2023-11-28 航天信息股份有限公司 存储数据的方法、装置、存储介质以及电子设备
CN111367982B (zh) * 2020-03-09 2023-08-25 深圳市万物云科技有限公司 导入tririga基础数据的方法、装置、计算机设备及存储介质
CN113971191A (zh) * 2020-07-23 2022-01-25 腾讯科技(深圳)有限公司 一种数据导入方法、装置和计算机可读存储介质
CN112162994A (zh) * 2020-09-08 2021-01-01 杭州涂鸦信息技术有限公司 一种系统录入数据的sql生成方法及系统
CN112102058A (zh) * 2020-09-27 2020-12-18 中国建设银行股份有限公司 管会系统参数配置方法及装置
CN112836478A (zh) * 2020-11-09 2021-05-25 上海德拓信息技术股份有限公司 一种零散数据采集应用的方法
CN113076285A (zh) * 2021-03-05 2021-07-06 上海明略人工智能(集团)有限公司 用于上传数据文件的处理方法及系统
CN113094345A (zh) * 2021-04-15 2021-07-09 浪潮通用软件有限公司 一种表格数据文件的导入方法及设备
CN113239019A (zh) * 2021-06-03 2021-08-10 锋泾(中国)建材集团有限公司 Erp系统间的数据迁移方法、系统及电子设备、介质
CN113360491B (zh) * 2021-06-30 2024-03-29 杭州数梦工场科技有限公司 数据质量检验方法、装置、电子设备及存储介质
CN113642308B (zh) * 2021-08-30 2022-07-22 重庆允成互联网科技有限公司 基于数据可变的数据导入方法、系统、设备及存储介质
CN113821575B (zh) * 2021-09-30 2024-04-12 李建 数据检核方法、装置、设备及计算机存储介质
CN115438024A (zh) * 2022-08-23 2022-12-06 光大环境科技(中国)有限公司 数据导入中台的方法、装置、系统、电子设备、存储介质
CN115905269A (zh) * 2023-01-06 2023-04-04 深圳市明源云科技有限公司 数据导入方法、系统、设备及存储介质

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103246651A (zh) * 2012-02-02 2013-08-14 金蝶软件(中国)有限公司 一种数据导入方法及系统
CN107798030A (zh) * 2017-02-17 2018-03-13 平安科技(深圳)有限公司 数据表的拆分方法和装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103631966B (zh) * 2013-12-18 2017-10-10 用友网络科技股份有限公司 一种可配置的解析多值匹配字段的方法
CN105989021A (zh) * 2015-01-29 2016-10-05 阿里巴巴集团控股有限公司 一种文件处理方法和装置
CN105117431A (zh) * 2015-08-07 2015-12-02 北京思特奇信息技术股份有限公司 一种动态配置外部导入数据的方法及系统

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103246651A (zh) * 2012-02-02 2013-08-14 金蝶软件(中国)有限公司 一种数据导入方法及系统
CN107798030A (zh) * 2017-02-17 2018-03-13 平安科技(深圳)有限公司 数据表的拆分方法和装置

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113902267A (zh) * 2021-09-23 2022-01-07 携程旅游网络技术(上海)有限公司 班表管理的方法、系统、电子设备及介质

Also Published As

Publication number Publication date
CN108595597A (zh) 2018-09-28

Similar Documents

Publication Publication Date Title
WO2019200757A1 (zh) 数据导入方法、装置、计算机设备和存储介质
CN110297813B (zh) 数据迁移方法、装置、计算机设备及存储介质
KR102289995B1 (ko) 데이터 저장, 데이터 검사 및 데이터 연계 방법 및 장치
CN110495132B (zh) 用于在分布式网络节点内生成、上传和执行代码区块的系统和方法
EP3596642B1 (en) Privacy-preserving identity verification
CN106599321B (zh) 一种dwg文件批注和签名的生成、解析插件及其使用方法
WO2020233035A1 (zh) 一种信息校验方法及相关设备
US20180054432A1 (en) Protection feature for data stored at storage service
WO2020253061A1 (zh) 页面生成方法、装置、计算机设备和存储介质
US9313230B1 (en) Policy approval layer
US8751535B1 (en) Systems and methods for securely storing, controlling and sharing personal information
BR112020016003B1 (pt) Sistema e método implementado por computador para uso no gerenciamento de identidades digitais e meio de armazenamento legível por computador não transitório
CN109493048B (zh) 基于区块链的财务记账方法、装置、设备及存储介质
WO2020000670A1 (zh) 短信拼接处理方法、装置、计算机设备和存储介质
CN109710903A (zh) 单证的管理方法、装置、设备及存储介质
WO2023103725A1 (zh) 保险单据的生成方法、装置、介质、程序产品及电子设备
US8667284B2 (en) Detection of invalid escrow keys
CN109190353B (zh) 用于自动生成证书文档的方法和计算设备
CN109002555B (zh) 一种icp备案方法、装置、设备及可读存储介质
US8484724B2 (en) User permissions in computing systems
WO2019100611A1 (zh) 业务系统的接口参数测试方法、装置、设备和存储介质
WO2019153978A1 (zh) 终端指纹测试方法、装置、计算机设备和存储介质
US20220045866A1 (en) Method and system for authentication seal deployment in networked immutable transactions
US20230088867A1 (en) System and Method for Secure Linking of Anonymized Data
US9565197B1 (en) Secure verification of website claims

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18915727

Country of ref document: EP

Kind code of ref document: A1