Movatterモバイル変換


[0]ホーム

URL:


CN107688907B - Material sampling inspection method based on queue layering processing mechanism - Google Patents

Material sampling inspection method based on queue layering processing mechanism
Download PDF

Info

Publication number
CN107688907B
CN107688907BCN201710788749.0ACN201710788749ACN107688907BCN 107688907 BCN107688907 BCN 107688907BCN 201710788749 ACN201710788749 ACN 201710788749ACN 107688907 BCN107688907 BCN 107688907B
Authority
CN
China
Prior art keywords
data
same
supplier
plan
processing
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.)
Active
Application number
CN201710788749.0A
Other languages
Chinese (zh)
Other versions
CN107688907A (en
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.)
State Grid Jiangsu Electric Power Co Ltd
Jiangsu Electric Power Information Technology Co Ltd
Original Assignee
State Grid Jiangsu Electric Power Co Ltd
Jiangsu Electric Power Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by State Grid Jiangsu Electric Power Co Ltd, Jiangsu Electric Power Information Technology Co LtdfiledCriticalState Grid Jiangsu Electric Power Co Ltd
Priority to CN201710788749.0ApriorityCriticalpatent/CN107688907B/en
Publication of CN107688907ApublicationCriticalpatent/CN107688907A/en
Application grantedgrantedCritical
Publication of CN107688907BpublicationCriticalpatent/CN107688907B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本发明公开了提供一种基于队列分层处理机制的物资抽检方法,基于队列分层处理机制,将需要处理的多个批次的批量抽检计划数据分层处理;围绕5大平衡规则进行分级筛选处理及标识,将批量抽检数据按照不同标识分类,最终将符合生成抽检任务条件的数据生成抽检任务,通过将大批量数据存储在缓存中;分层分级通过独立通道分别处理,每一层级均涉及线程池以及多个独立的队列通道处理分发数据,通过自动定时触发,将数据自动分类分别丢入对应队列,线程池中线程获取队列数据自动进行逻辑计算消化或者进入下一层级再次进行处理消化。本发明减少与数据库的交互,提高数据流转的速度,提升物资抽检的效率及准确率。

Figure 201710788749

The invention discloses and provides a material sampling inspection method based on a queue layered processing mechanism. Based on the queue layered processing mechanism, the batch sampling inspection plan data of multiple batches to be processed are layered; Processing and identification, classify the batch sampling data according to different identifications, and finally generate the sampling task for the data that meets the conditions for generating the sampling task, and store the large batch of data in the cache; The thread pool and multiple independent queue channels process and distribute data. Through automatic timing triggers, the data is automatically classified and thrown into the corresponding queues respectively. The threads in the thread pool obtain the queue data and automatically perform logical calculation and digestion or enter the next level for processing and digestion again. The invention reduces the interaction with the database, improves the speed of data circulation, and improves the efficiency and accuracy of material sampling inspection.

Figure 201710788749

Description

