CN116069865A - Inventory sharing method, apparatus, computer device and storage medium - Google Patents

Inventory sharing method, apparatus, computer device and storage medium Download PDF

Info

Publication number
CN116069865A
CN116069865A CN202310145293.1A CN202310145293A CN116069865A CN 116069865 A CN116069865 A CN 116069865A CN 202310145293 A CN202310145293 A CN 202310145293A CN 116069865 A CN116069865 A CN 116069865A
Authority
CN
China
Prior art keywords
platform
inventory
inventory information
target
difference
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310145293.1A
Other languages
Chinese (zh)
Inventor
陈雷
曹文阳
吴维志
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kingdee Deeking Cloud Computing Co ltd
Original Assignee
Kingdee Deeking Cloud Computing Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kingdee Deeking Cloud Computing Co ltd filed Critical Kingdee Deeking Cloud Computing Co ltd
Priority to CN202310145293.1A priority Critical patent/CN116069865A/en
Publication of CN116069865A publication Critical patent/CN116069865A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2365Ensuring data consistency and integrity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • G06F16/285Clustering or classification

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application relates to an inventory sharing method, an inventory sharing device, computer equipment and a storage medium. The method comprises the following steps: acquiring an inventory sharing request, and determining a first platform and a second platform corresponding to the inventory sharing request; and then determining first inventory information in the first platform, second inventory information in the second platform and historical inventory information corresponding to the data management platform, so that a first inventory difference between the first inventory information and the historical inventory information and a second inventory difference between the second inventory information and the historical inventory information can be determined, and target inventory information corresponding to the data management platform can be obtained according to the first inventory difference and the second inventory difference. By adopting the method, the accuracy of cross-platform inventory synchronization can be improved.

Description

Inventory sharing method, apparatus, computer device and storage medium
Technical Field
The present disclosure relates to the field of internet information technologies, and in particular, to a method, an apparatus, a computer device, and a storage medium for inventory sharing.
Background
With the development of internet information technology, data synchronization can be performed between different internet platforms through a bidirectional interface, so that cross-platform inventory sharing is realized.
At present, inventory sharing is performed based on bill information, and by classifying the bills related to the inventory of each platform, the bills of the corresponding type are synchronized to the other platform. However, when the amount of the bills is large, the platform both sides still need to open all interfaces of all the bills, and the platform side needs to be compatible with the service data synchronized by the other platform to realize the inventory sharing of both sides, so that the amount of the inventory data of both sides is increased, and the accuracy of the inventory is reduced.
Disclosure of Invention
In view of the foregoing, it is desirable to provide an inventory sharing method, apparatus, computer device, computer readable storage medium, and computer program product that can improve inventory synchronization accuracy.
In a first aspect, the present application provides an inventory sharing method, applied to a data management platform, including:
acquiring an inventory sharing request, and determining a first platform and a second platform corresponding to the inventory sharing request; the first platform comprises a target platform for generating business documents; the second platform comprises a resource management platform for managing the target platform;
determining first inventory information in the first platform, second inventory information in the second platform and historical inventory information corresponding to the data management platform;
Determining a first inventory difference between the first inventory information and the historical inventory information, and a second inventory difference between the second inventory information and the historical inventory information;
obtaining target inventory information corresponding to the data management platform according to the first inventory difference and the second inventory difference; the target inventory information serves as inventory information for updating the first platform and the second platform.
In one embodiment, the determining the first inventory information in the first platform, the second inventory information in the second platform, and the historical inventory information corresponding to the data management platform includes: determining a first interface corresponding to the first platform and a second interface corresponding to the second platform; reading first inventory information in the first platform through the first interface and reading second inventory information in the second platform through the second interface; reading historical inventory information corresponding to the data management platform from a preset database; the historical inventory information characterizes inventory information last updated for the first platform and the second platform.
In one embodiment, prior to said determining the first inventory difference between the first inventory information and the historical inventory information, and the second inventory difference between the second inventory information and the historical inventory information, the method further comprises: generating a request identifier according to the inventory sharing request, and determining the platform types corresponding to the first platform and the second platform respectively; generating associated identifiers of different identifier types according to the request identifiers and the platform types; and storing the first inventory information and the second inventory information into a preset database according to the identification type of the association identification.
In one embodiment, the association identifier includes a first association identifier and a second association identifier; the generating the associated identifier with different identifier types according to the request identifier and the platform type comprises the following steps: when the platform type is a target platform type, attaching a target platform identifier to the request identifier to obtain a first initial identifier, and associating the first inventory information with the first initial identifier to obtain a first association identifier; when the platform type is the resource management type, attaching a resource management identifier to the request identifier to obtain a second initial identifier, and associating the second inventory information with the second initial identifier to obtain a second association identifier.
In one embodiment, the obtaining the target inventory information corresponding to the data management platform according to the first inventory difference and the second inventory difference includes: integrating the first inventory difference and the second inventory difference to obtain combined inventory information; and obtaining target inventory information corresponding to the data management platform according to the merged inventory information and the historical inventory information.
In one embodiment, after the target inventory information corresponding to the data management platform is obtained according to the first inventory difference and the second inventory difference, the method includes: determining a first interface corresponding to the first platform and a second interface corresponding to the second platform; transmitting the target inventory information to a first platform through the first interface and transmitting the target inventory information to a second platform through the second interface; the sent target inventory information is used for triggering the first platform to update the first inventory information into target inventory information; the sent target inventory information is used for triggering the second platform to update the second inventory information into target inventory information.
In one embodiment, after the target inventory information corresponding to the data management platform is obtained according to the first inventory difference and the second inventory difference, the method includes: and taking the target inventory information as new historical inventory information, and returning to the step of acquiring the inventory sharing request to continue.
In one embodiment, the first platform includes any one of a resource management platform, a warehouse management platform and a sales management platform for managing the target platform; the second platform comprises a target platform, a warehouse management platform for managing the target platform and any one of a sales management platform; the first platform and the second platform are not identical.
In a second aspect, the present application provides an inventory sharing apparatus. Applied to a data management platform, comprising:
the request acquisition module is used for acquiring an inventory sharing request and determining a first platform and a second platform corresponding to the inventory sharing request; the first platform comprises a target platform for generating business documents; the second platform comprises a resource management platform for managing the target platform;
The inventory difference determining module is used for determining first inventory information in the first platform, second inventory information in the second platform and historical inventory information corresponding to the data management platform; determining a first inventory difference between the first inventory information and the historical inventory information, and a second inventory difference between the second inventory information and the historical inventory information;
the inventory information determining module is used for obtaining target inventory information corresponding to the data management platform according to the first inventory difference and the second inventory difference; the target inventory information serves as inventory information for updating the first platform and the second platform.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor which when executing the computer program performs the steps of:
acquiring an inventory sharing request, and determining a first platform and a second platform corresponding to the inventory sharing request; the first platform comprises a target platform for generating business documents; the second platform comprises a resource management platform for managing the target platform;
Determining first inventory information in the first platform, second inventory information in the second platform and historical inventory information corresponding to the data management platform;
determining a first inventory difference between the first inventory information and the historical inventory information, and a second inventory difference between the second inventory information and the historical inventory information;
obtaining target inventory information corresponding to the data management platform according to the first inventory difference and the second inventory difference; the target inventory information serves as inventory information for updating the first platform and the second platform.
In a fourth aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium has stored thereon a computer program which when executed by a processor performs the steps of:
acquiring an inventory sharing request, and determining a first platform and a second platform corresponding to the inventory sharing request; the first platform comprises a target platform for generating business documents; the second platform comprises a resource management platform for managing the target platform;
determining first inventory information in the first platform, second inventory information in the second platform and historical inventory information corresponding to the data management platform;
Determining a first inventory difference between the first inventory information and the historical inventory information, and a second inventory difference between the second inventory information and the historical inventory information;
obtaining target inventory information corresponding to the data management platform according to the first inventory difference and the second inventory difference; the target inventory information serves as inventory information for updating the first platform and the second platform.
In a fifth aspect, the present application also provides a computer program product. Computer program product comprising a computer program which, when executed by a processor, realizes the steps of:
acquiring an inventory sharing request, and determining a first platform and a second platform corresponding to the inventory sharing request; the first platform comprises a target platform for generating business documents; the second platform comprises a resource management platform for managing the target platform;
determining first inventory information in the first platform, second inventory information in the second platform and historical inventory information corresponding to the data management platform;
determining a first inventory difference between the first inventory information and the historical inventory information, and a second inventory difference between the second inventory information and the historical inventory information;
Obtaining target inventory information corresponding to the data management platform according to the first inventory difference and the second inventory difference; the target inventory information serves as inventory information for updating the first platform and the second platform.
The inventory sharing method, the inventory sharing device, the computer equipment, the storage medium and the computer program product are used for acquiring an inventory sharing request and determining a first platform and a second platform corresponding to the inventory sharing request; and then determining first inventory information in the first platform, second inventory information in the second platform and historical inventory information corresponding to the data management platform, so that a first inventory difference between the first inventory information and the historical inventory information and a second inventory difference between the second inventory information and the historical inventory information can be determined, and target inventory information corresponding to the data management platform can be obtained according to the first inventory difference and the second inventory difference. Because the historical inventory information of the data management platform needs to be determined every time an inventory sharing request is acquired, and then the first inventory difference and the second inventory difference are determined in real time according to the historical inventory information.
In addition, the first platform comprises a target platform for generating business documents, and the second platform comprises a resource management platform for managing the target platform, so that the problem that one side of the platform needs to be compatible with business data synchronized by the other side of the platform to realize inventory sharing of the two sides is avoided when only target inventory information is used as inventory information for updating the target platform and the resource management platform, the data volume in the inventory of the two sides is reduced, the business complexity is further reduced, and the utilization rate of resources is improved.
Drawings
FIG. 1 is an application environment diagram of an inventory sharing method in one embodiment;
FIG. 2 is a flow diagram of a method of inventory sharing in one embodiment;
FIG. 3 is a timing diagram of inventory sharing in one embodiment;
FIG. 4 is a flow diagram of determining target inventory information in one embodiment;
FIG. 5 is a flow diagram of sorting inventory information in one embodiment;
FIG. 6 is a block diagram of an inventory sharing device in one embodiment;
fig. 7 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The inventory sharing method provided by the embodiment of the application can be applied to an application environment shown in fig. 1. Wherein the first platform 102 may communicate with the data management platform 104 via a network and the second platform 106 may communicate with the data management platform 104 via a network. The data management platform 104 is configured to obtain an inventory sharing request, and determine a first platform and a second platform corresponding to the inventory sharing request; first inventory information in the first platform, second inventory information in the second platform and historical inventory information corresponding to the data management platform are determined. The data management platform 104 is further configured to determine a first inventory difference between the first inventory information and the historical inventory information, and a second inventory difference between the second inventory information and the historical inventory information; and obtaining target inventory information corresponding to the data management platform according to the first inventory difference and the second inventory difference, and sending the target inventory information to the first platform 102 and the second platform 106, so that the first platform 102 and the second platform 106 update the inventory to the target inventory information. The first platform 102, the data management platform 104, and the second platform 106 may be a terminal and a server, where the terminal may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the server may be implemented by a separate server or a server cluster formed by a plurality of servers.
In one embodiment, as shown in fig. 2, there is provided an inventory sharing method, which is illustrated by taking the application of the method to the data management platform in fig. 1 as an example, and includes the following steps:
step 202, acquiring an inventory sharing request, and determining a first platform and a second platform corresponding to the inventory sharing request.
The first platform comprises a target platform for generating business documents, and the target platform can be an e-commerce platform; the second platform comprises a resource management platform that manages the target platform.
Specifically, the data management platform can perform inventory calculation, data interaction, data storage, resource sharing and the like on a plurality of service platforms. Wherein the data management platform may be an intermediate component comprising a plurality of interface protocols; the service platform is a platform with different service functions, such as a first platform and a second platform; the business platforms at least comprise a target platform, a resource management platform (Enterprise Resource Planning, ERP), a warehouse management platform (Warehouse Management System, WMS), a sales management platform (Customer Relationship Management, CRM) and the like.
As shown in fig. 3, fig. 3 is a timing diagram of inventory sharing. When the data management platform responds to the triggering operation of the user, an inventory sharing request is generated. The inventory sharing request comprises platform identifiers corresponding to different service platforms, and the data management platform determines a first platform and a second platform according to the platform identifiers.
In one embodiment, the data management platform may present a service platform selection interface, and the user may select the first platform and the second platform in the service platform selection interface.
In one embodiment, the first platform includes any one of a resource management platform, a warehouse management platform and a sales management platform that manage the target platform; the second platform comprises any one of a target platform, a warehouse management platform for managing the target platform and a sales management platform; the first platform and the second platform are not identical.
The inventory sharing is to synchronize the corresponding inventories of different service platforms, so that the first platform and the second platform are not identical. For example, when the first platform is a resource management platform that manages the target platform, the second platform may be any one of the target platform, a warehouse management platform that manages the target platform, and a sales management platform.
Step 204, determining first inventory information in the first platform, second inventory information in the second platform and historical inventory information corresponding to the data management platform.
Specifically, referring to fig. 3, the data management platform sends inventory information acquisition requests to the first platform and the second platform, respectively, and when the first platform and the second platform both respond to the inventory information acquisition requests, sends first inventory information in the first platform through the first platform, and sends second inventory information in the second platform through the second platform. Wherein the inventory information may be the number of items, inventory balance, etc. The data management platform can directly read the historical inventory information from a preset database.
In one embodiment, the information obtaining request includes a target interface corresponding to the service platform, where the target interface includes a first interface corresponding to the first platform and a second interface corresponding to the second platform. The data management platform determines the interface type and the target data source corresponding to the target interface, and further determines a target reading mode for reading inventory information from the service platform according to the interface type. The data management platform calls a target interface to inquire a target data source in a target reading mode to obtain inventory information in the service platform.
In one embodiment, as shown in fig. 4, fig. 4 is a schematic flow chart of determining target inventory information. When the data management platform receives the first inventory information sent by the first platform and the second inventory information sent by the second platform, the first inventory information and the second inventory information are respectively stored in corresponding positions in the database.
Step 206, determining a first inventory difference between the first inventory information and the historical inventory information, and a second inventory difference between the second inventory information and the historical inventory information.
Specifically, the data management platform responds to the triggering operation of the calculation type of the user, and further determines the inventory difference between the inventory information and the historical inventory information according to the calculation type. When the calculation type is characterized as incremental calculation compared with the historical inventory information, negative values exist in the obtained inventory difference; when the calculation type is characterized as the calculation of the difference with the historical inventory information, the obtained inventory difference is a positive value. For example, the historical inventory information is 10, the inventory information is 7, and when the calculation type is incremental calculation, the obtained inventory difference is-3; when the calculation type is difference calculation, the resulting inventory difference is 3.
And step 208, obtaining target inventory information corresponding to the data management platform according to the first inventory difference and the second inventory difference.
The target inventory information is used as inventory information for updating the first platform and the second platform.
Specifically, the data management platform determines target inventory information corresponding to the data management platform according to the calculation type triggered by the user, the first inventory difference and the second inventory difference. When the calculation type is incremental calculation, the data management platform can obtain candidate inventory information according to the first inventory difference and the historical inventory information, and further obtain target inventory information corresponding to the data management platform according to the candidate inventory information and the second inventory difference. For example, the historical inventory information is 10, the first inventory difference is 5, and the obtained candidate inventory information is 15; and when the second inventory difference is-3, obtaining target inventory information corresponding to the data management platform as 12 according to the candidate inventory information and the second inventory difference.
When the calculation type is difference calculation, the data management platform can determine a weighted average value between the first inventory difference and the second inventory difference, wherein weights corresponding to different service platforms can be preset, and the data management platform determines target inventory information according to the weighted average value and the historical inventory information. For example, when the first inventory difference is 5, the second inventory difference is 3, and the weights corresponding to the first platform and the second platform are both 0.5, the obtained weighted average value is 2; when the weighted average 2 and the historical inventory information 10 are superimposed, the target inventory information is obtained as 12.
In one embodiment, after obtaining the target inventory information corresponding to the data management platform according to the first inventory difference and the second inventory difference, the method further includes: the target inventory information is taken as new historical inventory information, and the step of returning to the inventory sharing request acquisition is continued.
According to the inventory sharing method, the inventory sharing request is acquired, and the first platform and the second platform corresponding to the inventory sharing request are determined; and then determining first inventory information in the first platform, second inventory information in the second platform and historical inventory information corresponding to the data management platform, so that a first inventory difference between the first inventory information and the historical inventory information and a second inventory difference between the second inventory information and the historical inventory information can be determined, and target inventory information corresponding to the data management platform can be obtained according to the first inventory difference and the second inventory difference. Because the historical inventory information of the data management platform needs to be determined every time an inventory sharing request is acquired, and then the first inventory difference and the second inventory difference are determined in real time according to the historical inventory information.
In addition, the first platform comprises a target platform for generating business documents, and the second platform comprises a resource management platform for managing the target platform, so that the problem that one side of the platform needs to be compatible with business data synchronized by the other side of the platform to realize inventory sharing of the two sides is avoided when only target inventory information is used as inventory information for updating the target platform and the resource management platform, the data volume in the inventory of the two sides is reduced, the business complexity is further reduced, and the utilization rate of resources is improved.
In one embodiment, determining the first inventory information in the first platform, the second inventory information in the second platform, and the historical inventory information corresponding to the data management platform includes: determining a first interface corresponding to the first platform and a second interface corresponding to the second platform; reading first inventory information in a first platform through a first interface and reading second inventory information in a second platform through a second interface; and reading historical inventory information corresponding to the data management platform from a preset database.
The historical inventory information characterizes inventory information updated for the first platform and the second platform last time, namely target inventory information obtained when the data management platform acquires an inventory sharing request last time.
The data management platform needs to determine a first interface corresponding to the first platform and a second interface corresponding to the second platform when the inventory information is transmitted because the interface types among different service platforms are not identical, and further reads the corresponding inventory information according to the corresponding interfaces and stores the corresponding inventory information into a preset database.
In one embodiment, after obtaining the target inventory information corresponding to the data management platform according to the first inventory difference and the second inventory difference, the method further includes: determining a first interface corresponding to the first platform and a second interface corresponding to the second platform; the target inventory information is sent to the first platform through the first interface and the second platform through the second interface.
The sent target inventory information is used for triggering the first platform to update the first inventory information into target inventory information; the sent target inventory information is used for triggering the second platform to update the second inventory information into the target inventory information.
Specifically, the data management platform determines the interface types corresponding to the first interface and the second interface, determines the interface protocols corresponding to the first interface and the second interface according to the corresponding interface types, converts the target inventory information through the corresponding interface protocols, sends the converted target inventory information to the first platform through the first interface, and sends the converted target inventory information to the second platform through the second interface.
In this embodiment, for the interface types corresponding to different service platforms, by determining the corresponding interface protocols in advance, accurate sending of the target inventory information during subsequent inventory update is ensured, and accuracy of synchronous sharing of multiple service platform inventories is further ensured.
In one embodiment, before determining the first inventory difference between the first inventory information and the historical inventory information and the second inventory difference between the second inventory information and the historical inventory information, the first inventory information and the second inventory information need to be classified and stored, as shown in fig. 5, fig. 5 is a schematic flow chart of classifying and storing the inventory information, including the following steps:
step 502, a request identifier is generated according to the inventory sharing request, and the platform types corresponding to the first platform and the second platform are determined.
Specifically, the data management platform generates the inventory sharing request each time when responding to the triggering operation of the user, and the service platforms which need to perform inventory synchronization in different inventory sharing requests are not completely the same, so that the data management platform generates the unique corresponding request identifier according to the inventory sharing request. Meanwhile, the data management platform also needs to determine the platform types corresponding to the first platform and the second platform respectively. The platform type at least comprises a target platform type corresponding to the target platform, a resource management type corresponding to the resource management platform, a warehouse management type corresponding to the warehouse management platform, a sales management type corresponding to the sales management platform and the like.
And step 504, generating associated identifications of different identification types according to the request identifications and the platform types.
In one embodiment, generating the associated identifications of different identification types according to the request identifications and the platform types comprises the following steps: when the platform type is the target platform type, attaching a target platform identifier to the request identifier to obtain a first initial identifier, and associating the first inventory information with the first initial identifier to obtain a first association identifier; when the platform type is the resource management type, attaching a resource management identifier to the request identifier to obtain a second initial identifier, and associating the second inventory information with the second initial identifier to obtain a second association identifier.
The association identifier comprises a first association identifier and a second association identifier; the first association identifier corresponds to a first platform and the second association identifier corresponds to a second platform.
Specifically, when the platform type of the first platform is the target platform type, the data management platform attaches the target platform identifier to the request identifier to obtain a first initial identifier corresponding to the first platform, at this time, the data management platform associates the first inventory information with the first initial identifier, so as to achieve binding between the first initial identifier and the first inventory information, and takes the first initial identifier after binding is completed as a first association identifier. And when the platform type of the second platform is the resource management type, attaching a resource management identifier to the request identifier by the data management platform to obtain a second initial identifier corresponding to the second platform, and at the moment, associating the second inventory information with the second initial identifier by the data management platform to realize the binding between the second initial identifier and the second inventory information, and taking the second initial identifier after the binding is completed as a second association identifier. For example, when the request identifier is ID1, a first association identifier corresponding to the first platform is ID1-a, and a second association identifier corresponding to the second platform is ID1-B.
In one embodiment, the first platform and the second platform are not limited to the target platform and the resource management platform, and it is easy to understand that corresponding association identifiers can be obtained for service platforms of different platform types. For example, when the request identifier is ID2, the platform type of the first platform is the target platform type, and the platform type of the second platform is the warehouse management type, a first association identifier corresponding to the first platform is ID2-a, and a second association identifier corresponding to the second platform is ID2-C.
And step 506, storing the first inventory information and the second inventory information into a preset database according to the identification type of the associated identification.
The preset database comprises database areas corresponding to different platform types. For example, the target platform corresponds to region a, the resource management platform corresponds to region b, the warehouse management platform corresponds to region c, the sales management platform corresponds to region d, and so on.
Specifically, when the data management platform acquires a plurality of inventory sharing requests, a plurality of request identifiers are acquired, and for each request identifier in the plurality of request identifiers, the data management platform needs to determine the platform types corresponding to the first platform and the second platform associated with the current request identifier. When the data management platform determines the associated identifiers with different identifier types according to the request identifier and the platform type, the data management platform can store the inventory information into the corresponding database area according to the identifier types of the associated identifiers.
For example, referring to the above example, if the current request identifier is ID1, and there is a first association identifier that is ID1-a and a second association identifier that is ID1-B, the data management platform may determine that the first association identifier corresponds to the area a, and the second association identifier corresponds to the area B, and since the first association identifier corresponds to the target platform of the target platform type and the second association identifier corresponds to the resource management platform of the resource management type, the first inventory information is acquired from the target platform, and the second inventory information is acquired from the resource management platform, and thus the data management platform stores the acquired first inventory information in the area a, and stores the acquired second inventory information in the area B.
In this embodiment, when the platform type of the service platform is determined, an initial identifier capable of reflecting the platform type may be generated on the basis of the request identifier, and then after the initial identifier is bound with the inventory information in the service platform, the association identifier is accurately obtained, so that the subsequent classification storage of the inventory information by the identifier category of the association identifier is realized.
In one embodiment, obtaining target inventory information corresponding to the data management platform according to the first inventory difference and the second inventory difference includes: integrating the first inventory difference and the second inventory difference to obtain combined inventory information; and obtaining target inventory information corresponding to the data management platform according to the combined inventory information and the historical inventory information.
Specifically, when the calculation type is incremental calculation, the data management platform can perform data increment combination on the first inventory difference and the second inventory difference to obtain combined inventory information, and perform data superposition on the combined inventory information and the historical inventory information to obtain target inventory information corresponding to the data management platform. Exemplary as shown in table 1, table 1 is a data table of business platform inventory information changes.
Table 1:
Figure BDA0004089094550000121
/>
Figure BDA0004089094550000131
aiming at the table, after the business bill is stored in a plurality of business platforms, the data management platform responds to the triggering operation of a user to generate an inventory sharing request, and at the moment, the inventory information in the business platform is the current inventory information; the current inventory information includes first inventory information in a first platform, second inventory information in a second platform, and historical inventory information corresponding to the data management platform. Wherein, the first stock information is 7, the second stock information is 15, the history stock information is 10, therefore, when the calculation type triggered by the user is incremental calculation, the first stock difference is-3, and the second stock difference is 5; performing data increment combination on the first inventory difference and the second inventory difference to obtain combined inventory information of 2; and further carrying out data superposition on the combined inventory information and the historical inventory information to obtain target inventory information of 12. Thus, the target inventory information 12 serves as inventory information that the first platform and the second platform need to update.
In this embodiment, by determining the merged inventory information between the first inventory difference and the second inventory difference, the target inventory information can be obtained according to the merged inventory information and the historical inventory information, which provides an implementation way for accurately obtaining the target inventory information, and by using the target inventory information as the inventory information to be updated of the first platform and the second platform at the same time, the problem of data consistency of different service platforms in service depth integration is solved.
It should be understood that, although the steps in the flowcharts related to the above embodiments are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides an inventory sharing device for realizing the inventory sharing method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in one or more embodiments of the inventory sharing device provided below may refer to the limitation of the inventory sharing method hereinabove, and will not be repeated herein.
In one embodiment, as shown in FIG. 6, there is provided an inventory sharing apparatus 600 comprising: a request acquisition module 602, an inventory variance determination module 604, and an inventory information determination module 606, wherein:
a request obtaining module 602, configured to obtain an inventory sharing request, and determine a first platform and a second platform corresponding to the inventory sharing request; the first platform comprises a target platform for generating business documents; the second platform comprises a resource management platform that manages the target platform.
An inventory difference determining module 604, configured to determine first inventory information in the first platform, second inventory information in the second platform, and historical inventory information corresponding to the data management platform; a first inventory difference between the first inventory information and the historical inventory information, and a second inventory difference between the second inventory information and the historical inventory information are determined.
The inventory information determining module 606 is configured to obtain target inventory information corresponding to the data management platform according to the first inventory difference and the second inventory difference; the target inventory information serves as inventory information for updating the first platform and the second platform.
In one embodiment, the inventory variance determining module 604 is further configured to determine a first interface corresponding to the first platform and a second interface corresponding to the second platform; reading first inventory information in a first platform through a first interface and reading second inventory information in a second platform through a second interface; reading historical inventory information corresponding to the data management platform from a preset database; the historical inventory information characterizes inventory information last updated for the first platform and the second platform.
In one embodiment, the inventory sharing device 600 further includes a classification storage module 608, configured to generate a request identifier according to the inventory sharing request, and determine a platform type corresponding to each of the first platform and the second platform; generating associated identifications of different identification types according to the request identifications and the platform types; and storing the first inventory information and the second inventory information into a preset database according to the identification type of the associated identification.
In one embodiment, the classification storage module 608 is further configured to attach, when the platform type is the target platform type, the target platform identifier to the request identifier to obtain a first initial identifier, and associate the first inventory information with the first initial identifier to obtain a first association identifier; when the platform type is the resource management type, attaching a resource management identifier to the request identifier to obtain a second initial identifier, and associating the second inventory information with the second initial identifier to obtain a second association identifier.
In one embodiment, the inventory information determining module 606 is further configured to obtain target inventory information corresponding to the data management platform according to the first inventory difference and the second inventory difference, and includes: integrating the first inventory difference and the second inventory difference to obtain combined inventory information; and obtaining target inventory information corresponding to the data management platform according to the combined inventory information and the historical inventory information.
In one embodiment, the inventory sharing device 600 further includes an inventory information updating module 610, configured to determine a first interface corresponding to the first platform and a second interface corresponding to the second platform after obtaining the target inventory information corresponding to the data management platform; transmitting the target inventory information to a first platform through a first interface and transmitting the target inventory information to a second platform through a second interface; the sent target inventory information is used for triggering the first platform to update the first inventory information into the target inventory information; the sent target inventory information is used for triggering the second platform to update the second inventory information into the target inventory information.
In one embodiment, the inventory information updating module 610 is further configured to, after obtaining the target inventory information corresponding to the data management platform according to the first inventory difference and the second inventory difference, take the target inventory information as new historical inventory information, and return to the step of obtaining the inventory sharing request to continue.
The various modules in the inventory sharing device described above may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure of which may be as shown in fig. 7. The computer device includes a processor, a memory, an Input/Output interface (I/O), a communication interface, a display unit, and an Input device. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a method of inventory sharing. The display unit of the computer equipment is used for forming a visual picture, and can be a display screen, a projection device or a virtual reality imaging device, wherein the display screen can be a liquid crystal display screen or an electronic ink display screen, the input device of the computer equipment can be a touch layer covered on the display screen, can also be a key, a track ball or a touch pad arranged on a shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in fig. 7 is merely a block diagram of a portion of the structure associated with the present application and is not intended to limit the computer device to which the present application is applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, there is also provided a computer device including a memory and a processor, the memory storing a computer program, the processor implementing the steps of the method embodiments described above when executing the computer program.
In one embodiment, a computer-readable storage medium is provided, storing a computer program that, when executed by a processor, performs the steps of the method embodiments described above.
In one embodiment, a computer program product or computer program is provided that includes computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in the above-described method embodiments.
Those skilled in the art will appreciate that implementing all or part of the above-described embodiment methods may be accomplished by way of a computer program, which may be stored on a non-transitory computer readable storage medium, that when executed may comprise the above-described embodiment methods. Any reference to memory, database, or other medium used in the various embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the various embodiments provided herein may include at least one of relational databases and non-relational databases. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic units, quantum computing-based data processing logic units, etc., without being limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples represent only a few embodiments of the present application, which are described in more detail and are not thereby to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application shall be subject to the appended claims.

