CN115470281A - Batch data importing method and device, terminal equipment and storage medium - Google Patents

Batch data importing method and device, terminal equipment and storage medium Download PDF

Info

Publication number
CN115470281A
CN115470281A CN202211231290.1A CN202211231290A CN115470281A CN 115470281 A CN115470281 A CN 115470281A CN 202211231290 A CN202211231290 A CN 202211231290A CN 115470281 A CN115470281 A CN 115470281A
Authority
CN
China
Prior art keywords
data
batch
import
task
current
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202211231290.1A
Other languages
Chinese (zh)
Inventor
李剑
王鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Chinaroad Network Technology Co ltd
Original Assignee
Shenzhen Chinaroad Network Technology Co ltd
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 Shenzhen Chinaroad Network Technology Co ltd filed Critical Shenzhen Chinaroad Network Technology Co ltd
Priority to CN202211231290.1A priority Critical patent/CN115470281A/en
Publication of CN115470281A publication Critical patent/CN115470281A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/258Data format conversion from or to a database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/44Program or device authentication

Landscapes

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

Abstract

The invention discloses a batch import method and device of data, terminal equipment and a storage medium, wherein the batch import method of the data is applied to a batch data import system, the batch data import system provides a visual front-end page, the batch import system is connected with a parking lot system of a parking lot, and the parking lot system comprises: the batch import method of the data comprises the following steps: acquiring a template file, processing the template file to obtain batch information, sending the current batch information to a business service module, and receiving a data permission verification result obtained by the business service module by verifying the data permission of the current batch information; confirming that one or more data import tasks are added into a preset task pool according to the data permission verification result; and the current data import task in the task pool is sent to the business service module, so that the business service module can import the current data import task into the parking lot system.

Description

