Non-ferrous metal cargo right transfer sorting method, system and equipment and medium
By grouping and sorting non-ferrous metal goods rights transfer data, the problems of risk and traceability in the goods rights transfer process are solved, the accuracy and traceability of the goods rights transfer path are achieved, and the transparency and reliability of the transaction process are improved.
Patent Information
- Application Number
- CN202510678056.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-26
- Publication Date
- 2025-06-24
AI Technical Summary
In non-ferrous metal trading, there are risks in the transfer of goods rights, especially the identification of the authenticity of goods rights, which makes it difficult to quickly and accurately trace the order of goods rights transfer in disputes, affecting transaction efficiency and security.
By collecting non-ferrous metal goods rights transfer data, grouping them by variety, brand and weight consistency, and sorting them for the first time in the group by upstream and downstream cargo owners and their card numbers, a transaction chain with consistent weight is initially obtained. Then, according to the first sorted transaction chain, the upstream and downstream transaction information of each chain head and tail are recorded according to the first sorted transaction chain, the second order of the transaction chain is performed again, and the process of splitting the goods rights or merging the goods rights during the shipment rights transfer process is calculated, and the overall sorting result of a massive single goods transfer data is finally obtained.
It has achieved a quick sorting out the orderly continuous transfer of goods rights in the process of large and disorderly transfer of goods rights, including split transfer and merge transfer, which has improved the accuracy and traceability of the transfer path of goods rights, reduced the manual operation needs and the probability of errors, and improved the transparency and reliability of the transaction process.
Smart Images

Figure CN120198221A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the fields of information technology and data analysis technology, and specifically relates to a method, system, device and medium for sorting the transfer of non-ferrous metal property rights. Background Art
[0002] In non-ferrous metal trading, the transfer of property rights is a key link, involving the transfer of the ownership of goods from the seller to the buyer. This process usually includes steps such as signing a contract, paying the purchase price, transferring property rights, delivering goods, and confirming receipt of goods. Due to the high value and complex transactions of non-ferrous metals, there are many risks in the process of property rights transfer, especially the issue of identifying the authenticity of property rights. Although certain risks can be prevented to a certain extent by standardizing the trading process, introducing third-party supervision, strengthening legal awareness, and improving technical means, these measures still cannot completely eliminate risks. Once a dispute occurs during the transfer of property rights, it is necessary to trace or track the goods involved until the entire trade chain is clarified. However, the trading chain is complex and property rights are frequently split or merged, which increases the difficulty of tracing.
[0003] Currently, the traditional approach is to collect all trade contracts, property rights transfer vouchers or transaction records, manually check, visit, and identify the authenticity one by one, then trace a batch of property rights transfer transactions that may be in question, and then investigate the actual situation of property rights transfer in relevant warehouses to roughly arrange the order of property rights transfer. This process not only requires a large amount of manpower and material resources and is very time-consuming, but also cannot ensure the order of actual property rights transfer of goods, thus affecting the determination of conclusions. In addition, when a dispute occurs during the transfer of property rights, the manual tracing method cannot efficiently provide a clear and definite process of property rights transfer.
[0004] Based on this, a new sorting scheme for the transfer of non-ferrous metal property rights is needed. Summary of the Invention
[0005] In view of this, the embodiments of this specification provide a method, system, device and medium for sorting the transfer of non-ferrous metal property rights. By refining the key information in the process of non-ferrous metal goods transfer and then automatically sorting the goods transfer order through data analysis, it is possible to quickly sort out the order of continuous and orderly property rights transfer, including split transfer and merger transfer, in a large number of disordered property rights transfer processes.
[0006] The embodiments of this specification provide the following technical solutions: The embodiments of this specification provide a method for sorting the transfer of non-ferrous metal property rights, including: Collect single-property-rights-transfer data to be sorted, where the property-rights-transfer data includes: variety, brand, weight, seller, selling card number, buyer, and buying card number; Group the single cargo right transfer data according to preset grouping conditions; wherein, the grouping conditions include: dividing single cargo right transfer data with the same variety, brand, and consistent weight into the same group; Within each group, use the cargo right transfer data with only a buyer as the head of the trade chain. Match the next cargo right transfer data according to the buyer and the purchase card number, and perform the first sorting on the single cargo right transfer data within the group to obtain a preliminary trade chain; If there are multiple trade chain heads within a group, or when a single cargo right transfer matches multiple cargo right transfer data, then split to obtain multiple preliminary trade chains; According to the seller and the selling card number at the end of the preliminary trade chain, search for a matching trade chain head in other preliminary trade chains, recursively splice and backtrack in reverse, and perform the second sorting on the preliminary trade chain to obtain the cargo right transfer path.
[0007] An embodiment of this specification also provides a non-ferrous metal cargo right transfer sorting system, which includes: a data collection module, a data grouping module, a first sorting module, and a second sorting module; The data collection module is used to collect single cargo right transfer data to be sorted, and the cargo right transfer data includes: variety, brand, weight, seller, selling card number, buyer, and purchase card number; The data grouping module is used to group the single cargo right transfer data according to preset grouping conditions; wherein, the grouping conditions include: dividing single cargo right transfer data with the same variety, brand, and consistent weight into the same group; The first sorting module is used to, within each group, use the cargo right transfer data with only a buyer and no seller as the head of the trade chain. Match the next cargo right transfer data according to the buyer and the purchase card number, and perform the first sorting on the single cargo right transfer data within the group to obtain a preliminary trade chain; If there are multiple trade chain heads within a group, or when a single cargo right transfer matches multiple cargo right transfer data, then split to obtain multiple preliminary trade chains; The second sorting module is used to, according to the seller and the selling card number at the end of the preliminary trade chain, search for a matching trade chain head in other preliminary trade chains, recursively splice and backtrack in reverse, and perform the second sorting on the preliminary trade chain to obtain the sorting order of the cargo right transfer.
[0008] An embodiment of this specification also provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, it implements the steps of the non-ferrous metal cargo right transfer sorting method described above.
[0009] The embodiments of this specification also provide a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the non-ferrous metal property right transfer sorting method described above are implemented.
[0010] Compared with the prior art, the beneficial effects that can be achieved by at least one of the above technical solutions adopted in the embodiments of this specification at least include: First, group the property right transfer data with the same variety, brand, and weight through a grouping strategy to simplify the complexity of data processing. Then, use a search technique to construct a preliminary trade chain starting from the property right transfer data of only the buyer, effectively solving the problems of splitting and merging in the process of property right transfer. Then, through the second sorting and reverse tracing, further optimize the integrity of the trade chain, ensure the accuracy and traceability of the property right transfer path, not only reduce the need for manual operations, reduce the error probability, but also enable rapid traceability and risk monitoring, improving the transparency and reliability of the entire non-ferrous metal trading process. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0012] Figure 1 is a flowchart of the non-ferrous metal property right transfer sorting method in the present application; Figure 2 is an overall architecture diagram of the non-ferrous metal property right transfer sorting method in the present application; Figure 3 is an architecture diagram of the electronic device in the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0013] The embodiments of the present application will be described in detail below with reference to the drawings.
[0014] The following describes the implementation modes of the present application through specific examples. Those skilled in the art can easily understand the other advantages and effects of the present application from the content disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The present application can also be implemented or applied through other different specific implementation modes. Various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that, without conflict, the following embodiments and the features in the embodiments can be combined with each other. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present application.
[0015] It should be noted that the following describes various aspects of the embodiments within the scope of the appended claims. It should be obvious that the aspects described herein can be embodied in a wide variety of forms, and any specific structure and / or function described herein is illustrative only. Based on the present application, those skilled in the art should understand that one aspect described herein can be implemented independently of any other aspect, and two or more of these aspects can be combined in various ways. For example, any number and aspects described herein can be used to implement the device and / or practice the method. Additionally, this device and / or method can be implemented using other structures and / or functions in addition to one or more of the aspects described herein.
[0016] It should also be noted that the diagrams provided in the following embodiments only illustrate the basic concept of the present application in a schematic manner. The diagrams only show the components related to the present application, rather than being drawn according to the number, shape, and size of the components in actual implementation. The type, quantity, and proportion of each component in actual implementation can be arbitrarily changed, and the component layout type may also be more complex.
[0017] In addition, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, those skilled in the art will understand that the examples can be practiced without these specific details.
[0018] Non-ferrous metals here refer to six specific bulk commodities, namely copper, aluminum, zinc, nickel, tin, and lead, listed on the Shanghai Futures Exchange. These metals have unique commodity characteristics. Generally, they are counted in units of "bundles", and the weight of each bundle is different. Taking copper as an example, the weight of a bundle of cathode copper is generally between 2500 kg and 3000 kg. When transferring the property rights of the goods, several bundles of commodities are packaged together, and the property rights of the goods are transferred in units of "tons". After packaging, a "card number" is assigned as an identifier to specify this batch of specific non-ferrous metals. The operations of property rights transfer are all completed by the warehouse.
[0019] In non-ferrous metal trading, due to various factors such as complex supply chains, financing needs, hedging, inventory management, market speculation, legal and tax arrangements, and quality and specification adjustments, the ownership of goods will be frequently transferred among multiple links and entities, making the trading chain extremely complex. For example, the ownership of goods is frequently split or merged, which makes it difficult to effectively trace or track the goods when ownership disputes occur again or legal reviews are conducted.
[0020] Currently, the existing methods for sorting the transfer of goods ownership rely on manual processing. Due to the complexity of the trading chain and the frequent splitting or merging of goods ownership, it is difficult for manual operations to quickly and accurately sort out the continuous transfer order of goods ownership, and it is impossible to ensure the order of the transfer of goods ownership of actual goods, seriously affecting the efficiency and security of non-ferrous metal trading.
[0021] In view of this, the inventor has found through research and improvement exploration that existing solutions often require manual review of contracts and documents to check the transfer path of goods ownership item by item. This process is both time-consuming and laborious. Especially when the ownership of goods is frequently split (such as a batch of goods being sold to multiple buyers) or merged (such as multiple sellers integrating their shipments), the difficulty of tracking is extremely high, and it is difficult to ensure the accuracy and efficiency of tracking.
[0022] Based on this, the embodiments of this specification propose a method for sorting the transfer of non-ferrous metal goods ownership: as Figure 1 shown, the overall idea is: by collecting non-ferrous metal goods ownership transfer data, grouping them according to variety, brand, and weight consistency, and conducting the first sorting within the group according to the upstream and downstream owners and their card numbers, initially obtaining trading chains with consistent weights. Then, based on the trading chains after the first sorting, record the upstream and downstream trading information at the head and tail of each chain, and conduct the second sorting of the trading chains again to calculate the process of splitting or merging the ownership of goods during the transfer of goods ownership. Finally, obtain the overall sorting result of a large number of single goods transfer data, thereby improving the efficiency and accuracy of finding specific trading chains, quickly locating the transfer of goods ownership that may be in doubt, and effectively coping with the complex scenarios of splitting and merging of goods ownership.
[0023] The following will describe the technical solutions provided by the embodiments of this application in conjunction with the accompanying drawings.
[0024] As Figure 1 and Figure 2 shown, the embodiments of this specification provide a method for sorting the transfer of non-ferrous metal goods ownership, including: Step S1: Collect single goods ownership transfer data to be sorted, where the goods ownership transfer data includes: variety, brand, weight, seller, selling card number, buyer, and buying card number.
[0025] Generally, transfer of title data is extracted from different systems. For example, detailed records of each transfer of title are extracted from the trading system, including information on both parties to the transaction; for example, storage and inbound / outbound records of goods are extracted from the warehouse management system to ensure the accuracy of the goods information for each transfer of title; for example, transportation records of goods are extracted from the logistics system; and for example, financial vouchers related to the transfer of title are extracted from the financial system.
[0026] Integrate the data extracted from different systems to ensure that each transfer of title data contains all necessary information.
[0027] Each transfer of title data should contain at least the following key information: Variety: Types of non-ferrous metals, such as copper, aluminum, zinc, nickel, tin, lead, etc.; Brand: Brand identification of non-ferrous metals, used to distinguish goods from different production sources; Weight: The weight of the goods for which the title is transferred, usually in tons; Seller: Information of the seller for the transfer of title, such as the seller's name, address, etc.; Selling card number: The card number used by the seller to identify the goods, for tracking the source of the goods; Buyer: Information of the buyer for the transfer of title, such as the buyer's name, address, etc.; Buying card number: The card number used by the buyer to identify the goods, for tracking the destination of the goods.
[0028] To facilitate subsequent sorting and analysis, format the collected data to ensure data consistency and operability.
[0029] Step S2: Group the single transfer of title data according to preset grouping conditions; among them, the grouping conditions include: grouping single transfer of title data with the same variety, brand and consistent weight into the same group.
[0030] Specifically, group according to the specific attributes of the transfer of title data. Only when the variety, brand and weight of the single transfer of title data are exactly the same will they be grouped into the same group.
[0031] For example: If there are two transfers of title data, and if both are copper, brand A, and the weight is 10 tons, then they will be grouped into the same group; If the weight of one of the data is 11 tons, or the brand is brand B, then they will be grouped into different groups.
[0032] Step S3: Within each group, use the transfer of title data with only a buyer as the head of the trade chain, match the next transfer of title data according to the buyer and the buying card number, and perform the first sorting on the single transfer of title data within the group to obtain a preliminary trade chain; If there are multiple trade chain heads within a group, or when a single transfer of goods ownership matches multiple transfer of goods ownership data, multiple preliminary trade chains are split out.
[0033] Specifically, after grouping the transfer of goods ownership data, it is necessary to perform the first sorting on the transfer of goods ownership data within each group to generate preliminary trade chains.
[0034] Within each group, first identify the head of the trade chain, find the transfer of goods data with only a buyer and no seller, determine that the current buyer is the original owner of the goods, and use this transfer of goods (i.e., transfer of goods ownership, hereinafter referred to as transfer of goods) as the head of the trade chain, that is, the starting point of the trade chain.
[0035] If several transfers of goods data with only a buyer and no seller are found, they are respectively used as the heads of the trade chains, and then each head is respectively used to match the next transfer of goods ownership data. If multiple subsequent data are matched, these data need to be split to generate independent trade chains respectively.
[0036] Through the above steps, the first sorting can be completed within each group to generate preliminary trade chains.
[0037] When matching the next transfer of goods ownership data according to the buyer and the purchased card number of the current transfer of goods, considerations can be made from aspects such as data structure, performance requirements, and implementation complexity, and a suitable solution can be selected. For example: traverse the data within the entire group and compare one by one whether the buyer and the purchased card number of the current transfer of goods are consistent with the seller and the sold card number of each piece of data.
[0038] For example: use a hash table to store the data within the group and quickly find the matching next transfer of goods ownership data through the hash table.
[0039] Another example: first sort the data within the group according to the seller and the sold card number, and then use the binary search algorithm to find the matching next transfer of goods ownership data.
[0040] Loop through all groups until all groups are sorted, and it is determined that the first sorting is completed.
[0041] Step S4: According to the seller and the sold card number at the end of the preliminary trade chain, search for the matching trade chain head in other preliminary trade chains, recursively splice and backtrack in reverse, and perform the second sorting on the preliminary trade chain to obtain the transfer path of goods ownership.
[0042] Specifically, after the first sorting is completed to generate preliminary trade chains, the second sorting is performed. The matching heads and tails are searched for between different preliminary trade chains, and the final sorting is completed through recursive splicing and reverse backtracking to obtain the complete transfer path of goods ownership.
[0043] In some embodiments, the transfer of the property right data of only the buyer as the head of the trade chain includes: Screen out the property right transfer data in the group where the seller and the selling card number are empty, or the seller and the selling card number are not associated with a valid source of property rights, as the head of the trade chain, and obtain the buyer and the buying card number in the property right transfer data.
[0044] In some embodiments, when matching the next property right transfer data according to the buyer and the buying card number, it includes: In the group, according to the buyer and the buying card number in the current property right transfer data, find the seller and the selling card number that are the same as the buyer and the buying card number; Add the property right transfer data corresponding to the seller and the selling card number to the current trade chain, and obtain a new buyer and a new buying card number; Continue to recursively search based on the new buyer and the new buying card number until no matching property right transfer data can be found or all the property right transfer data in the group has been traversed.
[0045] Specifically, according to the buyer and the buying card number of the current property right transfer, find another property right transfer record with the same seller and the seller's card number, which is recognized as the next property right transfer, obtain the buyer and the buying card number of this property right transfer, and add the recognized property right transfer to the end of the current trade chain; Recursively execute the above steps until all the property right transfer data in the group has been sorted, and it is recognized that the current group has completed the sorting of the property right transfer.
[0046] In some embodiments, when performing the second sorting on the preliminary trade chain, the following steps are included: Randomly select a trade chain to be sorted as the current trade chain, and obtain the seller and the selling card number of the property right transfer data at the end of the current trade chain; According to the seller and the selling card number, search for a matching trade chain head in other trade chains of the same commodity (the variety and brand are the same), and place the found trade chain behind the current trade chain; Recursively search for a matching trade chain head until no matching next trade chain can be found, and obtain the final trade chain; Take the final trade chain as the current trade chain and mark it as sorted, search for the previous trade chain of the current trade chain in reverse, and place the previous trade chain in front of the current trade chain; Take the previous trade chain as the current trade chain and mark it as sorted, recursively search for the previous trade chain of the current trade chain in reverse, and place the previous trade chain in front of the current trade chain. Repeat the reverse search for the previous trade chain of the current trade chain until no matching previous trade chain can be found, and obtain the final trade chain; Repeat the above steps until all the preliminary trade chains have been sorted.
[0047] Specifically, randomly select one of all the preliminary trade chains to be sorted as the starting point, and extract the seller and the sold card number information at the end of the current trade chain for subsequent matching and searching. In the same commodity (with the same variety and brand), search for the head of other trade chains that match the end of the current trade chain, and place the found trade chains behind the current trade chain to form a longer trade chain. Through recursive searching, connect all the matching trade chains to form a complete trade chain, and then use this trade chain as the current trade chain and mark it as sorted.
[0048] Starting from the head of the current trade chain, search upward for the previous trade chain. If a matching end is found, connect the found trade chain in front of the current trade chain. Through recursive backward searching, connect all the previous trade chains to form a complete trade chain.
[0049] Repeat the above steps until all the preliminary trade chains are sorted.
[0050] In this way, after randomly selecting a trade chain, through forward searching and backward tracing, ensure that all the preliminary trade chains are correctly connected to generate a complete path of transfer of property rights, which not only improves the sorting efficiency but also ensures the integrity and accuracy of the generated path.
[0051] In some embodiments, when searching for a match, if the buyer and the bought card number at the end of the current trade chain are the same as the seller and the sold card number at the head of other trade chains, the match is successful. And / or, when searching backward, if the seller and the sold card number at the head of the current trade chain are the same as the buyer and the bought card number at the end of other trade chains, the match is successful.
[0052] In some embodiments, the transfer of property rights data further includes: transfer time. Before the first sorting and / or the second sorting, sort the transfer of property rights data according to the transfer time first.
[0053] Specifically, in a complex scenario of transfer of property rights, the property rights may be frequently transferred among multiple links and entities. Sorting by time can ensure the logical order of these transfer operations, avoid errors caused by chaotic time order, and can quickly locate relevant data to improve the searching efficiency.
[0054] In some embodiments, the transfer of property rights path is displayed according to the transfer time to show the time sequence of the splitting, merging and transfer of property rights, improve the transparency of the entire trading process, and relevant parties (such as warehouse managers, auditors, etc.) can clearly see the specific time and order of each transfer of property rights, so as to manage better.
[0055] In addition, in case of disputes or legal reviews, the transfer path of property rights shown according to the transfer time can quickly locate problems, trace the origin and destination of property rights, and improve the efficiency of dispute resolution.
[0056] In some embodiments, the non-ferrous metal property right transfer sorting method further includes: Based on the property right transfer path, a visual chart of property right transfer is generated to display the complete trade chain of property right transfer, including the variety, brand, weight, seller, selling card number, buyer and buying card number of each property right transfer. Thus, the complete trade chain of property right transfer can be intuitively displayed. Even non-professionals can quickly understand the process and logic of property right transfer through the chart, reducing misunderstandings and errors. In case of disputes or legal reviews, the visual icon can reduce the time and workload of manual investigation and improve the efficiency of dispute resolution.
[0057] This application integrates the information of single non-ferrous metal property right transfer, uses computer computing power to extract the key information of single property right transfer, including variety, brand, weight, upstream and downstream property owners (seller and buyer) and their card numbers, and combines the characteristics of non-ferrous metals to quickly sort out the order of orderly continuous transfer of property rights in the process of a large number of disordered property right transfers, including split transfers and merged transfers. It helps users quickly extract one or more trade chains of continuous transfer of property rights in a large number of non-ferrous metal transactions and accurately track all sources and flows of specific goods.
[0058] Compared with the traditional method of manually flipping documents and checking information for property right transfers, this application can quickly screen the data to be sorted from a large number of property right transfer transactions, and combine the characteristics of non-ferrous metal property right transfers to quickly sort the property right transfer data, reducing the tracking difficulty and improving the tracking efficiency.
[0059] This application can achieve one-key query and automatically generate a sorting list without manual participation. Only the original system data needs to be provided, simplifying the process of finding original documents in the warehouse and then manually sorting them one by one. It can greatly improve the response speed when querying the goods chain, ensure the accuracy of sorting, and reduce the work intensity of staff.
[0060] Based on the same inventive concept, this application also provides a non-ferrous metal property right transfer sorting system, which includes: a data collection module, a data grouping module, a first sorting module and a second sorting module; The data collection module is used to collect single property right transfer data to be sorted, and the property right transfer data includes: variety, brand, weight, seller, selling card number, buyer and buying card number; The data grouping module is configured to group the single cargo right transfer data according to preset grouping conditions; wherein, the grouping conditions include: classifying the single cargo right transfer data with the same variety, brand and consistent weight into the same group; The first sorting module is configured to, within each group, use the cargo right transfer data with only a buyer and no seller as the head of the trade chain, match the next cargo right transfer data according to the buyer and the purchase card number, and perform a first sorting on the single cargo right transfer data within the group to obtain a preliminary trade chain; If there are multiple trade chain heads within the group, or when a single cargo right transfer matches multiple cargo right transfer data, multiple preliminary trade chains are split and obtained; The second sorting module is configured to, according to the seller and the selling card number at the end of the preliminary trade chain, search for a matching trade chain head in other preliminary trade chains, recursively splice and backtrack in reverse, and perform a second sorting on the preliminary trade chain to obtain the arrangement order of the cargo right transfer.
[0061] Based on the same inventive concept, the present application further provides an electronic device, which can be presented in the form of a computing device (for example, it can be a server device), including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the non-ferrous metal cargo right transfer sorting method provided in the above embodiment can be implemented.
[0062] Figure 3 The hardware structure diagram of this embodiment is shown, as Figure 3 shown, the electronic device 30 specifically includes: At least one processor 31, at least one memory 32, and a bus 33 for connecting different system components (including the processor 31 and the memory 32), wherein: The bus 33 includes a data bus, an address bus, and a control bus.
[0063] The memory 32 includes a volatile memory, such as a random access memory (RAM) 321 and / or a cache memory 322, and may further include a read-only memory (ROM) 323.
[0064] The memory 32 further includes a program / utilities 325 having a set (at least one) of program modules 324, such program modules 324 including but not limited to: an operating system, one or more application programs, other program modules, and program data, and the implementation of a network environment may be included in each or some combination of these examples.
[0065] The processor 31 executes various functional applications and data processing by running the computer program stored in the memory 32, such as the steps of the non-ferrous metal property right transfer sorting method provided in the above embodiments.
[0066] The electronic device 30 can further communicate with one or more external devices 34 (such as a keyboard, a pointing device, etc.). Such communication can be carried out through the input / output (I / O) interface 35. And, the electronic device 30 can also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN) and / or a public network, such as the Internet) through the network adapter 36. The network adapter 36 communicates with other modules of the electronic device 30 through the bus 33. It should be understood that although not shown in the figure, other hardware and / or software modules can be used in combination with the electronic device 30, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems, etc.
[0067] It should be noted that although several units / modules or sub-units / modules of the electronic device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more of the above-described units / modules can be embodied in one unit / module. Conversely, the features and functions of one unit / module described above can be further divided and embodied by multiple units / modules.
[0068] Based on the same inventive concept, the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the steps of the non-ferrous metal property right transfer sorting method provided in the above embodiments are implemented.
[0069] Among them, the more specific computer-readable storage medium that can be adopted can include but is not limited to: a portable disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0070] In a possible implementation manner, the present invention can also be implemented in the form of a program product, which includes program code, and when the program product runs on a terminal device, the program code is used to cause the terminal device to execute the steps of the non-ferrous metal property right transfer sorting method provided in the above embodiments.
[0071] Among them, the program code for executing the present invention can be written in any combination of one or more programming languages, and the program code can be executed entirely on the user device, partially on the user device, executed as an independent software package, partially on the user device and partially on a remote device, or entirely on a remote device.
[0072] In this specification, for the same or similar parts among the various embodiments, reference can be made to each other. Each embodiment focuses on the differences from other embodiments. In particular, for the embodiments described later, the description is relatively simple, and for the relevant parts, reference can be made to the corresponding parts of the foregoing embodiments.
[0073] As described above, the above are only specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by those skilled in the art within the technical scope disclosed in the present application should be covered by the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A sorting method for the transfer of non-ferrous metal property rights, characterized in that, Including: Collecting single-piece cargo right transfer data to be sorted, where the cargo right transfer data includes: variety, brand, weight, seller, selling card number, buyer, and buying card number; Grouping the single-piece cargo right transfer data according to preset grouping conditions; among them, the grouping conditions include: dividing single-piece cargo right transfer data with the same variety, brand, and consistent weight into the same group; Within each group, taking the cargo right transfer data with only the buyer as the head of the trade chain, matching the next piece of cargo right transfer data according to the buyer and the buying card number, and performing the first sorting on the single-piece cargo right transfer data within the group to obtain a preliminary trade chain; If there are multiple trade chain heads within the group, or when a single piece of cargo right transfer matches multiple pieces of cargo right transfer data, then split to obtain multiple preliminary trade chains; According to the seller and the selling card number at the end of the preliminary trade chain, search for a matching trade chain head in other preliminary trade chains, recursively splice and backtrack in reverse, and perform the second sorting on the preliminary trade chain to obtain the cargo right transfer path.
2. The non-ferrous metal property right transfer sorting method according to claim 1, characterized in that, The taking the cargo right transfer data with only the buyer as the head of the trade chain includes: Screening out, within the group, the cargo right transfer data with the seller and the selling card number being empty, or the seller and the selling card number not being associated with a valid cargo right source, as the head of the trade chain, and obtaining the buyer and the buying card number in the cargo right transfer data.
3. The non-ferrous metal property right transfer sorting method according to claim 1, characterized in that, When matching the next piece of cargo right transfer data according to the buyer and the buying card number, it includes: Within the group, according to the buyer and the buying card number in the current cargo right transfer data, searching for the seller and the selling card number that are the same as the buyer and the buying card number; Adding the cargo right transfer data corresponding to the seller and the selling card number to the current trade chain, and obtaining a new buyer and buying card number; Continuing to recursively search based on the new buyer and buying card number until no matching cargo right transfer data can be found or the cargo right transfer data within the group is traversed.
4. The non-ferrous metal property right transfer sorting method according to claim 1, characterized in that When performing the second sorting on the preliminary trade chain, it includes the following steps: Randomly selecting a trade chain to be sorted as the current trade chain, and obtaining the seller and the selling card number of the cargo right transfer data at the end of the current trade chain; According to the seller and the selling card number, searching for a matching trade chain head in other trade chains of the same commodity, and placing the found trade chain behind the current trade chain; among them, the same commodity includes: both the variety and the brand are the same; Recursively searching for a matching trade chain head until no matching next trade chain can be found to obtain the final trade chain; Taking the final trade chain as the current trade chain and marking it as sorted, searching backward for the previous trade chain of the current trade chain, and placing the previous trade chain in front of the current trade chain; Taking the previous trade chain as the current trade chain and marking it as sorted, recursively searching backward for the previous trade chain of the current trade chain, and placing the previous trade chain in front of the current trade chain, repeating the backward search for the previous trade chain of the current trade chain until no matching previous trade chain can be found to obtain the final trade chain; Repeating the above steps until all preliminary trade chains are sorted.
5. The non-ferrous metal property right transfer sorting method according to claim 4, characterized in that When searching for a match, if the buyer and the buying card number at the end of the current trade chain are the same as the seller and the selling card number of the head of another trade chain, then the match is successful; And / or, during reverse lookup, if the seller and the selling card number at the head of the current trade chain are the same as the buyer and the buying card number at the tail of another trade chain, the match is successful.
6. The non-ferrous metal property right transfer sorting method according to claim 1, characterized in that The ownership transfer data further includes: transfer time; Before the first sorting and / or the second sorting, sort the ownership transfer data by transfer time; And / or, the ownership transfer path is displayed according to the transfer time to show the time sequence of ownership splitting, merging and transfer.
7. The non-ferrous metal property right transfer sorting method according to claim 1, wherein The non-ferrous metal ownership transfer sorting method further includes: Based on the ownership transfer path, generate a visual chart of ownership transfer for showing the complete trade chain of the ownership transfer, including the variety, brand, weight, seller, selling card number, buyer and buying card number of each ownership transfer.
8. A non-ferrous metal property right transfer sorting system, characterized in that, The non-ferrous metal ownership transfer sorting system includes: a data collection module, a data grouping module, a first sorting module and a second sorting module; The data collection module is used to collect single-piece ownership transfer data to be sorted, and the ownership transfer data includes: variety, brand, weight, seller, selling card number, buyer and buying card number; The data grouping module is used to group the single-piece ownership transfer data according to preset grouping conditions; wherein, the grouping conditions include: dividing the single-piece ownership transfer data with the same variety, brand and consistent weight into the same group; The first sorting module is used to, within each group, use the ownership transfer data with only a buyer and no seller as the head of the trade chain, match the next piece of ownership transfer data according to the buyer and the buying card number, and perform the first sorting on the single-piece ownership transfer data within the group to obtain a preliminary trade chain; If there are multiple trade chain heads within the group, or when a single-piece ownership transfer matches multiple pieces of ownership transfer data, then split to obtain multiple preliminary trade chains; The second sorting module is used to, according to the seller and the selling card number at the tail of the preliminary trade chain, find a matching trade chain head in other preliminary trade chains, recursively splice and reverse trace back, and perform the second sorting on the preliminary trade chain to obtain the arrangement order of the ownership transfer.
9. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the non-ferrous metal ownership transfer sorting method according to any one of claims 1-7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the non-ferrous metal ownership transfer sorting method according to any one of claims 1-7.
Citation Information
Patent Citations
Method of saving storage space and tracing asset ownership change history
CN107330790A
Delivery system and delivery method applied to spot commodity transaction platform
CN110070407A
Digital asset management method and device based on NFT
CN116308325A
Block chain-based asset circulation traceability method, apparatus and device, and storage medium
CN117829990A
Block chain-based digital creditor's right certificate flow storage method and device, and medium
CN119271744A