Claims (11)

1. An inventory sharing method, applied to a data management platform, comprising:
acquiring an inventory sharing request, and determining a first platform and a second platform corresponding to the inventory sharing request; the first platform comprises a target platform for generating business documents; the second platform comprises a resource management platform for managing the target platform;
Determining first inventory information in the first platform, second inventory information in the second platform and historical inventory information corresponding to the data management platform;
determining a first inventory difference between the first inventory information and the historical inventory information, and a second inventory difference between the second inventory information and the historical inventory information;
obtaining target inventory information corresponding to the data management platform according to the first inventory difference and the second inventory difference; the target inventory information serves as inventory information for updating the first platform and the second platform.
2. The method of claim 1, wherein the determining the first inventory information in the first platform, the second inventory information in the second platform, and the historical inventory information corresponding to the data management platform comprises:
determining a first interface corresponding to the first platform and a second interface corresponding to the second platform;
reading first inventory information in the first platform through the first interface and reading second inventory information in the second platform through the second interface;
Reading historical inventory information corresponding to the data management platform from a preset database; the historical inventory information characterizes inventory information last updated for the first platform and the second platform.
3. The method of claim 1, wherein prior to said determining a first inventory difference between the first inventory information and the historical inventory information, and a second inventory difference between the second inventory information and the historical inventory information, the method further comprises:
generating a request identifier according to the inventory sharing request, and determining the platform types corresponding to the first platform and the second platform respectively;
generating associated identifiers of different identifier types according to the request identifiers and the platform types;
and storing the first inventory information and the second inventory information into a preset database according to the identification type of the association identification.
4. A method according to claim 3, wherein the association identifier comprises a first association identifier and a second association identifier; the generating the associated identifier with different identifier types according to the request identifier and the platform type comprises the following steps:
When the platform type is a target platform type, attaching a target platform identifier to the request identifier to obtain a first initial identifier, and associating the first inventory information with the first initial identifier to obtain a first association identifier;
when the platform type is the resource management type, attaching a resource management identifier to the request identifier to obtain a second initial identifier, and associating the second inventory information with the second initial identifier to obtain a second association identifier.
5. The method of claim 1, wherein the obtaining the target inventory information corresponding to the data management platform according to the first inventory difference and the second inventory difference comprises:
integrating the first inventory difference and the second inventory difference to obtain combined inventory information;
and obtaining target inventory information corresponding to the data management platform according to the merged inventory information and the historical inventory information.
6. The method of claim 1, wherein after the obtaining the target inventory information corresponding to the data management platform based on the first inventory difference and the second inventory difference, the method comprises:
Determining a first interface corresponding to the first platform and a second interface corresponding to the second platform;
transmitting the target inventory information to a first platform through the first interface and transmitting the target inventory information to a second platform through the second interface;
the sent target inventory information is used for triggering the first platform to update the first inventory information into target inventory information; the sent target inventory information is used for triggering the second platform to update the second inventory information into target inventory information.
7. The method of claim 1, wherein after the obtaining the target inventory information corresponding to the data management platform based on the first inventory difference and the second inventory difference, the method comprises:
and taking the target inventory information as new historical inventory information, and returning to the step of acquiring the inventory sharing request to continue.
8. The method of claim 1, wherein the first platform comprises any one of a resource management platform, a warehouse management platform, and a sales management platform that manage the target platform; the second platform comprises a target platform, a warehouse management platform for managing the target platform and any one of a sales management platform; the first platform and the second platform are not identical.
9. An inventory sharing apparatus for use with a data management platform, the apparatus comprising:
the request acquisition module is used for acquiring an inventory sharing request and determining a first platform and a second platform corresponding to the inventory sharing request; the first platform comprises a target platform for generating business documents; the second platform comprises a resource management platform for managing the target platform;
the inventory difference determining module is used for determining first inventory information in the first platform, second inventory information in the second platform and historical inventory information corresponding to the data management platform; determining a first inventory difference between the first inventory information and the historical inventory information, and a second inventory difference between the second inventory information and the historical inventory information;
the inventory information determining module is used for obtaining target inventory information corresponding to the data management platform according to the first inventory difference and the second inventory difference; the target inventory information serves as inventory information for updating the first platform and the second platform.
10. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any one of claims 1 to 8 when the computer program is executed.
11. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 8.
CN202310145293.1A 2023-02-08 2023-02-08 Inventory sharing method, apparatus, computer device and storage medium Pending CN116069865A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310145293.1A CN116069865A (en) 2023-02-08 2023-02-08 Inventory sharing method, apparatus, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310145293.1A CN116069865A (en) 2023-02-08 2023-02-08 Inventory sharing method, apparatus, computer device and storage medium