Material sampling inspection method based on queue layering processing mechanism
Technical Field
The invention relates to a method for performing spot check on electric power materials, in particular to a material spot check method based on a queue layering processing mechanism.
Technical Field
The supplies purchased by the electric power supply department relate to thousands of supplies, and quality spot check of the supplies is a necessary process. Due to the fact that the types of the spot checks are multiple and the process is complicated, when the spot checks are conducted in a large-scale supply and concentration mode, great pressure is brought to an inspection unit under the condition, work accumulation in the spot check process is difficult to avoid due to lack of human resources, even if the conventional information system is used for processing, many manual operations are needed, and even errors occur in the process.
Disclosure of Invention
The invention aims to provide a material spot check method based on a queue layering processing mechanism, which opens an independent channel for each layer to process respectively, thereby improving the efficiency and accuracy of material spot check.
The purpose of the invention is realized by the following technical scheme:
a material sampling method based on a queue layering processing mechanism is characterized by comprising the following steps:
1) based on a queue hierarchical processing mechanism, batch sampling inspection plan data of a plurality of batches needing to be processed are processed hierarchically, and processing rules comprise the following 5 large balance rules: new supplier balancing rules, old supplier balancing rules, rebalancing for non-cancelled supplies, city company level balancing, province company level balancing;
2) Carrying out hierarchical screening processing and identification around a 5-large balance rule, classifying batch sampling inspection data according to different identifications, finally generating a sampling inspection task from the data meeting the condition of generating the sampling inspection task, and storing the batch data in a cache;
3) the hierarchical classification is processed through independent channels, each hierarchical level relates to a thread pool (Theadpool) and a plurality of independent Queue (Queue) channels for processing and distributing data, the data are automatically classified and respectively thrown into corresponding queues through automatic timing trigger, the thread acquisition Queue data in the thread pool automatically carries out logic calculation digestion or enters the next hierarchical level for processing digestion again, the interaction with a database is reduced, and the data transfer speed is improved.
Further, the method comprises the following specific steps:
the method comprises the following steps: performing one-layer classification processing on new and old suppliers according to a model algorithm
The method comprises the following steps of establishing a classification model according to dimensions of bidding batches, suppliers and product names, and judging new and old suppliers according to the number of sampling checks calculated and output by the model, wherein the rules are as follows:
model calculation output > =2, old supplier; model calculation output <2, new supplier;
step two: two-layer rebalance treatment
Rebalancing treatment, namely judging whether the material is not cancelled, and if the material is '01-application deletion' or '02-application deletion', cancelling the plan;
And judging whether the materials are not cancelled, if the materials are in a non-reserved state, judging whether the materials exist in the sampling batch of the previous 3 months to be grabbed, and if the materials exist, cancelling the plan. If not, detecting whether the materials exist in the 'detection-free material list', and if so, canceling the plan. If the situation that the detection material table is not available does not exist, judging whether the situation is 'cable material', if so, judging whether the length is less than 1KM or 100m, and if so, canceling the plan;
step three: utilizing threads to do three-layer processing to market level
Utilizing threads to carry out three-layer processing on municipal goods and materials, firstly judging whether the condition that a plurality of products of the same city and the same supplier exist or not, and if not, entering a fourth step;
judging whether a data source of a plan entry of the same city, the same supplier and the same product name is a 'local city company distribution supply plan', comparing the purchase quantity of the materials in the same city, the same supplier and the same product name, and if the purchase quantity is different, reserving the material entry with the maximum purchase quantity;
if the purchase quantity is the same, comparing the predicted implementation time, if the implementation time is different, taking the latest implementation time, if the implementation time is the same, randomly reserving one implementation time, if the implementation time is the same, comparing the purchase quantity in the same product name, and if the purchase quantity is different, reserving the material item with the largest purchase quantity; if the purchase quantity is the same, comparing the expected implementation time, if the implementation time is different, taking the latest implementation time, and if the implementation time is the same, randomly reserving one implementation time;
Step four: utilizing queues for final processing
Judging the condition of the same product name of the same supplier in the whole province range, if not, reserving all materials under the product, and performing 'remark' field on the materials for 03-application reservation;
if yes, reserving the 'remark' field of the material for 04-application;
step five: generating a spot check task
Recording all data as reserved, 03-applying for reservation, remark description as unfinished plan in the previous month, continuing to execute in the current month, and 04-applying for reservation, remark description as other, performing classified counting statistics on the data according to records of local market, supplier and product name, and entering the following judgment:
judging the statistical number of the same city, the same supplier and the same product name, taking the least city, and generating a corresponding plan into a task if the least city is unique; if not, selecting the place with the most corresponding purchase quantity from the least places, if the place with the most purchase quantity is not unique, randomly reserving one place, and canceling all other plans; if the place with the largest purchase quantity is unique, all materials under the same product name of a supplier under the place are reserved, and a corresponding plan is generated into a task;
And canceling the data which do not accord with the conditions for generating the spot check task in all plans by the cancellation reason of 'finally eliminating the data'.
The invention has the following beneficial effects:
carry out high-efficient management to the material selective examination based on queue layering processing mechanism, open independent passageway to every level and handle respectively to reduce the interaction with the database, improve the speed of data circulation, and then promote the wholeness ability, increase the efficiency of flow, thereby promote the efficiency and the rate of accuracy of material selective examination.
Drawings
FIG. 1 is a flow chart of the present invention.
Detailed Description
A material sampling method based on a queue hierarchical processing mechanism is characterized in that batch sampling plan data of a plurality of batches to be processed are processed hierarchically based on the queue hierarchical processing mechanism, and processing rules comprise the following 5 large balance rules: new supplier balancing rules, old supplier balancing rules, rebalancing for non-cancelled supplies, city company level balancing, province company level balancing; carrying out hierarchical screening processing and identification around a 5-large balance rule, classifying batch sampling inspection data according to different identifications, finally generating a sampling inspection task from the data meeting the condition of generating the sampling inspection task, and storing the batch data in a cache; the hierarchical classification is processed through independent channels, each hierarchical level relates to a thread pool (Theadpool) and a plurality of independent Queue (Queue) channels for processing and distributing data, the data are automatically classified and respectively thrown into corresponding queues through automatic timing trigger, the thread acquisition Queue data in the thread pool automatically carries out logic calculation digestion or enters the next hierarchical level for processing digestion again, the interaction with a database is reduced, and the data transfer speed is improved.
The system automatically loads the checked plan for temporary cache, and then carries out classification according to balance rules and identification processing by channels; and finally, generating a sampling inspection task for the specific identification data.
The method comprises the following steps: performing one-layer classification processing on new and old suppliers according to a model algorithm
And (3) establishing a classification model according to the dimensions of the bidding batch, the supplier and the product name, wherein the model calculation rule is as follows:
the new supplier: if the cable is the cable type and the length is less than 1KM or 1000M, recording the material as 02-application deletion (for other reasons, see remark explanation) and canceling the plan. Otherwise, the processes and digestions are sequentially carried out according to 5 rules of unique material description of the same product name of the same supplier, whether only one material exists in the same material product of the same supplier, whether the material description in the same product of the same supplier is less than or equal to 3, the purchase quantity of different materials in the same product of the same supplier and the predicted implementation time.
Old suppliers: if the cable is the cable type and the length is less than 1KM or 1000M, recording the material as 02-application deletion (for other reasons, see remark explanation) and canceling the plan. Otherwise, sequentially digesting the 4 types of rules of judging whether the batch in the previous 3 months is unqualified or not, inquiring whether the historical random inspection batch has an unqualified random inspection result or not according to the name of the supplier and the product and the material number, judging whether the type of the historical unqualified material (the same name of the supplier and the product) is more than 3 and judging the description quantity of the unqualified material (the same name of the supplier and the same name of the product).
And calculating the output sampling inspection times according to the model to be used as a basis for judging the old and new suppliers, wherein the rule is as follows.
Model calculation output > =2, old supplier; model calculation output <2, New supplier
Step two: two-layer rebalance treatment
And (4) rebalancing treatment, namely judging whether the material is not cancelled, and if the material is '01-application deletion (for reporting a plan)' or '02-application deletion (for other reasons, see remark explanation)', cancelling the plan.
And judging whether the materials are not cancelled, if the materials are in a non-reserved state (the remark field is empty), judging whether the materials exist in the sampling batch of the previous 3 months (according to the supplier, the product name and the material number) for grabbing, and if the materials exist, cancelling the plan. If not, detecting whether the materials exist in the 'detection-free material list', and if so, canceling the plan. If the situation that the detection material table is not available does not exist, judging whether the situation is 'cable material', if so, judging whether the length is less than 1KM or 100m, and if so, cancelling the plan.
Step three: utilizing threads to do three-layer processing to market level
And (4) utilizing the thread to carry out three-layer processing on the municipal goods and materials, firstly judging whether the condition that a plurality of products of the same city and the same supplier exist or not, and if not, entering the step four.
Judging whether a data source of a plan entry of the same city, the same supplier and the same product name is a 'local city company distribution supply plan', comparing the purchase quantity of the materials in the same city, the same supplier and the same product name, and if the purchase quantity is different, reserving the material entry with the maximum purchase quantity;
if the purchase quantity is the same, comparing the predicted implementation time, if the implementation time is different, taking the latest implementation time, if the implementation time is the same, randomly reserving one implementation time, if the implementation time is the same, comparing the purchase quantity in the same product name, and if the purchase quantity is different, reserving the material item with the largest purchase quantity; if the purchase quantity is the same, comparing the predicted implementation time, if the implementation time is different, taking the latest implementation time, and if the implementation time is the same, randomly reserving one implementation time
Step four: utilizing queues for final processing
And judging the condition of the same product name of the same supplier in the whole province, if the condition does not exist, reserving all materials under the product, and carrying out 'remark' field on the materials for 03-application reservation (other).
If present, and the "remark" field for supplies is reserved for 04-applications (others).
Step five: generating a spot check task
All data are recorded as reserved (03-application reservation (plan is not completed in the previous month, and execution continues in the current month) and 04-application reservation (other)) data are classified and counted according to records of local market (regional attribution), suppliers and product names, and the following judgment is carried out:
judging the statistical number of the same city, the same supplier and the same product name, taking the least city, and generating a corresponding plan into a task if the least city is unique; if not, selecting the place with the most purchasing quantity (classified and counted by product as dimension) from the least places, if the place with the most purchasing quantity is not unique, randomly reserving one place, and canceling the plan for all others. If the place with the largest purchase quantity is unique, all materials under the same product name of a supplier under the place are reserved, and a corresponding plan is generated into a task;
and canceling the data which do not accord with the conditions for generating the spot check task in all plans by the cancellation reason of 'finally eliminating the data'.

Claims (1)

1. A material sampling method based on a queue layering processing mechanism is characterized by comprising the following steps:
1) based on a queue hierarchical processing mechanism, batch sampling inspection plan data of a plurality of batches needing to be processed are processed hierarchically, and processing rules comprise the following 5 large balance rules: new supplier balancing rules, old supplier balancing rules, rebalancing for non-cancelled supplies, city company level balancing, province company level balancing;
2) Carrying out hierarchical screening processing and identification around a 5-large balance rule, classifying batch sampling inspection data according to different identifications, finally generating sampling inspection tasks for the data meeting the conditions of generating the sampling inspection tasks, and storing the batch data in a cache;
3) the hierarchical classification is respectively processed through independent channels, each hierarchical level relates to a thread pool and a plurality of independent queue channels for processing and distributing data, the data are automatically classified and respectively thrown into corresponding queues through automatic timing triggering, the thread in the thread pool acquires queue data and automatically carries out logic calculation digestion or enters the next hierarchical level for processing digestion again, the interaction with a database is reduced, and the data circulation speed is improved;
the method comprises the following specific steps:
the method comprises the following steps: performing one-layer classification processing on new and old suppliers according to a model algorithm
The method comprises the following steps of establishing a classification model according to dimensions of bidding batches, suppliers and product names, and judging new and old suppliers according to the number of sampling checks calculated and output by the model, wherein the rules are as follows:
model calculation output > =2, old supplier; model calculation output <2, new supplier;
step two: two-layer rebalance treatment
Rebalancing treatment, namely judging whether the material is not cancelled, and if the material is '01-application deletion' or '02-application deletion', cancelling the plan;
If the state is the non-retention state, whether each material exists in the sampling batch of the previous 3 months or not is grabbed, and if so, the plan is cancelled; if not, detecting whether the materials exist in the 'detection material table not available', and if so, canceling the plan; if the situation that the detection material table is not available does not exist, judging whether the situation is 'cable material', if so, judging whether the length is smaller than 1000m, and if so, canceling the plan;
step three: utilizing threads to do three-layer processing to market level
Utilizing threads to carry out three-layer processing on municipal goods and materials, firstly judging whether the condition that a plurality of products of the same city and the same supplier exist or not, and if not, entering a fourth step;
judging whether a data source of a plan entry of the same city, the same supplier and the same product name is a 'local city company distribution supply plan', comparing the purchase quantity of the materials in the same city, the same supplier and the same product name, and if the purchase quantity is different, reserving the material entry with the maximum purchase quantity;
if the purchase quantity is the same, comparing the predicted implementation time, if the implementation time is different, taking the latest implementation time, and if the implementation time is the same, randomly reserving one implementation time;
Step four: utilizing queues for final processing
Judging the condition of the same product name of the same supplier in the whole province range, if not, reserving all materials under the product, and performing 'remark' field on the materials for 03-application reservation;
if yes, reserving a remark field of the material for 04-application;
step five: generating a spot check task
Recording all data as reserved, 03-applying for reservation, remark description as unfinished plan in the previous month, continuing to execute in the current month, and 04-applying for reservation, remark description as other, performing classified counting statistics on the data according to records of local market, supplier and product name, and entering the following judgment:
judging the statistical number of the same city, the same supplier and the same product name, taking the least city, and generating a corresponding plan into a task if the least city is unique; if not, selecting the place with the most corresponding purchase quantity from the least places, if the place with the most purchase quantity is not unique, randomly reserving one place, and canceling all other plans; if the place with the largest purchase quantity is unique, all materials under the same product name of a supplier under the place are reserved, and a corresponding plan is generated into a task;
And canceling the data which do not accord with the conditions for generating the spot check task in all plans by the cancellation reason of 'finally eliminating the data'.
CN201710788749.0A2017-09-052017-09-05Material sampling inspection method based on queue layering processing mechanismActiveCN107688907B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201710788749.0ACN107688907B (en)2017-09-052017-09-05Material sampling inspection method based on queue layering processing mechanism

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201710788749.0ACN107688907B (en)2017-09-052017-09-05Material sampling inspection method based on queue layering processing mechanism

