CN113379431A - Method and system for real-time verification of collected data - Google Patents

Method and system for real-time verification of collected data Download PDF

Info

Publication number
CN113379431A
CN113379431A CN202110725500.1A CN202110725500A CN113379431A CN 113379431 A CN113379431 A CN 113379431A CN 202110725500 A CN202110725500 A CN 202110725500A CN 113379431 A CN113379431 A CN 113379431A
Authority
CN
China
Prior art keywords
commodity
redis
verification
temporary storage
storage table
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
CN202110725500.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.)
China Commerce Networks Shanghai Co ltd
Original Assignee
China Commerce Networks Shanghai 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 China Commerce Networks Shanghai Co ltd filed Critical China Commerce Networks Shanghai Co ltd
Priority to CN202110725500.1A priority Critical patent/CN113379431A/en
Publication of CN113379431A publication Critical patent/CN113379431A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/018Certifying business or products

Landscapes

  • Business, Economics & Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Finance (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to a method and a system for verifying collected data in real time. Storing key information of commodities of a current acquisition task in a temporary storage table redis; in the process of receiving and dispatching goods in logistics, basic information of goods is obtained; verifying the acquired commodity basic information and the key information of the corresponding commodity in the temporary storage table redis to determine a verification result; the invention can improve the accuracy and efficiency of data acquisition.

Description

Method and system for real-time verification of collected data
Technical Field
The invention relates to the field of data processing, in particular to a method and a system for verifying collected data in real time.
Background
With the acceleration of the pace of life and work, the requirement for acquiring commodity information is higher and higher. However, in the data acquisition process, due to various external interference influences, such as human misoperation and the like, errors occur in data, and therefore the accuracy of practical application is influenced. In the process of collecting data on line, due to the fact that equipment and local verifiable points are limited, a large amount of invalid and wrong redundant data can appear in the collected data, and therefore production quality is seriously affected; in the process of data acquisition through acquisition equipment, because the acquired data only exists locally, and the local part is lack of a corresponding verification method, errors cannot be found in time and corrected. After the data are uploaded, the system carries out secondary check judgment, and for the error redundant data, collection personnel need to collect again, so that repeated work is caused, and the production efficiency is seriously influenced.
The existing data acquisition mode in the market at present adopts an off-line mode, and the acquisition equipment can only check whether the length digits of the acquired digital codes are in accordance with each other, but cannot check whether the acquired digital codes are the digital codes of the enterprise, and cannot check whether the associated commodities are correct, the digital hierarchy is correct, the serial numbers of manufacturers are matched, the data can be acquired only on line, and then the data are uploaded to a server and then checked by a system.
Disclosure of Invention
The invention aims to provide a method and a system for verifying collected data in real time, which can improve the accuracy and efficiency of data collection.
In order to achieve the purpose, the invention provides the following scheme:
a real-time verification method for collected data comprises the following steps:
storing the key information of the commodity of the current acquisition task in a temporary storage table redis; the key information includes: manufacturer number, enterprise number, level of the number and commodity information related to the number; the collection task comprises the following steps: the goods and quantity collected;
in the process of receiving and dispatching goods in logistics, basic information of goods is obtained; the commodity basic information includes: manufacturer number, commodity information, commodity packaging level, enterprise number and number level;
verifying the acquired commodity basic information and the key information of the corresponding commodity in the temporary storage table redis to determine a verification result; the verification result comprises: verified or not verified.
Optionally, the storing the key information of the commodity in the temporary storage table redis further preceded by:
and storing the commodity basic information of the commodity in a database.
Optionally, the verifying the obtained basic information of the commodity and the key information of the corresponding commodity in the temporary storage table redis performed to determine a verification result, and specifically includes:
acquiring an acquisition task;
scanning the digital codes of the commodities, and judging whether the digital codes of the commodities are in the temporary storage table redis;
if not, blocking the acquisition of the currently scanned digital code and prompting;
if yes, judging whether the corresponding relation between the digital codes and the commodities stored in the temporary storage table redis consistent with the collected commodities;
if not, blocking the acquisition of the currently scanned digital code and prompting;
if yes, the verification is passed;
judging whether the collected quantity reaches the quantity in the collection task or not;
if so, ending the collection; otherwise, the collection is continued.
Optionally, if the result is reached, ending the acquisition; otherwise, continuing to collect the data, and then:
and clearing the key information of the commodity of the current acquisition task stored in the temporary storage table redis, and releasing the memory of the temporary storage table redis.
A system for real-time verification of collected data, comprising:
the key information storage module is used for storing the key information of the commodities of the current acquisition task into a temporary storage table redis; the key information includes: manufacturer number, enterprise number, level of the number and commodity information related to the number; the collection task comprises the following steps: the goods and quantity collected;
the commodity basic information acquisition module is used for acquiring commodity basic information in the logistics receiving and dispatching process; the commodity basic information includes: manufacturer number, commodity information, commodity packaging level, enterprise number and number level;
the verification module is used for verifying the acquired commodity basic information and the key information of the corresponding commodity in the temporary storage table redis to determine a verification result; the verification result comprises: verified or not verified.
Optionally, the method further comprises:
and the commodity basic information storage module is used for storing the commodity basic information of the commodity in a database.
Optionally, the verification module specifically includes:
the acquisition task acquisition unit is used for acquiring an acquisition task;
the first judging unit is used for scanning the digital codes of the commodities and judging whether the digital codes of the commodities are in the temporary storage table redis or not;
the first blocking unit is used for blocking the acquisition of the currently scanned digital code and prompting if the current scanned digital code is not located;
the second judging unit is used for judging whether the corresponding relation between the digital codes and the commodities stored in the temporary storage table redis consistent with the collected commodities or not if the corresponding relation is consistent with the collected commodities;
the second blocking unit is used for blocking the acquisition of the currently scanned digital code and prompting if the two scanned digital codes are inconsistent;
the verification passing unit is used for passing the verification if the verification is successful;
the third judging unit is used for judging whether the collected quantity reaches the quantity in the collection task or not;
the judgment result determining unit is used for ending the acquisition if the judgment result is reached; otherwise, the collection is continued.
Optionally, the verification module further includes:
and the cache cleaning unit is used for cleaning the key information of the commodity storing the current acquisition task in the temporary storage table redis and releasing the memory of the temporary storage table redis.
According to the specific embodiment provided by the invention, the invention discloses the following technical effects:
according to the real-time verification method and system for the acquired data, the key information of the commodity is stored in the temporary storage table Redis, and in the data acquisition process of the data acquisition equipment, the data is compared and verified with the data stored in the Redis in real time, so that the rapid comparison and verification are realized, errors and redundant data are avoided, the purpose of correcting the errors in real time is achieved, repeated labor is avoided, and the efficiency is improved. Meanwhile, deep query and verification are not required to be carried out on the database, so that the requirements of high throughput, low delay and support of the flexible distribution service are met.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
FIG. 1 is a schematic flow chart of a real-time calibration method for collected data according to the present invention;
fig. 2 is a schematic structural diagram of a real-time collected data verification system according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention aims to provide a method and a system for verifying collected data in real time, which can improve the accuracy and efficiency of data collection.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
Fig. 1 is a schematic flow chart of a real-time verification method for collected data provided by the present invention, and as shown in fig. 1, the real-time verification method for collected data provided by the present invention includes:
s101, storing key information of the commodity of the current acquisition task in a temporary storage table redis; the key information includes: manufacturer number, enterprise number, level of the number and commodity information related to the number; the collection task comprises the following steps: the goods and quantity collected; namely, temporary storage is carried out through a temporary storage table redis, and necessary unique identification is provided for the real-time verification of subsequent data.
Before S101, the method further includes:
and storing the commodity basic information of the commodity in a database.
S102, acquiring basic information of commodities in the process of receiving and dispatching commodities in logistics; the commodity basic information includes: manufacturer number, commodity information, commodity packaging level, enterprise number and number level;
s103, verifying the acquired commodity basic information and the key information of the corresponding commodity in the temporary storage table redis to determine a verification result; the verification result comprises: verified or not verified. And when the verification is not passed, correcting the abnormal data.
S103 specifically comprises the following steps:
acquiring an acquisition task;
scanning the digital codes of the commodities, and judging whether the digital codes of the commodities are in the temporary storage table redis;
if not, blocking the acquisition of the currently scanned digital code and prompting;
if yes, judging whether the corresponding relation between the digital codes and the commodities stored in the temporary storage table redis consistent with the collected commodities;
if not, blocking the acquisition of the currently scanned digital code and prompting;
if yes, the verification is passed;
judging whether the collected quantity reaches the quantity in the collection task or not;
if so, ending the collection; otherwise, the collection is continued.
As a specific embodiment, a specific verification process based on the collected data of the present invention is as follows:
the enterprise docking platform maintains basic information including a manufacturer number, commodity information and a commodity packaging level, generates a corresponding enterprise number according to a platform anti-counterfeiting number generation rule, and stores a series of complete data including the manufacturer number, the commodity information, the commodity packaging level, the enterprise number, the digital level and the like in a database;
in the process of storing basic information by the database, temporarily storing some key information such as manufacturer numbers, commodity packaging levels, enterprise digital codes and the like to redis synchronously, and providing necessary unique identification for the real-time verification of subsequent data;
during the logistics receiving and dispatching process of enterprises, data related to commodities are collected through networked data collection equipment, during the collection process, the system compares the collected data with key data stored in redis in real time for verification, timely returns a verification result and corrects abnormal data;
the real-time data checking process comprises the following steps of collecting data through networked collection equipment, interacting with redis in real time, and comparing the collected data with key data to realize the real-time checking and error correcting process, wherein the main realization mode is as follows:
enterprises maintain manufacturer information, commodity information and commodity packaging proportion, generate corresponding commodity digital information according to platform rules, store the commodity digital information in a database, and synchronously redis and temporarily store key information (including manufacturer numbers, commodity packaging proportion, commodity digital information and the like);
the user sets commodities and quantity to be collected on the data acquisition equipment through the data acquisition equipment, scans commodity numbers, and when the collected numbers cannot be matched with the same numbers in the redis, the system blocks the collection of the currently scanned numbers and prompts the user on the data acquisition equipment, wherein the currently scanned numbers are not enterprise numbers and please scan again;
when the acquired digital codes can be matched with the same digital codes in the redis, but the corresponding relation between the digital codes stored in the redis and the commodities is inconsistent with the commodities set on the acquisition equipment, the system blocks the acquisition of the currently scanned digital codes, and simultaneously prompts a user on the data acquisition equipment, that is, "the currently scanned digital codes are inconsistent with the commodities, please scan again";
when the acquired digital quantity reaches the quantity required to be acquired and set on the equipment, the system blocks the acquisition of the digital quantity again when scanning the digital quantity again, and simultaneously prompts a user on the data acquisition equipment, wherein the 'current acquisition quantity reaches the planned quantity, and the task is ended';
the error data can be blocked to the maximum extent after being processed by the steps, and the data units transmitted by each step can be controlled to find the wrong redundant data in time through real-time acquisition and verification.
In order to facilitate the next data inspection, if the data is obtained, the acquisition is ended; otherwise, continuing to collect the data, and then:
and clearing the key information of the commodity of the current acquisition task stored in the temporary storage table redis, and releasing the memory of the temporary storage table redis.
Fig. 2 is a schematic structural diagram of a real-time collected data verification system provided by the present invention, and as shown in fig. 2, the real-time collected data verification system provided by the present invention includes:
a key information storage module 201, configured to store key information of a commodity of a current acquisition task in a temporary storage table redis; the key information includes: manufacturer number, enterprise number, level of the number and commodity information related to the number; the collection task comprises the following steps: the goods and quantity collected;
a commodity basic information acquisition module 202, configured to acquire commodity basic information during the process of receiving and dispatching commodities in logistics; the commodity basic information includes: manufacturer number, commodity information, commodity packaging level, enterprise number and number level;
the verification module 203 is configured to verify the acquired commodity basic information and the key information of the corresponding commodity in the temporary storage table redis, and determine a verification result; the verification result comprises: verified or not verified.
The invention provides a real-time calibration system for collected data, which further comprises:
and the commodity basic information storage module is used for storing the commodity basic information of the commodity in a database.
The checking module 303 specifically includes:
the acquisition task acquisition unit is used for acquiring an acquisition task;
the first judging unit is used for scanning the digital codes of the commodities and judging whether the digital codes of the commodities are in the temporary storage table redis or not;
the first blocking unit is used for blocking the acquisition of the currently scanned digital code and prompting if the current scanned digital code is not located;
the second judging unit is used for judging whether the corresponding relation between the digital codes and the commodities stored in the temporary storage table redis consistent with the collected commodities or not if the corresponding relation is consistent with the collected commodities;
the second blocking unit is used for blocking the acquisition of the currently scanned digital code and prompting if the two scanned digital codes are inconsistent;
the verification passing unit is used for passing the verification if the verification is successful;
the third judging unit is used for judging whether the collected quantity reaches the quantity in the collection task or not;
the judgment result determining unit is used for ending the acquisition if the judgment result is reached; otherwise, the collection is continued.
The verification module 303 further comprises:
and the cache cleaning unit is used for cleaning the key information of the commodity storing the current acquisition task in the temporary storage table redis and releasing the memory of the temporary storage table redis.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the system disclosed by the embodiment, the description is relatively simple because the system corresponds to the method disclosed by the embodiment, and the relevant points can be referred to the method part for description.
The principles and embodiments of the present invention have been described herein using specific examples, which are provided only to help understand the method and the core concept of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, the specific embodiments and the application range may be changed. In view of the above, the present disclosure should not be construed as limiting the invention.

Claims (8)

1. A real-time verification method for collected data is characterized by comprising the following steps:
storing the key information of the commodity of the current acquisition task in a temporary storage table redis; the key information includes: manufacturer number, enterprise number, level of the number and commodity information related to the number; the collection task comprises the following steps: the goods and quantity collected;
in the process of receiving and dispatching goods in logistics, basic information of goods is obtained; the commodity basic information includes: manufacturer number, commodity information, commodity packaging level, enterprise number and number level;
verifying the acquired commodity basic information and the key information of the corresponding commodity in the temporary storage table redis to determine a verification result; the verification result comprises: verified or not verified.
2. The method for real-time verification of collected data according to claim 1, wherein the storing of the key information of the commodity in a temporary storage table redis further preceded by:
and storing the commodity basic information of the commodity in a database.
3. The method for verifying the collected data in real time according to claim 1, wherein the verifying the obtained basic information of the commodity and the key information of the corresponding commodity in the temporary storage table redis performed to determine the verification result, specifically comprising:
acquiring an acquisition task;
scanning the digital codes of the commodities, and judging whether the digital codes of the commodities are in the temporary storage table redis;
if not, blocking the acquisition of the currently scanned digital code and prompting;
if yes, judging whether the corresponding relation between the digital codes and the commodities stored in the temporary storage table redis consistent with the collected commodities;
if not, blocking the acquisition of the currently scanned digital code and prompting;
if yes, the verification is passed;
judging whether the collected quantity reaches the quantity in the collection task or not;
if so, ending the collection; otherwise, the collection is continued.
4. The method for real-time verification of collected data according to claim 1, wherein if the result is reached, the collection is ended; otherwise, continuing to collect the data, and then:
and clearing the key information of the commodity of the current acquisition task stored in the temporary storage table redis, and releasing the memory of the temporary storage table redis.
5. A system for real-time verification of collected data, comprising:
the key information storage module is used for storing the key information of the commodities of the current acquisition task into a temporary storage table redis; the key information includes: manufacturer number, enterprise number, level of the number and commodity information related to the number; the collection task comprises the following steps: the goods and quantity collected;
the commodity basic information acquisition module is used for acquiring commodity basic information in the logistics receiving and dispatching process; the commodity basic information includes: manufacturer number, commodity information, commodity packaging level, enterprise number and number level;
the verification module is used for verifying the acquired commodity basic information and the key information of the corresponding commodity in the temporary storage table redis to determine a verification result; the verification result comprises: verified or not verified.
6. The system for real-time verification of collected data as claimed in claim 5, further comprising:
and the commodity basic information storage module is used for storing the commodity basic information of the commodity in a database.
7. The system for real-time verification of collected data according to claim 5, wherein the verification module specifically comprises:
the acquisition task acquisition unit is used for acquiring an acquisition task;
the first judging unit is used for scanning the digital codes of the commodities and judging whether the digital codes of the commodities are in the temporary storage table redis or not;
the first blocking unit is used for blocking the acquisition of the currently scanned digital code and prompting if the current scanned digital code is not located;
the second judging unit is used for judging whether the corresponding relation between the digital codes and the commodities stored in the temporary storage table redis consistent with the collected commodities or not if the corresponding relation is consistent with the collected commodities;
the second blocking unit is used for blocking the acquisition of the currently scanned digital code and prompting if the two scanned digital codes are inconsistent;
the verification passing unit is used for passing the verification if the verification is successful;
the third judging unit is used for judging whether the collected quantity reaches the quantity in the collection task or not;
the judgment result determining unit is used for ending the acquisition if the judgment result is reached; otherwise, the collection is continued.
8. The method for real-time verification of collected data according to claim 1, wherein the verification module further comprises:
and the cache cleaning unit is used for cleaning the key information of the commodity storing the current acquisition task in the temporary storage table redis and releasing the memory of the temporary storage table redis.
CN202110725500.1A 2021-06-29 2021-06-29 Method and system for real-time verification of collected data Pending CN113379431A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110725500.1A CN113379431A (en) 2021-06-29 2021-06-29 Method and system for real-time verification of collected data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110725500.1A CN113379431A (en) 2021-06-29 2021-06-29 Method and system for real-time verification of collected data

Publications (1)

Publication Number Publication Date
CN113379431A true CN113379431A (en) 2021-09-10

Family

ID=77579781

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110725500.1A Pending CN113379431A (en) 2021-06-29 2021-06-29 Method and system for real-time verification of collected data

Country Status (1)

Country Link
CN (1) CN113379431A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110275900A (en) * 2019-06-25 2019-09-24 浪潮软件股份有限公司 A method of order and early warning are monitored based on Redis caching technology
CN111414424A (en) * 2020-03-23 2020-07-14 北京思特奇信息技术股份有限公司 Method, system, medium and device for automatically synchronizing redis of configuration data
CN111858576A (en) * 2019-04-25 2020-10-30 北京京东尚科信息技术有限公司 Real-time message processing method, system, device, storage medium and electronic equipment
CN112148756A (en) * 2020-09-24 2020-12-29 四川长虹电器股份有限公司 Commodity reservation and first-purchase optimization method
CN112488729A (en) * 2020-11-30 2021-03-12 上海中商网络股份有限公司 Data verification method and device, computer equipment and readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111858576A (en) * 2019-04-25 2020-10-30 北京京东尚科信息技术有限公司 Real-time message processing method, system, device, storage medium and electronic equipment
CN110275900A (en) * 2019-06-25 2019-09-24 浪潮软件股份有限公司 A method of order and early warning are monitored based on Redis caching technology
CN111414424A (en) * 2020-03-23 2020-07-14 北京思特奇信息技术股份有限公司 Method, system, medium and device for automatically synchronizing redis of configuration data
CN112148756A (en) * 2020-09-24 2020-12-29 四川长虹电器股份有限公司 Commodity reservation and first-purchase optimization method
CN112488729A (en) * 2020-11-30 2021-03-12 上海中商网络股份有限公司 Data verification method and device, computer equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN109711492B (en) Intelligent drug logistics supervision system and method
CN110084718A (en) A kind of family Tai Qu becomes the accurate method of calibration of relationship and device
CN110008254A (en) A kind of transformer equipment account verification processing method
CN102521080B (en) Computer data recovery method for electricity-consumption information collecting system for power consumers
CN113985339B (en) Error diagnosis method and system for intelligent ammeter, equipment and storage medium
CN111199353B (en) Test method and test system
CN104869019A (en) Feedback method and apparatus for positioning faults, and server
CN110796347A (en) Refined management system and method based on material tracking technology
CN101022473B (en) Method for automatic, identifying plate card configration and generating local data in exchanger
CN104618064A (en) Monitoring method and device for static information based on CRC (Cyclic Redundancy Check) inspection
CN111897715A (en) Method and device for automatically generating configuration data of simulation test environment
CN113379431A (en) Method and system for real-time verification of collected data
CN109388999A (en) A kind of barcode recognition method and device
CN101588583A (en) Mobile testing system and mobile testing method
CN116319081B (en) Electronic signature security management system based on big data cloud platform
CN111898090A (en) Method and system for analyzing probability distribution of failure causes of primary power equipment
CN107783896B (en) Optimization method and device of data processing model
CN114666774B (en) Identification matching system and method of Bluetooth equipment
CN116258410A (en) Acquisition terminal provider evaluation method based on multiple evaluation indexes
CN109934722A (en) Verify adjustment method, device and the electronic equipment of rule
CN113419885B (en) Data integrity processing method and device and electronic equipment
CN115375126A (en) Failure probability analysis method and system for strategic spare parts
CN113762707A (en) Cargo tracking method and system based on block chain
CN105022834B (en) A kind of measuring equipment calibration method
CN112733524A (en) Method, system and device for automatically correcting standard serial numbers and batch checking standard states

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