Multi-target system data distribution method and device, equipment and storage medium
By receiving and formatting conversion of purchase order data in the transit system, the problems of inefficient and inflexible data distribution in the prior art are solved, and the flexibility and efficiency of data exchange in multi-target systems are improved, and maintenance costs are reduced.
Patent Information
- Application Number
- CN202411269877.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-11
- Publication Date
- 2024-12-13
AI Technical Summary
The existing data distribution methods are inefficient and inflexible, and cannot effectively respond to the distribution needs of multi-target systems, resulting in high maintenance costs and reduced system efficiency.
By receiving purchase order data from the upstream system in the transit system, determining the target receiving system, converting the data format, and issuing it to the target receiving system through the system interface, flexible data exchange is realized, fixed configuration solutions are reduced, and data distribution efficiency is improved.
It realizes the flexibility and efficiency of data distribution, reduces maintenance costs, and adapts to the data exchange needs between different upstream and downstream systems.
Smart Images

Figure CN119127989A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data distribution, and in particular to a multi-target system data distribution method, device, equipment and storage medium. Background Art
[0002] In the supply chain management of modern enterprises, the processing and distribution of purchase orders is crucial. Usually, the upstream system will send the purchase order data to the transit system, and then the transit system will send the data to the downstream system. The current transit system is only responsible for sending data to a single domestic OMS (order management system), and cannot cope with the distribution needs of multiple target systems.
[0003] A common solution is to distinguish downstream systems through different upstream systems or different interfaces, including:
[0004] Multi-interface solution: The upstream system calls different interfaces to send data to domestic or foreign OMS respectively.
[0005] Multi-system solution: The upstream system is divided into multiple modules, each module corresponds to a downstream system.
[0006] Fixed configuration solution: The transit system uses hard coding to send data to a specific OMS system.
[0007] However, the multi-interface and multi-system solutions rely on the specific implementation of the upstream system and are difficult to cope with changing business needs. The fixed configuration solution requires frequent code modifications to adapt to different downstream systems, which has high maintenance costs. In addition, the multi-interface solution causes the upstream system to process more logic, reducing the overall efficiency of the system. Summary of the invention
[0008] The present invention provides a multi-target system data distribution method, device, equipment and storage medium, which are used to solve the technical problems of low efficiency and inflexibility of existing data distribution methods.
[0009] The present invention provides a multi-target system data distribution method, which is applied to a transfer system; the method comprises:
[0010] Receive purchase order data from upstream systems;
[0011] determining a target receiving system for the purchase order data;
[0012] Convert the purchase order data into a format according to the target receiving system to obtain converted data;
[0013] The converted data is sent to the target receiving system.
[0014] Optionally, the step of determining a target receiving system for the purchase order data includes:
[0015] identifying key fields in the purchase order data;
[0016] The target receiving system is matched according to the key field.
[0017] Optionally, the step of converting the format of the purchase order data according to the target receiving system to obtain converted data includes:
[0018] Identify the source and type of the purchase order data;
[0019] configuring a processor according to the source and the type;
[0020] Acquire the required format and required content of the target receiving system;
[0021] According to the required format and required content, the processor is used to convert the format of the purchase order data to obtain converted data.
[0022] Optionally, the step of sending the converted data to the target receiving system includes:
[0023] Acquire the system interface of the target receiving system;
[0024] The converted data is sent to the target receiving system through the system interface.
[0025] Optionally, the step of converting the format of the purchase order data using the processor according to the required format and required content to obtain converted data includes:
[0026] According to the requirement content, using the processor to read the target field of the purchase order data;
[0027] Read the target data corresponding to the target field from the mapping table;
[0028] According to the required format, the processor is used to convert the format of the target data to obtain converted data.
[0029] The present invention also provides a multi-target system data distribution device, which is applied to a transfer system; the device comprises:
[0030] Purchase order data receiving module, used to receive purchase order data from the upstream system;
[0031] A target receiving system determining module, used to determine a target receiving system for the purchase order data;
[0032] A conversion module, used for converting the format of the purchase order data according to the target receiving system to obtain converted data;
[0033] A sending module is used to send the converted data to the target receiving system.
[0034] Optionally, the target receiving system determination module includes:
[0035] A key field identification submodule, used to identify key fields in the purchase order data;
[0036] The target receiving system matching submodule is used to match the target receiving system according to the key field.
[0037] Optionally, the conversion module includes:
[0038] A source and type identification submodule, used to identify the source and type of the purchase order data;
[0039] a processor configuration submodule, configured to configure a processor according to the source and the type;
[0040] A requirement format and requirement content acquisition submodule, used to acquire the requirement format and requirement content of the target receiving system;
[0041] The conversion submodule is used to convert the format of the purchase order data using the processor according to the required format and required content to obtain converted data.
[0042] The present invention also provides an electronic device, the device comprising a processor and a memory:
[0043] The memory is used to store program code and transmit the program code to the processor;
[0044] The processor is used to execute any one of the above multi-target system data distribution methods according to the instructions in the program code.
[0045] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store program code, and the program code is used to execute the multi-target system data distribution method as described in any one of the above items.
[0046] It can be seen from the above technical scheme that the present invention has the following advantages: the present invention discloses a multi-target system data distribution method, and specifically discloses: receiving purchase order data from an upstream system; determining a target receiving system for the purchase order data; performing format conversion on the purchase order data according to the target receiving system to obtain converted data; and sending the converted data to the target receiving system.
[0047] The transit system of the present invention can convert the format of purchase order data by determining the target receiving system, and can take into account the data exchange between different upstream and downstream systems, making data distribution more flexible; and there is no need for a fixed configuration plan, which reduces maintenance costs and improves data distribution efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0049] Figure 1 A flowchart of a multi-target system data distribution method provided by an embodiment of the present invention;
[0050] Figure 2 A flowchart of a multi-target system data distribution method provided by another embodiment of the present invention;
[0051] Figure 3 A structural block diagram of a multi-target system data distribution device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0052] The embodiments of the present invention provide a multi-target system data distribution method, device, equipment and storage medium, which are used to solve the technical problems that the existing data distribution methods are inefficient and inflexible.
[0053] In order to make the purpose, features and advantages of the present invention more obvious and easy to understand, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described below are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0054] See also Figure 1 , Figure 1 A flowchart of the steps of a multi-target system data distribution method provided by an embodiment of the present invention.
[0055] The present invention provides a multi-target system data distribution method, which is applied to a transfer system. The method may specifically include the following steps:
[0056] Step 101, receiving purchase order data from an upstream system;
[0057] In the embodiment of the present invention, the upstream system may be a company's internal data center, SAP system, etc.
[0058] In the embodiment of the present invention, the purchase order records the required commodity information, including commodity name, quantity, warehouse information, etc.
[0059] The upstream system can send purchase order data to the downstream system through the transit system to achieve the purpose of commodity procurement.
[0060] Step 102, determining the target receiving system of the purchase order data;
[0061] In the embodiment of the present invention, the target receiving system may include a domestic OMS and an overseas OMS.
[0062] OMS, or order management system, is a part of the logistics management system. It manages and tracks orders placed by customers, dynamically grasps the progress and completion of orders, improves the efficiency of logistics operations, saves operating time and operating costs, and improves the market competitiveness of logistics companies. The order management system is an indispensable part of the chain. Through the management and distribution of orders, it organically combines warehousing management and transportation management, stably and effectively realizes the full play of each link in logistics management, makes warehousing, transportation, and orders an organic whole, and meets the needs of logistics system informatization.
[0063] In the embodiment of the present invention, the transit system may determine the target receiving system for downstream reception based on the received purchase order data.
[0064] Step 103, converting the format of the purchase order data according to the target receiving system to obtain converted data;
[0065] After the target receiving system is determined, the purchase order data can be converted into the conversion data required by the target receiving system according to the data requirements of the target receiving system.
[0066] Step 104: Send the converted data to the target receiving system.
[0067] After the data conversion operation is completed, the converted data that meets the requirements of the target receiving system can be sent to the target receiving system to achieve the procurement goal.
[0068] The transit system of the present invention can convert the format of purchase order data by determining the target receiving system, and can take into account the data exchange between different upstream and downstream systems, making data distribution more flexible; and there is no need for a fixed configuration plan, which reduces maintenance costs and improves data distribution efficiency.
[0069] See also Figure 2 , Figure 2A flowchart of a multi-target system data distribution method provided by another embodiment of the present invention may specifically include the following steps:
[0070] Step 201, receiving purchase order data from an upstream system;
[0071] In the embodiment of the present invention, the purchase order records the required commodity information, including commodity name, quantity, warehouse information, etc.
[0072] The upstream system can send purchase order data to the downstream system through the transit system to achieve the purpose of commodity procurement.
[0073] Step 202, identifying key fields in the purchase order data;
[0074] Step 203, matching the target receiving system according to the key field;
[0075] In an embodiment of the present invention, after receiving the purchase order data, the transit system can identify key fields in the purchase order data to determine the target receiving system to which the purchase order data is sent.
[0076] In a specific implementation, the key field may be warehouse information, that is, the transit system may determine the target receiving system by matching the warehouse information.
[0077] In another example, the target receiving system may be matched by setting other specific rules, which is not specifically limited in the embodiment of the present invention.
[0078] Step 204, converting the format of the purchase order data according to the target receiving system to obtain converted data;
[0079] After the target receiving system is determined, the purchase order data can be converted into the conversion data required by the target receiving system according to the data requirements of the target receiving system.
[0080] In one example, the step of converting the format of the purchase order data according to the target receiving system to obtain the converted data may include the following sub-steps:
[0081] S41, identify the source and type of purchase order data;
[0082] In the embodiment of the present invention, the source of the purchase order data is a specific upstream system. The type represents the processing requirements of the data, such as the purchase forward order is sent to the downstream, the purchase order forward is sent back to the upstream, etc. In the specific implementation, the specific message type can be determined through different interfaces, and the source of the purchase order data can be determined through the signature verification on the interface.
[0083] For example: The SAP system uses the SAP account and password to call the purchase order forward order issuance interface, so the source of the purchase order data is the SAP system, and the message type is purchase order forward order issuance.
[0084] S42, configure the processor according to the source and type;
[0085] After determining the source and type of purchase order data, the corresponding processor can be configured according to the source and type, such as domestic purchase forward single processor, domestic purchase reverse single processor, overseas purchase forward single processor, overseas purchase reverse single processor, etc.
[0086] In a specific implementation, the mapping relationship between the type and the processor may be preconfigured to obtain the processor according to the mapping relationship, so as to ensure the accuracy of data conversion.
[0087] S43, obtaining the required format and required content of the target receiving system;
[0088] S44, according to the required format and required content, a processor is used to convert the format of the purchase order data to obtain converted data.
[0089] In the embodiment of the present invention, the transit system can convert the purchase order data into the data format and content required by the target receiving system through a processor.
[0090] In one example, according to the required format and required content, the step of converting the format of the purchase order data using a processor to obtain the converted data may include the following sub-steps:
[0091] S441, according to the demand content, using a processor to read the target field of the purchase order data;
[0092] S442, reading target data corresponding to the target field from the mapping table;
[0093] S443, according to the required format, use a processor to convert the target data into a format to obtain converted data.
[0094] In the specific implementation, the target field of the purchase order can be obtained according to the demand content, and then the target data corresponding to the target field can be read from the mapping table and sent to the downstream system together with the purchase order data.
[0095] In an example, suppose that the purchase order of the upstream system passes an upstream physical warehouse code and a virtual warehouse code to the transit system, and the virtual warehouse code is empty, where the physical warehouse code is Z1Z2, corresponding to the test warehouse. The transit system will find the code of the downstream warehouse in the transit mapping table based on Z1Z2. For example, when the mapping relationship is "Z1Z2, test warehouse, O1O2", the code of the downstream warehouse can be obtained as O1O2 according to the mapping table. Then, the number of the downstream virtual warehouse is searched. Since the number of the upstream virtual warehouse is empty, the code of the downstream virtual warehouse can be the default virtual warehouse code of the downstream physical warehouse, such as V1V2. At this time, the acquisition of the downstream target data is realized. Then, according to the format requirements of the downstream system, the purchase order data and O1O2, V1V2 are converted into the format together, and then passed to the downstream target receiving system.
[0096] Step 205: Send the converted data to the target receiving system.
[0097] After the data conversion operation is completed, the converted data that meets the requirements of the target receiving system can be sent to the target receiving system to achieve the procurement goal.
[0098] In one example, the step of sending the converted data to the target receiving system may specifically include the following sub-steps:
[0099] S51, obtaining a system interface of a target receiving system;
[0100] S52, sending the converted data to the target receiving system through the system interface.
[0101] In a specific implementation, different receiving systems correspond to different system interfaces, so the system interface of the target receiving system can be obtained to send the converted data.
[0102] The transit system of the present invention can convert the format of purchase order data by determining the target receiving system, and can take into account the data exchange between different upstream and downstream systems, making data distribution more flexible; and there is no need for a fixed configuration plan, which reduces maintenance costs and improves data distribution efficiency.
[0103] See also Figure 3 , Figure 3 A structural block diagram of a multi-target system data distribution device provided by an embodiment of the present invention.
[0104] The embodiment of the present invention provides a multi-target system data distribution device, which is applied to a transfer system; the device includes:
[0105] A purchase order data receiving module 301 is used to receive purchase order data from an upstream system;
[0106] A target receiving system determining module 302 is used to determine a target receiving system for purchase order data;
[0107] The conversion module 303 is used to convert the format of the purchase order data according to the target receiving system to obtain converted data;
[0108] The sending module 304 is used to send the converted data to the target receiving system.
[0109] In the embodiment of the present invention, the target receiving system determination module 302 includes:
[0110] The key field identification submodule is used to identify the key fields in the purchase order data;
[0111] The target receiving system matching submodule is used to match the target receiving system according to the key fields.
[0112] In the embodiment of the present invention, the conversion module 303 includes:
[0113] The source and type identification submodule is used to identify the source and type of purchase order data;
[0114] The processor configuration submodule is used to configure the processor according to the source and type;
[0115] The requirement format and requirement content acquisition submodule is used to acquire the requirement format and requirement content of the target receiving system;
[0116] The conversion submodule is used to convert the format of the purchase order data using a processor according to the required format and required content to obtain converted data.
[0117] In the embodiment of the present invention, the sending module 304 includes:
[0118] The system interface acquisition submodule is used to acquire the system interface of the target receiving system;
[0119] The sending submodule is used to send the converted data to the target receiving system through the system interface.
[0120] In an embodiment of the present invention, the conversion submodule includes:
[0121] A target field reading unit, used for reading a target field of the purchase order data using a processor according to the required content;
[0122] A target data reading unit, used for reading target data corresponding to a target field from a mapping table;
[0123] The conversion unit is used to convert the format of the target data using a processor according to the required format to obtain converted data.
[0124] An embodiment of the present invention further provides an electronic device, the device comprising a processor and a memory:
[0125] The memory is used to store the program code and transmit the program code to the processor;
[0126] The processor is used to execute the multi-target system data distribution method of the embodiment of the present invention according to the instructions in the program code.
[0127] The embodiment of the present invention further provides a computer-readable storage medium, which is used to store program codes, and the program codes are used to execute the multi-target system data distribution method of the embodiment of the present invention.
[0128] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0129] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0130] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0131] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0132] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0133] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0134] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0135] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0136] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A multi-target system data distribution method, characterized in that: Applied to a transfer system; the method comprises: Receive purchase order data from upstream systems; Determining a target receiving system for the purchase order data; Convert the purchase order data into a format according to the target receiving system to obtain converted data; The converted data is sent to the target receiving system.
2. The method according to claim 1, characterized in that The step of determining a target receiving system for the purchase order data comprises: identifying key fields in the purchase order data; The target receiving system is matched according to the key field.
3. The method according to claim 1, characterized in that: The step of converting the format of the purchase order data according to the target receiving system to obtain converted data comprises: Identify the source and type of the purchase order data; configuring a processor according to the source and the type; Acquire the required format and required content of the target receiving system; According to the required format and required content, the processor is used to convert the format of the purchase order data to obtain converted data.
4. The method according to claim 1, characterized in that: The step of sending the converted data to the target receiving system includes: Acquire the system interface of the target receiving system; The converted data is sent to the target receiving system through the system interface.
5. The method according to claim 3, characterized in that: The step of converting the format of the purchase order data using the processor according to the required format and required content to obtain converted data comprises: According to the requirement content, using the processor to read the target field of the purchase order data; Read the target data corresponding to the target field from the mapping table; According to the required format, the processor is used to convert the format of the target data to obtain converted data.
6. A multi-target system data distribution device, characterized in that: Applicable to a transfer system; the device comprises: Purchase order data receiving module, used to receive purchase order data from the upstream system; A target receiving system determining module, used to determine a target receiving system for the purchase order data; A conversion module, used for converting the format of the purchase order data according to the target receiving system to obtain converted data; A sending module is used to send the converted data to the target receiving system.
7. The device according to claim 6, characterized in that The target receiving system determination module includes: A key field identification submodule, used to identify key fields in the purchase order data; The target receiving system matching submodule is used to match the target receiving system according to the key field.
8. The device according to claim 6, characterized in that The conversion module comprises: A source and type identification submodule, used to identify the source and type of the purchase order data; a processor configuration submodule, configured to configure a processor according to the source and the type; A requirement format and requirement content acquisition submodule, used to acquire the requirement format and requirement content of the target receiving system; The conversion submodule is used to convert the format of the purchase order data using the processor according to the required format and required content to obtain converted data.
9. An electronic device, characterized in that: The device comprises a processor and a memory: The memory is used to store program code and transmit the program code to the processor; The processor is used to execute the multi-target system data distribution method according to any one of claims 1-5 according to the instructions in the program code.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store program codes, and the program codes are used to execute the multi-target system data distribution method according to any one of claims 1 to 5.
