A blockchain-based entry and exit passenger epidemic prevention resource adaptive configuration and auditing system
The blockchain-based adaptive allocation and auditing system for inbound and outbound passenger epidemic prevention and control resources solves the problem of inconsistent states during resource allocation and task assignment, realizes adaptive adjustment of resource allocation and consistency verification of task assignment, and reduces unnecessary resource input and consensus processing.
Patent Information
- Application Number
- CN202611695435.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-30
- Publication Date
- 2026-11-27
AI Technical Summary
In the current process of allocating epidemic prevention and control resources, there is a lack of unified constraints on the status of passenger epidemic prevention and control tasks and resource status on which resource allocation is based. After the status changes, the resource allocation formed based on the original status may still continue to participate in the processing. Different nodes may form different resource allocation or task allocation results. The inconsistency between the status caused by the separate updates of task allocation results and resource status, as well as the lack of continuous verification basis for the resource allocation and task allocation process.
An adaptive allocation and auditing system for epidemic prevention and control resources for inbound and outbound passengers based on blockchain is adopted. Through platform business units and platform consensus units, the system receives and verifies passenger epidemic prevention and control tasks and resource information, generates subsequent resource allocation according to deterministic resource allocation rules, and confirms the consistent resource allocation and task allocation results through consensus. Audit records are generated for verification and traceability.
It enables the generation of subsequent configurations based on the task and resource states confirmed by consensus during the resource configuration process, avoiding unnecessary resource investment, ensuring the consistency of resource configuration and task allocation, and enabling continuous verification and traceability, thereby reducing consensus processing and intermediate state storage.
Smart Images