Batch data importing method and device, terminal equipment and storage medium
Technical Field
The present invention relates to the field of parking lot technologies, and in particular, to a method and an apparatus for batch importing of data, a terminal device, and a computer storage medium.
Background
With the development of the automobile industry, information of customers needs to be imported into each parking lot system, for example, business information needs to be input in batches in a newly opened cell, and when a new shop in a shopping mall performs in-store consumption and parking ticket sending activities, information such as operators of the shop and coupon types and denominations of the shop is input in batches in the parking lot system of the shopping mall.
Traditional parking lot software does not support batch entry, only can click to save and enter after the property manually fills in information one by one, the workload is greatly increased, and some losses such as filling errors can be caused when the property is manually filled in and saved and entered.
In summary, the parking lot software in the prior art has a single function and no universality, and the workload of manually filling in and inputting one by one is very large, the working efficiency is very low, and the risk of filling errors is very high.
Disclosure of Invention
The invention mainly aims to provide a data batch import method, terminal equipment and a computer storage medium, aiming at meeting the data batch import requirement of any business module, thereby reducing the workload of manual filling and inputting, further improving the working efficiency and reducing the risk of filling errors.
In order to achieve the above object, the present invention provides a batch import method of data, where the batch import method of data is applied to a batch data import system, the batch data import system provides a visual front-end page, the batch import system is connected to a parking lot system of a parking lot, and the parking lot system includes: the batch import method of the data comprises the following steps:
acquiring a template file, processing the template file to obtain batch information, determining the processing state of the current batch information in each batch information as a to-be-processed state, and displaying the current batch information and the to-be-processed state to the front-end page;
sending the current batch information to the business service module, and receiving a data authority verification result obtained by the business service module aiming at the current batch information;
confirming one or more data import tasks according to the data permission verification result, and adding the one or more data import tasks into a preset task pool;
and sending the current data import task in the task pool to the business service module so that the business service module can carry out validity check on the current data import task to obtain a validity check result, and importing the current data import task into the parking lot system according to the validity check result.
Optionally, the step of confirming one or more data import tasks according to the data permission verification result includes:
confirming whether the data authority verification result is successful in data authority verification;
if the data authority verification result is confirmed to be that the data authority verification is successful, confirming the processing state of the current batch of information as an analysis state, and displaying the analysis state to the front-end page;
analyzing the current batch information to obtain one or more data import tasks, confirming the processing state of the current batch information as a processing state, and displaying the processing state to the front-end page.
Optionally, after the step of confirming whether the data permission check result is a successful data permission check, the method further includes:
and if the data permission verification result is confirmed to be data permission verification failure, sending next batch information of a next batch to a business service module of the parking lot, and receiving a data permission verification result of the business service module for performing data permission verification on the next batch information.
Optionally, the step of sending the current data import task in the task pool to the business service module, so that the business service module performs validity check on the current data import task to obtain a validity check result, and importing the current data import task into the parking lot system according to the validity check result includes:
and sending the current data import task in the task pool to the business service module so that the business service module can carry out validity verification on the current data import task to obtain a validity verification result, confirm whether the validity verification result is successful, and import the current data import task into the parking lot system if the validity verification result is successful.
Optionally, after the step of sending the current batch information to the business service module, the method further includes:
executing batch locking logic according to the current batch information, and confirming whether the result of the batch locking logic is locking success;
if the batch locking logic result is confirmed to be successful, confirming the processing state of the current batch information as a check state, and displaying the check state to the front-end page;
and if the batch locking logic result is confirmed to be locking failure, sending next batch information of the next batch to a business service module of the parking lot, and receiving a data authority verification result of the business service module for performing data authority verification on the next batch information.
Optionally, after the step of sending the current data import task to the business service module, the method further includes:
executing task locking logic aiming at the current data import task, and confirming whether the result of the task locking logic of the data import task is locking success;
if the task locking logic result is confirmed to be successful, confirming the processing state of the current data import task as a processing state, and displaying the current data import task and the processing state to the front-end page;
and if the task locking logic result is confirmed to be locking failure, sending the next data import task to the business service module, carrying out validity verification on the next data import task by the business service module to obtain a validity verification result, and importing the next data import task into the parking lot system according to the validity verification result.
Optionally, the method further comprises:
and if the operation that the current data import task is imported into the parking lot system is determined to be failed, removing the current data import task from the task pool, and updating the corresponding processing state and failure reason.
In addition, to achieve the above object, the present invention further provides a batch data importing apparatus, where the batch data importing method is applied to a batch data importing system, the batch data importing system provides a visual front-end page, the batch importing system is connected to a parking lot system of a parking lot, and the parking lot system includes: the device for batch importing of data comprises a business service module, and the device for batch importing of data comprises:
the batch processing module is used for acquiring a template file, processing the template file to obtain batch information, determining the processing state of the current batch information in each batch information as a to-be-processed state, and displaying the to-be-processed state to the front-end page;
the data authority verification module is used for sending the current batch information to the business service module and receiving a data authority verification result obtained by the business service module aiming at the current batch information;
the acquisition module is used for confirming one or more data import tasks according to the data permission verification result and adding the one or more data import tasks into a preset task pool;
and the import module is used for sending the current data import task in the task pool to the business service module so that the business service module can carry out validity check on the current data import task to obtain a validity check result, and importing the current data import task into the parking lot system according to the validity check result.
In addition, to achieve the above object, the present invention also provides a terminal device, including: the system comprises a memory, a processor and a batch import program of data stored on the memory and capable of running on the processor, wherein the batch import program of the data realizes the steps of the batch import method of the data when being executed by the processor.
In addition, to achieve the above object, the present invention further provides a computer storage medium having a batch import program of data stored thereon, wherein the batch import program of data implements the steps of the batch import method of data as described above when being executed by a processor.
The batch import method of data is applied to a batch data import system, the batch data import system provides a visual front-end page, the batch import system is connected with a parking lot system of a parking lot, and the parking lot system comprises: the batch import method of the data comprises the following steps: acquiring a template file, processing the template file to obtain batch information, determining the processing state of the current batch information in each batch information as a to-be-processed state, and displaying the current batch information and the to-be-processed state to the front-end page; sending the current batch information to the business service module, and receiving a data authority verification result obtained by the business service module aiming at the current batch information; confirming one or more data import tasks according to the data permission verification result, and adding the one or more data import tasks into a preset task pool; and sending the current data import task in the task pool to the business service module so that the business service module can carry out validity check on the current data import task to obtain a validity check result, and importing the current data import task into the parking lot system according to the validity check result.
The technical scheme of the invention is that the batch data import system is applied, the batch data import system provides a visual front-end page, the batch import system is connected with a parking lot system of a parking lot, the parking lot system comprises a business service module, a template file is obtained through operations filled and uploaded by a user, batch information is obtained after processing is carried out on the template file, the processing state of the current batch information in each batch information is confirmed as a to-be-processed state, the current batch information and the to-be-processed state are displayed on the front-end page, then the current batch information is sent to the business service module of the parking lot, the business service module carries out data authority verification on the current batch information to obtain data authority verification results, the business process sends the data authority verification results to the batch data import system, one or more tasks are confirmed according to the data authority verification results, one or more tasks are added to a preset task pool, the current tasks are obtained in the task pool according to a preset sequence, and finally the current tasks are sent to the business service module, the business service module carries out validity verification on the parking lot to obtain validity results according to the current tasks, and the current tasks are verified according to the validity verification results of the business service module.
Compared with the traditional batch input mode which only provides a small number of functions, the invention acquires the template file filled and uploaded by the user, processes the template file and then sends the template file to the business service module of the parking lot, the business service module checks the data authority of the current batch, the batch data import system confirms the task according to the data authority check result, and finally sends the task to the business service module, the business service module checks the validity of the task, and if the validity check is successful, the task is imported into the parking lot system.
Drawings
Fig. 1 is a schematic structural diagram of the hardware operation of a terminal device according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating an embodiment of a batch import method of data according to the present invention;
FIG. 3 is a schematic diagram of a structure relationship of a batch import system of data according to the present invention.
The objects, features and advantages of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic structural diagram of a hardware operating environment related to a terminal device according to an embodiment of the present invention.
It should be noted that fig. 1 is a schematic structural diagram of a hardware operating environment of the terminal device. The terminal device of the embodiment of the invention can be a device integrating a batch data import system, and the terminal device can be a mobile terminal, a data storage control terminal, a PC (personal computer) or a portable computer and other terminals.
As shown in fig. 1, the terminal device may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a non-volatile memory (e.g., flash memory), a high-speed RAM memory, or a non-volatile memory (e.g., a disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the terminal device configuration shown in fig. 1 is not limiting of terminal devices and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a bulk import program of data. The operating system is a program for managing and controlling hardware and software resources of the sample terminal equipment, and supports batch import of data and operation of other software or programs.
In the terminal device shown in fig. 1, the user interface 1003 is mainly used for data communication with each terminal; the network interface 1004 is mainly used for connecting a background server and performing data communication with the background server; and the processor 1001 may be used to call a bulk import program for the data stored in the memory 1005.
Based on the terminal device, embodiments of the batch import method of the data are provided. In various embodiments of the method for batch import of data of the present invention.
Referring to fig. 2, fig. 2 is a flowchart illustrating a batch import method of data according to a first embodiment of the present invention. In a first embodiment of the batch import method of data according to the present invention, the batch import method of data according to the present invention is applied to a batch data import system, the batch data import system providing a visual front page, the batch import system being connected to a parking lot system of a parking lot, the parking lot system including: the invention discloses a business service module, and a batch import method of data, comprising the following steps:
step S10: acquiring a template file, processing the template file to obtain batch information, determining the processing state of the current batch information in each batch information as a to-be-processed state, and displaying the current batch information and the to-be-processed state to the front-end page;
in this embodiment, when the batch data import system imports the parking lot data in batches, a template file is obtained according to an operation that is filled and uploaded by a user, batch information is obtained after the template file is processed, a processing state of current batch information in each batch information is determined as a to-be-processed state, a processing state of current batch information in each batch information is determined as a "to-be-processed" state, and the current batch information and the "to-be-processed" state are displayed on the front-end page.
It should be noted that, in this embodiment, the batch data import system is a stateless design capable of extending horizontally and infinitely, and when the usage frequency is high and the concurrence is large, a horizontally-extended multi-deployment batch system program may be added to each server, where the batch data import system includes two abstract interfaces, one is an authority check interface and the other is a task processing interface, where the authority check interface is used to connect the service module for data authority check, the task processing interface is used to connect the service module for task processing, and the two abstract interfaces are used for the batch data import system to call and are implemented by the service module.
It should be noted that, in this embodiment, each parking lot has different service functions, and a file in the format of "Comma-Separated Values" of CSV is preset in advance according to different parameters, and is a pure text format file "template file for storing data, where a service parameter header and a small amount of example data are defined in the template file, and a user (property or business, etc.) of real service data requiring parking software downloads and fills a service template, it should be understood that the user downloads and fills one or more pieces of data to be imported from the template, and uploads the data to a batch data import system as batch information.
It should be noted that, in this embodiment, a business template is preset in advance for a business service module that requires a batch import function, for example, if a parking lot requires batch import of owner identity information, the preset template is an "owner identity information batch import template," which includes information such as owner name, gender, contact number, address information, and identification number, and for example, if a parking lot in a mall requires batch import of merchant information, the reservation template is a "merchant information batch import template," which includes merchant name, brand, contact number, merchant address, and business license information. The fields defined in the template are defined according to corresponding services, a user collects files filled and uploaded by the service template as template files, batch import work is carried out on the template files, and in addition, batch information comprises module information, operators, batch template file addresses and the like.
Step S20: sending the current batch information to the business service module, receiving the current batch information from the business service module, and performing data authority verification on the current batch information by the business service module to obtain a data authority verification result;
in this embodiment, the batch data import system obtains a template file according to an operation that is filled and uploaded by a user, processes the template file to obtain batch information, and after determining that a processing state of current batch information in a front-end page of the batch data import system is a "to-be-processed" state, sends the current batch information to a business service module of a parking lot, and receives the business service module to perform data authority verification on the current batch information to obtain a data authority verification result.
It should be noted that, in this embodiment, the service module in the parking lot is a specific underground layer service for the property of the merchant or the cell to enter into the respective parking lot, for example, a parking monthly card function module, a merchant coupon kind module, a merchant coupon denomination module, and information of the merchant operator, etc.
Optionally, in some possible embodiments, after the step of "sending the current batch information to the business service module" in step S20, the batch import method of data of the present invention may further include the following steps:
step S50: executing batch locking logic aiming at the current batch information, and confirming whether the result of the batch locking logic is successful;
in this embodiment, after sending the current batch information to the business service module in the parking lot, the batch data import system executes a batch locking logic for the current batch information, and determines whether the result of the batch locking logic is a successful locking.
Step S60: if the batch locking logic result is confirmed to be successful, confirming the processing state of the current batch information as a check state, and displaying the check state to the front-end page;
in this embodiment, after the batch data import system executes the batch locking logic for the current batch information and determines whether the result of the batch locking logic is successful, if the result of the batch locking logic is successful, the processing state of the current batch information is determined as the "checking" state, and the "checking" state is displayed on the front-end page.
Step S70: and if the batch locking logic result is confirmed to be locking failure, sending next batch information of the next batch to a business service module of the parking lot, and receiving a data authority verification result of the business service module for performing data authority verification on the next batch information.
In this embodiment, the batch data import system executes the batch locking logic for the current batch information, and after confirming whether the result of the batch locking logic is successful, if the result of the batch locking logic is confirmed to be failed, the next batch information of the next batch is sent to the business service module in the parking lot, and the data authority verification result of the business service module for performing data authority verification for the next batch information is received.
Step S30: confirming one or more data import tasks according to the data permission verification result, and adding the one or more data import tasks into a preset task pool;
in this embodiment, the batch data import system sends the current batch information to the service module in the parking lot, receives the data permission verification result obtained by the service module aiming at the current batch information, confirms one or more data import tasks according to the data permission verification result, adds the one or more data import tasks to a preset task pool, and obtains the current data import tasks in the task pool according to a preset sequence.
It should be noted that, in this embodiment, a preset task pool stores tasks to be processed according to a preset sequence, where the preset sequence is a sequence of a piece of data in a template file that is filled and uploaded by a user, and the batch data import system takes out tasks according to the preset sequence and sends the tasks to the service module.
Optionally, in some possible embodiments, the step of "confirming one or more data import tasks according to the data permission verification result" in step S30 may include the following steps:
step S301: confirming whether the data authority verification result is successful in data authority verification;
in this embodiment, the batch data import system determines that the service module performs data authority verification on the current batch of information to obtain a data authority verification result, and whether the sent data authority verification result is successful in data authority verification.
Step S302: if the data authority verification result is confirmed to be that the data authority verification is successful, confirming the processing state of the current batch of information as an analysis state, and displaying the analysis state to the front-end page;
in this embodiment, after the batch data import system determines whether the data permission verification result is that the data permission verification is successful, if it is determined that the data permission verification result is that the data permission verification is successful, the processing state of the current batch of information is determined as an "analysis in progress" state, and the "analysis in progress" state is displayed on a front-end page of the batch data import system.
Step S303: analyzing the current batch information to obtain one or more data import tasks, confirming the processing state of the current batch information as a processing state, and displaying the processing state to the front-end page.
In this embodiment, if it is determined that the data permission verification result is that the data permission verification is successful, the batch data import system determines the processing state of the current batch of information as an "in-analysis" state, displays the "in-analysis" state to a front-end page of the batch data import system, then analyzes the current batch of information to obtain one or more data import tasks, determines the processing state of the current batch of information as an in-processing state, and displays the "in-processing" state to the front-end page of the batch data import system.
It should be noted that, in this embodiment, the batch data import system analyzes the current batch information to obtain one or more pieces of data, where the piece of data is a data import task, and writes the data import task into a preset task pool.
Optionally, in some possible embodiments, after step S301, the batch import method of data according to the present invention may further include the following steps:
step S304: and if the data permission verification result is confirmed to be data permission verification failure, sending next batch information of a next batch to the business service module, and receiving a data permission verification result of the business service module for performing data permission verification on the next batch information.
In this embodiment, the batch data import system determines that the service module performs data permission verification on the current batch of information to obtain a data permission verification result, and after determining whether the sent data permission verification result is successful, if it is determined that the data permission verification result is failed, sends next batch of information of a next batch to the service module, and receives a data permission verification result of the service module performing data permission verification on the next batch of information.
In this embodiment, if it is determined that the data permission verification result is that the data permission verification fails, the batch data import system skips data import of the current batch information, and performs data import of next batch information of a next batch.
Optionally, in some possible embodiments, after the step of "sending the current data import task to the business service module" in step S30, the batch import method of data of the present invention may further include the following steps:
step S80: executing task locking logic aiming at the current task, and confirming whether the task locking logic result is locking success;
in this embodiment, after sending the current task to the business service module, the batch data import system executes the task locking logic for the current task, and determines whether the result of the task locking logic is a successful locking.
Step S90: if the task locking logic result is confirmed to be that the locking is successful, confirming the processing state of the current data import task as a processing state, and displaying the current data import task and the processing state to the front-end page;
in this embodiment, after the batch data import system executes the task locking logic for the current task and determines whether the result of the task locking logic is successful, if it is determined that the result of the task locking logic is successful, the processing state of the current data import task is determined as the "processing" state, and the current data import task and the "processing" state are displayed on the front-end page of the batch data import system.
Step S100: and if the task locking logic result is confirmed to be locking failure, sending the next task to the business service module, carrying out validity verification on the next data import task by the business service module to obtain a validity verification result, and importing the next data import task into the parking lot system according to the validity verification result.
In this embodiment, the batch data import system executes a task locking logic for a current task, and after confirming whether a task locking logic result is a successful locking, if the task locking logic result is a failed locking, a next task is sent to the business service module, and the business service module performs validity check on the next data import task to obtain a validity check result, and imports the next data import task into the parking lot system according to the validity check result.
In this embodiment, if it is determined that the task locking logic result is that the data authority check fails, the batch data import system skips data import of the current data import task and performs data import of the next data import task.
Step S40: and sending the current data import task in the task pool to the business service module so that the business service module can carry out validity check on the current data import task to obtain a validity check result, and importing the current data import task into the parking lot system according to the validity check result.
In this embodiment, the batch data import system determines one or more data import tasks according to the data permission verification result, adds the one or more data import tasks to a preset task pool, obtains current task data import from the task pool according to a preset sequence, sends the current task to the business service module, and the business service module performs validity verification on the current data import task to obtain a validity verification result and imports the current data import task into the parking lot system according to the validity verification result.
It should be noted that, in this embodiment, the content of the validity check includes information such as data integrity, data correctness, and authority of specific data, and after the batch data import system imports one or more data import tasks in one batch into the parking lot system according to a preset sequence, the batch data import system imports a data import task of a next batch into the parking lot system.
Optionally, in some possible embodiments, step S40 may include the following steps:
step S401: and sending the current data import task in the task pool to the business service module so that the business service module can carry out validity check on the current data import task to obtain a validity check result, and confirm whether the validity check result is successful, if so, importing the current data import task into the parking lot system.
In this embodiment, the batch data import system sends the current data import task to the business service module, the business service module performs validity check on the current data import task to obtain a validity check result, and determines whether the validity check result is successful, and if the validity check result is successful, the current data import task is imported into the parking lot system.
Optionally, in some possible embodiments, the batch import method of data according to the present invention may further include the following steps:
step A: and if the operation that the current data import task is imported into the parking lot system is determined to be failed, removing the current data import task from the task pool, and updating the corresponding processing state and failure reason.
In this embodiment, if the batch data import system determines that the operation of importing the current data import task into the parking lot system fails, the current data import task is removed from the preset task pool, and the processing state corresponding to the current data import task and the corresponding failure reason are updated.
It should be noted that, in this embodiment, the batch data import system sets the running state of the front-end page to "check failure", "processing failure", or "processing success" according to the data authority check result and the validity data result returned by the service module, and if the import fails, updates the failure reason corresponding to the current task, for example, the existing monthly card license plate, or the information of the task is wrong.
It should be noted that, in this embodiment, the batch data import system refreshes the state of the batch information corresponding to the task, and after the last task of one batch information is processed, the running state of the batch information in the front-end page is adjusted to "processing completed", and then the task in the "to-be-processed" state of the next batch information is continuously processed, and if the processing fails, the running state of the batch information in the front-end page is adjusted to "processing failed".
In this embodiment, when batch import of parking lot data is performed by the batch data import system, a template file is obtained according to an operation that is filled and uploaded by a user, batch information is obtained after the template file is processed, a processing state of current batch information in each piece of batch information is determined as a to-be-processed state, a processing state of current batch information in each piece of batch information is determined as a "to-be-processed" state, and the current batch information and the "to-be-processed" state are displayed on the front-end page; then, the batch data import system acquires a template file according to the operation filled and uploaded by the user, performs batch processing on the template file to obtain batch information, and after the processing state of the current batch information in the front-end page of the batch data import system is confirmed to be a 'to-be-processed' state, sends the current batch information to a business service module of a parking lot, receives the current batch information from the business service module, and performs data authority verification on the current batch information to obtain a data authority verification result; then, the batch data import system sends the current batch information to a business service module of the parking lot, receives the current batch information, carries out data authority verification by the business service module aiming at the current batch information to obtain a data authority verification result, confirms one or more data import tasks according to the data authority verification result, adds the one or more data import tasks into a preset task pool, and obtains the current data import tasks in the task pool according to a preset sequence; and finally, the batch data import system confirms one or more data import tasks according to the data permission verification result, adds the one or more data import tasks into a preset task pool, acquires the current task data import from the task pool according to a preset sequence, sends the current task to a business service module, and the business service module performs validity verification on the current data import task to obtain a validity verification result and imports the current data import task into the parking lot system according to the validity verification result.
Therefore, the template file is acquired, the template file is subjected to batch processing and then is sent to the business service module of the parking lot, the business service module performs data authority verification on the current batch, the batch data import system confirms the data import task according to the data authority verification result, finally, the data import task is sent to the business service module, the business service module performs validity verification on the data import task, and if the validity verification is successful, the data import task is imported into the parking lot system, so that the data batch import requirement of any business module is met, the workload of manual filling and inputting is greatly reduced, the working efficiency is improved, and meanwhile, the filling error risk is greatly reduced.
In addition, referring to fig. 3, an embodiment of the present invention further provides a batch data importing apparatus, where the batch data importing method is applied to a batch data importing system, the batch data importing system provides a visual front-end page, the batch importing system is connected to a parking lot system of a parking lot, and the parking lot system includes: the invention discloses a business service module, and a batch importing device of data comprises:
the batch processing module 10 is configured to acquire a template file, obtain batch information after processing the template file, determine a processing state of current batch information in each batch information as a to-be-processed state, and display the to-be-processed state on the front-end page;
the data authority verification module 20 is configured to send the current batch information to the business service module, and receive a data authority verification result obtained by the business service module performing data authority verification on the current batch information;
the obtaining module 30 is configured to confirm one or more data import tasks according to the data permission verification result, and add the one or more data import tasks to a preset task pool;
and the import module 40 is configured to send the current data import task in the task pool to the business service module, so that the business service module performs validity check on the current data import task to obtain a validity check result, and imports the current data import task into the parking lot system according to the validity check result.
Optionally, the obtaining module 30 includes:
the first confirmation unit is used for confirming whether the data authority verification result is successful in data authority verification;
the second confirming unit is used for confirming the processing state of the current batch information as an analysis state and displaying the analysis state to the front-end page if the data authority verification result is confirmed to be that the data authority verification is successful;
and the display unit is used for analyzing the current batch information to obtain one or more data import tasks, confirming the processing state of the current batch information as a processing state, and displaying the processing state to the front-end page.
Optionally, the obtaining module 30 further includes:
and the third confirming unit is used for sending the next batch information of the next batch to a business service module of the parking lot and receiving the data authority verification result of the business service module for performing data authority verification on the next batch information if the data authority verification result is confirmed to be data authority verification failure.
Optionally, the import module 40 includes:
and the fourth confirmation unit is used for sending the current data import task in the task pool to the business service module, so that the business service module can perform validity verification on the current data import task to obtain a validity verification result, confirm whether the validity verification result is successful, and import the current data import task into the parking lot system if the validity verification result is successful.
Optionally, the apparatus for batch importing of data of the present invention further includes:
the first confirming module is used for executing the batch locking logic aiming at the current batch information and confirming whether the result of the batch locking logic is the locking success;
a second confirming module, configured to, if it is confirmed that the batch locking logic result is that locking is successful, confirm the processing state of the current batch information as a check state, and display the check state on the front-end page;
and the first receiving module is used for sending next batch information of a next batch to a business service module of a parking lot and receiving a data authority verification result of the business service module for verifying the data authority of the next batch information if the batch locking logic result is confirmed to be locking failure.
Optionally, the apparatus for batch importing of data of the present invention further includes:
a third confirmation module, configured to execute a task locking logic for the current data import task, and confirm whether a result of the task locking logic for the data import task is a successful locking result;
a fourth confirming module, configured to confirm the processing state of the current data import task as a processing state if it is confirmed that the task locking logic result is that the locking is successful, and show the current data import task and the processing state to the front-end page;
and the second receiving module is used for sending the next data import task to the business service module if the task locking logic result is confirmed to be locking failure, and the business service module performs validity check on the next data import task to obtain a validity check result and imports the next data import task into the parking lot system according to the validity check result.
Optionally, the apparatus for batch importing of data of the present invention further includes:
and the updating module is used for removing the current data import task from the task pool and updating the corresponding processing state and the failure reason if the operation that the current data import task is imported into the parking lot system is determined to be failed.
In addition, an embodiment of the present invention further provides a terminal device, where the terminal device includes: the system comprises a memory, a processor and a batch import program of data stored on the memory and capable of running on the processor, wherein the batch import program of the data realizes the steps of the batch import method of the data when being executed by the processor.
The steps implemented when the batch import program of the data running on the processor is executed may refer to various embodiments of the batch import method of the data of the present invention, and are not described herein again.
In addition, an embodiment of the present invention further provides a computer storage medium, which is applied to a computer, and the computer storage medium may be a nonvolatile computer-readable computer storage medium, where a batch import program of data is stored on the computer storage medium, and when being executed by a processor, the batch import of data implements the steps of the batch import method of data as described above.
The steps implemented when the batch import program of the data running on the processor is executed may refer to various embodiments of the batch import method of the data of the present invention, and are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of other like elements in a process, method, article, or system comprising the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention or portions thereof that contribute to the prior art may be embodied in the form of a software product, where the computer software product is stored in a computer storage medium (e.g., flash memory, ROM/RAM, magnetic disk, optical disk), and includes several instructions for enabling a controller, which is used for controlling a terminal device (e.g., a mobile phone, a computer, a server, or a network device), to perform data reading and writing operations on the storage medium to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. The batch import method of the data is applied to a batch data import system, the batch data import system provides a visual front-end page, the batch import system is connected with a parking lot system of a parking lot, and the parking lot system comprises: the batch import method of the data comprises the following steps:
acquiring a template file, performing batch processing on the template file to obtain batch information, determining the processing state of the current batch information in each batch information as a to-be-processed state, and displaying the current batch information and the to-be-processed state to the front-end page;
sending the current batch information to the business service module, and receiving a data authority verification result obtained by the business service module aiming at the current batch information;
confirming one or more data import tasks according to the data permission verification result, and adding the one or more data import tasks into a preset task pool;
and sending the current data import task in the task pool to the business service module so that the business service module can carry out validity verification on the current data import task to obtain a validity verification result, and importing the current data import task into a parking lot system according to the validity verification result.
2. The batch import method for data according to claim 1, wherein the step of confirming one or more data import tasks according to the data permission check result comprises:
confirming whether the data authority verification result is successful in data authority verification;
if the data authority verification result is confirmed to be that the data authority verification is successful, confirming the processing state of the current batch of information as an analysis state, and displaying the analysis state to the front-end page;
analyzing the current batch information to obtain one or more data import tasks, confirming the processing state of the current batch information as a processing state, and displaying the processing state to the front-end page.
3. The batch import method of data according to claim 2, wherein after the step of confirming whether the data right check result is a successful data right check, the method further comprises:
and if the data permission verification result is confirmed to be data permission verification failure, sending next batch information of the next batch to a business service module of the parking lot, and receiving a data permission verification result of the business service module for performing data permission verification on the next batch information.
4. The batch import method of data according to claim 1, wherein the step of sending the current data import task in the task pool to the business service module, so that the business service module performs validity check on the current data import task to obtain a validity check result, and importing the current data import task into the parking lot system according to the validity check result includes:
and sending the current data import task in the task pool to the business service module so that the business service module can carry out validity check on the current data import task to obtain a validity check result, and confirm whether the validity check result is successful, if so, importing the current data import task into the parking lot system.
5. The batch import method of data according to claim 1, wherein after the step of sending the current batch information to the business service module, the method further comprises:
executing batch locking logic aiming at the current batch information, and confirming whether the result of the batch locking logic is successful;
if the batch locking logic result is confirmed to be successful, confirming the processing state of the current batch information as a check state, and displaying the check state to the front-end page;
and if the batch locking logic result is confirmed to be locking failure, sending next batch information of the next batch to a business service module of the parking lot, and receiving a data authority verification result of the business service module for performing data authority verification on the next batch information.
6. The method for bulk import of data according to claim 1, wherein after the step of sending the current data import task to the business service module, the method further comprises:
executing task locking logic aiming at the current data import task, and confirming whether the result of the data import task locking logic is successful;
if the task locking logic result is confirmed to be that the locking is successful, confirming the processing state of the current data import task as a processing state, and displaying the current data import task and the processing state to the front-end page;
and if the task locking logic result is confirmed to be locking failure, sending the next data import task to the business service module, carrying out validity verification on the next data import task by the business service module to obtain a validity verification result, and importing the next data import task into the parking lot system according to the validity verification result.
7. The method of bulk import of data according to claim 1, the method further comprising:
and if the operation that the current data import task is imported into the parking lot system is determined to be failed, removing the current data import task from the task pool, and updating the corresponding processing state and failure reason.
8. The device for batch import of data is characterized in that the method for batch import of data is applied to a batch data import system, the batch data import system provides a visual front-end page, the batch import system is connected with a parking lot system of a parking lot, and the parking lot system comprises: the business service module, the batch import device of the said data includes:
the batch processing module is used for acquiring a template file, processing the template file to obtain batch information, determining the processing state of the current batch information in each batch information as a to-be-processed state, and displaying the to-be-processed state to the front-end page;
the data authority verification module is used for sending the current batch information to the business service module and receiving a data authority verification result obtained by the business service module aiming at the current batch information;
the acquisition module is used for confirming one or more data import tasks according to the data permission verification result and adding the one or more data import tasks into a preset task pool;
and the import module is used for sending the current data import task in the task pool to the business service module so that the business service module can carry out validity check on the current data import task to obtain a validity check result, and importing the current data import task into the parking lot system according to the validity check result.
9. A terminal device, characterized in that the terminal device comprises: memory, a processor and a batch import program of data stored on the memory and executable on the processor, the batch import program of data implementing the steps of the batch import method of data according to any of claims 1 to 7 when executed by the processor.
10. A computer storage medium, characterized in that the computer storage medium has stored thereon a batch import program of data, which when executed by a processor implements the steps of the batch import method of data according to any one of claims 1 to 7.
CN202211231290.1A 2022-10-09 2022-10-09 Batch data importing method and device, terminal equipment and storage medium Pending CN115470281A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211231290.1A CN115470281A (en) 2022-10-09 2022-10-09 Batch data importing method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211231290.1A CN115470281A (en) 2022-10-09 2022-10-09 Batch data importing method and device, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115470281A true CN115470281A (en) 2022-12-13

Family

ID=84337196

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211231290.1A Pending CN115470281A (en) 2022-10-09 2022-10-09 Batch data importing method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115470281A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115905269A (en) * 2023-01-06 2023-04-04 深圳市明源云科技有限公司 Data import method, system, device and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115905269A (en) * 2023-01-06 2023-04-04 深圳市明源云科技有限公司 Data import method, system, device and storage medium

Similar Documents

Publication Publication Date Title
CN110268389B (en) Simulator for system testing
CN108335237B (en) Scheme setting method, terminal and computer readable storage medium
CN111340558B (en) Online information processing method, device, equipment and medium based on federal learning
CN110555681B (en) Bank card signing method, device, server and medium
CN110267215B (en) Data detection method, equipment and storage medium
CN112579453A (en) Task testing method, device, equipment and storage medium
CN112711640A (en) Method and device for configuring business handling process
CN110852719A (en) Electronic contract signing method and device, electronic equipment and storage medium
CN111130988A (en) ETC (electronic toll Collection) handling method, client, server and system based on WeChat applet
CN112163945B (en) ETC binding method, terminal equipment and readable storage medium
CN104753909A (en) Updated information authentication method, device and system
CN113706138B (en) Payment method, device, equipment and storage medium based on digital currency hard wallet
CN112631911A (en) Automatic testing method and device, computer equipment and storage medium
CN115470281A (en) Batch data importing method and device, terminal equipment and storage medium
CN112258191A (en) Data reconciliation method, device, equipment and storage medium
CN115617780A (en) Data import method, device, equipment and storage medium
CN112015651A (en) Data processing method and device
CN113271554B (en) Bank branch counter business handling method, device and system based on 5g message
CN110149625A (en) Phone number verification method and system
CN108243005B (en) Application registration verification method, participant management system, device and medium
CN112433935A (en) Test method, test device, electronic equipment and storage medium
CN111208999A (en) Template-based instruction generation method and device, terminal equipment and storage medium
CN112488691A (en) Merchant settlement charging method and device and computer readable storage medium
CN112083925A (en) Data acquisition method, device, equipment and storage medium based on H5 page development
CN110111188B (en) Business handling method and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination