Unified management method and system for multi-system data access

By parsing data access requests from multiple systems and using state transition logic and batch sequence numbers to determine conflicts between offline backfill data and real-time data, unified governance of data access was achieved. This solved the inventory chaos problem caused by data conflicts in logistics and warehousing management, and improved the accuracy of data access and the reliability of warehouse operations.

CN123157808APending Publication Date: 2026-11-24GUANGZHOU ZHONGDE INFORMATION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611410765.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-11
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing multi-system data access technologies cannot effectively identify conflicts between offline batch backfill data and real-time data in logistics and warehousing management, leading to reversed record status of business objects, resulting in chaotic inventory data and sorting errors.

Method used

By acquiring data access requests from multiple systems, parsing device type identifiers, upload mode identifiers, and business object identifiers, distinguishing between offline backfill data and real-time data, using preset status flow logic and batch serial numbers to determine conflicts, and executing differentiated data writing to update status records.

Benefits of technology

Accurately identify concurrent conflicts, prevent old data from overwriting new data, ensure the accuracy and time sequence consistency of business object status records, avoid sorting errors and delivery delays caused by incorrect inventory status, and improve the governance level of data access from multiple heterogeneous systems and the reliability of warehouse operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123157808A_ABST
    Figure CN123157808A_ABST
Patent Text Reader

Abstract

This application discloses a unified governance method and system for multi-system data access, relating to the field of data processing technology. Specifically, this invention can accurately identify concurrent access conflicts between offline backfill data and real-time data, effectively preventing state regression caused by old data overwriting new data. Through differentiated write strategies and version control, it ensures the accuracy and temporal consistency of business object state records, avoiding sorting errors and shipping delays caused by incorrect inventory status, and significantly improving the governance level and reliability of warehouse operations when accessing data from multiple heterogeneous systems.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing technology, and in particular to a unified governance method and system for data access across multiple systems. Background Technology

[0002] In modern logistics and warehousing management, warehouses typically deploy various data acquisition devices to ensure sorting efficiency. Operators use handheld barcode scanners to perform offline scanning in signal blind spots and temporarily store the scan records in local storage, uploading them in batches once the network is restored.

[0003] Meanwhile, the fixed gantry barcode scanner installed at the entrance of the sorting line scans the passing packages in real time and uploads the data instantly. At the moment the operator connects to the network to upload offline data, if the same batch of packages happens to pass through the gantry, the server will receive two data streams for the same business object. One stream is historical status data with the old timestamp uploaded by the handheld barcode scanner, and the other stream is real-time status data with the new timestamp uploaded by the gantry.

[0004] Existing multi-system access technologies typically update data only according to the order in which it arrives at the server or simply based on the timestamp within the data packet, lacking the identification of data upload mode attributes and the verification of business logic status. This approach easily leads to old historical data incorrectly overwriting the latest real-time data, causing the record status of business objects to regress in order, resulting in inventory data chaos, which in turn leads to errors in subsequent picking instructions and severely disrupts the warehouse operation rhythm. Summary of the Invention

[0005] In view of the aforementioned problems, this application is hereby filed.

[0006] Therefore, this application provides a unified governance method and system for multi-system data access, which can solve the problems of business status regression and inventory record errors caused by conflicts between offline batch backfill data and real-time data.

[0007] To solve the above-mentioned technical problems, this application provides the following technical solution: Firstly, this application provides a unified governance method for multi-system data access, including: acquiring multi-system data access requests for the same business object; parsing the multi-system data access requests to obtain a device type identifier, an upload mode identifier, and a business object identifier; determining the data source type of the corresponding data access request based on the upload mode identifier; if the data source type is a batch backfill mode, marking the corresponding data access request as offline backfill data and extracting the batch sequence number carried by the offline backfill data; responding to the concurrent arrival of the offline backfill data and real-time data for the same business object identifier, performing conflict determination based on the device type identifier, a preset state transition logic, and the batch sequence number to obtain a governance determination result; and performing differentiated data writing based on the governance determination result to update the state record corresponding to the business object identifier.

[0008] Preferably, in response to the concurrent arrival of offline backfill data and real-time data for the same business object identifier, conflict determination is performed based on the device type identifier, preset state transition logic, and batch serial number to obtain a governance determination result. This includes: distinguishing between first source data and second source data based on the device type identifier, wherein the first source data is the offline backfill data from a handheld terminal with the first device type identifier, and the second source data is the real-time data from a fixed scanning terminal with the second device type identifier; obtaining the first business state corresponding to the first source data and the second business state corresponding to the second source data; determining the first process stage value corresponding to the first business state and the second process stage value corresponding to the second business state based on the preset state transition logic; if the first process stage value is less than the second process stage value, and the scanning time indicated by the batch serial number is earlier than the upload time of the second source data, the governance determination result is determined to be a state regression conflict, and the second source data is determined to be valid data; if the first process stage value is greater than or equal to the second process stage value, the governance determination result is determined to be a state non-regression, and the first source data is determined to be valid data.

[0009] Preferably, determining the first process stage value corresponding to the first business state and the second process stage value corresponding to the second business state based on the preset state transition logic includes: calling a preset state stage mapping table, which stores the correspondence between business states and process stage values; matching the first business state with the state stage mapping table to obtain the first process stage value matching the first business state; matching the second business state with the state stage mapping table to obtain the second process stage value matching the second business state; the preset state transition logic indicates that the magnitude relationship between the first process stage value and the second process stage value is positively correlated with the order of business processes.

[0010] Preferably, after determining that the governance judgment result is a state regression conflict and determining the second source data as valid data, the method further includes: acquiring a location confirmation signal collected by the fixed barcode scanning terminal, the location confirmation signal being generated by a photoelectric sensor located in the area where the fixed barcode scanning terminal is located when it detects the passing of the business object; if the location confirmation signal is not acquired, sending a first verification request to the display terminal associated with the fixed barcode scanning terminal, the first verification request being used to prompt the operator to confirm whether the business object is located in the scanning area of ​​the fixed barcode scanning terminal; receiving a first confirmation feedback on the first verification request, if the first confirmation feedback is a negative confirmation, then correcting the governance judgment result to require manual review, and marking the first source data and the second source data as data to be reviewed.

[0011] Preferably, the step of performing differentiated data writing based on the governance determination result to update the status record corresponding to the business object identifier includes: in response to the governance determination result being a status regression conflict, obtaining the current version number of the business object identifier in the database and the expected baseline version number carried by the target write data; if the current version number is consistent with the expected baseline version number, updating the status record based on the target write data, and incrementing the current version number to obtain the updated version number; if the current version number is inconsistent with the expected baseline version number, abandoning the writing of the target write data, and writing the target write data into a conflict archive table, the conflict archive table being used to store the original data determined to be in conflict and the cause of the conflict.

[0012] Preferably, in response to the concurrent arrival of offline backfill data and real-time data for the same business object identifier, after performing conflict determination based on the device type identifier, preset state transition logic, and batch sequence number to obtain a governance determination result, the method further includes: in response to the governance determination result being based on the real-time data, generating a state synchronization push instruction, the state synchronization push instruction containing the latest state corresponding to the business object identifier and the real-time data; sending the state synchronization push instruction to the handheld terminal that sent the offline backfill data; receiving a synchronization response signal from the handheld terminal for the state synchronization push instruction; if the synchronization response signal is not received within a preset time period, adding the state synchronization push instruction to the retransmission queue until the synchronization response signal is received or the number of retransmissions reaches a preset number.

[0013] Preferably, after parsing the multi-system data access request to obtain the device type identifier, upload mode identifier, and business object identifier, the method further includes: identifying the device type identifier as the handheld terminal; in response to detecting that the handheld terminal has established a network connection with the server, sending a buffer status query request to the handheld terminal; receiving buffer description data returned by the handheld terminal in response to the buffer status query request, the buffer description data including the number of data records to be uploaded, the earliest record time, and the latest record time; comparing the scan time of the subsequently received data access request from the handheld terminal with the buffer description data, and if the scan time exceeds the time range formed by the earliest record time and the latest record time, marking the corresponding data access request as time-abnormal data and sending a time calibration request to the handheld terminal.

