CN112184023A - Grain and oil quality tracing method and device and readable medium - Google Patents

Grain and oil quality tracing method and device and readable medium Download PDF

Info

Publication number
CN112184023A
CN112184023A CN202011046292.4A CN202011046292A CN112184023A CN 112184023 A CN112184023 A CN 112184023A CN 202011046292 A CN202011046292 A CN 202011046292A CN 112184023 A CN112184023 A CN 112184023A
Authority
CN
China
Prior art keywords
information
virtual batch
service information
target
batch
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
CN202011046292.4A
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.)
Shandong Inspur Genersoft Information Technology Co Ltd
Original Assignee
Shandong Inspur Genersoft 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 Shandong Inspur Genersoft Information Technology Co Ltd filed Critical Shandong Inspur Genersoft Information Technology Co Ltd
Priority to CN202011046292.4A priority Critical patent/CN112184023A/en
Publication of CN112184023A publication Critical patent/CN112184023A/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
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0639Performance analysis of employees; Performance analysis of enterprise or organisation operations
    • G06Q10/06395Quality analysis or management
    • 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
    • G06Q30/0185Product, service or business identity fraud
    • 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
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/02Agriculture; Fishing; Forestry; Mining

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Development Economics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Marketing (AREA)
  • Tourism & Hospitality (AREA)
  • Educational Administration (AREA)
  • Agronomy & Crop Science (AREA)
  • Game Theory and Decision Science (AREA)
  • Health & Medical Sciences (AREA)
  • Mining & Mineral Resources (AREA)
  • Marine Sciences & Fisheries (AREA)
  • Animal Husbandry (AREA)
  • General Health & Medical Sciences (AREA)
  • Primary Health Care (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • General Factory Administration (AREA)

Abstract

The invention provides a grain and oil quality tracing method, a grain and oil quality tracing device and a readable medium, wherein the method comprises the following steps: acquiring service information of different links in the grain and oil production process; binding the service information of each link with at least one virtual batch, wherein each virtual batch carries first identification information for identifying the virtual batch; determining a target tracing chain in the grain and oil production process according to the virtual batch and the input material information of the link corresponding to the virtual batch, wherein the target tracing chain comprises at least one virtual batch; storing the service information bound with the virtual batch on the target tracing chain into the target tracing chain; creating second identification information of the last virtual batch in the target tracing chain; and determining the business information of different links in the grain and oil output process according to the second identification information and the first identification information of the last virtual batch. The scheme of the invention can accurately trace the service information of different links in the grain and oil production process.

Description

Grain and oil quality tracing method and device and readable medium
Technical Field
The invention relates to the technical field of computers, in particular to a grain and oil quality tracing method, a grain and oil quality tracing device and a readable medium.
Background
Aiming at the grain and oil industry, the existing grain and oil quality tracing products in the market are not many, and the whole process from grain and oil planting to product circulation is not traced. The traditional grain and oil quality chain is almost developed for each business in a customized way, however, different grain and oil enterprises have different requirements on the traceability business and different business links, so that the developed quality traceability products have no universality; the grain and oil quality tracing requirements are changed all the time, a large amount of manpower and material resources are required to be invested in the customized codes, and the operation and maintenance are not flexible; in the whole flow circulation process of grain and oil, the information management is not fine enough, so that the traced information is not accurate enough.
The existing grain and oil quality tracing schemes are very few, and the realization of grain and oil industry quality tracing and production process tracing is difficult. At present, most of formed grain and oil quality tracing schemes and products are limited in links, grain and oil processing links can be traced, or information is rough, so that the quality tracing effect of enterprises is greatly reduced. The business of the grain and oil industry is complex and flexible, the businesses developed by enterprises of different scales are different, for developers, the traditional customized business development mode is time-consuming and labor-consuming, and the development is frequently zero, and particularly, when a quality tracing platform is manufactured, after the enterprises of different scales are added, the operation effect is not ideal.
Disclosure of Invention
The embodiment of the invention provides a grain and oil quality tracing method, a grain and oil quality tracing device and a readable medium, which can accurately trace service information of different links in a grain and oil production process.
In a first aspect, an embodiment of the present invention provides a method for tracing grain and oil quality, including:
acquiring service information of different links in a grain and oil production process, wherein the service information of each link comprises input material information, output material information, intermediate process information and entity identification information of the link;
binding the service information of each link with at least one virtual batch, wherein each virtual batch carries first identification information for identifying the virtual batch;
determining a target tracing chain in the grain and oil production process according to the virtual batch and the input material information of links corresponding to the virtual batch, wherein the target tracing chain comprises at least one virtual batch;
storing the service information bound with the virtual batch on the target tracing chain into the target tracing chain;
creating second identification information of the last virtual batch in the target tracing chain;
and determining the service information of different links in the grain and oil production process according to the second identification information and the first identification information of the last virtual batch.
In one possible design, the determining a target tracing chain in the grain and oil production process according to the virtual batch and the input material information of the link corresponding to the virtual batch includes:
acquiring a tracing chain set, wherein the tracing chain set is used for storing tracing chains;
for each virtual batch, the following operations are performed:
judging whether the input material information bound to the current virtual batch is the same as the output material information bound to the last virtual batch of the tracing chains in the tracing chain set;
if the virtual batch is the same as the last virtual batch of the traceability chain, establishing the association between the current virtual batch and the last virtual batch of the traceability chain so as to form a target traceability chain in the grain and oil output process;
and if not, determining the current virtual batch as a target tracing chain in the grain and oil production process, and storing the target tracing chain into the tracing chain set.
In one possible design, the binding the business information of each link with at least one virtual batch includes:
mapping the service information of each link into a preset service model, and if the service information in the service model conforms to a preset standard rule, determining the service information conforming to the preset standard rule as first service information;
determining first service information meeting preset link execution conditions as second service information;
and binding the second service information with at least one virtual batch.
In one possible design, the binding the second service information with at least one virtual batch includes:
for each piece of the second service information, the following operations are performed:
determining whether a target virtual batch exists according to entity identification information in the current second service information, wherein the target virtual batch carries the entity identification information in the current second service information;
if the target virtual batch exists, judging whether the input material information, the output material information and the intermediate process information in the current second service information are matched with the target virtual batch, and if so, binding the current second service information with the target virtual batch;
and if the target virtual batch does not exist, generating a target virtual batch carrying the input material information, the output material information and the intermediate process information in the current second service information, and binding the current second service information with the target virtual batch.
In one possible design, the storing, into the target tracing chain, the service information bound to the virtual batch on the target tracing chain includes:
generating snapshot information from the service information bound with the virtual batch on the target tracing chain;
and storing the snapshot information into the target tracing chain.
In a second aspect, an embodiment of the present invention provides a device for tracing grain and oil quality, including:
the system comprises a business information acquisition module, a business information acquisition module and a business information processing module, wherein the business information acquisition module is used for acquiring business information of different links in the grain and oil production process, and the business information of each link comprises input material information, output material information, intermediate process information and entity identification information of the link;
the virtual batch binding module is used for binding the service information of each link with at least one virtual batch, wherein each virtual batch carries first identification information for identifying the virtual batch;
the tracing chain determining module is used for determining a target tracing chain in the grain and oil production process according to the virtual batch and the input material information of the link corresponding to the virtual batch, wherein the target tracing chain comprises at least one virtual batch;
the service information storage module is used for storing the service information bound with the virtual batch on the target tracing chain into the target tracing chain;
the identification information creating module is used for creating second identification information of the last virtual batch in the target tracing chain;
and the service information determining module is used for determining service information of different links in the grain and oil output process according to the second identification information and the first identification information of the last virtual batch.
In one possible design, the traceability chain determination module is configured to:
acquiring a tracing chain set, wherein the tracing chain set is used for storing tracing chains;
for each virtual batch, the following operations are performed:
judging whether the input material information bound to the current virtual batch is the same as the output material information bound to the last virtual batch of the tracing chains in the tracing chain set;
if the virtual batch is the same as the last virtual batch of the traceability chain, establishing the association between the current virtual batch and the last virtual batch of the traceability chain so as to form a target traceability chain in the grain and oil output process;
and if not, determining the current virtual batch as a target tracing chain in the grain and oil production process, and storing the target tracing chain into the tracing chain set.
In one possible design, the virtual batch binding module is configured to:
mapping the service information of each link into a preset service model, and if the service information in the service model conforms to a preset standard rule, determining the service information conforming to the preset standard rule as first service information;
determining first service information meeting preset link execution conditions as second service information;
binding the second service information with at least one virtual batch;
the virtual batch binding module, when performing the binding of the second service information with at least one virtual batch, is specifically configured to perform the following operations:
for each piece of the second service information, the following operations are performed:
determining whether a target virtual batch exists according to entity identification information in the current second service information, wherein the target virtual batch carries the entity identification information in the current second service information;
if the target virtual batch exists, judging whether the input material information, the output material information and the intermediate process information in the current second service information are matched with the target virtual batch, and if so, binding the current second service information with the target virtual batch;
and if the target virtual batch does not exist, generating a target virtual batch carrying the input material information, the output material information and the intermediate process information in the current second service information, and binding the current second service information with the target virtual batch.
In a third aspect, an embodiment of the present invention provides a device for tracing grain and oil quality, including: at least one memory and at least one processor;
the at least one memory to store a machine readable program;
the at least one processor is configured to invoke the machine-readable program to perform the method described above.
In a fourth aspect, embodiments of the present invention provide a computer-readable medium having stored thereon computer instructions, which, when executed by a processor, cause the processor to perform the method described above.
According to the scheme, the grain and oil quality tracing method, the grain and oil quality tracing device and the grain and oil quality tracing medium provided by the invention have the advantages that the service information of each link in the grain and oil production process is bound with at least one virtual batch, the target tracing chain in the grain and oil production process can be determined according to the virtual batch and the input material information of the link corresponding to the virtual batch, then the service information is stored in the target tracing chain, and finally the service information of different links in the grain and oil production process is determined according to the created second identification information and the first identification information of the last virtual batch of the target tracing chain, so that the service information of different links in the grain and oil production process can be accurately traced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a flow chart of a method for tracing grain and oil quality according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a device where a grain and oil quality traceability device provided by an embodiment of the present invention is located;
fig. 3 is a schematic diagram of a grain and oil quality tracing device provided by one embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer and more complete, the technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention, and based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative efforts belong to the scope of the present invention.
Fig. 1 is a flow chart of a grain and oil quality tracing method according to an embodiment of the present invention. As shown in fig. 1, the method may include the steps of:
step 101, acquiring service information of different links in a grain and oil production process, wherein the service information of each link comprises input material information, output material information, intermediate process information and entity identification information of the link;
step 102, binding the service information of each link with at least one virtual batch, wherein each virtual batch carries first identification information for identifying the virtual batch;
103, determining a target tracing chain in the grain and oil production process according to the virtual batch and the input material information of the link corresponding to the virtual batch, wherein the target tracing chain comprises at least one virtual batch;
step 104, storing the service information bound with the virtual batch on the target tracing chain into the target tracing chain;
105, creating second identification information of the last virtual batch in the target tracing chain;
and 106, determining the service information of different links in the grain and oil production process according to the second identification information and the first identification information of the last virtual batch.
In the embodiment of the invention, the business information of each link in the grain and oil production process is bound with at least one virtual batch, the target tracing chain in the grain and oil production process can be determined according to the virtual batch and the input material information of the link corresponding to the virtual batch, then the business information is stored in the target tracing chain, and finally the business information of different links in the grain and oil production process is determined according to the created second identification information and the first identification information of the last virtual batch of the target tracing chain, so that the business information of different links in the grain and oil production process can be accurately traced.
In some embodiments, the different links may include a planting link, a processing and production link, and a product circulation link, wherein the processing and production link includes: the method comprises a raw grain storage link, a squeezing link, a crude oil tank-feeding link, a crude oil refining link, a finished oil tank-feeding link and a finished oil filling link. The grain and oil quality tracing chain constructed by the invention covers the links of grain and oil planting, production processing, circulation and the like, the production processing can be subdivided into raw grain storage, squeezing, crude oil refining, filling and the like, the management is more precise, the information is more comprehensive, for an enterprise, the chain is not only a quality tracing platform, but also an information system for business information management in the enterprise, and powerful support is provided for analyzing material balance, fake goods fleeing, quality supervision, product flow direction and the like. It should be noted that the target tracing chain is obtained by associating the virtual batches with the virtual batches, the links corresponding to two adjacent associated virtual batches may not be the two adjacent links, for example, the virtual batch of the planting link may be associated with the virtual batch of the pressing link, so that the raw grain storage link may be omitted, and the two virtual batches may be associated as long as the input material information of one virtual batch is ensured to be the same as the output material information of the other virtual batch, so that the flexibility of constructing the target tracing chain may be embodied.
It should be noted that the virtual batch corresponds to a production process of each link within a certain period of time, and is used for batch management of each service information, and the virtual batch carries the service information and the entity identification information, so as to implement binding between the virtual batch and the service information. The term different from the virtual batch is a common entity, each common entity is identified by entity identification information, and the entity which can be repeatedly used in the grain and oil planting and production process corresponding to the common entity, such as a land parcel, a warehouse, a production line and the like.
In some embodiments, after the target tracing chain is constructed, the virtual batch may be finished after a certain condition is met, such as plot harvest, warehouse clearing, and the like. The system judges that the end condition of the virtual batch is met and automatically ends the virtual batch; and secondly, manually ending the virtual batch according to the actual service.
The idea of specifically constructing the target tracing chain is described as follows:
1) planting link
The information of the planting link needs to be managed by planting batches (i.e. virtual batches), different planting batches are divided according to different plots (i.e. common entities), each planting batch has a unique identifier (i.e. first identification information), and the life cycle of each planting batch is from the beginning of seed planting to the end of crop harvesting.
The input materials in the planting link are seeds, the output materials are raw grains, and the intermediate process information comprises farming activity information, field information and the like. And taking the land parcel as a unit, butting the input material information, the output material information and the intermediate process information, and performing associated binding with the planting batch to form a first chain link in the tracing chain, wherein the first chain link is identified by the planting batch.
2) Processing and production link
The grain and oil processing and production business is complex, and processing enterprises with different scales are different, and can be generally divided into several sub-sections of raw grain storage, squeezing, crude oil filling, crude oil refining, finished oil filling and finished oil filling. And the data of each sub-link needs to be subjected to canonical management, so that the canonical uplink of the data is ensured.
Unprocessed food grain warehouse
The raw grain storage is that processing enterprises temporarily store the purchased raw grains into own warehouses (namely, public entities). The warehousing information needs to be managed by warehousing batches (namely virtual batches), different warehousing batches are divided according to different warehouses or cargo spaces, each warehousing batch has a unique identifier (namely first identification information), the warehousing batches specify the varieties and the quality of the raw grains, and the raw grains of different varieties and qualities are stored in different warehouses or cargo spaces. And (4) starting the storage of the raw grains from the first raw grain storage to stopping the storage of the raw grains with the same quality or ending the storage after the storage is cleared. Only one storage batch which is started but not finished exists under each warehouse or goods space, and after the storage batch is finished, a new storage batch can be created for carrying out the raw grain storage operation of the next batch.
The input materials of the link are raw grains, the output materials are raw grains to be processed, and the intermediate process information comprises raw grain quality inspection information, storage operation information and the like. And the link is associated and bound with the unprocessed food grain storage batch, so that a link for tracing the unprocessed food grain storage in the chain is formed, and the link is uniquely identified by the unprocessed food grain storage batch.
Raw grain squeezing
Raw grain pressing is an operation of processing raw grains into crude oil. The pressing information needs to be managed by dividing pressing batches, wherein different pressing batches (namely virtual batches) are divided for different pressing production lines (namely common entities), and each pressing batch has a unique identifier (namely first identification information). The pressing batch is from the beginning of one pressing operation to the end of the pressing operation.
The input materials of the link are raw grains to be processed, the output materials are crude oil, and the intermediate process information comprises squeezing operation information, crude oil quality inspection information and the like. And binding the raw grain pressing batch with the raw grain pressing batch to form a raw grain pressing link, wherein the pressing batch uniquely identifies the link.
Refining of crude oil
The crude oil refining is to process the crude oil into finished oil meeting specified standards. Crude oil refining information needs to be managed by dividing crude oil refining batches, different refining batches (namely virtual batches) are divided for different refining production lines (namely common entities), and the refining batches have unique identifiers (namely first identification information). The refining batch is from the beginning of one refining operation to the end of the refining operation.
The input materials in the link are crude oil, the output materials are finished oil, and the intermediate process information comprises refining operation information, quality inspection information and the like. And binding the refined batch to form a refining link, wherein the refining batch uniquely identifies the link.
Putting crude oil or finished oil into tank
Crude oil or product oil is temporarily stored in an oil tank (i.e. a common entity), and the crude oil or product oil is normally temporarily stored in a squeezing production and refined product oil is temporarily stored. The crude oil and product oil tank filling information is managed in tank filling batches, different tank filling batches (namely virtual batches) are divided for different oil tanks, and the tank filling batches have unique identification (namely first identification information). The tank filling batch is finished from the first batch of crude oil or finished oil to the tank filling to the end after the crude oil or finished oil with the same quality is not filled into the tank or is cleaned. Only one tank filling batch which is started but not finished can exist under one oil tank, and a new tank filling batch can be created after the tank filling batch is finished, so that the tank filling operation of the next batch can be carried out. The oil products entering the same tank can be ensured to be the same in type and quality through the tank entering batch.
The input materials in the link are crude oil or finished oil, the output materials are crude oil to be refined or finished oil to be filled, and the intermediate process information comprises tank filling operation information, tank inspection information and the like. And binding with the tank filling batch to form a crude oil or finished oil tank filling link, wherein the tank filling batch uniquely identifies the link.
Filling of finished oil
And the finished oil is filled into the product through a filling production line. The product oil filling information is managed by filling batches, and different filling batches (i.e. virtual batches) are divided for different filling production lines (i.e. common entities), and each filling batch has a unique identifier (i.e. first identification information). The filling batch is finished from the beginning of one filling operation to the completion of the filling operation.
The input materials in the link are finished oil, the output materials are products, and the information of the intermediate process comprises filling operation information, product quality sampling inspection information and the like. And binding the oil with the filling batch to form a finished oil filling link, wherein the filling batch uniquely identifies the link.
In the finished oil filling link, each product to be produced needs to be assigned with a code (namely, a tracing code) and an association relationship between the tracing code and a filling batch is established, so that support is provided for reverse tracing.
3) Product circulation link
The product circulation link mainly comprises product storage and delivery of processing enterprises and product storage and delivery of dealers. After filling, the products are endowed with the tracing codes (namely, the second identification information), and the tracing codes are scanned to enter the warehouse and leave the warehouse in circulation, so that the information of the circulation middle process of the products is recorded by taking the tracing codes as a main line. And through the tracing codes, tracing chains of all links of product circulation are formed.
Aiming at planting and processing links, based on each link constructed in 1) and 2), unique identification is carried out on the materials input and output in each link, the materials are used as main lines, and the links are connected in series to form the grain and oil quality tracing chain. For example, when the material output in a certain planting batch A in the planting link is raw grain A, and the material input in a certain storage batch B in the raw grain storage link is raw grain A, the planting batch A and the storage batch B are associated, and the later links are connected in series according to the thought.
Aiming at the link of product circulation, each product has a unique tracing code, in the circulation process, no matter the product is stored in a warehouse or delivered out of the warehouse, which products are stored in the warehouse and which products are delivered out of the warehouse can be recorded, the tracing code is used as a unique identifier of each product, the information of the details of the products entering and leaving the warehouse can be recorded, and chains of all links are recorded in the circulation business through the tracing code.
The grain and oil planting and processing production links are correlated in batches, the tracing codes are correlated with the filling batches in the filling link, and the product flow direction and circulation information are recorded through the tracing codes in the circulation link, so that the construction of the tracing chain of the grain and oil in the whole process of planting, processing production and circulation is completed.
Based on the method for tracing the quality of grain and oil shown in fig. 1, in an embodiment of the present invention, the determining a target tracing chain in the grain and oil production process according to the virtual batch and the input material information of the link corresponding to the virtual batch includes:
acquiring a tracing chain set, wherein the tracing chain set is used for storing tracing chains;
for each virtual batch, the following operations are performed:
judging whether the input material information bound to the current virtual batch is the same as the output material information bound to the last virtual batch of the tracing chains in the tracing chain set;
if the virtual batch is the same as the last virtual batch of the traceability chain, establishing the association between the current virtual batch and the last virtual batch of the traceability chain so as to form a target traceability chain in the grain and oil output process;
and if not, determining the current virtual batch as a target tracing chain in the grain and oil production process, and storing the target tracing chain into the tracing chain set.
In the embodiment of the invention, the tracing chain set is preset, so that each virtual batch can be linked up conveniently, and the integrity of the chain is increased. After the target tracing chain is formed, an association relationship is established between the last virtual batch of the target tracing chain and a tracing code assigned to a product (data and association information are collected through production line equipment), after the product flows to the market, a consumer can find the last virtual batch of the corresponding chain by scanning the tracing code, so that service information bound to the last virtual batch can be inquired, and then all service information stored on the target tracing chain can be traced through the target tracing chain.
Based on the grain and oil quality tracing method shown in fig. 1, in an embodiment of the present invention, the binding the service information of each link with at least one virtual batch includes:
mapping the service information of each link into a preset service model, and if the service information in the service model conforms to a preset standard rule, determining the service information conforming to the preset standard rule as first service information;
determining first service information meeting preset link execution conditions as second service information;
and binding the second service information with at least one virtual batch.
In the embodiment of the invention, a basis can be provided for the preliminary screening of the service information by setting the service model so as to reduce the processing pressure of computing resources, and if the service information in the service model conforms to the preset standard rule, the service information is determined as the first service information; and then binding the first service information meeting the preset link execution condition with at least one virtual batch.
It is understood that the specification rule may define the type, length, and whether the service information in the service model can be null, so as to filter out the first service information. Of course, entity information may also be filtered, where the entity information is referred to by the service information through the entity identification information, and the entity information may include parameter information of common entities used in the production process, such as areas of the common entities, etc. If the service information or the entity information does not conform to the standard, feeding back the problem and supporting the re-receiving of data; and if the service information or the entity information conforms to the specification, binding the service information of each virtual batch with the virtual batch.
It can be further understood that the preset link execution condition may be, for example, that the entity identification information is a, the input material is soybean, the material grade is first grade, and the like, that is, the index of the second service information that is desired to be obtained is preset.
Based on the grain and oil quality tracing method shown in fig. 1, in an embodiment of the present invention, the binding the second service information with at least one virtual batch includes:
for each piece of the second service information, the following operations are performed:
determining whether a target virtual batch exists according to entity identification information in the current second service information, wherein the target virtual batch carries the entity identification information in the current second service information;
if the target virtual batch exists, judging whether the input material information, the output material information and the intermediate process information in the current second service information are matched with the target virtual batch, and if so, binding the current second service information with the target virtual batch;
and if the target virtual batch does not exist, generating a target virtual batch carrying the input material information, the output material information and the intermediate process information in the current second service information, and binding the current second service information with the target virtual batch.
In the embodiment of the present invention, when the second service information and the virtual batch are bound, it is necessary to check whether the service information matches the virtual batch according to a virtual batch matching condition (i.e., it is determined whether the input material information, the output material information, and the intermediate process information in the current second service information match the target virtual batch), and if matching according to the condition is successful, an association relationship between the second service information and the virtual batch is established; and if the matching fails, recording the problems, wherein the problem category is that the virtual batch cannot be matched.
During the link execution process, some problems may occur, such as failure to meet the matching virtual batch. The problems are recorded, the problem reasons are manually checked and modified, the problem data is submitted and processed, and the link execution is carried out again.
It should be noted that the virtual batch is defined on the common entity and defines the standard of the production data on the common entity, when the production requirement changes and the defined standard of the old virtual batch on the common entity is not satisfied, the process is ended, a new virtual batch is established, and new service information is bound. Management of creating, binding service information, ending and the like of the virtual batches is supported, and at most one unfinished virtual batch exists under one common entity.
Virtual batches may be created manually in advance, or in an ongoing session, a program may automatically create virtual batches in the event that there are no unfinished virtual batches in a common entity. When certain conditions are met, the virtual batch can be manually ended manually by a person, or the program is automatically ended after the conditions are met.
Based on the grain and oil quality tracing method shown in fig. 1, in an embodiment of the present invention, the storing the service information bound to the virtual batch on the target tracing chain into the target tracing chain includes:
generating snapshot information from the service information bound with the virtual batch on the target tracing chain;
and storing the snapshot information into the target tracing chain.
In the embodiment of the invention, the service information bound with the virtual batch on the target tracing chain is generated into the snapshot information, so that the loss of the service information bound with the virtual batch on the target tracing chain can be effectively prevented, and the authenticity of the snapshot information can be ensured through an encryption algorithm by the generated snapshot information.
As shown in fig. 2 and fig. 3, the embodiment of the present invention provides an apparatus where a grain and oil quality traceability device is located and a grain and oil quality traceability device. The device embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. In terms of hardware, as shown in fig. 2, a hardware structure diagram of a device where the grain and oil quality tracing apparatus provided in the embodiment of the present invention is located is shown, except for the processor, the memory, the network interface, and the nonvolatile memory shown in fig. 2, the device where the apparatus is located in the embodiment may also include other hardware, such as a forwarding chip responsible for processing a packet, in general. Taking a software implementation as an example, as shown in fig. 3, as a logical apparatus, the apparatus is formed by reading, by a CPU of a device in which the apparatus is located, corresponding computer program instructions in a non-volatile memory into a memory for execution.
As shown in fig. 3, the device for tracing grain and oil quality provided by this embodiment includes:
the service information acquisition module 301 is used for acquiring service information of different links in the grain and oil production process, wherein the service information of each link comprises input material information, output material information, intermediate process information and entity identification information of the link;
a virtual batch binding module 302, configured to bind the service information of each link with at least one virtual batch, where each virtual batch carries first identification information for identifying the virtual batch;
a tracing chain determining module 303, configured to determine a target tracing chain in a grain and oil production process according to the virtual batch and the material input information of the link corresponding to the virtual batch, where the target tracing chain includes at least one virtual batch;
a service information storage module 304, configured to store the service information bound to the virtual batch in the target tracing chain into the target tracing chain;
an identification information creating module 305, configured to create second identification information of a last virtual batch in the target tracing chain;
and the service information determining module 306 is configured to determine service information of different links in the grain and oil production process according to the second identification information and the first identification information of the last virtual batch.
In this embodiment of the present invention, the service information obtaining module 301 may be configured to execute step 101 in the foregoing method embodiment, the virtual batch binding module 302 may be configured to execute step 102 in the foregoing method embodiment, the traceability chain determining module 303 may be configured to execute step 103 in the foregoing method embodiment, the service information storing module 304 may be configured to execute step 104 in the foregoing method embodiment, the identification information creating module 305 may be configured to execute step 105 in the foregoing method embodiment, and the service information determining module 306 may be configured to execute step 106 in the foregoing method embodiment.
In an embodiment of the present invention, the tracing chain determining module 303 is configured to perform the following operations:
acquiring a tracing chain set, wherein the tracing chain set is used for storing tracing chains;
for each virtual batch, the following operations are performed:
judging whether the input material information bound to the current virtual batch is the same as the output material information bound to the last virtual batch of the tracing chains in the tracing chain set;
if the virtual batch is the same as the last virtual batch of the traceability chain, establishing the association between the current virtual batch and the last virtual batch of the traceability chain so as to form a target traceability chain in the grain and oil output process;
and if not, determining the current virtual batch as a target tracing chain in the grain and oil production process, and storing the target tracing chain into the tracing chain set.
In an embodiment of the present invention, the virtual batch binding module 302 is configured to perform the following operations:
mapping the service information of each link into a preset service model, and if the service information in the service model conforms to a preset standard rule, determining the service information conforming to the preset standard rule as first service information;
determining first service information meeting preset link execution conditions as second service information;
and binding the second service information with at least one virtual batch.
In an embodiment of the present invention, when performing the binding of the second service information and the at least one virtual batch, the virtual batch binding module 302 is specifically configured to perform the following operations:
for each piece of the second service information, the following operations are performed:
determining whether a target virtual batch exists according to entity identification information in the current second service information, wherein the target virtual batch carries the entity identification information in the current second service information;
if the target virtual batch exists, judging whether the input material information, the output material information and the intermediate process information in the current second service information are matched with the target virtual batch, and if so, binding the current second service information with the target virtual batch;
and if the target virtual batch does not exist, generating a target virtual batch carrying the input material information, the output material information and the intermediate process information in the current second service information, and binding the current second service information with the target virtual batch.
In an embodiment of the present invention, the service information storage module 304 includes:
generating snapshot information from the service information bound with the virtual batch on the target tracing chain;
and storing the snapshot information into the target tracing chain.
It can be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the grain and oil quality tracing device. In other embodiments of the invention, the traceability device of grain and oil quality may comprise more or fewer components than shown, or some components may be combined, some components may be separated, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Because the content of information interaction, execution process, and the like among the modules in the device is based on the same concept as the method embodiment of the present invention, specific content can be referred to the description in the method embodiment of the present invention, and is not described herein again.
The embodiment of the invention also provides a grain and oil quality tracing device, which comprises: at least one memory and at least one processor;
the at least one memory to store a machine readable program;
the at least one processor is used for calling the machine readable program to execute the grain and oil quality tracing method in any embodiment of the invention.
Embodiments of the present invention also provide a computer readable medium storing instructions for causing a computer to perform a method for tracking grain and oil quality as described herein. Specifically, a method or an apparatus equipped with a storage medium on which a software program code that realizes the functions of any of the above-described embodiments is stored may be provided, and a computer (or a CPU or MPU) of the method or the apparatus is caused to read out and execute the program code stored in the storage medium.
In this case, the program code itself read from the storage medium can realize the functions of any of the above-described embodiments, and thus the program code and the storage medium storing the program code constitute a part of the present invention.
Examples of the storage medium for supplying the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (e.g., CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD + RW), a magnetic tape, a nonvolatile memory card, and a ROM. Alternatively, the program code may be downloaded from a server computer via a communications network.
Further, it should be clear that the functions of any one of the above-described embodiments can be implemented not only by executing the program code read out by the computer, but also by performing a part or all of the actual operations by an operation method or the like operating on the computer based on instructions of the program code.
Further, it is to be understood that the program code read out from the storage medium is written to a memory provided in an expansion board inserted into the computer or to a memory provided in an expansion unit connected to the computer, and then causes a CPU or the like mounted on the expansion board or the expansion unit to perform part or all of the actual operations based on instructions of the program code, thereby realizing the functions of any of the above-described embodiments.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (10)

1. The grain and oil quality tracing method is characterized by comprising the following steps:
acquiring service information of different links in a grain and oil production process, wherein the service information of each link comprises input material information, output material information, intermediate process information and entity identification information of the link;
binding the service information of each link with at least one virtual batch, wherein each virtual batch carries first identification information for identifying the virtual batch;
determining a target tracing chain in the grain and oil production process according to the virtual batch and the input material information of links corresponding to the virtual batch, wherein the target tracing chain comprises at least one virtual batch;
storing the service information bound with the virtual batch on the target tracing chain into the target tracing chain;
creating second identification information of the last virtual batch in the target tracing chain;
and determining the service information of different links in the grain and oil production process according to the second identification information and the first identification information of the last virtual batch.
2. The method according to claim 1, wherein the determining a target traceability chain in the grain and oil production process according to the virtual batch and the input material information of the link corresponding to the virtual batch comprises:
acquiring a tracing chain set, wherein the tracing chain set is used for storing tracing chains;
for each virtual batch, the following operations are performed:
judging whether the input material information bound to the current virtual batch is the same as the output material information bound to the last virtual batch of the tracing chains in the tracing chain set;
if the virtual batch is the same as the last virtual batch of the traceability chain, establishing the association between the current virtual batch and the last virtual batch of the traceability chain so as to form a target traceability chain in the grain and oil output process;
and if not, determining the current virtual batch as a target tracing chain in the grain and oil production process, and storing the target tracing chain into the tracing chain set.
3. The method of claim 1, wherein the binding the business information of each link with at least one virtual batch comprises:
mapping the service information of each link into a preset service model, and if the service information in the service model conforms to a preset standard rule, determining the service information conforming to the preset standard rule as first service information;
determining first service information meeting preset link execution conditions as second service information;
and binding the second service information with at least one virtual batch.
4. The method of claim 3, wherein the binding the second service information with at least one virtual batch comprises:
for each piece of the second service information, the following operations are performed:
determining whether a target virtual batch exists according to entity identification information in the current second service information, wherein the target virtual batch carries the entity identification information in the current second service information;
if the target virtual batch exists, judging whether the input material information, the output material information and the intermediate process information in the current second service information are matched with the target virtual batch, and if so, binding the current second service information with the target virtual batch;
and if the target virtual batch does not exist, generating a target virtual batch carrying the input material information, the output material information and the intermediate process information in the current second service information, and binding the current second service information with the target virtual batch.
5. The method of claim 1, wherein the storing the service information bound to the virtual batch in the target chain for tracing back comprises:
generating snapshot information from the service information bound with the virtual batch on the target tracing chain;
and storing the snapshot information into the target tracing chain.
6. Grain and oil quality tracing device, its characterized in that includes:
the system comprises a business information acquisition module, a business information acquisition module and a business information processing module, wherein the business information acquisition module is used for acquiring business information of different links in the grain and oil production process, and the business information of each link comprises input material information, output material information, intermediate process information and entity identification information of the link;
the virtual batch binding module is used for binding the service information of each link with at least one virtual batch, wherein each virtual batch carries first identification information for identifying the virtual batch;
the tracing chain determining module is used for determining a target tracing chain in the grain and oil production process according to the virtual batch and the input material information of the link corresponding to the virtual batch, wherein the target tracing chain comprises at least one virtual batch;
the service information storage module is used for storing the service information bound with the virtual batch on the target tracing chain into the target tracing chain;
the identification information creating module is used for creating second identification information of the last virtual batch in the target tracing chain;
and the service information determining module is used for determining service information of different links in the grain and oil output process according to the second identification information and the first identification information of the last virtual batch.
7. The apparatus of claim 6, wherein the retroactive chain determination module is configured to:
acquiring a tracing chain set, wherein the tracing chain set is used for storing tracing chains;
for each virtual batch, the following operations are performed:
judging whether the input material information bound to the current virtual batch is the same as the output material information bound to the last virtual batch of the tracing chains in the tracing chain set;
if the virtual batch is the same as the last virtual batch of the traceability chain, establishing the association between the current virtual batch and the last virtual batch of the traceability chain so as to form a target traceability chain in the grain and oil output process;
and if not, determining the current virtual batch as a target tracing chain in the grain and oil production process, and storing the target tracing chain into the tracing chain set.
8. The apparatus of claim 6, wherein the virtual batch binding module is configured to:
mapping the service information of each link into a preset service model, and if the service information in the service model conforms to a preset standard rule, determining the service information conforming to the preset standard rule as first service information;
determining first service information meeting preset link execution conditions as second service information;
binding the second service information with at least one virtual batch;
the virtual batch binding module, when performing the binding of the second service information with at least one virtual batch, is specifically configured to perform the following operations:
for each piece of the second service information, the following operations are performed:
determining whether a target virtual batch exists according to entity identification information in the current second service information, wherein the target virtual batch carries the entity identification information in the current second service information;
if the target virtual batch exists, judging whether the input material information, the output material information and the intermediate process information in the current second service information are matched with the target virtual batch, and if so, binding the current second service information with the target virtual batch;
and if the target virtual batch does not exist, generating a target virtual batch carrying the input material information, the output material information and the intermediate process information in the current second service information, and binding the current second service information with the target virtual batch.
9. Grain and oil quality tracing device, its characterized in that includes: at least one memory and at least one processor;
the at least one memory to store a machine readable program;
the at least one processor, configured to invoke the machine readable program, to perform the method of any of claims 1 to 5.
10. Computer readable medium, characterized in that it has stored thereon computer instructions which, when executed by a processor, cause the processor to carry out the method of any one of claims 1 to 5.
CN202011046292.4A 2020-09-29 2020-09-29 Grain and oil quality tracing method and device and readable medium Pending CN112184023A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011046292.4A CN112184023A (en) 2020-09-29 2020-09-29 Grain and oil quality tracing method and device and readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011046292.4A CN112184023A (en) 2020-09-29 2020-09-29 Grain and oil quality tracing method and device and readable medium

Publications (1)

Publication Number Publication Date
CN112184023A true CN112184023A (en) 2021-01-05

Family

ID=73945614

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011046292.4A Pending CN112184023A (en) 2020-09-29 2020-09-29 Grain and oil quality tracing method and device and readable medium

Country Status (1)

Country Link
CN (1) CN112184023A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101882265A (en) * 2010-06-11 2010-11-10 北京农业信息技术研究中心 Grain product circulation dynamic tracking and safety tracing system and method
US20130184859A1 (en) * 2012-01-13 2013-07-18 Ag Leader Technology, Inc. Method for traceability of grain harvest crop
CN107644239A (en) * 2017-09-19 2018-01-30 北京首溯科技有限公司 Agricultural byproducts production and processing record information is efficiently credible iteration traceability system and method
CN108876415A (en) * 2018-07-05 2018-11-23 江苏农牧科技职业学院 A kind of agricultural input product traceability system and method
CN110516965A (en) * 2019-08-27 2019-11-29 北京工商大学 The credible retrospect model of oil and foodstuffs full supply chain and construction method based on block chain
CN111444190A (en) * 2020-04-21 2020-07-24 司海平 Grain quality safety tracing method based on value chain

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101882265A (en) * 2010-06-11 2010-11-10 北京农业信息技术研究中心 Grain product circulation dynamic tracking and safety tracing system and method
US20130184859A1 (en) * 2012-01-13 2013-07-18 Ag Leader Technology, Inc. Method for traceability of grain harvest crop
CN107644239A (en) * 2017-09-19 2018-01-30 北京首溯科技有限公司 Agricultural byproducts production and processing record information is efficiently credible iteration traceability system and method
CN108876415A (en) * 2018-07-05 2018-11-23 江苏农牧科技职业学院 A kind of agricultural input product traceability system and method
CN110516965A (en) * 2019-08-27 2019-11-29 北京工商大学 The credible retrospect model of oil and foodstuffs full supply chain and construction method based on block chain
CN111444190A (en) * 2020-04-21 2020-07-24 司海平 Grain quality safety tracing method based on value chain

Similar Documents

Publication Publication Date Title
CN109344048A (en) A kind of test method, storage medium and server
CN1692361A (en) Systems and methods for providing business intelligence based on shipping information
US20080270269A1 (en) Method for stock record verification for small inventory populations
CN104346574A (en) Automatic host computer security configuration vulnerability restoration method and system based on configuration specification
CN105095059A (en) Method and device for automated testing
CN107808306A (en) Cutting method, electronic installation and the storage medium of business object based on tag library
CN110956269A (en) Data model generation method, device, equipment and computer storage medium
CN112348530A (en) Automatic server production inspection and repair method
CN111080196A (en) Method and system for processing warehouse arrival difference
CN106484742A (en) Log processing method and device
WO2019062011A1 (en) Target customer group construction method, electronic device and storage medium
CN112184023A (en) Grain and oil quality tracing method and device and readable medium
CN112783749A (en) Static code scanning optimization method and device, electronic equipment and storage medium
CN111143434A (en) Intelligent data checking method, device, equipment and storage medium
CN112381496A (en) Method and electronic equipment for online automatic review of purchase plan
CN112307101A (en) Project pricing auditing method, device, computer equipment and system
CN110716736A (en) Method and system for processing online fault of customer service feedback
EP1193630A1 (en) Agile information system and management method
CN111680974A (en) Problem positioning method and device for electronic underwriting process
CN104067302A (en) Mobile terminal management server, and mobile terminal management program
CN108197147A (en) Number card database O&M method and device
CN110058874B (en) Code patch checking system and method
CN108038248A (en) ETL relies on automatic identifying method and system
CN103703477A (en) Portable terminal managing server and portable terminal managing program
CN117893003A (en) Engineering risk management auditing method and system based on industry auditing cooperation

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

Application publication date: 20210105

RJ01 Rejection of invention patent application after publication