Transportation liquid profit and loss obtaining method, device and equipment and storage medium
By acquiring the identifiers and status parameters from the liquid transportation plan and measuring equipment to calculate the final mass of the liquid, matching transportation vehicles, and constructing a profit and loss statement, the problem of profit and loss calculation deviations during liquid transportation is solved, and accurate profit and loss management is achieved.
Patent Information
- Application Number
- CN202511682520.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-17
- Publication Date
- 2026-02-10
AI Technical Summary
In existing technologies, during the liquid transportation process of petrochemical railway tank cars, the measurement of liquid level, density, and temperature is easily affected by the external environment, resulting in significant deviations in the calculation of profit and loss. Manual measurement methods are time-consuming and prone to errors, affecting the integrity and accuracy of the data.
The density, temperature, and level of the target liquid are obtained by acquiring the first liquid identifier and state parameter measuring equipment from the liquid transportation plan. The final mass is calculated, and a transportation vehicle is matched according to the liquid identifier to construct a profit and loss statement to calculate the profit and loss.
It enables real-time monitoring and recording of liquid states, ensuring that the mass calculation of each target liquid is clearly attributed to the corresponding vehicle, avoiding information confusion and erroneous data aggregation, and improving the accuracy of profit and loss calculation and the reliability of data management.
Smart Images