[0014] Preferably, the method further includes: maintaining a receive sequence window for the handheld terminal, the receive sequence window being used to record received batch sequence numbers; in response to receiving a new data access request from the handheld terminal, extracting a new batch sequence number carried in the new data access request; determining whether the new batch sequence number exists in the receive sequence window; if the new batch sequence number already exists in the receive sequence window, determining that the new data access request is duplicate data, and sending a duplicate confirmation response to the handheld terminal; if the new batch sequence number does not exist in the receive sequence window, adding the new batch sequence number to the receive sequence window, and checking whether there are missing batch sequence numbers in the receive sequence window; if there are missing batch sequence numbers, sending a missing data retransmission request to the handheld terminal.

[0015] Preferably, after abandoning the writing of the target write data and writing the target write data to the conflict archive table if the current version number is inconsistent with the expected baseline version number, the method further includes: generating a manual intervention locking instruction in response to the number of conflict data records for the same business object identifier in the conflict archive table reaching a preset number; sending the manual intervention locking instruction to the management terminal, the manual intervention locking instruction including the business object identifier and a summary of the conflict data record; receiving manual confirmation data input through the management terminal, and updating the status record based on the manual confirmation data; before receiving the manual confirmation data, locking the write permission corresponding to the business object identifier and rejecting any automatic status update requests for the business object identifier.

[0016] Secondly, this application also provides a unified governance system for multi-system data access, including: an access request acquisition module, a data source identification module, a conflict determination and governance module, and a differentiated write execution module; the access request acquisition module is used to acquire multi-system data access requests for the same business object, and parse the multi-system data access requests to obtain device type identifier, upload mode identifier, and business object identifier; the data source identification module is used to determine the data source type of the corresponding data access request based on the upload mode identifier. If the data source type is a batch backfill mode, the corresponding data access request is marked as offline backfill data, and the batch sequence number carried by the offline backfill data is extracted; the conflict determination and governance module is used to respond to the concurrent arrival of the offline backfill data and real-time data for the same business object identifier, and perform conflict determination according to the device type identifier, preset state transition logic, and the batch sequence number to obtain a governance determination result; the differentiated write execution module is used to perform differentiated data writing based on the governance determination result to update the state record corresponding to the business object identifier.

[0017] Implementing this application will have the following beneficial effects: This application provides a unified governance method and system for multi-system data access. This invention can accurately identify concurrent access conflicts between offline backfill data and real-time data, effectively preventing state regression caused by old data overwriting new data. Through differentiated write strategies and version control, it ensures the accuracy and temporal consistency of business object state records, avoiding sorting errors and shipping delays caused by incorrect inventory status, and significantly improving the governance level and warehouse operation reliability when accessing data from multiple heterogeneous systems. Attached Figure Description

[0018] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 This is a flowchart of the unified governance method for multi-system data access involved in this application; Figure 2 This is a schematic diagram of the data access and source identification process of the unified governance method for multi-system data access involved in this application; Figure 3 This is a flowchart illustrating the concurrent conflict determination and state phase mapping of the unified governance method for multi-system data access involved in this application. Figure 4 This is a flowchart illustrating the differentiated data writing and version control process of the unified governance method for multi-system data access involved in this application; Figure 5 This is a flowchart illustrating the status synchronization push and retransmission mechanism of the unified governance method for multi-system data access involved in this application. Detailed Implementation

[0020] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0021] Example 1, referring to Figures 1-5 This is the first embodiment of the present application, which provides a unified governance method for multi-system data access, including: This application provides a method that can effectively solve the problems mentioned above. The following will describe in detail how to achieve the unified governance method for multi-system data access in conjunction with several embodiments. Figure 1 A flowchart illustrating a unified governance approach for multi-system data access is provided, including: Step S1: Obtain data access requests from multiple systems for the same business object, and parse the data access requests from multiple systems to obtain device type identifier, upload mode identifier, and business object identifier.

[0022] It should be noted that in warehousing operations, the state changes of the same business object may originate from multiple heterogeneous data nodes, such as handheld terminals, fixed barcode scanning terminals, and upper-level business management systems. The message format, upload channel, and triggering time of the data access requests generated by each node are different. Therefore, it is necessary to complete the unified acquisition and unified parsing of data access requests from multiple systems before the data enters the governance process, so as to provide structured input parameters for subsequent data source identification, conflict determination, and differentiated writing.

[0023] Specifically, the process of obtaining data access requests from multiple systems for the same business object includes: establishing a message queue channel between each data access node and the governance end; writing the original access packets generated by each data access node into the message queue in the order of arrival; reading the original access packets sequentially from the head of the message queue; performing deserialization on the original access packets to restore them to structured data objects; performing field-level extraction on the structured data objects to obtain the values ​​of the device type identifier field, upload mode identifier field, business object identifier field, business status field, and scan time field; and writing the above field values ​​into the data access request object in key-value pair format to complete the parsing of the data access requests from multiple systems.

[0024] In practical applications, the device type identifier uses a two-digit code, with the first device type identifier corresponding to a handheld terminal and the second device type identifier corresponding to a fixed barcode scanning terminal; the upload mode identifier uses a single-byte code, with the batch backfill mode corresponding to the code value 01 and the instant upload mode corresponding to the code value 02; the business object identifier uses a unique code of package barcode, pallet number, or storage location number; the encoding rules are pre-configured on the governance end and each data access node to ensure that the same business object carries the same business object identifier in the data access requests generated by each node.

[0025] Furthermore, after the three identifiers obtained from parsing are written into the data access request object as independent fields, subsequent steps only need to make judgments based on the field values ​​carried in the data access request object, without needing to access the original message again. This reduces the computational overhead caused by repeated parsing and ensures the consistency of the same data access request throughout the entire governance process.

[0026] Step S2: Determine the data source type of the corresponding data access request based on the upload mode identifier. If the data source type is batch backfill mode, mark the corresponding data access request as offline backfill data and extract the batch sequence number carried by the offline backfill data.

[0027] It is understandable that handheld terminals temporarily store records after offline scanning in signal dead zones and upload them in batches when the network is restored, while fixed barcode scanning terminals upload individual records in real time with each scanning action. The two types of upload channels have distinguishable codes in their upload mode identifiers. Therefore, the data source type of the data access request can be determined based on the upload mode identifier, thus providing a preliminary classification basis for determining whether offline data backfilling and real-time data conflict need to be performed.

[0028] In this embodiment, the process of determining the data source type based on the upload mode identifier includes: reading the upload mode identifier field in the data access request object; comparing the value of the upload mode identifier field with a preset upload mode enumeration table item by item, wherein the upload mode enumeration table stores the corresponding encoding values ​​for batch backfilling mode and instant upload mode; when the comparison result matches the encoding value corresponding to the batch backfilling mode, writing the data category label field into the data access request object, setting the value of the data category label field to a preset enumeration value indicating offline backfilling data, and simultaneously extracting the batch sequence number field from the data access request object; when the comparison result matches the encoding value corresponding to the instant upload mode, setting the value of the data category label field to a preset enumeration value indicating real-time data, where the batch sequence number does not need to be extracted.

[0029] Furthermore, the batch sequence number is generated by the handheld terminal during the local temporary storage phase. The specific generation and binding method is as follows: each time the handheld terminal performs an offline scan, it assigns a batch sequence number to that scan record using a locally maintained auto-incrementing counter. The batch sequence number increments continuously according to the order in which the scans occurred. Simultaneously, the handheld terminal writes the scan time of the scan action into the scan time field of that scan record, thus binding the batch sequence number and scan time one-to-one in the local temporary storage record. During batch uploads after network recovery, the handheld terminal encapsulates each temporary record along with its bound batch sequence number and scan time into the corresponding data access request for upload. Based on this binding relationship, the governance end can read the batch sequence number carried by any offline backfill data to simultaneously obtain the scan order and scan time of that record.

[0030] The batch serial number auto-increment counter is initialized to 0 when the handheld terminal leaves the factory, and increments by one with each offline scan. The upper limit of the counter is set according to the maximum number of scans in a single offline operation, and its preferred setting range is 65535 to 4294967295. In the specific operation of this application, the remaining capacity of the handheld terminal storage medium is obtained. If the remaining capacity is greater than the preset capacity threshold, the counter is stored as a 32-bit unsigned integer. If the remaining capacity is less than or equal to the preset capacity threshold, the counter is stored as a 16-bit unsigned integer and the operator is prompted to send back data when the upper limit is reached.

[0031] For example, when a handheld terminal scans ten packages continuously in a signal dead zone and uploads them all at once after the network is restored, the upload mode identifier carried by each of the ten data access requests is the same code indicating batch backfilling. Moreover, the batch sequence numbers carried by the ten data access requests are sequentially increasing integer sequences. The batch sequence number of each record is bound to its scanning time. Based on this, the governance process can identify the ten data access requests as a whole as offline backfilling data of the same batch, and restore the order of each record in the offline scanning stage according to the batch sequence number and its bound scanning time.

[0032] Step S3: In response to the concurrent arrival of offline backfill data and real-time data for the same business object identifier, perform conflict determination based on the device type identifier, preset state transition logic and batch serial number to obtain the governance determination result.

[0033] It should be noted that step S3 is the core link in the entire multi-system data access unified governance process. Based on the data acquisition and data source marking completed in steps S1 and S2, it performs conflict determination for concurrent scenarios where offline backfill data and real-time data appear simultaneously for the same business object identifier, thereby determining which data should be used as valid data to update the status record of the business object.

[0034] Meanwhile, the judgment elements used in step S3 include three categories: device type identifier, which is used to distinguish whether the data comes from offline backfill data from a handheld terminal or real-time data from a fixed scanning terminal; preset state transition logic, which is used to map the business state carried by each data source to comparable process stage values; and batch serial number and its associated scanning time, which are used to provide the original scanning order and scanning time information of the offline backfill data. The three categories of elements work together to make the judgment, avoiding the state regression problem that may be caused by simply relying on the data arrival order or simply relying on the internal timestamp of the data.

[0035] The governance judgment results obtained in step S3 include three categories: state regression conflict, state non-regression, and need for manual review. The governance judgment results are written into the judgment result field of the data access request object for direct reading by the differentiated writing process. When the judgment result is a state regression conflict, it indicates that the business state carried by the offline backfill data is lagging behind the business state carried by the real-time data. When the judgment result is a state non-regression, it indicates that the two types of data are in a normal progress relationship. When the judgment result is need for manual review, it indicates that the judgment conclusion needs to be reviewed and confirmed.

[0036] In this embodiment of the application, step S3, in response to the concurrent arrival of offline backfill data and real-time data for the same business object identifier, performs conflict determination based on the device type identifier, preset state transition logic, and batch serial number to obtain a governance determination result, and may further include the following steps: Step S3.1: Distinguish between first source data and second source data according to the device type identifier, wherein the first source data is the offline backfill data from the handheld terminal with the first device type identifier, and the second source data is the real-time data from the fixed scanning terminal with the second device type identifier; Step S3.2: Obtain the first service status corresponding to the first source data and the second service status corresponding to the second source data; Step S3.3: Determine the first process stage value corresponding to the first business state and the second process stage value corresponding to the second business state based on the preset state transition logic; Step S3.4: If the value of the first process stage is less than the value of the second process stage, and the scanning time indicated by the batch sequence number is earlier than the upload time of the second source data, determine that the governance judgment result is a state regression conflict, and determine the second source data as valid data; Step S3.5: If the value of the first process stage is greater than or equal to the value of the second process stage, determine that the governance judgment result is a non-regression state, and determine the first source data as valid data.

[0037] It should be noted that after data acquisition and offline backfilling marking are completed in steps S1 and S2, for the same business object identifier, there may be offline backfilling data from handheld terminals and real-time data from fixed scanning terminals at the same time. The business status carried by the two types of data may have different order. If the status record is written in the order of arrival without distinction, the old status may overwrite the new status. Therefore, it is necessary to perform source differentiation, status extraction, stage value mapping and numerical comparison in sequence to finally obtain a clear governance judgment result.

[0038] Specifically, before step S3.1, the scope of concurrent arrivals needs to be defined: for the same business object identifier, when the difference between the arrival time of offline backfill data and the arrival time of real-time data is less than the preset concurrent window duration, it is determined that the two data streams constitute concurrent arrivals. The preset concurrent window duration is obtained by statistically analyzing the cycle time of the sorting line and the message interval of batch uploads from the handheld terminal, with a preferred setting range of 30 to 120 seconds. In the specific operation of this application, the real-time cycle time parameters of the sorting line are obtained. If the cycle time is less than 2 seconds per item, the preset concurrent window duration is set to 60 seconds; if the cycle time is greater than or equal to 2 seconds per item, the preset concurrent window duration is set to 90 seconds.

[0039] Furthermore, in step S3.1, the process of distinguishing between first source data and second source data based on device type identifier includes: reading the device type identifier field from each concurrently arriving data access request; matching the value of the device type identifier field with a preset device type enumeration table, wherein the device type enumeration table stores the first device type identifier corresponding to the handheld terminal and the second device type identifier corresponding to the fixed barcode scanning terminal; when the matching result indicates that the device type identifier field is the first device type identifier, the corresponding data access request is assigned to the first source data set; when the matching result indicates that the device type identifier field is the second device type identifier, the corresponding data access request is assigned to the second source data set.

[0040] Further, in step S3.2, the process of obtaining the first business status corresponding to the first source data and the second business status corresponding to the second source data includes: extracting a business status field from the first source data set and determining the value of the extracted business status field as the first business status; extracting a business status field from the second source data set and determining the value of the extracted business status field as the second business status; the business status field is written by each data access node according to business rules during scanning, and is used to indicate the business stage that the business object is in at the time of scanning.

[0041] Understandably, in step S3.4, if the value of the first process stage is less than the value of the second process stage, it indicates that the business state carried by the offline backfill data lags behind the business state carried by the real-time data in the business process defined by the preset state transition logic. At the same time, if the scanning time bound to the batch sequence number is earlier than the upload time of the second source data, it indicates that the offline backfill data is indeed a historical record that was scanned first and then uploaded. When both conditions are met, it can be confirmed that the offline backfill data is old state data. Based on this, the governance judgment result is determined to be a state regression conflict, and the second source data is determined to be valid data to prevent the old state from overwriting the new state.

[0042] Furthermore, in step S3.5, if the value of the first process stage is greater than or equal to the value of the second process stage, it indicates that the business state carried by the offline backfill data is not behind the business state carried by the real-time data in the business process defined by the preset state transition logic, and there is no state regression relationship between the two types of data. Based on this, the governance judgment result is determined to be non-regression, and the first source data is determined to be valid data in order to retain the later state information in the business process.

[0043] For example, a package is scanned as sorted at 10:00 AM on a handheld terminal and uploaded in batches at 2:00 PM after the network is restored. The same package is scanned as outbound at 1:50 PM by a fixed barcode scanner and uploaded immediately. The arrival time difference between the two data streams is ten minutes, which falls within the preset concurrent window duration, constituting concurrent arrival. The first business status corresponding to the offline backfill data is sorted, and the second business status corresponding to the real-time data is outbound. The status stage mapping table maps sorted to the third stage value and outbound to the fourth stage value. The first process stage value is less than the second process stage value, and the scanning time bound to the batch sequence number is earlier than the upload time of the real-time data. Therefore, the governance judgment result is determined to be a status backtracking conflict, and the real-time data is determined to be valid data.

[0044] Preferably, step S3.3, which determines the first process stage value corresponding to the first business state and the second process stage value corresponding to the second business state based on the preset state transition logic, may further include the following steps: Step S3.31: Call the preset state stage mapping table, which stores the correspondence between business states and process stage values; Step S3.32: Match the first business state with the state stage mapping table to obtain the first process stage value that matches the first business state; Step S3.33: Match the second business state with the state stage mapping table to obtain the second process stage value that matches the second business state; Step S3.34: The preset state transition logic indicates that the magnitude relationship between the first process stage value and the second process stage value is positively correlated with the order of the business processes.

[0045] It should be pointed out that business status usually exists in the form of text enumeration in the original data access request. Different data access nodes may use different status naming methods. If the text enumeration is directly compared, it is impossible to draw a conclusion about the sequence of business processes. Mapping business status to process stage values ​​with monotonically increasing properties is the premise for making numerical comparisons between the two types of data possible, and it is also the basis for the entire conflict determination logic to be valid.

[0046] In this embodiment of the application, step S3.31, which calls the preset state stage mapping table, includes: during the governance process startup phase, reading the state stage mapping table file from the persistent storage medium and loading the contents of the state stage mapping table file into a hash lookup structure in memory; the state stage mapping table file consists of several mapping records, each mapping record containing a business state name field and a process stage value field, the business state name field storing a state text enumeration, and the process stage value field storing a non-negative integer uniquely corresponding to the state text enumeration; after loading, using the business state name field as the hash lookup key and the process stage value field as the hash lookup value, a memory mapping structure that can be directly queried by subsequent steps is constructed.

[0047] Specifically, step S3.32, which matches the first business state with the state stage mapping table, includes: using the text value of the first business state as the lookup key, performing a key-value lookup in the memory mapping structure; when the lookup is successful, reading the value of the process stage value field corresponding to the hash entry and determining it as the first process stage value that matches the first business state; when the lookup fails, generating a matching failure message and writing the first business state along with the data access request object into the exception handling queue, waiting for manual processing or supplementing the mapping record before re-executing the matching.

[0048] Furthermore, step S3.33, which matches the second business state with the state stage mapping table, has the same execution logic as the matching process in step S3.32. The only difference is that the search key is replaced by the text value of the first business state, and the search result is replaced by the second process stage value that matches the second business state. When the match is successful, the second process stage value is returned directly. When the match fails, a matching failure message is generated and the second source data is written to the exception handling queue.

[0049] Meanwhile, the positive correlation defined in step S3.34 means that in the business process defined by the preset state transition logic, the later the business process is, the larger the process stage value mapped by the corresponding business state; the earlier the business process is, the smaller the process stage value mapped by the corresponding business state; states with the same order of business processes correspond to the same process stage value. This positive correlation ensures that the numerical relationship between the first process stage value and the second process stage value can directly reflect the sequential relationship of the two types of data in the business process, providing a reliable numerical basis for the determination of steps S3.4 and S3.5.

[0050] Optionally, the types of business states and the corresponding process stage values ​​recorded in the state stage mapping table can be configured according to the number of business process links and state naming specifications in a specific business scenario. This embodiment does not limit the specific values. When the business process is adjusted, only the mapping records in the state stage mapping table need to be updated, without modifying the execution logic of conflict determination, thereby ensuring the scalability of the governance method in business process change scenarios.

[0051] For example, in the warehouse outbound business process, the preset status stage mapping table can map the pending sorting status to stage value 1, the pending outbound status to stage value 2, the sorted status to stage value 3, the outbound status to stage value 4, and the shipped status to stage value 5. When the first business status is sorted and the second business status is outbound, the first process stage value is 3 and the second process stage value is 4. The size relationship between the two is completely consistent with the business process sequence of sorted before outbound. Therefore, it can be determined that the status carried by the offline backfill data is lagging behind the status carried by the real-time data.

[0052] The construction and matching process of the state phase mapping table can also be achieved through the following steps: A1. Obtain the business process definition document. Extract the status text enumeration corresponding to each business step in the order of the business process from the business process definition document, and proceed to step A2.

[0053] A2. Assign process stage values ​​starting from 1 to each state text enumeration according to the extraction order. Write the state text enumeration and the assigned process stage values ​​into the mapping record in order to generate an initial mapping record set. Proceed to step A3.

[0054] A3. Determine if there is a mapping record in the initial mapping record set with a duplicate value for the business status name field. If it exists, proceed to step A4; otherwise, proceed to step A5.

[0055] A4. Merge mapping records with duplicate values ​​in the Business Status Name field into one mapping record, keep the one with the smaller value in the Process Stage Value field, delete the remaining duplicate records, and obtain the deduplicated mapping record set. Proceed to step A5.

[0056] A5 sorts the deduplicated mapping record set in ascending order by process stage value, writes it to the status stage mapping table file, persists the status stage mapping table file to the storage medium, and loads it into the memory hash lookup structure, using the business status name as the key and the process stage value as the value, and ends the process.

[0057] In some embodiments, after step S3.4 determines that the governance determination result is a state regression conflict and determines the second source data as valid data, the method may further include the following steps: Step S3.41: Obtain the location confirmation signal collected by the fixed scanning terminal. The location confirmation signal is generated by the photoelectric sensor located in the area where the fixed scanning terminal is located when it detects that the business object has passed by. Step S3.42: If the location confirmation signal is not obtained, a first verification request is sent to the display terminal associated with the fixed scanning terminal. The first verification request is used to prompt the operator to confirm whether the business object is located in the scanning area of ​​the fixed scanning terminal. Step S3.43: Receive the first confirmation feedback for the first verification request. If the first confirmation feedback is a negative confirmation, then the governance judgment result is corrected to require manual review, and the first source data and the second source data are marked as data to be reviewed.

[0058] Understandably, when the governance judgment result is a state regression conflict and the second source data is determined to be valid data, the judgment conclusion depends on the fact that the fixed scanning terminal has indeed scanned the corresponding business object. The photoelectric sensor can only sense that an object has passed by, but cannot directly indicate the identity of the object that has passed by. Therefore, it is necessary to first establish a binding relationship between the location confirmation signal and the business object identifier, and then perform physical-level auxiliary verification of the authenticity of the scanning action based on the bound signal.

[0059] Specifically, the generation and binding method of the location confirmation signal is as follows: when the photoelectric sensor detects an object passing by, it generates a pulse trigger signal and reports it to the fixed barcode scanning terminal; the fixed barcode scanning terminal aligns the photoelectric trigger time with its barcode reading action. When the difference between the barcode reading time and the photoelectric trigger time is less than the preset binding window duration, the fixed barcode scanning terminal binds and encapsulates the location confirmation signal corresponding to the photoelectric trigger with the read business object identifier and reports it together. The preset binding window duration is obtained based on the typical delay statistics of barcode reading and photoelectric triggering by the gantry barcode scanner, and its preferred setting range is 100 milliseconds to 500 milliseconds. In the specific operation of this application, the reading rate parameter of the fixed barcode scanning terminal is obtained. If the reading rate is higher than 3 items per second, the preset binding window duration is set to 200 milliseconds; if the reading rate is lower than or equal to 3 items per second, the preset binding window duration is set to 400 milliseconds.

[0060] Furthermore, in step S3.41, the process of obtaining the location confirmation signal collected by the fixed scanning terminal includes: after the governance judgment result is a state regression conflict, based on the upload time of the second source data, querying the location confirmation signal records reported by the fixed scanning terminal within the preset query window before and after that time and bound to the business object identifier; when the query is successful, it is confirmed that the scanning action of the fixed scanning terminal has physical event support, and the original governance judgment result is maintained; when the query is unsuccessful, the process proceeds to the first verification process in step S3.42.

[0061] For example, in step S3.42, if no location confirmation signal is obtained, it means that the fixed barcode scanning terminal lacks the object generated by the photoelectric sensor to be recorded at the corresponding time, and the authenticity of the scanning action cannot be automatically confirmed by physical signals; at this time, a first verification request is sent to the display terminal associated with the fixed barcode scanning terminal. The payload of the first verification request includes the business object identifier, the upload time of the second source data, and the description of the scanning area; after receiving the first verification request, the display terminal pops up a verification prompt box on its interface, prompting the operator to confirm whether the business object is located in the scanning area of ​​the fixed barcode scanning terminal.