Publications (1)

Publication Number Publication Date
CN116069865A true CN116069865A (en) 2023-05-05

Family

ID=86174821

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310145293.1A Pending CN116069865A (en) 2023-02-08 2023-02-08 Inventory sharing method, apparatus, computer device and storage medium

Country Status (1)

Country Link
CN (1) CN116069865A (en)

Similar Documents

Publication Publication Date Title
US10291704B2 (en) Networked solutions integration using a cloud business object broker
CN110032598B (en) Method and device for updating field and electronic equipment
US11237749B2 (en) System and method for backup data discrimination
US20150331923A1 (en) Crm-based data migration system and method
WO2018219285A1 (en) Data object display method and device
CA3154763A1 (en) Data operation method, device and system
CN115544183A (en) Data visualization method and device, computer equipment and storage medium
CN112651826A (en) Credit limit management and control system, method and readable storage medium
CN112328575A (en) Data asset blood margin generation method and device and electronic equipment
US9754319B2 (en) Source document framework for accounting systems
US9230022B1 (en) Customizable result sets for application program interfaces
CN116069865A (en) Inventory sharing method, apparatus, computer device and storage medium
CN115495452A (en) Data processing method, data processing device, computer equipment and storage medium
CN114676359A (en) Form display method and device, computer equipment and storage medium
US20180074867A1 (en) Provide copy of notebook document
CN117312653A (en) Service policy determination method, device, computer equipment and storage medium
CN114201271A (en) Node determination method and device, computer equipment and storage medium
CN117216425A (en) Financial business page display method, device, computer equipment and storage medium
CN117951223A (en) Data synchronization method, device, computer equipment and storage medium
CN115221222A (en) Receipt processing method and device, computer equipment and storage medium
CN116400922A (en) Interface guide schematic diagram generation method, device, computer equipment and storage medium
CN117555521A (en) Business requirement development method, device, computer equipment and storage medium
CN117539917A (en) Information query method, device, computer equipment and storage medium
CN114519062A (en) Basic data updating method and device, computer equipment and storage medium
CN116894044A (en) Data management method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination