Tracing and supervision statistical system for bulk agricultural products based on truck loading and transportation

By introducing permission allocation, information entry and viewing components into the agricultural product traceability system, and generating traceability QR codes, the problems of slow update speed and difficult traceability of bulk agricultural product information are solved, and efficient and transparent agricultural product information and full-chain supervision are achieved, improving Market trust and product quality and safety.

CN119250668AInactive Publication Date: 2025-01-03CHONGQING ACAD OF AGRI SCI
View PDF 12 Cites 0 Cited by

Patent Information

Application Number
CN202411333092.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-24
Publication Date
2025-01-03
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The current technology has slow update speed of agricultural product information and the terminal structure of each link is relatively simple, which leads to the need to improve the traceability efficiency of agricultural product information, especially the lack of effective traceability solutions for bulk agricultural products.

Method used

Provide a bulk agricultural product traceability and regulatory statistics system based on truck shipment. Through permission allocation components, information entry components and information viewing components, automatic allocation of user permissions, rapid information entry and data query, and generate traceability QR codes for information transmission and Supervision.

Benefits of technology

It improves the transparency and traceability efficiency of agricultural product information, ensures the full-chain supervision from production to consumption, enhances market trust and product quality and safety, simplifies user management processes, and enhances system security and data accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119250668A_ABST
    Figure CN119250668A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of information traceability, particularly provides a traceability and supervision statistical system for bulk agricultural products based on truck loading and transportation, solves the problem that the traceability efficiency needs to be improved due to the fact that the agricultural product information updating speed is low and the terminal structure of each link is relatively simple, fills the blank of a technical method for traceability of bulk agricultural products, and improves the traceability efficiency of the bulk agricultural products. The method mainly solves the problems of implementation and transmission of the traceability identification of the bulk agricultural products, automatic statistics of production and marketing data in links from production to circulation, and accurate monitoring of an agricultural product quality safety supervision mechanism. The system comprises a permission distribution component which automatically distributes corresponding user permissions according to information provided by a user and generates an account and a password; the information input component generates a traceability two-dimensional code, and transmits the traceability two-dimensional code to a user through code scanning or directional transmission; and the information viewing component obtains corresponding target information according to different user permissions when different users log in the cloud platform. According to the invention, an efficient, transparent and secure information communication mechanism is established.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of information tracing, and in particular to a tracing and supervision statistics system for bulk agricultural products shipped by trucks. Background Art

[0002] With the continuous advancement of agricultural modernization and the increasing attention of consumers to food safety, it is particularly important to establish and improve the traceability and supervision and statistical system of bulk agricultural products. As an important part of daily life, the safety of bulk agricultural products is directly related to the health of the people. The traceability and supervision and statistical system can realize the information recording and monitoring of the entire chain from farmland to table, ensuring that the source, processing, transportation, sales and other links of each batch of products can be traced. Once a food safety problem occurs, the source of the problem can be quickly located, and effective measures can be taken to prevent the situation from escalating, thereby protecting the health rights and interests of consumers to the greatest extent. The existing technology development has different ways of collecting data, resulting in reduced directness and comparability of data. In the agricultural product traceability system, many data points and information flows are involved, and data generated at different links can rarely be integrated and shared.

[0003] Prior art 1, Chinese patent, application number 202310991369.2 provides a cold chain logistics information traceability system for agricultural products based on the Internet of Things, which relates to the field of cold chain logistics technology. The processing module retrieves the comparison results uploaded by the comparison module from the storage module through the communication module. The processing module selects a suitable destination for the batch of agricultural products based on the comparison results to ensure that the agricultural products are still within the shelf life when they arrive at the destination consumers. The algorithm module predicts the shelf life of the picked agricultural products, which simplifies the process of predicting the shelf life of agricultural products. There is no need to manually predict the shelf life of agricultural products based on multiple factors. Although it reduces the labor intensity of the staff to a certain extent, and at the same time improves the prediction efficiency of the shelf life of agricultural products to a certain extent, the lack of continuity of information makes traceability difficult.

[0004] Prior art 2, Chinese patent, application number 202210748447.1 discloses a method, device and system for monitoring agricultural product logistics, the method comprising: obtaining the identity number of the logistics transport vehicle requested by the customer input; querying the transportation track, the first camera access path and the second camera access path of the logistics transport vehicle according to the identity number; integrating the transportation track into the electronic map to obtain the transportation track display image; obtaining the image monitored by the first camera according to the first camera access path, and the image is recorded as the first image; obtaining the image monitored by the second camera according to the second camera access path, and the image is recorded as the second image; generating the first display frame, the second display frame and the third display frame; putting the transportation track display image into the first display frame, putting the first image into the second display frame, and putting the second image into the third display frame. Although it is convenient to monitor agricultural products remotely, the lack of information update of each link of agricultural products makes the information limited to one link, resulting in greater difficulty in full process management.

[0005] Prior art three, Chinese patent, application number 202111069675.8 discloses a cold chain logistics information traceability system for agricultural products, including a production information management module, a wholesale management module, a logistics information management module, a sales information management module, a traceability query module and a quality supervision management module; the production information management module is used to collect and record traceability indicators during the planting, growth and picking of agricultural products and transmit their data to the database; the wholesale management module is used to collect traceability information during the acquisition and packaging process; the logistics information management module is used to collect traceability indicators in logistics warehousing and transmit their data to the database. Although the cold chain logistics information traceability system of agricultural products designs corresponding management modules for the planting-wholesale-logistics transportation-sales links of agricultural products in circulation, and extracts traceability indicators that are very likely to cause product quality problems in each link, thereby establishing a relatively complete traceability management system. However, the functions of each terminal are relatively simple, which affects the efficiency of agricultural product information traceability to a certain extent.

[0006] At present, the existing technologies 1, 2 and 3 have the problem that the updating speed of agricultural product information is slow, the terminal structure of each link is relatively simple, resulting in the problem that the traceability efficiency needs to be improved, and there is no traceability for bulk agricultural products. Therefore, the present invention provides a traceability and supervision system statistics system for bulk agricultural products of truck freight, which generates a unique traceability QR code for each batch of bulk agricultural products, and can upload data and manage products through the traceability QR code login system to achieve information transparency; it can also perform product sorting, statistics, query and sampling operations in the system, and realize comprehensive traceability and effective supervision of bulk agricultural products from the production source to the final consumption link, which is convenient for producers, middlemen and market operators to conduct production and marketing statistics, ensure the quality and safety of agricultural products, and enhance market trust; it solves the problem that the agricultural administrative department can understand the destination of agricultural products in transit and the production and marketing of various categories of agricultural products in real time; it solves the problem of precise monitoring by agricultural product quality and safety supervision agencies. Summary of the invention

[0007] In order to achieve the above object, the present invention adopts the following technical scheme:

[0008] One aspect of the present invention provides a tracing and supervision statistics system for bulk agricultural products shipped by trucks, comprising:

[0009] The permission allocation component is responsible for automatically allocating corresponding user permissions based on the information provided by the user after the user completes the registration process and submits relevant information. The permissions allocated by the user generate primary accounts, advanced accounts, ultimate accounts and passwords.

[0010] The information entry component is responsible for scanning and entering relevant information, uploading bulk agricultural product information to the cloud platform, generating a traceability QR code, and sending the traceability QR code to users through scanning or targeted sending. The traceability QR code is scanned or sent in a targeted manner between registered users.

[0011] The information viewing component is responsible for obtaining the corresponding target information according to different user permissions when different users log in to the cloud platform when the user logs in to the system according to the obtained account and password.

[0012] In an optional implementation, the relevant information includes the nature of the unit, job role and real-name authentication results; the relevant information includes the producer, agricultural product name, weight and destination; the traceability QR code information includes the producer, origin, production date and agricultural product name; the corresponding operations include agricultural product origin query, quantity query, category query, sales query, sales query, purchase statistics, quantity statistics, category statistics, regional production query and regional product quantity query.

[0013] In an optional implementation, the permission allocation component includes:

[0014] The information collection module is responsible for displaying different fields to collect information when users register; using smart forms to dynamically update the fields required to be filled out based on the different unit natures and job roles selected by users;

[0015] The permission setting module is responsible for automatically identifying the nature of the unit and the job role after registration is completed, and classifying them into the preset permission model; defining a permission matrix to cross-pair the user's unit nature and job role, and determine the permission level corresponding to each combination; building a permission decision tree, when the user registration information is entered, by traversing the decision tree, assigning corresponding permissions based on the user's specific information, defining the specific operations corresponding to each permission level, and setting access restrictions and operation scope for each level;

[0016] The password generation module is responsible for automatically combining and generating primary accounts, advanced accounts and ultimate accounts based on the user's personal information. The password is generated by a rule engine. After the user registration is completed, it is sent to the user via encrypted email or secure SMS, and the user is informed that the initial password needs to be modified during the first login.

[0017] In an optional implementation, the information collection module includes:

[0018] The logic trigger submodule is responsible for designing a main form on the registration page, which contains multiple basic fields and divides each field into different groups; setting event listeners on the basic fields, and triggering the dynamic field update logic when the user selects an option;

[0019] The field processing submodule is responsible for using conditional judgment logic to obtain the fields that need to be displayed; storing the corresponding field templates for each unit nature, and dynamically loading the templates after the user selects; dynamically adding or removing related fields in the user interface according to the pre-defined field templates;

[0020] The feedback mechanism submodule is responsible for using the front-end validation library to ensure that the content of the fields filled in by the user meets the basic format requirements; providing a real-time feedback mechanism to prompt whether the input is legal when the user enters, and displaying error messages or prompts in real time; when the user selects an option and fills in the corresponding fields, the field status is updated through the marking mechanism; when all fields are filled in and the form is submitted, the data is sent to the back-end server.

[0021] In an optional implementation, the permission setting module includes:

[0022] The model definition submodule is responsible for defining a set of permission models based on user types. The permission model includes different permission levels and the specific operations they perform. The decision tree is a hierarchical structure. Each node represents a judgment condition. Different branches of the tree represent different permissions generated according to the nature of the user's unit and job role.

[0023] The information judgment submodule is responsible for the permission level and executable operations corresponding to each leaf node. When the user completes the registration, the user's unit nature and job role information are received. Starting from the root node, judgment is made layer by layer based on the information provided by the user.

[0024] The permission recording submodule is responsible for obtaining the specific permissions corresponding to the user once the leaf node is traversed, and recording the user's permissions according to the permission level corresponding to the leaf node.

[0025] In an optional implementation, the model definition submodule includes:

[0026] The node setting unit is responsible for defining the permission level for each user type and role, and clarifying the specific operations performed at each level; the permission model is represented by a tree structure, with the root node set as the unit nature, and different branches under the node, representing each basic unit, agricultural producers, distributors and regulators; each branch node is subdivided into job roles, and the subnodes of agricultural producers include operators and auditors, and the final leaf node represents the permission level of each role and the executable operations;

[0027] The authority identification unit is responsible for the unit nature and job role information provided by the user when registering. It starts from the root node unit nature and determines the unit nature selected by the user; moves to the corresponding child node according to the user's selection, and determines the user's job role again. After reaching the leaf node, it identifies the specific authority level and executable operations. When reaching the leaf node, it will record the specific authority and operation corresponding to the node;

[0028] The record storage unit is responsible for recording the user authority information obtained through traversal and storing the user authority information in a database.

[0029] In an optional implementation manner, the node setting unit includes:

[0030] The branch creation sub-unit is responsible for setting the root node of the tree as the unit nature, which represents the starting point for all users to make permission judgments based on their own unit natures; according to different unit natures, a first-level branch is created from the root node, and each branch corresponds to a basic unit, reflecting the user permission classification under the basic unit;

[0031] The branch refinement sub-unit is responsible for the branch refinement of each basic unit, adding the judgment of job roles to form secondary branches. Each role further defines its authority level and executable operations; at the leaf node of each job role, its corresponding authority level and operation are clearly defined;

[0032] The operation description subunit is responsible for setting the final node of each secondary branch, which is the leaf node. The node represents a specific user role and its permission information. The leaf node contains permission information directly related to the user operation and describes the specific operations performed by the user.

[0033] In an optional implementation, the password generation module includes:

[0034] The rule generation submodule is responsible for defining password generation rules based on preset security policies and industry standards, and setting different complexity requirements for different types of accounts;

[0035] The password creation submodule is responsible for calling the rule engine after the user registration is completed, automatically combining and generating passwords of different levels based on the user's personal information and preset rules. The generated passwords are encrypted and converted into a secure format; the generated initial passwords are sent to the user via email or SMS;

[0036] The password modification submodule is responsible for requiring users to log in with the initial password sent when they log in for the first time, and forcing password modification to ensure that users set a new password that is different from the default password and meets security requirements; and guiding users to create a secure password.

[0037] In an optional implementation manner, the information entry component includes:

[0038] The code generation module is responsible for collecting information through mobile phones. The freight driver logs into the system to scan the producer's registration QR code and enters information such as name, destination, and weight. All entered information is stored in the database. The collected relevant information is encoded to generate a string containing producer information, origin, production date, and agricultural product name.

[0039] The information association module is responsible for converting the encoded data into a traceability QR code image using the traceability QR code generation library, associating the generated traceability QR code with the information of bulk agricultural products, and storing it in the database of the cloud platform;

[0040] The information matching module is responsible for generating the traceability QR code and providing a download link of the traceability QR code or directly sending it to the user in the form of an image; within the same system, the traceability QR code is directly matched with the records transmitted between different roles.

[0041] In an optional implementation, the information viewing component includes:

[0042] The authentication module is responsible for logging into the system by entering a username and password to verify the user's identity. After the user logs in, the database is queried based on the provided account type and permission level to confirm the user's permission level. The user's permission information is loaded based on the role and permission settings, and the corresponding permission path and access policy are generated.

[0043] The result display module is responsible for initiating requests to query the origin, quantity statistics and category statistics of agricultural products; generating different query instructions according to the user's needs and permission types, and filtering requests according to the user's permissions; if the request passes the permission check, the database will be accessed according to the user's request, the data that meets the conditions will be retrieved, and the retrieved target information will be displayed on the user interface;

[0044] The log recording module is responsible for exporting reports and printing information after viewing the data, and automatically recording the user's operation log, including query content, operation time and user ID.

[0045] After the user completes the registration process, the authority allocation component of the present invention can automatically allocate different levels of user authority according to the information provided (such as the nature of the unit, job role and real-name authentication results); generate primary accounts, advanced accounts and ultimate accounts, with corresponding passwords, to ensure that users can access appropriate information and functions according to their identities and responsibilities. Significance achieved: Through automated authority allocation, the user management process is simplified and the security and efficiency of the system are improved; different levels of accounts ensure the hierarchical management of information access, effectively protect sensitive information, and prevent unauthorized access; improve the transparency and legality of agricultural product traceability and supervision, enhance the user's sense of responsibility through real-name authentication, and ensure the authenticity of information. The information entry component can quickly enter the information of bulk agricultural products, including producers, agricultural product names, weights and destinations, etc. through the scanning function, reducing the errors and time of manual entry; generate a traceability QR code, in which key information such as producers, origins, production dates and agricultural product names are embedded, which is convenient for circulation and traceability. Significance achieved: Accelerate information entry, improve work efficiency, enable all parties in the supply chain to quickly obtain relevant data, and ensure the timeliness and accuracy of information; the traceability QR code enables users (such as consumers or regulatory agencies) to easily obtain all information about the product through a simplified scanning method, which enhances the user's trust and transparency; significantly improves the traceability of agricultural product circulation, helps to timely discover and solve safety problems, and improves the level of product quality supervision. After the user of the information viewing component logs in to the system with an account and password, the target information is obtained according to the user's authority, and the operation authority and accessible data of different users are formulated; it supports multiple query operations in the agricultural production process, including agricultural product origin query, quantity query, category query, sales and purchase statistics and other functions. Significance achieved: Provide personalized information services for users of different roles, and be able to actively obtain and manage information according to actual needs, which improves the user experience; it helps to monitor and statistically analyze data in each link to ensure the stability and efficiency of the agricultural supply chain; on the one hand, it promotes the data transmission between production and sales, and on the other hand, it enhances the efficiency and scientificity of agricultural and food safety supervision. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:

[0047] Figure 1 This is a block diagram of a tracing and supervision statistics system for bulk agricultural products shipped by trucks provided in Example 1 of the present invention;

[0048] Figure 2 This is a schematic diagram of a bulk agricultural product traceability and supervision statistics system based on truck shipment provided in Example 1 of the present invention;

[0049] Figure 3 This is a block diagram of the permission allocation component provided in Embodiment 2 of the present invention;

[0050] Figure 4 This is a block diagram of an information entry component provided in Embodiment 8 of the present invention;

[0051] Figure 5 A block diagram of an information viewing component provided in Example 9 of the present invention;

[0052] Figure 6 A block diagram of an electronic device provided by the present invention;

[0053] Figure 7 A block diagram of a computer-readable storage medium provided for the present invention. DETAILED DESCRIPTION

[0054] The technical solutions in the embodiments of the present invention will be described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.

[0055] In the following, the terms "first", "second", etc. are used only for convenience of description and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first", "second", etc. may explicitly or implicitly include one or more of the features. In the description of the present invention, unless otherwise specified, "plurality" means two or more.

[0056] In the present invention, unless otherwise clearly specified and limited, the term "connection" should be understood in a broad sense, for example, "connection" can be a fixed mechanical connection, or a detachable mechanical connection, or integrated; or, "connection" can be a direct connection, or an indirect connection through an intermediate medium. In addition, unless otherwise clearly specified and limited, the term "coupling" should be understood in a broad sense, for example, "coupling" can be a direct electrical connection, such as physical contact and electrical conduction between two components, and can also be understood as electrical connection between different components in a circuit structure through physical lines such as copper foil or wires on a printed circuit board (PCB) that can transmit electrical signals to transmit electrical signals; or, "coupling" can be an indirect electrical connection between two components through an intermediate medium; or, "coupling" can be an electrical connection between two components in an air-spaced / non-contact manner, for example, two components are electrically connected by capacitive coupling to transmit electrical signals.

[0057] In the embodiments of the present invention, directional terms such as "up", "down", "left" and "right" may be defined including but not limited to the orientation relative to the schematic placement of the components in the drawings. It should be understood that these directional terms may be relative concepts, which are used for relative description and clarification, and may change accordingly according to the change of the orientation of the components in the drawings.

[0058] The embodiments of the present invention can be used for product traceability: it provides a comprehensive traceability function, allowing users to accurately find the source, production process and circulation path of bulk agricultural products, which helps to ensure food safety and consumer rights. Regulatory statistics: assist regulatory agencies in statistics and analysis of various types of data in the circulation process of agricultural products, and help them conduct quality monitoring, compliance inspections and policy formulation. Data management: effectively manage huge amounts of agricultural product data, including producer information, product names, weights, destinations, etc., and integrate and monitor information flows upstream and downstream of the supply chain. Improve transparency: through information traceability QR codes and cloud platforms, consumers and regulators can directly access relevant information, improve transparency of the bulk agricultural products market, and enhance consumers' confidence in purchasing. User management: through the permission allocation component, ensure that users obtain corresponding data access rights according to their identities and responsibilities, so as to manage and protect sensitive information.

[0059] Description of the key technical features of the embodiments of the present invention: Authority management: A multi-level user authority allocation mechanism (primary account, advanced account, ultimate account) is set up to ensure information security and adapt to the needs of different roles. Information entry and traceability QR code generation: It has the functions of fast information entry and traceability QR code generation, and uses scanning technology to automatically upload product information, improve work efficiency, and reduce manual errors. Efficient data access and query functions: Provide accurate data viewing functions for different types of users, including a variety of query options (origin, sales, regional statistics, etc.), to achieve flexible processing of information. Real-time data update and cloud platform support: The system relies on the cloud platform to support real-time data update and multi-user sharing, ensuring that all participants can obtain the latest information, enhancing the real-time and availability of data. Traceability link integrity: Through the complete traceability link, every step from producer to consumer can be queried to ensure product quality and safety. Scalability: The design has good scalability, and the function can be expanded or adjusted according to changes in business needs to adapt to the ever-changing market and regulatory requirements.

[0060] Embodiment 1:

[0061] like Figure 1 As shown, an embodiment of the present invention provides a traceability and supervision statistics system for bulk agricultural products shipped by trucks, comprising:

[0062] Permission allocation component 1 is responsible for automatically allocating corresponding user permissions based on the information provided by the user after the user completes the registration process and submits relevant information. The permissions allocated by the user permissions generate primary accounts, senior accounts, ultimate accounts and passwords. The relevant information includes the nature of the unit, job role and real-name authentication results, etc.;

[0063] Information entry component 2 is responsible for scanning and entering relevant information, uploading bulk agricultural product information to the cloud platform, generating a traceability QR code, and sending the traceability QR code to users through scanning or directional transmission during circulation. The relevant information includes the producer, agricultural product name, weight and destination, etc. The traceability QR code information includes the producer, origin, production date and agricultural product name, etc. The traceability QR code is scanned or directional transmitted between registered users;

[0064] Information viewing component 3 is responsible for obtaining corresponding target information according to different user permissions when different users log in to the cloud platform when the user logs in to the system according to the obtained account and password; among them, corresponding operations include agricultural product origin query, quantity query, category query, sales query, sales query, purchase statistics, quantity statistics, category statistics, regional production query and regional product quantity query, etc.

[0065] In the above embodiment, after the user completes the registration process, the authority allocation component 1 can automatically allocate different levels of user permissions according to the information provided (such as the nature of the unit, job role and real-name authentication results); generate primary accounts, senior accounts and ultimate accounts, with corresponding passwords, to ensure that users can access appropriate information and functions according to their identities and responsibilities. Significance achieved: Through automated authority allocation, the user management process is simplified and the security and efficiency of the system are improved; different levels of accounts ensure the hierarchical management of information access, effectively protect sensitive information and prevent unauthorized access; improve the transparency and legality of agricultural product traceability and supervision, enhance the user's sense of responsibility through real-name authentication, and ensure the authenticity of information. Information entry component 2, through the scanning function, can quickly enter the information of bulk agricultural products, including producers, agricultural product names, weights and destinations, etc., to reduce errors and time in manual entry; generate a traceability QR code, in which key information such as producers, origins, production dates and agricultural product names are embedded, which is convenient for circulation and traceability. Significance achieved: Accelerate information entry, improve work efficiency, enable all parties in the supply chain to quickly obtain relevant data, and ensure the timeliness and accuracy of information; the traceability QR code allows users (such as consumers or regulatory agencies) to easily obtain all information about the product through a simplified scanning method, which enhances the user's trust and transparency; significantly improves the traceability of agricultural product circulation, helps to timely discover and solve safety problems, and improves the level of product quality supervision. Information viewing component 3 After the user logs in to the system with an account and password, the target information is obtained according to the user's authority, and the operation authority and accessible data of different users are formulated; it supports multiple query operations in the agricultural production process, including agricultural product origin query, quantity query, category query, sales and purchase statistics and other functions. Significance achieved: Provide personalized information services for users of different roles, and be able to actively obtain and manage information according to actual needs, which improves the user experience; it helps to monitor and statistically analyze data in each link to ensure the stability and efficiency of the agricultural supply chain; on the one hand, it promotes the data transmission between production and sales, and on the other hand, it enhances the efficiency and scientificity of agricultural and food safety supervision (for specific principles, refer to the attached Figure 2 ).

[0066] In summary, this embodiment has established an efficient, transparent and secure information communication mechanism through a good combination of the three modules of authority allocation, information entry and information viewing. This system design not only provides a convenient information management solution for all parties in the supply chain, but also enhances the traceability of bulk agricultural products, improves regulatory efficiency, ensures product safety and quality, and maximizes the agility of business operations. By realizing the visualization and traceability of information, the system can effectively respond to market changes and consumer needs, and provide comprehensive support for the production, circulation and sales of agricultural products.

[0067] Embodiment 2:

[0068] like Figure 3 As shown, based on Example 1, the permission allocation component 1 provided in this embodiment of the present invention includes:

[0069] The information collection module is responsible for displaying different fields to collect information when a user registers, such as the nature of the unit (for example, agricultural producers, distributors, regulatory agencies, etc.), job roles (for example, administrators, operators, auditors, etc.), and real-name authentication results; using smart forms to dynamically update the fields that need to be filled in based on the different natures of units and job roles selected by users;

[0070] The permission setting module is responsible for automatically identifying the nature of the unit and the job role after registration is completed, and classifying them into the preset permission model; defining a permission matrix, cross-pairing the user's unit nature and job role, and determining the permission level corresponding to each combination; constructing a permission decision tree. When the user registration information is entered, the decision tree is traversed to assign corresponding permissions based on the user's specific information, define the specific operations corresponding to each permission level (such as information viewing, input, review, etc.), and set access restrictions and operation scope for each level;

[0071] The password generation module is responsible for automatically combining and generating primary accounts, advanced accounts and ultimate accounts based on the user's personal information. The password is generated by a rule engine. After the user registration is completed, it is sent to the user via encrypted email or secure SMS, and the user is informed that the initial password needs to be modified during the first login.

[0072] In the above embodiment, the information collection module uses an intelligent form. When the user selects different unit natures or job roles, the fields required to be filled in can be dynamically adjusted so that the information collection process can adapt to the needs of different users; by guiding the user to fill in relevant information, the accuracy and completeness of the data are ensured, and the possibility of manual input errors is reduced. Significance achieved: The dynamic form improves the user's registration experience, makes it convenient and efficient, reduces the burden of filling in, and improves the ease of use of the system; accurate user information collection provides a reliable data basis for subsequent authority allocation and decision-making, thereby ensuring the effectiveness and security of authority management. The authority setting module systematically combines the nature of the unit and the job role through the authority matrix, and automatically allocates the authority through the decision tree logic to ensure that each combination has a clear authority definition; the system can flexibly allocate authority based on the user's registration information, thereby ensuring that each user obtains the authority that meets his role. Significance achieved: A clear authority model and matrix can prevent the abuse of authority, ensure that each user can only access information related to his job responsibilities, and reduce the risk of information leakage and abuse; the preset authority model and rules can help organizations comply with relevant laws and regulations, especially in industries with strict supervision (such as food safety, agriculture, etc.), to achieve compliance management. The password generation module automatically generates primary accounts, advanced accounts and ultimate accounts based on the user's registration information, simplifying the account management process; the password generated by the rule engine can ensure that it has sufficient complexity and security, covering uppercase letters, lowercase letters, numbers and special characters. Significance achieved: The automatically generated strong password, combined with the strategy of mandatory modification at the first login, can effectively protect user information and account security and reduce the risk of being attacked; after registration, users receive the initial password through encrypted email or secure SMS, which reduces their burden and enhances the sense of security of password management.

[0073] In this embodiment, there are different types of registered users, who provide registration information according to the corresponding requirements during registration: producers, transport drivers, market management (wholesale markets, farmers' markets, supermarkets), middlemen (wholesalers, retailers, group consumers), administrative agencies and agricultural product safety supervision agencies; different users are given different permissions, and the system sets up different databases to manage the corresponding data. When shipping goods, freight drivers enter relevant information (producer, agricultural product name, weight and destination) and generate a traceability QR code (the traceability QR code information includes: producer, place of origin, production date, agricultural product name). The agricultural product traceability QR code is transmitted by scanning or directional sending during the circulation of agricultural products, and end consumers can understand the information by scanning the code. All types of users can query relevant data within the corresponding permissions: producers can query the sales volume and sales destination of the base; market management can query the origin, quantity, and category of agricultural products in the market; middlemen can count the purchase and sales volume and category; administrative management can query the output of each category of agricultural products in the region, the sales destination, and the quantity of each category entering the region. The agricultural product safety supervision agency at the source can accurately choose which base and which category of samples need to be supervised and drawn.

[0074] In summary, the purpose of designing the permission allocation component of this embodiment is to improve the efficiency and security of information management within the organization through systematic, automated and intelligent means. Through dynamic information collection, systematic permission allocation, and automated account and password generation, it not only optimizes the user experience, but also greatly enhances the compliance and security of enterprises and organizations under strict regulatory environments. It improves the flexibility and adaptability of business operations, provides a solid foundation for agricultural product traceability and regulatory statistics systems, and ensures that the system can efficiently and accurately meet the diverse needs of users.

[0075] Embodiment 3:

[0076] On the basis of Example 2, the information collection module provided by the embodiment of the present invention includes:

[0077] The logic trigger submodule is responsible for designing a main form on the registration page, which contains multiple basic fields and divides each field into different groups; setting event listeners on the basic fields, and triggering the dynamic field update logic when the user selects an option;

[0078] The field processing submodule is responsible for using conditional judgment logic to obtain the fields that need to be displayed; storing the corresponding field templates for each unit nature, and dynamically loading the templates after the user selects; dynamically adding or removing related fields in the user interface according to the pre-defined field templates;

[0079] The feedback mechanism submodule is responsible for using the front-end validation library to ensure that the content of the fields filled in by the user meets the basic format requirements; providing a real-time feedback mechanism to prompt whether the input is legal when the user enters, and displaying error messages or prompts in real time; when the user selects an option and fills in the corresponding fields, the field status is updated through the marking mechanism; when all fields are filled in and the form is submitted, the data is sent to the back-end server.

[0080] In the above embodiment, the logic trigger submodule adds an event listener to each basic field, which can capture the user's selection in real time and trigger subsequent actions; effectively organize and design the form structure, divide the basic fields into different groups, conform to the logic of user interaction, and improve the overall user experience. Significance achieved: Through dynamic trigger logic, the system can respond to user input instantly, improve the interactivity between users and applications; dynamically update fields according to user selection, reduce the burden of users filling in irrelevant information, and make the form filling process more efficient and personalized; real-time update allows users to not have to deal with too many irrelevant fields, thereby simplifying the filling process and improving the completion rate. The field processing submodule can determine which fields need to be displayed based on user selection, thereby dynamically determining the form structure; store field templates and information associated with the nature of the unit, and realize fast loading and unloading of fields. Significance achieved: Dynamically loading fields enables the form to adapt to a variety of user situations, ensuring that the collected information is relevant and useful; by accurately selecting display fields, the quality of valid information submitted by users is improved, and data impurities are reduced; centralized management of field templates improves the efficiency of later maintenance and modification of field configurations, and reduces the complexity of program changes. The feedback mechanism submodule instantly checks the user input through the front-end validation library to ensure that it meets the predetermined format conditions (such as email format, password strength, etc.); when the user enters, it provides instant feedback, prompts the legality and displays relevant error messages or prompts. Significance achieved: Real-time verification reduces the workload of back-end error handling and ensures that the data entered by the user is reasonable before submission; the instant feedback mechanism enhances the user's confidence in the process of filling out the form and reduces the anxiety caused by uncertainty about whether the input is legal; clear error prompts can help users correct information in a timely manner, further reduce the need to re-enter data due to information errors, and improve the validity of the final data.

[0081] In summary, this embodiment realizes an efficient, flexible and user-friendly form collection system. Through logic triggering, dynamic field loading and real-time feedback mechanism, the information collection module not only improves the user's sense of participation and satisfaction, but also provides a solid data foundation for subsequent permission allocation, analysis and decision-making through accurate data collection. It is of great significance for the development of efficient user registration process and information management system, and can effectively improve the overall performance of the system.

[0082] Embodiment 4:

[0083] On the basis of Example 2, the permission setting module provided in this embodiment of the present invention includes:

[0084] The model definition submodule is responsible for defining a set of permission models based on user types. The permission model includes different permission levels and the specific operations they perform. The decision tree is a hierarchical structure. Each node represents a judgment condition. Different branches of the tree represent different permissions generated according to the nature of the user's unit and job role.

[0085] The information judgment submodule is responsible for the permission level and executable operations corresponding to each leaf node. When the user completes the registration, the user's unit nature and job role information are received. Starting from the root node, judgment is made layer by layer based on the information provided by the user.

[0086] The permission recording submodule is responsible for obtaining the specific permissions corresponding to the user once the leaf node is traversed, and recording the user's permissions according to the permission level corresponding to the leaf node.

[0087] In the above embodiment, the model definition submodule establishes a set of structured permission models, defines each user role and its corresponding permission level and executable operations, including from simple viewing permissions to complex editing and review permissions, etc.; the permissions are divided in a tree structure, the root node represents the basic nature of the user, the branch node represents the job role, and the final leaf node defines the specific permissions. The significance achieved: through the model definition, the permissions of different user types can be clearly seen, which helps to achieve more systematic and standardized permissions management; the structured model makes the permission system easy to expand, and only needs to add new nodes or modify existing nodes to adapt to new user roles or permission requirements; the definition reduces the errors that may occur in the allocation of permissions, and realizes more efficient permission management. After the user provides the registration information, the information judgment submodule starts traversing from the root node according to the defined decision tree. According to the unit nature and job role of the user, the submodule judges layer by layer and moves to the next node; once the leaf node is traversed, the submodule returns the corresponding permission level and executable operation and passes it to the next step of processing. Significance achieved: Through layer-by-layer judgment, it ensures that the user's permissions are accurately allocated according to the real role and unit nature, avoiding the arbitrariness of permission allocation; dynamic permission judgment is provided during the user registration process, and the system can adjust the user's permissions according to real-time input, improving the user experience and system response speed; through clear permission judgment logic, the security of permission management is increased to ensure the prevention of unauthorized operations. Once the permission recording submodule successfully traverses to a leaf node, the submodule will record the user's corresponding permission level to ensure that the user's permissions in the system are updated in real time and stored persistently; the user's permission information is stored in the database to ensure that the user's permissions can be called and verified in subsequent sessions or requests. Significance achieved: Once the user information is recorded, subsequent system calls and permission verifications can be quickly extracted, reducing delays and improving the fluency of user operations; ensuring that the user's permission settings can persist in the system and remain valid across sessions, providing continuous verification of user identity; the integrity of permission records makes subsequent permission audits and management easier, and facilitates tracking and analysis of permission usage.

[0088] In summary, this embodiment performs its duties in the permission setting module, and constitutes an efficient and secure user permission management system by defining a clear permission model, logical judgment and permission record. Since each submodule has its own clear tasks and goals, the synergy can effectively manage the permissions of different users and ensure the data security and operation specifications of the system as a whole. At the same time, the structuring and systematization of the entire process ensures a smooth user experience, reduces errors and safety hazards, and improves the flexibility and responsiveness of the organization to user role management.

[0089] Embodiment 5:

[0090] On the basis of Example 4, the model definition submodule provided in the embodiment of the present invention includes:

[0091] The node setting unit is responsible for defining the permission level for each user type and role, and clarifying the specific operations that can be performed at each level; the permission model is represented by a tree structure, with the root node set as the unit nature, and different branches under the node representing each basic unit, such as agricultural producers, distributors, and regulatory agencies; each branch node is subdivided into job roles, and the subnodes of agricultural producers may include operators and auditors, etc. The final leaf node represents the permission level and executable operations of each role;

[0092] The authority identification unit is responsible for the unit nature and job role information provided by the user when registering. It starts from the root node unit nature and determines the unit nature selected by the user; moves to the corresponding child node according to the user's selection, and determines the user's job role again. After reaching the leaf node, it identifies the specific authority level and executable operations. When reaching the leaf node, it will record the specific authority and operation corresponding to the node;

[0093] The record storage unit is responsible for recording the user authority information obtained through traversal and storing the user authority information in a database.

[0094] In the above embodiment, the node setting unit defines the permission model, clearly sets the permission level and its specific operation permissions for different user types (such as agricultural producers, distributors, and regulatory agencies) and job roles (such as operators and auditors); the permission model is visualized using a tree structure, so that the relationship between each permission level, role, and executable operation is clearer and easier to understand; the root node is set to "unit nature", and branches downward to different user types and corresponding job roles. The significance achieved: ensure the systematization and standardization of permission allocation, and provide a clear framework to handle different user roles and permission requirements; the structured approach makes it easier to manage and update user permissions, and can quickly add or modify permission models, enhancing the flexibility and adaptability of the system; the graphical permission model helps developers and administrators to more intuitively understand the permission allocation relationship in the system, which is helpful for training and debugging. When a user registers, the permission identification unit is responsible for receiving and processing the user's unit nature and job role information, traversing the decision tree from the root node, and dynamically moving to the corresponding child node by judging the user's choice; after reaching the leaf node, the specific permission level and executable operation represented by the node are automatically identified, and the information is extracted. Significance achieved: According to the user's registration information, dynamically assign accurate permissions to each user to ensure the personalization and adaptability of permissions; the system can quickly respond to the user's choice, ensure that the user obtains immediate permission confirmation during the registration process, and improve the user experience; through a strict node judgment process, effectively prevent the wrong permission allocation, and enhance the security of the system. The record storage unit will store the final user permission information persistently in the database to ensure that this information can be called at any time in the user's subsequent operations; organize and manage the permission data stored in the database, maintain the consistency and integrity of the data, and provide a convenient query and update interface. Significance achieved: Through an effective storage mechanism, ensure the integrity and consistency of user permission data, facilitate the system to perform permission authentication and operation control; retain user permission records to facilitate subsequent audits and record tracking, help discover potential problems, and analyze the use of permissions; by optimizing the storage process, improve the efficiency of database queries to quickly respond to user requests and system operations and improve overall system performance.

[0095] In summary, in the permission setting module of this embodiment, the node setting unit, the permission identification unit and the record storage unit each perform their respective functions, and through scientific permission model management, dynamic permission identification and effective permission recording, an efficient, secure and flexible permission management system is realized. This not only improves the user experience, but also lays the foundation for the security, maintainability and scalability of the system, and ensures that the operations of different users in the system are accurately and reasonably controlled.

[0096] Embodiment 6:

[0097] On the basis of Embodiment 5, the node setting unit provided in the embodiment of the present invention includes:

[0098] The branch creation sub-unit is responsible for setting the root node of the tree as the unit nature, which represents the starting point for all users to make permission judgments based on their own unit natures; according to different unit natures, a first-level branch is created from the root node, and each branch corresponds to a basic unit, reflecting the user permission classification under the basic unit;

[0099] The branch refinement sub-unit is responsible for the branch refinement of each basic unit, adding the judgment of job roles to form secondary branches. Each role further defines its authority level and executable operations; at the leaf node of each job role, its corresponding authority level and operation are clearly defined;

[0100] The operation description subunit is responsible for setting the final node of each secondary branch, which is the leaf node. The node represents a specific user role and its permission information. The leaf node contains permission information directly related to the user operation and describes the specific operations performed by the user.

[0101] In the above embodiment, the branch creation subunit is responsible for the initial construction of the tree, setting the root node as "unit nature" to create a clearly visible hierarchical structure; by creating a first-level branch from the root node according to different unit natures, a specific permission classification is assigned to each basic unit (such as agricultural producers, distributors, regulatory agencies, etc.), so that users have a clear classification basis in the permission structure. The significance achieved: It provides a clear starting point for subsequent permission judgment, so that permission management can be carried out in an orderly manner as a whole; through different branches, it can effectively distinguish the identities of various types of users and their related permissions, laying the foundation for refined permission management; the hierarchical structure created by the branch provides a modular view, making the system easier to maintain and expand; for example, if a new unit needs to be added, only a new first-level branch needs to be added under the root node without affecting the existing structure. The branch refinement subunit is responsible for refining the branches of each basic unit, adding the judgment of the job role on the basis of the first-level branch to form a second-level branch; further defining the permission level and executable operations for each job role, providing detailed data support for subsequent permission identification. Significance achieved: Through refinement, the permission requirements of each user role can be accurately described, thereby achieving more refined permission management; for users with multiple roles and permissions, the design of this sub-unit can better meet the needs of complex business scenarios; through fine division of roles and permissions, ensure that the actual operations of users in the system match the permissions they are granted, and ensure security and ease of use. The operation description sub-unit creates leaf nodes for each secondary branch, clarifies the permission information of each user role, and ensures that each leaf node represents a specific user role and its corresponding permission behavior; the leaf node contains specific permission information related to the user's actual operation, describing the operations that the user can perform. Significance achieved: By defining leaf nodes, executable permissions are ultimately provided to users, making their operation boundaries clear and avoiding the occurrence of unauthorized behavior; accurately recording the specific permission operations of each role, effectively preventing permission abuse, and improving the overall security of the system; the detailed definition of leaf nodes provides a basis for the audit, monitoring and analysis of subsequent user operations, and promotes the efficient execution of compliance management and security audits.

[0102] In summary, this embodiment constitutes a complete permission management mechanism. Through the structured design of branch creation sub-units, the permission division of branch refinement sub-units and the specific operation definition of operation description sub-units, the permission management process is systematized, standardized and personalized. It not only improves the system's ability to manage user permissions, but also ensures the security and effectiveness of operations, providing a solid foundation for the function realization and safe operation of the entire system.

[0103] Embodiment 7:

[0104] On the basis of Example 2, the password generation module provided in this embodiment of the present invention includes:

[0105] The rule generation submodule is responsible for defining password generation rules based on preset security policies and industry standards, and setting different complexity requirements for different types of accounts; a primary account only needs 8 characters, while advanced and ultimate accounts may require 12 characters or more;

[0106] The password creation submodule is responsible for calling the rule engine after the user registration is completed, automatically combining and generating passwords of different levels based on the user's personal information and preset rules. The generated passwords are encrypted and converted into a secure format; the generated initial passwords are sent to the user via email or SMS;

[0107] The password modification submodule is responsible for requiring users to log in with the initial password sent when they log in for the first time, and forcing password modification to ensure that users set a new password that is different from the default password and meets security requirements; and guiding users to create a secure password.

[0108] In the above embodiment, the rule generation submodule is responsible for analyzing and setting the rules for password generation, including the minimum length of the password, the character types (such as letters, numbers, special symbols), etc.; ensuring the complexity and strength of the user's password to reduce the risk of being hacked; different account types are divided into different types of accounts (for example, primary accounts, senior accounts and ultimate accounts) and different rules are set to ensure that higher-level accounts have stricter security requirements. Significance achieved: By defining reasonable password rules, it is possible to effectively resist various password cracking attempts and improve the overall security of user information and systems; password policies that meet industry standards can help organizations comply with regulatory requirements and reduce compliance risks caused by security vulnerabilities; centrally managed rules can quickly respond to security threats or technological advances, thereby quickly adjusting password policies. After the user registration is completed, the password making submodule can call the pre-set rules, and the engine automatically generates strong passwords required for primary, senior and ultimate accounts, reducing the burden on users; the generated password is encrypted to ensure security in the database storage and in the email / sms sending process to prevent password leakage; the final generated initial password is securely sent to the user via email or SMS in an encrypted manner. Significance achieved: Users do not need to create complex passwords by themselves. Passwords are automatically generated and provided, which reduces the complexity of the registration process. Encrypted storage and transmission ensure that the user's initial password is not maliciously accessed or stolen. Automatically generated passwords avoid weak passwords that general users may choose, thereby enhancing the security of the account. When the user logs in for the first time, the password modification submodule requires the use of the initial password sent and enforces password modification to ensure that the user no longer uses the default password, thereby improving the security of the account. Password creation guidance is provided, such as password requirements and best practices, to help users set a more secure password. Significance achieved: Forcing users to modify their initial passwords and providing guidance on creating secure passwords can significantly reduce the risk of unauthorized access to accounts. By allowing users to set their own passwords, users are more responsible for the security of their own accounts and strengthen their security awareness. Good security management measures and user guidance can enhance users' trust in the system and maintain brand image and user satisfaction.

[0109] In summary, this embodiment constitutes a fully functional and secure password generation and management system. The rule generation submodule specifies the security standard, the password creation submodule ensures secure password generation and distribution, and the password modification submodule is responsible for ensuring the security of user accounts. This not only improves the security of the system, but also greatly improves the user experience, providing users with a safe and reliable account management method.

[0110] Embodiment 8:

[0111] like Figure 4As shown, based on Example 1, the information input component 2 provided by the embodiment of the present invention includes:

[0112] The code generation module is responsible for collecting information through mobile phones. The freight driver logs into the system to scan the producer's registration QR code and enters information such as name, destination, and weight. All entered information is stored in the database. The collected relevant information is encoded to generate a string containing producer information, origin, production date, and agricultural product name.

[0113] The information association module is responsible for converting the encoded data into a traceability QR code image using the traceability QR code generation library, associating the generated traceability QR code with the information of bulk agricultural products, and storing it in the database of the cloud platform;

[0114] The information matching module is responsible for generating the traceability QR code and providing a download link for the traceability QR code or directly sending it to the user in the form of an image. Within the same system, the traceability QR code is directly transmitted between different roles (on the e-commerce platform, the merchant sends the QR code directly to the consumer). The generated traceability QR code is scanned using a mobile phone or a scanning device to match the extracted information with the records in the database.

[0115] In the above embodiment, the coding generation module collects the relevant information of bulk agricultural products, including producer information, place of origin, production date and name of agricultural products, by scanning or manual input; the collected information is integrated into a string form to facilitate the subsequent generation of traceability QR codes and information storage. This encoding is usually performed in a specific format, such as JSON or XML, to facilitate parsing. The significance achieved: the use of a unified coding format facilitates subsequent processing and parsing, reduces the ambiguity that may arise during the transmission and storage of information, and improves the consistency and integrity of the data; by combining scanning and input, the information entry process is simplified, the work efficiency is improved, and the possibility of manual input errors is reduced; the information organized by coding is convenient for subsequent traceability analysis and traceability management, paving the way for effective supervision; the information association module uses the traceability QR code generation library to convert the encoded string into a traceability QR code image; the previous data is further visualized for quick use in practical applications; the generated traceability QR code is associated with the corresponding bulk agricultural product information, and stored in the database of the cloud platform for future tracing or query. Significance achieved: As a visual carrier of information, the traceability QR code is easy to view and disseminate in different occasions, making relevant information more intuitive in actual operations; through the traceability QR code, users can quickly access detailed information related to the agricultural product, which is particularly important in the product circulation and sales process; the associated information stored in the traceability QR code can provide instant and accurate product information after scanning, support rapid traceability, and enhance consumers' trust in the product. After the information matching module generates the traceability QR code, it provides a download link for the traceability QR code. Users can also directly obtain the traceability QR code in the form of an image, which simplifies the way to obtain the traceability QR code. Users scan the traceability QR code through a scanning device, and the system automatically extracts the information in the traceability QR code and matches it with the records in the database to ensure the accuracy and consistency of the information. The traceability QR code can be directly transmitted between different roles within the same system. The QR code is directly transmitted between different roles. On the e-commerce platform, merchants send the QR code directly to consumers, which simplifies the transmission process and improves the speed and efficiency of information sharing. When consumers purchase goods, they can directly receive the merchant's traceability QR code without going through additional communication steps, which can enhance consumers' trust and purchasing experience. Significance achieved: Users can easily obtain product information from internal channels, which improves user experience and ensures the effectiveness of information transmission. By scanning the code, regulators and relevant personnel can obtain information on agricultural products in real time, which enhances the transparency and traceability of the circulation link. Through rapid information matching and sharing, participants in each link (such as producers, distributors, consumers, etc.) can work better together and improve the efficiency of the overall supply chain.

[0116] In summary, through the effective implementation of functional modules such as encoding and decoding and information association, the information input component 2 in this embodiment not only improves the ability to input and trace bulk agricultural product information, but also provides technical support for subsequent information transmission and supervision. The systematic processing flow ensures the accuracy and consistency of the data, greatly improves the transparency and traceability of agricultural products in the market, thereby protecting the rights and interests of consumers and strengthening the supervision of the market by regulatory authorities.

[0117] Embodiment 9:

[0118] like Figure 5 As shown, based on Example 1, the information viewing component 3 provided by the embodiment of the present invention includes:

[0119] The authentication module is responsible for logging into the system by entering a username and password to verify the user's identity. After the user logs in, the database is queried based on the provided account type and permission level to confirm the user's permission level. The user's permission information is loaded based on the role and permission settings, and the corresponding permission path and access policy are generated.

[0120] The result display module is responsible for initiating requests to query the origin, quantity statistics and category statistics of agricultural products; generating different query instructions according to the user's needs and permission types, and filtering requests according to the user's permissions; if the request passes the permission check, the database will be accessed according to the user's request, the data that meets the conditions will be retrieved, and the retrieved target information will be displayed on the user interface;

[0121] The optimization process displayed on the user interface is as follows:

[0122] Multiple adjustments of normalized values ​​were performed using the following parallel formula:

[0123]

[0124] is the mode, σ adjusted is the adjusted standard deviation;

[0125] Definition: X is the target information obtained in the result display module; μ is the mean of the current target information data; σ is the standard deviation of the target information data; Median represents the median value of the result set of the target information, and IQR is the interquartile range;

[0126] Typography and spacing design adds alignment and space distribution, designed with the following formula:

[0127] Spatial layout adjustment formula:

[0128]

[0129] Where: C represents the normalization and permutation coefficient of the elements in the target information, N elements is the number of elements on the current page, N rows It is the number of rows in which the elements are arranged, suitable for multi-column layout;

[0130] Interaction response adjustment formula:

[0131] Interaction Factor=(1+O)·(1+S)·(1+L)

[0132] Among them: O is the frequency of user operations, such as the number of clicks or swipes, which can reflect the user's attention to the content; S is the complexity of the selected display style, such as whether to use animation effects; L is the interface loading time, which affects the readability by monitoring the user's patience; if the loading time is long, L can be positive, reducing the display effect;

[0133] The final visual display optimization formula:

[0134]

[0135] The normalization part uses different normalization methods to reasonably display the different characteristics of the data and adapt to various data distribution formats; by dynamically adjusting the spacing and processing the spatial layout, the visual design can be reasonably adjusted according to the user's device and display preferences; adding user behavior and interface interaction experience to ensure that the data display is not only visually beautiful, but also interactively efficient; by juxtaposing multiple complex formulas, the comprehensive visual display optimization formula can not only adapt to greater data diversity, but also make more detailed adjustments based on user experience and interaction design requirements. This multi-faceted combination of methods enables designers to have more powerful tools to guide design decisions when facing complex user interface requirements, thereby improving the effectiveness of information display and user satisfaction.

[0136] The log recording module is responsible for exporting reports and printing information after viewing the data, and automatically records the user's operation log, including query content, operation time and user ID.

[0137] In the above embodiment, the identity authentication module can verify the user's identity by entering the user name and password, ensuring that only authorized users can access the system; when the user logs in, the system will query the database to obtain the user's permission level and role, and generate the user's permission path and access policy based on this information. Significance achieved: The effective implementation of the identity authentication module ensures the security of the system and its data, preventing unauthorized users from accessing sensitive information; by identifying the user's permission level, customized information access can be provided according to the user's specific needs, improving the user experience; only authenticated users can view and process information, which can reduce the risk of data being modified or tampered with by mistake and improve the credibility of the system. The result display module user can initiate a request, such as querying the origin and quantity statistics of agricultural products, etc. According to the user's permissions and needs, the system generates different query instructions; after receiving the request, the system performs permission filtering to ensure that users can only obtain information they have permission to view; after the permission check, the system will access the database, retrieve qualified data, and display the results on the interface in a user-friendly manner. Significance achieved: Users can quickly and conveniently obtain the required information, avoiding cumbersome query processes and improving work efficiency; through clear information display, users can enhance their understanding of data sources, quantities and other statistical information, and improve the transparency of the system; provide accurate information to help users make better decisions, whether in production, sales or management. The logging module automatically records detailed information of user operations, including query content, operation time and user ID, when users view data, export reports and print information. Significance achieved: The logging function enables the system to be audited to ensure that each user's operation is traceable, which is crucial to ensuring the compliance and transparency of the system; by recording the user's operation history, the system can trace when problems occur, conveniently and quickly locate the fault link, and improve the efficiency of system maintenance; the recording of user operations also enhances data security, because traceable operation logs can prevent abuse and malicious behavior.

[0138] In summary, the information viewing component 3 of this embodiment effectively ensures the data security, user experience and traceability of the bulk agricultural product traceability system through multiple modules such as identity authentication, result display and log recording. It not only improves the efficiency of users in obtaining information in the system, but also provides strong support for enterprises to achieve information transparency, so as to enhance supervision and meet compliance requirements. In addition, the rich log data provides a basis for subsequent data analysis and system optimization, so that the entire traceability system can be continuously improved in terms of function and efficiency.

[0139] Figure 6 A block diagram of an exemplary electronic device suitable for implementing embodiments of the present invention is shown.

[0140] The electronic device may include a central processing unit / microprocessor / main control chip, etc. 4; a storage medium 5, coupled to the central processing unit / microprocessor / main control chip, etc. 4, and storing computer executable instructions therein, for performing the steps of each method of an embodiment of the present invention when executed by the processor.

[0141] The central processing unit / microprocessor / main control chip 4 may include but is not limited to, for example, one or more processors or microprocessors.

[0142] The storage medium 5 may include, but is not limited to, for example, random access memory (RAM), read-only memory (ROM), flash memory, EPROM memory, EEPROM memory, registers, computer storage media (such as hard disk, floppy disk, solid state drive, removable disk, CD-ROM, DVD-ROM, Blu-ray disc, etc.).

[0143] In addition, the electronic device may also include (but not limited to) a data bus 6, an input / output bus / external bus / device bus 7, a display 8, and input / output devices 9 (eg, keyboard, mouse, speaker, etc.).

[0144] The central processing unit / microprocessor / main control chip etc. 4 can communicate with external devices ( 8 , 9 etc.) through the I / O bus 7 via a wired or wireless network (not shown).

[0145] The storage medium 5 may also store at least one computer executable instruction for executing the various functions and / or method steps in the embodiments described in the present technology when executed by the central processing unit / microprocessor / main control chip 4.

[0146] In one embodiment, the at least one computer executable instruction may also be compiled into or constitute a software product, wherein one or more computer executable instructions are executed by a processor to perform the various functions and / or method steps in the embodiments described in the present technology.

[0147] Figure 7 A schematic diagram of a computer-readable storage medium according to an embodiment of the present invention is shown.

[0148] like Figure 7As shown, instructions are stored on a non-transitory computer-readable storage medium 11, and the instructions are, for example, computer-readable instructions 10. When the computer-readable instructions 10 are executed by the processor, the various methods described above can be executed. Non-transitory computer-readable storage media include, but are not limited to, for example, volatile memory and / or non-volatile memory. Volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. Non-transitory non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. For example, the non-transitory computer-readable storage medium 11 can be connected to a computing device such as a computer, and then, when the computing device runs the computer-readable instructions 10 stored on the computer-readable storage medium 11, the various methods described above can be performed.

[0149] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0150] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0151] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0152] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for executing all or part of the steps of the various embodiments of the method of the present invention through a computer device (which can be a personal computer, a server, or a network device, etc.). The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (full name in English: Read-Only Memory, English abbreviation: ROM), random access memory (full name in English: Random Access Memory, English abbreviation: RAM), disk or optical disk and other media that can store program codes.

[0153] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A tracing and supervision statistics system for bulk agricultural products shipped by trucks, characterized in that: Include: The permission allocation component is responsible for automatically allocating corresponding user permissions based on the information provided by the user after the user completes the registration process and submits relevant information. The permissions allocated by the user generate primary accounts, advanced accounts, ultimate accounts and passwords. The information entry component is responsible for scanning and entering relevant information, uploading bulk agricultural product information to the cloud platform, generating a traceability QR code, and sending the traceability QR code to users through scanning or targeted sending. The traceability QR code is scanned or sent in a targeted manner between registered users. The information viewing component is responsible for obtaining the corresponding target information according to different user permissions when different users log in to the cloud platform when the user logs in to the system according to the obtained account and password.

2. The traceability and supervision statistics system for bulk agricultural products shipped by trucks according to claim 1, characterized in that: in, Relevant information includes the nature of the unit, job role and real-name authentication results; relevant information includes the producer, agricultural product name, weight and destination; traceability QR code information includes the producer, origin, production date and agricultural product name; corresponding operations include agricultural product origin query, quantity query, category query, sales query, sales query, purchase statistics, quantity statistics, category statistics, regional production query and regional product quantity query.

3. The traceability and supervision statistics system for bulk agricultural products shipped by trucks according to claim 1, characterized in that: Permission allocation components, including: The information collection module is responsible for displaying different fields to collect information when users register; using smart forms to dynamically update the fields required to be filled out based on the different unit natures and job roles selected by users; The authority setting module is responsible for automatically identifying the nature of the unit and the job role after registration is completed, and classifying them into the preset authority model; Define a permission matrix, cross-pair the user's unit nature and job role, and determine the permission level corresponding to each combination; build a permission decision tree. When the user registration information is entered, traverse the decision tree, assign corresponding permissions based on the user's specific information, define the specific operations corresponding to each permission level, and set access restrictions and operation scope for each level; The password generation module is responsible for automatically combining and generating primary accounts, advanced accounts and ultimate accounts based on the user's personal information. The password is generated by a rule engine. After the user registration is completed, it is sent to the user via encrypted email or secure SMS, and the user is informed that the initial password needs to be modified during the first login.

4. The traceability and supervision statistics system for bulk agricultural products shipped by trucks as claimed in claim 3 is characterized in that: Information collection module, including: The logic trigger submodule is responsible for designing a main form on the registration page, which contains multiple basic fields and divides each field into different groups; setting event listeners on the basic fields, and triggering the dynamic field update logic when the user selects an option; The field processing submodule is responsible for using conditional judgment logic to obtain the fields that need to be displayed; it stores the corresponding field templates for each unit nature, and the templates are dynamically loaded after the user selects; Dynamically add or remove relevant fields in the user interface based on pre-defined field templates; The feedback mechanism submodule is responsible for using the front-end validation library to ensure that the content of the fields filled in by the user meets the basic format requirements; providing a real-time feedback mechanism to prompt whether the input is legal when the user enters, and displaying error messages or prompts in real time; when the user selects an option and fills in the corresponding fields, the field status is updated through the marking mechanism; when all fields are filled in and the form is submitted, the data is sent to the back-end server.

5. The traceability and supervision statistics system for bulk agricultural products shipped by trucks according to claim 2, characterized in that: Permission setting module, including: The model definition submodule is responsible for defining a set of permission models based on user types. The permission model includes different permission levels and the specific operations they perform. The decision tree is a hierarchical structure. Each node represents a judgment condition. Different branches of the tree represent different permissions generated according to the nature of the user's unit and job role. The information judgment submodule is responsible for the permission level and executable operations corresponding to each leaf node. When the user completes the registration, the user's unit nature and job role information are received. Starting from the root node, judgment is made layer by layer based on the information provided by the user. The permission recording submodule is responsible for obtaining the specific permissions corresponding to the user once the leaf node is traversed, and recording the user's permissions according to the permission level corresponding to the leaf node.

