CN112084215A - Vehicle information query method and device, computer equipment and storage medium - Google Patents

Vehicle information query method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112084215A
CN112084215A CN202010937286.1A CN202010937286A CN112084215A CN 112084215 A CN112084215 A CN 112084215A CN 202010937286 A CN202010937286 A CN 202010937286A CN 112084215 A CN112084215 A CN 112084215A
Authority
CN
China
Prior art keywords
information
vehicles
vehicle
query
queryable
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
CN202010937286.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.)
Ping An Property and Casualty Insurance Company of China Ltd
Original Assignee
Ping An Property and Casualty Insurance Company of China 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 Ping An Property and Casualty Insurance Company of China Ltd filed Critical Ping An Property and Casualty Insurance Company of China Ltd
Priority to CN202010937286.1A priority Critical patent/CN112084215A/en
Publication of CN112084215A publication Critical patent/CN112084215A/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/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2471Distributed queries
    • 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/24Querying
    • G06F16/245Query processing
    • G06F16/2453Query optimisation
    • G06F16/24532Query optimisation of parallel queries

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Software Systems (AREA)
  • Mathematical Physics (AREA)
  • Fuzzy Systems (AREA)
  • Traffic Control Systems (AREA)

Abstract

The embodiment of the application belongs to the technical field of big data, is applied to the field of intelligent traffic, and relates to a vehicle information query method, which comprises the following steps: when a one-key query instruction of a vehicle is received, acquiring verification information of a current user; determining all corresponding queryable vehicles and consumption information of all the queryable vehicles according to the verification information; and sequentially inquiring the information records of all the inquired vehicles through a distributed lock based on a preset message distribution mechanism and the consumption information, and summarizing all the information records obtained by inquiry when the inquiry finishing prompt information is received. The application also provides a vehicle information inquiry device, computer equipment and a storage medium. In addition, the application also relates to a block chain technology, and the information record can be stored in the block chain. The method and the device have the advantages that one-key batch query of the vehicles is realized, the vehicle query process is optimized, and the vehicle information query efficiency is improved.

Description

Vehicle information query method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of big data technologies, and in particular, to a vehicle information query method, apparatus, computer device, and storage medium.
Background
Currently, as vehicles gradually increase, road conditions become more and more complex, and various vehicle violation conditions emerge endlessly. In order to control the vehicle information in real time, a user can generally inquire the violation information of the vehicle through a mobile phone APP so as to process violation records in time.
However, when vehicle information is queried through a conventional vehicle management, violation information of a single vehicle can be queried only once, when the number of vehicles queried once is large, uniform query cannot be performed on all vehicles, and when a user of an enterprise queries vehicles, vehicle query can be performed only one by one, and uniform query cannot be performed on all vehicles of the enterprise. Therefore, the vehicle information inquiry efficiency is low, and the payment is not timely.
Disclosure of Invention
An embodiment of the application aims to provide a vehicle information query method, a vehicle information query device, a computer device and a storage medium, so as to solve the technical problem of low vehicle information query efficiency.
In order to solve the above technical problem, an embodiment of the present application provides a vehicle information query method, which adopts the following technical solutions:
when a one-key query instruction of a vehicle is received, acquiring verification information of a current user;
determining all corresponding queryable vehicles and consumption information of all the queryable vehicles according to the verification information, wherein the consumption information is license plate information and/or frame information of the queryable vehicles;
and sequentially inquiring the information records of all the inquired vehicles through a distributed lock based on a preset message distribution mechanism and the consumption information, and summarizing all the information records obtained by inquiry when the inquiry finishing prompt information is received.
Further, the step of sequentially querying the information records of all the queryable vehicles through the distributed locks based on a preset message distribution mechanism and the consumption information specifically includes:
creating a temporary node corresponding to each consumption information according to a preset message distribution mechanism;
detecting whether the current temporary node is a first node, distributing a lock to the temporary node when the current temporary node is the first node, releasing the lock when an information record corresponding to the temporary node is obtained, and deleting the temporary node.
Further, the step of determining all corresponding queryable vehicles according to the verification information specifically includes:
when the received verification information is policy information, identifying field information in the policy information;
and taking the field information as a search guide, and inquiring all queryable vehicles corresponding to the search guide based on a preset policy vehicle database.
Further, the step of determining all corresponding queryable vehicles according to the verification information specifically includes:
when the verification information is received as identity information, acquiring pre-registered registration information associated with the identity information;
and acquiring all queryable vehicles from the registration information.
Further, the step of summarizing all the information records obtained by query specifically includes:
counting the vehicles which are successfully inquired and the vehicles which are unsuccessfully inquired in all the information records obtained by inquiry;
and feeding back the violation records of the vehicles successfully inquired and prompt information of the vehicles failed to inquire.
Further, after the step of feeding back the violation records of the vehicles with successful inquiry and the prompt information of the vehicles with failed inquiry, the method comprises the following steps:
when a one-key review instruction of the failed vehicle is received, analyzing prompt information corresponding to all the failed vehicles;
and acquiring the consumption information of all the vehicles failed to be inquired again according to the prompt information, and inquiring the information records of all the vehicles failed to be inquired again according to the consumption information of all the vehicles failed to be inquired.
Further, after the step of querying for a successful vehicle and querying for a failed vehicle in all information records obtained by the statistical query, the method comprises:
acquiring payment time limit and payment state of all the vehicles which are successfully inquired;
and sequencing all vehicles with successful inquiry, the payment states of which are not payment states, according to the payment period.
In order to solve the above technical problem, an embodiment of the present application further provides a vehicle information query device, which adopts the following technical solutions:
the acquisition module is used for acquiring the verification information of the current user when a one-key query instruction of the vehicle is received;
the confirmation module is used for determining all corresponding queryable vehicles and consumption information of all the queryable vehicles according to the verification information, wherein the consumption information is license plate information and/or frame information of the queryable vehicles;
and the query module is used for sequentially querying the information records of all the queriable vehicles through the distributed locks based on a preset message distribution mechanism and the consumption information, and summarizing all the information records obtained by query when the query finishing prompt information is received.
In order to solve the technical problem, an embodiment of the present application further provides a computer device, which includes a memory and a processor, where the memory stores computer-readable instructions, and the processor implements the steps of the vehicle information query method when executing the computer-readable instructions.
In order to solve the above technical problem, an embodiment of the present application further provides a computer-readable storage medium, where computer-readable instructions are stored on the computer-readable storage medium, and when executed by a processor, the computer-readable instructions implement the steps of the above vehicle information query method.
The method comprises the steps that when a one-key query instruction of a vehicle is received, verification information of a current user is obtained; the system comprises a vehicle inquiry system, a vehicle inquiry system and a vehicle management system, wherein the vehicle inquiry system comprises a vehicle inquiry system, a vehicle management system and a vehicle management system, wherein the vehicle inquiry system comprises a vehicle inquiry system, a vehicle management system and a vehicle management system, wherein the vehicle management system comprises; and sequentially inquiring the information records of all the inquired vehicles through a distributed lock based on a preset message distribution mechanism and the consumption information, and summarizing all the information records obtained by inquiry when the inquiry finishing prompt information is received. Therefore, one-key batch query of the vehicles is realized, the vehicle query process is optimized, and the vehicle information query efficiency is improved.
Drawings
In order to more clearly illustrate the solution of the present application, the drawings needed for describing the embodiments of the present application will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and that other drawings can be obtained by those skilled in the art without inventive effort.
FIG. 1 is an exemplary system architecture diagram in which the present application may be applied;
FIG. 2 is a flow diagram of one embodiment of a vehicle information query method according to the present application;
FIG. 3 is a schematic structural diagram of one embodiment of a vehicle information query device according to the present application;
FIG. 4 is a schematic block diagram of one embodiment of a computer device according to the present application.
Reference numerals: the vehicle information inquiry apparatus 400 includes: an acquisition module 401, a confirmation module 402 and a query module 403.
Detailed Description
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs; the terminology used in the description of the application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application; the terms "including" and "having," and any variations thereof, in the description and claims of this application and the description of the above figures are intended to cover non-exclusive inclusions. The terms "first," "second," and the like in the description and claims of this application or in the above-described drawings are used for distinguishing between different objects and not for describing a particular order.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have various communication client applications installed thereon, such as a web browser application, a shopping application, a search application, an instant messaging tool, a mailbox client, social platform software, and the like.
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture experts Group Audio Layer III, mpeg compression standard Audio Layer 3), MP4 players (Moving Picture experts Group Audio Layer IV, mpeg compression standard Audio Layer 4), laptop portable computers, desktop computers, and the like.
The server 105 may be a server providing various services, such as a background server providing support for pages displayed on the terminal devices 101, 102, 103.
It should be noted that the vehicle information query method provided in the embodiments of the present application is generally executed by a server/terminal device, and accordingly, the vehicle information query apparatus is generally disposed in the server/terminal device.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to FIG. 2, a flow diagram of one embodiment of a vehicle information query method in accordance with the present application is shown. The vehicle information query method comprises the following steps:
step S201, when a one-key query instruction of a vehicle is received, acquiring verification information of a current user;
in this embodiment, the verification information is acquired vehicle verification information, and includes policy information and/or identity information. The warranty information is information such as warranty numbers corresponding to all vehicles under warranty, and the identity information includes information such as user identity cards and driving licenses. And when a one-key query instruction of the vehicle is received, acquiring the verification information of the current user.
Step S202, determining all corresponding queryable vehicles and consumption information of all the queryable vehicles according to the verification information, wherein the consumption information is license plate information and/or frame information of the queryable vehicles;
in this embodiment, when different verification information includes different content, different preset query modes are provided correspondingly. When the verification information is policy information, acquiring a preset query mode corresponding to the policy information, and querying the queriable vehicles corresponding to the policy information according to the preset query mode, wherein the preset query mode can be that if a related policy vehicle database is queried according to the policy information, all queriable vehicles corresponding to the policy information are determined from the policy vehicle database; the inquired vehicles acquired through policy information inquiry are all the vehicles under insurance policy inquired under the current policy information.
When the verification information is the identity information of the user, the identity information is analyzed, the identity card information or the driving license information in the identity information is obtained, and all inquired vehicles which are registered in advance under the identity information are obtained according to the identity card information or the driving license information. Specifically, the actual owner of the queryable vehicle is not necessarily the same as the registrant corresponding to the identity information, and when it is detected that the registrant registers the queryable vehicle in advance, registration information (such as registered license plate number and other information) of the queryable vehicle is acquired, the actual owner of the queryable vehicle is determined according to the registration information, whether the registration information is confirmed or not is sent to the actual owner, and when the returned confirmation registration information of the queryable vehicle is received, the queryable vehicle is registered under the name of the registrant. Therefore, the queryable vehicles finally acquired by the identity information specifically include the vehicles under guarantee and the vehicles under guarantee.
Further, if the current verification information simultaneously comprises policy information and identity information, respectively inquiring to obtain corresponding inquired vehicles based on the policy information and the identity information. The consumption information of the queryable vehicle is the license plate information, the frame information and other information corresponding to the current queryable vehicle, and the corresponding queryable vehicle can be uniquely determined through the consumption information. When the queryable vehicle is determined through the verification information, consumption information related to the current queryable vehicle can be obtained at the same time, and information records of the queryable vehicle can be further inquired according to the consumption information, wherein the information records comprise violation records, payment information and the like of the queryable vehicle.
And step S203, sequentially inquiring the information records of all the inquired vehicles through a distributed lock based on a preset message distribution mechanism and the consumption information, and summarizing all the information records obtained through inquiry when inquiry end prompt information is received.
In this embodiment, the message queue is a container for storing messages during transmission, and is a first-in first-out data structure, and functions such as application decoupling, traffic buffering, message distribution, and the like can be implemented by the message queue. Three different message middleware such as RabbitMQ, ActivityMQ and RockketMQ can provide the capability of message queue. The preset message distribution mechanism may be a queue message distribution mechanism, and specifically, when the consumption information of all queriable vehicles is acquired, the acquired consumption information is cached through a message queue based on the preset message distribution mechanism, and when the consumption information is queried, the consumption information is extracted from the message queue and controlled through a distributed lock, so that the information record corresponding to each queriable vehicle is sequentially acquired according to the consumption information. The information record comprises a violation record and payment information of the inquired vehicle, and the violation record further comprises information such as a violation place, violation times, deduction records and the like. The consumption information is distributed and temporarily stored through the message queue, so that the problem of concurrence caused when a plurality of vehicles are inquired at one time can be avoided.
It is emphasized that the information record may also be stored in a node of a block chain in order to further ensure privacy and security of the information record.
The block chain referred by the application is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
The embodiment realizes one-key batch query of the vehicles, optimizes the vehicle query process and improves the vehicle information query efficiency. This scheme can be applied to in the wisdom traffic field to promote the construction in wisdom city.
In some embodiments of the present application, the sequentially querying, through a distributed lock, the information records of all the queryable vehicles based on a preset message distribution mechanism and the consumption information includes:
creating a temporary node corresponding to each consumption information according to a preset message distribution mechanism;
detecting whether the current temporary node is a first node, distributing a lock to the temporary node when the current temporary node is the first node, releasing the lock when an information record corresponding to the temporary node is obtained, and deleting the temporary node.
In this embodiment, to avoid mutual interference among multiple processes in the distributed system, a single request message can be executed by only one thread of one machine at a time through the distributed lock. Therefore, when a one-key query instruction is received, according to a preset message distribution mechanism, the consumption information of all the queryable vehicles is cached in the message queue, and the consumption information of the queryable vehicles in the message queue is subjected to distributed lock control, so that only the consumption information of one queryable vehicle can enter query. Specifically, the distributed lock control of the consumption information is that a corresponding temporary node is created for each consumption information, whether the temporary node corresponding to the current consumption information is a first node or not is detected, when the temporary node is the first node, the corresponding consumption information obtains a lock, the consumption information is sent to a corresponding query system, the consumption information is queried according to the query system, and then an information record corresponding to the consumption information can be obtained; and when the information record is acquired, releasing the lock of the consumption information, and deleting the temporary node corresponding to the consumption information. If the node corresponding to the current consumption information is detected to be not the first node, monitoring the previous node of the temporary node corresponding to the current consumption information, waiting for the deletion of the previous node, determining the temporary node corresponding to the current consumption information to be the first node when the deletion of the previous node is monitored, and acquiring an information record corresponding to the consumption information; and sequentially inquiring to obtain the information record corresponding to each consumption information according to the mode.
According to the embodiment, the inquiry of the corresponding information records of the inquireable vehicle according to the distributed lock is realized, the interface problem caused by high-concurrency inquiry is avoided, and the inquiry efficiency of the information records is improved.
In some embodiments of the present application, the determining all corresponding queryable vehicles according to the verification information includes:
when the received verification information is policy information, identifying field information in the policy information;
and taking the field information as a search guide, and inquiring all queryable vehicles corresponding to the search guide based on a preset policy vehicle database.
In this embodiment, when the received verification information is policy information, field information, such as a policy number, in the policy information is identified; and taking the field information as a search guide, and inquiring all inquireable vehicles corresponding to the policy information from a preset policy vehicle database according to the search guide. The data in the preset policy vehicle database are stored in a classified manner by the search guide, and when policy information is analyzed to obtain field information, the field information obtained by analysis can be used as the corresponding search guide only by analyzing according to the format of the search guide in the policy vehicle database. Specifically, the preset policy vehicle database may be ES (elastic search), where ES is an open source distributed search engine based on RESTful web interface and built on Apache Lucene, and ES is also a distributed document database, where each field may be indexed and data of each field may be searched. Therefore, when the received verification information is policy information, the field information in the policy information is identified, that is, the policy is parsed into the field information in the format conforming to the search guidance in the ES, and all corresponding queryable vehicles can be queried from the ES according to the field information.
The embodiment realizes the determination of the inquired vehicles according to the search guide, and improves the efficiency and the accuracy of acquiring the inquired vehicles.
In some embodiments of the present application, the determining all corresponding queryable vehicles according to the verification information further includes:
when the verification information is received as identity information, acquiring pre-registered registration information associated with the identity information;
and acquiring all queryable vehicles from the registration information.
In this embodiment, when receiving the verification information, the identity information in the verification information may be obtained through optical Character recognition, where optical Character recognition ocr (optical Character recognition) refers to a process of determining a shape of a scanned Character by detecting a dark and light pattern, and then translating the shape into a computer word by means of Character recognition. For printing characters, characters in a paper document are optically converted into an image file of a black-and-white dot matrix, and characters in a software image are identified and converted into a text format, so that the character processing software can further edit and process the characters. When the verification information is received as the identity information, the identity information is recognized based on OCR, registered information which is registered in advance is obtained according to the identity information, the registered information is associated with the identity information, and when the registered information is obtained, all inquireable vehicles which are registered in advance are determined according to the registered information. Wherein the queryable vehicles determined from the identity information include registered vehicles under warranty and vehicles under no warranty.
According to the embodiment, when the verification information is the identity information, the queryable vehicles are determined according to the identity information, so that the queryable vehicles of different types can be queried, and the query range is improved.
In some embodiments of the present application, all the information records obtained by the above-mentioned summary query include:
counting the vehicles which are successfully inquired and the vehicles which are unsuccessfully inquired in all the information records obtained by inquiry;
and feeding back the violation records of the vehicles successfully inquired and prompt information of the vehicles failed to inquire.
In this embodiment, when querying the information records of the queryable vehicles, there may be vehicles for which the querying fails. Therefore, statistics of vehicles with successful inquiry and vehicles with failed inquiry are needed at the end of inquiry. Whether the inquiry is finished or not can be determined according to the recorded inquired vehicle number and the received consumption information number, and when the inquired vehicle number is equal to the received consumption information number, the inquiry of all inquired vehicles is finished, namely, the inquiry is finished. And when the inquiry of all the inquired vehicles is determined to be finished, the return identifiers of all the inquired vehicles are obtained, whether the inquiry is successful or not is determined according to the return identifiers, and the inquiry success vehicles and the inquiry failure vehicles in the inquired vehicles are counted. The corresponding prompt information can also be obtained for the return identifier of the vehicle with the failed inquiry, different return identifiers correspond to different prompt information, for example, when the return identifier is 1, the corresponding prompt information is the license plate number error of the current inquired vehicle, and the prompt information specifically includes information such as license plate number error and frame number error. And pushing the corresponding violation record to a display interface for the vehicle successfully inquired.
The embodiment realizes statistics of vehicles successfully queried and vehicles failed to be queried in the information record, so that the information details of the queryable vehicles can be quickly known through statistics.
In some embodiments of the present application, after the above-mentioned feeding back the violation record of the vehicle with successful inquiry and the prompt information of the vehicle with failed inquiry, the method further includes:
when a one-key review instruction of the failed vehicle is received, analyzing prompt information corresponding to all the failed vehicles;
and acquiring the consumption information of all the vehicles failed to be inquired again according to the prompt information, and inquiring the information records of all the vehicles failed to be inquired again according to the consumption information of all the vehicles failed to be inquired.
In the embodiment, when a one-key review instruction is received, the prompt information of all the failed query vehicles is analyzed through character semantic recognition, and the consumption information which causes the query failure and corresponds to each failed query vehicle is determined according to the prompt information; and re-acquiring the consumption information. For example, if the prompt information is analyzed to determine that the consumption information causing the query failure is a license plate number error, the license plate number is obtained again. And when the consumption information which causes all the failed inquiry vehicles to be unsuccessfully inquired is obtained again, inquiring the information records of all the failed inquiry vehicles again through the distributed lock according to the consumption information. Particularly, when the consumption information corresponding to the prompt information cannot be acquired, the feedback cannot be queried.
The embodiment realizes the targeted one-key rechecking of the vehicle with the failed query, avoids the rechecking of all vehicles and improves the query efficiency.
In some embodiments of the present application, the steps of querying all the information records obtained by the statistical query for a successful vehicle and querying for a failed vehicle are followed by:
acquiring payment time limit and payment state of all the vehicles which are successfully inquired;
and sequencing all vehicles with successful inquiry, the payment states of which are not payment states, according to the payment period.
In this embodiment, when acquiring all inquiry success vehicles, the payment time limit and the payment state of each inquiry success vehicle in the information records corresponding to all inquiry success vehicles can be acquired, for an inquiry success vehicle whose payment state is in an unpaid state, sorting is performed according to the distance from the current time to the payment time limit, and the inquiry success vehicles closer to the payment time limit are sorted before, and the inquiry success vehicles farther from the payment time limit are sorted after. And sequencing the vehicles with successful inquiry and the payment states of paid vehicles from large to small according to the payment amount.
The vehicle sequencing method and the vehicle sequencing system have the advantages that sequencing of the vehicles according to the payment time limit is achieved, and the information records after sequencing can be used for acquiring the required information more directly and quickly.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware associated with computer readable instructions, which can be stored in a computer readable storage medium, and when executed, can include processes of the embodiments of the methods described above. The storage medium may be a non-volatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a Random Access Memory (RAM).
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
With further reference to fig. 3, as an implementation of the method shown in fig. 2, the present application provides an embodiment of a vehicle information query apparatus, which corresponds to the embodiment of the method shown in fig. 2, and which can be applied to various electronic devices.
As shown in fig. 3, the vehicle information inquiry apparatus 400 according to the present embodiment includes: an acquisition module 401, a confirmation module 402 and a query module 403. Wherein:
the obtaining module 401 is configured to obtain verification information of a current user when a one-key query instruction of a vehicle is received;
in this embodiment, the verification information is acquired vehicle verification information, and includes policy information and/or identity information. The warranty information is information such as warranty numbers corresponding to all vehicles under warranty, and the identity information includes information such as user identity cards and driving licenses. And when a one-key query instruction of the vehicle is received, acquiring the verification information of the current user.
A confirmation module 402, configured to determine, according to the verification information, all corresponding queryable vehicles and consumption information of all the queryable vehicles, where the consumption information is license plate information and/or frame information of the queryable vehicles;
wherein the confirming module 402 further comprises:
the identification unit is used for identifying field information in the policy information when the verification information is received as the policy information;
and the query unit is used for taking the field information as a search guide and querying all queriable vehicles corresponding to the search guide based on a preset policy vehicle database.
A first acquisition unit configured to acquire pre-registered registration information associated with the identity information when the authentication information is received as the identity information;
and the second acquisition unit is used for acquiring all queryable vehicles from the registration information.
In this embodiment, when different verification information includes different content, different preset query modes are provided correspondingly. When the verification information is policy information, acquiring a preset query mode corresponding to the policy information, and querying the queriable vehicles corresponding to the policy information according to the preset query mode, wherein the preset query mode can be that if a related policy vehicle database is queried according to the policy information, all queriable vehicles corresponding to the policy information are determined from the policy vehicle database; the inquired vehicles acquired through policy information inquiry are all the vehicles under insurance policy inquired under the current policy information.
When the verification information is the identity information of the user, the identity information is analyzed, the identity card information or the driving license information in the identity information is obtained, and all inquired vehicles which are registered in advance under the identity information are obtained according to the identity card information or the driving license information. Specifically, the actual owner of the queryable vehicle is not necessarily the same as the registrant corresponding to the identity information, and when it is detected that the registrant registers the queryable vehicle in advance, registration information (such as registered license plate number and other information) of the queryable vehicle is acquired, the actual owner of the queryable vehicle is determined according to the registration information, whether the registration information is confirmed or not is sent to the actual owner, and when the returned confirmation registration information of the queryable vehicle is received, the queryable vehicle is registered under the name of the registrant. Therefore, the queryable vehicles finally acquired by the identity information specifically include the vehicles under guarantee and the vehicles under guarantee.
Further, if the current verification information simultaneously comprises policy information and identity information, respectively inquiring to obtain corresponding inquired vehicles based on the policy information and the identity information. The consumption information of the queryable vehicle is the license plate information, the frame information and other information corresponding to the current queryable vehicle, and the corresponding queryable vehicle can be uniquely determined through the consumption information. When the queryable vehicle is determined through the verification information, consumption information related to the current queryable vehicle can be obtained at the same time, and information records of the queryable vehicle can be further inquired according to the consumption information, wherein the information records comprise violation records, payment information and the like of the queryable vehicle.
And the query module 403 is configured to sequentially query the information records of all the queriable vehicles through the distributed locks based on a preset message distribution mechanism and the consumption information, and when receiving query completion prompt information, summarize all the information records obtained through the query.
Wherein the query module 403 further includes:
the creating unit is used for creating a temporary node corresponding to each piece of consumption information according to a preset message distribution mechanism;
the detection unit is used for detecting whether the current temporary node is a first node or not, distributing a lock to the temporary node when the current temporary node is the first node, releasing the lock when the information record corresponding to the temporary node is obtained, and deleting the temporary node.
The statistical unit is used for counting the vehicles which are successfully inquired and the vehicles which are unsuccessfully inquired in all the information records obtained by inquiry;
and the feedback unit is used for feeding back the violation records of the vehicles successfully inquired and the prompt information of the vehicles failed to inquire.
In this embodiment, the message queue is a container for storing messages during transmission, and is a first-in first-out data structure, and functions such as application decoupling, traffic buffering, message distribution, and the like can be implemented by the message queue. Three different message middleware such as RabbitMQ, ActivityMQ and RockketMQ can provide the capability of message queue. The preset message distribution mechanism may be a queue message distribution mechanism, and specifically, when the consumption information of all queriable vehicles is acquired, the acquired consumption information is cached through a message queue based on the preset message distribution mechanism, and when the consumption information is queried, the consumption information is extracted from the message queue and controlled through a distributed lock, so that the information record corresponding to each queriable vehicle is sequentially acquired according to the consumption information. The information record comprises a violation record and payment information of the inquired vehicle, and the violation record further comprises information such as a violation place, violation times, deduction records and the like. The consumption information is distributed and temporarily stored through the message queue, so that the problem of concurrence caused when a plurality of vehicles are inquired at one time can be avoided.
It is emphasized that the information record may also be stored in a node of a block chain in order to further ensure privacy and security of the information record.
The block chain referred by the application is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
The first review unit is used for analyzing prompt information corresponding to all the failed inquiry vehicles when receiving a one-key review instruction of the failed inquiry vehicles;
and the second rechecking unit is used for reacquiring the consumption information of all the vehicles failed in inquiry according to the prompt information and rechecking the information records of all the vehicles failed in inquiry through the consumption information of all the vehicles failed in inquiry.
In the embodiment, when a one-key review instruction is received, the prompt information of all the failed query vehicles is analyzed through character semantic recognition, and the consumption information which causes the query failure and corresponds to each failed query vehicle is determined according to the prompt information; and re-acquiring the consumption information. For example, if the prompt information is analyzed to determine that the consumption information causing the query failure is a license plate number error, the license plate number is obtained again. And when the consumption information which causes all the failed inquiry vehicles to be unsuccessfully inquired is obtained again, inquiring the information records of all the failed inquiry vehicles again through the distributed lock according to the consumption information. Particularly, when the consumption information corresponding to the prompt information cannot be acquired, the feedback cannot be queried.
The third acquisition unit is used for acquiring the payment time limit and the payment state of all the vehicles which are successfully inquired;
and the sequencing unit is used for sequencing all the vehicles with successful inquiry and the payment states of which are not payment states according to the payment period.
In this embodiment, when acquiring all inquiry success vehicles, the payment time limit and the payment state of each inquiry success vehicle in the information records corresponding to all inquiry success vehicles can be acquired, for an inquiry success vehicle whose payment state is in an unpaid state, sorting is performed according to the distance from the current time to the payment time limit, and the inquiry success vehicles closer to the payment time limit are sorted before, and the inquiry success vehicles farther from the payment time limit are sorted after. And sequencing the vehicles with successful inquiry and the payment states of paid vehicles from large to small according to the payment amount.
The vehicle information inquiry device provided by the application realizes one-key batch inquiry of vehicles, optimizes the vehicle inquiry process and improves the vehicle information inquiry efficiency.
In order to solve the technical problem, an embodiment of the present application further provides a computer device. Referring to fig. 4, fig. 4 is a block diagram of a basic structure of a computer device according to the present embodiment.
The computer device 6 comprises a memory 61, a processor 62, a network interface 63 communicatively connected to each other via a system bus. It is noted that only a computer device 6 having components 61-63 is shown, but it is understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead. As will be understood by those skilled in the art, the computer device is a device capable of automatically performing numerical calculation and/or information processing according to a preset or stored instruction, and the hardware includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like.
The computer device can be a desktop computer, a notebook, a palm computer, a cloud server and other computing devices. The computer equipment can carry out man-machine interaction with a user through a keyboard, a mouse, a remote controller, a touch panel or voice control equipment and the like.
The memory 61 includes at least one type of readable storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the memory 61 may be an internal storage unit of the computer device 6, such as a hard disk or a memory of the computer device 6. In other embodiments, the memory 61 may also be an external storage device of the computer device 6, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the computer device 6. Of course, the memory 61 may also comprise both an internal storage unit of the computer device 6 and an external storage device thereof. In this embodiment, the memory 61 is generally used for storing an operating system installed in the computer device 6 and various types of application software, such as computer readable instructions of a vehicle information query method. Further, the memory 61 may also be used to temporarily store various types of data that have been output or are to be output.
The processor 62 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 62 is typically used to control the overall operation of the computer device 6. In this embodiment, the processor 62 is configured to execute computer readable instructions stored in the memory 61 or process data, such as computer readable instructions for executing the vehicle information query method.
The network interface 63 may comprise a wireless network interface or a wired network interface, and the network interface 63 is typically used for establishing a communication connection between the computer device 6 and other electronic devices.
The computer equipment provided by the application realizes one-key batch inquiry of the vehicles, optimizes the vehicle inquiry process and improves the vehicle information inquiry efficiency.
The present application further provides another embodiment, which is to provide a computer-readable storage medium storing computer-readable instructions executable by at least one processor to cause the at least one processor to perform the steps of the vehicle information query method as described above.
The computer-readable storage medium provided by the application realizes one-key batch query of the vehicles, optimizes the vehicle query process and improves the vehicle information query efficiency.
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 solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
It is to be understood that the above-described embodiments are merely illustrative of some, but not restrictive, of the broad invention, and that the appended drawings illustrate preferred embodiments of the invention and do not limit the scope of the invention. This application is capable of embodiments in many different forms and is provided for the purpose of enabling a thorough understanding of the disclosure of the application. Although the present application has been described in detail with reference to the foregoing embodiments, it will be apparent to one skilled in the art that the present application may be practiced without modification or with equivalents of some of the features described in the foregoing embodiments. All equivalent structures made by using the contents of the specification and the drawings of the present application are directly or indirectly applied to other related technical fields and are within the protection scope of the present application.

Claims (10)

1. A vehicle information inquiry method is characterized by comprising the following steps:
when a one-key query instruction of a vehicle is received, acquiring verification information of a current user;
determining all corresponding queryable vehicles and consumption information of all the queryable vehicles according to the verification information, wherein the consumption information is license plate information and/or frame information of the queryable vehicles;
and sequentially inquiring the information records of all the inquired vehicles through a distributed lock based on a preset message distribution mechanism and the consumption information, and summarizing all the information records obtained by inquiry when the inquiry finishing prompt information is received.
2. The vehicle information query method according to claim 1, wherein the step of sequentially querying the information records of all the queryable vehicles through a distributed lock based on a preset message distribution mechanism and the consumption information specifically comprises:
creating a temporary node corresponding to each consumption information according to a preset message distribution mechanism;
detecting whether the current temporary node is a first node, distributing a lock to the temporary node when the current temporary node is the first node, releasing the lock when an information record corresponding to the temporary node is obtained, and deleting the temporary node.
3. The vehicle information query method according to claim 1, wherein the step of determining all corresponding queryable vehicles according to the verification information specifically includes:
when the received verification information is policy information, identifying field information in the policy information;
and taking the field information as a search guide, and inquiring all queryable vehicles corresponding to the search guide based on a preset policy vehicle database.
4. The vehicle information query method according to claim 1, wherein the step of determining all corresponding queryable vehicles according to the verification information specifically includes:
when the verification information is received as identity information, acquiring pre-registered registration information associated with the identity information;
and acquiring all queryable vehicles from the registration information.
5. The vehicle information query method according to claim 1, wherein the step of summarizing all the information records obtained by the query specifically includes:
counting the vehicles which are successfully inquired and the vehicles which are unsuccessfully inquired in all the information records obtained by inquiry;
and feeding back the violation records of the vehicles successfully inquired and prompt information of the vehicles failed to inquire.
6. The vehicle information inquiry method of claim 5, wherein after the step of feeding back the violation record of the inquiry successful vehicle and the prompt information of the inquiry failed vehicle, the method comprises:
when a one-key review instruction of the failed vehicle is received, analyzing prompt information corresponding to all the failed vehicles;
and acquiring the consumption information of all the vehicles failed to be inquired again according to the prompt information, and inquiring the information records of all the vehicles failed to be inquired again according to the consumption information of all the vehicles failed to be inquired.
7. The vehicle information query method according to claim 5, wherein the steps of querying for successful vehicles and querying for failed vehicles in all the information records obtained by the statistical query are followed by:
acquiring payment time limit and payment state of all the vehicles which are successfully inquired;
and sequencing all vehicles with successful inquiry, the payment states of which are not payment states, according to the payment period.
8. A vehicle information inquiry apparatus, characterized by comprising:
the acquisition module is used for acquiring the verification information of the current user when a one-key query instruction of the vehicle is received;
the confirmation module is used for determining all corresponding queryable vehicles and consumption information of all the queryable vehicles according to the verification information, wherein the consumption information is license plate information and/or frame information of the queryable vehicles;
and the query module is used for sequentially querying the information records of all the queriable vehicles through the distributed locks based on a preset message distribution mechanism and the consumption information, and summarizing all the information records obtained by query when the query finishing prompt information is received.
9. A computer device comprising a memory having computer readable instructions stored therein and a processor which when executed implements the steps of the vehicle information query method of any one of claims 1 to 7.
10. A computer-readable storage medium, having computer-readable instructions stored thereon, which, when executed by a processor, implement the steps of the vehicle information query method according to any one of claims 1 to 7.
CN202010937286.1A 2020-09-08 2020-09-08 Vehicle information query method and device, computer equipment and storage medium Pending CN112084215A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010937286.1A CN112084215A (en) 2020-09-08 2020-09-08 Vehicle information query method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010937286.1A CN112084215A (en) 2020-09-08 2020-09-08 Vehicle information query method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112084215A true CN112084215A (en) 2020-12-15

Family

ID=73732502

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010937286.1A Pending CN112084215A (en) 2020-09-08 2020-09-08 Vehicle information query method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112084215A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106021276A (en) * 2016-04-28 2016-10-12 泰华智慧产业集团股份有限公司 Method and system for checkpoint vehicle search based on distributed full-text retrieval system
CN106373406A (en) * 2016-12-02 2017-02-01 南京航空航天大学 Inspecting system against fake-licensed vehicles
CN107808345A (en) * 2017-09-29 2018-03-16 深圳市轱辘车联数据技术有限公司 A kind of information processing method, device, terminal and server
CN109214258A (en) * 2017-07-05 2019-01-15 杭州海康威视系统技术有限公司 Lose the detection method and device that the personnel that drive drive in violation of rules and regulations
CN109325751A (en) * 2018-09-30 2019-02-12 深圳市元征科技股份有限公司 A kind of vehicle violation method for monitoring and relevant device based on block chain technology
CN109741227A (en) * 2019-01-07 2019-05-10 巩志远 One kind is based on nearest neighbor algorithm prediction people room consistency processing method and system
CN110648002A (en) * 2019-10-08 2020-01-03 深圳市鹏巨术信息技术有限公司 Vehicle diagnosis method, device, equipment and readable storage medium
CN110727732A (en) * 2019-09-24 2020-01-24 广东以诺通讯有限公司 Method and platform for preventing drunk driving based on block chain

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106021276A (en) * 2016-04-28 2016-10-12 泰华智慧产业集团股份有限公司 Method and system for checkpoint vehicle search based on distributed full-text retrieval system
CN106373406A (en) * 2016-12-02 2017-02-01 南京航空航天大学 Inspecting system against fake-licensed vehicles
CN109214258A (en) * 2017-07-05 2019-01-15 杭州海康威视系统技术有限公司 Lose the detection method and device that the personnel that drive drive in violation of rules and regulations
CN107808345A (en) * 2017-09-29 2018-03-16 深圳市轱辘车联数据技术有限公司 A kind of information processing method, device, terminal and server
CN109325751A (en) * 2018-09-30 2019-02-12 深圳市元征科技股份有限公司 A kind of vehicle violation method for monitoring and relevant device based on block chain technology
CN109741227A (en) * 2019-01-07 2019-05-10 巩志远 One kind is based on nearest neighbor algorithm prediction people room consistency processing method and system
CN110727732A (en) * 2019-09-24 2020-01-24 广东以诺通讯有限公司 Method and platform for preventing drunk driving based on block chain
CN110648002A (en) * 2019-10-08 2020-01-03 深圳市鹏巨术信息技术有限公司 Vehicle diagnosis method, device, equipment and readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
万川梅,谢正兰著: "《深入云计算 Hadoop应用开发实战详解》", 30 June 2013, 北京:中国铁道出版社 *
钟林森编著: "《分布式中间件技术实战》", 30 November 2019, 北京:机械工业出版社 *

Similar Documents

Publication Publication Date Title
CN109791591B (en) Method and system for identity and credential protection and verification via blockchain
CN109389723B (en) Visitor management method and device using face recognition and computer equipment
US20180157851A1 (en) Systems and methods for authentication of access based on multi-data source information
CN104574537B (en) Hand-held issuing equipment, the online publishing system of board units and method
CN112162965B (en) Log data processing method, device, computer equipment and storage medium
CN112989313B (en) Identification registration method and device, electronic equipment and storage medium
WO2019127893A1 (en) Electronic signature method, electronic device, and computer readable storage medium
CN111563098A (en) Structured and unstructured data query method, device, storage medium and device
CN112541009B (en) Data query method, device, electronic equipment and storage medium
CN113242236A (en) Method for constructing network entity threat map
CN113535677B (en) Data analysis query management method, device, computer equipment and storage medium
CN112328486A (en) Interface automation test method and device, computer equipment and storage medium
CN115329381A (en) Sensitive data-based analysis and early warning method and device, computer equipment and medium
CN107451301B (en) Processing method, device, equipment and storage medium for real-time delivery bill mail
CN112966304A (en) Method and device for preventing process document from being tampered, computer equipment and medium
CN114996675A (en) Data query method and device, computer equipment and storage medium
CN114827354A (en) Identity authentication information display method and device, electronic equipment and readable storage medium
CN113723903A (en) RPA (Security platform Association) and AI (Internet Access Association) combined pass ticket transaction method and device, electronic equipment and storage medium
CN110619275B (en) Information pushing method, device, computer equipment and storage medium
WO2019071899A1 (en) Electronic device, vehicle data import method and storage medium
CN112559775A (en) Patent information management method and system and computer equipment
CN111901299A (en) Application authentication method and device, electronic equipment and storage medium
CN112084215A (en) Vehicle information query method and device, computer equipment and storage medium
CN114077749A (en) Data processing method based on block chain and related equipment thereof
CN114912003A (en) Document searching method and device, computer equipment and storage medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20201215