Publications (2)

Publication NumberPublication Date
CN107688907A CN107688907A (en)2018-02-13
CN107688907Btrue CN107688907B (en)2022-01-18

Family

ID=61155856

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201710788749.0AActiveCN107688907B (en)2017-09-052017-09-05Material sampling inspection method based on queue layering processing mechanism

Country Status (1)

CountryLink
CN (1)CN107688907B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109726911B (en)*2018-12-252021-07-27东莞华贝电子科技有限公司 Method, system, terminal and readable storage medium for prompting whether to remove a terminal
CN115526491B (en)*2022-09-282023-11-17惠州市海葵信息技术有限公司Data processing method, equipment and storage medium for material demand planning

Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102156907A (en)*2010-02-112011-08-17中国科学院计算技术研究所Quality inspection method for QA system
CN102364512A (en)*2011-10-112012-02-29中华人民共和国宁波出入境检验检疫局Method for realizing automatically sampling inspection of computer during product inspection and quarantine
CN103218254A (en)*2013-04-152013-07-24广州新科佳都科技有限公司Multi-queue automatic fare collection data processing method
CN103473138A (en)*2013-09-182013-12-25柳州市博源环科科技有限公司Multi-tasking queue scheduling method based on thread pool
CN104182395A (en)*2013-05-212014-12-03北大方正集团有限公司Quality inspection device and method for digital periodicals
CN104182502A (en)*2014-08-182014-12-03浪潮(北京)电子信息产业有限公司Data extraction method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102156907A (en)*2010-02-112011-08-17中国科学院计算技术研究所Quality inspection method for QA system
CN102364512A (en)*2011-10-112012-02-29中华人民共和国宁波出入境检验检疫局Method for realizing automatically sampling inspection of computer during product inspection and quarantine
CN103218254A (en)*2013-04-152013-07-24广州新科佳都科技有限公司Multi-queue automatic fare collection data processing method
CN104182395A (en)*2013-05-212014-12-03北大方正集团有限公司Quality inspection device and method for digital periodicals
CN103473138A (en)*2013-09-182013-12-25柳州市博源环科科技有限公司Multi-tasking queue scheduling method based on thread pool
CN104182502A (en)*2014-08-182014-12-03浪潮(北京)电子信息产业有限公司Data extraction method and device

Also Published As

Publication numberPublication date
CN107688907A (en)2018-02-13

Similar Documents

PublicationPublication DateTitle
CN112488612A (en)Visualization-based full inventory resource monitoring and displaying method
CN117236934B (en)Industrial Internet remote monitoring operation and maintenance management system
Wasiak et al.The use of a supply chain configuration model to assess the reliability of logistics processes
CN106855966A (en)Based on the method and system that unmanned dispensing vehicle is scheduled
CN108197909A (en)A kind of project process supervision control system
CN104576441B (en)Semiconductor package wiring LOT more rules dispatching methods based on operating area
CN107688907B (en)Material sampling inspection method based on queue layering processing mechanism
TirkelCycle time prediction in wafer fabrication line by applying data mining methods
Robert et al.Analysis of picked up fraction changes on the process of manual waste sorting
CN104318393A (en)Radiopharmaceutical production management system
KrynkePersonnel management on the production line using the FlexSim simulation environment
CN114066055A (en)Method, device and server for predicting late-stage approach of vehicle in logistics transportation
Kinz et al.Lean smart maintenance–efficient and effective asset management for smart factories
CN113807762B (en)Method and system for assisting logistics abnormal decision
CN110781177A (en)Electric energy meter electricity utilization information sorting method and device and readable storage medium
CN117132251B (en) A human resources scheduling management system and method based on big data
US20120185104A1 (en)Method and apparatus for contextualizing energy consumption data
Więcek et al.Evaluation of the effectiveness of implementing production logistics automation systems supported by computer simulation tools
Yuen et al.An intelligent risk management model for achieving smart manufacturing on internet of things
CN115600856A (en)Method, device, equipment and medium for automatically auditing and distributing events
CN104217093B (en)Method and apparatus for identifying root cause of defect using composite defect map
Abdallah et al.An application of EWMA control chart for monitoring packaging defects in food industry
Bhosekar et al.Simulation optimization of automated guided vehicle system in a health care facility
Li et al.A generalized stochastic petri-net model for performance analysis and allocation optimization of a particular repair system
Gao et al.Design and development of welding expert system

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp