A method and system for one-click switching of industrial finished products across contracts based on contract hash values

By using contract hash value identification and atomic transaction control, one-click switching of industrial finished products across contracts is achieved, solving the problems of low efficiency and data chaos in traditional manual operations, and improving scheduling efficiency and data security.

CN122134507APending Publication Date: 2026-06-02HANDAN DINGSHENG DIGITAL INTELLIGENCE TECHNOLOGY CO LTD

Patent Information

Authority / Receiving Office
CN Β· China
Patent Type
Applications(China)
Current Assignee / Owner
HANDAN DINGSHENG DIGITAL INTELLIGENCE TECHNOLOGY CO LTD
Filing Date
2026-03-18
Publication Date
2026-06-02

AI Technical Summary

Technical Problem

In traditional industrial finished product shipment scheduling, when cross-contract allocation is required, manual operation is inefficient, prone to errors, and lacks a unified verification basis, resulting in data chaos and difficulty in rollback, which cannot meet the needs of efficient and accurate scheduling.

Method used

Using contract hash values ​​as the unique core identifier, and through standardized verification, atomic transaction control, and automatic data synchronization, it enables one-click switching of finished products across contracts, with full traceability.

Benefits of technology

Significantly improves scheduling efficiency, ensures data accuracy and consistency, solves operational challenges, reduces implementation costs, and is suitable for ERP/MES systems.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

This invention discloses a method and system for one-click switching of industrial finished products across contracts based on contract hash values, relating to the field of industrial ERP / MES contract management technology. This invention uses contract hash values ​​as the unique core identifier of the source / target contract, and achieves efficient, accurate, and secure switching of finished products across contracts through standardized parameter input and full-dimensional verification, atomic transaction control, automatic extraction of target contract information, full operation traceability, and one-click synchronous update of multi-table data. This invention solves the pain points of traditional manual operations, such as low efficiency, susceptibility to errors, data chaos, and lack of traceability. It has the advantages of simple operation, accurate data, strong consistency, full traceability, and high adaptability, and is applicable to all cross-contract scheduling scenarios for industrial finished products, and can be seamlessly integrated into existing systems. This invention has been fully implemented in actual industrial ERP systems and can run stably in real production environments for a long time, possessing mature engineering value and industrial promotion capabilities.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of sales contract management and finished product scheduling technology in industrial ERP / MES, specifically to a method and system that uses contract hash value as the core verification and identification basis to achieve one-click switching of industrial finished products between source and target contracts, automatic data synchronization, and full operation traceability. It is applicable to flexible scheduling scenarios of finished products under industrial manufacturing futures / spot contracts. Background Technology

[0002] In the scheduling of finished industrial products, cross-contract transfers are often required. Traditional methods require manual unbinding and modification of data in multiple tables. Without a unified verification basis, specification mismatch is likely to occur. Manual operation is inefficient and prone to errors. There is no automatic record-keeping mechanism for operations, and the lack of atomicity control for multiple table updates can easily cause data chaos and make it difficult to roll back, which cannot meet the needs of efficient and accurate scheduling. Summary of the Invention Purpose of the invention

[0003] Using the contract hash value as the unique core identifier of the source / target contract, it enables one-click switching of finished products across contracts. Through standardized verification, atomic transaction management, automatic data synchronization and full traceability, it solves the industry pain points of traditional manual operation and improves scheduling efficiency and data security. Technical solution

[0004] Standardized parameter input and full-dimensional validation: Input operation type, product batch number, source / target contract hash value and other information with standardized table value parameters to complete full-dimensional validation of parameter non-emptiness, operation type and hash value validity. If unqualified, terminate and return an error.

[0005] Atomic transaction initialization: Enables database atomic transactions, bringing all subsequent data operations under control. If any step fails, the entire process is rolled back, ensuring data consistency across multiple tables.

[0006] Automatic extraction of target contract information: Using the target contract hash value as the sole retrieval criterion, the target contract number and unit price are automatically extracted from the sales order details table without manual input.

[0007] Automatic record-keeping throughout the entire operation: Extract the core attributes of the finished product, combine them with source / target contract information, operator and operation time, and automatically write them into a dedicated ledger to achieve full information record-keeping.

[0008] One-click synchronization and update of data across multiple tables: Based on the batch number of finished products, automatically update information such as contract number, hash value, and unit price in the production process quality inspection record table, and automatically calculate the total price of finished products by target unit price Γ— quantity / weight of finished products.

[0009] Transaction commit completion switch: After all operations are completed, the transaction is committed, and the finished product is uniquely bound to the target contract, enabling cross-contract switching. Core Innovation Points

[0010] Using the contract hash value as the unique core identifier, the problem of mismatch between finished products and contract specifications is eliminated at the source. Standardized parameters and comprehensive verification enable proactive blocking of invalid operations, ensuring system data security. Atomic transactions are fully controlled, eliminating intermediate state chaos during multi-table data updates; All operations are automatically recorded, providing a unique data basis for traceability and reconciliation. One-click synchronization of data from multiple tables completely replaces manual operations and significantly improves scheduling efficiency. Beneficial effects

[0011] The scheduling efficiency is improved by more than 80%, enabling rapid response to urgent delivery needs; data accuracy is 100%, eliminating errors caused by manual entry and specification matching; atomic transactions ensure data consistency, with no chaotic intermediate states; the entire operation is traceable, resolving pain points in reconciliation and business disputes; implemented based on stored procedures, it can be seamlessly integrated into existing ERP / MES systems, with low implementation costs and compatibility with futures / spot contracts. Detailed Implementation

[0012] The stored procedure is passed the "Switch Contract" operation type, the batch number of the product to be switched, the source / target contract hash value, and the operator information using standardized table-valued parameters; The system verifies the validity of the parameters; if the verification fails, it returns a specific error and terminates the operation. Executing BEGIN TRANSACTION initiates an atomic transaction, controlling subsequent data operations; Extract the target contract number and target unit price based on the target contract hash value; Extract the core attributes of the finished product, combine them with contract and operator information, and insert them into the sales switch contract information table to complete the record keeping; Update the contract number, hash value, unit price, and total price of the finished product in the production process quality inspection record table; Execute COMMIT TRANSACTION to commit the transaction and complete the switchover; if any step fails, CATCH will be triggered to execute ROLLBACK TRANSACTION to roll back the transaction.

Claims

1. A method for one-click switching of industrial finished products across contracts based on contract hash values, characterized in that, Includes the following steps: 1) Input operation information using standardized table-value parameters: operation type, finished product batch number, source contract hash value, target contract hash value, operator name, and operator address; 2) Perform full-dimensional validity checks on the input parameters, including non-empty checks, operation type validity checks, and source / target contract hash value validity checks. If the checks fail, terminate the operation and return specific error information; 3) Enable database atomic transactions to bring subsequent data operations under transaction control; 4) Automatically extract the target contract number and target contract unit price from the sales order details table using the target contract hash value as the sole retrieval criterion. 5) Automatically write the core attributes of the finished product, source / target contract information, operator information, and operation time into the sales switching contract information table to achieve full traceability of the operation; 6) Automatically update the sales contract number, contract hash value, unit price, and final unit price in the production process quality inspection record table based on the finished product batch number, and automatically calculate and update the total price of the finished product according to the target unit price Γ— finished product quantity / weight; 7) After all operations are completed, submit the transaction to complete the finished product cross-contract switching. If any step fails, a full transaction rollback will be triggered.

2. The method according to claim 1, characterized in that, The operation type is limited to "Switch Contract", which is the only valid operation type.

3. The method according to claim 1, characterized in that, By using the contract hash value as the unique core identifier and retrieval basis for the source and target contracts, accurate matching between finished products and contract specifications can be achieved.

4. The method according to claim 1, characterized in that, The core attributes of the finished product include the finished product batch number, contract specifications, finished product material, product parameters, finished product quantity / weight, source contract number, source unit price, and source total price of the finished product.

5. The method according to claim 1, characterized in that, The operation trace information is permanently stored in the sales switching contract information table, including the complete attributes of the finished product, the source / target contract hash value, the source / target contract number, the source / target unit price and total price, the operator, the operation address, and the operation time, so as to realize full traceability of the operation.

6. The method according to claim 1, characterized in that, The data update is a fully automated batch operation, eliminating the need for manual modification of each table and field. The unit price and total price of the finished product are automatically calculated, thus preventing errors from manual data entry.

7. The method according to claim 1, characterized in that, Implemented based on database stored procedures, it can be seamlessly integrated into existing ERP / MES systems of industrial enterprises and is compatible with all types of futures and spot contracts.

8. A system for one-click switching of industrial finished products across contracts, implementing the method of any one of claims 1-7, characterized in that, include: The module includes: parameter input module, parameter validation module, atomic transaction control module, target contract information extraction module, operation logging module, data synchronization and update module, and exception handling module. (1) Parameter input module: used to standardize the input operation type, finished product batch number, source / target contract hash value, and operator information; (2) Parameter validation module: used to perform full-dimensional validity validation of input parameters and intercept invalid operations; (3) Atomic transaction control module: used to start, commit or roll back transactions to ensure data operation consistency; (4) Target Contract Information Extraction Module: Used to automatically extract the target contract number and unit price based on the target contract hash value; (5) Operation Traceability Module: Used to automatically write all switching information into the sales switching contract information table to achieve full traceability; (6) Data synchronization and update module: used to automatically update the contract-related information and accounting data in the production process quality inspection record table; (7) Exception handling module: used to trigger transaction rollback and return specific error information when operation fails.