Contract transfer method and system for container leasing industry
By constructing a directed graph of contractual relationships and calculating transitive closures, explicit and implicit transformation relationships are determined, and transfer contract execution paths are generated. This solves the problem of low efficiency and accuracy in the execution of transfer contracts in the container leasing industry, and achieves efficient and accurate container migration.
Patent Information
- Application Number
- CN202511307476.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-13
- Publication Date
- 2025-12-23
AI Technical Summary
The efficiency and accuracy of contract transfer transactions in the container leasing industry are low.
By constructing a directed graph of contractual relationships, calculating transitive closures, determining explicit and implicit transformation relationships, and generating contract execution paths, the execution path of container leasing business is optimized.
It improves the accuracy and efficiency of contract transfer operations, ensures the correctness of container migration routes, and meets various business needs and scenarios.
Smart Images

Figure CN121189592A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of container lease industry, in particular to a method and system for container lease industry. BACKGROUND
[0002] In the container lease business, the transfer contract as a standard business scenario can realize efficient management of container assets, and also can analyze historical transfer contract business and predict the development of future transfer contract business based on historical transfer contract data. The transfer contract business plays a key role in the entire container lease industry. Therefore, how to efficiently and accurately perform the transfer contract business of the container lease industry is a very important problem.
[0003] Based on this, the present application provides a method and system for container lease industry. SUMMARY
[0004] To solve the problem of low efficiency and low accuracy of the existing container lease industry transfer contract business execution, the present application provides a method and system for container lease industry, which constructs a contract relationship directed graph, calculates a transitive closure, determines explicit and implicit conversion relationships, sorts target setting groups, generates a container transfer contract execution path, and performs a container transfer contract operation according to the transfer contract execution path, to improve the accuracy and efficiency of the transfer contract business execution.
[0005] The present application provides a method for container lease industry, comprising:
[0006] S1: Obtain parameter information: obtain the parameter information of each setting group configured by the user through the transfer contract configuration page, the setting group at least including the conversion relationship between two contracts;
[0007] S2: Determine the target setting group: determine all currently effective setting groups according to the setting effective state, effective date and current date in the parameter information of each setting group, and use them as target setting groups;
[0008] S3: Build a graph model and calculate a transitive closure: build a contract relationship directed graph according to the conversion relationship between each target contract included in each target setting group, and calculate the transitive closure of all target contract pairs in the contract relationship directed graph;
[0009] S4: Determine the explicit and implicit conversion relationships: determine all explicit and implicit conversion relationships corresponding to each target setting group according to the transitive closure and the contract relationship directed graph;
[0010] S5: performing a conversion operation: when the business verification of the target setting groups is passed, the target setting groups are sorted according to the explicit conversion relationship and the implicit conversion relationship, a conversion execution path is generated, and the container corresponding to the target setting groups is converted according to the order of the conversion execution path.
[0011] Optionally, the S1 specifically comprises:
[0012] In response to a creation operation of the user on the setting group creation page, the transfer-in contract, the transfer-out contract and the conversion relationship of each created setting group are determined, and each setting group is constructed.
[0013] The user is shown a clause library for configuring each contract in each setting group through a conversion contract configuration page; the clause library comprises a plurality of parameters for configuring the contract.
[0014] In response to a configuration operation of the user on the conversion contract configuration page, the parameter information of each setting group configured by the user is determined.
[0015] Optionally, the S3 specifically comprises:
[0016] According to the conversion relationship between the target contracts included in each target setting group, an adjacency list of each target contract is determined.
[0017] According to the adjacency list, a contract relationship directed graph is constructed, taking each target contract as a node and the conversion relationship between the target contracts as an edge.
[0018] A shortest path solving algorithm is used to calculate the shortest path of each target contract pair in the contract relationship directed graph.
[0019] According to the shortest path of each target contract pair, the transitive closure of each target contract pair is determined, which is used to represent the reachability of the two target contracts included in each target contract pair.
[0020] Optionally, when there is a direct conversion relationship between any two target contracts in the target setting group, there is an explicit conversion relationship between the two target contracts; when there is an indirect conversion relationship between the two target contracts in the target setting group, there is an implicit conversion relationship between the two target contracts; when the final transfer-in target contract of any target setting group is the same as the starting transfer-out target contract of another target setting group, there is an implicit conversion relationship between the any target setting group and the another target setting group.
[0021] Optionally, the method for business verification of the target setting groups in the S5 is:
[0022] traversing each node in the contract relationship directed graph, and saving the visited nodes in a recursion stack by recursion;
[0023] when the node accessed at the next time in the traversal process is the same as the node currently saved in the recursion stack, determining the parent node of the currently accessed node and the parent node of the node accessed before the current time by a path backtracking algorithm, and generating a cycle path through which the target setting groups are determined not to pass the business verification;
[0024] when all the nodes accessed at the next time in the traversal process are different from the node currently saved in the recursion stack, determining that the target setting groups pass the business verification.
[0025] Optionally, the step S5 of sorting the target setting groups according to the all explicit conversion relationships and implicit conversion relationships, and generating a conversion contract execution path specifically includes:
[0026] determining a first dependency relationship between the target setting groups according to the all explicit conversion relationships and implicit conversion relationships, and determining a second dependency relationship between the target contracts in the target setting groups;
[0027] constructing a setting group relationship directed graph with the each target setting group as a node and the first dependency relationship between the target setting groups as an edge;
[0028] determining a node in-degree table corresponding to the setting group relationship directed graph, and topologically sorting the target setting groups according to the node in-degree table to obtain a setting group sequence;
[0029] generating a conversion contract execution path according to the setting group sequence and the second dependency relationship between the target contracts in the target setting groups.
[0030] Optionally, the step S5 of performing a conversion contract operation on the container corresponding to the target setting group in the order of the conversion contract execution path specifically includes:
[0031] determining the container in the target contract in the target setting group according to the box number information in the parameter information of the target setting group, and taking the container as a container to be converted;
[0032] determining a current business state of the container to be converted, and performing a dynamic verification on the container to be converted according to the current business state;
[0033] when the dynamic verification passes, performing a conversion contract operation on the container to be converted in the order of the conversion contract execution path.
[0034] Optionally, the method further includes:
[0035] providing a transfer contract record query page to the user; the transfer contract record query page provides a plurality of query fields, each query field including a business unit, a transfer-out contract number, a set effective date, a transfer-in contract number, a set number, and a set effective state;
[0036] In response to a setting operation of the user, determining the query values of the query fields set by the user, and generating a query condition;
[0037] querying transfer contract records in a transfer contract record database that meet the query condition, and displaying the transfer contract records to the user.
[0038] Optionally, S2 specifically includes:
[0039] For each set group, determining the set effective state and the effective date in the parameter information of the set group;
[0040] When the effective date is earlier than the current date and the set effective state is effective, the set group is taken as a target set group that is currently effective.
[0041] The present specification provides a system for transfer contracts in the container leasing industry, the system including a business configuration module, a business logic module, and a business execution module, wherein:
[0042] The business configuration module is configured to obtain parameter information of each set group configured by a user through a transfer contract configuration page, the set group including at least a transfer relationship between two contracts;
[0043] The business logic module is configured to determine all target set groups that are currently effective according to the parameter information of each set group, and automatically determine all explicit transfer relationships and implicit transfer relationships, to generate a transfer contract execution path when business checks of the target set groups pass; including: a target set group determination submodule configured to determine all set groups that are currently effective according to the set effective state, the effective date, and the current date in the parameter information of each set group, and take the set groups as target set groups; a graph model construction submodule configured to construct a contract relationship directed graph according to the transfer relationship between each target contract included in each target set group; a transitive closure calculation submodule configured to calculate a transitive closure of all target contract pairs in the contract relationship directed graph; a relationship generation submodule configured to determine all explicit transfer relationships and implicit transfer relationships corresponding to the target set groups according to the transitive closure and the contract relationship directed graph; and a path generation submodule configured to sort the target set groups according to the all explicit transfer relationships and implicit transfer relationships, and generate a transfer contract execution path when business checks of the target set groups pass;
[0044] The business execution module is configured to perform a transfer contract operation on the containers corresponding to the target setting groups in the order of the transfer contract execution path.
[0045] The above at least one technical solution adopted by the present specification can achieve the following beneficial effects:
[0046] The method for transferring contracts in the container leasing industry provided by the present specification can obtain parameter information of each setting group configured by a user through a transfer contract configuration page, and the setting group includes at least a transfer relationship between two contracts. The user can directly configure the parameter information on the transfer contract configuration page, thereby ensuring the accuracy of the data, providing data support for subsequent transfer contracts, and providing a better interactive experience for the user. Then, all currently effective setting groups are determined as target setting groups according to the setting effective state, the effective date, and the current date in the parameter information of each setting group. Since the contracts in the setting group configured by the user may not be effective at the current time but may be effective in the future, the target setting groups that are currently effective need to be determined according to the setting effective state, the effective date, and the current date, thereby ensuring the accurate execution of the transfer contract business.
[0047] Then, a contract relationship directed graph is constructed according to the transfer relationship between each target contract included in each target setting group, and a transitive closure of all target contract pairs in the contract relationship directed graph is calculated. According to the transitive closure and the contract relationship directed graph, all explicit transfer relationships and implicit transfer relationships corresponding to each target setting group are determined. By constructing the graph model, a basic data structure is provided for subsequent processing, and it is also helpful to subsequently determine the explicit transfer relationship between the target contracts in the target setting group. By calculating the transitive closure in the contract relationship directed graph, the reachability between all target contract pairs in the contract relationship directed graph can be determined, which is helpful to subsequently determine the implicit transfer relationship between the target setting groups and the target contracts in the target setting group. Then, when the business verification of each target setting group is passed, each target setting group is sorted according to all explicit transfer relationships and implicit transfer relationships, a transfer contract execution path is generated, and a transfer contract operation is performed on the containers corresponding to each target setting group in the order of the transfer contract execution path. The above method solves the problem of inaccurate path and order in the transfer contract business execution process, ensures the correctness of the container migration path, and ensures that the container can be migrated to the final target contract, thereby ensuring that the transfer contract business can be accurately and efficiently executed.
[0048] In the present application, when obtaining the parameter information of the configuration, the user can be provided with a setting group creation page first, so that the user can configure the transfer-in contract, the transfer-out contract and the conversion relationship between the contracts of the setting group on the setting group creation page to create the setting group. The contract transfer configuration page shows the user a clause library for configuring the contract, and the clause library includes a plurality of parameters for configuring the contract. The user can flexibly configure the parameters of the contract on the contract transfer configuration page to meet various business needs and business scenarios.
[0049] In the present application, when constructing the graph model and calculating the transitive closure, the adjacency table of each target contract can be determined according to the conversion relationship between the target contracts included in each target setting group. According to the adjacency tables, a contract relationship directed graph is constructed, in which each target contract is a node and the conversion relationship between the target contracts is an edge. A shortest path solving algorithm is used to calculate the shortest path of each target contract pair in the contract relationship directed graph. According to the shortest path of each target contract pair, the transitive closure of each target contract pair is determined, which represents the reachability of the two target contracts included in each target contract pair. Through the adjacency table and the graph model construction technology, the accuracy of the constructed contract relationship directed graph is ensured. Through the shortest path solving algorithm to calculate the shortest path of the target contract pair, the transitive closure of the target contract pair is determined, thereby ensuring the accuracy of the determined transitive closure and providing data support for subsequent determination of explicit conversion relationship and implicit conversion relationship.
[0050] In the present application, when there is a direct conversion relationship between any two target contracts in a target setting group, there is an explicit conversion relationship between the two target contracts. When there is an indirect conversion relationship between any two target contracts in a target setting group, there is an implicit conversion relationship between the two target contracts. When the final transfer-in target contract of any target setting group is the same as the starting transfer-out target contract of another target setting group, there is an implicit conversion relationship between the target setting group and the other target setting group. By determining the explicit conversion relationship and the implicit conversion relationship of each target setting group, it is helpful to determine the dependency relationship between the target setting groups and within the target setting groups, to provide a basis for subsequent generation of contract transfer execution path, thereby ensuring the accuracy of the generated contract transfer execution path and the accurate execution of the contract transfer business.
[0051] In the present application, the business check can be performed in advance for each target setting group, so as to ensure that the parameter information configured by the user is reasonable and the relationship between the multiple target setting groups conforms to the business rules. Specifically, each node in the contract relationship directed graph can be traversed, and the nodes that have been visited can be saved through a recursive stack. When the node to be visited at the next time in the traversal process is the same as the node currently saved in the recursive stack, the parent node of the currently visited node and the parent node of the node visited before the current time are determined through a path backtracking algorithm, and a loop path is generated. Through the loop path, it is determined that each target setting group does not pass the business check. When all the nodes to be visited at the next time in the traversal process are different from the node currently saved in the recursive stack, it is determined that each target setting group passes the business check. Through the traversal of the nodes in the contract relationship directed graph, the recursive stack and the path backtracking algorithm, it is determined whether there is a loop path in the contract relationship directed graph. When the loop path exists, it indicates that the contract relationship directed graph is a loop graph, and then the parameter information configured by the user can be unreasonable or the relationship between the multiple target setting groups does not conform to the business rules. When the loop path does not exist, it indicates that the contract relationship directed graph is an acyclic graph, and then the parameter information configured by the user is reasonable or the relationship between the multiple target setting groups conforms to the business rules.
[0052] In the present application, when the contract execution path is generated, the first dependency relationship between each target setting group can be determined according to all the explicit conversion relationships and the implicit conversion relationships, and the second dependency relationship between each target contract in each target setting group can be determined. A setting group relationship directed graph is constructed, in which each target setting group is taken as a node and the first dependency relationship between each target setting group is taken as an edge. A node in-degree table corresponding to the setting group relationship directed graph is determined. According to the node in-degree table, the topological sorting of each target setting group is performed to obtain a setting group sequence. According to the setting group sequence and the second dependency relationship between each target contract in each target setting group, the contract execution path is generated. Based on all the explicit conversion relationships and the implicit conversion relationships, the graph model construction, the node in-degree table and the topological sorting technology are combined to ensure the accuracy of the generated contract execution path.
[0053] In the present application, in order to ensure that the container for performing the contract conversion operation is an operable container and avoid the misoperation of the contract conversion business, the container in each target setting group in each target contract can be determined according to the container number information in the parameter information of each target setting group, and the container is taken as a container to be converted. The current business state of the container to be converted is determined, and the dynamic check is performed on the container to be converted according to the current business state. When the dynamic check is passed, the contract conversion operation is performed on the container to be converted in the order of the contract execution path. Through the dynamic check on the container to be converted based on the current business state, it is ensured that the container to be converted is an operable container for performing the contract conversion operation.
[0054] The application provides a user with a transfer contract record query page, and the transfer contract record query page provides a plurality of query fields, each of which includes a business unit, a transfer contract number, a set effective date, a transfer-in contract number, a set number, and a set effective state. The user can flexibly combine each query field and flexibly set the query value of each query field based on the user's query requirements, generate a query condition, and query out the transfer contract record meeting the query condition to display to the user, so as to meet the user's query requirements.
[0055] The present specification provides a system for a transfer contract in the container leasing industry, which includes a business configuration module, a business logic module, and a business execution module. The business configuration module obtains parameter information of each set group configured by a user through a transfer contract configuration page, and the set group includes at least a conversion relationship between two contracts. The user can directly configure the parameter information on the transfer contract configuration page, so as to ensure the accuracy of the data and provide data support for subsequent transfer contracts.
[0056] The business logic module determines all currently effective target set groups according to the parameter information of each set group, and automatically determines all explicit conversion relationships and implicit conversion relationships, so as to generate a transfer contract execution path when the business verification of each target set group is passed. The business logic module can include a target set group determination submodule for determining all currently effective set groups according to the set effective state, the effective date, and the current date in the parameter information of each set group, a graph model construction submodule for constructing a contract relationship directed graph according to the conversion relationship between each target contract included in each target set group, a transitive closure calculation submodule for calculating the transitive closure of all target contract pairs in the contract relationship directed graph, a relationship generation submodule for determining all explicit conversion relationships and implicit conversion relationships corresponding to each target set group according to the transitive closure and the contract relationship directed graph, and a path generation submodule for sorting each target set group according to all explicit conversion relationships and implicit conversion relationships when the business verification of each target set group is passed, and generating a transfer contract execution path. The business execution module performs a transfer contract operation on the container corresponding to each target set group in the order of the transfer contract execution path, solves the problem of inaccurate path and order in the transfer contract business execution process, ensures the correctness of the container migration path, and ensures that the container can be migrated to the final target contract, so as to ensure that the transfer contract business can be accurately and efficiently executed. BRIEF DESCRIPTION OF DRAWINGS
[0057] Figure 1 A flowchart of a method for a transfer contract in the container leasing industry provided in the present specification;
[0058] Figure 2 A schematic diagram of a set group relationship directed graph provided in the present specification;
[0059] Figure 3 a schematic diagram of a contract conversion configuration page provided in the present specification;
[0060] Figure 4 a schematic diagram of a group creation page provided in the present specification;
[0061] Figure 5 a schematic diagram of a contract conversion service executed for the container leasing industry provided in the present specification;
[0062] Figure 6 a structural diagram of a contract conversion system for the container leasing industry provided in the present specification;
[0063] Figure 7 a structural diagram of another contract conversion system for the container leasing industry provided in the present specification. DETAILED DESCRIPTION
[0064] For the purpose, technical solutions and advantages of the present specification to be clearer, the technical solutions of the present specification will be described clearly and completely in the following with reference to the embodiments of the present specification and corresponding drawings. Obviously, the described embodiments are only some of the embodiments of the present specification, but not all the embodiments. Based on the embodiments in the present specification, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the present specification.
[0065] The present specification provides a method and system for contract conversion for the container leasing industry. The technical solutions provided by the embodiments of the present specification will be described in detail below with reference to the drawings.
[0066] The present specification provides a method for contract conversion for the container leasing industry, as shown in Figure 1 Figure 1 a flowchart of a method for contract conversion for the container leasing industry provided in the present specification, Figure 1 specifically comprising the following steps:
[0067] S1: obtaining parameter information: obtaining the parameter information of each set group configured by the user through the contract conversion configuration page, wherein the set group at least includes the conversion relationship between two contracts.
[0068] In the specification, the device for transferring contracts can acquire parameter information, i.e. through a contract transfer configuration page, parameter information of each set group configured by a user. The device for transferring contracts can be a server, can also be a system or a module in the system, or can be an electronic device such as a desktop computer, a notebook computer, etc. For the convenience of description, the following will take the server as the execution subject to describe a method for transferring contracts in the container leasing industry provided in the specification.
[0069] The set group includes at least a conversion relationship between two contracts, which refers to the conversion of a container from a transfer-out contract to a transfer-in contract. The contract is a container leasing contract, such as three container leasing contracts A, A0, and A1. The age of the container is required to be 0-3 years to be charged according to the contract A, 3-9 years to be charged according to the contract A0, and more than 9 years to be charged according to the contract A1. At this time, the set group to be configured includes three conversion relationships of contract A→contract A0, contract A→contract A1, and contract A0→contract A1.
[0070] The parameter information can be configured by the user, and the contract transfer configuration page provides a clause library for configuring each contract in each set group. The clause library includes a plurality of parameters for configuring the contract, and the user configures the parameters of the contract through the contract transfer configuration page. The parameter information can include set group information, contract basic information, contract rule information, and container information. The set group information can include set number, current version, last update date, etc. The contract basic information includes contract number, business unit, customer, contract type, whether to inherit the lease start date, etc. The contract rule information includes set effective state, effective date, container age, billing start date, container type, lease start location, lease days, etc. The container information can include container number, container type, quantity, etc.
[0071] S2: Determine the target set group: according to the set effective state, effective date, and current date in the parameter information of each set group, determine all currently effective set groups as target set groups.
[0072] In the specification, the server can determine the target set group, i.e. according to the set effective state, effective date, and current date in the parameter information of each set group, determine all currently effective set groups as target set groups. The set effective state includes one of effective and ineffective, which is used to represent whether the target contract in the target set group is effective.
[0073] Specifically, the server can determine the set effective state and effective date in the parameter information of each set group. When the effective date is earlier than the current date and the set effective state is effective, the set group is determined as the currently effective target set group.
[0074] S3: constructing a graph model and calculating a transitive closure: constructing a contract relationship directed graph according to the conversion relationship between each target contract included in each target setting group, and calculating the transitive closure of all target contract pairs in the contract relationship directed graph.
[0075] In the present specification, the server can construct a graph model and calculate a transitive closure, that is, construct a contract relationship directed graph according to the conversion relationship between each target contract included in each target setting group, and calculate the transitive closure of all target contract pairs in the contract relationship directed graph. Among them, the target contract is the contract included in the target setting group. The contract relationship directed graph can be constructed according to the conversion relationship between each target contract in each target setting group. The node in the contract relationship directed graph represents the target contract, which can be represented by the contract number corresponding to the target contract, and of course can also be represented by other identifiers or information that can represent the target contract, which is not specifically limited in the present specification. The edge in the above-mentioned contract relationship directed graph represents the conversion relationship between the target contracts. The above-mentioned transitive closure can be determined based on the shortest path between any two nodes (i.e. target contracts) in the contract relationship directed graph. When there is a shortest path, it means that any two nodes are reachable, and when there is no shortest path or the shortest path is empty, it means that any two nodes are not reachable. When determining the shortest path, a pre-set shortest path solving algorithm or any existing shortest path solving algorithm can be used to determine the shortest path. The above-mentioned shortest path solving algorithm can be the Floyd-Warshall algorithm, and can also be the Dijkstra algorithm, which is not specifically limited in the present specification. The transitive closure is used to represent the reachability between any two target contracts in the contract relationship directed graph. The transitive closure can be represented in the form of a matrix, and each element in the matrix represents whether the two target contracts in each target contract pair (i.e. any two nodes in the contract relationship directed graph) are reachable. It can be represented by 1 for reachable and 0 for unreachable.
[0076] In the above-mentioned S3, when constructing the contract relationship directed graph, the server can determine the adjacency list of each target contract according to the conversion relationship between each target contract included in each target setting group. According to each adjacency list, a contract relationship directed graph is constructed, in which each target contract is a node and the conversion relationship between each target contract is an edge. Among them, each target contract has a corresponding adjacency list, and the adjacency list stores other target contracts that have a conversion relationship with the target contract. Specifically, the contract number of the other target contract can be stored, or other identifiers or information that can represent the other target contract can be stored, which is not specifically limited in the present specification.
[0077] In the calculation of the transitive closure in S3, the server can use a shortest path solving algorithm to calculate the shortest path of all target contract pairs in the contract relationship directed graph. According to the shortest path of each target contract pair, the transitive closure of each target contract pair is determined. Wherein, the target contract pair is composed of any two target contracts in the contract relationship directed graph. The transitive closure is used to represent the reachability of the two target contracts in each target contract pair. In the determination of the transitive closure of each target contract pair according to the shortest path of each target contract pair, for each target contract pair, it can be judged whether the shortest path exists or the shortest path is empty, if yes, it is determined that the two target contracts in the target contract pair are reachable and serve as the transitive closure of the target contract pair. If not, it is determined that the two target contracts in the target contract pair are not reachable and serve as the transitive closure of the target contract pair.
[0078] S4: Determining explicit conversion relationship and implicit conversion relationship: determining all explicit conversion relationships and implicit conversion relationships corresponding to the target setting groups according to the transitive closure and the contract relationship directed graph.
[0079] In the present specification, the server can determine explicit conversion relationships and implicit conversion relationships, i.e., determine all explicit conversion relationships and implicit conversion relationships corresponding to each target setting group according to the transitive closure and contract relationship directed graph. When there is a direct conversion relationship between any two target contracts in a target setting group, there is an explicit conversion relationship between the any two target contracts. The any two target contracts are directly connected in the contract relationship directed graph, and then the any two target contracts have a direct conversion relationship and an explicit conversion relationship. For example, contract A0 and contract A1 are directly connected in the contract relationship directed graph, i.e., contract A0→contract A1, and then contract A0 and contract A1 have a direct conversion relationship and an explicit conversion relationship, i.e., contract A0→contract A1. When there is an indirect conversion relationship between any two target contracts in a target setting group, there is an implicit conversion relationship between the any two target contracts. The transitive closure of the any two target contracts is reachable and not directly connected in the contract relationship directed graph, and then the any two target contracts have an indirect conversion relationship and an implicit conversion relationship. For example, contract A1 and contract B1 are reachable and not directly connected in the contract relationship directed graph, and the shortest path is contract A1→contract B0→contract B1, and then contract A1 and contract B1 have an indirect conversion relationship and an implicit conversion relationship, i.e., contract A1→contract B1. When the final transition-in target contract of any target setting group is the same as the starting transition-out target contract of another target setting group, there is an implicit conversion relationship between the any target setting group and the another target setting group. The out-degree of the final transition-in target contract is zero in the contract relationship directed graph, and the in-degree of the starting transition-out target contract is zero in the contract relationship directed graph. For example, the conversion relationship of each target contract in setting group 1 is contract A0→contract A1, and the conversion relationship of each target contract in setting group 2 is contract A1→contract B0→contract B1. The final transition-in target contract of setting group 1 is contract A1, and the starting transition-out target contract of setting group 2 is contract A1. The final transition-in target contract of setting group 1 is the same as the starting transition-out target contract of setting group 2, and then setting group 1 and setting group 2 have an implicit conversion relationship, i.e., setting group 1→setting group 2.
[0080] S5: performing a contract transition operation: when the business verification of the target setting groups passes, sorting the target setting groups according to all explicit conversion relationships and implicit conversion relationships, generating a contract transition execution path, and performing a contract transition operation on the containers corresponding to the target setting groups in the order of the contract transition execution path.
[0081] In the present specification, the server can perform a conversion operation, i.e., when the service check of each target setting group passes, according to all explicit conversion relations and implicit conversion relations, the target setting groups are sorted, a conversion execution path is generated, and the containers corresponding to the target setting groups are operated according to the order of the conversion execution path. The above-mentioned service check mainly determines whether the parameter information configured by the user is reasonable and whether the conversion relationship between the setting groups and the contracts conforms to the business rules.
[0082] When the service check of each target setting group is performed in S5, the server can perform loop detection on the contract relationship directed graph, i.e., whether there is a loop in the contract relationship directed graph. If there is a loop, it means that each target setting group does not pass the service check. If there is no loop, it means that each target setting group passes the service check. Therefore, the server can traverse each node (i.e., target contract) in the contract relationship directed graph and save the nodes that have been visited through a recursive stack. When the next node to be visited in the traversal process is the same as the node currently saved in the recursive stack, the parent nodes of the currently visited node and the nodes visited before the current time are determined through a path backtracking algorithm, and a loop path is generated. Through the loop path, it is determined that each target setting group does not pass the service check. When all the next nodes to be visited in the traversal process are different from the nodes currently saved in the recursive stack, it is determined that each target setting group passes the service check. In the above-mentioned traversal of each node in the contract relationship directed graph, the server can use a depth-first search (DFS) algorithm to traverse each node in the contract relationship directed graph. The next node to be visited is any child node of the node visited at the current time. The above-mentioned path backtracking algorithm can be any existing algorithm, and the above-mentioned currently visited node is the node visited at the current time.
[0083] When the server determines the parent node, it can first determine the parent node of the currently visited node from the currently visited node, then take the determined parent node as the currently visited node again, continue to determine the parent node, and stop until the determined parent node is the next node to be visited which is the same as the node currently saved in the recursive stack. Subsequently, according to all the determined parent nodes, a loop path can be generated. The starting node of the loop path is the next node to be visited which is the same as the node currently saved in the recursive stack, and the ending node is the currently visited node. The loop path is the path from the starting node to the ending node, and all the nodes in the loop path except the ending node are the determined parent nodes. The above-mentioned loop path is used for service check. If there is no loop path, it is considered that the parameter information configured by the target setting group is unreasonable, or the conversion relationship between multiple target setting groups does not conform to the business rules. At this time, the exception can be thrown and recorded, and the execution of the conversion business is stopped.
[0084] In the above S5, when the execution paths of the conversion contracts are generated according to all the explicit conversion relations and the implicit conversion relations, the server can determine the first dependency relations between the target setting groups and the second dependency relations between the target contracts in each target setting group according to all the explicit conversion relations and the implicit conversion relations. A setting group relation directed graph is constructed, in which each target setting group is a node, and the first dependency relations between the target setting groups are edges. A node in-degree table corresponding to the setting group relation directed graph is determined. According to the node in-degree table, a topological sorting of the target setting groups is performed to obtain a setting group sequence. According to the setting group sequence and the second dependency relations between the target contracts in each target setting group, the execution paths of the conversion contracts are generated.
[0085] The first dependency relations are used to represent the dependency relations between the target setting groups. The first dependency relations can be determined based on the implicit conversion relations, that is, according to the implicit conversion relations between the target setting groups, the first dependency relations between the target setting groups are determined, and the target setting group in which the starting conversion-out target contract exists depends on the target setting group in which the final conversion-in target contract exists. For example, the conversion relations of the target contracts in setting group 1 are contract A0→contract A1, and the conversion relations of the target contracts in setting group 2 are contract A1→contract B0→contract B1, the final conversion-in target contract of setting group 1 is contract A1, and the starting conversion-out target contract of setting group 2 is contract A1, and the first dependency relations between setting group 1 and setting group 2 are setting group 1→setting group 2.
[0086] The second dependency relations are used to represent the dependency relations between the target contracts in each target setting group. The second dependency relations can be determined based on the explicit conversion relations and the implicit conversion relations, that is, when there is an explicit conversion relation or an implicit conversion relation between any two target contracts in each target setting group, it is determined that there is a second dependency relation between the two target contracts, and the second dependency relation can be directly the explicit conversion relation or the implicit conversion relation.
[0087] The nodes of the setting group relation directed graph are the target setting groups, which can be represented by the setting numbers of the target setting groups or other identifiers or information representing the target setting groups, which are not limited in the present disclosure. The edges of the setting group relation directed graph are the first dependency relations between the target setting groups.
[0088] The node in-degree table includes the in-degrees of each node in the setting group relation directed graph. When the topological sorting of the target setting groups is performed according to the node in-degree table to obtain the setting group sequence, the server can perform the topological sorting of the target setting groups according to the node in-degree table by using the Kahn algorithm and a queue to obtain the setting group sequence, and the time complexity is controlled to be O(V+E).
[0089] The server can execute the following steps to obtain the set group sequence:
[0090] S51: Determine the node with in-degree of zero as the first node according to the node in-degree table.
[0091] S52: Put the first node into the queue, and pop the first node from the queue and add it to the result list according to the first-in first-out principle.
[0092] S53: Traverse the child nodes (i.e. neighbor nodes) of the popped first node, and reduce the in-degree of the child nodes of the popped first node by one, update the node in-degree table, and re-determine the child node with in-degree of zero as the first node.
[0093] S54: Repeat S52-S54 until all nodes in the queue are popped, and topologically sort each target set group according to the order of the first nodes in the result list to obtain a set group sequence, which is consistent with the order of the first nodes in the result list.
[0094] If there are multiple first nodes determined in S51 or multiple nodes with in-degree of zero in S53, the order of the nodes entering the queue can be determined randomly, and the present specification does not limit the order of the nodes entering the queue.
[0095] If the popped first node in S53 has no child node, no operation is performed, and the step of popping the first node from the queue and adding it to the result list according to the first-in first-out principle in S52 and the step of S53 are continued.
[0096] When all nodes in the queue are popped in S54, the length of the result list, i.e. the number of nodes in the result list, can be determined, and it is determined whether the number of nodes in the result list is consistent with the number of nodes included in the set group relationship directed graph. If yes, topologically sort each target set group according to the order of the first nodes in the result list to obtain a set group sequence, and if no, it indicates that there is a loop in the set group relationship directed graph, and the exception can be thrown and recorded, and the execution of the same business is stopped.
[0097] For example, it is assumed that there are target set groups A-D, and a set group relationship directed graph constructed by the target set groups A-D is as shown in Figure 2 Figure 2 This is a schematic diagram of a set group relationship directed graph provided in the present specification, and the node in-degree table of the set group relationship directed graph can be Table 1 as shown in Table 1. In Table 1, the in-degree of the target set group A is 0, the in-degree of the target set group B is 1, the in-degree of the target set group C is 1, and the in-degree of the target set group D is 1.
[0098] Table 1
[0099] Target setting group A B C D Ingress 0 1 1 1
[0100] According to the node in-degree table, a node with in-degree of zero is determined as the first node, i.e. target setting group A. The target setting group A is put into the queue, at this time the queue is [target setting group A], and the first node (i.e. target setting group A) is popped out from the queue and added to the result list according to the first-in first-out principle, at this time the result list is [target setting group A]. The child nodes (i.e. target setting group B) of the popped target setting group A are traversed, and the in-degree of the popped target setting group A is reduced by one, i.e. the in-degree of the target setting group B becomes 1, and the node in-degree table is updated, at this time the node in-degree table is Table 2 as shown in the following Table 2, in which the in-degree of the target setting group A is 0, the in-degree of the target setting group B is 0, the in-degree of the target setting group C is 1, and the in-degree of the target setting group D is 1.
[0101] Table 2
[0102] Target setting group A B C D Ingress 0 0 1 1
[0103] The child node with current in-degree of zero in the popped target setting group A is taken as the first node again, i.e. target setting group B, the target setting group B is put into the queue, at this time the queue is [target setting group B], and the first node (i.e. target setting group B) is popped out from the queue and added to the result list according to the first-in first-out principle, at this time the result list is [target setting group A, target setting group B]. The child nodes (i.e. target setting group C and target setting group D) of the popped target setting group B are traversed, and the in-degree of the popped target setting group B is reduced by one, i.e. the in-degree of the target setting group C and the target setting group D becomes 1, and the node in-degree table is updated, at this time the node in-degree table is Table 3 as shown in the following Table 3, in which the in-degree of the target setting group A is 0, the in-degree of the target setting group B is 0, the in-degree of the target setting group C is 0, and the in-degree of the target setting group D is 0.
[0104] Table 3
[0105] Target setting group A B C D Ingress 0 0 0 0
[0106] The popped child node of the target setting group B with the current in-degree of zero is re-set as the first node, i.e., the target setting group C and the target setting group D, the target setting group C and the target setting group D are put into the queue, assuming that the order of putting into the queue is that the target setting group C is put first and then the target setting group D, at this time, the queue is [target setting group C, target setting group D], and according to the first-in first-out principle, the first node (i.e., the target setting group C) is popped from the queue and added to the result list, at this time, the result list is [target setting group A, target setting group B, target setting group C]. The child nodes of the popped target setting group C are traversed, the target setting group C has no child node, then the first node, i.e., the target setting group D, is popped from the queue (at this time, the queue is [target setting group D]) and added to the result list, at this time, the result list is [target setting group A, target setting group B, target setting group C, target setting group D], the child nodes of the popped target setting group D are traversed, the target setting group D has no child node, and at this time, the nodes in the queue are all popped, according to the order of the first nodes in the result list, the topological sorting of each target setting group is performed to obtain a setting group sequence, and the setting group sequence can be [target setting group A, target setting group B, target setting group C, target setting group D].
[0107] Since there are explicit conversion relationships and implicit conversion relationships between multiple target setting groups and between target contracts in a target setting group, these explicit conversion relationships and implicit conversion relationships will cause a dependency relationship of execution order between different target setting groups participating in the conversion contract and between target contracts, i.e., the first dependency relationship and the second dependency relationship, and the multiple target setting groups need to be topologically sorted according to the first dependency relationship and the second dependency relationship, so as to generate a conversion contract execution path. Therefore, when generating the conversion contract execution path according to the setting group sequence and the second dependency relationship between target contracts in each target setting group, the server can perform the following steps:
[0108] S55: The setting group sequence is taken as an initial path, and the path points in the initial path are the target setting groups in the setting group sequence. The order of the path points in the initial path is consistent with the order of the target setting groups in the setting group sequence.
[0109] S56: For each path point in the initial path, the final conversion-in target contract of the previous path point of the path point is determined and taken as the first conversion-in target contract.
[0110] S57: According to the second dependency relationship between target contracts in the path point, the second dependency relationship of the first conversion-in target contract as the starting conversion-out target contract in the path point is determined.
[0111] S58: The determined second dependency relationship and the second dependency relationship corresponding to the transfer contract and the transfer contract are set as the first sub-path point in the target setting group, and the first sub-path point is re-set as the first transfer target contract. Repeat steps S57-S58 until all second dependency relationships in the path point are set as first sub-path points. Continue for the next path point of the path point. Repeat steps S56-S58 until all path points in the initial path have generated sub-path points. According to the initial path and the sub-path point in each path point in the initial path, a transfer contract execution path is generated. The target path point in the transfer contract execution path is the above-mentioned sub-path point. The target path point in the transfer contract execution path can be arranged in the order of the path points in the initial path. If the target path point in the transfer contract execution path comes from the same path point in the initial path, the target path point can be sorted in the order of the sub-path points in the same path point.
[0112] When performing the transfer contract operation on the containers corresponding to each target setting group in the order of the transfer contract execution path, the server can first determine the containers in each target contract in each target setting group according to the box number information in the parameter information of each target setting group, and set them as the containers to be transferred. Perform the transfer contract operation on the containers to be transferred in the order of the transfer contract execution path.
[0113] In some embodiments of the present specification, the above-mentioned transfer contract configuration page is as shown in Figure 3 Figure 3 is a schematic diagram of a transfer contract configuration page provided in the present specification, which includes a top title bar, a contract relationship display area, and a contract parameter configuration area. The top title bar displays the unique number of the configured setting group (i.e., the setting number), the current version, and the last update date in the upper left corner, i.e., "CS004001", "Ver:v2", and "Updated Date:2024-12-01" in Figure 3 The "View Inquiry" at the top right of the top title bar is used to jump to the transfer contract record query page. By clicking "View Inquiry", you can jump to the transfer contract record query page to query the transfer contract records caused by the setting group. The "Convert" button at the top right of the top title bar is used to trigger the transfer contract program. By manually triggering the transfer contract program by the user, the server will perform the transfer contract operation on the containers involved based on the configured setting group according to the above-mentioned S1-S5.
[0114] The above-mentioned contract relationship display area is the left contract relationship canvas in the transfer contract configuration page, i.e., Figure 3 Region 1 in FIG. 6, which includes three contract cards and one end card, i.e. Start contract card, Contract #2 contract card, Contract #3 contract card and End card. Among them, the Start contract card presents the information of the contract to be exported, the other Contract cards present the information of the contract to be imported, including contract number and condition label, which is the parameter in the right contract parameter configuration display area, and End as an end identifier. The contract card border line is orange, representing the selected state, corresponding to the parameter configuration displayed in the right contract parameter configuration display area. Figure 3 The transition relationship included in the setting group displayed in FIG. 6 is Start→Contract #2, Start→Contract #3, Contract #2→Contract #3. In addition, the contract relationship display area also provides zoom in and zoom out function buttons, and also displays the corresponding scale of the page.
[0115] The contract parameter configuration display area displays the parameter configuration details corresponding to the selected card on the left. Since Figure 3 the selected state of the Contract #2 contract card is displayed in FIG. 6, the corresponding contract parameter configuration display area (i.e. Figure 3 Region 2 in FIG. 6) displays the parameter configuration details of the Contract #2 contract card. The contract parameter configuration display area can display the clause library for configuring the contract, which includes a plurality of parameters for configuring the contract, specifically including contract basic parameters, contract rule parameters and container parameters, the contract basic parameters are Figure 3 the parameters under “Contract #2 Criteria” in FIG. 6, i.e. Contract No., BU, Customer, Lease Type, Use Previous OnhireDate, Derive Min / Free Days, etc. The user can configure the values corresponding to the contract basic parameters, i.e. Figure 3 “LT-CMA-01”, “FZOPS”, “CMA”, “LT”, “Y”, “N”, “N” in FIG. 6. The above-mentioned contract rule parameters are Figure 3the parameters under "Conversion Criteria", i.e., "Unit Age Criteria", "Age", Billing Start / End Date, Unit Type, Location, Days On Lease, "Days On Lease From", and the requirement that the lease start date is "Calendar Date", the user can configure the values corresponding to the contract base parameters, i.e., "Range (L-> =, R-<)", "36→72", "2024-09-18", "A22, A24, B20, D20...", "AEDXB00, DUMMY...", "365", "2024-09-18" in Figure 3 . The above container parameters can be Figure 3 , i.e., the container quantity parameter and the container information parameter under "Select Units". "Selected 6,000 Units" indicates that the container quantity parameter is 6000, where 6000 is the value corresponding to the user-configured parameter, and the specific content corresponding to the container information parameter can be viewed by clicking "View" and displayed through the container information display page. Specifically, the container number, container type, container age, and other parameters corresponding information can be displayed. It should be noted that the above Figure 3 is only an example of a conversion contract configuration page, and the above Figure 3 exhibits the configuration process of one set of settings. The specific values corresponding to the user-configured parameters are also an example. The parameters displayed in the contract parameter configuration display area in Figure 3 are also an example. The parameters can also include setting effective state, effective date, and other parameters.
[0116] In some embodiments of the present specification, in S1, the server can determine the conversion-in contract, conversion-out contract, and conversion relationship of each set of settings created in response to the user's creation operation on the setting group creation page, and construct each set of settings. The conversion contract configuration page is used to display the clause library for configuring each contract in each set of settings to the user. The clause library includes several parameters for configuring the contract. The user can flexibly configure the parameters based on the standardized clause library, and the server can determine the parameter information of each set of settings configured by the user in response to the user's configuration operation on the conversion contract configuration page. Wherein, the setting group creation page is as shown in Figure 4 , Figure 4 is a schematic diagram of a setting group creation page provided in the present specification, Figure 4The server provides the user with selection boxes of From Contract No. (the contract to be transferred out) and To Contract No. (the contract to be transferred in), and also displays corresponding Business Unit, From Customer ID, and To Customer ID information. After the user selects the contract to be transferred out and the contract to be transferred in of the setting group, the user can click the Next button (i.e. the button in the red box) to execute the creation operation, so that the server can determine the contract to be transferred in, the contract to be transferred out, and the conversion relationship (the contract to be transferred out→the contract to be transferred in) of each setting group created by the user on the setting group creation page. Figure 4
[0117] In some embodiments of the present disclosure, when performing the contract transfer operation on the containers corresponding to each target setting group in the order of the contract transfer execution path in S5, the server can also determine the containers in each target contract in each target setting group according to the container number information in the parameter information of each target setting group, and use the containers as the containers to be transferred. The server determines the current business status of the containers to be transferred, and performs dynamic checking on the containers to be transferred according to the current business status. When the dynamic checking is passed, the server performs the contract transfer operation on the containers to be transferred in the order of the contract transfer execution path. The dynamic checking on the containers to be transferred according to the current business status is performed to avoid the containers to be transferred having not completed the business when the contract transfer operation is performed. The business status is used to represent whether the containers have not completed the business, so when the current business status is that the containers have not completed the business, it is determined that the dynamic checking on the containers to be transferred is not passed, and when the current business status is that the containers have completed the business, it is determined that the dynamic checking on the containers to be transferred is passed. The dynamic checking is performed to avoid errors in the contract transfer operation.
[0118] In addition to the dynamic checking, the server can also perform static checking on the container information in the parameter information configured by the user, that is, after obtaining the parameter information of each setting group, the server can determine the container information in the parameter information of each setting group, determine the static information included in the container information, and perform static checking on the static information, so that the steps S2-S5 are performed after the static checking is passed. The container information includes static information and dynamic information. The static information is information corresponding to static parameters, and can include the container number and the container type. The static information cannot change with time. The dynamic information is information corresponding to dynamic parameters, and can include the container age, the lease time, and the business status. The dynamic information can change with time.
[0119] When the static information is statically checked, the container number in the static information is used to query the container data corresponding to the container number from the container database, and the container data and the static information are compared. If they are consistent, the static check is passed. If they are not consistent, the static check is not passed, and a prompt information is generated and displayed to the user to prompt the user that the container information configured by the user is incorrect. The static check avoids the execution error of the contract transfer business caused by human operation.
[0120] In some embodiments of the present disclosure, the server can also provide a contract transfer record query page to the user, and the contract transfer record query page provides a plurality of query fields, each of which includes Business Unit (business unit), ContractNo. (contract transfer number), Effective Date (set effective date), To ContractNo. (contract transfer number), SetupNo. (set number), and Status (set effective state). The server can determine the query values of each query field set by the user in response to the setting operation of the user, and generate a query condition. The contract transfer record database in which the contract transfer records that have occurred are stored is queried to find the contract transfer records that meet the query condition, and is displayed to the user. Each contract transfer record at least includes the values corresponding to the above query fields. Of course, it can also include record time, record number and other information, which is not limited in the present disclosure.
[0121] In addition, the server can also provide a query page of other data or information to the user, and the other data or information can be contract transfer business execution snapshot information, contract transfer business execution result, etc. The user can input a query condition in the query page, so that the server can query the corresponding information or data according to the query condition.
[0122] In some embodiments of the present disclosure, the server can periodically send the execution result of the contract transfer operation of each container to the operator, and can also send the recorded exceptions to the operator. The execution result can include success or failure result, and can also include the contract in which the contract transfer occurs, the number of containers in the contract transfer, the container number, and the detailed information of each contract transfer record, etc. The above-mentioned exceptions can be that the business check is not passed (i.e. the contract relationship has a loop in the directed graph), and the set group relationship directed graph has a loop. When the execution result or the exception is sent to the operator, the corresponding person in charge, i.e. the operator, of each container can be determined first, and then the execution result or the exception is sent to the corresponding person in charge.
[0123] In some embodiments of the present specification, the server can achieve complete traceability of historical container transfer business by recording the snapshot information of business and configuration at each time of container transfer business, such as the change version information of the set group and the snapshot information of the container at each time of container transfer, so as to facilitate subsequent business analysis and problem troubleshooting.
[0124] In some embodiments of the present specification, the identity of the user can be verified before creation, query and configuration to ensure that only authorized users can query, create and configure, thereby ensuring data security and accuracy of business execution.
[0125] In some embodiments of the present specification, based on techniques such as graph modeling and topological sorting, the method of automatically performing container transfer according to specific business rules is realized by abstracting and transforming business rules through a clause library. Through the clause combination and conversion mechanism, the method can quickly respond to market dynamic changes and customer individual needs while maintaining stability, achieve efficient management of container assets, and realize the organic combination of standardized clause library and flexible configuration capability. The method can not only make full use of the existing mature contract management system functions, but also meet the differentiated business demands through multi-dimensional clause combination strategies, thereby achieving the optimal balance between operational efficiency and market adaptability. Users only need to perform basic parameter configuration, and the server will automatically identify the container range, migration chain and optimal container transfer execution path, and perform business verification during the container transfer business execution process to achieve the container transfer business purpose, and finally record the execution result. The method can promote the digitalization process of the industry, provide simple, convenient and lightweight intelligent interaction experience, reduce the work burden of the business department, optimize the internal management process of the enterprise, and overall improve the business operation efficiency and accuracy. Moreover, the method can provide accurate and complete data basis for subsequent prediction, business analysis and decision-making of future container transfer business.
[0126] In some embodiments of the present specification, the above-mentioned method can effectively solve the problems such as various scenarios, complex rules, low efficiency, inaccuracy, untimeliness and complex operation encountered by enterprises in handling container transfer business in the container leasing industry, meet the differentiated business demands in the market, improve the business processing efficiency, reduce the labor operation cost, provide data support for business analysis and prediction, and overall improve the digital operation ability of the enterprise, accelerate the digitalization and intelligentization process of the industry.
[0127] In some embodiments of the present specification, the following contract billing requirements are described as an example of the contract billing requirements.
[0128] The container leasing customer signs four contracts A, A0, A1 and B. In the initial business, all containers are picked up under contract A, and the lease starts. The requirements are as follows:
[0129] For containers with age below 36 months (inclusive), the contract A is applied, effective immediately.
[0130] For containers with age between 36 months (inclusive) and 72 months (exclusive), the contract A0 is applied, effective immediately.
[0131] For containers with age above 72 months (inclusive), the contract A1 is applied, effective immediately.
[0132] On September 30, 2025, the contract B is expired, and all containers under the contract B will be charged according to the contract A, A0, A1, the specific requirements refer to the above age description.
[0133] Step 1: Create and configure a setup group
[0134] Based on the above business requirements, two new setup groups need to be created. Setup group 1: A -> A0 -> A1, setup group 2: B -> A. The following describes the creation process of setup group 1:
[0135] (1) The "New Setup" button is provided in the above contract transfer record query page, and the user clicks the "New Setup" button to enter the new setup group process. The server will show the user a setup group creation page, which can be as described above Figure 4 .
[0136] (2) The user can select the contract to be transferred out and the contract to be transferred in on the setup group creation page to create setup group 1. The user can click the "Next" button on the setup group creation page to enter the contract transfer configuration page, which can be as described above Figure 3 .
[0137] (3) The user can configure the parameters of each contract in setup group 1 on the contract transfer configuration page, and set the age Age related information of the contract on the contract transfer configuration page. The UnitAge Criteria is set to Range (L-> =, R-<), and is set according to the above requirements, such as the age of contract A0 is set to 36, 72, which means that the container in contract A with age greater than or equal to 36 months and less than 72 months will be converted to contract A0. After setting the parameters of each contract, the user can continue to add new contracts and configure them in the same way until all contracts in setup group 1 are configured.
[0138] Similarly, create and configure Set Group 2 according to the above process, implement Set Group 2: B→A, and set the Effective Date of Contract B to 2025-09-30, and set the One-off and Status parameters of Contract B.
[0139] Step 2: Convert contract business execution
[0140] Based on the above-created Set Group 1 and Set Group 2, execute the contract conversion business according to the above S1-S5. Specifically, as shown in Figure 5 , Figure 5 is a schematic diagram of the contract conversion business execution provided in this specification for the container leasing industry, Figure 5 With "Start" as the starting node, the server can first obtain the parameter information of each set group configured by the user through the contract conversion configuration page. Then, according to the set effective state, effective date, and current date in the parameter information of each set group (i.e., Set Group 1 and Set Group 2), determine all currently effective set groups, and use them as target set groups, i.e., "Determine the execution range" in Figure 5 , assuming that the current date is 2025-10-01, and both Set Group 1 and Set Group 2 are target set groups.
[0141] Then, according to the conversion relationship between each target contract included in each target set group, construct a contract relationship directed graph and calculate the transitive closure of all target contract pairs in the contract relationship directed graph. According to the transitive closure and the contract relationship directed graph, determine all explicit and implicit conversion relationships corresponding to each target set group, i.e., "Obtain all explicit / implicit conversion relationships" in Figure 5 , based on the conversion relationship between each target contract (i.e., Contract B, Contract A, Contract A0, and Contract A1) of Set Group 1 and Set Group 2, i.e., Set Group 1: A→A0→A1 and Set Group 2: B→A, the determined explicit conversion relationships can include Explicit 1: B→A, Explicit 2: A→A0 and A0→A1, and Implicit 1: A→A1.
[0142] Then, based on the depth-first search algorithm and the recursive stack, calculate the cycle path of the contract relationship directed graph to perform business verification on each target set group through the cycle path, i.e., "Calculate the cycle path and business verification" in Figure 5 . When the business verification passes, sort each target set group according to all explicit and implicit conversion relationships, and generate a contract conversion execution path, i.e., "Generate the contract conversion execution path" in Figure 5In the "intelligent sorting" process, the contract transfer execution path can be Seq1: B→A, Seq2: A→A1, A→A0, Seq3: A0→A1, where Seq1 to 3 are the target path points in the contract transfer execution path. Then, following the order of the contract transfer execution path, the contract transfer operation is performed on the containers corresponding to each target group. Figure 5 The "Execute Contract Transfer by Order" step is as follows: Assuming each target group corresponds to containers 1 through n, containers 1 through n will first execute Seq1, then Seq2, and then Seq3. Finally, the process continues until the "End" node is reached.
[0143] Based on the above methods, this specification also provides a system for contract transfer in the container leasing industry, such as... Figure 6 As shown, Figure 6 This is a structural diagram of a contract transfer system for the container leasing industry provided in this specification. Figure 6 The system shown includes a service configuration module 100, a service logic module 101, and a service execution module 102.
[0144] The aforementioned business configuration module 100 can obtain parameter information for each setting group configured by the user through the contract conversion configuration page. Each setting group includes at least the conversion relationship between two contracts. The specific execution process of the aforementioned business configuration module 100 is consistent with the execution process of S1 described above, and will not be repeated here.
[0145] The aforementioned business logic module 101 can determine all currently effective target setting groups based on the parameter information of each setting group, and automatically determine all explicit conversion relationships and implicit conversion relationships, so as to generate a contract execution path when the business verification of each target setting group passes. The aforementioned business logic module 101 may include: a submodule 1011 for determining all currently effective setting groups based on the setting effectiveness status, effectiveness date, and current date in the parameter information of each setting group, and using them as target setting groups for each target setting group; a graph model construction submodule 1012 for constructing a directed graph of contract relationships based on the conversion relationships between each target contract included in each target setting group; a transitive closure calculation submodule 1013 for calculating the transitive closures of all target contract pairs in the directed graph of contract relationships; a relationship generation submodule 1014 for determining all explicit and implicit conversion relationships corresponding to each target setting group based on the transitive closures and the directed graph of contract relationships; and a path generation submodule 1015 for sorting each target setting group according to all explicit and implicit conversion relationships and generating a conversion contract execution path when the business verification of each target setting group passes.
[0146] The specific execution process of the target setting group determination submodule 1011 is consistent with the specific execution process of S2 above; the specific execution processes of the graph model construction submodule 1012 and the transitive closure calculation submodule 1013 are consistent with the specific execution process of S3 above; the specific execution process of the relation generation submodule 1014 is consistent with the specific execution process of S4 above; and the execution process of the path generation submodule 1015 is consistent with the specific execution process of some processes in S5 above. These will not be described again here.
[0147] The aforementioned business execution module 102 can perform contract transfer operations on the containers corresponding to each target setting group according to the order of the contract transfer execution path. The specific execution process of the aforementioned business execution module 102 is consistent with the specific execution process of some processes in S5 above, and will not be repeated here.
[0148] In some embodiments of this specification, the overall system application is deployed on an enterprise private cloud using Kubernetes container technology. The front-end web pages are built based on a standard UI library and Vue.js, primarily employing HTML5, CSS, and Vue.js. The back-end uses a system application platform built on a Spring Boot + Spring Cloud microservice architecture. Nginx is used for reverse proxying, the S3 distributed file system is used for file access, Kafka is used for message production and consumption, and log data is processed using...
[0149] Elasticsearch is used for storage. Redis is used for caching.
[0150] In some embodiments of this specification, the aforementioned business configuration module 100 supports users in maintaining key business objects (setting groups, contracts) and business rules (configuration parameters), serving as the basis for the automatic execution of contract conversion business. The aforementioned business logic module 101, based on business data and rules, obtains the explicit / implicit conversion relationships of all contracts and container objects and performs intelligent sorting to calculate the optimal conversion path (contract conversion execution path), thereby achieving efficient and accurate execution of the contract conversion business program.
[0151] In some embodiments of this specification, the system may further include a business record query module 103, specifically as follows: Figure 7 As shown, Figure 7For another structure diagram of the system for transferring a contract provided in the present specification and directed to the container leasing industry, the business record query module 103 supports user query of a transfer contract business history record, including key object information and business data at the time of transfer, rule snapshot information, and the like. Taking query of a transfer contract record as an example, the business record query module 103 can provide a transfer contract record query page to the user, the transfer contract record query page providing a plurality of query fields, each query field including a business unit, a transfer-out contract number, a set effective date, a transfer-in contract number, a set number, and a set effective state. The business record query module 103 determines query values of each query field set by the user in response to a setting operation of the user, and generates a query condition. The transfer contract record database is queried for a transfer contract record satisfying the query condition, and the transfer contract record is displayed to the user.
[0152] In some embodiments of the present specification, the above system can further include a mail notification module 104, as specifically shown in Figure 7 The mail notification module 104 can statistically send the execution result of the transfer contract business to the operator every day or periodically, and can also send the recorded exceptions to the operator, thereby ensuring the accuracy of the execution of the transfer contract business.
[0153] In some embodiments of the present specification, the above method or system is provided with an interface for interaction with the user, such as a transfer contract configuration page, and again such as a transfer contract record query page. By providing an interface for interaction with the user, and with the page being designed to be intuitive and easy to use, the operation cost of the user is reduced, the operation efficiency is improved, and the user is better provided with an interactive experience. The above transfer contract configuration page uses a contract relationship canvas to intuitively present the migration relationship of a container between different contracts, and provides a friendly, easy-to-use, and intuitive interaction mode, thereby reducing the operation steps of the user and improving the operation efficiency of the user. Furthermore, through the transfer contract configuration page, the user can configure the transfer relationship between multiple contracts in a set and the contract parameters at one time, without separately configuring each transfer relationship and each contract parameter, thereby reducing the input cost of the user. The above transfer contract record query page supports multi-dimensional accurate query, so that the user can query based on his own query requirements.
[0154] In some embodiments of the present specification, the above system uses a modular design, the system being highly available and highly expandable, and being able to be adjusted and upgraded according to changes in the business scale and requirements. The system can communicate with other systems or modules within other systems to transmit contract information, order information, and container information, and the like, and the other system can be a container leasing and sales system.
[0155] It should be noted that the above detailed description of the specific embodiments of the present application is not intended to limit the present application in any way. Thus, while the present application has been described in detail with reference to specific embodiments thereof, it will be apparent to those skilled in the art that various modifications and changes can be made thereto without departing from the spirit and scope of the present application.
Claims
1. A method for transferring contracts in the container leasing industry, characterized in that, include: S1: Obtain parameter information: Obtain parameter information for each setting group configured by the user through the contract conversion configuration page. The setting group includes at least the conversion relationship between two contracts. S2: Determine the target setting group: Based on the setting effectiveness status, effectiveness date and current date in the parameter information of each setting group, determine all currently effective setting groups and use them as target setting groups; S3: Construct a graph model and compute transitive closure: Based on the transformation relationships between the target contracts included in each target setting group, construct a directed graph of contract relations and compute the transitive closure of all target contract pairs in the directed graph of contract relations. S4: Determine explicit and implicit transformation relationships: Based on the transitive closure and the contractual directed graph, determine all explicit and implicit transformation relationships corresponding to each target setting group; S5: Perform contract conversion operation: When the business verification of each target setting group passes, sort the target setting groups according to all explicit conversion relationships and implicit conversion relationships, generate a contract conversion execution path, and perform contract conversion operation on the containers corresponding to each target setting group according to the order of the contract conversion execution path.
2. The method for transferring contracts in the container leasing industry as described in claim 1, characterized in that, S1 specifically includes: In response to the user's creation operation on the configuration group creation page, determine the transfer-in contracts, transfer-out contracts, and conversion relationships of each configuration group, and construct each configuration group; The contract configuration page displays a terms library for configuring each contract in each set group to the user; the terms library includes several parameters for configuring contracts. In response to the user's configuration operation on the contract configuration page, the parameter information of each setting group configured by the user is determined.
3. The method for transferring contracts in the container leasing industry as described in claim 1, characterized in that, S3 specifically includes: Based on the transformation relationships between the target contracts included in each target setting group, determine the adjacency list for each target contract; Based on each adjacency list, construct a directed graph of contract relations with each target contract as a node and the transformation relationship between each target contract as an edge; The shortest path algorithm is used to calculate the shortest path for all target contract pairs in the directed graph of the contractual relationship. Based on the shortest path of each target contract pair, a transitive closure for each target contract pair is determined, wherein the transitive closure is used to characterize the reachability of the two target contracts included in each target contract pair.
4. The method for transferring contracts in the container leasing industry as described in claim 1, characterized in that, When there is a direct conversion relationship between any two target contracts within the target setting group, there is an explicit conversion relationship between the two target contracts; when there is an indirect conversion relationship between any two target contracts within the target setting group, there is an implicit conversion relationship between the two target contracts; when the final transfer-in target contract of any target setting group is the same as the initial transfer-out target contract of other target setting groups, there is an implicit conversion relationship between any target setting group and the other target setting groups.
5. A method for transferring contracts in the container leasing industry as described in claim 1, characterized in that, The method for performing business verification on each target setting group in S5 is as follows: Traverse each node in the directed graph of the contractual relationships and store the visited nodes using a recursive stack; When the node visited in the next step during the traversal is the same as the node currently stored in the recursive stack, the parent node of the currently visited node and the parent node of the node visited before the current step are determined by the path backtracking algorithm, and a loop path is generated. The loop path is used to determine that each target setting group has failed the business verification. When all nodes visited in the next step during the traversal are different from the nodes currently stored in the recursive stack, it is determined that each target setting group has passed the business verification.
6. A method for transferring contracts in the container leasing industry as described in claim 1, characterized in that, In step S5, based on all the explicit and implicit transformation relationships, the target setting groups are sorted to generate the contract execution path, specifically including: Based on all the explicit and implicit transformation relationships, determine the first dependency relationship between each target setting group, and determine the second dependency relationship between each target contract within each target setting group; Construct a directed graph of setting group relationships with each target setting group as a node and the first dependency relationship between each target setting group as an edge; Determine the node in-degree table corresponding to the directed graph of the set group relationship, and perform topological sorting on each target set group according to the node in-degree table to obtain the set group sequence; Based on the set group sequence and the second dependency relationship between each target contract within each target set group, a contract conversion execution path is generated.
7. A method for transferring contracts in the container leasing industry as described in claim 1, characterized in that, The step S5, which involves performing contract transfer operations on the containers corresponding to each target setting group according to the order of the contract transfer execution path, specifically includes: Based on the container number information in the parameter information of each target setting group, the containers in each target contract in each target setting group are determined and designated as containers for contracts to be transferred. Determine the current business status of the contract container to be transferred, and perform dynamic verification on the contract container to be transferred based on the current business status; Upon successful dynamic verification, the contract transfer operation is performed on the container to be transferred according to the order of the contract transfer execution path.
8. A method for transferring contracts in the container leasing industry as described in claim 1, characterized in that, The method further includes: Provide the user with a contract transfer record query page; the contract transfer record query page provides several query fields, each of which includes business unit, transfer-out contract number, set effective date, transfer-in contract number, setting number, and set effective status; In response to the user's setting operation, determine the query values of each query field set by the user, and generate query conditions; The database of contract transfer records that meet the query conditions is queried and displayed to the user.
9. A method for transferring contracts in the container leasing industry as described in claim 1, characterized in that, S2 specifically includes: For each setting group, determine the setting activation status and activation date in the parameter information of that setting group; When the effective date is earlier than the current date and the setting is in effect, the setting group is taken as the target setting group that is currently in effect.
10. A system for transferring contracts in the container leasing industry as described in claims 1-9, characterized in that, The system includes a business configuration module, a business logic module, and a business execution module, wherein: The business configuration module is used to obtain parameter information of each setting group configured by the user through the contract conversion configuration page. The setting group includes at least the conversion relationship between two contracts. The business logic module is used to determine all currently effective target setting groups based on the parameter information of each setting group, and automatically determine all explicit and implicit conversion relationships, so as to generate a contract execution path when the business verification of each target setting group passes; including: a submodule for determining all currently effective setting groups based on the setting effectiveness status, effectiveness date, and current date in the parameter information of each setting group, and using them as target setting group determination submodules; a graph model construction submodule for constructing a directed graph of contract relationships based on the conversion relationships between each target contract included in each target setting group; a transitive closure calculation submodule for calculating the transitive closure of all target contract pairs in the directed graph of contract relationships; a relationship generation submodule for determining all explicit and implicit conversion relationships corresponding to each target setting group based on the transitive closure and the directed graph of contract relationships; and a path generation submodule for sorting each target setting group according to all explicit and implicit conversion relationships when the business verification of each target setting group passes, and generating a contract execution path. The business execution module is used to perform contract transfer operations on the containers corresponding to each target setting group in accordance with the order of the contract transfer execution path.