[0062] It should be noted that in step S3.43, the process of receiving the first confirmation feedback for the first verification request includes: the display terminal sending back the confirmation or denial result entered by the operator to the governance terminal in the form of a feedback message; when the first confirmation feedback is a positive confirmation, the original governance judgment result is maintained; when the first confirmation feedback is a negative confirmation, it indicates that the operator confirmed that the business object did not actually pass through the scanning area of ​​the fixed scanning terminal. At this time, the governance judgment result is corrected to require manual review, and both the first source data and the second source data are marked as data to be reviewed. At the same time, the business object identifier is written into the manual review task list, and the reviewer is asked to give the final status conclusion based on the original scanning record and business rules.

[0063] Step S4: Perform differentiated data writing based on the governance judgment result to update the status record corresponding to the business object identifier.

[0064] It should be noted that step S4 is executed after the governance judgment result is obtained in step S3. Its purpose is to adopt different writing strategies based on different governance judgment conclusions, rather than writing all data access requests uniformly, thereby avoiding the chaos of state records caused by old states overwriting new states or repeated writing.

[0065] On the other hand, the specific meaning of differentiated data writing is as follows: when the governance judgment result is that the state is not backward, the writing action directly updates the state record with valid data; when the governance judgment result is that the state is backward and conflicting, the writing action needs to be combined with the version number comparison result to decide whether to execute; when the governance judgment result is that manual review is required, the two paths of data to be reviewed do not participate in the writing and are transferred to manual tasks; the three writing paths have obvious differences in version number verification, writing conditions and version number increment logic, thus constituting differentiated writing.

[0066] In this application, after step S4 is completed, the status record corresponding to the business object identifier is updated to the business status carried by the valid data, and the version number attached to the status record is synchronously incremented to provide a verification basis for possible concurrent write requests in the future.

[0067] In some preferred embodiments, step S4, which involves writing differentiated data based on the governance determination result to update the status record corresponding to the business object identifier, may further include the following steps: Step S4.1: In response to the governance determination result being a state rollback conflict, obtain the current version number of the business object identifier in the database and the expected base version number carried by the target written data; Step S4.2: If the current version number is consistent with the expected baseline version number, update the status record based on the target write data, and increment the current version number to obtain the updated version number; Step S4.3: If the current version number is inconsistent with the expected baseline version number, abandon writing the target write data and write the target write data to the conflict archive table. The conflict archive table is used to store the original data that is determined to be conflicted and the reason for the conflict.

[0068] Understandably, when the governance decision is a state rollback conflict, although the second source data has been determined to be valid, the state record may have been updated by other write requests in a concurrent scenario. If version number verification is not performed and the data is written directly, the later write action may overwrite the earlier write action. By comparing the consistency between the current version number and the expected baseline version number, it can be ensured that the write action is based on the correct state baseline.

[0069] Specifically, in step S4.1, the process of obtaining the current version number of the business object identifier in the database includes: using the business object identifier as the query key, locating the corresponding status record row in the status record table of the database, reading the value of the version number field in the status record row, and determining the read value as the current version number; the process of obtaining the expected base version number carried by the target written data includes: reading the version number base field in the data access request object corresponding to the second source data, and determining the value of the version number base field as the expected base version number.

[0070] Furthermore, the expected baseline version number generation chain is as follows: After each successful scan, the fixed scanning terminal sends a version number query message to the governance end. The governance end reads the value of the version number field of the business object identifier in the status record table and sends it back. The fixed scanning terminal writes the returned value into the version number baseline field of the data access request object as the expected baseline version number. The version number is incremented by one each time the status record is successfully written, forming a closed loop of reading, comparing, writing, and incrementing. The expected baseline version number reflects the version baseline of the status record at the time the scanning action occurs.

[0071] Further, in step S4.2, if the current version number is consistent with the expected baseline version number, it means that during the period from when the fixed scanning terminal generates the data access request to when the governance end executes the write operation, the status record corresponding to the business object identifier has not been updated by other write requests. At this time, the process of updating the status record based on the target write data includes: replacing the value of the status field in the status record row with the second business status, replacing the value of the timestamp field in the status record row with the upload time of the second source data, incrementing the value of the version number field in the status record row by one to obtain the updated version number, and writing the updated version number back to the version number field of the status record row.

[0072] It should be noted that in step S4.3, if the current version number is inconsistent with the expected baseline version number, it means that after the fixed scanning terminal generates the data access request and before the governance terminal executes the write operation, the status record corresponding to the business object identifier has been updated by other write requests. At this time, the writing of the target write data is abandoned. The specific operation of abandoning the write operation includes: not modifying the status field, timestamp field, and version number field in the status record row; writing the target write data together with the complete content of the data access request object corresponding to the second source data into the conflict archive table; and writing an enumeration value indicating the version number inconsistency into the conflict reason field of the conflict archive table. The conflict archive table uses the business object identifier and the time of conflict as a composite primary key to store the original data and conflict reason that are judged to be in conflict one by one.

[0073] For example, the current version number of a package's status record in the database is 7, while the expected baseline version number carried by the fixed barcode scanning terminal when uploading real-time data is 6. The inconsistency indicates that after the real-time data is uploaded but before the write action is executed, the status record corresponding to the business object identifier has been updated by the write request with version number 7. Based on this, the governance process abandons writing the status carried by the real-time data and writes the real-time data along with its data access request object into the conflict archive table. The conflict reason field is recorded as the version number inconsistency, thereby ensuring the temporal consistency of the status records.

[0074] In this embodiment of the application, after step S4.3 of abandoning the writing of the target write data and writing the target write data to the conflict archive table, the method may further include the following steps: Step S4.31: In response to the number of conflicting data records for the same business object identifier in the conflict archive table reaching a preset number, a manual intervention locking instruction is generated; Step S4.32: Send the manual intervention locking instruction to the management terminal. The manual intervention locking instruction includes the business object identifier and the conflict data record summary. Step S4.33: Receive manual confirmation data input through the management terminal, and update the status record based on the manual confirmation data; Step S4.34: Before receiving the manual confirmation data, lock the write permission corresponding to the business object identifier and reject any automatic status update request for the business object identifier.

[0075] It should be noted that when the same business object identifier repeatedly appears in the conflict archive table, it indicates that there is a persistent temporal contradiction between the multiple data associated with the business object. If the automatic write logic continues to be relied upon, invalid writes or repeated status changes may occur repeatedly. At this time, it is necessary to introduce a manual intervention locking process, and the administrator shall give the final status conclusion based on the original scan records.

[0076] In this embodiment, the process of generating a manual intervention lock command in step S4.31 includes: using the business object identifier as a grouping key, performing group counting on the conflict data records in the conflict archive table to obtain the number of conflict data records corresponding to each business object identifier; comparing the number of conflict data records with a preset number; and generating a manual intervention lock command when the number of conflict data records is greater than or equal to the preset number. The preset number is obtained based on the conflict tolerance statistics of a single business object under normal operation, and its preferred setting range is 3 to 5 records. In the specific operation of this application, the flow timeliness requirement of the business object is obtained. If the timeliness requirement is same-day delivery, the preset number is set to 3 records; if the timeliness requirement is delivery the next day or later, the preset number is set to 5 records.

[0077] Furthermore, in step S4.32, the manual intervention locking instruction includes a business object identifier and a conflict data record summary. The conflict data record summary is obtained by concatenating the business status, upload time, and conflict cause of each conflict record in chronological order. The process of sending the manual intervention locking instruction to the management terminal includes: encapsulating the manual intervention locking instruction into a management message, sending the management message to the management terminal through the management message channel between the governance terminal and the management terminal; after receiving the management message, the management terminal displays the business object identifier and conflict data record summary on its interface, allowing administrators to view the complete time sequence of the conflict data records.

[0078] Specifically, in step S4.33, the process of receiving manually confirmed data input through the management terminal includes: the administrator determines the actual status of the business object in the business process based on the conflict data record summary, and submits the status confirmation result and confirmation basis through the input interface of the management terminal; the management terminal encapsulates the status confirmation result and confirmation basis into manually confirmed data and sends it back to the governance end; the governance end replaces the status field value in the status record line with the status confirmation result carried in the manually confirmed data, and writes the confirmation basis into the remarks field of the status record line, thus completing the status record update based on the manually confirmed data.

[0079] Furthermore, in step S4.34, before receiving manual confirmation data, the write permission corresponding to the business object identifier is locked; the specific locking operation includes: writing a lock enable value into the lock flag field of the status record line; when the automatic write request arrives, first reading the value of the lock flag field, when the lock flag field is the lock enable value, directly returning a write rejection response, without performing any update operation on the status field or version number field; until manual confirmation data is received, the value of the lock flag field is reset to the unlock value, and the automatic write channel is restored.

[0080] In some embodiments, after step S3 responds to the concurrent arrival of offline backfill data and real-time data for the same business object identifier, performs conflict determination based on the device type identifier, preset state transition logic, and batch serial number, and obtains the governance determination result, the method may further include the following steps: Step S5.1: In response to the governance determination result being based on the real-time data, a status synchronization push instruction is generated, wherein the status synchronization push instruction includes the latest status corresponding to the business object identifier and the real-time data; Step S5.2: Send the status synchronization push command to the handheld terminal that sent the offline backfill data; Step S5.3: Receive the synchronization response signal from the handheld terminal in response to the status synchronization push instruction. If the synchronization response signal is not received within a preset time period, add the status synchronization push instruction to the retransmission queue until the synchronization response signal is received or the number of retransmissions reaches a preset number.

[0081] It should be noted that when the governance judgment result is based on real-time data, the status record of the business object identifier on the server has been updated to the latest status carried by the real-time data; however, the local cache of the handheld terminal may still retain the old status recorded during the offline scanning stage. If the latest status of the server is not synchronized to the handheld terminal, the business judgment made by the handheld terminal based on the local cache may be inconsistent with the actual status of the server.

[0082] Specifically, in step S5.1, the process of generating a status synchronization push instruction includes: extracting the business object identifier and the second business status from the data access request object corresponding to the second source data; writing the business object identifier and the second business status into the payload field of the status synchronization push instruction according to a preset message format, and writing an enumeration value indicating status synchronization into the instruction type field of the status synchronization push instruction to generate a complete status synchronization push instruction.

[0083] Further, in step S5.2, the process of sending a status synchronization push instruction to the handheld terminal that sent the offline backfill data includes: determining the network address of the handheld terminal from which the offline backfill data comes based on the terminal number field in the data access request object corresponding to the offline backfill data; sending the status synchronization push instruction to the corresponding handheld terminal through the network address; after receiving the status synchronization push instruction, the handheld terminal parses the service object identifier and the latest status in the payload field, replaces the status record corresponding to the service object identifier in the local cache with the latest status, and returns a synchronization response signal to the governance end.

[0084] It is understandable that in step S5.3, the process of receiving the synchronization response signal and handling the non-response situation includes: starting a timer when the state synchronization push command is sent and listening for the synchronization response signal returned by the handheld terminal within a preset time period; when the synchronization response signal is received within the preset time period, confirming that the state synchronization is complete and ending the current synchronization process; when no synchronization response signal is received within the preset time period, adding the state synchronization push command to the retransmission queue, and having the retransmission queue resend the command sequentially according to the preset retransmission interval until a synchronization response signal is received or the number of retransmissions reaches the preset number; when the number of retransmissions reaches the preset number and no synchronization response signal is received, writing the service object identifier into the synchronization failure record and waiting for the handheld terminal to re-trigger state synchronization when it establishes a network connection next time.

[0085] The preset duration is obtained based on the network recovery cycle and message round-trip delay statistics of the handheld terminal, and its preferred setting range is 10 to 30 seconds; the preferred setting range for the preset retransmission number is 3 to 5 times; and the preferred setting range for the preset retransmission interval is 5 to 15 seconds. In the specific operation of this application, the historical network connection records of the handheld terminal are obtained. If the network recovery cycle fluctuates more than 60 seconds, the preset duration is set to 30 seconds and the preset retransmission number is set to 5 times. If the network recovery cycle fluctuates less than or equal to 60 seconds, the preset duration is set to 10 seconds and the preset retransmission number is set to 3 times.

[0086] For example, if a handheld terminal completes an offline scan of a package and uploads the data in batches in a signal dead zone, the governance process determines that real-time data is the standard and then sends a status synchronization push instruction to the handheld terminal. If the handheld terminal does not return a synchronization response signal within a preset time period due to re-entering the signal dead zone, the governance process adds the instruction to the retransmission queue. After the handheld terminal restores its network connection, the instruction is retransmitted from the retransmission queue until the handheld terminal confirms that its local cache has been updated to the latest status and returns a synchronization response signal.

[0087] In some preferred embodiments, after obtaining multiple system data access requests for the same business object in step S1, and parsing the multiple system data access requests to obtain the device type identifier, upload mode identifier, and business object identifier, the method may further include the following steps: Step S6.1: Identify the device type identifier as the handheld terminal; Step S6.2: In response to detecting that the handheld terminal has established a network connection with the server, a buffer status query request is sent to the handheld terminal; Step S6.3: Receive the buffer description data returned by the handheld terminal in response to the buffer status query request. The buffer description data includes the number of data records to be uploaded, the earliest recording time, and the latest recording time. Step S6.4: Compare the scan time of the data access request subsequently received from the handheld terminal with the buffer description data. If the scan time exceeds the time range formed by the earliest record time and the latest record time, mark the corresponding data access request as time abnormal data and send a time calibration request to the handheld terminal.

[0088] Understandably, during offline scanning, the handheld terminal relies on the local clock to mark the scanning time of each scan record. If the local clock drifts, the scanning time carried by each record during batch backfilling and uploading may deviate from the actual scanning time, thus affecting the comparison conclusion between the scanning time and the upload time in the conflict determination. Therefore, confirming the time range of its local buffer at the beginning of the handheld terminal's network connection can detect time anomalies in advance.

[0089] In this application, the process of identifying the device type identifier as a handheld terminal in step S6.1 includes: reading the device type identifier field in the data access request object, comparing the value of the device type identifier field with the first device type identifier in the preset device type enumeration table; when the comparison results are consistent, confirming that the device that generated the data access request is a handheld terminal, and proceeding to the buffer status query process; when the comparison results are inconsistent, skipping the buffer status query process.

[0090] On the other hand, in step S6.2, the process of sending a buffer status query request to the handheld terminal in response to detecting that the handheld terminal has established a network connection with the server includes: detecting the network connection status of the handheld terminal through a heartbeat message or a connection establishment notification message; when the handheld terminal has established a network connection with the server, encapsulating the buffer status query request into a query message and sending it to the handheld terminal, wherein the buffer status query request is used to trigger the handheld terminal to summarize the metadata information of the local buffer to be uploaded.

[0091] For example, in step S6.3, the process of receiving the buffer description data returned by the handheld terminal includes: the handheld terminal traverses each scan record in the local upload buffer, counts the number of data records to be uploaded, and extracts the minimum and maximum values ​​from the scan time field of each scan record, which are respectively used as the earliest and latest record times; the handheld terminal encapsulates the number of data records to be uploaded, the earliest record time, and the latest record time into buffer description data according to a preset message format and returns it.

[0092] Further, in step S6.4, the process of comparing the scan time of the subsequently received data access request with the buffer description data includes: reading the scan time field in the subsequently received data access request from the same handheld terminal, and determining whether the scan time falls within the time range formed by the earliest and latest record times; when the scan time falls within the time range, it is included in the normal batch backfilling process; when the scan time exceeds the time range, the corresponding data access request is marked as time abnormal data, and a time calibration request is sent to the handheld terminal, wherein the time calibration request payload carries the current standard time of the governance terminal.

[0093] Furthermore, the follow-up processing of time calibration includes: after receiving the time calibration request, the handheld terminal aligns the local clock with the standard time and attaches the calibrated scan time mark to the subsequent uploaded data access request; for data access requests that have been marked as time-abnormal data, the original scan order is traced back in the local temporary storage record according to the batch sequence number bound to it, and the calibrated estimated scan time is reassigned according to the temporary storage order and then re-included in the batch backfilling process, while pushing the time abnormality prompt to the review end, so that the operator can confirm whether the estimated scan time is available.

[0094] In this application, the method may further include the following steps: Step S7.1: Maintain a receive sequence window for the handheld terminal, the receive sequence window being used to record the received batch sequence numbers; Step S7.2: In response to receiving a new data access request from the handheld terminal, extract the new batch serial number carried in the new data access request; Step S7.3: Determine whether the new batch serial number exists in the receiving sequence window. If the new batch serial number already exists in the receiving sequence window, determine that the new data access request is duplicate data and send a duplicate confirmation response to the handheld terminal. Step S7.4: If the new batch serial number does not exist in the receiving sequence window, add the new batch serial number to the receiving sequence window, and check whether there is a missing batch serial number in the receiving sequence window. If there is a missing batch serial number, send a missing data retransmission request to the handheld terminal.

[0095] It should be noted that during the batch backfilling and uploading process, handheld terminals may repeatedly upload records with the same batch sequence number due to network jitter or response timeouts, or the batch sequence number may be discontinuous due to the failure to upload some records. If duplicate data and missing data are not handled separately, duplicate data will cause the status record to be updated multiple times, while missing data will cause a break in the business process of batch backfilling records. By identifying duplicate data and missing data simultaneously through the receiving sequence window, the completeness and uniqueness of batch backfilling data reception can be improved.

[0096] In practical applications, step S7.1, the process of maintaining the receiving sequence window for the handheld terminal, includes: establishing an independent receiving sequence window for each handheld terminal using the terminal number as the index key; storing the received batch sequence numbers in an ordered set structure within the receiving sequence window, and setting a window capacity limit; when the number of batch sequence numbers stored in the receiving sequence window reaches the window capacity limit, eliminating the earliest written batch sequence number in ascending order to free up storage space for new batch sequence numbers. The window capacity limit is obtained based on the maximum number of records filled in a single batch, with a preferred setting range of 1024 to 4096. In the specific operation of this application, the maximum temporary storage capacity of the handheld terminal's local buffer is obtained, and the window capacity limit is set to a power of 2 that is not less than the minimum power of 2 of the maximum temporary storage capacity.

[0097] Furthermore, in step S7.2, in response to receiving a new data access request from the handheld terminal, the process of extracting the new batch serial number includes: reading the batch serial number field in the new data access request object, determining the read value as the new batch serial number; and simultaneously recording the arrival time of the new data access request for subsequent reception timing analysis.

[0098] For example, in step S7.3, the process of determining whether the new batch serial number exists in the receiving sequence window includes: using the new batch serial number as the lookup key, performing a member lookup in the ordered set corresponding to the receiving sequence window; when the lookup result indicates that the new batch serial number already exists in the receiving sequence window, determining that the new data access request is duplicate data; at this time, no status record update operation is performed on the duplicate data, but a duplicate confirmation response is sent to the handheld terminal. The duplicate confirmation response is used to inform the handheld terminal that the record of the corresponding batch serial number has been successfully received by the server. After receiving the duplicate confirmation response, the handheld terminal removes the corresponding record from the local buffer to be uploaded to avoid uploading again.

[0099] It should be noted that in step S7.4, if the new batch sequence number does not exist in the receiving sequence window, the new batch sequence number is added to the receiving sequence window. After adding it, the process of checking whether there are missing batch sequence numbers in the receiving sequence window includes: reading the minimum batch sequence number and the maximum batch sequence number currently stored in the receiving sequence window, generating a complete sequence between the minimum batch sequence number and the maximum batch sequence number in an integer incrementing relationship, performing a difference operation between the complete sequence and the actual set of batch sequence numbers stored in the receiving sequence window to obtain the set of missing batch sequence numbers; when the set of missing batch sequence numbers is not empty, a missing data retransmission request is sent to the handheld terminal. The missing data retransmission request carries the set of missing batch sequence numbers. After receiving the missing data retransmission request, the handheld terminal locates the record of the corresponding batch sequence number from the local buffer to be uploaded and re-uploads it. After the supplementary record arrives, the duplicate judgment and missing judgment are re-executed according to the process in this section.

[0100] For example, a handheld terminal's receive sequence window already stores batch sequence numbers 1 to 8. When a new data access request carries a new batch sequence number of 6, the system searches and finds a match for the already stored batch sequence number 6, confirming that the data access request is duplicate data and returning a duplicate acknowledgment response. When a new data access request carries a new batch sequence number of 10, the search fails. After adding batch sequence number 10 to the receive sequence window, the system checks and finds that the complete sequence is 1 to 10. The actual stored sequence is 1 to 8 and 10. The difference operation result is 9. Based on this, the system sends a retransmission request for the missing data carrying batch sequence number 9 to the handheld terminal, which then retransmits the corresponding record.

[0101] Appendix Figure 2 The process of data access and source identification is illustrated. Multiple system data access requests are acquired and parsed. For handheld terminals establishing network connections, a buffer status query is performed to verify that the scan time is within a reasonable range. If it exceeds the range, a time anomaly is marked and a calibration request is sent. Subsequently, batch backfilling and real-time uploads are distinguished based on the upload mode identifier. Batch serial numbers are extracted from offline backfilled data, and duplicate and missing data are identified through the received sequence window, completing the pre-classification and anomaly interception of data access.

[0102] Figure 3 illustrates the process of concurrent conflict determination and state stage mapping. For scenarios where offline backfill data and real-time data arrive concurrently for the same business object identifier, the data source is distinguished and the corresponding business state is obtained. The state stage mapping table is called to convert the business state into a process stage value. By comparing the stage value and the scanning time, it is determined whether there is a state regression conflict. For state regression conflicts, the location confirmation signal of the fixed scanning terminal and operator verification feedback are further combined to determine whether manual review is required to ensure the physical authenticity of the conflict determination conclusion.

[0103] Figure 4 illustrates the process of differentiated data writing and version control. Different writing strategies are adopted based on the conflict determination results. For non-retrogression states, the status record is updated directly. For retrogression conflicts, the current database version number is compared with the expected baseline version number. If they match, the record is updated and the version number is incremented; otherwise, the write operation is abandoned and the data is added to the conflict archive table. When the number of conflict records for the same business object reaches a preset threshold, a manual intervention locking command is generated, and automatic write permissions are frozen until manual confirmation of the data is received, at which point the status update is completed.

[0104] Figure 5 illustrates the process of the status synchronization push and retransmission mechanism. After updating the status record based on real-time data, a status synchronization push command containing the latest status is generated and sent to the handheld terminal that sent the offline backfill data to eliminate the difference between the local cache and the server status. The synchronization result is confirmed by listening for a synchronization response signal within a preset time. If no response is received, the command is added to the retransmission queue and retransmitted sequentially at preset retransmission intervals until a response is received or the maximum number of retransmissions is reached, ensuring the consistency of data across multiple terminals.

[0105] Example 2: This example also provides a unified governance system for multi-system data access, including: an access request acquisition module, a data source identification module, a conflict determination and governance module, and a differentiated write execution module. The access request acquisition module is used to acquire multi-system data access requests for the same business object, and parse the multi-system data access requests to obtain device type identifier, upload mode identifier, and business object identifier. The data source identification module is used to determine the data source type of the corresponding data access request based on the upload mode identifier. If the data source type is a batch backfill mode, the corresponding data access request is marked as offline backfill data, and the batch sequence number carried by the offline backfill data is extracted. The conflict determination and governance module is used to respond to the concurrent arrival of offline backfill data and real-time data for the same business object identifier, and perform conflict determination according to the device type identifier, preset state transition logic, and batch sequence number to obtain a governance determination result. The differentiated write execution module is used to perform differentiated data writing based on the governance determination result to update the state record corresponding to the business object identifier.