Figure CN121503899A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of liquid transportation technology, specifically to a method, apparatus, equipment, and storage medium for obtaining the surplus or deficit of transported liquids. Background Technology
[0002] Petrochemical railway tank cars are railway vehicles specifically designed for transporting petrochemical products in liquid or gaseous form, including crude oil, refined products, and chemicals. These tank cars possess excellent sealing and explosion-proof properties to ensure no leaks or other safety accidents occur during transportation. However, the measurement and monitoring of petrochemical products transported to their destinations still rely on traditional manual methods, leading to several problems. First, external environmental factors such as weather and temperature can easily cause errors in the measurement of liquid level, density, and temperature, potentially resulting in inaccurate results. Second, depth measuring tapes often exhibit a "climbing" phenomenon, where the measuring length slowly increases due to its own weight or external factors, affecting the accuracy of depth measurements. Furthermore, manually recording tank car information requires repeated data entry, which is time-consuming and prone to errors, thus affecting the integrity and accuracy of the data. The surplus or deficit of liquids transported by petrochemical railway tank cars during transportation is calculated based on data measured and monitored using traditional manual methods; the aforementioned problems can lead to significant deviations in calculating the surplus or deficit of liquids during transportation.
[0003] Therefore, how to reduce the calculation deviation of the profit or loss of the transported liquid during the transportation process is a technical problem that urgently needs to be solved by those skilled in the art. Summary of the Invention
[0004] To address the aforementioned issues, this application provides a method, apparatus, equipment, and storage medium for obtaining the profit or loss of transported liquids, which can reduce the calculation deviation of the profit or loss of the transported liquids during the transportation process.
[0005] The embodiments of this application disclose the following technical solutions:
[0006] A method for obtaining the surplus or deficit of transported liquids, the method comprising:
[0007] Obtain the original volume and first liquid identifier of each target liquid; the first liquid identifier has a one-to-one correspondence with the original volume of the target liquid; the first liquid identifier is obtained through the liquid transport plan.
[0008] The state parameters of the target liquid transported by each transport vehicle at its destination are obtained through a state parameter measurement device; the state parameters include liquid density, liquid temperature, and liquid level.
[0009] The final mass of the target liquid is calculated based on its state parameters at the destination; the final mass of the target liquid has a one-to-one correspondence with the transport vehicle.
[0010] The transport vehicle matching the first liquid identifier is determined based on the first liquid identifier and the second liquid identifier; the second liquid identifier is marked on the transport vehicle.
[0011] Based on the initial volume of the target liquid corresponding to the first liquid identifier and the final mass of the target liquid transported by the matching transport vehicle, calculate the profit or loss corresponding to the initial volume of each target liquid.
[0012] In one possible implementation, the first liquid identifier includes the vehicle number of the target vehicle transporting the target liquid, the liquid name of the target liquid, and the seal number of the target liquid; the second liquid identifier includes the vehicle number of the transport vehicle, the liquid name of the target liquid transported by the transport vehicle, and the seal number of the target liquid transported by the transport vehicle.
[0013] The step of determining the transport vehicle matching the first liquid identifier based on the first liquid identifier and the second liquid identifier includes:
[0014] Match the vehicle number of the target vehicle identified by the first liquid identifier with the vehicle number of the transport vehicle identified by the second liquid identifier; match the liquid name of the target liquid identified by the first liquid identifier with the liquid name of the target liquid transported by the transport vehicle identified by the second liquid identifier; match the seal number of the target liquid identified by the first liquid identifier with the seal number of the target liquid transported by the transport vehicle identified by the second liquid identifier.
[0015] If the vehicle number, the liquid name, and the seal number all match, then the first liquid identifier and the second liquid identifier are determined to match.
[0016] The transport vehicle that matches the first liquid identifier is determined based on the second liquid identifier that matches the first liquid identifier and the transport vehicle indicated by the second liquid identifier.
[0017] In one possible implementation, the method further includes:
[0018] A profit and loss statement is constructed based on each of the second liquid identifiers, the initial volume of each target liquid, the final mass of the target liquid transported by each transport vehicle, and the profit or loss corresponding to the initial volume of each target liquid.
[0019] In one possible implementation, the method further includes:
[0020] The measurement time of each of the state parameters is obtained by the state parameter measuring device.
[0021] The measurement time is marked with the profit or loss corresponding to the original volume of each target liquid based on the state parameters and the final mass calculated based on the state parameters; the state parameters have a one-to-one correspondence with the final mass and the profit or loss.
[0022] In one possible implementation, the method further includes:
[0023] The profit and loss statement is verified.
[0024] If the verification is successful, the profit and loss statement will be uploaded to the target system according to the protocol requirements of the target system.
[0025] An apparatus for obtaining the surplus or deficit of transported liquids, the apparatus comprising:
[0026] The first acquisition unit is used to acquire the original volume of each target liquid and the first liquid identifier; the first liquid identifier has a one-to-one correspondence with the original volume of the target liquid; the first liquid identifier is acquired through the liquid transport plan.
[0027] The second acquisition unit is used to acquire the state parameters of the target liquid transported by each transport vehicle at the destination through a state parameter measurement device; the state parameters include liquid density, liquid temperature and liquid level.
[0028] The first calculation unit is used to calculate the final mass of the target liquid based on the state parameters of the target liquid at the destination; the final mass of the target liquid has a one-to-one correspondence with the transport vehicle;
[0029] The first determining unit is configured to determine the transport vehicle that matches the first liquid identifier based on the first liquid identifier and the second liquid identifier; the second liquid identifier is marked on the transport vehicle;
[0030] The second calculation unit is used to calculate the profit or loss corresponding to the original amount of each target liquid based on the original amount of the target liquid corresponding to the first liquid identifier and the final mass of the target liquid transported by the matching transport vehicle.
[0031] In one possible implementation, the first liquid identifier includes the vehicle number of the target vehicle transporting the target liquid, the liquid name of the target liquid, and the seal number of the target liquid; the second liquid identifier includes the vehicle number of the transport vehicle, the liquid name of the target liquid transported by the transport vehicle, and the seal number of the target liquid transported by the transport vehicle.
[0032] The first determining unit specifically includes:
[0033] A matching unit is configured to match the vehicle number of the target vehicle identified by the first liquid identifier with the vehicle number of the transport vehicle identified by the second liquid identifier, match the liquid name of the target liquid identified by the first liquid identifier with the liquid name of the target liquid transported by the transport vehicle identified by the second liquid identifier, and match the seal number of the target liquid identified by the first liquid identifier with the seal number of the target liquid transported by the transport vehicle identified by the second liquid identifier.
[0034] The second determining unit, if the vehicle number, the liquid name, and the seal number all match, is used to determine that the first liquid identifier matches the second liquid identifier.
[0035] The third determining unit is used to determine the transport vehicle that matches the first liquid identifier based on the second liquid identifier that matches the first liquid identifier and the transport vehicle marked by the second liquid identifier.
[0036] In one possible implementation, the device further includes:
[0037] The profit and loss statement construction unit is used to construct a profit and loss statement based on each of the second liquid identifiers, the original amount of each target liquid, the final mass of the target liquid transported by each transport vehicle, and the profit and loss amount corresponding to the original amount of each target liquid.
[0038] An apparatus for obtaining the surplus or deficit of transported liquids includes: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the method for obtaining the surplus or deficit of transported liquids as described above.
[0039] A computer-readable storage medium storing instructions that, when executed on a terminal device, cause the terminal device to perform the method for obtaining the surplus or deficit of transport liquid as described above.
[0040] Compared with the prior art, this application has the following advantages:
[0041] This application provides a method, apparatus, device, and storage medium for obtaining the surplus or deficit of transported liquids. Specifically, when implementing the method for obtaining the surplus or deficit of transported liquids provided in this application, the initial volume and first liquid identifier of each target liquid are first obtained, and the state parameters of the target liquids transported by each transport vehicle at the destination are obtained through a state parameter measuring device. Then, the final mass of the target liquid is calculated based on the state parameters of the target liquid at the destination, and the transport vehicle matching the first liquid identifier is determined based on the first liquid identifier and the second liquid identifier marked on the transport vehicle. The surplus or deficit corresponding to the initial volume of each target liquid is then calculated based on the initial volume of the target liquid corresponding to the first liquid identifier and the final mass of the target liquid transported by the matching transport vehicle. The final mass of the target liquid has a one-to-one correspondence with the transport vehicle. This application obtains state parameters such as liquid density, liquid temperature, and liquid level of each transport vehicle at the destination through a state parameter measuring device, realizing real-time monitoring and recording of the liquid state. Such real-time acquisition can promptly reflect the state changes of the target liquid during transportation, providing an accurate data basis for subsequent calculation of the surplus or deficit of the target liquid. Simultaneously, the final mass of the target liquid is calculated based on its state parameters at the destination, ensuring a correspondence with the matched transport vehicle. This one-to-one correspondence allows the mass calculation of each target liquid to be clearly assigned to the corresponding vehicle, avoiding information confusion and erroneous data aggregation. Attached Figure Description
[0042] To more clearly illustrate the technical solutions in this embodiment or the prior art, the drawings used in the description of the embodiment or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0043] Figure 1 A flowchart illustrating a method for obtaining the surplus or deficit of transport liquids, provided in an embodiment of this application;
[0044] Figure 2 A flowchart illustrating a method for determining a transport vehicle that matches a first liquid identifier, provided as an embodiment of this application;
[0045] Figure 3 This is a schematic diagram of a device for obtaining the surplus or deficit of transport liquids, provided in an embodiment of this application. Detailed Implementation
[0046] To facilitate understanding of the technical solutions provided in the embodiments of this application, the background technology involved in the embodiments of this application will be described below.
[0047] Petrochemical railway tank cars are railway vehicles specifically designed for transporting petrochemical products. These tank cars are typically designed to safely transport chemical products in liquid or gaseous forms, such as crude oil, refined petroleum products, and chemicals. Their structure incorporates sealing and explosion-proof features to ensure that leaks or other safety issues do not occur during transport.
[0048] Currently, the measurement and monitoring of petrochemical products transported by rail tank cars to their destination still relies on primitive manual methods, which have several problems. First, measurements of liquid level, density, and temperature are easily affected by external environmental factors such as weather and temperature, potentially leading to inaccurate results. Second, depth measuring tapes often exhibit a "climbing" phenomenon, where the measuring length slowly increases due to their own weight or external factors, affecting the accuracy of depth measurements. Furthermore, manually recording tank car information requires repeated entry, which is not only time-consuming but also prone to errors, affecting the integrity and accuracy of the data. The surplus or deficit of liquids transported by petrochemical rail tank cars during transportation is calculated based on data measured and monitored using traditional manual methods; the aforementioned problems can lead to significant deviations in calculating the surplus or deficit of liquids during transportation.
[0049] To address this issue, this application provides a method, apparatus, device, and storage medium for obtaining the surplus or deficit of transported liquids. First, the initial volume and a first liquid identifier of each target liquid are obtained. Then, the state parameters of the transport vehicle at the destination are obtained through a state parameter measurement device, the final mass of the target liquid is calculated, and a matching transport vehicle is determined. Subsequently, based on the initial volume of the target liquid corresponding to the first liquid identifier and the final mass of the matching vehicle, the surplus or deficit of each target liquid is calculated. This achieves real-time monitoring and recording of the liquid state, provides a data foundation for accurately calculating the surplus or deficit, and ensures that each target liquid mass corresponds to a specific vehicle, avoiding information confusion and erroneous summaries.
[0050] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0051] See Figure 1 The figure is a flowchart of a method for obtaining the surplus or deficit of transported liquids according to an embodiment of this application. Figure 1 As shown, the method for obtaining the surplus or deficit of transported liquid may include steps S101-S105:
[0052] S101: Obtain the original amount and first liquid identifier of each target liquid.
[0053] To determine the surplus or deficit of the transported target liquids, the liquid surplus / deficit acquisition system first obtains the original volume of each target liquid and its corresponding first liquid identifier, which is obtained through the liquid transport plan. There is a one-to-one correspondence between the first liquid identifier and the original volume of each target liquid, ensuring that each liquid and its quantity can be clearly identified and recorded.
[0054] This ensures accurate tracking and management of the quantity and identity of each liquid throughout the entire liquid transportation process, effectively preventing liquid exchange or confusion, ensuring the safe transportation and correct delivery of the target liquid, and providing an accurate basis for subsequent liquid status monitoring and metering.
[0055] It should be noted that a liquid transport plan is a document or form that records information related to the transport of liquids. A liquid transport plan typically includes the following information: vehicle number (the number of the target vehicle for the target liquid), vehicle type (the type of target vehicle), marked load capacity (the rated load capacity of the target vehicle), identification number (the identification number on the target vehicle), product name (the name of the target liquid being transported), departure station (the point of origin of transport), destination station (the point of arrival), tank number (the number of the liquid loading tank on the target vehicle), storage time (the time the target liquid arrives at the point of origin of transport), storage date (the date the target liquid arrives at the point of origin of transport), storage location number (the number of the location where the target liquid is stored), track number (the track number on which the target vehicle is parked), seal number (the identification number of the sealed liquid), and initial quantity (the initial quantity of liquid). This information helps track and manage various details of the liquid during transport.
[0056] S102: Obtain the state parameters of the target liquid transported by each transport vehicle at the destination through state parameter measurement equipment.
[0057] The system acquires the state parameters of the target liquid transported by each transport vehicle at its destination using state parameter measurement devices. These parameters include the liquid's density, temperature, and level. These parameters are crucial for liquid transport management. Liquid density directly reflects its mass, temperature affects its volume and flowability, and the level indicates the amount of liquid stored and management requirements. By acquiring these state parameters in real time, the system ensures the accuracy of the quality and quantity of liquid transported each time it arrives at its destination.
[0058] It should be noted that state parameter measuring equipment refers to equipment used to measure and monitor various physical and chemical state parameters. These parameters may include temperature, pressure, flow rate, liquid level, humidity, concentration, vibration, etc.
[0059] S103: Calculate the final mass of the target liquid based on the state parameters of the target liquid at the destination.
[0060] Calculating the final mass of a target liquid at its destination involves measuring and analyzing parameters such as the liquid's density, temperature, and level to deduce the total mass. First, measuring the liquid's density yields the mass per unit volume. Then, combining this with the liquid's volume and level information, the total mass can be calculated. Furthermore, considering the effect of temperature on density, this factor must be taken into account to ensure accuracy. By comprehensively considering the liquid's density, temperature, and level, the final mass of the target liquid at its destination can be calculated more precisely.
[0061] The reason for calculating the final mass of a target liquid based on its state parameters at the destination is that these parameters directly affect the liquid's mass. The liquid's density tells us the mass contained per unit volume, while the liquid level provides the total volume. By combining these two parameters, the overall liquid mass can be determined. Additionally, temperature affects the liquid's density, so the impact of temperature changes on the liquid mass calculation must be considered. Calculating the final mass based on the target liquid's state parameters at the destination ensures the accuracy and reliability of the results, helps manage the profit and loss during liquid transportation, and provides important data analysis and decision-making support.
[0062] S104: Determine the transport vehicle that matches the first liquid identifier based on the first liquid identifier and the second liquid identifier.
[0063] Determining the transport vehicle matching the first liquid identifier is done by comparing the first liquid identifier and the second liquid identifier. Typically, the first liquid identifier is a unique identifier recorded in the liquid transport plan, used to mark a specific target liquid. The second liquid identifier is a specific identifier marked on the transport vehicle, corresponding to the first liquid identifier. When it is necessary to determine the transport vehicle corresponding to a specific target liquid, the matching second liquid identifier is searched based on the first liquid identifier to identify the correct transport vehicle.
[0064] Matching the first and second liquid identifiers to determine the corresponding transport vehicle ensures that each transport vehicle is accurately associated with the correct target liquid and related information. The first liquid identifier, as a unique symbol for the target liquid, helps identify and track the transportation process of each liquid. The second liquid identifier, directly affixed to the transport vehicle, establishes a clear association between a specific target liquid and a specific transport vehicle. Ensuring the matching of the first and second liquid identifiers avoids confusion and errors, ensuring that each target liquid is accurately assigned to the corresponding transport vehicle, improving the accuracy and reliability of data management. Therefore, determining the matching transport vehicle based on the first and second liquid identifiers helps ensure the smooth operation of the liquid transportation process and the clear and accurate recording of information.
[0065] In one possible implementation, the first liquid identifier includes the vehicle number of the target vehicle transporting the target liquid, the liquid name of the target liquid, and the seal number of the target liquid; the second liquid identifier includes the vehicle number of the transport vehicle, the liquid name of the target liquid transported by the transport vehicle, and the seal number of the target liquid transported by the transport vehicle.
[0066] See Figure 2 , Figure 2 The flowchart of a method for determining a transport vehicle matching a first liquid identifier is provided in an embodiment of this application. Accordingly, determining the transport vehicle matching the first liquid identifier based on the first liquid identifier and the second liquid identifier can be specifically implemented through steps A1-A3:
[0067] A1: Match the vehicle number of the target vehicle identified by the first liquid identifier with the vehicle number of the transport vehicle identified by the second liquid identifier; match the liquid name of the target liquid identified by the first liquid identifier with the liquid name of the target liquid transported by the transport vehicle identified by the second liquid identifier; match the seal number of the target liquid identified by the first liquid identifier with the seal number of the target liquid transported by the transport vehicle identified by the second liquid identifier.
[0068] To progressively match the different parameters in the first and second liquid identifiers and ensure their correlation, the following steps are taken: First, the vehicle number of the target vehicle in the first liquid identifier is matched with the vehicle number of the transport vehicle in the second liquid identifier. This helps determine the specific transport vehicle to which the target liquid belongs. Second, the liquid name of the target liquid in the first liquid identifier is matched with the liquid name of the target liquid transported by the transport vehicle in the second liquid identifier, confirming the correct correspondence between liquid types. Finally, the seal number of the target liquid in the first liquid identifier is matched with the seal number of the target liquid transported by the transport vehicle in the second liquid identifier, ensuring the correct matching of liquid safety sealing information.
[0069] By progressively matching parameters such as vehicle number, liquid name, and seal number, accurate matching of information between the first and second liquid identifiers can be ensured, thereby clarifying the association between the target liquid and the corresponding transport vehicle. This systematic matching process helps improve the accuracy and reliability of data management, avoids problems caused by information confusion or errors, and ensures that each target liquid can be correctly assigned to the appropriate transport vehicle.
[0070] A2: If the vehicle number, the liquid name, and the seal number all match, then the first liquid identifier and the second liquid identifier are determined to match.
[0071] When the vehicle number, liquid name, and seal number all match, i.e., all matching conditions are met, the first liquid identifier is confirmed to match the second liquid identifier. This means that the vehicle number of the target vehicle matches the vehicle number of the transport vehicle, the liquid name of the target liquid matches the liquid name of the target liquid transported by the transport vehicle, and the seal number of the target liquid matches the seal number of the target liquid transported by the transport vehicle.
[0072] Ensuring the matching of these three key parameters is crucial during liquid transportation. Only when all this information matches perfectly can the correct association of the target liquid with the appropriate transport vehicle be guaranteed. This rigorous matching mechanism helps avoid any potential confusion or errors, improving data accuracy and reliability. Therefore, when all key parameters are perfectly matched, the matching relationship between the first liquid identifier and the second liquid identifier can be confirmed, indicating that the target liquid has been accurately assigned to the corresponding transport vehicle, thus providing necessary assurance and supervision for the entire liquid transportation process.
[0073] A3: Based on the second liquid identifier that matches the first liquid identifier and the transport vehicle indicated by the second liquid identifier, determine the transport vehicle that matches the first liquid identifier.
[0074] Once it is confirmed that the first liquid identifier has successfully matched a specific second liquid identifier, the transport vehicle that matches the first liquid identifier will be determined based on the second liquid identifier and the transport vehicle indicated by the second liquid identifier.
[0075] In other words, the specific transport vehicle associated with the first liquid identifier can be directly identified through the matched second liquid identifier. The second liquid identifier provides detailed information about the liquid transport, including the liquid name, vehicle number, and seal number. Based on this information, the specific vehicle transporting the liquid can be tracked, thereby ensuring the proper management and monitoring of the target liquid's transport process.
[0076] S105: Calculate the profit or loss corresponding to the original amount of the target liquid corresponding to the first liquid identifier and the final mass of the target liquid transported by the matching transport vehicle.
[0077] Based on the initial quantity of the target liquid corresponding to the first liquid identifier and the final mass of the target liquid transported by the matched transport vehicle (i.e., the quantity after the transport is completed), the profit or loss corresponding to the initial quantity of each target liquid can be calculated.
[0078] Profit or loss refers to the actual loss or increase in the amount of the target liquid, calculated by comparing the initial volume with the final mass. If the final mass is higher than the initial volume, it indicates a profit; if the final mass is lower than the initial volume, it indicates a loss.
[0079] By comparing the initial quantity and final mass of each target liquid, the corresponding profit or loss can be calculated, and the potential losses or gains during liquid transportation can be further analyzed.
[0080] In one possible implementation, the method further includes:
[0081] A profit and loss statement is constructed based on each of the second liquid identifiers, the initial volume of each target liquid, the final mass of the target liquid transported by each transport vehicle, and the profit or loss corresponding to the initial volume of each target liquid.
[0082] A profit and loss statement can be constructed based on each secondary liquid identifier, the initial quantity of each target liquid, the final mass of the target liquid transported by each transport vehicle, and the profit or loss corresponding to the initial quantity of each target liquid. This statement will contain detailed information, listing the initial quantity, final mass, and profit or loss for each target liquid, helping to track and analyze the profit and loss situation during liquid transportation. Through this table, managers can gain a clearer understanding of the transportation effectiveness of each liquid batch, assess potential economic risks or profits, and make corresponding decisions to optimize liquid logistics management.
[0083] In one possible implementation, the method further includes:
[0084] The measurement time of each state parameter is obtained by the state parameter measuring device. Then, based on the state parameters and the final mass calculated based on the state parameters, the measurement time is marked with the profit or loss corresponding to the original amount of each target liquid. The state parameters have a one-to-one correspondence with the final mass and the profit or loss.
[0085] After measuring the measurement time of each state parameter using state parameter measuring equipment, the measurement time is labeled with the profit / loss corresponding to the original volume of each target liquid based on these parameters and the calculated final mass. In this process, there is a one-to-one correspondence between each state parameter and the final mass and profit / loss. This means that the measurement time of each state parameter can accurately record the associated final mass and profit / loss information, thereby ensuring data integrity and accuracy. By linking measurement time with state parameters, final mass, and profit / loss, a clear timeline can be established, helping to track, analyze, and review key information in the liquid transportation process, providing important support for effective management and monitoring.
[0086] Optionally, the measurement time for each profit or loss can also be included in the profit and loss statement.
[0087] In one possible implementation, the method further includes:
[0088] The profit and loss statement is verified. If the verification is successful, the profit and loss statement is uploaded to the target system according to the protocol requirements of the target system.
[0089] After verifying the profit and loss statement and confirming its accuracy, it will be uploaded to the target system according to the target system's protocol requirements. This operation ensures data accuracy and completeness, meeting the standards and requirements of the target system. By uploading the profit and loss statement, enterprises can effectively integrate and manage liquid transportation-related data, enabling monitoring and analysis of economic gains and losses, thereby providing a reliable basis for decision-making.
[0090] As described in S101-S105, this application acquires state parameters such as liquid density, liquid temperature, and liquid level of each transport vehicle at its destination using a state parameter measuring device, thus achieving real-time monitoring and recording of the liquid state. First, the initial volume and first liquid identifier of each target liquid can be obtained, and the state parameters of the target liquid transported by each transport vehicle at its destination can be acquired using the state parameter measuring device. Then, the final mass of the target liquid is calculated based on the state parameters at its destination, and the transport vehicle matching the first liquid identifier is determined based on the first liquid identifier and the second liquid identifier marked on the transport vehicle. Next, the surplus or deficit corresponding to the initial volume of each target liquid is calculated based on the initial volume of the target liquid corresponding to the first liquid identifier and the final mass of the target liquid transported by the matching transport vehicle. There is a one-to-one correspondence between the final mass of the target liquid and the transport vehicle. This one-to-one correspondence ensures that the mass calculation of each target liquid can be clearly attributed to the corresponding vehicle, avoiding information confusion and erroneous data aggregation.
[0091] See Figure 3 , Figure 3 This is a schematic diagram of a device for obtaining the surplus or deficit of transported liquids, provided as an embodiment of this application. Figure 3 As shown, the device for obtaining the surplus or deficit of the transported liquid includes:
[0092] The first acquisition unit 301 is used to acquire the original volume of each target liquid and the first liquid identifier; the first liquid identifier has a one-to-one correspondence with the original volume of the target liquid; the first liquid identifier is acquired through the liquid transportation plan.
[0093] The second acquisition unit 302 is used to acquire the state parameters of the target liquid transported by each transport vehicle at the destination through a state parameter measuring device; the state parameters include liquid density, liquid temperature and liquid level.
[0094] The first calculation unit 303 is used to calculate the final mass of the target liquid based on the state parameters of the target liquid at the destination; the final mass of the target liquid has a one-to-one correspondence with the transport vehicle;
[0095] The first determining unit 304 is configured to determine the transport vehicle that matches the first liquid identifier based on the first liquid identifier and the second liquid identifier; the second liquid identifier is marked on the transport vehicle.
[0096] The second calculation unit 305 is used to calculate the profit or loss corresponding to the original amount of each target liquid based on the original amount of the target liquid corresponding to the first liquid identifier and the final mass of the target liquid transported by the matching transport vehicle.
[0097] In one possible implementation, the first liquid identifier includes the vehicle number of the target vehicle transporting the target liquid, the liquid name of the target liquid, and the seal number of the target liquid; the second liquid identifier includes the vehicle number of the transport vehicle, the liquid name of the target liquid transported by the transport vehicle, and the seal number of the target liquid transported by the transport vehicle.
[0098] In one possible implementation, the first determining unit 304 specifically includes:
[0099] A matching unit is configured to match the vehicle number of the target vehicle identified by the first liquid identifier with the vehicle number of the transport vehicle identified by the second liquid identifier, match the liquid name of the target liquid identified by the first liquid identifier with the liquid name of the target liquid transported by the transport vehicle identified by the second liquid identifier, and match the seal number of the target liquid identified by the first liquid identifier with the seal number of the target liquid transported by the transport vehicle identified by the second liquid identifier.
[0100] The second determining unit, if the vehicle number, the liquid name, and the seal number all match, is used to determine that the first liquid identifier matches the second liquid identifier.
[0101] The third determining unit is used to determine the transport vehicle that matches the first liquid identifier based on the second liquid identifier that matches the first liquid identifier and the transport vehicle marked by the second liquid identifier.
[0102] In one possible implementation, the device further includes:
[0103] The profit and loss statement construction unit is used to construct a profit and loss statement based on each of the second liquid identifiers, the original amount of each target liquid, the final mass of the target liquid transported by each transport vehicle, and the profit and loss amount corresponding to the original amount of each target liquid.
[0104] In one possible implementation, the device further includes:
[0105] The third acquisition unit is used to acquire the measurement time of the state parameter measuring device for each of the state parameters;
[0106] The measurement time annotation unit is used to annotate the measurement time for the profit or loss corresponding to the original amount of each of the target liquids based on the state parameters and the final mass calculated based on the state parameters; the state parameters have a one-to-one correspondence with the final mass and the profit or loss.
[0107] In one possible implementation, the device further includes:
[0108] A verification unit is used to verify the profit and loss statement;
[0109] An upload unit is used to upload the profit and loss statement to the target system according to the protocol requirements of the target system if the verification is correct.
[0110] In addition, this application embodiment also provides a device for obtaining the surplus or deficit of transport liquid, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the method for obtaining the surplus or deficit of transport liquid as described above.
[0111] In addition, this application embodiment also provides a computer-readable storage medium storing instructions that, when executed on a terminal device, cause the terminal device to perform the method for obtaining the surplus or deficit of transport liquid as described above.
[0112] This application provides a device for obtaining the profit or loss of transported liquids. First, a first acquisition unit 301 acquires the initial volume of each target liquid and a first liquid identifier that corresponds one-to-one with the initial volume of the target liquid. Then, a second acquisition unit 302 acquires the state parameters of the target liquids transported by each transport vehicle at their destination using a state parameter measuring device. A first calculation unit 303 calculates the final mass of the target liquid based on the state parameters at the destination. Next, a first determination unit 304 determines the transport vehicle matching the first liquid identifier based on the first liquid identifier and a second liquid identifier marked on the transport vehicle. This allows the second calculation unit 305 to calculate the profit or loss corresponding to the initial volume of each target liquid based on the initial volume of the target liquid corresponding to the first liquid identifier and the final mass of the target liquid transported by the matching transport vehicle. This application utilizes a state parameter measuring device to monitor and record the liquid density, temperature, and level of each transport vehicle at the destination in real time, reflecting the state changes of the target liquid during transportation and providing an accurate data basis for profit or loss calculation. The final mass is calculated based on the target liquid state parameters, and a one-to-one correspondence with the matched vehicle is ensured. This ensures that the mass calculation of each target liquid is clearly attributed to a specific vehicle, avoiding information confusion and erroneous data aggregation.
[0113] The foregoing has provided a detailed description of a method, apparatus, device, and storage medium for obtaining the surplus or deficit of transported liquids. The various embodiments in the specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section. It should be noted that those skilled in the art can make several improvements and modifications to this application without departing from the principles of this application, and these improvements and modifications also fall within the protection scope of the claims of this application.
[0114] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.
[0115] It should also be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
Claims
1. A method for obtaining the surplus or deficit of transported liquids, characterized in that, The method includes: Obtain the original volume and first liquid identifier of each target liquid; the first liquid identifier has a one-to-one correspondence with the original volume of the target liquid; the first liquid identifier is obtained through the liquid transport plan. The state parameters of the target liquid transported by each transport vehicle at its destination are obtained through a state parameter measurement device; the state parameters include liquid density, liquid temperature, and liquid level. The final mass of the target liquid is calculated based on its state parameters at the destination; the final mass of the target liquid has a one-to-one correspondence with the transport vehicle. The transport vehicle matching the first liquid identifier is determined based on the first liquid identifier and the second liquid identifier; the second liquid identifier is marked on the transport vehicle. Based on the initial volume of the target liquid corresponding to the first liquid identifier and the final mass of the target liquid transported by the matching transport vehicle, calculate the profit or loss corresponding to the initial volume of each target liquid.
2. The method according to claim 1, characterized in that, The first liquid identifier includes the vehicle number of the target vehicle transporting the target liquid, the liquid name of the target liquid, and the seal number of the target liquid; the second liquid identifier includes the vehicle number of the transport vehicle, the liquid name of the target liquid transported by the transport vehicle, and the seal number of the target liquid transported by the transport vehicle. The step of determining the transport vehicle matching the first liquid identifier based on the first liquid identifier and the second liquid identifier includes: Match the vehicle number of the target vehicle identified by the first liquid identifier with the vehicle number of the transport vehicle identified by the second liquid identifier; match the liquid name of the target liquid identified by the first liquid identifier with the liquid name of the target liquid transported by the transport vehicle identified by the second liquid identifier; match the seal number of the target liquid identified by the first liquid identifier with the seal number of the target liquid transported by the transport vehicle identified by the second liquid identifier. If the vehicle number, the liquid name, and the seal number all match, then the first liquid identifier and the second liquid identifier are determined to match. The transport vehicle that matches the first liquid identifier is determined based on the second liquid identifier that matches the first liquid identifier and the transport vehicle indicated by the second liquid identifier.
3. The method according to claim 1, characterized in that, The method further includes: A profit and loss statement is constructed based on each of the second liquid identifiers, the initial volume of each target liquid, the final mass of the target liquid transported by each transport vehicle, and the profit or loss corresponding to the initial volume of each target liquid.
4. The method according to claim 1, characterized in that, The method further includes: The measurement time of each of the state parameters is obtained by the state parameter measuring device. The measurement time is marked with the profit or loss corresponding to the original volume of each target liquid based on the state parameters and the final mass calculated based on the state parameters; the state parameters have a one-to-one correspondence with the final mass and the profit or loss.
5. The method according to claim 3, characterized in that, The method further includes: The profit and loss statement is verified. If the verification is successful, the profit and loss statement will be uploaded to the target system according to the protocol requirements of the target system.
6. A device for obtaining the surplus or deficit of transported liquid, characterized in that, The device includes: The first acquisition unit is used to acquire the original volume of each target liquid and the first liquid identifier; the first liquid identifier has a one-to-one correspondence with the original volume of the target liquid; the first liquid identifier is acquired through the liquid transport plan. The second acquisition unit is used to acquire the state parameters of the target liquid transported by each transport vehicle at the destination through a state parameter measurement device; the state parameters include liquid density, liquid temperature and liquid level. The first calculation unit is used to calculate the final mass of the target liquid based on the state parameters of the target liquid at the destination; the final mass of the target liquid has a one-to-one correspondence with the transport vehicle; The first determining unit is configured to determine the transport vehicle that matches the first liquid identifier based on the first liquid identifier and the second liquid identifier; the second liquid identifier is marked on the transport vehicle; The second calculation unit is used to calculate the profit or loss corresponding to the original amount of each target liquid based on the original amount of the target liquid corresponding to the first liquid identifier and the final mass of the target liquid transported by the matching transport vehicle.
7. The apparatus according to claim 6, characterized in that, The first liquid identifier includes the vehicle number of the target vehicle transporting the target liquid, the liquid name of the target liquid, and the seal number of the target liquid; the second liquid identifier includes the vehicle number of the transport vehicle, the liquid name of the target liquid transported by the transport vehicle, and the seal number of the target liquid transported by the transport vehicle. The first determining unit specifically includes: A matching unit is configured to match the vehicle number of the target vehicle identified by the first liquid identifier with the vehicle number of the transport vehicle identified by the second liquid identifier, match the liquid name of the target liquid identified by the first liquid identifier with the liquid name of the target liquid transported by the transport vehicle identified by the second liquid identifier, and match the seal number of the target liquid identified by the first liquid identifier with the seal number of the target liquid transported by the transport vehicle identified by the second liquid identifier. The second determining unit, if the vehicle number, the liquid name, and the seal number all match, is used to determine that the first liquid identifier matches the second liquid identifier. The third determining unit is used to determine the transport vehicle that matches the first liquid identifier based on the second liquid identifier that matches the first liquid identifier and the transport vehicle marked by the second liquid identifier.
8. The apparatus according to claim 6, characterized in that, The device further includes: The profit and loss statement construction unit is used to construct a profit and loss statement based on each of the second liquid identifiers, the original amount of each target liquid, the final mass of the target liquid transported by each transport vehicle, and the profit and loss amount corresponding to the original amount of each target liquid.
9. A device for obtaining the surplus or deficit of transported liquids, characterized in that, include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the method for obtaining the surplus or deficit of transport liquid as described in any one of claims 1-5.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed on a terminal device, cause the terminal device to perform the method for obtaining the surplus or deficit of transport liquid as described in any one of claims 1-5.