Figure CN123180679A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of resource allocation for epidemic prevention and control for inbound and outbound passengers and blockchain technology, specifically to a blockchain-based adaptive allocation and auditing system for epidemic prevention and control resources for inbound and outbound passengers. Background Technology
[0002] Entry and exit ports are responsible for passenger epidemic prevention and control and health quarantine. They need to organize corresponding epidemic prevention and control measures for different passengers based on passenger declarations, epidemiological investigation results, on-site screening, and testing requirements. Passengers may need to undergo epidemiological investigations, on-site screening, and testing sequentially or separately during the entry and exit process. Different tasks have different requirements for work locations, staff, equipment, and processing time. When passengers arrive in large numbers, the type of task changes, or the status of on-site resources changes, the original resource allocation may not be able to meet the current processing needs. It is necessary to adjust work locations, personnel, and equipment according to the number and priority of various epidemic prevention and control tasks, and assign the corresponding tasks to epidemic prevention and control work units capable of completing the corresponding tasks.
[0003] Existing port epidemic prevention and control information systems typically record passenger information, epidemic prevention and control tasks, and on-site resource status, and adjust personnel, equipment, or work positions based on the current number of tasks to be processed. When multiple tasks such as epidemiological investigation, on-site screening, and testing coexist, different tasks have different personnel and equipment requirements, and the same work position may also form different epidemic prevention and control work units depending on the personnel and equipment allocated. When the existing processing capacity is insufficient, it is necessary to gradually supplement available work positions, personnel, and equipment until a resource configuration that can meet the current task processing needs is formed. When resource conditions, the number of tasks, and task priorities change simultaneously, multiple optional resource combinations and task allocation schemes may exist under the same conditions.
[0004] To improve the credibility of epidemic prevention and control tasks and resource allocation data, existing systems can also utilize blockchain to store and confirm task information, resource information, or processing results. However, when resource allocation and task assignment processes are completed independently outside the blockchain state, the blockchain typically only records the already formed configuration results or task processing results, lacking continuous state constraints between the task state, resource state, and configuration process upon which resource allocation is based. Furthermore, when adding work units step-by-step according to multiple resource allocation steps, if each intermediate configuration submits its state separately, it will also increase consensus processing and intermediate state storage.
[0005] Furthermore, the status of passenger epidemic prevention and control tasks, work positions, personnel, or equipment may change during resource allocation. Resource allocations based on existing states but not yet confirmed may continue to participate in subsequent processing, causing inconsistencies between the allocation results and the current task or resource status. When multiple resource combinations exist, the lack of unified resource allocation rules may lead to different resource allocation results from different nodes; continuing to use subsequent resource allocations when a resource allocation that meets the current task allocation conditions already exists will increase unnecessary resource input. After task allocation, if the task status, resource occupancy status, and remaining processing capacity are updated separately, it may also cause differences in the status upon which subsequent processing is based. Simultaneously, the lack of a unified correlation between the preceding status, configuration step changes, task allocation results, and subsequent status upon which resource allocation is based hinders the verification and traceability of resource allocation and task allocation processes. Therefore, further improvements are needed to the adaptive allocation, task allocation, blockchain status update, and process auditing methods for inbound and outbound passenger epidemic prevention and control resources. Summary of the Invention
[0006] Purpose of the Invention: The purpose of this invention is to provide a blockchain-based adaptive allocation and auditing system for epidemic prevention and control resources for inbound and outbound passengers. This system addresses the problems in the existing epidemic prevention and control resource allocation process, such as the lack of unified constraints on the passenger epidemic prevention and control task status and resource status upon which resource allocation is based; the possibility that resource allocation based on the original status may continue to participate in processing after the status changes; the possibility that different nodes may form different resource allocations or task allocation results; the inconsistency caused by the separate updates of task allocation results and resource status; and the lack of continuous verification basis in the resource allocation and task allocation process.
[0007] Technical solution: The blockchain-based adaptive allocation and auditing system for epidemic prevention and control resources for inbound and outbound passengers described in this invention includes a platform business unit and a platform consensus unit;
[0008] The platform's business units consist of business nodes, which are used to receive information on passenger epidemic prevention and control tasks, as well as information on workstation resources, personnel resources, and equipment resources.
[0009] The platform consensus unit consists of consensus nodes, which are used to confirm consensus on allocation round information, passenger epidemic prevention and control task information, epidemic prevention and control resource information, task and operation unit adaptation relationship, deterministic resource allocation rules and deterministic task allocation rules. Based on the confirmed information, a state data body is formed and a corresponding state identifier is generated to obtain the previous consensus state.
[0010] The platform business unit is also used to form an epidemic prevention and control operation unit based on the deterministic resource allocation rules and resource allocation step sequence number during the effective period of the prior consensus state, using the operation station resources and personnel and equipment resources that meet the corresponding task requirements to deterministically generate subsequent resource allocation, and starting from the next resource allocation step after the confirmed resource allocation step, determine the resource allocation step that can first meet the current passenger epidemic prevention and control task allocation conditions, and propose candidate proposals including allocation round identifier, candidate resource allocation step sequence number and status identifier;
[0011] The platform consensus unit is also used to verify whether the allocation round identifier and status identifier referenced by the candidate proposal are consistent with the current prior consensus state, and to regenerate the resource configuration from the next resource configuration step after the confirmed resource configuration step to the candidate resource configuration step according to the current prior consensus state. For each resource configuration before the candidate resource configuration step, it only judges whether a task allocation scheme that meets the task allocation conditions can be formed, without executing specific task allocation or making consensus submissions separately. When none of the resource configurations can form a task allocation scheme that meets the task allocation conditions, and the candidate resource configuration step can form a task allocation scheme that meets the task allocation conditions for the first time, the candidate resource configuration step is confirmed to have passed the verification; after the candidate resource configuration step passes the verification, the system... The allocation relationship between passenger epidemic prevention and control tasks and epidemic prevention and control operation units is determined according to the deterministic task allocation rules. The platform consensus unit updates the status data body based on the resource allocation results, task allocation results, updated passenger epidemic prevention and control task information, updated epidemic prevention and control resource information, and candidate resource allocation step number. It also generates a subsequent status identifier based on the updated status data body. The updated status data body and its status identifier form the subsequent consensus status and are confirmed by consensus. The platform consensus unit forms an audit record based on the status identifier of the previous consensus status, candidate proposals, resource allocation results, task allocation results, and the status identifier of the subsequent consensus status. This record is used to verify and trace the resource allocation and task allocation process.
[0012] Furthermore, the status data body includes allocation round information, passenger epidemic prevention and control task information, epidemic prevention and control resource information, task and work unit adaptation relationship, deterministic resource allocation rules, and deterministic task allocation rules;
[0013] Allocation round information includes allocation round identifier, confirmed resource allocation step number, and maximum resource allocation step number for the allocation round;
[0014] The passenger epidemic prevention and control task information includes a set of valid passenger epidemic prevention and control tasks. Each passenger epidemic prevention and control task includes at least a task identifier, task type, operation requirements, task priority, task reception time, and task status. The task type is one of epidemiological investigation, on-site screening, or testing.
[0015] The information on epidemic prevention and control resources includes workstation resources, personnel resources, equipment resources, and information on existing epidemic prevention and control work units. Each epidemic prevention and control work unit includes a work unit identifier, the type of task to be performed, the working conditions, the associated workstation resources, personnel resources and equipment resources, the effective processing capacity, the remaining processing capacity, and the operating status. The status identifier is generated based on the status data body, is not a component of the status data body, and is uniquely associated with the corresponding status data body.
[0016] Furthermore, the deterministic resource allocation rules determine the processing requirements corresponding to each task type based on the task type and number of pending passenger epidemic prevention and control tasks, and determine the available processing capacity of the corresponding task type based on the epidemic prevention and control operation units executing the corresponding task type and their effective processing capacity in the current resource allocation. The first resource allocation step of the current allocation round adopts the basic resource allocation of the allocation round. When the current resource allocation step cannot meet the task allocation conditions, the task types with processing requirements greater than available processing capacity are determined based on the processing requirements and available processing capacity corresponding to each task type. When there are multiple task types that need supplementary processing capacity, the task types that need to supplement processing capacity first are determined based on the highest task priority among the pending passenger epidemic prevention and control tasks corresponding to each task type. When the highest task priority corresponding to multiple task types is the same, they are determined according to the preset task type order. The platform business unit selects workstation resources that support the task type from the workstation resources that have not yet participated in the current resource configuration, and selects available personnel resources that meet the requirements of the corresponding positions and available equipment resources that meet the requirements of the task type from the personnel resources and equipment resources that have not yet been occupied by other epidemic prevention and control workstations in the current resource configuration, respectively, to form a new epidemic prevention and control workstation, thus obtaining the next resource configuration step; when there are multiple resource combinations that can form a new epidemic prevention and control workstation, the resource combination is determined according to the preset selection order of workstation resources, personnel resources, and equipment resources; the subsequent resource configuration adds an epidemic prevention and control workstation based on the previous resource configuration, and the epidemic prevention and control workstation in the previous resource configuration continues to be retained in the subsequent resource configuration; when the prior consensus state and the resource configuration step number are the same, the deterministic resource configuration rules generate the same resource configuration.
[0017] Furthermore, when forming an epidemic prevention and control operation unit, the operation station resources used should support the task type performed by the epidemic prevention and control operation unit, the personnel resources should meet the job requirements of the corresponding task type, and the equipment resources should meet the equipment requirements of the corresponding task type. All operation station resources, personnel resources, and equipment resources should be available. The same operation station resource, personnel resource, or equipment resource should not be repeatedly configured to multiple epidemic prevention and control operation units in the same resource allocation. The single task processing time corresponding to different task types should be predetermined and confirmed as part of the deterministic resource allocation rules. Based on the available time of operation station resources, personnel resources, and equipment resources in the current allocation round and the single task processing time of the corresponding task type, the number of passenger epidemic prevention and control tasks that operation station resources, personnel resources, and equipment resources can support should be determined, and the minimum number of tasks should be taken as the effective processing capacity of the epidemic prevention and control operation unit. The same epidemic prevention and control operation unit corresponds to a specific task type in the same allocation round. When the task type and operation requirements of the passenger epidemic prevention and control task match the task type and operation conditions performed by the epidemic prevention and control operation unit, a task-operation unit compatibility relationship is determined between the passenger epidemic prevention and control task and the epidemic prevention and control operation unit.
[0018] Furthermore, the candidate proposal also includes a business node identifier and a digital signature. The platform consensus unit verifies the allocation round identifier, status identifier, business node identifier, and digital signature in the candidate proposal. If the allocation round identifier or status identifier is inconsistent with the current prior consensus state, the digital signature verification fails, the candidate resource configuration step number is not greater than the confirmed resource configuration step number, or the candidate resource configuration step number is greater than the maximum resource configuration step number of the allocation round, the candidate proposal is rejected. After successful verification, the platform consensus unit regenerates the resource configuration from the next resource configuration step after the confirmed resource configuration step to the candidate resource configuration step according to the deterministic resource configuration rules in the current prior consensus state. It then determines whether the corresponding resource configuration can form a task allocation scheme that meets the task allocation conditions; for resource configurations prior to the candidate resource configuration step, it determines whether a task allocation scheme that meets the task allocation conditions exists, without generating specific task allocation results or submitting consensus separately; if any intermediate resource configuration step has already formed a task allocation scheme that meets the task allocation conditions, or if the candidate resource configuration step cannot form a task allocation scheme that meets the task allocation conditions, the candidate proposal is rejected; if the state data body of the current prior consensus state changes and a new state identifier is formed after consensus confirmation while the candidate proposal has not yet been confirmed, the candidate proposal that references the state identifier before the update is rejected.
[0019] Furthermore, the task allocation conditions include that each passenger epidemic prevention and control task can be allocated to an epidemic prevention and control operation unit that has a task and operation unit adaptation relationship with it, both the passenger epidemic prevention and control task and the epidemic prevention and control operation unit are in an effective state, and the number of passenger epidemic prevention and control tasks received by each epidemic prevention and control operation unit does not exceed the corresponding effective processing capacity; when all passenger epidemic prevention and control tasks to be allocated in the current allocation round can be allocated according to the task allocation conditions, it is determined that the corresponding resource configuration can form a set of candidate task allocation schemes that meet the task allocation conditions.
[0020] Furthermore, the candidate task allocation scheme set includes all candidate task allocation schemes that meet the task allocation conditions within the current allocation round. Each candidate task allocation scheme determines an epidemic prevention and control operation unit for each passenger epidemic prevention and control task within the current allocation round. Passenger epidemic prevention and control tasks are arranged from high to low priority. When task priorities are the same, they are arranged from first to last according to task reception time. When both task priorities and task reception time are the same, passenger epidemic prevention and control tasks are arranged according to a preset order of task identifiers. Each epidemic prevention and control operation unit is arranged according to a preset order of epidemic prevention and control operation unit identifiers. Each candidate task allocation scheme is recorded as the epidemic prevention and control operation unit determined for the corresponding passenger epidemic prevention and control task in the order of passenger epidemic prevention and control tasks, forming a task allocation sequence. When there are multiple candidate task allocation schemes, each task allocation sequence is compared item by item according to the order of passenger epidemic prevention and control tasks. At the first position where there are different epidemic prevention and control operation units, the epidemic prevention and control operation units corresponding to that position are compared according to the preset order of epidemic prevention and control operation units. The candidate task allocation scheme with the epidemic prevention and control operation units arranged first is determined as the priority scheme, thereby obtaining the task allocation result.
[0021] Furthermore, after completing the allocation of passenger epidemic prevention and control tasks, the platform consensus unit updates the remaining processing capacity of the corresponding epidemic prevention and control operation unit according to the number of passenger epidemic prevention and control tasks received by each epidemic prevention and control operation unit, and updates the task status of the corresponding passenger epidemic prevention and control tasks as well as the configuration status or occupancy status of the workstation resources, personnel resources and equipment resources that constitute the epidemic prevention and control operation unit.
[0022] Furthermore, the audit record includes the allocation round identifier, the status identifier of the preceding consensus state, the candidate resource configuration step number, the candidate proposal, the resource configuration result, the task allocation result, the status identifier of the subsequent consensus state, and the corresponding consensus confirmation information. The platform consensus unit verifies the preceding consensus state referenced by the candidate resource configuration, the continuity of the resource configuration steps, the resource configuration result, the task allocation result, and the correlation between the preceding consensus state and the subsequent consensus state based on the audit record, and traces the resource configuration and task allocation process based on the verification results.
[0023] Furthermore, after the current allocation round ends, if new passenger epidemic prevention and control tasks arise or the status of epidemic prevention and control resources changes, the platform consensus unit will confirm the new or updated information, update the allocation round identifier, initialize the confirmed resource configuration step number to 0, and redetermine the maximum resource configuration step number of the allocation round based on the current epidemic prevention and control resource status. A new status identifier will be generated based on the updated status data body, forming the preliminary consensus state for the next allocation round. If the status data body of the current preliminary consensus state changes and is confirmed by the platform consensus unit before the candidate proposals for the current allocation round are confirmed, the platform consensus unit will generate a new status identifier based on the updated status data body, forming the updated preliminary consensus state for the current allocation round.
[0024] Beneficial effects: Compared with the prior art, the present invention has the following beneficial effects:
[0025] (1) The present invention generates subsequent resource allocation based on the passenger epidemic prevention and control task status, epidemic prevention and control resource status and deterministic resource allocation rules confirmed by consensus. When the basic resource allocation cannot meet the current task allocation conditions, the epidemic prevention and control operation units are gradually supplemented. The feasibility of task allocation is judged only for intermediate resource allocation before the candidate resource allocation step. The specific task allocation or consensus submission is not executed separately, thereby reducing the consensus processing and intermediate state storage of each configuration step, and avoiding the need to continue to increase the number of work positions, personnel and equipment resources when the earlier resource allocation can meet the task processing requirements.
[0026] (2) The present invention binds the candidate resource configuration to the prior consensus state on which it is based, and the consensus node regenerates the resource configuration process from the confirmed resource configuration step to the candidate resource configuration step, and verifies whether the candidate resource configuration is the first resource configuration that can meet the task allocation conditions. After the passenger epidemic prevention and control task or epidemic prevention and control resource status changes and a new prior consensus state is formed, the candidate proposal that references the original status identifier is no longer used for the current resource configuration, thereby avoiding the continued resource configuration and task allocation based on the failed task status or failed resource status.
[0027] (3) The present invention forms an epidemic prevention and control operation unit according to a deterministic resource allocation rule, and determines the allocation relationship between the passenger epidemic prevention and control task and the epidemic prevention and control operation unit according to a deterministic task allocation rule, so that different nodes can obtain consistent resource allocation and task allocation results under the same prior consensus state and candidate resource allocation step; the resource allocation result, task allocation result, passenger epidemic prevention and control task status and epidemic prevention and control resource status together form the subsequent consensus state, so that subsequent allocation can be carried out based on continuous and consistent task and resource status;
[0028] (4) The present invention forms an audit record based on the prior consensus status identifier, candidate proposal, resource allocation result, task allocation result, subsequent consensus status identifier and corresponding consensus confirmation information, so that the status on which resource allocation is based, the continuous relationship between resource allocation steps, the task allocation result and the correlation between the prior and subsequent consensus statuses can be verified, and the resource allocation and task allocation process can be traced. Attached Figure Description
[0029] Figure 1 This is a schematic diagram of the system structure of the present invention;
[0030] Figure 2 This is a schematic diagram of the resource adaptive configuration and auditing process of the present invention;
[0031] Figure 3 This is a schematic diagram illustrating the state progression of the present invention. Detailed Implementation
[0032] The technical solution of the present invention will be further described below with reference to the accompanying drawings and embodiments.
[0033] In this embodiment, the platform business unit consists of business nodes, and the platform consensus unit consists of consensus nodes. For ease of description, business nodes are referred to as PEER nodes, and consensus nodes are referred to as ORDER nodes. PEER and ORDER are used to distinguish the different functions that nodes undertake in this system, and are not limited to standard node types in a specific blockchain platform. PEER nodes are mainly used to receive passenger epidemic prevention and control tasks and epidemic prevention and control resource information, generate subsequent resource configurations according to the confirmed deterministic resource allocation rules, and generate candidate proposals; ORDER nodes are mainly used to confirm the consensus on the tasks, resources, adaptation relationships, and deterministic configuration and allocation rules required to form the preliminary consensus state and generate corresponding status identifiers. They are also used to verify the candidate resource configuration steps and task allocation results, forming the subsequent consensus state and corresponding audit records.
[0034] like Figure 1 As shown, the present invention provides a blockchain-based adaptive allocation and auditing system for epidemic prevention and control resources for inbound and outbound passengers, including a platform business unit and a platform consensus unit.
[0035] The platform's business unit consists of multiple PEER nodes. The passenger epidemic prevention and control business system submits passenger epidemic prevention and control tasks through authorized PEER nodes, while the port resource management system or authorized resource management terminals submit information on workstation resources, personnel resources, and equipment resources to the PEER nodes. The PEER nodes verify the allocation round, submitter identity, digital signature, and data integrity of the submitted data, and send the verified data to the platform consensus unit.
[0036] The platform's consensus unit consists of multiple ORDER nodes. Following the consensus mechanism configured in the blockchain system, each ORDER node confirms the state data body corresponding to the current allocation round, generates a state identifier based on the confirmed state data body, and forms a preliminary consensus state. ORDER nodes also verify the state identifiers referenced in candidate proposals, the scope of candidate resource allocation steps, and whether the candidate resource allocation steps are the first resource allocations that can meet the task allocation conditions. They then commit the verified resource allocation results, task allocation results, and updated task and resource states to consensus.
[0037] The passenger epidemic prevention and control tasks described in this embodiment are tasks formed for specific processing matters that inbound and outbound passengers need to complete during the epidemic prevention and control process. The task type is one of epidemiological investigation, on-site screening, or testing. Epidemiological investigation tasks are used to investigate and process relevant epidemiological information of passengers; on-site screening tasks are used to complete on-site inspections at ports of entry; and testing tasks are used to complete sampling or corresponding testing. When the same passenger needs to complete multiple epidemic prevention and control steps, each step forms a corresponding passenger epidemic prevention and control task. Each passenger epidemic prevention and control task includes at least a task identifier, task type, operational requirements, task priority, task reception time, and task status. Task priority is used to determine the processing order in the resource allocation and task assignment process.
[0038] The epidemic prevention and control resources described in this embodiment include workstation resources, personnel resources, and equipment resources. Workstation resources provide the work locations and conditions required to perform corresponding epidemic prevention and control tasks; personnel resources are used to complete the operations required for the corresponding tasks; and equipment resources provide the equipment needed for epidemiological investigations, on-site screening, or testing. The same workstation resource can support one or more task types.
[0039] The epidemic prevention and control work unit described in this embodiment is an operable work unit formed by workstation resources and personnel and equipment resources that meet the requirements of the corresponding task type. When forming a specific epidemic prevention and control work unit, the task type and working conditions to be performed by the work unit are determined according to the resource allocation results of the current allocation round. The same epidemic prevention and control work unit corresponds to a specific task type within the same allocation round, and its effective processing capacity is included in the available processing capacity of the corresponding task type. The same workstation resources, personnel resources, or equipment resources are not used repeatedly to form multiple epidemic prevention and control work units in the same resource allocation.
[0040] Each allocation round focuses on the current passenger epidemic prevention and control tasks and resources requiring resource allocation. Allocation rounds can be determined according to preset time windows, peak passenger arrival batches, or port operation cycles. Currently operational epidemic prevention and control units constitute the basic resource allocation for the current allocation round and serve as the first resource allocation step. When the basic resource allocation cannot meet the allocation conditions for the current passenger epidemic prevention and control tasks, epidemic prevention and control units are added according to deterministic resource allocation rules, forming the second and subsequent resource allocation steps. Available operational positions, personnel, and equipment resources that have not yet participated in the current resource allocation are used to form new epidemic prevention and control operational units.
[0041] like Figure 2 As shown, the adaptive configuration and auditing process of epidemic prevention and control resources in this system includes the following steps:
[0042] (1) Receive input on the allocation of epidemic prevention and control resources;
[0043] The passenger epidemic prevention and control system submits passenger epidemic prevention and control tasks to the PEER node. Each passenger epidemic prevention and control task includes at least the allocation round identifier (NO), task identifier (TID), task type, operational requirements, task priority, task reception time, task status, and digital signature (SIGN).
[0044] The task type is one of epidemiological investigation, on-site screening, or testing. The operational requirements specify the conditions necessary to complete the corresponding task, including work location conditions, personnel requirements, equipment requirements, and other conditions related to task execution. When the same passenger needs to complete multiple epidemic prevention and control procedures, each procedure forms a corresponding passenger epidemic prevention and control task with its own task identifier.
[0045] The job resource information includes at least the allocation round identifier, job identifier, supported task types, working conditions, available time periods, job status, and digital signature; the personnel resource information includes at least the allocation round identifier, personnel resource identifier, job type, executable task types, available time periods, personnel status, and digital signature; the equipment resource information includes at least the allocation round identifier, equipment identifier, equipment type, supported task types, available time periods, equipment status, and digital signature.
[0046] The resource status of workstations, personnel, and equipment can be generated and signed by the port resource management system or the corresponding resource management terminal and then submitted. When the resource status changes, the corresponding system resubmits the updated resource information, which is then confirmed by the platform consensus unit and used for subsequent resource configuration.
[0047] PEER nodes verify passenger epidemic prevention and control tasks and resource information based on allocation round identifiers, submitter identities, digital signatures, and data integrity. Verified data serves as input for forming a preliminary consensus state.
[0048] (2) A preliminary consensus is formed;
[0049] After the PEER node completes the input verification, it sends the valid passenger epidemic prevention and control task and epidemic prevention and control resource information to the ORDER node.
[0050] The ORDER node confirms the currently formed epidemic prevention and control work units and their associated workstation resources, personnel resources, and equipment resources. When an epidemic prevention and control work unit is formed, the workstation resources should support the corresponding task type, the personnel resources should meet the job requirements of the corresponding task type, the equipment resources should meet the equipment requirements of the corresponding task type, and the workstation resources, personnel resources, and equipment resources should all be available and have available time slots within the corresponding allocation period of the current allocation round to jointly execute the task.
[0051] The processing time for each task type is predetermined and confirmed as part of the deterministic resource allocation rules. Based on the available time of workstation resources, personnel resources, and equipment resources in the current allocation round and the processing time of each task type, the number of passenger epidemic prevention and control tasks that workstation resources, personnel resources, and equipment resources can support are determined, and the smallest number of tasks is determined as the effective processing capacity of the epidemic prevention and control work unit.
[0052] When an epidemic prevention and control work unit is formed but has not yet been assigned passenger epidemic prevention and control tasks, its remaining processing capacity is initialized to the effective processing capacity; after the task assignment is completed, the remaining processing capacity is updated according to the number of passenger epidemic prevention and control tasks that have been assigned.
[0053] The ORDER node determines the task-work unit compatibility relationship based on the task type and operational requirements of the passenger epidemic prevention and control task, as well as the task type and operational conditions executed by the epidemic prevention and control operational unit. When the task type of the passenger epidemic prevention and control task matches the task type executed by the epidemic prevention and control operational unit, and the operational requirements of the task can be met by the operational conditions of the epidemic prevention and control operational unit, a task-work unit compatibility relationship is determined between the passenger epidemic prevention and control task and the epidemic prevention and control operational unit. This compatibility relationship is used to limit the feasibility assessment of subsequent resource allocation and the assignment of passenger epidemic prevention and control tasks.
[0054] The ORDER node reaches a consensus on the allocation round information, passenger epidemic prevention and control task information, epidemic prevention and control resource information, task and work unit adaptation relationship, deterministic resource allocation rules and deterministic task allocation rules, forming a state data body of the pre-consensus state.
[0055] The allocation round information includes the allocation round identifier, the confirmed resource allocation step number, and the maximum resource allocation step number for the allocation round; the passenger epidemic prevention and control task information includes the set of valid passenger epidemic prevention and control tasks; and the epidemic prevention and control resource information includes workstation resource information, personnel resource information, equipment resource information, and information on existing epidemic prevention and control work units. The status information for each epidemic prevention and control work unit includes at least the work unit identifier, the type of task being executed, the operating conditions, the associated workstation resources, personnel and equipment resources, the effective processing capacity, the remaining processing capacity, and the operating status.
[0056] The currently confirmed resource configuration step number is denoted as c. When the resource configuration confirmation for a allocation round is not yet complete, c is initialized to 0. The maximum resource configuration step number for a allocation round is denoted as K. max , used to limit the range of resource configuration steps that can be generated and verified in the current allocation round. K max The number of subsequent epidemic prevention and control work units can be determined by the system preset or based on the basic resource configuration and the number of available workstations, personnel, and equipment resources.
[0057] The state identifier of the pre-consensus state is denoted as SID. c The state identifier is generated based on a state data body that does not contain the state identifier itself, and is uniquely associated with the corresponding state data body. In one embodiment, the state data body is normalized and encoded, and the hash value of the encoding result is calculated. The resulting hash value is used as the state identifier. In another embodiment, a state version identifier confirmed by consensus among ORDER nodes and uniquely associated with the corresponding state data body can be used. The state data body and the state identifier together constitute the preliminary consensus state.
[0058] When the state data body of the preceding consensus state changes and is confirmed by the ORDER node to form an updated state data body, a new state identifier is generated based on the updated state data body. Candidate proposals that reference the previous state identifier and have not yet completed consensus confirmation are no longer used in the current resource configuration.
[0059] (3) Deterministically generate subsequent resource allocation;
[0060] While the prior consensus state remains valid, the PEER node generates resource configuration based on the deterministic resource configuration rules and resource configuration step number already confirmed in the prior consensus state.
[0061] The current allocation round consists of the epidemic prevention and control operation units that are already in operation, forming the basic resource configuration and serving as the first resource configuration step. The PEER node first counts the number of pending passenger epidemic prevention and control tasks according to task type, and then determines the processing capacity that each task type can currently provide based on the task type executed by each epidemic prevention and control operation unit in the first resource configuration step and its effective processing capacity.
[0062] When the current resource allocation cannot meet the allocation requirements of all passenger epidemic prevention and control tasks, the PEER node determines the task types whose processing demand exceeds the available processing capacity based on the processing requirements corresponding to each task type and the current available processing capacity. When there are multiple task types that require supplementary processing capacity, the task type whose processing capacity is supplemented first is determined according to the highest task priority among the corresponding pending passenger epidemic prevention and control tasks; when multiple task types have the same highest task priority, one of the task types is determined according to the order of task types already confirmed in the prior consensus state.
[0063] After determining the task type requiring additional processing capacity, the PEER node selects job slots that support that task type from those not yet included in the current resource configuration. It then selects personnel and equipment resources that meet the requirements of the corresponding positions and the task type, respectively, from personnel and equipment resources not currently occupied by other epidemic prevention and control work units in the current resource configuration, thus forming a new epidemic prevention and control work unit. If multiple matching resource combinations exist, the corresponding resource combination is determined according to the selection order of job slots, personnel, and equipment resources already confirmed in the prior consensus state.
[0064] Starting from the second resource allocation step, each additional epidemic prevention and control work unit constitutes a new resource allocation step, and the epidemic prevention and control work units from the previous resource allocation continue to be included in the subsequent resource allocation. Therefore, as the resource allocation step number increases, the number of epidemic prevention and control work units participating in the current allocation round gradually increases. When the prior consensus state and resource allocation step number are the same, each PEER node generates the same resource allocation according to the same deterministic resource allocation rules.
[0065] In this implementation, the resource allocation step represents the resource allocation deterministically derived based on the current prior consensus state. The first resource allocation step corresponds to the current basic resource allocation, and subsequent resource allocation steps add epidemic prevention and control operation units based on the previous resource allocation. The intermediate resource allocations before the candidate resource allocation step are only used to determine whether the current resource combination can meet the conditions for allocating passenger epidemic prevention and control tasks. Before the candidate resource allocation passes verification, it does not mean that all newly added epidemic prevention and control operation units in the intermediate resource allocation have been actually put into operation, nor are they submitted to consensus separately.
[0066] (4) Determine candidate resource allocation steps;
[0067] The PEER node starts from the next resource configuration step after the currently confirmed resource configuration step and sequentially determines whether each resource configuration can form a complete task allocation scheme that meets the task allocation conditions.
[0068] When determining whether resource allocation meets the task allocation conditions, each passenger epidemic prevention and control task to be allocated in the current allocation round should be able to be assigned to an epidemic prevention and control operation unit that has a task and operation unit matching relationship with it. Both the passenger epidemic prevention and control task and the epidemic prevention and control operation unit should be in an effective state, and the number of passenger epidemic prevention and control tasks received by each epidemic prevention and control operation unit should not exceed the effective processing capacity of the epidemic prevention and control operation unit.
[0069] When a resource allocation enables all passenger epidemic prevention and control tasks to be assigned in the current allocation round to be completed according to the above conditions, it is determined that the resource allocation can form a task allocation scheme that meets the task allocation conditions; when at least one passenger epidemic prevention and control task cannot be completed according to the above conditions, it is determined that the resource allocation cannot form a task allocation scheme that meets the task allocation conditions.
[0070] The PEER node identifies the resource configuration step that, after the confirmed resource configuration step, first generates a task allocation scheme that satisfies the task allocation conditions as a candidate resource configuration step. For each resource configuration step prior to the candidate resource configuration step, it only checks whether a complete task allocation scheme that satisfies the task allocation conditions exists, without generating a specific task allocation result.
[0071] If the maximum resource allocation step in the allocation round still cannot form a task allocation plan that meets the task allocation conditions, or if the currently available workstation resources, personnel resources, and equipment resources can no longer form new epidemic prevention and control work units, the generation of subsequent resource allocation will be stopped.
[0072] After the PEER node determines the candidate resource configuration step k, it generates a candidate proposal. The candidate proposal includes at least the allocation round identifier (NO) and the prior consensus state identifier (SID). c Candidate resource configuration step number k, PEER node identifier and digital signature SIGN.
[0073] (5) Verify candidate resource allocation step;
[0074] like Figure 3 As shown, after receiving a candidate proposal, the ORDER node first verifies the allocation round identifier, status identifier, candidate resource configuration step number, PEER node identity, and digital signature in the candidate proposal.
[0075] When the allocation round identifier in the candidate proposal is inconsistent with the current allocation round identifier, the status identifier referenced by the candidate proposal is inconsistent with the status identifier of the current prior consensus state, the digital signature verification fails, the candidate resource configuration step number is not greater than the confirmed resource configuration step number, or the candidate resource configuration step number is greater than the maximum resource configuration step number of the allocation round, the ORDER node rejects the candidate proposal.
[0076] After the aforementioned verification is successful, the ORDER node, based on the deterministic resource allocation rules in the current prior consensus state, regenerates the resource configurations from the next resource configuration step after the confirmed resource configuration step to the candidate resource configuration step, and determines whether the corresponding resource configuration can form a task allocation scheme that meets the task allocation conditions. For resource configurations before the candidate resource configuration step, the ORDER node only determines whether there is a scheme that can complete the allocation of all currently unallocated passenger epidemic prevention and control tasks, without generating specific task and epidemic prevention and control operation unit allocation results.
[0077] If none of the resource configurations preceding the candidate resource configuration step can form a task allocation scheme that meets the task allocation conditions, and the candidate resource configuration step can form a task allocation scheme that meets the task allocation conditions, then the candidate resource configuration step is confirmed as the first resource configuration step to meet the task allocation conditions after the current prior consensus state. If any intermediate resource configuration step has already formed a task allocation scheme that meets the task allocation conditions, it means that the candidate resource configuration step has continued to add epidemic prevention and control operation units, and the ORDER node rejects the candidate proposal; if the candidate resource configuration step itself cannot form a task allocation scheme that meets the task allocation conditions, the ORDER node also rejects the candidate proposal.
[0078] If the state data body of the current prior consensus state changes while the candidate proposal has not yet been confirmed by consensus, and the updated state data body and state identifier are confirmed by the ORDER node consensus, then the candidate proposal that references the previous state identifier becomes invalid and is no longer used for the current resource configuration.
[0079] (6) Determine the results of the allocation of epidemic prevention and control tasks for passengers;
[0080] After the candidate resource allocation step passes verification, the system forms a set of candidate task allocation schemes based on the current set of passenger epidemic prevention and control tasks, the compatibility between tasks and work units, and the effective processing capacity of each epidemic prevention and control work unit. This set includes all candidate task allocation schemes that meet the task allocation conditions. Each candidate task allocation scheme assigns an epidemic prevention and control work unit to each passenger epidemic prevention and control task within the current allocation round. The number of passenger epidemic prevention and control tasks received by the same epidemic prevention and control work unit does not exceed its effective processing capacity.
[0081] To ensure that different nodes obtain the same task allocation results under the same prior consensus state and candidate resource configuration steps, passenger epidemic prevention and control tasks are arranged from high to low according to task priority; when task priorities are the same, they are arranged from first to last according to task reception time; when both task priority and task reception time are the same, they are arranged according to the preset order of task identifiers.
[0082] Simultaneously, epidemic prevention and control work units that can participate in the current task allocation are arranged according to the preset order of their identifiers. Following the aforementioned order of passenger epidemic prevention and control tasks, each candidate task allocation scheme is recorded as the corresponding epidemic prevention and control work unit for that passenger epidemic prevention and control task, forming a task allocation sequence. When multiple candidate task allocation schemes exist, different task allocation sequences are compared item by item according to the order of the passenger epidemic prevention and control tasks. At different positions of the first allocated epidemic prevention and control work unit, the epidemic prevention and control work units corresponding to that position are compared according to the preset order of the epidemic prevention and control work units, and the candidate task allocation scheme with the epidemic prevention and control work unit listed first is determined as the priority scheme, thus obtaining a unique task allocation result.
[0083] In this embodiment, the ORDER node determines the passenger epidemic prevention and control task allocation result according to the aforementioned deterministic task allocation rules. In other embodiments, the PEER node or other task allocation program may generate the task allocation result, and then the ORDER node may re-execute or verify it based on the same set of passenger epidemic prevention and control tasks, task-job unit compatibility, effective processing capacity, and deterministic task allocation rules. When the prior consensus state and candidate resource configuration steps are the same, each verification node obtains the same task allocation result according to the same deterministic task allocation rules.
[0084] (7) Establishing a subsequent consensus status and audit records;
[0085] After obtaining the unique passenger epidemic prevention and control task allocation result, the remaining processing capacity of the corresponding epidemic prevention and control operation unit within the current allocation cycle is updated according to the number of passenger epidemic prevention and control tasks received by each operation unit, and the passenger epidemic prevention and control tasks already allocated to the operation unit are updated to the corresponding allocated status. The operation station resources, personnel resources, and equipment resources participating in the current resource allocation are updated to the corresponding configuration status or occupancy status according to the resource allocation result.
[0086] The ORDER node updates the state data body of the preceding consensus state based on the resource configuration results of the candidate resource configuration step, the passenger epidemic prevention and control task allocation results, the updated passenger epidemic prevention and control task information, the updated epidemic prevention and control resource information, and the candidate resource configuration step sequence number. It also writes the candidate resource configuration step sequence number into the confirmed resource configuration step sequence number field, thus obtaining the subsequent state data body. The subsequent state data body inherits the unchanged task and job unit adaptation relationships, deterministic resource configuration rules, and deterministic task allocation rules from the preceding consensus state. When the above information changes before the candidate proposal is confirmed by consensus and then confirmed by the ORDER node, an updated preceding consensus state is formed. Candidate proposals referencing the previous state identifier become invalid, and resource configuration is re-executed based on the updated preceding consensus state. In one implementation, the subsequent state data body also records the state identifier corresponding to the preceding consensus state to establish the association between the preceding and subsequent consensus states.
[0087] The ORDER node generates a successor state identifier based on a successor state data body that does not contain the successor state identifier itself. The successor state consensus state is composed of the successor state data body and its state identifier, and the ORDER node performs consensus confirmation on this successor state. After the successor consensus state is confirmed, the ORDER node generates an audit record associated with it. The audit record includes: allocation round identifier, preceding consensus state identifier, candidate proposal, candidate resource configuration step number, resource configuration result, task allocation result, successor consensus state identifier, and corresponding consensus confirmation information.
[0088] When verifying the resource allocation and task assignment process, the audit records are used to confirm whether the prior consensus state referenced by the candidate proposal is consistent with the effective state of the corresponding allocation round. The continuity between the candidate resource allocation step and the confirmed resource allocation step is verified, and the candidate resource allocation is reconfirmed as the first resource allocation to meet the task assignment conditions based on deterministic resource allocation rules. Simultaneously, the consistency between the task allocation result and the subsequent state is verified based on the resource allocation result, task assignment result, and the task and resource states in the subsequent consensus state. Through the association between the prior consensus state identifier and the subsequent consensus state identifier, the state upon which resource allocation and task assignment are based and its changes within the same allocation round can be further traced.
[0089] (8) Proceed to the next allocation round;
[0090] After the subsequent consensus state is confirmed through consensus, the confirmed resource allocation step number is updated to the candidate resource allocation step number. The subsequent consensus state is used to record the confirmed resource allocation results and passenger epidemic prevention and control task allocation results of the current allocation round.
[0091] Once the assigned passenger epidemic prevention and control tasks within the current allocation round are completed, the current allocation round ends. The next allocation round begins when new passenger epidemic prevention and control tasks arise, or when the status of available workstations, personnel, equipment, or existing epidemic prevention and control work units changes.
[0092] The ORDER node confirms the new or updated information, updates the allocation round identifier, initializes the confirmed resource configuration step number to 0, and redetermines the maximum resource configuration step number of the allocation round based on the current epidemic prevention and control resource status. It also generates a new status identifier based on the updated status data body, forming the preliminary consensus state for the next allocation round.
[0093] If the state data body of the current prior consensus state changes while the candidate proposal has not yet been confirmed by consensus, and the ORDER node confirms the updated state data body and state identifier, then the candidate proposal that references the previous state identifier will no longer be used for the current resource configuration, and the PEER node will regenerate the subsequent resource configuration based on the updated prior consensus state.
[0094] In the current allocation round, the candidate resource allocation steps that have actually passed verification form a subsequent consensus state after completing the corresponding resource allocation and passenger epidemic prevention and control task allocation; the intermediate resource allocation steps that were only used for feasibility judgment before the candidate resource allocation steps do not perform specific task allocation separately, nor are they submitted to consensus separately.
[0095] When all passenger epidemic prevention and control tasks within the current allocation round have been completed, the currently available workstation resources, personnel resources, and equipment resources cannot continue to form epidemic prevention and control work units that meet the requirements, or when the maximum resource allocation step of the allocation round is reached but still cannot meet the task allocation conditions, the current allocation round shall be terminated.
[0096] To further illustrate the candidate resource configuration verification, passenger epidemic prevention and control task allocation, status update, and auditing processes of this invention, a set of specific data is provided below. This data is only used to illustrate the operation of this invention and does not constitute a limitation on task types, resource quantities, or effective processing capacity.
[0097] Let the allocation round identifier be NO1, the current prior consensus state be S0, the state identifier be SID0, the confirmed resource configuration step number be 0, and the maximum resource configuration step number of the allocation round be 4.
[0098] The current deployment rounds include seven passenger epidemic prevention and control tasks. Among them, tasks TID1 to TID4 are on-site screening, totaling four tasks; tasks TID5 to TID7 are testing, totaling three tasks. The testing tasks have a higher priority than the on-site screening tasks.
[0099] The current basic resource allocation includes epidemic prevention and control operation units U1 and U2, and this basic resource allocation is designated as resource allocation step 1. U1 performs on-site screening tasks, with an effective processing capacity of three tasks within the current allocation cycle; U2 performs testing tasks, with an effective processing capacity of one task within the current allocation cycle. Therefore, resource allocation step 1 can only handle three on-site screening tasks and one testing task, which cannot meet the complete allocation requirements of the current seven passenger epidemic prevention and control tasks.
[0100] Currently, there are three resource combinations that can be used to form new epidemic prevention and control work units. Among them, work station W3, personnel H3, and equipment E3 can form an epidemic prevention and control work unit U3 to perform on-site screening tasks, with an effective processing capacity of two tasks; work station W4, personnel H4, and equipment E4 can form an epidemic prevention and control work unit U4 to perform testing tasks, with an effective processing capacity of one task; and work station W5, personnel H5, and equipment E5 can form an epidemic prevention and control work unit U5 to perform testing tasks, with an effective processing capacity of one task.
[0101] Since the current on-site investigation task lacks the processing capacity of one task and the detection task lacks the processing capacity of two tasks, and the detection task has a higher task priority, the PEER node first supplements the detection task with the epidemic prevention and control operation unit.
[0102] The PEER node adds U4 to the resource configuration step 1, forming resource configuration step 2. At this point, the effective processing capacity of the detection task increases to two tasks, but it still cannot meet the processing needs of three detection tasks. Therefore, resource configuration step 2 cannot form a task allocation scheme that meets the conditions for allocating epidemic prevention and control tasks for all passengers.
[0103] The PEER node continues to generate resource configuration step 3 according to the deterministic resource configuration rules, adding U5 based on resource configuration step 2. At this point, the effective processing capacity of the detection task reaches three tasks, which can meet the needs of three detection tasks. However, the on-site investigation task still only has an effective processing capacity of three tasks, which cannot meet the needs of four on-site investigation tasks. Therefore, resource configuration step 3 still cannot form a task allocation scheme that meets the conditions for allocating epidemic prevention and control tasks for all passengers.
[0104] The PEER node continues to generate resource configuration step 4, adding U3 based on resource configuration step 3. At this point, the effective processing capacity of the on-site investigation task reaches five tasks, and the effective processing capacity of the detection task reaches three tasks. Currently, all seven passenger epidemic prevention and control tasks can be assigned to the appropriate epidemic prevention and control operation units. Therefore, resource configuration step 4 can form a task allocation scheme that meets the task allocation conditions for the first time.
[0105] The PEER node generates a candidate proposal containing NO1, SID0, and candidate resource allocation step number 4. The ORDER node regenerates resource allocation steps 1 to 4 based on the prior consensus state S0 and the deterministic resource allocation rules already confirmed therein. It confirms that resource allocation steps 1, 2, and 3 cannot legally allocate all current passenger epidemic prevention and control tasks, while resource allocation step 4 is the first to legally allocate all passenger epidemic prevention and control tasks. Therefore, candidate resource allocation step 4 is confirmed to have passed verification.
[0106] In resource allocation step 4, U2, U4, and U5 each have the processing capacity for one detection task, U1 has the processing capacity for three field investigation tasks, and U3 has the processing capacity for two field investigation tasks. After comparing the candidate task allocation schemes according to the deterministic task allocation rules, a unique task allocation result is obtained. Specifically, TID5 is allocated to U2, TID6 to U4, and TID7 to U5; TID1, TID2, and TID3 are allocated to U1, and TID4 is allocated to U3.
[0107] After the above task allocation is completed, U1, U2, U4, and U5 have zero remaining processing capacity in the current allocation cycle, while U3 has processing capacity for one task remaining. The ORDER node updates the data body of the previous consensus state based on the resource configuration results of resource configuration step 4, the passenger epidemic prevention and control task allocation results, the updated passenger epidemic prevention and control task status, and the epidemic prevention and control resource status, generates a new status identifier SID4, and forms the subsequent consensus state S4.
[0108] The ORDER node simultaneously generates an audit record based on the allocation round identifier NO1, the preceding consensus status identifier SID0, the candidate proposal, the candidate resource configuration step number 4, the resource configuration result, the task allocation result, the subsequent consensus status identifier SID4, and the corresponding consensus confirmation information.
[0109] When verifying this allocation round, the audit record confirms that the preceding consensus state referenced by the candidate proposal is S0. Resource allocation steps 1 to 4 are regenerated according to the deterministic resource allocation rules in S0. It is confirmed that resource allocation steps 1 to 3 cannot meet all task allocation conditions, and resource allocation step 4 is the first resource allocation that meets the task allocation conditions. The task allocation results of TID1 to TID7 and the remaining processing capacity of U1 to U5 are further verified to be consistent with the task status and resource status recorded in the subsequent consensus state S4, thereby completing the verification of this resource allocation and task allocation process.
[0110] If the job position resources, personnel resources, or equipment resources corresponding to U5 become unavailable before consensus confirmation is completed in candidate resource configuration step 4, and this change has been confirmed by the ORDER node to form the pre-consensus state after the current allocation round update, then the candidate proposal referencing SID0 becomes invalid. PEER nodes should regenerate subsequent resource configurations based on the new pre-consensus state and must not continue to use resource configuration step 4 based on S0.
[0111] After the passenger epidemic prevention and control tasks in the current allocation round are completed, the system records the confirmed resource configuration and task allocation results in S4, and records the previous status, candidate resource configuration steps, resource configuration results, task allocation results and subsequent status based on this resource configuration in the corresponding audit record, and the current allocation round ends.
[0112] When new passenger epidemic prevention and control tasks emerge or the status of epidemic prevention and control resources changes, the next allocation round begins. The ORDER node confirms the new or updated information through consensus, updates the allocation round identifier, initializes the confirmed resource configuration step number to 0, and redetermines the maximum resource configuration step number for the allocation round based on the current status of epidemic prevention and control resources. It also generates a new status identifier based on the updated status data body, forming the preliminary consensus state for the next allocation round, and continues to execute resource configuration, task allocation, and the formation of corresponding audit records.
Claims
1. A blockchain-based adaptive allocation and auditing system for epidemic prevention and control resources for inbound and outbound passengers, characterized in that, This includes platform business units and platform consensus units; The platform's business units consist of business nodes, which are used to receive information on passenger epidemic prevention and control tasks, as well as information on workstation resources, personnel resources, and equipment resources. The platform consensus unit consists of consensus nodes, which are used to confirm consensus on allocation round information, passenger epidemic prevention and control task information, epidemic prevention and control resource information, task and operation unit adaptation relationship, deterministic resource allocation rules and deterministic task allocation rules. Based on the confirmed information, a state data body is formed and a corresponding state identifier is generated to obtain the previous consensus state. The platform business unit is also used to form an epidemic prevention and control operation unit based on the deterministic resource allocation rules and resource allocation step sequence number during the effective period of the prior consensus state, using the operation station resources and personnel and equipment resources that meet the corresponding task requirements to deterministically generate subsequent resource allocation, and starting from the next resource allocation step after the confirmed resource allocation step, determine the resource allocation step that can first meet the current passenger epidemic prevention and control task allocation conditions, and propose candidate proposals including allocation round identifier, candidate resource allocation step sequence number and status identifier; The platform consensus unit is also used to verify whether the allocation round identifier and status identifier referenced by the candidate proposal are consistent with the current prior consensus state, and to regenerate the resource configuration from the next resource configuration step after the confirmed resource configuration step to the candidate resource configuration step according to the current prior consensus state. For each resource configuration before the candidate resource configuration step, it only judges whether a task allocation scheme that meets the task allocation conditions can be formed, without executing specific task allocation or making consensus submissions separately. When none of the resource configurations can form a task allocation scheme that meets the task allocation conditions, and the candidate resource configuration step can form a task allocation scheme that meets the task allocation conditions for the first time, the candidate resource configuration step is confirmed to have passed the verification; after the candidate resource configuration step passes the verification, the system... The allocation relationship between passenger epidemic prevention and control tasks and epidemic prevention and control operation units is determined according to the deterministic task allocation rules. The platform consensus unit updates the status data body based on the resource allocation results, task allocation results, updated passenger epidemic prevention and control task information, updated epidemic prevention and control resource information, and candidate resource allocation step number. It also generates a subsequent status identifier based on the updated status data body. The updated status data body and its status identifier form the subsequent consensus status and are confirmed by consensus. The platform consensus unit forms an audit record based on the status identifier of the previous consensus status, candidate proposals, resource allocation results, task allocation results, and the status identifier of the subsequent consensus status. This record is used to verify and trace the resource allocation and task allocation process.
2. The blockchain-based adaptive allocation and auditing system for epidemic prevention and control resources for inbound and outbound passengers as described in claim 1, characterized in that, The status data body includes allocation round information, passenger epidemic prevention and control task information, epidemic prevention and control resource information, task and work unit adaptation relationship, deterministic resource allocation rules, and deterministic task allocation rules; Allocation round information includes allocation round identifier, confirmed resource allocation step number, and maximum resource allocation step number for the allocation round; The passenger epidemic prevention and control task information includes a set of valid passenger epidemic prevention and control tasks. Each passenger epidemic prevention and control task includes at least a task identifier, task type, operation requirements, task priority, task reception time, and task status. The task type is one of epidemiological investigation, on-site screening, or testing. The information on epidemic prevention and control resources includes workstation resources, personnel resources, equipment resources, and information on existing epidemic prevention and control work units. Each epidemic prevention and control work unit includes a work unit identifier, the type of task to be performed, the working conditions, the associated workstation resources, personnel resources and equipment resources, the effective processing capacity, the remaining processing capacity, and the operating status. The status identifier is generated based on the status data body, is not a component of the status data body, and is uniquely associated with the corresponding status data body.
3. The blockchain-based adaptive allocation and auditing system for epidemic prevention and control resources for inbound and outbound passengers as described in claim 2, characterized in that, The deterministic resource allocation rules determine the processing requirements corresponding to each task type based on the task type and number of passenger epidemic prevention and control tasks currently pending, and determine the available processing capacity of the corresponding task type based on the epidemic prevention and control operation units executing the corresponding task type and their effective processing capacity in the current resource allocation; the first resource allocation step of the current allocation round adopts the basic resource allocation of the allocation round; when the current resource allocation step cannot meet the task allocation conditions, the task type with processing requirements greater than available processing capacity is determined based on the processing requirements and available processing capacity corresponding to each task type. When multiple task types require additional processing capacity, the task type for which processing capacity needs to be supplemented is determined based on the highest priority among the pending passenger epidemic prevention and control tasks corresponding to each task type. When multiple task types have the same highest priority, one task type is determined according to the preset task type order. The platform business unit selects workstation resources that support the task type from the workstation resources that have not yet participated in the current resource configuration, and selects available personnel resources that meet the requirements of the corresponding positions and available equipment resources that meet the requirements of the task type from the personnel and equipment resources that have not yet been occupied by other epidemic prevention and control workstations in the current resource configuration, respectively, to form a new epidemic prevention and control workstation, thus obtaining the next resource configuration step. When multiple resource combinations that can form a new epidemic prevention and control workstation exist, the resource combination is determined according to the preset selection order of workstation resources, personnel resources, and equipment resources. The subsequent resource configuration adds an epidemic prevention and control workstation based on the previous resource configuration, and the epidemic prevention and control workstations in the previous resource configuration are retained in the subsequent resource configuration. When the prior consensus state and resource configuration step number are the same, the deterministic resource configuration rules generate the same resource configuration.
4. The blockchain-based adaptive allocation and auditing system for epidemic prevention and control resources for inbound and outbound passengers as described in claim 2, characterized in that, When forming an epidemic prevention and control work unit, the workstation resources used should support the task type performed by the work unit, personnel resources should meet the job requirements of the corresponding task type, and equipment resources should meet the equipment requirements of the corresponding task type. All workstation resources, personnel resources, and equipment resources should be available. The same workstation resource, personnel resource, or equipment resource should not be repeatedly configured to multiple epidemic prevention and control work units in the same resource allocation. The single-task processing time corresponding to different task types should be predetermined and confirmed as part of the deterministic resource allocation rules. Based on the available time of workstation resources, personnel resources, and equipment resources in the current allocation round and the single-task processing time of the corresponding task type, the number of passenger epidemic prevention and control tasks that workstation resources, personnel resources, and equipment resources can support should be determined, and the minimum number of tasks should be taken as the effective processing capacity of the epidemic prevention and control work unit. The same epidemic prevention and control work unit corresponds to a specific task type in the same allocation round. When the task type and operational requirements of a passenger epidemic prevention and control task match the task type and operational conditions performed by the epidemic prevention and control work unit, a task-work unit compatibility relationship is determined between the passenger epidemic prevention and control task and the epidemic prevention and control work unit.
5. The blockchain-based adaptive allocation and auditing system for epidemic prevention and control resources for inbound and outbound passengers as described in claim 1, characterized in that, The candidate proposals also include business node identifiers and digital signatures. The platform consensus unit verifies the allocation round identifier, status identifier, business node identifier, and digital signature in the candidate proposals. If the allocation round identifier or status identifier is inconsistent with the current prior consensus state, the digital signature verification fails, the candidate resource configuration step number is not greater than the confirmed resource configuration step number, or the candidate resource configuration step number is greater than the maximum resource configuration step number of the allocation round, the candidate proposal is rejected. After successful verification, the platform consensus unit regenerates the resource configuration from the next resource configuration step after the confirmed resource configuration step to the candidate resource configuration step according to the deterministic resource configuration rules in the current prior consensus state, and then determines... The system determines whether the corresponding resource configuration can form a task allocation scheme that meets the task allocation conditions; for resource configurations prior to the candidate resource configuration step, it determines whether a task allocation scheme that meets the task allocation conditions exists, without generating specific task allocation results or submitting consensus separately; if any intermediate resource configuration step has already formed a task allocation scheme that meets the task allocation conditions, or if the candidate resource configuration step cannot form a task allocation scheme that meets the task allocation conditions, the candidate proposal is rejected; if the state data body of the current prior consensus state changes and a new state identifier is formed after consensus confirmation while the candidate proposal has not yet been confirmed, the candidate proposal that references the state identifier before the update is rejected.
6. The blockchain-based adaptive allocation and auditing system for epidemic prevention and control resources for inbound and outbound passengers as described in claim 5, characterized in that, The task allocation conditions include that each passenger epidemic prevention and control task is assigned to an epidemic prevention and control operation unit that has a task and operation unit adaptation relationship with it, both the passenger epidemic prevention and control task and the epidemic prevention and control operation unit are in an effective state, and the number of passenger epidemic prevention and control tasks received by each epidemic prevention and control operation unit does not exceed the corresponding effective processing capacity; when all passenger epidemic prevention and control tasks to be allocated in the current allocation round can be allocated according to the task allocation conditions, it is determined that the corresponding resource configuration can form a set of candidate task allocation schemes that meet the task allocation conditions.
7. The blockchain-based adaptive allocation and auditing system for epidemic prevention and control resources for inbound and outbound passengers as described in claim 6, characterized in that, The candidate task allocation scheme set includes all candidate task allocation schemes that meet the task allocation conditions in the current allocation round. Each candidate task allocation scheme determines an epidemic prevention and control operation unit for each passenger epidemic prevention and control task in the current allocation round. Passenger epidemic prevention and control tasks are arranged from high to low priority. When task priorities are the same, they are arranged from first to last according to task reception time. When both task priorities and task reception time are the same, passenger epidemic prevention and control tasks are arranged according to the preset order of task identifiers. Each epidemic prevention and control operation unit is arranged according to the preset order of epidemic prevention and control operation unit identifiers. Each candidate task allocation scheme is recorded as the epidemic prevention and control operation unit determined for the corresponding passenger epidemic prevention and control task in the order of passenger epidemic prevention and control tasks, forming a task allocation sequence. When there are multiple candidate task allocation schemes, each task allocation sequence is compared item by item according to the order of passenger epidemic prevention and control tasks. At the first position where there are different epidemic prevention and control operation units, the epidemic prevention and control operation units corresponding to that position are compared according to the preset order of epidemic prevention and control operation units. The candidate task allocation scheme with the epidemic prevention and control operation units arranged first is determined as the priority scheme, thereby obtaining the task allocation result.
8. The blockchain-based adaptive allocation and auditing system for epidemic prevention and control resources for inbound and outbound passengers according to claim 7, characterized in that, After completing the allocation of passenger epidemic prevention and control tasks, the platform consensus unit updates the remaining processing capacity of the corresponding epidemic prevention and control operation unit according to the number of passenger epidemic prevention and control tasks received by each epidemic prevention and control operation unit, and updates the task status of the corresponding passenger epidemic prevention and control tasks as well as the configuration status or occupancy status of the work position resources, personnel resources and equipment resources that constitute the epidemic prevention and control operation unit.
9. The blockchain-based adaptive allocation and auditing system for epidemic prevention and control resources for inbound and outbound passengers as described in claim 1, characterized in that, The audit records include allocation round identifiers, status identifiers of prior consensus states, candidate resource configuration step numbers, candidate proposals, resource configuration results, task allocation results, status identifiers of subsequent consensus states, and corresponding consensus confirmation information. The platform consensus unit verifies the prior consensus states referenced by the candidate resource configuration, the continuity of resource configuration steps, resource configuration results, task allocation results, and the correlation between prior consensus states and subsequent consensus states based on the audit records, and traces the resource configuration and task allocation process based on the verification results.
10. The blockchain-based adaptive allocation and auditing system for epidemic prevention and control resources for inbound and outbound passengers according to claim 1, characterized in that, After the current allocation round ends, if new passenger epidemic prevention and control tasks arise or the status of epidemic prevention and control resources changes, the platform consensus unit will confirm the new or updated information, update the allocation round identifier, initialize the confirmed resource configuration step number to 0, and redetermine the maximum resource configuration step number of the allocation round based on the current epidemic prevention and control resource status. A new status identifier will be generated based on the updated status data body, forming the preliminary consensus state for the next allocation round. If the status data body of the current preliminary consensus state changes and is confirmed by the platform consensus unit before the candidate proposals for the current allocation round are confirmed, the platform consensus unit will generate a new status identifier based on the updated status data body, forming the updated preliminary consensus state for the current allocation round.