6. The traceability and supervision statistics system for bulk agricultural products shipped by trucks according to claim 4, characterized in that: Model definition submodule, including: The node setting unit is responsible for defining the permission level for each user type and role, and clarifying the specific operations performed at each level; the permission model is represented by a tree structure, with the root node set as the unit nature, and different branches under the node, representing each basic unit, agricultural producers, and distribution opportunity regulators; each branch node is subdivided into job roles, and the subnodes of agricultural producers include operators and auditors. The final leaf node represents the permission level of each role and the executable operations; The authority identification unit is responsible for determining the unit nature and job role information provided by the user during registration, starting from the root node unit nature, and determining the unit nature selected by the user; Move to the corresponding child node according to the user's selection, determine the user's job role again, and after reaching the leaf node, identify the specific permission level and executable operations. When reaching the leaf node, the specific permissions and operations corresponding to the node will be recorded; The record storage unit is responsible for recording the user authority information obtained through traversal and storing the user authority information in a database.

7. The traceability and supervision statistics system for bulk agricultural products shipped by trucks according to claim 6, characterized in that: Node setting unit, including: The branch creation sub-unit is responsible for setting the root node of the tree as the unit nature, which represents the starting point for all users to make permission judgments based on their own unit natures; according to different unit natures, a first-level branch is created from the root node, and each branch corresponds to a basic unit, reflecting the user permission classification under the basic unit; The branch refinement sub-unit is responsible for the branch refinement of each basic unit, adding the judgment of job roles to form secondary branches. Each role further defines its authority level and executable operations; at the leaf node of each job role, its corresponding authority level and operation are clearly defined; The operation description subunit is responsible for setting the final node of each secondary branch, which is the leaf node. The node represents a specific user role and its permission information. The leaf node contains permission information directly related to the user operation and describes the specific operations performed by the user.

8. The traceability and supervision statistics system for bulk agricultural products shipped by trucks as claimed in claim 3, characterized in that: Password generation module, including: The rule generation submodule is responsible for defining password generation rules based on preset security policies and industry standards, and setting different complexity requirements for different types of accounts; The password creation submodule is responsible for calling the rule engine after the user registration is completed, automatically combining and generating passwords of different levels based on the user's personal information and preset rules. The generated passwords are encrypted and converted into a secure format; Send the generated initial password to the user via email or SMS; The password modification submodule is responsible for requiring users to log in with the initial password sent when they log in for the first time, and forcing password modification to ensure that users set a new password that is different from the default password and meets security requirements; and guiding users to create a secure password.

9. The traceability and supervision statistics system for bulk agricultural products shipped by trucks according to claim 1, characterized in that: Information entry components, including: The code generation module is responsible for collecting information through mobile phones. The freight driver logs into the system to scan the producer's registration QR code and enters information such as name, destination, and weight. All entered information is stored in the database. The collected relevant information is encoded to generate a string containing producer information, origin, production date, and agricultural product name. The information association module is responsible for converting the encoded data into a traceability QR code image using the traceability QR code generation library, associating the generated traceability QR code with the information of bulk agricultural products, and storing it in the database of the cloud platform; The information matching module is responsible for generating the traceability QR code and providing a download link for the traceability QR code or directly sending it to the user in the form of an image. Within the same system, the traceability QR code is directly transmitted between different roles. The generated traceability QR code is scanned using a mobile phone or a scanning device to match the extracted information with the records in the database.

10. The traceability and supervision statistics system for bulk agricultural products shipped by trucks according to claim 1, characterized in that: Information viewing components, including: The authentication module is responsible for logging into the system by entering a username and password to verify the user's identity. After the user logs in, the database is queried based on the provided account type and permission level to confirm the user's permission level. The user's permission information is loaded based on the role and permission settings, and the corresponding permission path and access policy are generated. The result display module is responsible for initiating requests to query the origin, quantity statistics and category statistics of agricultural products; Generate different query instructions based on user needs and permission types, and filter requests based on user permissions; if a request passes the permission check, access the database based on the user's request, retrieve data that meets the conditions, and display the retrieved target information on the user interface; The log recording module is responsible for exporting reports and printing information after viewing the data, and automatically recording the user's operation log, including query content, operation time and user ID.

Citation Information

Patent Citations

  • User login method, device and system

    CN104283843A

  • Agricultural product whole process traceability method and system

    CN105469270A

  • Access right standardization and visualization method and system

    CN106789984A

  • Agricultural product quality safety traceability supervision system based on two-dimensional codes and realization method thereof

    CN107093083A

  • Agricultural and sideline product tracing information management system based on IOT (Internet of Things)

    CN107274155A