[0106] The above-mentioned unit modules can be embedded in the processor of the electronic device in hardware form or independent of it, or they can be stored in the memory of the electronic device in software form, so that the processor can call and execute the corresponding operations of the above modules.

[0107] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0108] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A unified governance method for data access from multiple systems, characterized in that, include: Obtain data access requests from multiple systems targeting the same business object, and parse the data access requests from multiple systems to obtain device type identifier, upload mode identifier, and business object identifier; Based on the upload mode identifier, the data source type of the corresponding data access request is determined. If the data source type is batch backfill mode, the corresponding data access request is marked as offline backfill data, and the batch sequence number carried by the offline backfill data is extracted. In response to the concurrent arrival of offline backfill data and real-time data for the same business object identifier, a conflict determination is performed based on the device type identifier, the preset state transition logic, and the batch serial number to obtain a governance determination result; Based on the governance determination result, differentiated data writing is performed to update the status record corresponding to the business object identifier.

2. The unified governance method for multi-system data access according to claim 1, characterized in that: In response to the concurrent arrival of offline backfill data and real-time data for the same business object identifier, a conflict determination is performed based on the device type identifier, preset state transition logic, and batch serial number to obtain a governance determination result, including: The first source data and the second source data are distinguished according to the device type identifier, wherein the first source data is the offline backfill data from the handheld terminal with the first device type identifier, and the second source data is the real-time data from the fixed scanning terminal with the second device type identifier. Obtain the first business status corresponding to the first source data and the second business status corresponding to the second source data; Based on the preset state transition logic, the first process stage value corresponding to the first business state and the second process stage value corresponding to the second business state are determined. If the value of the first process stage is less than the value of the second process stage, and the scanning time indicated by the batch sequence number is earlier than the upload time of the second source data, the governance judgment result is determined to be a state regression conflict, and the second source data is determined to be valid data; If the value of the first process stage is greater than or equal to the value of the second process stage, the governance determination result is determined to be a non-regression state, and the first source data is determined to be valid data.

3. The unified governance method for multi-system data access according to claim 2, characterized in that: The step of determining the first process stage value corresponding to the first business state and the second process stage value corresponding to the second business state based on the preset state transition logic includes: Call the preset state stage mapping table, which stores the correspondence between business states and process stage values; The first business state is matched with the state stage mapping table to obtain the first process stage value that matches the first business state. The second business state is matched with the state stage mapping table to obtain the second process stage value that matches the second business state; the preset state transition logic indicates that the magnitude relationship between the first process stage value and the second process stage value is positively correlated with the order of the business processes.

4. The unified governance method for multi-system data access according to claim 2, characterized in that: After determining that the governance judgment result is a state regression conflict and determining the second source data as valid data, the method further includes: The location confirmation signal collected by the fixed barcode scanning terminal is obtained. The location confirmation signal is generated by a photoelectric sensor located in the area where the fixed barcode scanning terminal is located when it detects that the business object has passed by. If the location confirmation signal is not obtained, a first verification request is sent to the display terminal associated with the fixed barcode scanning terminal. The first verification request is used to prompt the operator to confirm whether the business object is located in the scanning area of ​​the fixed barcode scanning terminal. Receive a first confirmation feedback for the first verification request. If the first confirmation feedback is a negative confirmation, then modify the governance judgment result to require manual review, and mark the first source data and the second source data as data to be reviewed.

5. The unified governance method for multi-system data access according to claim 1, characterized in that: The step of performing differentiated data writing based on the governance determination result to update the status record corresponding to the business object identifier includes: In response to the governance determination result being a state rollback conflict, the current version number of the business object identifier in the database and the expected baseline version number carried by the target written data are obtained; If the current version number is consistent with the expected baseline version number, update the status record based on the target written data, and increment the current version number to obtain the updated version number; If the current version number is inconsistent with the expected baseline version number, the writing of the target write data is abandoned, and the target write data is written to the conflict archive table, which is used to store the original data that is determined to be in conflict and the reason for the conflict.

6. The unified governance method for multi-system data access according to claim 1, characterized in that: In response to the concurrent arrival of offline backfill data and real-time data for the same business object identifier, after performing conflict determination based on the device type identifier, preset state transition logic, and batch serial number, and obtaining the governance determination result, the method further includes: In response to the governance determination result that the real-time data is the standard, a status synchronization push instruction is generated, which includes the latest status of the business object identifier corresponding to the real-time data; Send the status synchronization push command to the handheld terminal that sent the offline backfill data; The system receives a synchronization response signal from the handheld terminal in response to the status synchronization push instruction. If the synchronization response signal is not received within a preset time period, the system adds the status synchronization push instruction to the retransmission queue until the synchronization response signal is received or the number of retransmissions reaches a preset number.

7. The unified governance method for multi-system data access according to claim 1, characterized in that: After parsing the multi-system data access request to obtain the device type identifier, upload mode identifier, and business object identifier, the method further includes: The device type is identified as the handheld terminal; in response to detecting that the handheld terminal has established a network connection with the server, a buffer status query request is sent to the handheld terminal; The system receives buffer description data returned by the handheld terminal in response to the buffer status query request. The buffer description data includes the number of data records to be uploaded, the earliest record time, and the latest record time. The scanning time of the subsequent data access request received from the handheld terminal is compared with the buffer description data. If the scanning time exceeds the time range formed by the earliest recording time and the latest recording time, the corresponding data access request is marked as time abnormal data, and a time calibration request is sent to the handheld terminal.

8. The unified governance method for multi-system data access according to claim 1, characterized in that: The method further includes: Maintain a receive sequence window for the handheld terminal, the receive sequence window being used to record the received batch sequence numbers; In response to receiving a new data access request from the handheld terminal, the new batch serial number carried in the new data access request is extracted; Determine whether the new batch serial number exists in the receiving sequence window. If the new batch serial number already exists in the receiving sequence window, determine that the new data access request is duplicate data and send a duplicate confirmation response to the handheld terminal. If the new batch serial number does not exist in the receiving sequence window, the new batch serial number is added to the receiving sequence window, and the receiving sequence window is checked for missing batch serial numbers. If missing batch serial numbers exist, a missing data retransmission request is sent to the handheld terminal.

9. The unified governance method for multi-system data access according to claim 5, characterized in that: If the current version number is inconsistent with the expected baseline version number, the method further includes abandoning the writing of the target write data and writing the target write data to the conflict archive table. When the number of conflicting data records for the same business object identifier in the conflict archive table reaches a preset number, a manual intervention locking command is generated. Send the manual intervention lock command to the management terminal. The manual intervention lock command includes the business object identifier and a summary of the conflict data record. Receive manual confirmation data input through the management terminal, and update the status record based on the manual confirmation data; Before receiving the manually confirmed data, the write permission corresponding to the business object identifier is locked, and any automatic status update request for the business object identifier is rejected.

10. A unified governance system for multi-system data access, characterized in that, It includes an access request acquisition module, a data source identification module, a conflict determination and management module, and a differentiated write execution module; The access request acquisition module is used to acquire multiple system data access requests for the same business object, and parse the multiple system data access requests to obtain device type identifier, upload mode identifier and business object identifier; The data source identification module is used to determine the data source type of the corresponding data access request based on the upload mode identifier. If the data source type is batch backfill mode, the corresponding data access request is marked as offline backfill data, and the batch sequence number carried by the offline backfill data is extracted. The conflict determination and governance module is used to respond to the concurrent arrival of offline backfill data and real-time data for the same business object identifier, and to perform conflict determination based on the device type identifier, preset state flow logic and batch serial number to obtain the governance determination result; The differentiated write execution module is used to perform differentiated data writing based on the governance judgment result, so as to update the status record corresponding to the business object identifier.